Functions | |
| int32_t | ocs_scsi_tgt_driver_init (void) |
| Driver-wide initialization for the target-server. More... | |
| int32_t | ocs_scsi_tgt_driver_exit (void) |
| Driver-wide clean-up for the target-server. More... | |
| int32_t | ocs_scsi_tgt_new_device (ocs_t *ocs) |
| Initializes any target fields on the ocs structure. More... | |
| int32_t | ocs_scsi_tgt_del_device (ocs_t *ocs) |
| Tears down the target members of the ocs structure. More... | |
| int32_t | ocs_scsi_tgt_new_domain (ocs_domain_t *domain) |
| Accept a new domain notification. More... | |
| void | ocs_scsi_tgt_del_domain (ocs_domain_t *domain) |
| Accept a domain lost notification. More... | |
| int32_t | ocs_scsi_tgt_new_sport (ocs_sport_t *sport) |
| Accept a new SLI Port notification. More... | |
| void | ocs_scsi_tgt_del_sport (ocs_sport_t *sport) |
| Accept a SLI Port gone notification. More... | |
| int32_t | ocs_scsi_validate_initiator (ocs_node_t *node) |
| Validate a new initiator. More... | |
| int32_t | ocs_scsi_new_initiator (ocs_node_t *node) |
| Receive notification of a new SCSI initiator node. More... | |
| int32_t | ocs_scsi_del_initiator (ocs_node_t *node, ocs_scsi_del_initiator_reason_e reason) |
| Delete a SCSI initiator node. More... | |
| int32_t | _ocs_scsi_recv_cmd (ocs_io_t *io, uint32_t lun, uint8_t *cdb, uint32_t cdb_len, uint32_t flags) |
| Receive an FCP SCSI command. More... | |
| int32_t | ocs_scsi_recv_cmd_first_burst (ocs_io_t *io, uint32_t lun, uint8_t *cdb, uint32_t cdb_len, uint32_t flags, ocs_dma_t first_burst_buffers[], uint32_t first_burst_bytes) |
| Receive an FCP SCSI command with the first burst data. More... | |
| int32_t | ocs_scsi_recv_tmf (ocs_io_t *tmfio, uint32_t lun, ocs_scsi_tmf_cmd_e cmd, ocs_io_t *io_to_abort, uint32_t flags) |
| Receive a TMF command IO. More... | |
| int32_t _ocs_scsi_recv_cmd | ( | ocs_io_t * | io, |
| uint32_t | lun, | ||
| uint8_t * | cdb, | ||
| uint32_t | cdb_len, | ||
| uint32_t | flags | ||
| ) |
Receive an FCP SCSI command.
| io | Pointer to the IO context. |
| lun | LUN for this IO. |
| cdb | Pointer to the SCSI CDB. |
| cdb_len | Length of the CDB, in bytes. |
| flags | Command flags. |
Definition at line 1207 of file ocs_ramd.c.
| int32_t ocs_scsi_del_initiator | ( | ocs_node_t * | node, |
| ocs_scsi_del_initiator_reason_e | reason | ||
| ) |
Delete a SCSI initiator node.
| node | Pointer to the node being deleted. |
| reason | This is the reason that the initiator was removed and will be one of the following enumeration types: OCS_SCSI_INITIATOR_DELETED or OS_SCSI_INITIATOR_MISSING. |
Definition at line 1092 of file ocs_ramd.c.
| int32_t ocs_scsi_new_initiator | ( | ocs_node_t * | node | ) |
Receive notification of a new SCSI initiator node.
| node | Pointer to a new remote initiator node. |
Definition at line 1027 of file ocs_ramd.c.
| int32_t ocs_scsi_recv_cmd_first_burst | ( | ocs_io_t * | io, |
| uint32_t | lun, | ||
| uint8_t * | cdb, | ||
| uint32_t | cdb_len, | ||
| uint32_t | flags, | ||
| ocs_dma_t | first_burst_buffers[], | ||
| uint32_t | first_burst_bytes | ||
| ) |
Receive an FCP SCSI command with the first burst data.
| io | Pointer to the IO context. |
| lun | LUN for this IO. |
| cdb | Pointer to the SCSI CDB. |
| cdb_len | Length of CDB, in bytes. |
| flags | Command flags. |
| first_burst_buffers | First burst buffers. |
| first_burst_bytes | The number of bytes received in the first burst. |
Definition at line 1230 of file ocs_ramd.c.
| int32_t ocs_scsi_recv_tmf | ( | ocs_io_t * | tmfio, |
| uint32_t | lun, | ||
| ocs_scsi_tmf_cmd_e | cmd, | ||
| ocs_io_t * | io_to_abort, | ||
| uint32_t | flags | ||
| ) |
Receive a TMF command IO.
| tmfio | Pointer to the IO context. |
| lun | Logical unit value. |
| cmd | Command request. |
| io_to_abort | Pointer to the IO object to abort for TASK_ABORT (NULL for all other TMF). |
| flags | Flags. |
Definition at line 2682 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_del_device | ( | ocs_t * | ocs | ) |
Tears down the target members of the ocs structure.
| ocs | Pointer to the ocs. |
Definition at line 836 of file ocs_ramd.c.
| void ocs_scsi_tgt_del_domain | ( | ocs_domain_t * | domain | ) |
Accept a domain lost notification.
| domain | Pointer to the domain. |
Definition at line 902 of file ocs_ramd.c.
| void ocs_scsi_tgt_del_sport | ( | ocs_sport_t * | sport | ) |
Accept a SLI Port gone notification.
| sport | Pointer to the sport structure. |
Definition at line 974 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_driver_exit | ( | void | ) |
Driver-wide clean-up for the target-server.
Definition at line 401 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_driver_init | ( | void | ) |
Driver-wide initialization for the target-server.
Definition at line 354 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_new_device | ( | ocs_t * | ocs | ) |
Initializes any target fields on the ocs structure.
| ocs | Pointer to the ocs. |
Definition at line 753 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_new_domain | ( | ocs_domain_t * | domain | ) |
Accept a new domain notification.
| domain | Pointer to the domain. |
Definition at line 880 of file ocs_ramd.c.
| int32_t ocs_scsi_tgt_new_sport | ( | ocs_sport_t * | sport | ) |
Accept a new SLI Port notification.
| sport | Pointer to the sport. |
Definition at line 924 of file ocs_ramd.c.
| int32_t ocs_scsi_validate_initiator | ( | ocs_node_t * | node | ) |
Validate a new initiator.
| node | Pointer to the remote initiator node to validate. |
Definition at line 1002 of file ocs_ramd.c.