Home
last modified time | relevance | path

Searched refs:pchan (Results 1 – 10 of 10) sorted by relevance

/drivers/dma/
Dsun6i-dma.c204 struct sun6i_pchan *pchan) in sun6i_dma_dump_chan_regs() argument
206 phys_addr_t reg = virt_to_phys(pchan->base); in sun6i_dma_dump_chan_regs()
217 pchan->idx, &reg, in sun6i_dma_dump_chan_regs()
219 readl(pchan->base + DMA_CHAN_ENABLE), in sun6i_dma_dump_chan_regs()
221 readl(pchan->base + DMA_CHAN_PAUSE), in sun6i_dma_dump_chan_regs()
223 readl(pchan->base + DMA_CHAN_LLI_ADDR), in sun6i_dma_dump_chan_regs()
225 readl(pchan->base + DMA_CHAN_CUR_CFG), in sun6i_dma_dump_chan_regs()
227 readl(pchan->base + DMA_CHAN_CUR_SRC), in sun6i_dma_dump_chan_regs()
229 readl(pchan->base + DMA_CHAN_CUR_DST), in sun6i_dma_dump_chan_regs()
231 readl(pchan->base + DMA_CHAN_CUR_CNT), in sun6i_dma_dump_chan_regs()
[all …]
Dsun4i-dma.c141 struct sun4i_dma_pchan *pchan; member
224 struct sun4i_dma_pchan *pchan = NULL, *pchans = priv->pchans; in find_and_use_pchan() local
242 pchan = &pchans[i]; in find_and_use_pchan()
243 pchan->vchan = vchan; in find_and_use_pchan()
249 return pchan; in find_and_use_pchan()
253 struct sun4i_dma_pchan *pchan) in release_pchan() argument
256 int nr = pchan - priv->pchans; in release_pchan()
260 pchan->vchan = NULL; in release_pchan()
266 static void configure_pchan(struct sun4i_dma_pchan *pchan, in configure_pchan() argument
273 if (pchan->is_dedicated) { in configure_pchan()
[all …]
Dtimb_dma.c700 struct timb_dma_platform_data_channel *pchan = in td_probe() local
704 if ((i % 2) == pchan->rx) { in td_probe()
717 td_chan->descs = pchan->descriptors; in td_probe()
718 td_chan->desc_elems = pchan->descriptor_elements; in td_probe()
719 td_chan->bytes_per_line = pchan->bytes_per_line; in td_probe()
720 td_chan->direction = pchan->rx ? DMA_DEV_TO_MEM : in td_probe()
725 (pchan->rx ? 0 : TIMBDMA_INSTANCE_TX_OFFSET); in td_probe()
Dmmp_pdma.c238 static struct mmp_pdma_phy *lookup_phy(struct mmp_pdma_chan *pchan) in lookup_phy() argument
241 struct mmp_pdma_device *pdev = to_mmp_pdma_dev(pchan->chan.device); in lookup_phy()
260 phy->vchan = pchan; in lookup_phy()
272 static void mmp_pdma_free_phy(struct mmp_pdma_chan *pchan) in mmp_pdma_free_phy() argument
274 struct mmp_pdma_device *pdev = to_mmp_pdma_dev(pchan->chan.device); in mmp_pdma_free_phy()
278 if (!pchan->phy) in mmp_pdma_free_phy()
282 reg = DRCMR(pchan->drcmr); in mmp_pdma_free_phy()
283 writel(0, pchan->phy->base + reg); in mmp_pdma_free_phy()
286 pchan->phy->vchan = NULL; in mmp_pdma_free_phy()
287 pchan->phy = NULL; in mmp_pdma_free_phy()
Dpxa_dma.c422 static struct pxad_phy *lookup_phy(struct pxad_chan *pchan) in lookup_phy() argument
425 struct pxad_device *pdev = to_pxad_dev(pchan->vc.chan.device); in lookup_phy()
438 for (prio = pchan->prio; prio >= PXAD_PRIO_HIGHEST; prio--) { in lookup_phy()
446 phy->vchan = pchan; in lookup_phy()
457 dev_dbg(&pchan->vc.chan.dev->device, in lookup_phy()
Dpl330.c514 struct dma_pl330_chan *pchan; member
1464 pch = desc->pchan; in dma_pl330_rqcb()
2439 desc->pchan = pch; in pl330_get_desc()
2489 struct dma_pl330_chan *pch = desc->pchan; in get_burst_len()
/drivers/w1/masters/
Dds2482.c278 struct ds2482_w1_chan *pchan = data; in ds2482_w1_touch_bit() local
279 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_touch_bit()
287 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_touch_bit()
310 struct ds2482_w1_chan *pchan = data; in ds2482_w1_triplet() local
311 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_triplet()
319 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_triplet()
340 struct ds2482_w1_chan *pchan = data; in ds2482_w1_write_byte() local
341 struct ds2482_data *pdev = pchan->pdev; in ds2482_w1_write_byte()
348 ds2482_set_channel(pdev, pchan->channel); in ds2482_w1_write_byte()
364 struct ds2482_w1_chan *pchan = data; in ds2482_w1_read_byte() local
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_chan.c67 nouveau_channel_del(struct nouveau_channel **pchan) in nouveau_channel_del() argument
69 struct nouveau_channel *chan = *pchan; in nouveau_channel_del()
85 *pchan = NULL; in nouveau_channel_del()
90 u32 size, struct nouveau_channel **pchan) in nouveau_channel_prep() argument
99 chan = *pchan = kzalloc(sizeof(*chan), GFP_KERNEL); in nouveau_channel_prep()
120 nouveau_channel_del(pchan); in nouveau_channel_prep()
134 nouveau_channel_del(pchan); in nouveau_channel_prep()
178 nouveau_channel_del(pchan); in nouveau_channel_prep()
187 u32 engine, struct nouveau_channel **pchan) in nouveau_channel_ind() argument
207 *pchan = chan; in nouveau_channel_ind()
[all …]
/drivers/firmware/
Darm_scpi.c605 scpi_free_channels(struct device *dev, struct scpi_chan *pchan, int count) in scpi_free_channels() argument
609 for (i = 0; i < count && pchan->chan; i++, pchan++) { in scpi_free_channels()
610 mbox_free_channel(pchan->chan); in scpi_free_channels()
611 devm_kfree(dev, pchan->xfers); in scpi_free_channels()
612 devm_iounmap(dev, pchan->rx_payload); in scpi_free_channels()
679 struct scpi_chan *pchan = scpi_chan + idx; in scpi_probe() local
680 struct mbox_client *cl = &pchan->cl; in scpi_probe()
690 pchan->rx_payload = devm_ioremap(dev, res.start, size); in scpi_probe()
691 if (!pchan->rx_payload) { in scpi_probe()
696 pchan->tx_payload = pchan->rx_payload + (size >> 1); in scpi_probe()
[all …]
/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
Dbase.c48 struct nvkm_fifo_chan **pchan) in nvkm_fifo_chan_put() argument
50 struct nvkm_fifo_chan *chan = *pchan; in nvkm_fifo_chan_put()
52 *pchan = NULL; in nvkm_fifo_chan_put()