• Home
  • Raw
  • Download

Lines Matching refs:cnt

287 	uint16_t	cnt;  in qla2x00_start_scsi()  local
342 if (req->cnt < (req_cnt + 2)) { in qla2x00_start_scsi()
343 cnt = RD_REG_WORD_RELAXED(ISP_REQ_Q_OUT(ha, reg)); in qla2x00_start_scsi()
344 if (req->ring_index < cnt) in qla2x00_start_scsi()
345 req->cnt = cnt - req->ring_index; in qla2x00_start_scsi()
347 req->cnt = req->length - in qla2x00_start_scsi()
348 (req->ring_index - cnt); in qla2x00_start_scsi()
350 if (req->cnt < (req_cnt + 2)) in qla2x00_start_scsi()
358 req->cnt -= req_cnt; in qla2x00_start_scsi()
498 uint16_t cnt; in qla2x00_req_pkt() local
505 if ((req_cnt + 2) >= req->cnt) { in qla2x00_req_pkt()
508 cnt = (uint16_t) in qla2x00_req_pkt()
512 cnt = (uint16_t)RD_REG_DWORD( in qla2x00_req_pkt()
515 cnt = qla2x00_debounce_register( in qla2x00_req_pkt()
518 if (req->ring_index < cnt) in qla2x00_req_pkt()
519 req->cnt = cnt - req->ring_index; in qla2x00_req_pkt()
521 req->cnt = req->length - in qla2x00_req_pkt()
522 (req->ring_index - cnt); in qla2x00_req_pkt()
525 if ((req_cnt + 2) < req->cnt) { in qla2x00_req_pkt()
526 req->cnt--; in qla2x00_req_pkt()
531 for (cnt = 0; cnt < REQUEST_ENTRY_SIZE / 4; cnt++) in qla2x00_req_pkt()
719 uint16_t cnt; in qla24xx_start_scsi() local
778 if (req->cnt < (req_cnt + 2)) { in qla24xx_start_scsi()
779 cnt = ha->isp_ops->rd_req_reg(ha, req->id); in qla24xx_start_scsi()
781 if (req->ring_index < cnt) in qla24xx_start_scsi()
782 req->cnt = cnt - req->ring_index; in qla24xx_start_scsi()
784 req->cnt = req->length - in qla24xx_start_scsi()
785 (req->ring_index - cnt); in qla24xx_start_scsi()
787 if (req->cnt < (req_cnt + 2)) in qla24xx_start_scsi()
794 req->cnt -= req_cnt; in qla24xx_start_scsi()