Lines Matching full:scp
49 * @scp : associated scsi command
69 struct scsi_cmnd *scp; member
199 #define SCP2HOST(scp) (scp)->device->host // to host argument
200 #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata // to soft state argument
201 #define SCP2CHANNEL(scp) (scp)->device->channel // to channel argument
202 #define SCP2TARGET(scp) (scp)->device->id // to target argument
203 #define SCP2LUN(scp) (u32)(scp)->device->lun // to LUN argument
207 #define SCP2ADAPTER(scp) (adapter_t *)SCSIHOST2ADAP(SCP2HOST(scp)) argument
210 #define MRAID_IS_LOGICAL(adp, scp) \ argument
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) \ argument
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); \