Lines Matching refs:sdb
585 if (cmd->sdb.table.nents) in scsi_free_sgtables()
586 sg_free_table_chained(&cmd->sdb.table, in scsi_free_sgtables()
1143 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
1144 cmd->sdb.table.sgl, SCSI_INLINE_SG_CNT))) in scsi_alloc_sgtables()
1151 count = __blk_rq_map_sg(rq, cmd->sdb.table.sgl, &last_sg); in scsi_alloc_sgtables()
1171 BUG_ON(count > cmd->sdb.table.nents); in scsi_alloc_sgtables()
1172 cmd->sdb.table.nents = count; in scsi_alloc_sgtables()
1173 cmd->sdb.length = blk_rq_payload_bytes(rq); in scsi_alloc_sgtables()
1298 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_setup_scsi_cmnd()
1665 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_prepare_cmd()
1682 cmd->sdb.table.sgl = sg; in scsi_prepare_cmd()