Lines Matching defs:scp
49 * @scp : associated scsi command
69 struct scsi_cmnd *scp;
199 #define SCP2HOST(scp) (scp)->device->host // to host
200 #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata // to soft state
201 #define SCP2CHANNEL(scp) (scp)->device->channel // to channel
202 #define SCP2TARGET(scp) (scp)->device->id // to target
203 #define SCP2LUN(scp) (u32)(scp)->device->lun // to LUN
207 #define SCP2ADAPTER(scp) (adapter_t *)SCSIHOST2ADAP(SCP2HOST(scp))
210 #define MRAID_IS_LOGICAL(adp, scp) \
211 (SCP2CHANNEL(scp) == (adp)->max_channel) ? 1 : 0
219 * @scp : mid-layer scsi command pointer
227 #define MRAID_GET_DEVICE_MAP(adp, scp, p_chan, target, islogical) \
231 islogical = MRAID_IS_LOGICAL(adp, scp); \
239 (adp)->device_ids[(adp)->max_channel][SCP2TARGET(scp)]; \
242 p_chan = ((adp)->device_ids[SCP2CHANNEL(scp)] \
243 [SCP2TARGET(scp)] >> 8) & 0xFF; \
244 target = ((adp)->device_ids[SCP2CHANNEL(scp)] \
245 [SCP2TARGET(scp)] & 0xFF); \