Lines Matching defs:sdev
285 struct scsi_device *sdev = cmd->device;
294 tp = &np->target[sdev->id];
299 lp = sym_lp(tp, sdev->lun);
720 static int sym53c8xx_slave_alloc(struct scsi_device *sdev)
722 struct sym_hcb *np = sym_get_hcb(sdev->host);
723 struct sym_tcb *tp = &np->target[sdev->id];
728 if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN)
744 starget_printk(KERN_INFO, sdev->sdev_target,
751 if (sdev->lun != 0) {
755 starget_printk(KERN_INFO, sdev->sdev_target,
759 lp = sym_alloc_lcb(np, sdev->id, sdev->lun);
765 tp->starget = sdev->sdev_target;
780 static int sym53c8xx_slave_configure(struct scsi_device *sdev)
782 struct sym_hcb *np = sym_get_hcb(sdev->host);
783 struct sym_tcb *tp = &np->target[sdev->id];
784 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
801 if (!sdev->tagged_supported)
806 scsi_change_queue_depth(sdev, depth_to_use);
808 sym_tune_dev_queuing(tp, sdev->lun, reqtags);
810 if (!spi_initial_dv(sdev->sdev_target))
811 spi_dv_device(sdev);
816 static void sym53c8xx_slave_destroy(struct scsi_device *sdev)
818 struct sym_hcb *np = sym_get_hcb(sdev->host);
819 struct sym_tcb *tp = &np->target[sdev->id];
820 struct sym_lcb *lp = sym_lp(tp, sdev->lun);
835 "Removing busy LCB (%d)\n", (u8)sdev->lun);
839 if (sym_free_lcb(np, sdev->id, sdev->lun) == 0) {