FreeBSD/sys/dev/isci/scil/scic_sds_controller.c
/**
 * @brief This method returns a TRUE value if the completion queue has
 *        entries that can be processed
 *
 * @param[in] this_controller
 *
 * @return BOOL
 * @retval TRUE if the completion queue has entries to process
 *         FALSE if the completion queue has no entries to process
 */
@brief This method returns a TRUE value if the completion queue has
entries that can be processed



@return BOOL
@retval TRUE if the completion queue has entries to process
FALSE if the completion queue has no entries to process
@brief This method returns a TRUE value if the completion queue has entries that can be processed @return BOOL @retval TRUE if the completion queue has entries to process FALSE if the completion queue has no entries to process
static
BOOL scic_sds_controller_completion_queue_has_entries(
   SCIC_SDS_CONTROLLER_T *this_controller
)
{
   U32 get_value = this_controller->completion_queue_get;
   U32 get_index = get_value & SMU_COMPLETION_QUEUE_GET_POINTER_MASK;
   if (
           NORMALIZE_GET_POINTER_CYCLE_BIT(get_value)
        == COMPLETION_QUEUE_CYCLE_BIT(this_controller->completion_queue[get_index])
      )
   {
      return TRUE;
   }
   return FALSE;
}
static BOOL scic_sds_controller_completion_queue_has_entries ( SCIC_SDS_CONTROLLER_T * this_controller ) { U32 get_value = this_controller -> completion_queue_get ; U32 get_index = get_value & SMU_COMPLETION_QUEUE_GET_POINTER_MASK ; if ( NORMALIZE_GET_POINTER_CYCLE_BIT ( get_value ) == COMPLETION_QUEUE_CYCLE_BIT ( this_controller -> completion_queue [ get_index ] ) ) { return TRUE ; } return FALSE ; }
@brief This method returns a TRUE value if the completion queue has
        entries that can be processed
@brief This method returns a TRUE value if the completion queue has entries that can be processed