Lines Matching refs:sdev
302 struct scsi_device *sdev = cmd->device; in sym_queue_command() local
311 tp = &np->target[sdev->id]; in sym_queue_command()
316 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
737 static int sym53c8xx_slave_alloc(struct scsi_device *sdev) in sym53c8xx_slave_alloc() argument
739 struct sym_hcb *np = sym_get_hcb(sdev->host); in sym53c8xx_slave_alloc()
740 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc()
745 if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN) in sym53c8xx_slave_alloc()
761 starget_printk(KERN_INFO, sdev->sdev_target, in sym53c8xx_slave_alloc()
768 if (sdev->lun != 0) { in sym53c8xx_slave_alloc()
772 starget_printk(KERN_INFO, sdev->sdev_target, in sym53c8xx_slave_alloc()
776 lp = sym_alloc_lcb(np, sdev->id, sdev->lun); in sym53c8xx_slave_alloc()
782 tp->starget = sdev->sdev_target; in sym53c8xx_slave_alloc()
797 static int sym53c8xx_slave_configure(struct scsi_device *sdev) in sym53c8xx_slave_configure() argument
799 struct sym_hcb *np = sym_get_hcb(sdev->host); in sym53c8xx_slave_configure()
800 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_configure()
801 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_configure()
818 if (!sdev->tagged_supported) in sym53c8xx_slave_configure()
823 scsi_change_queue_depth(sdev, depth_to_use); in sym53c8xx_slave_configure()
825 sym_tune_dev_queuing(tp, sdev->lun, reqtags); in sym53c8xx_slave_configure()
827 if (!spi_initial_dv(sdev->sdev_target)) in sym53c8xx_slave_configure()
828 spi_dv_device(sdev); in sym53c8xx_slave_configure()
833 static void sym53c8xx_slave_destroy(struct scsi_device *sdev) in sym53c8xx_slave_destroy() argument
835 struct sym_hcb *np = sym_get_hcb(sdev->host); in sym53c8xx_slave_destroy()
836 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_destroy()
837 struct sym_lcb *lp = sym_lp(tp, sdev->lun); in sym53c8xx_slave_destroy()
852 "Removing busy LCB (%d)\n", (u8)sdev->lun); in sym53c8xx_slave_destroy()
856 if (sym_free_lcb(np, sdev->id, sdev->lun) == 0) { in sym53c8xx_slave_destroy()