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 */
1768 struct device *dev = &cfg->dev->dev;
1894 struct device *dev = &cfg->dev->dev;
1951 struct device *dev = &cfg->dev->dev;
2007 struct device *dev = &cfg->dev->dev;
2090 struct device *dev = &cfg->dev->dev;
2119 struct device *dev = &cfg->dev->dev;
2206 struct device *dev = &cfg->dev->dev;
2241 struct device *dev = &cfg->dev->dev;
2269 struct device *dev = &cfg->dev->dev;
2302 struct device *dev = &cfg->dev->dev;
2384 * AFU sync operations are only necessary and allowed when the device is
2396 struct device *dev = &cfg->dev->dev;
2427 struct Scsi_Host *host = scp->device->host;
2430 struct device *dev = &cfg->dev->dev;
2436 scp->device->channel, scp->device->id, scp->device->lun,
2473 struct scsi_device *sdev = scp->device;
2476 struct device *dev = &cfg->dev->dev;
2507 * upon the current device state.
2517 struct Scsi_Host *host = scp->device->host;
2519 struct device *dev = &cfg->dev->dev;
2552 * cxlflash_change_queue_depth() - change the queue depth for the device
2553 * @sdev: SCSI device destined for queue depth change.
2582 struct device *dev = &cfg->dev->dev;
2611 * @dev: Generic device associated with the host owning the port.
2617 static ssize_t port0_show(struct device *dev,
2628 * @dev: Generic device associated with the host owning the port.
2634 static ssize_t port1_show(struct device *dev,
2645 * @dev: Generic device associated with the host owning the port.
2651 static ssize_t port2_show(struct device *dev,
2662 * @dev: Generic device associated with the host owning the port.
2668 static ssize_t port3_show(struct device *dev,
2679 * @dev: Generic device associated with the host.
2685 static ssize_t lun_mode_show(struct device *dev,
2696 * @dev: Generic device associated with the host.
2704 * as if they were a normal storage device. This feature is useful
2706 * to test the AFU without an actual device.
2716 static ssize_t lun_mode_store(struct device *dev,
2749 * @dev: Generic device associated with the host.
2755 static ssize_t ioctl_version_show(struct device *dev,
2780 struct device *dev = &cfg->dev->dev;
2804 * @dev: Generic device associated with the host owning the port.
2810 static ssize_t port0_lun_table_show(struct device *dev,
2821 * @dev: Generic device associated with the host owning the port.
2827 static ssize_t port1_lun_table_show(struct device *dev,
2838 * @dev: Generic device associated with the host owning the port.
2844 static ssize_t port2_lun_table_show(struct device *dev,
2855 * @dev: Generic device associated with the host owning the port.
2861 static ssize_t port3_lun_table_show(struct device *dev,
2872 * @dev: Generic device associated with the host.
2881 static ssize_t irqpoll_weight_show(struct device *dev,
2892 * @dev: Generic device associated with the host.
2902 static ssize_t irqpoll_weight_store(struct device *dev,
2907 struct device *cfgdev = &cfg->dev->dev;
2952 * @dev: Generic device associated with the host.
2959 static ssize_t num_hwqs_show(struct device *dev,
2970 * @dev: Generic device associated with the host.
2982 static ssize_t num_hwqs_store(struct device *dev,
3037 * @dev: Generic device associated with the host.
3044 static ssize_t hwq_mode_show(struct device *dev,
3055 * @dev: Generic device associated with the host.
3067 static ssize_t hwq_mode_store(struct device *dev,
3073 struct device *cfgdev = &cfg->dev->dev;
3096 * mode_show() - presents the current mode of the device
3097 * @dev: Generic device associated with the device.
3098 * @attr: Device attribute representing the device mode.
3103 static ssize_t mode_show(struct device *dev,
3192 * PCI device binding table
3220 struct device *dev = &cfg->dev->dev;
3225 /* Avoid MMIO if the device has failed */
3257 * cxlflash_chr_open() - character device open handler
3258 * @inode: Device inode associated with this character device.
3259 * @file: File pointer for this device.
3261 * Only users with admin privileges are allowed to open the character device.
3305 struct device *dev = &cfg->dev->dev;
3399 struct device *dev = &cfg->dev->dev;
3476 * cxlflash_chr_ioctl() - character device IOCTL handler
3477 * @file: File pointer for this device.
3497 struct device *dev = &cfg->dev->dev;
3585 * Character device file operations
3595 * init_chrdev() - initialize the character device for the host
3602 struct device *dev = &cfg->dev->dev;
3603 struct device *char_dev;
3646 * @pdev: PCI device associated with the host.
3647 * @dev_id: PCI device id associated with device.
3649 * The device will initially start out in a 'probing' state and
3653 * is nearly complete. At that time, the device will be moved to
3655 * reset and recovery (device moves to 'normal' state). Meanwhile,
3665 struct device *dev = &pdev->dev;
3786 * @pdev: PCI device struct.
3790 * complete and then take action based upon the device state.
3799 struct device *dev = &cfg->dev->dev;
3832 * @pdev: PCI device struct.
3843 struct device *dev = &cfg->dev->dev;
3858 * @pdev: PCI device struct
3863 struct device *dev = &cfg->dev->dev;
3874 * @dev: Character device.
3879 static char *cxlflash_devnode(struct device *dev, umode_t *mode)
3885 * cxlflash_class_init() - create character device class
3919 * cxlflash_class_exit() - destroy character device class
3936 * PCI device structure