Lines Matching defs:sdev
160 "Enable sdev max qd as can_queue, def=disabled(0)");
712 * @sdev: scsi device struct
717 struct _sas_device *sas_device, struct scsi_device *sdev,
720 if (sdev) {
722 sdev_printk(KERN_INFO, sdev,
728 sdev_printk(KERN_INFO, sdev,
733 sdev_printk(KERN_INFO, sdev, "chassis slot(0x%04x)\n",
1617 * @sdev: scsi device struct
1623 scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
1625 struct Scsi_Host *shost = sdev->host;
1642 sas_device_priv_data = sdev->hostdata;
1663 if (!sdev->tagged_supported)
1667 scsi_change_queue_depth(sdev, qdepth);
1668 sdev_printk(KERN_INFO, sdev,
1670 sdev->queue_depth, sdev->tagged_supported,
1671 sdev->scsi_level, ((sdev->inquiry[7] & 2) >> 1));
1672 return sdev->queue_depth;
1677 * @sdev: scsi device struct
1683 mpt3sas_scsih_change_queue_depth(struct scsi_device *sdev, int qdepth)
1685 struct Scsi_Host *shost = sdev->host;
1691 scsih_change_queue_depth(sdev, qdepth);
1811 raid_device->sdev = NULL;
1863 * @sdev: scsi device struct
1869 scsih_slave_alloc(struct scsi_device *sdev)
1886 sas_device_priv_data->lun = sdev->lun;
1889 starget = scsi_target(sdev);
1893 sdev->hostdata = sas_device_priv_data;
1895 sdev->no_uld_attach = 1;
1904 raid_device->sdev = sdev; /* raid is single lun */
1912 sdev_printk(KERN_INFO, sdev,
1927 sdev_printk(KERN_INFO, sdev,
1944 * @sdev: scsi device struct
1947 scsih_slave_destroy(struct scsi_device *sdev)
1957 if (!sdev->hostdata)
1960 starget = scsi_target(sdev);
1991 kfree(sdev->hostdata);
1992 sdev->hostdata = NULL;
1999 * @sdev: scsi device struct
2003 u16 handle, struct scsi_device *sdev)
2029 sdev_printk(KERN_INFO, sdev,
2055 struct scsi_device *sdev = to_scsi_device(dev);
2056 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2060 return (sdev->channel == RAID_CHANNEL) ? 1 : 0;
2066 struct scsi_device *sdev = to_scsi_device(dev);
2068 return (sdev->channel == PCIE_CHANNEL) ? 1 : 0;
2078 struct scsi_device *sdev = to_scsi_device(dev);
2079 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2094 raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
2095 sdev->channel);
2139 struct scsi_device *sdev = to_scsi_device(dev);
2140 struct MPT3SAS_ADAPTER *ioc = shost_priv(sdev->host);
2150 raid_device = _scsih_raid_device_find_by_id(ioc, sdev->id,
2151 sdev->channel);
2201 * @sdev: scsi device struct
2206 struct scsi_device *sdev, u8 volume_type)
2228 &sdev->sdev_gendev, level);
2233 &sdev->sdev_gendev, level);
2308 * @sdev: scsi device struct
2315 _scsih_enable_tlr(struct MPT3SAS_ADAPTER *ioc, struct scsi_device *sdev)
2319 if (sdev->type != TYPE_TAPE)
2325 sas_enable_tlr(sdev);
2326 sdev_printk(KERN_INFO, sdev, "TLR %s\n",
2327 sas_is_tlr_enabled(sdev) ? "Enabled" : "Disabled");
2334 * @sdev: scsi device struct
2340 scsih_slave_configure(struct scsi_device *sdev)
2342 struct Scsi_Host *shost = sdev->host;
2358 sas_device_priv_data = sdev->hostdata;
2437 sdev_printk(KERN_INFO, sdev,
2445 blk_queue_max_hw_sectors(sdev->request_queue,
2447 sdev_printk(KERN_INFO, sdev,
2452 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2456 _scsih_set_level(ioc, sdev, raid_device->volume_type);
2493 sdev_printk(KERN_INFO, sdev,
2498 sdev_printk(KERN_INFO, sdev,
2504 sdev_printk(KERN_INFO, sdev,
2511 blk_queue_max_hw_sectors(sdev->request_queue,
2516 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2522 sdev->request_queue);
2523 blk_queue_virt_boundary(sdev->request_queue,
2546 sdev_printk(KERN_WARNING, sdev,
2562 sdev_printk(KERN_INFO, sdev, "%s: handle(0x%04x), " \
2567 _scsih_display_enclosure_chassis_info(NULL, sas_device, sdev, NULL);
2573 _scsih_display_sata_capabilities(ioc, handle, sdev);
2576 mpt3sas_scsih_change_queue_depth(sdev, qdepth);
2579 sas_read_port_mode_page(sdev);
2580 _scsih_enable_tlr(ioc, sdev);
2588 * @sdev: scsi device struct
2597 scsih_bios_param(struct scsi_device *sdev, struct block_device *bdev,
2718 struct scsi_device *sdev;
2721 shost_for_each_device(sdev, ioc->shost) {
2724 sas_device_priv_data = sdev->hostdata;
2746 struct scsi_device *sdev;
2749 shost_for_each_device(sdev, ioc->shost) {
2752 sas_device_priv_data = sdev->hostdata;
3568 * _scsih_internal_device_block - block the sdev device
3569 * @sdev: per device object
3576 _scsih_internal_device_block(struct scsi_device *sdev,
3581 sdev_printk(KERN_INFO, sdev, "device_block, handle(0x%04x)\n",
3585 r = scsi_internal_device_block_nowait(sdev);
3587 sdev_printk(KERN_WARNING, sdev,
3593 * _scsih_internal_device_unblock - unblock the sdev device
3594 * @sdev: per device object
3601 _scsih_internal_device_unblock(struct scsi_device *sdev,
3606 sdev_printk(KERN_WARNING, sdev, "device_unblock and setting to running, "
3609 r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
3616 sdev_printk(KERN_WARNING, sdev,
3621 r = scsi_internal_device_block_nowait(sdev);
3623 sdev_printk(KERN_WARNING, sdev, "retried device_block "
3628 r = scsi_internal_device_unblock_nowait(sdev, SDEV_RUNNING);
3630 sdev_printk(KERN_WARNING, sdev, "retried device_unblock"
3646 struct scsi_device *sdev;
3648 shost_for_each_device(sdev, ioc->shost) {
3649 sas_device_priv_data = sdev->hostdata;
3655 dewtprintk(ioc, sdev_printk(KERN_INFO, sdev,
3658 _scsih_internal_device_unblock(sdev, sas_device_priv_data);
3674 struct scsi_device *sdev;
3676 shost_for_each_device(sdev, ioc->shost) {
3677 sas_device_priv_data = sdev->hostdata;
3684 _scsih_internal_device_unblock(sdev,
3693 * During device pull we need to appropriately set the sdev state.
3699 struct scsi_device *sdev;
3701 shost_for_each_device(sdev, ioc->shost) {
3702 sas_device_priv_data = sdev->hostdata;
3708 sdev_printk(KERN_INFO, sdev,
3713 _scsih_internal_device_block(sdev, sas_device_priv_data);
3722 * During device pull we need to appropriately set the sdev state.
3728 struct scsi_device *sdev;
3733 shost_for_each_device(sdev, ioc->shost) {
3734 sas_device_priv_data = sdev->hostdata;
3744 sdev_printk(KERN_INFO, sdev,
3749 _scsih_internal_device_block(sdev, sas_device_priv_data);
3761 * This routine set sdev state to SDEV_BLOCK for all devices
3814 * This routine set sdev state to SDEV_BLOCK for all devices
3841 * This routine set sdev state to SDEV_BLOCK for all devices
7683 struct scsi_device *sdev;
7728 sdev = scmd->device;
7729 sas_device_priv_data = sdev->hostdata;
7757 sdev_printk(KERN_WARNING, sdev,
7766 sdev_printk(KERN_WARNING, sdev,
7794 r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->channel, sdev->id,
7795 sdev->lun, MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK,
7798 sdev_printk(KERN_WARNING, sdev,
7805 sdev_printk(KERN_WARNING, sdev,
8022 * @sdev: scsi device struct
8023 * @no_uld_attach: sdev->no_uld_attach flag setting
8027 _scsih_reprobe_lun(struct scsi_device *sdev, void *no_uld_attach)
8029 sdev->no_uld_attach = no_uld_attach ? 1 : 0;
8030 sdev_printk(KERN_INFO, sdev, "%s raid component\n",
8031 sdev->no_uld_attach ? "hiding" : "exposing");
8032 WARN_ON(scsi_device_reprobe(sdev));
8675 struct scsi_device *sdev;
8677 shost_for_each_device(sdev, ioc->shost) {
8678 sas_device_priv_data = sdev->hostdata;
11309 * @sdev: scsi device struct
11314 bool scsih_ncq_prio_supp(struct scsi_device *sdev)
11319 if (!scsi_device_supports_vpd(sdev))
11326 if (!scsi_get_vpd_page(sdev, 0x89, buf, SCSI_VPD_PG_LEN))