Functions | |
| ocs_node_t * | ocs_node_find (ocs_sport_t *sport, uint32_t port_id) |
| Find an FC node structure given the FC port ID. More... | |
| ocs_node_t * | ocs_node_find_wwpn (ocs_sport_t *sport, uint64_t wwpn) |
| Find an FC node structure given the WWPN. More... | |
| ocs_node_t * | ocs_node_find_wwnn (ocs_sport_t *sport, uint64_t wwnn) |
| Find an FC node structure given the WWNN. More... | |
| int32_t | ocs_node_create_pool (ocs_t *ocs, uint32_t node_count) |
| allocate node object pool More... | |
| void | ocs_node_free_pool (ocs_t *ocs) |
| free node object pool More... | |
| ocs_node_t * | ocs_node_get_instance (ocs_t *ocs, uint32_t index) |
| return pointer to node object given instance index More... | |
| ocs_node_t * | ocs_node_alloc (ocs_sport_t *sport, uint32_t port_id, uint8_t init, uint8_t targ) |
| Allocate an fc node structure and add to node list. More... | |
| int32_t | ocs_node_free (ocs_node_t *node) |
| free a node structure More... | |
| ocs_node_t* ocs_node_alloc | ( | ocs_sport_t * | sport, |
| uint32_t | port_id, | ||
| uint8_t | init, | ||
| uint8_t | targ | ||
| ) |
Allocate an fc node structure and add to node list.
| sport | pointer to the SPORT from which this node is allocated |
| port_id | FC port ID of new node |
| init | Port is an inititiator (sent a plogi) |
| targ | Port is potentially a target |
Definition at line 415 of file ocs_node.c.
| int32_t ocs_node_create_pool | ( | ocs_t * | ocs, |
| uint32_t | node_count | ||
| ) |
allocate node object pool
A pool of ocs_node_t objects is allocated.
| ocs | pointer to driver instance context |
| node_count | count of nodes to allocate |
Definition at line 281 of file ocs_node.c.
| ocs_node_t* ocs_node_find | ( | ocs_sport_t * | sport, |
| uint32_t | port_id | ||
| ) |
Find an FC node structure given the FC port ID.
| sport | the SPORT to search |
| port_id | FC port ID |
Definition at line 202 of file ocs_node.c.
| ocs_node_t* ocs_node_find_wwnn | ( | ocs_sport_t * | sport, |
| uint64_t | wwnn | ||
| ) |
Find an FC node structure given the WWNN.
| sport | the SPORT to search |
| wwnn | the WWNN to search for (host endian) |
Definition at line 250 of file ocs_node.c.
| ocs_node_t* ocs_node_find_wwpn | ( | ocs_sport_t * | sport, |
| uint64_t | wwpn | ||
| ) |
Find an FC node structure given the WWPN.
| sport | the SPORT to search |
| wwpn | the WWPN to search for (host endian) |
Definition at line 223 of file ocs_node.c.
| int32_t ocs_node_free | ( | ocs_node_t * | node | ) |
free a node structure
The node structure given by 'node' is free'd
| node | the node to free |
Definition at line 510 of file ocs_node.c.
| void ocs_node_free_pool | ( | ocs_t * | ocs | ) |
free node object pool
The pool of previously allocated node objects is freed
| ocs | pointer to driver instance context |
Definition at line 350 of file ocs_node.c.
| ocs_node_t* ocs_node_get_instance | ( | ocs_t * | ocs, |
| uint32_t | index | ||
| ) |
return pointer to node object given instance index
A pointer to the node object given by an instance index is returned.
| ocs | pointer to driver instance context |
| index | instance index |
Definition at line 389 of file ocs_node.c.