Lines Matching refs:sdev

640 ahc_linux_slave_alloc(struct scsi_device *sdev)  in ahc_linux_slave_alloc()  argument
643 *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_alloc()
644 struct scsi_target *starget = sdev->sdev_target; in ahc_linux_slave_alloc()
648 printk("%s: Slave Alloc %d\n", ahc_name(ahc), sdev->id); in ahc_linux_slave_alloc()
650 dev = scsi_transport_device_data(sdev); in ahc_linux_slave_alloc()
672 ahc_linux_slave_configure(struct scsi_device *sdev) in ahc_linux_slave_configure() argument
676 ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_slave_configure()
679 sdev_printk(KERN_INFO, sdev, "Slave Configure\n"); in ahc_linux_slave_configure()
681 ahc_linux_device_queue_depth(sdev); in ahc_linux_slave_configure()
684 if (!spi_initial_dv(sdev->sdev_target)) in ahc_linux_slave_configure()
685 spi_dv_device(sdev); in ahc_linux_slave_configure()
695 ahc_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev, in ahc_linux_biosparam() argument
707 ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_biosparam()
708 channel = sdev_channel(sdev); in ahc_linux_biosparam()
1273 ahc_platform_set_tags(struct ahc_softc *ahc, struct scsi_device *sdev, in ahc_platform_set_tags() argument
1280 if (sdev == NULL) in ahc_platform_set_tags()
1282 dev = scsi_transport_device_data(sdev); in ahc_platform_set_tags()
1337 scsi_change_queue_depth(sdev, in ahc_platform_set_tags()
1347 scsi_change_queue_depth(sdev, 2); in ahc_platform_set_tags()
1394 ahc_linux_device_queue_depth(struct scsi_device *sdev) in ahc_linux_device_queue_depth() argument
1398 struct ahc_softc *ahc = *((struct ahc_softc **)sdev->host->hostdata); in ahc_linux_device_queue_depth()
1401 sdev->sdev_target->channel == 0 in ahc_linux_device_queue_depth()
1403 sdev->sdev_target->id, sdev->lun, in ahc_linux_device_queue_depth()
1404 sdev->sdev_target->channel == 0 ? 'A' : 'B', in ahc_linux_device_queue_depth()
1407 if (tags != 0 && sdev->tagged_supported != 0) { in ahc_linux_device_queue_depth()
1409 ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_TAGGED); in ahc_linux_device_queue_depth()
1415 ahc_platform_set_tags(ahc, sdev, &devinfo, AHC_QUEUE_NONE); in ahc_linux_device_queue_depth()
1814 struct scsi_device *sdev, struct scb *scb) in ahc_linux_handle_scsi_status() argument
1817 struct ahc_linux_device *dev = scsi_transport_device_data(sdev); in ahc_linux_handle_scsi_status()
1821 sdev->sdev_target->id, sdev->lun, in ahc_linux_handle_scsi_status()
1822 sdev->sdev_target->channel == 0 ? 'A' : 'B', in ahc_linux_handle_scsi_status()
1922 ahc_platform_set_tags(ahc, sdev, &devinfo, in ahc_linux_handle_scsi_status()
1933 ahc_platform_set_tags(ahc, sdev, &devinfo, in ahc_linux_handle_scsi_status()