Lines Matching defs:sdev
282 struct scsi_device *sdev = cmd->device;
291 tp = &np->target[sdev->id];
296 lp = sym_lp(tp, sdev->lun);
715 static int sym53c8xx_slave_alloc(struct scsi_device *sdev)
717 struct sym_hcb *np = sym_get_hcb(sdev->host);
718 struct sym_tcb *tp = &np->target[sdev->id];
723 if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN)
739 starget_printk(KERN_INFO, sdev->sdev_target,
746 if (sdev->lun != 0) {
750 starget_printk(KERN_INFO, sdev->sdev_target,
754 lp = sym_alloc_lcb(np, sdev->id, sdev->lun);
760 tp->starget = sdev->sdev_target;
775 static int sym53c8xx_slave_configure(struct scsi_device *sdev)
777 struct sym_hcb *np = sym_get_hcb(sdev->host);
778 struct sym_tcb *tp = &np->target[sdev->id];
779 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
796 if (!sdev->tagged_supported)
801 scsi_change_queue_depth(sdev, depth_to_use);
803 sym_tune_dev_queuing(tp, sdev->lun, reqtags);
805 if (!spi_initial_dv(sdev->sdev_target))
806 spi_dv_device(sdev);
811 static void sym53c8xx_slave_destroy(struct scsi_device *sdev)
813 struct sym_hcb *np = sym_get_hcb(sdev->host);
814 struct sym_tcb *tp = &np->target[sdev->id];
815 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
830 "Removing busy LCB (%d)\n", (u8)sdev->lun);
834 if (sym_free_lcb(np, sdev->id, sdev->lun) == 0) {