Lines Matching defs:sdev
672 ahd_linux_slave_alloc(struct scsi_device *sdev)
675 *((struct ahd_softc **)sdev->host->hostdata);
679 printk("%s: Slave Alloc %d\n", ahd_name(ahd), sdev->id);
681 dev = scsi_transport_device_data(sdev);
701 ahd_linux_slave_configure(struct scsi_device *sdev)
704 sdev_printk(KERN_INFO, sdev, "Slave Configure\n");
706 ahd_linux_device_queue_depth(sdev);
709 if (!spi_initial_dv(sdev->sdev_target))
710 spi_dv_device(sdev);
720 ahd_linux_biosparam(struct scsi_device *sdev, struct block_device *bdev,
729 ahd = *((struct ahd_softc **)sdev->host->hostdata);
1388 ahd_platform_set_tags(struct ahd_softc *ahd, struct scsi_device *sdev,
1395 if (sdev == NULL)
1398 dev = scsi_transport_device_data(sdev);
1456 scsi_change_queue_depth(sdev,
1466 scsi_change_queue_depth(sdev, 1);
1513 ahd_linux_device_queue_depth(struct scsi_device *sdev)
1517 struct ahd_softc *ahd = *((struct ahd_softc **)sdev->host->hostdata);
1521 sdev->sdev_target->id, sdev->lun,
1522 sdev->sdev_target->channel == 0 ? 'A' : 'B',
1525 if (tags != 0 && sdev->tagged_supported != 0) {
1527 ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_TAGGED);
1533 ahd_platform_set_tags(ahd, sdev, &devinfo, AHD_QUEUE_NONE);
1870 struct scsi_device *sdev, struct scb *scb)
1873 struct ahd_linux_device *dev = scsi_transport_device_data(sdev);
1877 sdev->sdev_target->id, sdev->lun,
1878 sdev->sdev_target->channel == 0 ? 'A' : 'B',
1997 ahd_platform_set_tags(ahd, sdev, &devinfo,
2007 ahd_platform_set_tags(ahd, sdev, &devinfo,