Home
last modified time | relevance | path

Searched +full:chan +full:- +full:name (Results 1 – 25 of 1018) sorted by relevance

12345678910>>...41

/Linux-v6.1/drivers/dma/dw-edma/
Ddw-edma-v0-core.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2018-2019 Synopsys, Inc. and/or its affiliates.
11 #include "dw-edma-core.h"
12 #include "dw-edma-v0-core.h"
13 #include "dw-edma-v0-regs.h"
14 #include "dw-edma-v0-debugfs.h"
28 return dw->chip->reg_base; in __dw_regs()
31 #define SET_32(dw, name, value) \ argument
32 writel(value, &(__dw_regs(dw)->name))
34 #define GET_32(dw, name) \ argument
[all …]
/Linux-v6.1/drivers/iio/
Dinkern.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/iio/iio-opaque.h>
30 int ret = -ENODEV; in iio_map_array_unregister_locked()
34 if (indio_dev == mapi->indio_dev) { in iio_map_array_unregister_locked()
35 list_del(&mapi->l); in iio_map_array_unregister_locked()
55 ret = -ENOMEM; in iio_map_array_register()
58 mapi->map = &maps[i]; in iio_map_array_register()
59 mapi->indio_dev = indio_dev; in iio_map_array_register()
60 list_add_tail(&mapi->l, &iio_map_list); in iio_map_array_register()
105 *iio_chan_spec_from_name(const struct iio_dev *indio_dev, const char *name) in iio_chan_spec_from_name() argument
[all …]
/Linux-v6.1/drivers/video/fbdev/nvidia/
Dnv_i2c.c2 * linux/drivers/video/nvidia/nvidia-i2c.c - nVidia i2c
6 * Based on rivafb-i2c.c
30 struct nvidia_i2c_chan *chan = data; in nvidia_gpio_setscl() local
31 struct nvidia_par *par = chan->par; in nvidia_gpio_setscl()
34 val = NVReadCrtc(par, chan->ddc_base + 1) & 0xf0; in nvidia_gpio_setscl()
41 NVWriteCrtc(par, chan->ddc_base + 1, val | 0x01); in nvidia_gpio_setscl()
46 struct nvidia_i2c_chan *chan = data; in nvidia_gpio_setsda() local
47 struct nvidia_par *par = chan->par; in nvidia_gpio_setsda()
50 val = NVReadCrtc(par, chan->ddc_base + 1) & 0xf0; in nvidia_gpio_setsda()
57 NVWriteCrtc(par, chan->ddc_base + 1, val | 0x01); in nvidia_gpio_setsda()
[all …]
/Linux-v6.1/drivers/soc/ti/
Dknav_dma.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/dma-direction.h>
100 char name[32]; member
124 #define chan_number(ch) ((ch->direction == DMA_MEM_TO_DEV) ? \
125 ch->channel : ch->flow)
136 static bool check_config(struct knav_dma_chan *chan, struct knav_dma_cfg *cfg) in check_config() argument
138 if (!memcmp(&chan->cfg, cfg, sizeof(*cfg))) in check_config()
144 static int chan_start(struct knav_dma_chan *chan, in chan_start() argument
149 spin_lock(&chan->lock); in chan_start()
150 if ((chan->direction == DMA_MEM_TO_DEV) && chan->reg_chan) { in chan_start()
[all …]
/Linux-v6.1/drivers/gpu/drm/gma500/
Dintel_i2c.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2006-2007 Intel Corporation
11 #include <linux/i2c-algo-bit.h>
25 struct gma_i2c_chan *chan = data; in get_clock() local
26 struct drm_device *dev = chan->drm_dev; in get_clock()
29 val = REG_READ(chan->reg); in get_clock()
35 struct gma_i2c_chan *chan = data; in get_data() local
36 struct drm_device *dev = chan->drm_dev; in get_data()
39 val = REG_READ(chan->reg); in get_data()
45 struct gma_i2c_chan *chan = data; in set_clock() local
[all …]
/Linux-v6.1/drivers/video/fbdev/aty/
Dradeon_i2c.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/i2c-algo-bit.h>
20 struct radeon_i2c_chan *chan = data; in radeon_gpio_setscl() local
21 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_setscl()
24 val = INREG(chan->ddc_reg) & ~(VGA_DDC_CLK_OUT_EN); in radeon_gpio_setscl()
28 OUTREG(chan->ddc_reg, val); in radeon_gpio_setscl()
29 (void)INREG(chan->ddc_reg); in radeon_gpio_setscl()
34 struct radeon_i2c_chan *chan = data; in radeon_gpio_setsda() local
35 struct radeonfb_info *rinfo = chan->rinfo; in radeon_gpio_setsda()
38 val = INREG(chan->ddc_reg) & ~(VGA_DDC_DATA_OUT_EN); in radeon_gpio_setsda()
[all …]
/Linux-v6.1/drivers/video/fbdev/riva/
Drivafb-i2c.c2 * linux/drivers/video/riva/fbdev-i2c.c - nVidia i2c
8 * Based on radeonfb-i2c.c
29 struct riva_i2c_chan *chan = data; in riva_gpio_setscl() local
30 struct riva_par *par = chan->par; in riva_gpio_setscl()
33 VGA_WR08(par->riva.PCIO, 0x3d4, chan->ddc_base + 1); in riva_gpio_setscl()
34 val = VGA_RD08(par->riva.PCIO, 0x3d5) & 0xf0; in riva_gpio_setscl()
41 VGA_WR08(par->riva.PCIO, 0x3d4, chan->ddc_base + 1); in riva_gpio_setscl()
42 VGA_WR08(par->riva.PCIO, 0x3d5, val | 0x1); in riva_gpio_setscl()
47 struct riva_i2c_chan *chan = data; in riva_gpio_setsda() local
48 struct riva_par *par = chan->par; in riva_gpio_setsda()
[all …]
/Linux-v6.1/drivers/video/fbdev/i810/
Di810-i2c.c1 /*-*- linux-c -*-
2 * linux/drivers/video/i810-i2c.c -- Intel 810/815 I2C support
44 struct i810fb_i2c_chan *chan = data; in i810i2c_setscl() local
45 struct i810fb_par *par = chan->par; in i810i2c_setscl()
46 u8 __iomem *mmio = par->mmio_start_virtual; in i810i2c_setscl()
49 i810_writel(mmio, chan->ddc_base, SCL_DIR_MASK | SCL_VAL_MASK); in i810i2c_setscl()
51 i810_writel(mmio, chan->ddc_base, SCL_DIR | SCL_DIR_MASK | SCL_VAL_MASK); in i810i2c_setscl()
52 i810_readl(mmio, chan->ddc_base); /* flush posted write */ in i810i2c_setscl()
57 struct i810fb_i2c_chan *chan = data; in i810i2c_setsda() local
58 struct i810fb_par *par = chan->par; in i810i2c_setsda()
[all …]
/Linux-v6.1/drivers/video/fbdev/savage/
Dsavagefb-i2c.c2 * linux/drivers/video/savage/savagefb-i2c.c - S3 Savage DDC2
6 * Based partly on rivafb-i2c.c
47 struct savagefb_i2c_chan *chan = data; in savage4_gpio_setscl() local
50 r = readl(chan->ioaddr + chan->reg); in savage4_gpio_setscl()
55 writel(r, chan->ioaddr + chan->reg); in savage4_gpio_setscl()
56 readl(chan->ioaddr + chan->reg); /* flush posted write */ in savage4_gpio_setscl()
61 struct savagefb_i2c_chan *chan = data; in savage4_gpio_setsda() local
64 r = readl(chan->ioaddr + chan->reg); in savage4_gpio_setsda()
69 writel(r, chan->ioaddr + chan->reg); in savage4_gpio_setsda()
70 readl(chan->ioaddr + chan->reg); /* flush posted write */ in savage4_gpio_setsda()
[all …]
/Linux-v6.1/drivers/mailbox/
Dmailbox-sti.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4))
39 * struct sti_mbox_device - STi Mailbox device data
44 * @name: Name of the mailbox
57 const char *name; member
63 * struct sti_mbox_pdata - STi Mailbox platform specific configuration
74 * struct sti_channel - STi Mailbox allocated channel information
86 static inline bool sti_mbox_channel_is_enabled(struct mbox_chan *chan) in sti_mbox_channel_is_enabled() argument
88 struct sti_channel *chan_info = chan->con_priv; in sti_mbox_channel_is_enabled()
89 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled()
[all …]
Dti-msgmgr.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/
22 #include <linux/soc/ti/ti-msgmgr.h>
41 * struct ti_msgmgr_valid_queue_desc - SoC valid queues meant for this processor
53 * struct ti_msgmgr_desc - Description of message manager integration
64 * @data_region_name: Name of the proxy data region
65 * @status_region_name: Name of the proxy status region
66 * @ctrl_region_name: Name of the proxy control region
92 * struct ti_queue_inst - Description of a queue instance
93 * @name: Queue Name
[all …]
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dchan.c24 #include "chan.h"
34 struct nvkm_fifo_chan *chan; member
39 nvkm_fifo_chan_engn(struct nvkm_fifo_chan *chan, struct nvkm_engine *engine) in nvkm_fifo_chan_engn() argument
41 int engi = chan->fifo->func->engine_id(chan->fifo, engine); in nvkm_fifo_chan_engn()
43 return &chan->engn[engi]; in nvkm_fifo_chan_engn()
52 struct nvkm_engine *engine = object->oproxy.object->engine; in nvkm_fifo_chan_child_fini()
53 struct nvkm_fifo_chan *chan = object->chan; in nvkm_fifo_chan_child_fini() local
54 struct nvkm_fifo_engn *engn = nvkm_fifo_chan_engn(chan, engine); in nvkm_fifo_chan_child_fini()
55 const char *name = engine->subdev.name; in nvkm_fifo_chan_child_fini() local
58 if (--engn->usecount) in nvkm_fifo_chan_child_fini()
[all …]
/Linux-v6.1/arch/sh/drivers/pci/
Dpcie-sh7786.c1 // SPDX-License-Identifier: GPL-2.0
3 * Low-Level PCI Express Support for the SH7786
5 * Copyright (C) 2009 - 2011 Paul Mundt
15 #include <linux/dma-map-ops.h>
21 #include "pcie-sh7786.h"
45 .name = "PCIe0 MEM 0",
47 .end = 0xfd000000 + SZ_8M - 1,
50 .name = "PCIe0 MEM 1",
52 .end = 0xc0000000 + SZ_512M - 1,
55 .name = "PCIe0 MEM 2",
[all …]
/Linux-v6.1/drivers/dma/
Ddmaengine.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright(c) 2004 - 2006 Intel Corporation. All rights reserved.
7 * This code implements the DMA subsystem. It provides a HW-neutral interface
29 * See Documentation/driver-api/dmaengine for more details
35 #include <linux/dma-mapping.h>
63 /* --- debugfs implementation --- */
71 dma_dev->dbg_dev_root = debugfs_create_dir(dev_name(dma_dev->dev), in dmaengine_debug_register()
73 if (IS_ERR(dma_dev->dbg_dev_root)) in dmaengine_debug_register()
74 dma_dev->dbg_dev_root = NULL; in dmaengine_debug_register()
79 debugfs_remove_recursive(dma_dev->dbg_dev_root); in dmaengine_debug_unregister()
[all …]
Dtxx9dmac.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/dma-mapping.h>
19 static struct txx9dmac_chan *to_txx9dmac_chan(struct dma_chan *chan) in to_txx9dmac_chan() argument
21 return container_of(chan, struct txx9dmac_chan, chan); in to_txx9dmac_chan()
26 return dc->ch_regs; in __dma_regs()
32 return dc->ch_regs; in __dma_regs32()
35 #define channel64_readq(dc, name) \ argument
36 __raw_readq(&(__dma_regs(dc)->name))
37 #define channel64_writeq(dc, name, val) \ argument
38 __raw_writeq((val), &(__dma_regs(dc)->name))
[all …]
Dof-dma.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
24 * of_dma_find_controller - Get a DMA controller in DT DMA helpers list
37 if (ofdma->of_node == dma_spec->np) in of_dma_find_controller()
41 dma_spec->np); in of_dma_find_controller()
47 * of_dma_router_xlate - translation function for router devices
58 struct dma_chan *chan; in of_dma_router_xlate() local
65 route_data = ofdma->of_dma_route_allocate(&dma_spec_target, ofdma); in of_dma_router_xlate()
71 ofdma->dma_router->route_free(ofdma->dma_router->dev, in of_dma_router_xlate()
73 chan = ERR_PTR(-EPROBE_DEFER); in of_dma_router_xlate()
[all …]
/Linux-v6.1/drivers/video/fbdev/intelfb/
Dintelfb_i2c.c20 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
35 #include <linux/i2c-algo-bit.h>
56 struct intelfb_i2c_chan *chan = data; in intelfb_gpio_setscl() local
57 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_setscl()
60 OUTREG(chan->reg, (state ? SCL_VAL_OUT : 0) | in intelfb_gpio_setscl()
62 val = INREG(chan->reg); in intelfb_gpio_setscl()
67 struct intelfb_i2c_chan *chan = data; in intelfb_gpio_setsda() local
68 struct intelfb_info *dinfo = chan->dinfo; in intelfb_gpio_setsda()
71 OUTREG(chan->reg, (state ? SDA_VAL_OUT : 0) | in intelfb_gpio_setsda()
73 val = INREG(chan->reg); in intelfb_gpio_setsda()
[all …]
/Linux-v6.1/drivers/media/pci/cx25821/
Dcx25821-video.c1 // SPDX-License-Identifier: GPL-2.0-or-later
14 #include "cx25821-video.h"
20 static unsigned int video_nr[] = {[0 ... (CX25821_MAXBOARDS - 1)] = UNSET };
66 cx25821_sram_channel_setup(dev, channel, buf->bpl, buf->risc.dma); in cx25821_start_video_dma()
69 cx_write(channel->gpcnt_ctl, 3); in cx25821_start_video_dma()
72 cx_set(PCI_INT_MSK, cx_read(PCI_INT_MSK) | (1 << channel->i)); in cx25821_start_video_dma()
73 cx_set(channel->int_msk, 0x11); in cx25821_start_video_dma()
76 cx_write(channel->dma_ctl, 0x11); /* FIFO and RISC enable */ in cx25821_start_video_dma()
89 const struct sram_channel *channel = dev->channels[chan_num].sram_channels; in cx25821_video_irq()
91 mask = cx_read(channel->int_msk); in cx25821_video_irq()
[all …]
/Linux-v6.1/drivers/iio/multiplexer/
Diio-mux.c1 // SPDX-License-Identifier: GPL-2.0
34 struct iio_chan_spec *chan; member
42 struct mux_child *child = &mux->child[idx]; in iio_mux_select()
43 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select() local
47 ret = mux_control_select_delay(mux->control, chan->channel, in iio_mux_select()
48 mux->delay_us); in iio_mux_select()
50 mux->cached_state = -1; in iio_mux_select()
54 if (mux->cached_state == chan->channel) in iio_mux_select()
57 if (chan->ext_info) { in iio_mux_select()
58 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select()
[all …]
/Linux-v6.1/drivers/staging/media/tegra-video/
Dvi.c1 // SPDX-License-Identifier: GPL-2.0-only
21 #include <media/v4l2-dv-timings.h>
22 #include <media/v4l2-event.h>
23 #include <media/v4l2-fh.h>
24 #include <media/v4l2-fwnode.h>
25 #include <media/v4l2-ioctl.h>
26 #include <media/videobuf2-dma-contig.h>
68 for (i = offset; i < vi->soc->nformats; ++i) { in tegra_get_format_idx_by_code()
69 if (vi->soc->video_formats[i].code == code) in tegra_get_format_idx_by_code()
73 return -1; in tegra_get_format_idx_by_code()
[all …]
/Linux-v6.1/sound/soc/
Dsoc-generic-dmaengine-pcm.c1 // SPDX-License-Identifier: GPL-2.0+
4 // Author: Lars-Peter Clausen <lars@metafoo.de>
13 #include <linux/dma-mapping.h>
31 if (!pcm->chan[substream->stream]) in dmaengine_dma_dev()
34 return pcm->chan[substream->stream]->device->dev; in dmaengine_dma_dev()
38 * snd_dmaengine_pcm_prepare_slave_config() - Generic prepare_slave_config callback
57 if (rtd->dai_link->num_cpus > 1) { in snd_dmaengine_pcm_prepare_slave_config()
58 dev_err(rtd->dev, in snd_dmaengine_pcm_prepare_slave_config()
60 return -EINVAL; in snd_dmaengine_pcm_prepare_slave_config()
81 struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream); in dmaengine_pcm_hw_params() local
[all …]
/Linux-v6.1/arch/sh/drivers/dma/
Ddma-api.c1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/drivers/dma/dma-api.c
5 * SuperH-specific DMA management API
24 struct dma_info *get_dma_info(unsigned int chan) in get_dma_info() argument
33 if ((chan < info->first_vchannel_nr) || in get_dma_info()
34 (chan >= info->first_vchannel_nr + info->nr_channels)) in get_dma_info()
49 if (dmac_name && (strcmp(dmac_name, info->name) != 0)) in get_dma_info_by_name()
68 nr += info->nr_channels; in get_nr_channels()
73 struct dma_channel *get_dma_channel(unsigned int chan) in get_dma_channel() argument
75 struct dma_info *info = get_dma_info(chan); in get_dma_channel()
[all …]
Ddma-sysfs.c1 // SPDX-License-Identifier: GPL-2.0
3 * arch/sh/drivers/dma/dma-sysfs.c
7 * Copyright (C) 2004 - 2006 Paul Mundt
19 .name = "dma",
37 channel->chan, info->name, in dma_show_devices()
38 channel->dev_id); in dma_show_devices()
62 return sprintf(buf, "%s\n", channel->dev_id); in dma_show_dev_id()
70 strcpy(channel->dev_id, buf); in dma_store_dev_id()
84 dma_configure_channel(channel->vchan, config); in dma_store_config()
95 return sprintf(buf, "0x%08x\n", channel->mode); in dma_show_mode()
[all …]
/Linux-v6.1/include/linux/iio/
Dconsumer.h1 /* SPDX-License-Identifier: GPL-2.0-only */
19 * struct iio_channel - everything needed for a consumer to use a channel
31 * iio_channel_get() - get description of all that is needed to access channel.
32 * @dev: Pointer to consumer device. Device name must match
33 * the name of the device as provided in the iio_map
36 * @consumer_channel: Unique name to identify the channel on the consumer
44 * iio_channel_release() - release channels obtained via iio_channel_get
45 * @chan: The channel to be released.
47 void iio_channel_release(struct iio_channel *chan);
50 * devm_iio_channel_get() - Resource managed version of iio_channel_get().
[all …]
/Linux-v6.1/arch/arm/mach-footbridge/
Ddma-isa.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 1999-2000 Russell King
11 * arch/arm/kernel/dma-ebsa285.c
14 #include <linux/dma-map-ops.h>
17 #include <linux/dma-mapping.h>
44 static int isa_get_dma_residue(unsigned int chan, dma_t *dma) in isa_get_dma_residue() argument
46 unsigned int io_port = isa_dma_port[chan][ISA_DMA_COUNT]; in isa_get_dma_residue()
52 return chan < 4 ? count : (count << 1); in isa_get_dma_residue()
61 static void isa_enable_dma(unsigned int chan, dma_t *dma) in isa_enable_dma() argument
63 if (dma->invalid) { in isa_enable_dma()
[all …]

12345678910>>...41