Lines Matching defs:device

8 #include <linux/device.h>
303 * @dev: pointer to the DMA router device
307 struct device *dev;
308 void (*route_free)(struct device *dev, void *route_data);
313 * @device: ptr to the dma device who supplies this channel, always !%NULL
314 * @slave: ptr to the device using this channel
318 * @dev: class device for sysfs
322 * @device_node: used to add this to the device chan list
331 struct dma_device *device;
332 struct device *slave;
357 * struct dma_chan_dev - relate sysfs device node to backing channel device
358 * @chan: driver channel device
359 * @device: sysfs device
364 struct device device;
370 * device, source or target buses
405 * in one burst to the device. Typically something like half the
411 * to be accessed on the device side. It is only used for devices which is using
428 * The DMA device/engine has to provide support for an additional
519 return dev_name(&chan->dev->device);
562 struct device *dev;
627 struct dmaengine_unmap_data *dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags);
633 static inline struct dmaengine_unmap_data *dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags)
742 * struct dma_slave_map - associates slave device and it's slave channel with
744 * @devname: name of the device
755 * struct dma_filter - information for slave device/channel to filter_fn/param
758 * @mapcnt: number of slave device/channel in the map
773 * @filter: information for device/slave to filter function/param mapping
775 * @desc_metadata_modes: supported metadata modes by the DMA device
782 * @dev_id: unique device ID
783 * @dev: struct device reference for dma mapping api
785 * @src_addr_widths: bit mask of src addr widths the device supports
786 * Width is specified in bytes, e.g. for a device supporting
788 * @dst_addr_widths: bit mask of dst addr widths the device supports
789 * @directions: bit mask of slave directions the device supports.
861 struct device *dev;
930 if (chan->device->device_config) {
931 return chan->device->device_config(chan, config);
951 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) {
955 return chan->device->device_prep_slave_sg(chan, &sg, 1, dir, flags, NULL);
963 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) {
967 return chan->device->device_prep_slave_sg(chan, sgl, sg_len, dir, flags, NULL);
977 if (!chan || !chan->device || !chan->device->device_prep_slave_sg) {
981 return chan->device->device_prep_slave_sg(chan, sgl, sg_len, dir, flags, rio_ext);
990 if (!chan || !chan->device || !chan->device->device_prep_dma_cyclic) {
994 return chan->device->device_prep_dma_cyclic(chan, buf_addr, buf_len, period_len, dir, flags);
1000 if (!chan || !chan->device || !chan->device->device_prep_interleaved_dma) {
1003 if (flags & DMA_PREP_REPEAT && !test_bit(DMA_REPEAT, chan->device->cap_mask.bits)) {
1007 return chan->device->device_prep_interleaved_dma(chan, xt, flags);
1013 if (!chan || !chan->device || !chan->device->device_prep_dma_memset) {
1017 return chan->device->device_prep_dma_memset(chan, dest, value, len, flags);
1023 if (!chan || !chan->device || !chan->device->device_prep_dma_memcpy) {
1027 return chan->device->device_prep_dma_memcpy(chan, dest, src, len, flags);
1036 return !!(chan->device->desc_metadata_modes & mode);
1068 if (chan->device->device_terminate_all) {
1069 return chan->device->device_terminate_all(chan);
1098 if (chan->device->device_terminate_all) {
1099 return chan->device->device_terminate_all(chan);
1127 if (chan->device->device_synchronize) {
1128 chan->device->device_synchronize(chan);
1162 if (chan->device->device_pause) {
1163 return chan->device->device_pause(chan);
1171 if (chan->device->device_resume) {
1172 return chan->device->device_resume(chan);
1181 return chan->device->device_tx_status(chan, cookie, state);
1245 * @dma - dma device with PQ capability
1381 chan->device->device_issue_pending(chan);
1401 status = chan->device->device_tx_status(chan, cookie, &state);
1454 struct dma_chan *dma_request_chan(struct device *dev, const char *name);
1480 static inline struct dma_chan *dma_request_chan(struct device *dev, const char *name)
1535 /* --- DMA device --- */
1537 int dma_async_device_register(struct dma_device *device);
1538 int dmaenginem_async_device_register(struct dma_device *device);
1539 void dma_async_device_unregister(struct dma_device *device);
1540 int dma_async_device_channel_register(struct dma_device *device, struct dma_chan *chan);
1541 void dma_async_device_channel_unregister(struct dma_device *device, struct dma_chan *chan);
1546 static inline struct dma_chan *__deprecated dma_request_slave_channel(struct device *dev, const char *name)
1554 void *fn_param, struct device *dev, const char *name)