Lines Matching refs:sdb
595 if (cmd->sdb.table.nents) in scsi_free_sgtables()
596 sg_free_table_chained(&cmd->sdb.table, in scsi_free_sgtables()
1153 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
1154 cmd->sdb.table.sgl, SCSI_INLINE_SG_CNT))) in scsi_alloc_sgtables()
1161 count = __blk_rq_map_sg(rq, cmd->sdb.table.sgl, &last_sg); in scsi_alloc_sgtables()
1181 BUG_ON(count > cmd->sdb.table.nents); in scsi_alloc_sgtables()
1182 cmd->sdb.table.nents = count; in scsi_alloc_sgtables()
1183 cmd->sdb.length = blk_rq_payload_bytes(rq); in scsi_alloc_sgtables()
1308 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_setup_scsi_cmnd()
1686 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_prepare_cmd()
1703 cmd->sdb.table.sgl = sg; in scsi_prepare_cmd()