FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This method returns the task context buffer for the given io tag.
 *
 * @param[in] this_controller
 * @param[in] io_tag
 *
 * @return struct SCU_TASK_CONTEXT*
 */
@brief This method returns the task context buffer for the given io tag.


@brief This method returns the task context buffer for the given io tag .
SCU_TASK_CONTEXT_T * scic_sds_controller_get_task_context_buffer(
   SCIC_SDS_CONTROLLER_T * this_controller,
   U16                     io_tag
)
{
   U16 task_index = scic_sds_io_tag_get_index(io_tag);
   if (task_index < this_controller->task_context_entries)
   {
      return &this_controller->task_context_table[task_index];
   }
   return NULL;
}
SCU_TASK_CONTEXT_T * scic_sds_controller_get_task_context_buffer ( SCIC_SDS_CONTROLLER_T * this_controller , U16 io_tag ) { U16 task_index = scic_sds_io_tag_get_index ( io_tag ) ; if ( task_index < this_controller -> task_context_entries ) { return & this_controller -> task_context_table [ task_index ] ; } return NULL ; }
@brief This method returns the task context buffer for the given io tag.
@brief This method returns the task context buffer for the given io tag .