Home
last modified time | relevance | path

Searched refs:chan_id (Results 1 – 25 of 62) sorted by relevance

123

/Linux-v5.4/drivers/i2c/
Di2c-mux.c36 u32 chan_id; member
49 ret = muxc->select(muxc, priv->chan_id); in __i2c_mux_master_xfer()
53 muxc->deselect(muxc, priv->chan_id); in __i2c_mux_master_xfer()
68 ret = muxc->select(muxc, priv->chan_id); in i2c_mux_master_xfer()
72 muxc->deselect(muxc, priv->chan_id); in i2c_mux_master_xfer()
89 ret = muxc->select(muxc, priv->chan_id); in __i2c_mux_smbus_xfer()
94 muxc->deselect(muxc, priv->chan_id); in __i2c_mux_smbus_xfer()
111 ret = muxc->select(muxc, priv->chan_id); in i2c_mux_smbus_xfer()
116 muxc->deselect(muxc, priv->chan_id); in i2c_mux_smbus_xfer()
283 u32 force_nr, u32 chan_id, in i2c_mux_add_adapter() argument
[all …]
/Linux-v5.4/drivers/dma/
Dmxs-dma.c207 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_reset_chan() local
220 writel(1 << (chan_id + BP_APBH_CTRL0_RESET_CHANNEL), in mxs_dma_reset_chan()
226 HW_APBX_CHn_DEBUG1(mxs_dma, chan_id); in mxs_dma_reset_chan()
243 chan_id); in mxs_dma_reset_chan()
245 writel(1 << (chan_id + BP_APBHX_CHANNEL_CTRL_RESET_CHANNEL), in mxs_dma_reset_chan()
256 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_enable_chan() local
260 mxs_dma->base + HW_APBHX_CHn_NXTCMDAR(mxs_dma, chan_id)); in mxs_dma_enable_chan()
268 writel(2, mxs_dma->base + HW_APBHX_CHn_SEMA(mxs_dma, chan_id)); in mxs_dma_enable_chan()
270 writel(1, mxs_dma->base + HW_APBHX_CHn_SEMA(mxs_dma, chan_id)); in mxs_dma_enable_chan()
286 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_pause_chan() local
[all …]
Dstm32-dmamux.c32 u32 chan_id; member
69 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), 0); in stm32_dmamux_free()
70 clear_bit(mux->chan_id, dmamux->dma_inuse); in stm32_dmamux_free()
77 mux->request, mux->master, mux->chan_id); in stm32_dmamux_free()
108 mux->chan_id = find_first_zero_bit(dmamux->dma_inuse, in stm32_dmamux_route_allocate()
111 if (mux->chan_id == dmamux->dma_requests) { in stm32_dmamux_route_allocate()
117 set_bit(mux->chan_id, dmamux->dma_inuse); in stm32_dmamux_route_allocate()
124 if (mux->chan_id < max) in stm32_dmamux_route_allocate()
151 dma_spec->args[0] = mux->chan_id - min; in stm32_dmamux_route_allocate()
154 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), in stm32_dmamux_route_allocate()
[all …]
Dpch_dma.c183 if (chan->chan_id < 8) in pdc_enable_irq()
184 pos = chan->chan_id; in pdc_enable_irq()
186 pos = chan->chan_id + 8; in pdc_enable_irq()
198 chan->chan_id, val); in pdc_enable_irq()
209 if (chan->chan_id < 8) { in pdc_set_dir()
213 (DMA_CTL0_BITS_PER_CH * chan->chan_id); in pdc_set_dir()
215 (DMA_CTL0_BITS_PER_CH * chan->chan_id)); in pdc_set_dir()
218 val |= 0x1 << (DMA_CTL0_BITS_PER_CH * chan->chan_id + in pdc_set_dir()
221 val &= ~(0x1 << (DMA_CTL0_BITS_PER_CH * chan->chan_id + in pdc_set_dir()
227 int ch = chan->chan_id - 8; /* ch8-->0 ch9-->1 ... ch11->3 */ in pdc_set_dir()
[all …]
Dat_hdmac_regs.h364 atchan->chan_common.chan_id, in vdbg_dump_regs()
390 static void atc_setup_irq(struct at_dma *atdma, int chan_id, int on) in atc_setup_irq() argument
395 ebci = AT_DMA_BTC(chan_id) in atc_setup_irq()
396 | AT_DMA_ERR(chan_id); in atc_setup_irq()
403 static void atc_enable_chan_irq(struct at_dma *atdma, int chan_id) in atc_enable_chan_irq() argument
405 atc_setup_irq(atdma, chan_id, 1); in atc_enable_chan_irq()
408 static void atc_disable_chan_irq(struct at_dma *atdma, int chan_id) in atc_disable_chan_irq() argument
410 atc_setup_irq(atdma, chan_id, 0); in atc_disable_chan_irq()
Duniphier-mdmac.c64 unsigned int chan_id; member
141 writel(BIT(mc->chan_id), mdev->reg_base + UNIPHIER_MDMAC_CMD); in uniphier_mdmac_handle()
164 writel(UNIPHIER_MDMAC_CMD_ABORT | BIT(mc->chan_id), in uniphier_mdmac_abort()
349 int chan_id) in uniphier_mdmac_chan_init() argument
352 struct uniphier_mdmac_chan *mc = &mdev->channels[chan_id]; in uniphier_mdmac_chan_init()
356 irq = platform_get_irq(pdev, chan_id); in uniphier_mdmac_chan_init()
361 chan_id); in uniphier_mdmac_chan_init()
372 UNIPHIER_MDMAC_CH_STRIDE * chan_id; in uniphier_mdmac_chan_init()
373 mc->chan_id = chan_id; in uniphier_mdmac_chan_init()
Dst_fdma.h186 + (fchan)->vchan.chan.chan_id * 0x4 \
191 + (fchan)->vchan.chan.chan_id * 0x4 \
208 + (fchan)->vchan.chan.chan_id * FDMA_NODE_SZ \
213 + (fchan)->vchan.chan.chan_id * FDMA_NODE_SZ \
Dst_fdma.c84 cmd = FDMA_CMD_START(fchan->vchan.chan.chan_id); in st_fdma_xfer_desc()
93 dev_dbg(fchan->fdev->dev, "start chan:%d\n", fchan->vchan.chan.chan_id); in st_fdma_xfer_desc()
100 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_ch_sta_update()
281 fchan->vchan.chan.chan_id, fchan->cfg.type); in st_fdma_alloc_chan_res()
293 __func__, fchan->vchan.chan.chan_id); in st_fdma_free_chan_res()
350 int ch_id = fchan->vchan.chan.chan_id; in config_reqctrl()
623 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_pause()
641 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_resume()
661 int ch_id = fchan->vchan.chan.chan_id; in st_fdma_terminate_all()
Dacpi-dma.c339 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
379 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index()
387 if (dma_spec->slave_id < 0 || dma_spec->chan_id < 0) in acpi_dma_request_slave_chan_by_index()
Dsirf-dma.c159 return container_of(schan, struct sirfsoc_dma, channels[c->chan_id]); in dma_chan_to_sirfsoc_dma()
239 int cid = schan->chan.chan_id; in sirfsoc_dma_execute()
446 int cid = schan->chan.chan_id; in sirfsoc_dma_terminate_all()
492 int cid = schan->chan.chan_id; in sirfsoc_dma_pause_chan()
526 int cid = schan->chan.chan_id; in sirfsoc_dma_resume_chan()
648 int cid = schan->chan.chan_id; in sirfsoc_dma_tx_status()
808 bool sirfsoc_dma_filter_id(struct dma_chan *chan, void *chan_id) in sirfsoc_dma_filter_id() argument
810 unsigned int ch_nr = (unsigned int) chan_id; in sirfsoc_dma_filter_id()
812 if (ch_nr == chan->chan_id + in sirfsoc_dma_filter_id()
Dmmp_tdma.c585 unsigned int chan_id; member
592 if (chan->chan_id != param->chan_id) in mmp_tdma_filter_fn()
608 param.chan_id = dma_spec->args[0]; in mmp_tdma_xlate()
610 if (param.chan_id >= TDMA_CHANNEL_NUM) in mmp_tdma_xlate()
/Linux-v5.4/sound/soc/xilinx/
Dxlnx_i2s.c42 u32 reg_off, chan_id; in xlnx_i2s_hw_params() local
45 chan_id = params_channels(params) / 2; in xlnx_i2s_hw_params()
47 while (chan_id > 0) { in xlnx_i2s_hw_params()
48 reg_off = I2S_CH0_OFFSET + ((chan_id - 1) * 4); in xlnx_i2s_hw_params()
49 writel(chan_id, base + reg_off); in xlnx_i2s_hw_params()
50 chan_id--; in xlnx_i2s_hw_params()
/Linux-v5.4/drivers/dma/ipu/
Dipu_idmac.c605 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_enable_channel()
657 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel_buffer()
732 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_update_channel_buffer()
776 unsigned int chan_id = ichan->dma_chan.chan_id; in ipu_submit_buffer() local
790 ipu_select_buffer(chan_id, buf_idx); in ipu_submit_buffer()
792 sg, chan_id, buf_idx); in ipu_submit_buffer()
952 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel()
1009 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_uninit_channel()
1072 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_disable_channel()
1157 unsigned int chan_id = ichan->dma_chan.chan_id; in idmac_interrupt() local
[all …]
/Linux-v5.4/include/linux/
Di2c-mux.h27 int (*select)(struct i2c_mux_core *, u32 chan_id);
28 int (*deselect)(struct i2c_mux_core *, u32 chan_id);
59 u32 force_nr, u32 chan_id,
Dsirfsoc_dma.h5 bool sirfsoc_dma_filter_id(struct dma_chan *chan, void *chan_id);
Dpch_dma.h19 unsigned int chan_id; member
/Linux-v5.4/drivers/i2c/muxes/
Di2c-mux-reg.c23 static int i2c_mux_reg_set(const struct regmux *mux, unsigned int chan_id) in i2c_mux_reg_set() argument
37 iowrite32(chan_id, mux->data.reg); in i2c_mux_reg_set()
39 iowrite32be(chan_id, mux->data.reg); in i2c_mux_reg_set()
45 iowrite16(chan_id, mux->data.reg); in i2c_mux_reg_set()
47 iowrite16be(chan_id, mux->data.reg); in i2c_mux_reg_set()
52 iowrite8(chan_id, mux->data.reg); in i2c_mux_reg_set()
/Linux-v5.4/include/linux/platform_data/
Ddma-coh901318.h64 bool coh901318_filter_id(struct dma_chan *chan, void *chan_id);
66 static inline bool coh901318_filter_id(struct dma_chan *chan, void *chan_id) in coh901318_filter_id() argument
Ddma-hsu.h15 int chan_id; member
Ddma-ep93xx.h91 return (chan->chan_id % 2 == 0) ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM; in ep93xx_dma_chan_direction()
/Linux-v5.4/drivers/iio/adc/
Dbcm_iproc_adc.c114 int chan_id; member
180 IPROC_ADC_CHANNEL_OFFSET * adc_priv->chan_id, in iproc_adc_interrupt_handler()
187 adc_priv->chan_id, in iproc_adc_interrupt_handler()
197 adc_priv->chan_id, in iproc_adc_interrupt_handler()
203 adc_priv->chan_id); in iproc_adc_interrupt_handler()
208 adc_priv->chan_id, in iproc_adc_interrupt_handler()
214 IPROC_ADC_CHANNEL_OFFSET * adc_priv->chan_id, in iproc_adc_interrupt_handler()
242 adc_priv->chan_id = channel; in iproc_adc_do_read()
/Linux-v5.4/include/linux/amba/
Dpl08x.h122 bool pl08x_filter_id(struct dma_chan *chan, void *chan_id);
124 static inline bool pl08x_filter_id(struct dma_chan *chan, void *chan_id) in pl08x_filter_id() argument
/Linux-v5.4/drivers/iio/gyro/
Dmpu3050-i2c.c17 static int mpu3050_i2c_bypass_select(struct i2c_mux_core *mux, u32 chan_id) in mpu3050_i2c_bypass_select() argument
26 static int mpu3050_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id) in mpu3050_i2c_bypass_deselect() argument
/Linux-v5.4/drivers/tty/serial/8250/
D8250_mid.c239 if (s->dma_dev != chan->device->dev || s->chan_id != chan->chan_id) in mid8250_dma_filter()
264 rx_param->chan_id = mid->dma_index * 2 + 1; in mid8250_dma_setup()
265 tx_param->chan_id = mid->dma_index * 2; in mid8250_dma_setup()
/Linux-v5.4/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_i2c.c20 static int inv_mpu6050_select_bypass(struct i2c_mux_core *muxc, u32 chan_id) in inv_mpu6050_select_bypass() argument
41 static int inv_mpu6050_deselect_bypass(struct i2c_mux_core *muxc, u32 chan_id) in inv_mpu6050_deselect_bypass() argument

123