Lines Matching refs:sdb
586 if (cmd->sdb.table.nents) in scsi_free_sgtables()
587 sg_free_table_chained(&cmd->sdb.table, in scsi_free_sgtables()
1144 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
1145 cmd->sdb.table.sgl, SCSI_INLINE_SG_CNT))) in scsi_alloc_sgtables()
1152 count = __blk_rq_map_sg(rq->q, rq, cmd->sdb.table.sgl, &last_sg); in scsi_alloc_sgtables()
1172 BUG_ON(count > cmd->sdb.table.nents); in scsi_alloc_sgtables()
1173 cmd->sdb.table.nents = count; in scsi_alloc_sgtables()
1174 cmd->sdb.length = blk_rq_payload_bytes(rq); in scsi_alloc_sgtables()
1295 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_setup_scsi_cmnd()
1662 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_prepare_cmd()
1679 cmd->sdb.table.sgl = sg; in scsi_prepare_cmd()