kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_send_wait                                              */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Send a command to the controller and wait for it to return             */
/*                                                                          */
/****************************************************************************/


Routine Description.

Send a command to the controller and wait for it to return
Routine Description . Send a command to the controller and wait for it to return
static int
ips_send_wait(ips_ha_t *ha, ips_scb_t *scb, int timeout, int intr) {
   int       ret;
   METHOD_TRACE("ips_send_wait", 1);
   ha->waitflag = TRUE;
   ha->cmd_in_progress = scb->cdb[0];
   ret = ips_send(ha, scb, ipsintr_blocking);
   if ((ret == IPS_FAILURE) || (ret == IPS_SUCCESS_IMM))
      return (ret);
   ret = ips_wait(ha, timeout, intr);
   return (ret);
}
static int ips_send_wait ( ips_ha_t * ha , ips_scb_t * scb , int timeout , int intr ) { int ret ; METHOD_TRACE ( " " , 1 ) ; ha -> waitflag = TRUE ; ha -> cmd_in_progress = scb -> cdb [ 0 ] ; ret = ips_send ( ha , scb , ipsintr_blocking ) ; if ( ( ret == IPS_FAILURE ) || ( ret == IPS_SUCCESS_IMM ) ) return ( ret ) ; ret = ips_wait ( ha , timeout , intr ) ; return ( ret ) ; }
Routine Name: ips_send_wait
Routine Name : ips_send_wait