Lines Matching refs:cnt
324 uint16_t cnt;
379 if (req->cnt < (req_cnt + 2)) {
380 cnt = RD_REG_WORD_RELAXED(ISP_REQ_Q_OUT(ha, reg));
381 if (req->ring_index < cnt)
382 req->cnt = cnt - req->ring_index;
384 req->cnt = req->length -
385 (req->ring_index - cnt);
387 if (req->cnt < (req_cnt + 2))
395 req->cnt -= req_cnt;
1172 uint16_t cnt;
1225 if (req->cnt < (req_cnt + 2)) {
1226 cnt = RD_REG_DWORD_RELAXED(req->req_q_out);
1228 if (req->ring_index < cnt)
1229 req->cnt = cnt - req->ring_index;
1231 req->cnt = req->length -
1232 (req->ring_index - cnt);
1234 if (req->cnt < (req_cnt + 2))
1242 req->cnt -= req_cnt;
1324 uint16_t cnt;
1408 if (req->cnt < (req_cnt + 2)) {
1409 cnt = RD_REG_DWORD_RELAXED(req->req_q_out);
1411 if (req->ring_index < cnt)
1412 req->cnt = cnt - req->ring_index;
1414 req->cnt = req->length -
1415 (req->ring_index - cnt);
1418 if (req->cnt < (req_cnt + 2))
1427 req->cnt -= req_cnt;
1484 req->cnt += req_cnt;
1518 uint16_t cnt, req_cnt;
1546 if (req->cnt < req_cnt) {
1548 cnt = RD_REG_DWORD(®->isp25mq.req_q_out);
1550 cnt = RD_REG_DWORD(®->isp82.req_q_out);
1552 cnt = RD_REG_DWORD(®->isp24.req_q_out);
1554 cnt = qla2x00_debounce_register(
1557 if (req->ring_index < cnt)
1558 req->cnt = cnt - req->ring_index;
1560 req->cnt = req->length -
1561 (req->ring_index - cnt);
1563 if (req->cnt < req_cnt)
1567 req->cnt -= req_cnt;