Lines Matching refs:dev

102 	struct device *dev = container_of(kobj, struct device, kobj);  in twl_sysfs_aen_read()  local
103 struct Scsi_Host *shost = class_to_shost(dev); in twl_sysfs_aen_read()
133 struct device *dev = container_of(kobj, struct device, kobj); in twl_sysfs_compat_info() local
134 struct Scsi_Host *shost = class_to_shost(dev); in twl_sysfs_compat_info()
160 static ssize_t twl_show_stats(struct device *dev, in twl_show_stats() argument
163 struct Scsi_Host *host = class_to_shost(dev); in twl_show_stats()
648 cpu_addr = dma_alloc_coherent(&tw_dev->tw_pci_dev->dev, in twl_allocate_memory()
751 …cpu_addr = dma_alloc_coherent(&tw_dev->tw_pci_dev->dev, data_buffer_length_adjusted + sizeof(TW_Io… in twl_chrdev_ioctl()
822 …dma_free_coherent(&tw_dev->tw_pci_dev->dev, data_buffer_length_adjusted + sizeof(TW_Ioctl_Buf_Apac… in twl_chrdev_ioctl()
903 dma_free_coherent(&tw_dev->tw_pci_dev->dev, in twl_free_device_extension()
909 dma_free_coherent(&tw_dev->tw_pci_dev->dev, in twl_free_device_extension()
915 dma_free_coherent(&tw_dev->tw_pci_dev->dev, in twl_free_device_extension()
1568 retval = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in twl_probe()
1625 retval = scsi_add_host(host, &pdev->dev); in twl_probe()
1750 static int __maybe_unused twl_suspend(struct device *dev) in twl_suspend() argument
1752 struct Scsi_Host *host = dev_get_drvdata(dev); in twl_suspend()
1775 static int __maybe_unused twl_resume(struct device *dev) in twl_resume() argument
1778 struct pci_dev *pdev = to_pci_dev(dev); in twl_resume()
1785 retval = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64)); in twl_resume()