• Home
  • Raw
  • Download

Lines Matching refs:dev

26 static ssize_t dma_show_devices(struct device *dev,  in dma_show_devices()  argument
61 static ssize_t dma_show_dev_id(struct device *dev, in dma_show_dev_id() argument
64 struct dma_channel *channel = to_dma_channel(dev); in dma_show_dev_id()
68 static ssize_t dma_store_dev_id(struct device *dev, in dma_store_dev_id() argument
72 struct dma_channel *channel = to_dma_channel(dev); in dma_store_dev_id()
79 static ssize_t dma_store_config(struct device *dev, in dma_store_config() argument
83 struct dma_channel *channel = to_dma_channel(dev); in dma_store_config()
94 static ssize_t dma_show_mode(struct device *dev, in dma_show_mode() argument
97 struct dma_channel *channel = to_dma_channel(dev); in dma_show_mode()
101 static ssize_t dma_store_mode(struct device *dev, in dma_store_mode() argument
105 struct dma_channel *channel = to_dma_channel(dev); in dma_store_mode()
113 static ssize_t dma_show_##field(struct device *dev, \
116 struct dma_channel *channel = to_dma_channel(dev); \
126 struct device *dev = &chan->dev; in dma_create_sysfs_files() local
130 dev->id = chan->vchan; in dma_create_sysfs_files()
131 dev->bus = &dma_subsys; in dma_create_sysfs_files()
133 ret = device_register(dev); in dma_create_sysfs_files()
137 ret |= device_create_file(dev, &dev_attr_dev_id); in dma_create_sysfs_files()
138 ret |= device_create_file(dev, &dev_attr_count); in dma_create_sysfs_files()
139 ret |= device_create_file(dev, &dev_attr_mode); in dma_create_sysfs_files()
140 ret |= device_create_file(dev, &dev_attr_flags); in dma_create_sysfs_files()
141 ret |= device_create_file(dev, &dev_attr_config); in dma_create_sysfs_files()
144 dev_err(&info->pdev->dev, "Failed creating attrs\n"); in dma_create_sysfs_files()
149 return sysfs_create_link(&info->pdev->dev.kobj, &dev->kobj, name); in dma_create_sysfs_files()
154 struct device *dev = &chan->dev; in dma_remove_sysfs_files() local
157 device_remove_file(dev, &dev_attr_dev_id); in dma_remove_sysfs_files()
158 device_remove_file(dev, &dev_attr_count); in dma_remove_sysfs_files()
159 device_remove_file(dev, &dev_attr_mode); in dma_remove_sysfs_files()
160 device_remove_file(dev, &dev_attr_flags); in dma_remove_sysfs_files()
161 device_remove_file(dev, &dev_attr_config); in dma_remove_sysfs_files()
164 sysfs_remove_link(&info->pdev->dev.kobj, name); in dma_remove_sysfs_files()
166 device_unregister(dev); in dma_remove_sysfs_files()