Lines Matching defs:device

122 MODULE_PARM_DESC(missing_delay, " device missing delay , io missing delay");
166 "Multipath support to add same target device\n\t\t"
204 * @device_handle: device handle
257 * @handle: sas device handle (assigned by firmware)
332 * @boot_device: boot device object from bios page 2
344 * _scsih_srch_boot_device_name - search based on device name
345 * @device_name: device name specified in INDENTIFY fram
346 * @boot_device: boot device object from bios page 2
361 * @boot_device: boot device object from bios page 2
456 * _scsih_is_boot_device - search for matching boot device.
458 * @device_name: device name specified in INDENTIFY fram
461 * @form: specifies boot device form
462 * @boot_device: boot device object from bios page 2
501 * _scsih_get_sas_address - set the sas_address for given device handle
503 * @handle: device handle
550 * _scsih_determine_boot_device - determine boot device.
552 * @device: sas_device or pcie_device object
555 * Determines whether this device should be first reported device to
556 * to scsi-ml or sas transport, this purpose is for persistent boot device.
559 * the corresponding device object.
563 _scsih_determine_boot_device(struct MPT3SAS_ADAPTER *ioc, void *device,
583 raid_device = device;
589 pcie_device = device;
595 sas_device = device;
602 if (!ioc->req_boot_device.device) {
611 ioc->req_boot_device.device = device;
616 if (!ioc->req_alt_boot_device.device) {
625 ioc->req_alt_boot_device.device = device;
630 if (!ioc->current_boot_device.device) {
639 ioc->current_boot_device.device = device;
690 * mpt3sas_get_pdev_from_target - pcie device search
715 * __mpt3sas_get_sdev_by_rphy - sas device search
755 * @sas_address: device sas address
794 * mpt3sas_get_sdev_by_addr - sas device search
841 * mpt3sas_get_sdev_by_handle - sas device search
843 * @handle: sas device handle (assigned by firmware)
863 * _scsih_display_enclosure_chassis_info - display device location info
865 * @sas_device: per sas device object
866 * @sdev: scsi device struct
954 * _scsih_device_remove_by_handle - removing device object by handle
956 * @handle: device handle
981 * mpt3sas_device_remove_by_sas_address - removing device object by
984 * @sas_address: device sas_address
1118 * mpt3sas_get_pdev_by_wwid - pcie device search
1188 * mpt3sas_get_pdev_by_handle - pcie device search
1190 * @handle: Firmware device handle
1282 * This device's RTD3 Entry Latency matches IOC's
1292 * _scsih_pcie_device_remove_by_handle - removing pcie device object by handle
1294 * @handle: device handle
1325 * This device's RTD3 Entry Latency matches IOC's
1422 * _scsih_raid_device_find_by_id - raid device search
1424 * @id: sas device target id
1425 * @channel: sas device channel
1449 * mpt3sas_raid_device_find_by_handle - raid device search
1451 * @handle: sas device handle (assigned by firmware)
1475 * _scsih_raid_device_find_by_wwid - raid device search
1542 * mpt3sas_scsih_expander_find_by_handle - expander device search
1547 * This searches for expander device based on handle, then returns the
1567 * mpt3sas_scsih_enclosure_find_by_handle - exclosure device search
1572 * This searches for enclosure device based on handle, then returns the
1591 * mpt3sas_scsih_expander_find_by_sas_address - expander device search
1597 * This searches for expander device based on sas_address & port number,
1622 * _scsih_expander_node_add - insert expander device to the list.
1641 * _scsih_is_end_device - determines if device is an end device
1642 * @device_info: bitfield providing information about the device.
1645 * Return: 1 if end device.
1661 * device is an pcie nvme/scsi device
1662 * @device_info: bitfield providing information about the device.
1665 * Returns 1 if device is pcie device type nvme/scsi.
1701 if (scmd->device->id == id &&
1702 scmd->device->channel == channel)
1731 if (scmd->device->id == id &&
1732 scmd->device->channel == channel &&
1733 scmd->device->lun == lun)
1782 * scsih_change_queue_depth - setting device queue depth
1783 * @sdev: scsi device struct
1802 * limit max device queue for SATA to 32 if enable_sdev_max_qd
1842 * mpt3sas_scsih_change_queue_depth - setting device queue depth
1843 * @sdev: scsi device struct
1865 * the device is ignored.
2029 * scsih_slave_alloc - device add routine
2030 * @sdev: scsi device struct
2033 * the device is ignored.
2111 * scsih_slave_destroy - device destroy routine
2112 * @sdev: scsi device struct
2166 * @handle: device handle
2167 * @sdev: scsi device struct
2217 * scsih_is_raid - return boolean indicating device is raid volume
2218 * @dev: the device struct object
2221 scsih_is_raid(struct device *dev)
2232 scsih_is_nvme(struct device *dev)
2241 * @dev: the device struct object
2244 scsih_get_resync(struct device *dev)
2302 * @dev: the device struct object
2305 scsih_get_state(struct device *dev)
2369 * @sdev: scsi device struct
2456 * obtaining the device_info bits for the 1st device
2476 * @sdev: scsi device struct
2501 * scsih_slave_configure - device configure routine.
2502 * @sdev: scsi device struct
2505 * the device is ignored.
2758 * @sdev: scsi device struct
2759 * @bdev: pointer to block device context
2760 * @capacity: device size (in 512 byte sectors)
2803 * _scsih_response_code - translation of device response code
2805 * @response_code: response code returned by the device
2880 * @handle: device handle
2882 * During taskmangement request, we need to freeze the device queue.
2908 * @handle: device handle
2910 * During taskmangement request, we need to freeze the device queue.
2982 * @handle: device handle
3026 * @handle: device handle
3152 * doesn't match with device handle on which this task abort
3206 * _scsih_tm_display_info - displays info about the device
3215 struct scsi_target *starget = scmd->device->sdev_target;
3296 struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host);
3304 sdev_printk(KERN_INFO, scmd->device, "attempting task abort!"
3310 sas_device_priv_data = scmd->device->hostdata;
3313 sdev_printk(KERN_INFO, scmd->device,
3314 "device been deleted! scmd(0x%p)\n", scmd);
3323 sdev_printk(KERN_INFO, scmd->device, "No reference found at "
3346 r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->channel,
3347 scmd->device->id, scmd->device->lun,
3354 sdev_printk(KERN_INFO, scmd->device, "task abort: %s scmd(0x%p)\n",
3362 * scsih_dev_reset - eh threads main device reset routine
3370 struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host);
3379 struct scsi_target *starget = scmd->device->sdev_target;
3382 sdev_printk(KERN_INFO, scmd->device,
3383 "attempting device reset! scmd(0x%p)\n", scmd);
3386 sas_device_priv_data = scmd->device->hostdata;
3389 sdev_printk(KERN_INFO, scmd->device,
3390 "device been deleted! scmd(0x%p)\n", scmd);
3423 r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->channel,
3424 scmd->device->id, scmd->device->lun,
3428 if (r == SUCCESS && scsi_device_busy(scmd->device))
3431 sdev_printk(KERN_INFO, scmd->device, "device reset: %s scmd(0x%p)\n",
3451 struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host);
3459 struct scsi_target *starget = scmd->device->sdev_target;
3466 sas_device_priv_data = scmd->device->hostdata;
3502 r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->channel,
3503 scmd->device->id, 0,
3530 struct MPT3SAS_ADAPTER *ioc = shost_priv(scmd->device->host);
3759 * _scsih_internal_device_block - block the sdev device
3760 * @sdev: per device object
3761 * @sas_device_priv_data : per device driver private data
3763 * make sure device is blocked without error, if not
3784 * _scsih_internal_device_unblock - unblock the sdev device
3785 * @sdev: per device object
3786 * @sas_device_priv_data : per device driver private data
3787 * make sure device is unblocked without error, if not retry
3802 /* The device has been set to SDEV_RUNNING by SD layer during
3803 * device addition but the request queue is still stopped by
3805 * to get the device to SDEV_BLOCK and then to SDEV_RUNNING */
3828 * _scsih_ublock_io_all_device - unblock every device
3831 * change the device state from block to running
3855 * _scsih_ublock_io_device - prepare device to be deleted
3860 * unblock then put device in offline state
3885 * _scsih_block_io_all_device - set the device state to SDEV_BLOCK
3888 * During device pull we need to appropriately set the sdev state.
3913 * _scsih_block_io_device - set the device state to SDEV_BLOCK
3915 * @handle: device handle
3917 * During device pull we need to appropriately set the sdev state.
4012 * direct attached during device pull.
4039 * direct attached during device pull/reconnect.
4063 * @handle: device handle
4066 * This code is to initiate the device removal handshake protocol
4212 * This code is part of the code to initiate the device removal
4338 * This code is part of the code to initiate the device removal
4372 * @handle: device handle
4512 * @handle: device handle
4731 * or device add and delete events in a single shot. When there
4799 * @handle: device handle
4992 struct MPT3SAS_DEVICE *priv = scmd->device->hostdata;
5120 * SCSI_MLQUEUE_DEVICE_BUSY if the device queue is full, or
5141 sas_device_priv_data = scmd->device->hostdata;
5156 /* invalid device handle */
5160 * Avoid error handling escallation when device is disconnected
5163 if (scmd->device->host->shost_state == SHOST_RECOVERY &&
5182 /* device has been deleted */
5188 /* device busy with task management */
5220 if (((!ioc->is_warpdrive && !scsih_is_raid(&scmd->device->sdev_gendev))
5221 && !scsih_is_nvme(&scmd->device->sdev_gendev))
5222 && sas_is_tlr_enabled(scmd->device) && scmd->cmd_len != 32)
5315 * scsi_status - SCSI Status code returned from target device
5335 struct scsi_target *starget = scmd->device->sdev_target;
5363 desc_ioc_state = "scsi device not there";
5523 * @handle: device handle
5566 * @sas_device: sas device whose PFA LED has to turned off
5603 * @handle: device handle
5624 * @handle: device handle
5734 sas_device_priv_data = scmd->device->hostdata;
5767 !scsih_is_raid(&scmd->device->sdev_gendev) &&
5768 !scsih_is_nvme(&scmd->device->sdev_gendev))
5769 && sas_is_tlr_enabled(scmd->device) &&
5771 sas_disable_tlr(scmd->device);
5772 sdev_printk(KERN_INFO, scmd->device, "TLR disabled\n");
5830 scsi_device_set_state(scmd->device,
5834 scmd->device->expecting_cc_ua = 1;
5840 } else if ((scmd->device->channel == RAID_CHANNEL) &&
5994 * Check whether Phy is connected to SEP device or not,
5995 * if it is SEP device then read the Phy's SASPHYPage0 data to
5998 * device is a HBA's vSES device.
6016 * Get the vSES device's SAS Address.
6049 * to current Phy's vSES device SAS Address.
6083 * device's Port ID got changed after reset and
6103 * direct attached device with mport's Port ID,
6105 * device has this Port ID, so unmark the mport
6561 * During port enable, fw will send topology events for every device. Its
6617 * Check whether current Phy belongs to HBA vSES device or not.
6633 * Allocate a virtual_phy object for vSES device, if
6634 * this vSES device is hot added.
6825 * Check whether current Phy belongs to HBA vSES device or not.
6832 * Allocate a virtual_phy object for vSES device.
7117 * @handle: sas device handle
7118 * @access_status: errors returned during discovery of the device
7147 desc = "device blocked";
7177 * _scsih_check_device - checking device responsiveness
7180 * @handle: attached device handle
7208 /* wide port handling ~ we need only handle device once for the phy that
7209 * is matched in sas device page zero
7214 /* check if this is end device */
7267 /* check if device is present */
7270 ioc_err(ioc, "device is not present handle(0x%04x), flags!!!\n",
7294 * _scsih_add_device - creating sas device object
7296 * @handle: sas device handle
7297 * @phy_num: phy number end device attached to
7300 * Creating end device object, stored in ioc->sas_device_list.
7332 /* check if this is end device */
7339 /* check if device is present */
7342 ioc_err(ioc, "device is not present handle(0x04%x)!!!\n",
7366 ioc_info(ioc, "Enclosure handle(0x%04x) doesn't match with enclosure device!\n",
7426 /* get device name */
7444 * _scsih_remove_device - removing sas device object
7710 * _scsih_sas_device_status_change_event_debug - debug for device event
7726 reason_str = "unsupported device discovered";
7729 reason_str = "internal device reset";
7747 reason_str = "internal device reset complete";
7765 ioc_info(ioc, "device status change: (%s)\thandle(0x%04x), sas address(0x%016llx), tag(%d)",
7776 * _scsih_sas_device_status_change_event - handle device status change
7790 /* In MPI Revision K (0xC), the internal device reset complete was
7839 * @handle: sas device handle
7840 * @access_status: errors returned during discovery of the device
7857 desc = "PCIe device capability failed";
7860 desc = "PCIe device blocked";
7868 desc = "PCIe device mem space access failed";
7871 desc = "PCIe device unsupported";
7874 desc = "PCIe device MSIx Required";
7877 desc = "PCIe device init fail max";
7880 desc = "PCIe device status unknown";
7886 desc = "nvme device configuration unsupported";
7924 * _scsih_pcie_device_remove_from_sml - removing pcie device
7995 * _scsih_pcie_check_device - checking device responsiveness
7997 * @handle: attached device handle
8020 /* check if this is end device */
8056 /* check if device is present */
8059 ioc_info(ioc, "device is not present handle(0x%04x), flags!!!\n",
8083 * _scsih_pcie_add_device - creating pcie device object
8085 * @handle: pcie device handle
8087 * Creating end device object, stored in ioc->pcie_device_list.
8119 /* check if device is present */
8122 ioc_err(ioc, "device is not present handle(0x04%x)!!!\n",
8144 * specific NVMe device; therefore, this page is only
8210 /* TODO -- Add device name once FW supports it */
8387 * where a device has been added, however its returning
8389 * Delay expires and the device becomes READY, the
8390 * device is removed and added back.
8405 ioc_info(ioc, "handle(0x%04x) device not found: convert event to a device add\n",
8436 * _scsih_pcie_device_status_change_event_debug - debug for device event
8452 reason_str = "unsupported device discovered";
8455 reason_str = "internal device reset";
8470 reason_str = "device init failure";
8473 reason_str = "internal device reset complete";
8489 ioc_info(ioc, "PCIE device status change: (%s)\n"
8501 * _scsih_pcie_device_status_change_event - handle device status
8704 sdev = scmd->device;
8848 * _scsih_sas_device_discovery_error_event - display SAS device discovery error
8908 * @handle: device handle for physical disk
8998 * @sdev: scsi device struct
9068 * @handle: volume device handle
9645 * _scsih_prep_device_scan - initialize parameters prior to device scan
9648 * Set the deleted flag prior to device scan. If the device is found during
9725 ioc_info(ioc, "Enclosure handle(0x%04x) doesn't match with enclosure device!\n",
10006 * @handle: device handle
10493 /* This will retry adding the end device.
10568 ioc_info(ioc, "\tbreak from end device scan: ioc_status(0x%04x), loginfo(0x%08x)\n",
10586 ioc_info(ioc, "\tBEFORE adding end device: handle (0x%04x), sas_addr(0x%016llx)\n",
10593 /* This will retry adding the end device.
10601 ioc_info(ioc, "\tAFTER adding end device: handle (0x%04x), sas_addr(0x%016llx)\n",
10617 ioc_info(ioc, "\tbreak from pcie end device scan: ioc_status(0x%04x), loginfo(0x%08x)\n",
10635 ioc_info(ioc, "\tAFTER adding pcie end device: handle (0x%04x), wwid(0x%016llx)\n",
10915 * sas device page0's not by processing the
10962 ioc_err(ioc, "WarpDrive Fatal Error: There are no Program/Erase Cycles for the WarpDrive subsystem. The storage device will be in read-only mode. Check WarpDrive documentation for additional details.\n");
11037 * _scsih_expander_node_remove - removing expander device from list.
11230 * @pdev: PCI device struct
11257 * @pdev: PCI device struct
11361 * @pdev: PCI device struct
11411 * _scsih_probe_boot_devices - reports 1st device
11415 * device scsi-ml or sas transport for persistent boot device
11422 void *device;
11438 device = NULL;
11439 if (ioc->req_boot_device.device) {
11440 device = ioc->req_boot_device.device;
11442 } else if (ioc->req_alt_boot_device.device) {
11443 device = ioc->req_alt_boot_device.device;
11445 } else if (ioc->current_boot_device.device) {
11446 device = ioc->current_boot_device.device;
11450 if (!device)
11454 raid_device = device;
11457 * no need to register it again as part of device scanning
11467 pcie_device = device;
11469 * If this boot NVMe device is already registered with SML then
11470 * no need to register it again as part of device scanning
11483 sas_device = device;
11485 * If this boot sas/sata device is already registered with SML
11486 * then no need to register it again as part of device scanning
11627 * get_next_pcie_device - Get the next pcie device
11630 * Get the next pcie device from pcie_device_init_list list.
11632 * Return: pcie device structure if pcie_device_init_list list is not empty
11652 * pcie_device_make_active - Add pcie device to pcie_device_list list
11654 * @pcie_device: pcie device object
11656 * Add the pcie device which has registered with SCSI Transport Later to
12008 * this device belongs to.
12009 * @pdev: PCI device struct
12019 switch (pdev->device) {
12080 * @pdev: PCI device struct
12081 * @id: pci device id
12094 /* Determine in which MPI version class this pci device belongs */
12126 switch (pdev->device) {
12158 switch (pdev->device) {
12173 pdev->device, pdev->subsystem_vendor,
12180 pdev->device, pdev->subsystem_vendor,
12412 scsih_suspend(struct device *dev)
12440 scsih_resume(struct device *dev)
12468 * @pdev: PCI device struct
12497 /* Permanent error, prepare for device removal */
12509 * @pdev: PCI device struct
12548 * @pdev: pointer to PCI device
12571 * @pdev: pointer to PCI device
12587 * PCI_ERS_RESULT_CAN_RECOVER. Read/write to the device still
12595 * @sdev: scsi device struct
12617 * The pci device ids are defined in mpi/mpi2_cnfg.h.