Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
remote_node_table.c File Reference
#include "remote_node_table.h"
#include "remote_node_context.h"

Go to the source code of this file.

Functions

void sci_remote_node_table_initialize (struct sci_remote_node_table *remote_node_table, u32 remote_node_entries)
 
u16 sci_remote_node_table_allocate_remote_node (struct sci_remote_node_table *remote_node_table, u32 remote_node_count)
 
void sci_remote_node_table_release_remote_node_index (struct sci_remote_node_table *remote_node_table, u32 remote_node_count, u16 remote_node_index)
 

Function Documentation

u16 sci_remote_node_table_allocate_remote_node ( struct sci_remote_node_table remote_node_table,
u32  remote_node_count 
)

: This is the remote node table from which the remote node allocation is to take place. : This is ther remote node count which is one of SCU_SSP_REMOTE_NODE_COUNT(1) or SCU_STP_REMOTE_NODE_COUNT(3).

This method will allocate a remote node that mataches the remote node count specified by the caller. Valid values for remote node count is SCU_SSP_REMOTE_NODE_COUNT(1) or SCU_STP_REMOTE_NODE_COUNT(3). u16 This is the remote node index that is returned or an invalid remote node context.

Definition at line 476 of file remote_node_table.c.

void sci_remote_node_table_initialize ( struct sci_remote_node_table remote_node_table,
u32  remote_node_entries 
)

]: remote_node_table The remote that which is to be initialized. : The number of entries to put in the table.

This method will initialize the remote node table for use. none

Definition at line 316 of file remote_node_table.c.

void sci_remote_node_table_release_remote_node_index ( struct sci_remote_node_table remote_node_table,
u32  remote_node_count,
u16  remote_node_index 
)

: The remote node table to which the remote node index is to be freed. : This is the count of consecutive remote nodes that are to be freed.

This method will release the remote node index back into the remote node table free pool.

Definition at line 585 of file remote_node_table.c.