FreeBSD/sys/dev/isci/scil/scic_sds_remote_node_table.c
/**
 * This method will return the group value for the specified group index.
 *
 * @param[in] remote_node_table This is the remote node table that for which
 *       the group value is to be returned.
 * @param[in] group_index This is the group index to use to find the group
 *       value.
 *
 * @return The bit values at the specified remote node group index.
 */
This method will return the group value for the specified group index.
@param[in] remote_node_table This is the remote node table that for which
the group value is to be returned.
@param[in] group_index This is the group index to use to find the group
value.

@return The bit values at the specified remote node group index.
This method will return the group value for the specified group index . @param [ in ] remote_node_table This is the remote node table that for which the group value is to be returned . @param [ in ] group_index This is the group index to use to find the group value . @return The bit values at the specified remote node group index .
static
U8 scic_sds_remote_node_table_get_group_value(
   SCIC_REMOTE_NODE_TABLE_T * remote_node_table,
   U32                        group_index
)
{
   U32 dword_location;
   U32 dword_remainder;
   U32 dword_value;
   dword_location  = group_index / SCIC_SDS_REMOTE_NODE_SETS_PER_DWORD;
   dword_remainder = group_index % SCIC_SDS_REMOTE_NODE_SETS_PER_DWORD;
   dword_value = remote_node_table->available_remote_nodes[dword_location];
   dword_value &= (SCIC_SDS_REMOTE_NODE_TABLE_FULL_SLOT_VALUE << (dword_remainder * 4));
   dword_value = dword_value >> (dword_remainder * 4);
   return (U8)dword_value;
}
static U8 scic_sds_remote_node_table_get_group_value ( SCIC_REMOTE_NODE_TABLE_T * remote_node_table , U32 group_index ) { U32 dword_location ; U32 dword_remainder ; U32 dword_value ; dword_location = group_index / SCIC_SDS_REMOTE_NODE_SETS_PER_DWORD ; dword_remainder = group_index % SCIC_SDS_REMOTE_NODE_SETS_PER_DWORD ; dword_value = remote_node_table -> available_remote_nodes [ dword_location ] ; dword_value &= ( SCIC_SDS_REMOTE_NODE_TABLE_FULL_SLOT_VALUE << ( dword_remainder * 4 ) ) ; dword_value = dword_value >> ( dword_remainder * 4 ) ; return ( U8 ) dword_value ; }
This method will return the group value for the specified group index.
This method will return the group value for the specified group index .