Go to the source code of this file.
Data Structures | |
| struct | ocs_xport_fcfi_t |
| FCFI lookup/pending frames. More... | |
| struct | ocs_xport_rq_thread_info_t |
| Structure to hold the information related to an RQ processing thread used to increase 40G performance. More... | |
| struct | ocs_xport_link_stats_t |
| struct | ocs_xport_host_stats_t |
| struct | ocs_xport_fcp_statistics_t |
| struct | ocs_xport_host_statistics_t |
| union | ocs_xport_stats_t |
| struct | ocs_xport_t |
| Transport private values. More... | |
Functions | |
| ocs_xport_t * | ocs_xport_alloc (ocs_t *ocs) |
| Allocate a transport object. More... | |
| int32_t | ocs_xport_attach (ocs_xport_t *xport) |
| Do as much allocation as possible, but do not initialization the device. More... | |
| int32_t | ocs_xport_initialize (ocs_xport_t *xport) |
| Initializes the device. More... | |
| int32_t | ocs_xport_detach (ocs_xport_t *xport) |
| Detaches the transport from the device. More... | |
| int32_t | ocs_xport_control (ocs_xport_t *xport, ocs_xport_ctrl_e cmd,...) |
| Perform transport attach function. More... | |
| int32_t | ocs_xport_status (ocs_xport_t *xport, ocs_xport_status_e cmd, ocs_xport_stats_t *result) |
| Return status on a link. More... | |
| void | ocs_xport_free (ocs_xport_t *xport) |
| Free a transport object. More... | |
| void | ocs_xport_config_stats_timer (void *arg) |
| Get FC link and host Statistics periodically. More... | |
| void | ocs_device_stop_stats_timers (ocs_t *ocs) |
| int32_t | ocs_xport_cb (void *arg, ocs_hal_xport_event_e event) |
| callback function for xport from HAL. More... | |
| enum ocs_xport_ctrl_e |
| Enumerator | |
|---|---|
| OCS_XPORT_PORT_ONLINE | |
| OCS_XPORT_PORT_OFFLINE | |
| OCS_XPORT_SHUTDOWN | |
| OCS_XPORT_POST_NODE_EVENT | |
| OCS_XPORT_WWNN_SET | |
| OCS_XPORT_WWPN_SET | |
Definition at line 63 of file ocs_xport.h.
| enum ocs_xport_status_e |
Definition at line 72 of file ocs_xport.h.
| void ocs_device_stop_stats_timers | ( | ocs_t * | ocs | ) |
Definition at line 1319 of file ocs_xport.c.
| ocs_xport_t* ocs_xport_alloc | ( | ocs_t * | ocs | ) |
Allocate a transport object.
| ocs | Pointer to device instance. |
Definition at line 71 of file ocs_xport.c.
| int32_t ocs_xport_attach | ( | ocs_xport_t * | xport | ) |
Do as much allocation as possible, but do not initialization the device.
| xport | Pointer to transport object. |
Definition at line 193 of file ocs_xport.c.
| int32_t ocs_xport_cb | ( | void * | arg, |
| ocs_hal_xport_event_e | event | ||
| ) |
callback function for xport from HAL.
| OCS | context. |
Definition at line 1428 of file ocs_xport.c.
| void ocs_xport_config_stats_timer | ( | void * | arg | ) |
Get FC link and host Statistics periodically.
| hal | Hardware context. |
Definition at line 1354 of file ocs_xport.c.
| int32_t ocs_xport_control | ( | ocs_xport_t * | xport, |
| ocs_xport_ctrl_e | cmd, | ||
| ... | |||
| ) |
Perform transport attach function.
| xport | pointer to transport object. |
| cmd | command to execute. |
ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_ONLINE) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_OFFLINE) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_PORT_SHUTDOWN) ocs_xport_control(ocs_xport_t *xport, OCS_XPORT_POST_NODE_EVENT, ocs_node_t *node, ocs_sm_event_t, void *context)
Definition at line 866 of file ocs_xport.c.
| int32_t ocs_xport_detach | ( | ocs_xport_t * | xport | ) |
Detaches the transport from the device.
| xport | Pointer to transport object. |
Definition at line 735 of file ocs_xport.c.
| void ocs_xport_free | ( | ocs_xport_t * | xport | ) |
Free a transport object.
| xport | Pointer to transport object. |
Definition at line 1394 of file ocs_xport.c.
| int32_t ocs_xport_initialize | ( | ocs_xport_t * | xport | ) |
Initializes the device.
| xport | Pointer to transport object. |
Definition at line 509 of file ocs_xport.c.
| int32_t ocs_xport_status | ( | ocs_xport_t * | xport, |
| ocs_xport_status_e | cmd, | ||
| ocs_xport_stats_t * | result | ||
| ) |
Return status on a link.
| xport | Pointer to transport object. |
| cmd | Command to execute. |
| result | Pointer to result value. |
ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_PORT_STATUS) ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_LINK_SPEED, ocs_xport_stats_t *result) return link speed in MB/sec ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_IS_SUPPORTED_LINK_SPEED, ocs_xport_stats_t *result) [in] *result is speed to check in MB/s returns 1 if supported, 0 if not ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_LINK_STATISTICS, ocs_xport_stats_t *result) return link/host port stats ocs_xport_status(ocs_xport_t *xport, OCS_XPORT_LINK_STAT_RESET, ocs_xport_stats_t *result) resets link/host stats
Definition at line 1073 of file ocs_xport.c.