FreeBSD/sys/dev/isci/scil/scic_sds_remote_node_context.c
/**
* This method will mark the rnc buffer as being valid and post the request to
* the hardware.
*
* @param[in] this_rnc The remote node context object that is to be
*            validated.
*
* @return none
*/
This method will mark the rnc buffer as being valid and post the request to
the hardware.
This method will mark the rnc buffer as being valid and post the request to the hardware .
static
void scic_sds_remote_node_context_validate_context_buffer(
   SCIC_SDS_REMOTE_NODE_CONTEXT_T * this_rnc
)
{
   SCU_REMOTE_NODE_CONTEXT_T *rnc_buffer;
   rnc_buffer = scic_sds_controller_get_remote_node_context_buffer(
      scic_sds_remote_device_get_controller(this_rnc->device),
      this_rnc->remote_node_index
         );
   rnc_buffer->ssp.is_valid = TRUE;
   if (
      !this_rnc->device->is_direct_attached
         && this_rnc->device->target_protocols.u.bits.attached_stp_target
         )
   {
      scic_sds_remote_device_post_request(
         this_rnc->device,
         SCU_CONTEXT_COMMAND_POST_RNC_96
            );
   }
   else
   {
      scic_sds_remote_device_post_request(
         this_rnc->device,
         SCU_CONTEXT_COMMAND_POST_RNC_32
            );
      if (this_rnc->device->is_direct_attached)
      {
         scic_sds_port_setup_transports(
            this_rnc->device->owning_port,
            this_rnc->remote_node_index
               );
      }
   }
}
static void scic_sds_remote_node_context_validate_context_buffer ( SCIC_SDS_REMOTE_NODE_CONTEXT_T * this_rnc ) { SCU_REMOTE_NODE_CONTEXT_T * rnc_buffer ; rnc_buffer = scic_sds_controller_get_remote_node_context_buffer ( scic_sds_remote_device_get_controller ( this_rnc -> device ) , this_rnc -> remote_node_index ) ; rnc_buffer -> ssp . is_valid = TRUE ; if ( ! this_rnc -> device -> is_direct_attached && this_rnc -> device -> target_protocols . u . bits . attached_stp_target ) { scic_sds_remote_device_post_request ( this_rnc -> device , SCU_CONTEXT_COMMAND_POST_RNC_96 ) ; } else { scic_sds_remote_device_post_request ( this_rnc -> device , SCU_CONTEXT_COMMAND_POST_RNC_32 ) ; if ( this_rnc -> device -> is_direct_attached ) { scic_sds_port_setup_transports ( this_rnc -> device -> owning_port , this_rnc -> remote_node_index ) ; } } }
This method will mark the rnc buffer as being valid and post the request to
the hardware.
This method will mark the rnc buffer as being valid and post the request to the hardware .