Lines Matching defs:sdev
161 "Enable sdev max qd as can_queue, def=disabled(0)");
866 * @sdev: scsi device struct
871 struct _sas_device *sas_device, struct scsi_device *sdev,
874 if (sdev) {
876 sdev_printk(KERN_INFO, sdev,
882 sdev_printk(KERN_INFO, sdev,
887 sdev_printk(KERN_INFO, sdev, "chassis slot(0x%04x)\n",
1783 * @sdev: scsi device struct
1789 scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
1791 struct Scsi_Host *shost = sdev->host;
1808 sas_device_priv_data = sdev->hostdata;
1829 if (!sdev->tagged_supported)
1833 scsi_change_queue_depth(sdev, qdepth);
1834 sdev_printk(KERN_INFO, sdev,
1836 sdev->queue_depth, sdev->tagged_supported,
1837 sdev->scsi_level, ((sdev->inquiry[7] & 2) >> 1));
1838 return sdev->queue_depth;
1843 * @sdev: scsi device struct
1849 mpt3sas_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
1851 struct Scsi_Host *shost = sdev->host;
1857 scsih_change_queue_depth(sdev, qdepth);
1978 raid_device->sdev = NULL;
2030 * @sdev: scsi device struct
2036 scsih_slave_alloc(struct scsi_device *sdev)
2053 sas_device_priv_data->lun = sdev->lun;
2056 starget = scsi_target(sdev);
2060 sdev->hostdata = sas_device_priv_data;
2062 sdev->no_uld_attach = 1;
2071 raid_device->sdev = sdev; /* raid is single lun */
2079 sdev_printk(KERN_INFO, sdev,
2095 sdev_printk(KERN_INFO, sdev,
2112 * @sdev: scsi device struct
2115 scsih_slave_destroy(struct scsi_device *sdev)
2125 if (!sdev->hostdata)
2128 starget = scsi_target(sdev);
2159 kfree(sdev->hostdata);
2160 sdev->hostdata = NULL;
2167 * @sdev: scsi device struct
2171 u16 handle, struct scsi_device *sdev)
2197 sdev_printk(KERN_INFO, sdev,
2223 struct scsi_device *sdev = to_scsi_device(dev);
2224 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2228 return (sdev->channel == RAID_CHANNEL) ? 1 : 0;
2234 struct scsi_device *sdev = to_scsi_device(dev);
2236 return (sdev->channel == PCIE_CHANNEL) ? 1 : 0;
2246 struct scsi_device *sdev = to_scsi_device(dev);
2247 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2262 raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
2263 sdev->channel);
2307 struct scsi_device *sdev = to_scsi_device(dev);
2308 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2318 raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
2319 sdev->channel);
2369 * @sdev: scsi device struct
2374 struct scsi_device *sdev, u8 volume_type)
2396 &sdev->sdev_gendev, level);
2401 &sdev->sdev_gendev, level);
2476 * @sdev: scsi device struct
2483 _scsih_enable_tlr(struct MPT3SAS_ADAPTER *ioc, struct scsi_device *sdev)
2487 if (sdev->type != TYPE_TAPE)
2493 sas_enable_tlr(sdev);
2494 sdev_printk(KERN_INFO, sdev, "TLR %s\n",
2495 sas_is_tlr_enabled(sdev) ? "Enabled" : "Disabled");
2502 * @sdev: scsi device struct
2508 scsih_slave_configure(struct scsi_device *sdev)
2510 struct Scsi_Host *shost = sdev->host;
2526 sas_device_priv_data = sdev->hostdata;
2605 sdev_printk(KERN_INFO, sdev,
2613 blk_queue_max_hw_sectors(sdev->request_queue,
2615 sdev_printk(KERN_INFO, sdev,
2620 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2624 _scsih_set_level(ioc, sdev, raid_device->volume_type);
2661 sdev_printk(KERN_INFO, sdev,
2666 sdev_printk(KERN_INFO, sdev,
2672 sdev_printk(KERN_INFO, sdev,
2679 blk_queue_max_hw_sectors(sdev->request_queue,
2684 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2690 sdev->request_queue);
2691 blk_queue_virt_boundary(sdev->request_queue,
2716 sdev_printk(KERN_WARNING, sdev,
2732 sdev_printk(KERN_INFO, sdev, "%s: handle(0x%04x), " \
2737 _scsih_display_enclosure_chassis_info(NULL, sas_device, sdev, NULL);
2743 _scsih_display_sata_capabilities(ioc, handle, sdev);
2746 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2749 sas_read_port_mode_page(sdev);
2750 _scsih_enable_tlr(ioc, sdev);
2758 * @sdev: scsi device struct
2767 scsih_bios_param(struct scsi_device *sdev, struct block_device *bdev,
2888 struct scsi_device *sdev;
2891 shost_for_each_device(sdev, ioc->shost) {
2894 sas_device_priv_data = sdev->hostdata;
2916 struct scsi_device *sdev;
2919 shost_for_each_device(sdev, ioc->shost) {
2922 sas_device_priv_data = sdev->hostdata;
3759 * _scsih_internal_device_block - block the sdev device
3760 * @sdev: per device object
3767 _scsih_internal_device_block(struct scsi_device *sdev,
3772 sdev_printk(KERN_INFO, sdev, "device_block, handle(0x%04x)\n",
3776 r = scsi_internal_device_block_nowait(sdev);
3778 sdev_printk(KERN_WARNING, sdev,
3784 * _scsih_internal_device_unblock - unblock the sdev device
3785 * @sdev: per device object
3792 _scsih_internal_device_unblock(struct scsi_device *sdev,
3797 sdev_printk(KERN_WARNING, sdev, "device_unblock and setting to running, "
3800 r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
3807 sdev_printk(KERN_WARNING, sdev,
3812 r = scsi_internal_device_block_nowait(sdev);
3814 sdev_printk(KERN_WARNING, sdev, "retried device_block "
3819 r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
3821 sdev_printk(KERN_WARNING, sdev, "retried device_unblock"
3837 struct scsi_device *sdev;
3839 shost_for_each_device(sdev, ioc->shost) {
3840 sas_device_priv_data = sdev->hostdata;
3846 dewtprintk(ioc, sdev_printk(KERN_INFO, sdev,
3849 _scsih_internal_device_unblock(sdev, sas_device_priv_data);
3867 struct scsi_device *sdev;
3869 shost_for_each_device(sdev, ioc->shost) {
3870 sas_device_priv_data = sdev->hostdata;
3879 _scsih_internal_device_unblock(sdev,
3888 * During device pull we need to appropriately set the sdev state.
3894 struct scsi_device *sdev;
3896 shost_for_each_device(sdev, ioc->shost) {
3897 sas_device_priv_data = sdev->hostdata;
3903 sdev_printk(KERN_INFO, sdev,
3908 _scsih_internal_device_block(sdev, sas_device_priv_data);
3917 * During device pull we need to appropriately set the sdev state.
3923 struct scsi_device *sdev;
3928 shost_for_each_device(sdev, ioc->shost) {
3929 sas_device_priv_data = sdev->hostdata;
3939 sdev_printk(KERN_INFO, sdev,
3944 _scsih_internal_device_block(sdev, sas_device_priv_data);
3956 * This routine set sdev state to SDEV_BLOCK for all devices
4011 * This routine set sdev state to SDEV_BLOCK for all devices
4038 * This routine set sdev state to SDEV_BLOCK for all devices
8659 struct scsi_device *sdev;
8704 sdev = scmd->device;
8705 sas_device_priv_data = sdev->hostdata;
8733 sdev_printk(KERN_WARNING, sdev,
8742 sdev_printk(KERN_WARNING, sdev,
8770 r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id,
8771 sdev->lun, MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK,
8774 sdev_printk(KERN_WARNING, sdev,
8781 sdev_printk(KERN_WARNING, sdev,
8998 * @sdev: scsi device struct
8999 * @no_uld_attach: sdev->no_uld_attach flag setting
9003 _scsih_reprobe_lun(struct scsi_device *sdev, void *no_uld_attach)
9005 sdev->no_uld_attach = no_uld_attach ? 1 : 0;
9006 sdev_printk(KERN_INFO, sdev, "%s raid component\n",
9007 sdev->no_uld_attach ? "hiding" : "exposing");
9008 WARN_ON(scsi_device_reprobe(sdev));
9655 struct scsi_device *sdev;
9657 shost_for_each_device(sdev, ioc->shost) {
9658 sas_device_priv_data = sdev->hostdata;
9675 struct scsi_device *sdev;
9679 shost_for_each_device(sdev, ioc->shost) {
9680 sas_device_priv_data = sdev->hostdata;
9695 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
12595 * @sdev: scsi device struct
12600 bool scsih_ncq_prio_supp(struct scsi_device *sdev)
12606 vpd = rcu_dereference(sdev->vpd_pg89);