Lines Matching refs:device

46 	struct device *dev = &cfg->dev->dev;
102 /* Resid mismatch between adapter and device */
158 struct device *dev = &cfg->dev->dev;
238 struct device *dev = &cfg->dev->dev;
303 struct device *dev = &cfg->dev->dev;
347 struct device *dev = &cfg->dev->dev;
392 struct device *dev = &cfg->dev->dev;
414 * @host: SCSI host associated with device.
452 * @sdev: SCSI device destined for TMF.
463 struct device *dev = &cfg->dev->dev;
544 * @host: SCSI host associated with device.
546 * Return: A string describing the device.
555 * @host: SCSI host associated with device.
564 struct device *dev = &cfg->dev->dev;
575 __func__, scp, host->host_no, scp->device->channel,
576 scp->device->id, scp->device->lun,
598 dev_dbg_ratelimited(dev, "%s: device is in reset\n", __func__);
602 dev_dbg_ratelimited(dev, "%s: device has failed\n", __func__);
624 cmd->rcb.port_sel = CHAN2PORTMASK(scp->device->channel);
625 cmd->rcb.lun_id = lun_to_lunid(scp->device->lun);
731 struct device *dev = &cfg->dev->dev;
777 struct device *dev = &cfg->dev->dev;
815 struct device *dev = &cfg->dev->dev;
839 * notify_shutdown() - notifies device of pending shutdown
845 * This notification should flush pending I/Os to the device and halt
846 * further I/Os until the next AFU reset is issued and device restarted.
851 struct device *dev = &cfg->dev->dev;
900 * Return: Unique minor number that can be used to create the character device.
926 * cxlflash_release_chrdev() - release the character device for the host
939 * @pdev: PCI device associated with the host.
947 struct device *dev = &pdev->dev;
1008 struct device *dev = &cfg->dev->dev;
1027 * init_pci() - initializes the host as a PCI device
1035 struct device *dev = &cfg->dev->dev;
1066 struct device *dev = &cfg->dev->dev;
1192 struct device *dev = &cfg->dev->dev;
1220 * is made to maintain link with the device by switching to host to use
1227 struct device *dev = &cfg->dev->dev;
1336 struct device *dev = &cfg->dev->dev;
1543 struct device *dev = &cfg->dev->dev;
1630 struct device *dev = &cfg->dev->dev;
1642 /* Get the VPD data from the device */
1745 struct device *dev = &cfg->dev->dev;
1871 struct device *dev = &cfg->dev->dev;
1928 struct device *dev = &cfg->dev->dev;
1984 struct device *dev = &cfg->dev->dev;
2067 struct device *dev = &cfg->dev->dev;
2096 struct device *dev = &cfg->dev->dev;
2183 struct device *dev = &cfg->dev->dev;
2218 struct device *dev = &cfg->dev->dev;
2246 struct device *dev = &cfg->dev->dev;
2279 struct device *dev = &cfg->dev->dev;
2361 * AFU sync operations are only necessary and allowed when the device is
2373 struct device *dev = &cfg->dev->dev;
2404 struct Scsi_Host *host = scp->device->host;
2407 struct device *dev = &cfg->dev->dev;
2413 scp->device->channel, scp->device->id, scp->device->lun,
2450 struct scsi_device *sdev = scp->device;
2453 struct device *dev = &cfg->dev->dev;
2484 * upon the current device state.
2494 struct Scsi_Host *host = scp->device->host;
2496 struct device *dev = &cfg->dev->dev;
2529 * cxlflash_change_queue_depth() - change the queue depth for the device
2530 * @sdev: SCSI device destined for queue depth change.
2559 struct device *dev = &cfg->dev->dev;
2588 * @dev: Generic device associated with the host owning the port.
2594 static ssize_t port0_show(struct device *dev,
2605 * @dev: Generic device associated with the host owning the port.
2611 static ssize_t port1_show(struct device *dev,
2622 * @dev: Generic device associated with the host owning the port.
2628 static ssize_t port2_show(struct device *dev,
2639 * @dev: Generic device associated with the host owning the port.
2645 static ssize_t port3_show(struct device *dev,
2656 * @dev: Generic device associated with the host.
2662 static ssize_t lun_mode_show(struct device *dev,
2673 * @dev: Generic device associated with the host.
2681 * as if they were a normal storage device. This feature is useful
2683 * to test the AFU without an actual device.
2693 static ssize_t lun_mode_store(struct device *dev,
2726 * @dev: Generic device associated with the host.
2732 static ssize_t ioctl_version_show(struct device *dev,
2757 struct device *dev = &cfg->dev->dev;
2781 * @dev: Generic device associated with the host owning the port.
2787 static ssize_t port0_lun_table_show(struct device *dev,
2798 * @dev: Generic device associated with the host owning the port.
2804 static ssize_t port1_lun_table_show(struct device *dev,
2815 * @dev: Generic device associated with the host owning the port.
2821 static ssize_t port2_lun_table_show(struct device *dev,
2832 * @dev: Generic device associated with the host owning the port.
2838 static ssize_t port3_lun_table_show(struct device *dev,
2849 * @dev: Generic device associated with the host.
2858 static ssize_t irqpoll_weight_show(struct device *dev,
2869 * @dev: Generic device associated with the host.
2879 static ssize_t irqpoll_weight_store(struct device *dev,
2884 struct device *cfgdev = &cfg->dev->dev;
2929 * @dev: Generic device associated with the host.
2936 static ssize_t num_hwqs_show(struct device *dev,
2947 * @dev: Generic device associated with the host.
2959 static ssize_t num_hwqs_store(struct device *dev,
3014 * @dev: Generic device associated with the host.
3021 static ssize_t hwq_mode_show(struct device *dev,
3032 * @dev: Generic device associated with the host.
3044 static ssize_t hwq_mode_store(struct device *dev,
3050 struct device *cfgdev = &cfg->dev->dev;
3073 * mode_show() - presents the current mode of the device
3074 * @dev: Generic device associated with the device.
3075 * @attr: Device attribute representing the device mode.
3080 static ssize_t mode_show(struct device *dev,
3173 * PCI device binding table
3201 struct device *dev = &cfg->dev->dev;
3206 /* Avoid MMIO if the device has failed */
3238 * cxlflash_chr_open() - character device open handler
3239 * @inode: Device inode associated with this character device.
3240 * @file: File pointer for this device.
3242 * Only users with admin privileges are allowed to open the character device.
3286 struct device *dev = &cfg->dev->dev;
3380 struct device *dev = &cfg->dev->dev;
3457 * cxlflash_chr_ioctl() - character device IOCTL handler
3458 * @file: File pointer for this device.
3478 struct device *dev = &cfg->dev->dev;
3566 * Character device file operations
3576 * init_chrdev() - initialize the character device for the host
3583 struct device *dev = &cfg->dev->dev;
3584 struct device *char_dev;
3627 * @pdev: PCI device associated with the host.
3628 * @dev_id: PCI device id associated with device.
3630 * The device will initially start out in a 'probing' state and
3634 * is nearly complete. At that time, the device will be moved to
3636 * reset and recovery (device moves to 'normal' state). Meanwhile,
3646 struct device *dev = &pdev->dev;
3767 * @pdev: PCI device struct.
3771 * complete and then take action based upon the device state.
3780 struct device *dev = &cfg->dev->dev;
3813 * @pdev: PCI device struct.
3824 struct device *dev = &cfg->dev->dev;
3839 * @pdev: PCI device struct
3844 struct device *dev = &cfg->dev->dev;
3855 * @dev: Character device.
3860 static char *cxlflash_devnode(const struct device *dev, umode_t *mode)
3866 * cxlflash_class_init() - create character device class
3900 * cxlflash_class_exit() - destroy character device class
3917 * PCI device structure