/linux-6.6.21/drivers/mailbox/ |
D | rockchip-mailbox.c | 49 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 …]
|
D | arm_mhu_db.c | 66 chan_info = mbox->chans[i].con_priv; in mhu_db_mbox_to_channel() 69 return &mbox->chans[i]; in mhu_db_mbox_to_channel() 172 if (chan == &mbox->chans[i]) in mhu_db_shutdown() 214 if (!mbox->chans[i].con_priv) in mhu_db_mbox_xlate() 222 chan = &mbox->chans[i]; in mhu_db_mbox_xlate() 252 struct mbox_chan *chans; in mhu_db_probe() local 283 chans = devm_kcalloc(dev, max_chans, sizeof(*chans), GFP_KERNEL); in mhu_db_probe() 284 if (!chans) in mhu_db_probe() 289 mhu->mbox.chans = chans; in mhu_db_probe()
|
D | armada-37xx-rwtm-mailbox.c | 146 struct mbox_chan *chans; in armada_37xx_mbox_probe() local 154 chans = devm_kzalloc(&pdev->dev, sizeof(*chans), GFP_KERNEL); in armada_37xx_mbox_probe() 155 if (!chans) in armada_37xx_mbox_probe() 169 chans[0].con_priv = mbox; in armada_37xx_mbox_probe() 172 mbox->controller.chans = chans; in armada_37xx_mbox_probe()
|
D | sun6i-msgbox.c | 58 return chan - chan->mbox->chans; in channel_number() 80 struct mbox_chan *chan = &mbox->controller.chans[n]; in sun6i_msgbox_irq() 198 struct mbox_chan *chans; in sun6i_msgbox_probe() local 207 chans = devm_kcalloc(dev, NUM_CHANS, sizeof(*chans), GFP_KERNEL); in sun6i_msgbox_probe() 208 if (!chans) in sun6i_msgbox_probe() 212 chans[i].con_priv = mbox; in sun6i_msgbox_probe() 267 mbox->controller.chans = chans; in sun6i_msgbox_probe()
|
D | mailbox-sti.c | 105 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 439 chans = devm_kcalloc(&pdev->dev, in sti_mbox_probe() 440 STI_MBOX_CHAN_MAX, sizeof(*chans), GFP_KERNEL); in sti_mbox_probe() 441 if (!chans) in sti_mbox_probe() 456 mbox->chans = chans; in sti_mbox_probe()
|
D | arm_mhuv2.c | 502 struct mbox_chan *chans = mhu->mbox.chans; in get_irq_chan_comb() local 531 return &chans[channel]; in get_irq_chan_comb() 647 struct mbox_chan *chans = mhu->mbox.chans; in get_irq_chan_stat_rx() local 653 priv = chans[i].con_priv; in get_irq_chan_stat_rx() 659 return &chans[i]; in get_irq_chan_stat_rx() 796 struct mbox_chan *chans = mbox->chans; in mhuv2_mbox_of_xlate() local 813 return &chans[channel + MHUV2_STAT_BITS * offset + doorbell]; in mhuv2_mbox_of_xlate() 822 return &chans[channel]; in mhuv2_mbox_of_xlate() 877 struct mbox_chan *chans; in mhuv2_allocate_channels() local 880 chans = devm_kcalloc(dev, mbox->num_chans, sizeof(*chans), GFP_KERNEL); in mhuv2_allocate_channels() [all …]
|
D | bcm2835-mailbox.c | 70 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq() 133 return &mbox->chans[0]; in bcm2835_mbox_index_xlate() 167 mbox->controller.chans = devm_kzalloc(dev, in bcm2835_mbox_probe() 168 sizeof(*mbox->controller.chans), GFP_KERNEL); in bcm2835_mbox_probe() 169 if (!mbox->controller.chans) in bcm2835_mbox_probe()
|
D | mailbox-altera.c | 288 struct mbox_chan *chans; in altera_mbox_probe() local 297 chans = devm_kzalloc(&pdev->dev, sizeof(*chans), GFP_KERNEL); in altera_mbox_probe() 298 if (!chans) in altera_mbox_probe() 315 chans[0].con_priv = mbox; in altera_mbox_probe() 318 mbox->controller.chans = chans; in altera_mbox_probe()
|
D | mtk-adsp-mailbox.c | 59 return mbox->chans; in mtk_adsp_mbox_xlate() 125 mbox->chans = devm_kzalloc(dev, sizeof(*mbox->chans), GFP_KERNEL); in mtk_adsp_mbox_probe() 126 if (!mbox->chans) in mtk_adsp_mbox_probe() 144 dev_name(dev), mbox->chans); in mtk_adsp_mbox_probe()
|
D | ti-msgmgr.c | 144 struct mbox_chan *chans; member 819 struct mbox_chan *chans; in ti_msgmgr_probe() local 878 chans = devm_kcalloc(dev, queue_count, sizeof(*chans), GFP_KERNEL); in ti_msgmgr_probe() 879 if (!chans) in ti_msgmgr_probe() 881 inst->chans = chans; in ti_msgmgr_probe() 887 for (i = 0; i < queue_count; i++, qinst++, chans++) { in ti_msgmgr_probe() 892 chans); in ti_msgmgr_probe() 899 i < queue_count; i++, qinst++, chans++, queue_desc++) { in ti_msgmgr_probe() 902 chans); in ti_msgmgr_probe() 911 mbox->chans = inst->chans; in ti_msgmgr_probe()
|
D | mailbox-xgene-slimpro.c | 65 struct mbox_chan chans[MBOX_CNT]; member 201 ctx->mc[i].chan = &ctx->chans[i]; in slimpro_mbox_probe() 202 ctx->chans[i].con_priv = &ctx->mc[i]; in slimpro_mbox_probe() 207 ctx->mb_ctrl.chans = ctx->chans; in slimpro_mbox_probe()
|
D | zynqmp-ipi-mailbox.c | 161 chan = &ipi_mbox->mbox.chans[IPI_MB_CHNL_RX]; in zynqmp_ipi_interrupt() 415 chan = &mbox->chans[chan_type]; in zynqmp_ipi_of_xlate() 475 struct mbox_chan *chans; in zynqmp_ipi_mbox_probe() local 588 chans = devm_kzalloc(mdev, 2 * sizeof(*chans), GFP_KERNEL); in zynqmp_ipi_mbox_probe() 589 if (!chans) in zynqmp_ipi_mbox_probe() 591 mbox->chans = chans; in zynqmp_ipi_mbox_probe() 592 chans[IPI_MB_CHNL_TX].con_priv = &ipi_mbox->mchans[IPI_MB_CHNL_TX]; in zynqmp_ipi_mbox_probe() 593 chans[IPI_MB_CHNL_RX].con_priv = &ipi_mbox->mchans[IPI_MB_CHNL_RX]; in zynqmp_ipi_mbox_probe()
|
/linux-6.6.21/drivers/input/joystick/ |
D | adc-joystick.c | 27 struct iio_channel *chans; member 38 ret = iio_read_channel_raw(&joy->chans[i], &val); in adc_joystick_poll() 54 bytes = joy->chans[0].channel->scan_type.storagebits >> 3; in adc_joystick_handle() 57 idx = joy->chans[i].channel->scan_index; in adc_joystick_handle() 58 endianness = joy->chans[i].channel->scan_type.endianness; in adc_joystick_handle() 59 msb = joy->chans[i].channel->scan_type.realbits - 1; in adc_joystick_handle() 60 sign = tolower(joy->chans[i].channel->scan_type.sign) == 's'; in adc_joystick_handle() 84 val >>= joy->chans[i].channel->scan_type.shift; in adc_joystick_handle() 203 joy->chans = devm_iio_channel_get_all(dev); in adc_joystick_probe() 204 if (IS_ERR(joy->chans)) { in adc_joystick_probe() [all …]
|
/linux-6.6.21/drivers/mfd/ |
D | stm32-timers.c | 76 if (!dma->chans[id]) in stm32_timers_dma_burst_read() 81 dma->chan = dma->chans[id]; in stm32_timers_dma_burst_read() 189 ddata->dma.chans[i] = dma_request_chan(dev, name); in stm32_timers_dma_probe() 191 ddata->dma.chans[STM32_TIMERS_DMA_UP] = dma_request_chan(dev, "up"); in stm32_timers_dma_probe() 192 ddata->dma.chans[STM32_TIMERS_DMA_TRIG] = dma_request_chan(dev, "trig"); in stm32_timers_dma_probe() 193 ddata->dma.chans[STM32_TIMERS_DMA_COM] = dma_request_chan(dev, "com"); in stm32_timers_dma_probe() 196 if (IS_ERR(ddata->dma.chans[i])) { in stm32_timers_dma_probe() 198 if (PTR_ERR(ddata->dma.chans[i]) != -ENODEV && !ret) in stm32_timers_dma_probe() 199 ret = PTR_ERR(ddata->dma.chans[i]); in stm32_timers_dma_probe() 201 ddata->dma.chans[i] = NULL; in stm32_timers_dma_probe() [all …]
|
/linux-6.6.21/drivers/dma/ |
D | mcf-edma-main.c | 33 fsl_edma_tx_chan_handler(&mcf_edma->chans[ch]); in mcf_edma_tx_handler() 52 fsl_edma_disable_request(&mcf_edma->chans[ch]); in mcf_edma_err_handler() 54 fsl_edma_err_chan_handler(&mcf_edma->chans[ch]); in mcf_edma_err_handler() 64 fsl_edma_disable_request(&mcf_edma->chans[ch]); in mcf_edma_err_handler() 66 mcf_edma->chans[ch].status = DMA_ERROR; in mcf_edma_err_handler() 67 mcf_edma->chans[ch].idle = true; in mcf_edma_err_handler() 158 int ret, i, chans; in mcf_edma_probe() local 168 chans = 64; in mcf_edma_probe() 170 chans = pdata->dma_channels; in mcf_edma_probe() 173 mcf_edma = devm_kzalloc(&pdev->dev, struct_size(mcf_edma, chans, chans), in mcf_edma_probe() [all …]
|
D | fsl-edma-main.c | 52 fsl_edma_tx_chan_handler(&fsl_edma->chans[ch]); in fsl_edma_tx_handler() 86 fsl_edma_disable_request(&fsl_edma->chans[ch]); in fsl_edma_err_handler() 88 fsl_edma_err_chan_handler(&fsl_edma->chans[ch]); in fsl_edma_err_handler() 157 i = fsl_chan - fsl_edma->chans; in fsl_edma3_xlate() 236 struct fsl_edma_chan *fsl_chan = &fsl_edma->chans[i]; in fsl_edma3_irq_init() 294 fsl_edma->chans[i].chan_name, in fsl_edma2_irq_init() 400 fsl_chan = &fsl_edma->chans[i]; in fsl_edma3_attach_pd() 435 int chans; in fsl_edma_probe() local 445 ret = of_property_read_u32(np, "dma-channels", &chans); in fsl_edma_probe() 451 fsl_edma = devm_kzalloc(&pdev->dev, struct_size(fsl_edma, chans, chans), in fsl_edma_probe() [all …]
|
/linux-6.6.21/sound/hda/ |
D | local.h | 22 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-6.6.21/drivers/iio/ |
D | inkern.c | 294 struct iio_channel *chans; in fwnode_iio_channel_get_all() local 310 chans = kcalloc(nummaps + 1, sizeof(*chans), GFP_KERNEL); in fwnode_iio_channel_get_all() 311 if (!chans) in fwnode_iio_channel_get_all() 316 ret = __fwnode_iio_channel_get(&chans[mapind], fwnode, mapind); in fwnode_iio_channel_get_all() 320 return chans; in fwnode_iio_channel_get_all() 324 iio_device_put(chans[i].indio_dev); in fwnode_iio_channel_get_all() 325 kfree(chans); in fwnode_iio_channel_get_all() 453 struct iio_channel *chans; in iio_channel_get_all() local 462 chans = fwnode_iio_channel_get_all(dev); in iio_channel_get_all() 467 if (!IS_ERR(chans) || PTR_ERR(chans) != -ENODEV) in iio_channel_get_all() [all …]
|
/linux-6.6.21/drivers/firmware/imx/ |
D | imx-dsp.c | 32 dsp_chan = &ipc->chans[idx]; in imx_dsp_ring_doorbell() 69 dsp_chan = &dsp_ipc->chans[idx]; in imx_dsp_request_channel() 82 dsp_chan = &dsp_ipc->chans[idx]; in imx_dsp_free_channel() 105 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_setup_channels() 131 dsp_chan = &dsp_ipc->chans[j]; in imx_dsp_setup_channels() 172 dsp_chan = &dsp_ipc->chans[i]; in imx_dsp_remove()
|
/linux-6.6.21/drivers/firmware/ |
D | stratix10-svc.c | 143 struct stratix10_svc_chan *chans; member 899 if (!strcmp(controller->chans[i].name, name)) { in stratix10_svc_request_channel_byname() 900 chan = &controller->chans[i]; in stratix10_svc_request_channel_byname() 1130 struct stratix10_svc_chan *chans; in stratix10_svc_drv_probe() local 1164 chans = devm_kmalloc_array(dev, SVC_NUM_CHANNEL, in stratix10_svc_drv_probe() 1165 sizeof(*chans), GFP_KERNEL | __GFP_ZERO); in stratix10_svc_drv_probe() 1166 if (!chans) { in stratix10_svc_drv_probe() 1174 controller->chans = chans; in stratix10_svc_drv_probe() 1188 chans[0].scl = NULL; in stratix10_svc_drv_probe() 1189 chans[0].ctrl = controller; in stratix10_svc_drv_probe() [all …]
|
D | mtk-adsp-ipc.c | 34 adsp_chan = &ipc->chans[idx]; in mtk_adsp_ipc_send() 86 adsp_chan = &adsp_ipc->chans[i]; in mtk_adsp_ipc_probe() 104 adsp_chan = &adsp_ipc->chans[j]; in mtk_adsp_ipc_probe() 126 adsp_chan = &adsp_ipc->chans[i]; in mtk_adsp_ipc_remove()
|
/linux-6.6.21/sound/soc/codecs/ |
D | dmic.c | 148 u32 chans; in dmic_dev_probe() local 152 err = of_property_read_u32(pdev->dev.of_node, "num-channels", &chans); in dmic_dev_probe() 157 if (chans < 1 || chans > 8) in dmic_dev_probe() 165 dai_drv->capture.channels_max = chans; in dmic_dev_probe()
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_cn10k.c | 354 u64 offset, int lbkid, u16 chans) in __rvu_lbk_set_chans() argument 362 cfg |= FIELD_PREP(LBK_LINK_CFG_RANGE_MASK, ilog2(chans)); in __rvu_lbk_set_chans() 375 u16 chans; in rvu_lbk_set_channels() local 402 chans = FIELD_GET(LBK_CONST_CHANS, lbk_const); in rvu_lbk_set_channels() 409 0, chans); in rvu_lbk_set_channels() 411 0, chans); in rvu_lbk_set_channels() 414 1, chans); in rvu_lbk_set_channels() 416 1, chans); in rvu_lbk_set_channels() 421 0, chans); in rvu_lbk_set_channels() 423 1, chans); in rvu_lbk_set_channels() [all …]
|
/linux-6.6.21/arch/um/drivers/ |
D | chan_kern.c | 110 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-6.6.21/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
D | cgrp.h | 40 struct list_head chans; member 67 #define nvkm_cgrp_foreach_chan(chan,cgrp) list_for_each_entry((chan), &(cgrp)->chans, head) 69 list_for_each_entry_safe((chan), (ctmp), &(cgrp)->chans, head)
|