Home
last modified time | relevance | path

Searched refs:chans (Results 1 – 25 of 103) sorted by relevance

12345

/Linux-v5.4/drivers/mailbox/
Drockchip-mailbox.c49 struct rockchip_mbox_chan *chans; member
56 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() local
68 chans->idx, msg->cmd); in rockchip_mbox_send_data()
70 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data()
72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data()
74 MAILBOX_A2B_DAT(chans->idx)); in rockchip_mbox_send_data()
93 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_shutdown() local
98 mb->chans[chans->idx].msg = NULL; in rockchip_mbox_shutdown()
114 if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { in rockchip_mbox_irq()
132 if (irq != mb->chans[idx].irq) in rockchip_mbox_isr()
[all …]
Darmada-37xx-rwtm-mailbox.c147 struct mbox_chan *chans; in armada_37xx_mbox_probe() local
155 chans = devm_kzalloc(&pdev->dev, sizeof(*chans), GFP_KERNEL); in armada_37xx_mbox_probe()
156 if (!chans) in armada_37xx_mbox_probe()
176 chans[0].con_priv = mbox; in armada_37xx_mbox_probe()
179 mbox->controller.chans = chans; in armada_37xx_mbox_probe()
Dmailbox-sti.c105 chan_info = mbox->chans[i].con_priv; in sti_mbox_to_channel()
109 return &mbox->chans[i]; in sti_mbox_to_channel()
307 if (chan == &mbox->chans[i]) in sti_mbox_shutdown_chan()
341 chan_info = mbox->chans[i].con_priv; in sti_mbox_xlate()
358 chan = &mbox->chans[i]; in sti_mbox_xlate()
410 struct mbox_chan *chans; in sti_mbox_probe() local
441 chans = devm_kcalloc(&pdev->dev, in sti_mbox_probe()
442 STI_MBOX_CHAN_MAX, sizeof(*chans), GFP_KERNEL); in sti_mbox_probe()
443 if (!chans) in sti_mbox_probe()
458 mbox->chans = chans; in sti_mbox_probe()
Dti-msgmgr.c141 struct mbox_chan *chans; member
716 struct mbox_chan *chans; in ti_msgmgr_probe() local
778 chans = devm_kcalloc(dev, queue_count, sizeof(*chans), GFP_KERNEL); in ti_msgmgr_probe()
779 if (!chans) in ti_msgmgr_probe()
781 inst->chans = chans; in ti_msgmgr_probe()
787 for (i = 0; i < queue_count; i++, qinst++, chans++) { in ti_msgmgr_probe()
792 chans); in ti_msgmgr_probe()
799 i < queue_count; i++, qinst++, chans++, queue_desc++) { in ti_msgmgr_probe()
802 chans); in ti_msgmgr_probe()
811 mbox->chans = inst->chans; in ti_msgmgr_probe()
Dbcm2835-mailbox.c70 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq()
133 return &mbox->chans[0]; in bcm2835_mbox_index_xlate()
170 mbox->controller.chans = devm_kzalloc(dev, in bcm2835_mbox_probe()
171 sizeof(*mbox->controller.chans), GFP_KERNEL); in bcm2835_mbox_probe()
172 if (!mbox->controller.chans) in bcm2835_mbox_probe()
Dmailbox-altera.c289 struct mbox_chan *chans; in altera_mbox_probe() local
298 chans = devm_kzalloc(&pdev->dev, sizeof(*chans), GFP_KERNEL); in altera_mbox_probe()
299 if (!chans) in altera_mbox_probe()
318 chans[0].con_priv = mbox; in altera_mbox_probe()
321 mbox->controller.chans = chans; in altera_mbox_probe()
Dmailbox-xgene-slimpro.c65 struct mbox_chan chans[MBOX_CNT]; member
203 ctx->mc[i].chan = &ctx->chans[i]; in slimpro_mbox_probe()
204 ctx->chans[i].con_priv = &ctx->mc[i]; in slimpro_mbox_probe()
209 ctx->mb_ctrl.chans = ctx->chans; in slimpro_mbox_probe()
Dzynqmp-ipi-mailbox.c163 chan = &ipi_mbox->mbox.chans[IPI_MB_CHNL_RX]; in zynqmp_ipi_interrupt()
417 chan = &mbox->chans[chan_type]; in zynqmp_ipi_of_xlate()
477 struct mbox_chan *chans; in zynqmp_ipi_mbox_probe() local
593 chans = devm_kzalloc(mdev, 2 * sizeof(*chans), GFP_KERNEL); in zynqmp_ipi_mbox_probe()
594 if (!chans) in zynqmp_ipi_mbox_probe()
596 mbox->chans = chans; in zynqmp_ipi_mbox_probe()
597 chans[IPI_MB_CHNL_TX].con_priv = &ipi_mbox->mchans[IPI_MB_CHNL_TX]; in zynqmp_ipi_mbox_probe()
598 chans[IPI_MB_CHNL_RX].con_priv = &ipi_mbox->mchans[IPI_MB_CHNL_RX]; in zynqmp_ipi_mbox_probe()
Dstm32-ipcc.c104 mbox_chan_received_data(&ipcc->controller.chans[chan], NULL); in stm32_ipcc_rx_irq()
138 mbox_chan_txdone(&ipcc->controller.chans[chan], 0); in stm32_ipcc_tx_irq()
309 ipcc->controller.chans = devm_kcalloc(dev, ipcc->controller.num_chans, in stm32_ipcc_probe()
310 sizeof(*ipcc->controller.chans), in stm32_ipcc_probe()
312 if (!ipcc->controller.chans) { in stm32_ipcc_probe()
318 ipcc->controller.chans[i].con_priv = (void *)i; in stm32_ipcc_probe()
Dmtk-cmdq-mailbox.c450 thread = (struct cmdq_thread *)mbox->chans[ind].con_priv; in cmdq_xlate()
453 thread->chan = &mbox->chans[ind]; in cmdq_xlate()
455 return &mbox->chans[ind]; in cmdq_xlate()
501 cmdq->mbox.chans = devm_kcalloc(dev, cmdq->thread_nr, in cmdq_probe()
502 sizeof(*cmdq->mbox.chans), GFP_KERNEL); in cmdq_probe()
503 if (!cmdq->mbox.chans) in cmdq_probe()
523 cmdq->mbox.chans[i].con_priv = (void *)&cmdq->thread[i]; in cmdq_probe()
Dtegra-hsp.c517 chan = &mbox->chans[i]; in tegra_hsp_db_xlate()
588 mb->channel.chan = &hsp->mbox_sm.chans[i]; in tegra_hsp_add_mailboxes()
701 hsp->mbox_db.chans = devm_kcalloc(&pdev->dev, hsp->mbox_db.num_chans, in tegra_hsp_probe()
702 sizeof(*hsp->mbox_db.chans), in tegra_hsp_probe()
704 if (!hsp->mbox_db.chans) in tegra_hsp_probe()
729 hsp->mbox_sm.chans = devm_kcalloc(&pdev->dev, hsp->mbox_sm.num_chans, in tegra_hsp_probe()
730 sizeof(*hsp->mbox_sm.chans), in tegra_hsp_probe()
732 if (!hsp->mbox_sm.chans) in tegra_hsp_probe()
/Linux-v5.4/sound/hda/
Dlocal.h22 unsigned int chans; in get_wcaps_channels() local
24 chans = (wcaps & AC_WCAP_CHAN_CNT_EXT) >> 13; in get_wcaps_channels()
25 chans = (chans + 1) * 2; in get_wcaps_channels()
27 return chans; in get_wcaps_channels()
/Linux-v5.4/drivers/dma/
Dmcf-edma.c35 mcf_chan = &mcf_edma->chans[ch]; in mcf_edma_tx_handler()
70 fsl_edma_disable_request(&mcf_edma->chans[ch]); in mcf_edma_err_handler()
72 mcf_edma->chans[ch].status = DMA_ERROR; in mcf_edma_err_handler()
73 mcf_edma->chans[ch].idle = true; in mcf_edma_err_handler()
83 fsl_edma_disable_request(&mcf_edma->chans[ch]); in mcf_edma_err_handler()
85 mcf_edma->chans[ch].status = DMA_ERROR; in mcf_edma_err_handler()
86 mcf_edma->chans[ch].idle = true; in mcf_edma_err_handler()
179 int ret, i, len, chans; in mcf_edma_probe() local
187 chans = pdata->dma_channels; in mcf_edma_probe()
188 len = sizeof(*mcf_edma) + sizeof(*mcf_chan) * chans; in mcf_edma_probe()
[all …]
Dfsl-edma.c45 fsl_chan = &fsl_edma->chans[ch]; in fsl_edma_tx_handler()
79 fsl_edma_disable_request(&fsl_edma->chans[ch]); in fsl_edma_err_handler()
81 fsl_edma->chans[ch].status = DMA_ERROR; in fsl_edma_err_handler()
82 fsl_edma->chans[ch].idle = true; in fsl_edma_err_handler()
192 sprintf(fsl_edma->chans[i].chan_name, "eDMA2-CH%02d", i); in fsl_edma2_irq_init()
202 fsl_edma->chans[i].chan_name, in fsl_edma2_irq_init()
260 int len, chans; in fsl_edma_probe() local
270 ret = of_property_read_u32(np, "dma-channels", &chans); in fsl_edma_probe()
276 len = sizeof(*fsl_edma) + sizeof(*fsl_chan) * chans; in fsl_edma_probe()
282 fsl_edma->n_chans = chans; in fsl_edma_probe()
[all …]
/Linux-v5.4/drivers/iio/
Dinkern.c225 struct iio_channel *chans; in of_iio_channel_get_all() local
242 chans = kcalloc(nummaps + 1, sizeof(*chans), GFP_KERNEL); in of_iio_channel_get_all()
243 if (chans == NULL) in of_iio_channel_get_all()
248 ret = __of_iio_channel_get(&chans[mapind], dev->of_node, in of_iio_channel_get_all()
253 return chans; in of_iio_channel_get_all()
257 iio_device_put(chans[i].indio_dev); in of_iio_channel_get_all()
258 kfree(chans); in of_iio_channel_get_all()
407 struct iio_channel *chans; in iio_channel_get_all() local
416 chans = of_iio_channel_get_all(dev); in iio_channel_get_all()
417 if (chans) in iio_channel_get_all()
[all …]
/Linux-v5.4/drivers/mfd/
Dstm32-timers.c75 if (!dma->chans[id]) in stm32_timers_dma_burst_read()
80 dma->chan = dma->chans[id]; in stm32_timers_dma_burst_read()
182 ddata->dma.chans[i] = dma_request_slave_channel(dev, name); in stm32_timers_dma_probe()
184 ddata->dma.chans[STM32_TIMERS_DMA_UP] = in stm32_timers_dma_probe()
186 ddata->dma.chans[STM32_TIMERS_DMA_TRIG] = in stm32_timers_dma_probe()
188 ddata->dma.chans[STM32_TIMERS_DMA_COM] = in stm32_timers_dma_probe()
198 if (ddata->dma.chans[i]) in stm32_timers_dma_remove()
199 dma_release_channel(ddata->dma.chans[i]); in stm32_timers_dma_remove()
/Linux-v5.4/sound/soc/codecs/
Ddmic.c146 u32 chans; in dmic_dev_probe() local
150 err = of_property_read_u32(pdev->dev.of_node, "num-channels", &chans); in dmic_dev_probe()
155 if (chans < 1 || chans > 8) in dmic_dev_probe()
163 dai_drv->capture.channels_max = chans; in dmic_dev_probe()
/Linux-v5.4/drivers/firmware/
Dstratix10-svc.c136 struct stratix10_svc_chan *chans; member
741 if (!strcmp(controller->chans[i].name, name)) { in stratix10_svc_request_channel_byname()
742 chan = &controller->chans[i]; in stratix10_svc_request_channel_byname()
960 struct stratix10_svc_chan *chans; in stratix10_svc_drv_probe() local
992 chans = devm_kmalloc_array(dev, SVC_NUM_CHANNEL, in stratix10_svc_drv_probe()
993 sizeof(*chans), GFP_KERNEL | __GFP_ZERO); in stratix10_svc_drv_probe()
994 if (!chans) in stratix10_svc_drv_probe()
1000 controller->chans = chans; in stratix10_svc_drv_probe()
1014 chans[0].scl = NULL; in stratix10_svc_drv_probe()
1015 chans[0].ctrl = controller; in stratix10_svc_drv_probe()
[all …]
/Linux-v5.4/arch/um/drivers/
Dchan_kern.c110 static int open_chan(struct list_head *chans) in open_chan() argument
116 list_for_each(ele, chans) { in open_chan()
327 static void free_chan(struct list_head *chans) in free_chan() argument
332 list_for_each_safe(ele, next, chans) { in free_chan()
491 struct list_head *chans = &line->chan_list; in parse_chan_pair() local
495 if (!list_empty(chans)) { in parse_chan_pair()
497 free_chan(chans); in parse_chan_pair()
498 INIT_LIST_HEAD(chans); in parse_chan_pair()
514 list_add(&new->list, chans); in parse_chan_pair()
521 list_add(&new->list, chans); in parse_chan_pair()
[all …]
/Linux-v5.4/drivers/firmware/imx/
Dimx-dsp.c33 dsp_chan = &ipc->chans[idx]; in imx_dsp_ring_doorbell()
88 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_probe()
121 dsp_chan = &dsp_ipc->chans[j]; in imx_dsp_probe()
137 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_remove()
Dimx-scu.c36 struct imx_sc_chan chans[SCU_MU_CHAN_NUM]; member
145 sc_chan = &sc_ipc->chans[i % 4]; in imx_scu_ipc_write()
221 sc_chan = &sc_ipc->chans[i]; in imx_scu_probe()
/Linux-v5.4/drivers/iio/adc/
Ddln2-adc.c609 int i, ret, chans; in dln2_adc_probe() local
631 chans = dln2_adc_get_chan_count(dln2); in dln2_adc_probe()
632 if (chans < 0) { in dln2_adc_probe()
633 dev_err(dev, "failed to get channel count: %d\n", chans); in dln2_adc_probe()
634 return chans; in dln2_adc_probe()
636 if (chans > DLN2_ADC_MAX_CHANNELS) { in dln2_adc_probe()
637 chans = DLN2_ADC_MAX_CHANNELS; in dln2_adc_probe()
642 for (i = 0; i < chans; ++i) in dln2_adc_probe()
651 indio_dev->num_channels = chans + 1; in dln2_adc_probe()
/Linux-v5.4/drivers/staging/comedi/drivers/
Dadv_pci_dio.c86 int chans; /* num of chans or 8255 devices */ member
377 if (d->chans) { in pci_dio_auto_attach()
381 s->n_chan = d->chans; in pci_dio_auto_attach()
393 if (d->chans) { in pci_dio_auto_attach()
397 s->n_chan = d->chans; in pci_dio_auto_attach()
424 for (j = 0; j < d->chans; j++) { in pci_dio_auto_attach()
/Linux-v5.4/arch/mips/include/asm/mach-bcm63xx/
Dbcm63xx_cpu.h144 #define RSET_ENETDMAC_SIZE(chans) (16 * (chans)) argument
145 #define RSET_ENETDMAS_SIZE(chans) (16 * (chans)) argument
159 #define RSET_XTMDMAC_SIZE(chans) (16 * (chans)) argument
160 #define RSET_XTMDMAS_SIZE(chans) (16 * (chans)) argument
/Linux-v5.4/include/linux/
Dipmi.h214 unsigned int chans);
218 unsigned int chans);

12345