Lines Matching refs:sg_count
309 int sg_count) in fnic_queue_wq_copy_desc() argument
322 if (sg_count) { in fnic_queue_wq_copy_desc()
325 for_each_sg(scsi_sglist(sc), sg, sg_count, i) { in fnic_queue_wq_copy_desc()
334 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc()
348 sizeof(io_req->sgl_list[0]) * sg_count, in fnic_queue_wq_copy_desc()
423 int sg_count = 0; in fnic_queuecommand_lck() local
501 sg_count = scsi_dma_map(sc); in fnic_queuecommand_lck()
502 if (sg_count < 0) { in fnic_queuecommand_lck()
504 tag, sc, 0, sc->cmnd[0], sg_count, fnic_priv(sc)->state); in fnic_queuecommand_lck()
510 io_req->sgl_cnt = sg_count; in fnic_queuecommand_lck()
512 if (sg_count > FNIC_DFLT_SG_DESC_CNT) in fnic_queuecommand_lck()
515 if (sg_count) { in fnic_queuecommand_lck()
555 ret = fnic_queue_wq_copy_desc(fnic, wq, io_req, sc, sg_count); in fnic_queuecommand_lck()
593 tag, sc, io_req, sg_count, cmd_trace, in fnic_queuecommand_lck()