Lines Matching defs:sdp
2378 static int scsi_debug_slave_alloc(struct scsi_device *sdp)
2382 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
2383 queue_flag_set_unlocked(QUEUE_FLAG_BIDI, sdp->request_queue);
2387 static int scsi_debug_slave_configure(struct scsi_device *sdp)
2393 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
2394 if (sdp->host->max_cmd_len != SCSI_DEBUG_MAX_CMD_LEN)
2395 sdp->host->max_cmd_len = SCSI_DEBUG_MAX_CMD_LEN;
2396 devip = devInfoReg(sdp);
2399 sdp->hostdata = devip;
2400 if (sdp->host->cmd_per_lun)
2401 scsi_adjust_queue_depth(sdp, SDEBUG_TAGGED_QUEUING,
2402 sdp->host->cmd_per_lun);
2403 blk_queue_max_segment_size(sdp->request_queue, 256 * 1024);
2405 sdp->no_uld_attach = 1;
2409 static void scsi_debug_slave_destroy(struct scsi_device *sdp)
2412 (struct sdebug_dev_info *)sdp->hostdata;
2416 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
2420 sdp->hostdata = NULL;
2514 struct scsi_device * sdp;
2520 if (SCpnt && ((sdp = SCpnt->device)) && ((hp = sdp->host))) {
2625 struct scsi_device * sdp = cmnd->device;
2628 "non-zero result=0x%x\n", sdp->host->host_no,
2629 sdp->channel, sdp->id, sdp->lun, scsi_result);