Home
last modified time | relevance | path

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

12

/drivers/i2c/
Di2c-mux.c37 u32 chan_id; /* the channel id */ member
39 int (*select)(struct i2c_adapter *, void *mux_priv, u32 chan_id);
40 int (*deselect)(struct i2c_adapter *, void *mux_priv, u32 chan_id);
52 ret = priv->select(parent, priv->mux_priv, priv->chan_id); in i2c_mux_master_xfer()
56 priv->deselect(parent, priv->mux_priv, priv->chan_id); in i2c_mux_master_xfer()
72 ret = priv->select(parent, priv->mux_priv, priv->chan_id); in i2c_mux_smbus_xfer()
77 priv->deselect(parent, priv->mux_priv, priv->chan_id); in i2c_mux_smbus_xfer()
106 void *mux_priv, u32 force_nr, u32 chan_id, in i2c_add_mux_adapter() argument
123 priv->chan_id = chan_id; in i2c_add_mux_adapter()
138 "i2c-%d-mux (chan_id %d)", i2c_adapter_id(parent), chan_id); in i2c_add_mux_adapter()
[all …]
/drivers/dma/
Dmxs-dma.c221 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_reset_chan() local
224 writel(1 << (chan_id + BP_APBH_CTRL0_RESET_CHANNEL), in mxs_dma_reset_chan()
227 writel(1 << (chan_id + BP_APBHX_CHANNEL_CTRL_RESET_CHANNEL), in mxs_dma_reset_chan()
234 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_enable_chan() local
238 mxs_dma->base + HW_APBHX_CHn_NXTCMDAR(mxs_dma, chan_id)); in mxs_dma_enable_chan()
241 writel(1, mxs_dma->base + HW_APBHX_CHn_SEMA(mxs_dma, chan_id)); in mxs_dma_enable_chan()
252 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_pause_chan() local
256 writel(1 << chan_id, in mxs_dma_pause_chan()
259 writel(1 << chan_id, in mxs_dma_pause_chan()
268 int chan_id = mxs_chan->chan.chan_id; in mxs_dma_resume_chan() local
[all …]
Dpch_dma.c194 if (chan->chan_id < 8) in pdc_enable_irq()
195 pos = chan->chan_id; in pdc_enable_irq()
197 pos = chan->chan_id + 8; in pdc_enable_irq()
209 chan->chan_id, val); in pdc_enable_irq()
220 if (chan->chan_id < 8) { in pdc_set_dir()
224 (DMA_CTL0_BITS_PER_CH * chan->chan_id); in pdc_set_dir()
226 (DMA_CTL0_BITS_PER_CH * chan->chan_id)); in pdc_set_dir()
229 val |= 0x1 << (DMA_CTL0_BITS_PER_CH * chan->chan_id + in pdc_set_dir()
232 val &= ~(0x1 << (DMA_CTL0_BITS_PER_CH * chan->chan_id + in pdc_set_dir()
238 int ch = chan->chan_id - 8; /* ch8-->0 ch9-->1 ... ch11->3 */ in pdc_set_dir()
[all …]
Dat_hdmac_regs.h357 atchan->chan_common.chan_id, in vdbg_dump_regs()
383 static void atc_setup_irq(struct at_dma *atdma, int chan_id, int on) in atc_setup_irq() argument
388 ebci = AT_DMA_BTC(chan_id) in atc_setup_irq()
389 | AT_DMA_ERR(chan_id); in atc_setup_irq()
396 static void atc_enable_chan_irq(struct at_dma *atdma, int chan_id) in atc_enable_chan_irq() argument
398 atc_setup_irq(atdma, chan_id, 1); in atc_enable_chan_irq()
401 static void atc_disable_chan_irq(struct at_dma *atdma, int chan_id) in atc_disable_chan_irq() argument
403 atc_setup_irq(atdma, chan_id, 0); in atc_disable_chan_irq()
Dsirf-dma.c99 return container_of(schan, struct sirfsoc_dma, channels[c->chan_id]); in dma_chan_to_sirfsoc_dma()
106 int cid = schan->chan.chan_id; in sirfsoc_dma_execute()
293 int cid = schan->chan.chan_id; in sirfsoc_dma_terminate_all()
323 int cid = schan->chan.chan_id; in sirfsoc_dma_pause_chan()
344 int cid = schan->chan.chan_id; in sirfsoc_dma_resume_chan()
600 bool sirfsoc_dma_filter_id(struct dma_chan *chan, void *chan_id) in sirfsoc_dma_filter_id() argument
602 unsigned int ch_nr = (unsigned int) chan_id; in sirfsoc_dma_filter_id()
604 if (ch_nr == chan->chan_id + in sirfsoc_dma_filter_id()
Dacpi-dma.c325 pdata->dma_spec.chan_id = dma->channels; in acpi_dma_parse_fixed_dma()
363 dma_spec->chan_id = -1; in acpi_dma_request_slave_chan_by_index()
371 if (dma_spec->slave_id < 0 || dma_spec->chan_id < 0) in acpi_dma_request_slave_chan_by_index()
Dtimb_dma.c117 int id = td_chan->chan.chan_id; in tdchantotd()
125 int id = td_chan->chan.chan_id; in __td_enable_chan_irq()
140 int id = td_chan->chan.chan_id; in __td_dma_done_ack()
237 td_chan, td_chan->chan.chan_id, td_chan->membase); in __td_start_dma()
Dmpc512x_dma.c225 return container_of(mchan, struct mpc_dma, channels[c->chan_id]); in dma_chan_to_mpc_dma()
242 int cid = mchan->chan.chan_id; in mpc_dma_execute()
501 out_8(&mdma->regs->dmaseei, chan->chan_id); in mpc_dma_alloc_chan_resources()
542 out_8(&mdma->regs->dmaceei, chan->chan_id); in mpc_dma_free_chan_resources()
Dat_hdmac.c956 int chan_id = atchan->chan_common.chan_id; in atc_control() local
966 dma_writel(atdma, CHER, AT_DMA_SUSP(chan_id)); in atc_control()
976 dma_writel(atdma, CHDR, AT_DMA_RES(chan_id)); in atc_control()
991 dma_writel(atdma, CHDR, AT_DMA_RES(chan_id) | atchan->mask); in atc_control()
1508 atc_disable_chan_irq(atdma, chan->chan_id); in at_dma_remove()
Ddmaengine.c781 chan->chan_id = chancnt++; in dma_async_device_register()
789 device->dev_id, chan->chan_id); in dma_async_device_register()
Dpl330.c613 unsigned int chan_id; member
2368 return (chan->chan_id == fargs->chan_id); in pl330_dt_filter()
2398 fargs.chan_id = dma_spec->args[0]; in of_dma_pl330_xlate()
2640 desc->req.peri = peri_id ? pch->chan.chan_id : 0; in pl330_get_desc()
Damba-pl08x.c1588 bool pl08x_filter_id(struct dma_chan *chan, void *chan_id) in pl08x_filter_id() argument
1591 char *name = chan_id; in pl08x_filter_id()
Dcoh901318.c1780 bool coh901318_filter_id(struct dma_chan *chan, void *chan_id) in coh901318_filter_id() argument
1782 unsigned int ch_nr = (unsigned int) chan_id; in coh901318_filter_id()
Ddw_dmac.c1288 chan->chan_id != dma_spec->chan_id) in dw_dma_acpi_filter()
/drivers/dma/ipu/
Dipu_idmac.c608 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_enable_channel()
660 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel_buffer()
735 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_update_channel_buffer()
779 unsigned int chan_id = ichan->dma_chan.chan_id; in ipu_submit_buffer() local
793 ipu_select_buffer(chan_id, buf_idx); in ipu_submit_buffer()
795 sg, chan_id, buf_idx); in ipu_submit_buffer()
954 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_init_channel()
1011 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_uninit_channel()
1074 enum ipu_channel channel = ichan->dma_chan.chan_id; in ipu_disable_channel()
1159 unsigned int chan_id = ichan->dma_chan.chan_id; in idmac_interrupt() local
[all …]
/drivers/staging/tidspbridge/include/dspbridge/
Dnodepriv.h104 u32 dir, u32 index, u32 *chan_id);
/drivers/spi/
Dspi-pxa2xx-dma.c234 return chan->chan_id == pdata->tx_chan_id || in pxa2xx_spi_dma_filter()
235 chan->chan_id == pdata->rx_chan_id; in pxa2xx_spi_dma_filter()
Dspi-topcliff-pch.c905 if ((chan->chan_id == param->chan_id) && in pch_spi_filter()
939 param->chan_id = data->master->bus_num * 2; /* Tx = 0, 2 */ in pch_spi_request_dma()
954 param->chan_id = data->master->bus_num * 2 + 1; /* Rx = Tx + 1 */ in pch_spi_request_dma()
/drivers/video/
Dmx3fb.c343 dma_chan->chan_id); in sdc_enable_channel()
356 dma_chan->chan_id); in sdc_enable_channel()
1374 if (ichan->dma_chan.chan_id != IDMAC_SDC_0) in init_fb_chan()
1420 mx3fbi->ipu_ch = ichan->dma_chan.chan_id; in init_fb_chan()
1467 return rq->id == chan->chan_id && in chan_filter()
/drivers/tty/serial/
Dpch_uart.c694 if ((chan->chan_id == param->chan_id) && (param->dma_dev == in filter()
720 param->chan_id = priv->port.line * 2; /* Tx = 0, 2, 4, ... */ in pch_request_dma()
734 param->chan_id = priv->port.line * 2 + 1; /* Rx = Tx + 1 */ in pch_request_dma()
/drivers/rapidio/devices/
Dtsi721_dma.c247 bdma_chan, bdma_chan->dchan.chan_id, bdma_chan->regs); in tsi721_start_dma()
791 bdma_chan->dchan.chan_id = i; in tsi721_register_dma()
/drivers/media/usb/ttusb-budget/
Ddvb-ttusb-budget.c347 static int ttusb_set_channel(struct ttusb *ttusb, int chan_id, int filter_type, in ttusb_set_channel() argument
352 u8 b[] = { 0xaa, ++ttusb->c, 0x22, 4, chan_id, filter_type, in ttusb_set_channel()
/drivers/staging/tidspbridge/rmgr/
Dnode.c1657 u32 *chan_id) in node_get_channel_id() argument
1674 *chan_id = hnode->inputs[index].dev_id; in node_get_channel_id()
1681 *chan_id = hnode->outputs[index].dev_id; in node_get_channel_id()
/drivers/misc/carma/
Dcarma-fpga-program.c917 return chan->chan_id == 0 && chan->device->dev_id == 0; in dma_filter()
/drivers/media/platform/
Dtimblogiw.c151 return chan->chan_id == (uintptr_t)filter_param; in timblogiw_dma_filter_fn()

12