Functions | |
| int32_t | ocs_iscsi_interrupts_required (ocs_os_handle_t os, ocs_hal_t *hal) |
| Returns the number of interrupts needed for this adapter. More... | |
| int32_t | ocs_iscsi_initialize (ocs_os_handle_t os, ocs_iscsi_t *iscsi, ocs_hal_t *hal, uint32_t device_instance) |
| Initialize the iSCSI device by setting up the chip. More... | |
| void | ocs_iscsi_uninitialize (ocs_iscsi_t *iscsi) |
| Indicate that HAL is not initialized. More... | |
| int32_t | ocs_iscsi_teardown (ocs_iscsi_t *iscsi) |
| Shut down the device. More... | |
| void | ocs_iscsi_tracker_init (ocs_iscsi_mem_tracker_t *tracker) |
| Initialize the memory tracker. More... | |
| void | ocs_iscsi_tracker_free (ocs_iscsi_t *iscsi, ocs_iscsi_mem_tracker_t *tracker) |
| Free the memory associated with a memory tracker. More... | |
| int32_t | ocs_iscsi_tracker_alloc (ocs_iscsi_t *iscsi, ocs_iscsi_mem_tracker_t *tracker, uint8_t zero, uint32_t object_size, uint32_t alignment, uint32_t num_objects) |
| Allocate a group of objects uses pages to minimize waste. More... | |
| ocs_dma_t * | ocs_iscsi_tracker_calc (ocs_iscsi_mem_tracker_t *tracker, uint32_t obj_offset) |
| Helper to return the pointers for a specific object in the group. More... | |
| int32_t ocs_iscsi_initialize | ( | ocs_os_handle_t | os, |
| ocs_iscsi_t * | iscsi, | ||
| ocs_hal_t * | hal, | ||
| uint32_t | device_instance | ||
| ) |
Initialize the iSCSI device by setting up the chip.
| os | Pointer to the os structure that represents this device. |
| iscsi | Pointer to the iSCSI structure that represents this device. |
| hal | Pointer to the hal structure. Allocated in the OS specific code due to ties to the hardware interrupt. |
| device_instance | Counter of the number of devices. Used to build target names when non-global ramdisk is used. |
Definition at line 1505 of file ocs_iscsi.c.
| int32_t ocs_iscsi_interrupts_required | ( | ocs_os_handle_t | os, |
| ocs_hal_t * | hal | ||
| ) |
Returns the number of interrupts needed for this adapter.
| os | Pointer to the os structure that represents this device. |
| hal | Pointer to the hal structure. Allocated in the OS specific code due to ties to the hardware interrupt. |
Definition at line 1459 of file ocs_iscsi.c.
| int32_t ocs_iscsi_teardown | ( | ocs_iscsi_t * | iscsi | ) |
Shut down the device.
| iscsi | Pointer to the iSCSI structure that represents this device. |
Definition at line 1921 of file ocs_iscsi.c.
| int32_t ocs_iscsi_tracker_alloc | ( | ocs_iscsi_t * | iscsi, |
| ocs_iscsi_mem_tracker_t * | tracker, | ||
| uint8_t | zero, | ||
| uint32_t | object_size, | ||
| uint32_t | alignment, | ||
| uint32_t | num_objects | ||
| ) |
Allocate a group of objects uses pages to minimize waste.
| iscsi | Pointer to the iSCSI object. |
| tracker | Pointer to the tracker. |
| zero | If non-zero, then the memory will be zeroed. |
| object_size | The size of the objects in bytes. |
| alignment | Minimum byte alignment. |
| num_objects | Number of object to allocate. |
Definition at line 4331 of file ocs_iscsi.c.
| ocs_dma_t* ocs_iscsi_tracker_calc | ( | ocs_iscsi_mem_tracker_t * | tracker, |
| uint32_t | obj_offset | ||
| ) |
Helper to return the pointers for a specific object in the group.
| tracker | Pointer to the tracker. |
| obj_offset | Number of the object to retrieve. |
Definition at line 4429 of file ocs_iscsi.c.
| void ocs_iscsi_tracker_free | ( | ocs_iscsi_t * | iscsi, |
| ocs_iscsi_mem_tracker_t * | tracker | ||
| ) |
Free the memory associated with a memory tracker.
| iscsi | Pointer to the iSCSI object. |
| tracker | Pointer to the tracker. |
Definition at line 4293 of file ocs_iscsi.c.
| void ocs_iscsi_tracker_init | ( | ocs_iscsi_mem_tracker_t * | tracker | ) |
Initialize the memory tracker.
| tracker | Pointer to the tracker to initialize. |
Definition at line 4275 of file ocs_iscsi.c.
| void ocs_iscsi_uninitialize | ( | ocs_iscsi_t * | iscsi | ) |
Indicate that HAL is not initialized.
| iscsi | Pointer to the iSCSI structure that represents this device. |
Definition at line 1904 of file ocs_iscsi.c.