Lines Matching refs:sg_cnt
1475 BUG_ON(cmd->sg_cnt == 0); in qlt_pci_map_calc_cnt()
1479 cmd->sg_cnt, cmd->dma_data_direction); in qlt_pci_map_calc_cnt()
1500 0, prm->cmd->sg_cnt); in qlt_pci_map_calc_cnt()
1510 pci_unmap_sg(ha->pdev, cmd->sg, cmd->sg_cnt, cmd->dma_data_direction); in qlt_unmap_sg()
1930 if (qlt_has_data(cmd) && (cmd->sg_cnt > 1) && in qlt_check_srr_debug()
1936 leave = qlt_srr_random() % cmd->sg_cnt; in qlt_check_srr_debug()
1945 cmd->bufflen, cmd->sg_cnt); in qlt_check_srr_debug()
1948 cmd->sg_cnt = leave; in qlt_check_srr_debug()
2058 1 : 0, cmd->bufflen, cmd->sg_cnt, cmd->dma_data_direction); in qlt_xmit_response()
3014 cmd, cmd->sg, cmd->sg_cnt, cmd->dma_data_direction); in qlt_set_data_offset()
3023 if (!cmd->sg || !cmd->sg_cnt) { in qlt_set_data_offset()
3032 for_each_sg(cmd->sg, sg, cmd->sg_cnt, i) { in qlt_set_data_offset()
3055 sg_srr_cnt = (cmd->sg_cnt - i); in qlt_set_data_offset()
3085 cmd->sg_cnt = sg_srr_cnt; in qlt_set_data_offset()
3092 cmd->sg_cnt); in qlt_set_data_offset()
3098 if (cmd->sg_cnt < 0) in qlt_set_data_offset()
3161 if (!cmd->sg || !cmd->sg_cnt) { in qlt_handle_srr()
3194 if (!cmd->sg || !cmd->sg_cnt) { in qlt_handle_srr()
3336 cmd->sg_cnt = se_cmd->t_data_nents; in qlt_handle_srr_work()
3342 se_cmd->t_task_cdb[0], cmd->sg_cnt, cmd->offset); in qlt_handle_srr_work()