Lines Matching refs:sg_entry_cnt

6865 		ushort sg_entry_cnt;  in AscIsrChipHalted()  local
6920 sg_entry_cnt = ASC_MAX_SG_LIST - 1; in AscIsrChipHalted()
6928 sg_entry_cnt = scsiq->remain_sg_entry_cnt; in AscIsrChipHalted()
6943 if (sg_entry_cnt > ASC_SG_LIST_PER_Q) { in AscIsrChipHalted()
6945 sg_entry_cnt -= ASC_SG_LIST_PER_Q; in AscIsrChipHalted()
6969 sg_list_dwords = sg_entry_cnt << 1; in AscIsrChipHalted()
6970 scsi_sg_q.sg_list_cnt = sg_entry_cnt - 1; in AscIsrChipHalted()
6971 scsi_sg_q.sg_cur_list_cnt = sg_entry_cnt - 1; in AscIsrChipHalted()
6972 sg_entry_cnt = 0; in AscIsrChipHalted()
8366 ushort sg_entry_cnt; in AscPutReadySgListQueue() local
8391 sg_entry_cnt = ASC_MAX_SG_LIST - 1; in AscPutReadySgListQueue()
8406 sg_entry_cnt = sg_head->entry_cnt - 1; in AscPutReadySgListQueue()
8410 if (sg_entry_cnt != 0) { in AscPutReadySgListQueue()
8419 if (sg_entry_cnt > ASC_SG_LIST_PER_Q) { in AscPutReadySgListQueue()
8421 sg_entry_cnt -= ASC_SG_LIST_PER_Q; in AscPutReadySgListQueue()
8449 sg_list_dwords = sg_entry_cnt << 1; in AscPutReadySgListQueue()
8451 scsi_sg_q.sg_list_cnt = sg_entry_cnt; in AscPutReadySgListQueue()
8453 sg_entry_cnt; in AscPutReadySgListQueue()
8456 sg_entry_cnt - 1; in AscPutReadySgListQueue()
8458 sg_entry_cnt - 1; in AscPutReadySgListQueue()
8460 sg_entry_cnt = 0; in AscPutReadySgListQueue()
8556 ushort sg_entry_cnt = 0; in AscExeScsiQueue() local
8600 if ((sg_entry_cnt = sg_head->entry_cnt) == 0) { in AscExeScsiQueue()
8605 if (sg_entry_cnt > ASC_MAX_SG_LIST) { in AscExeScsiQueue()
8610 if (sg_entry_cnt == 1) { in AscExeScsiQueue()
8617 sg_entry_cnt_minus_one = sg_entry_cnt - 1; in AscExeScsiQueue()
8625 for (i = 0; i < sg_entry_cnt; i++) { in AscExeScsiQueue()
8709 if (sg_entry_cnt > ASC_MAX_SG_LIST) { in AscExeScsiQueue()
8710 sg_entry_cnt = ASC_MAX_SG_LIST; in AscExeScsiQueue()
8713 n_q_required = AscSgListToQueue(sg_entry_cnt); in AscExeScsiQueue()