FreeBSD/sys/dev/isci/isci_io_request.c
/**
 * @brief This callback method asks the user to provide the contents of the
 *        "length" field in the Scatter-Gather Element.
 *
 * @param[in] scif_user_io_request This parameter points to the user's
 *            IO request object.  It is a cookie that allows the user to
 *            provide the necessary information for this callback.
 * @param[in] sge_address This parameter specifies the address for the
 *            SGE from which to retrieve the address field.
 *
 * @return This method returns the length field specified inside the SGE
 *         referenced by the sge_address parameter.
 */
@brief This callback method asks the user to provide the contents of the
"length" field in the Scatter-Gather Element.

@param[in] scif_user_io_request This parameter points to the user's
IO request object.  It is a cookie that allows the user to
provide the necessary information for this callback.
@param[in] sge_address This parameter specifies the address for the
SGE from which to retrieve the address field.

@return This method returns the length field specified inside the SGE
referenced by the sge_address parameter.
@brief This callback method asks the user to provide the contents of the " length " field in the Scatter - Gather Element . @param [ in ] scif_user_io_request This parameter points to the user ' s IO request object . It is a cookie that allows the user to provide the necessary information for this callback . @param [ in ] sge_address This parameter specifies the address for the SGE from which to retrieve the address field . @return This method returns the length field specified inside the SGE referenced by the sge_address parameter .
uint32_t
scif_cb_sge_get_length_field(void *scif_user_io_request, void *sge_address)
{
	bus_dma_segment_t *sge = (bus_dma_segment_t *)sge_address;
	return ((uint32_t)sge->ds_len);
}
uint32_t scif_cb_sge_get_length_field ( void * scif_user_io_request , void * sge_address ) { bus_dma_segment_t * sge = ( bus_dma_segment_t * ) sge_address ; return ( ( uint32_t ) sge -> ds_len ) ; }
@brief This callback method asks the user to provide the contents of the
        "length" field in the Scatter-Gather Element.
@brief This callback method asks the user to provide the contents of the " length " field in the Scatter - Gather Element .