/drivers/mailbox/ |
D | rockchip-mailbox.c | 57 struct rockchip_mbox_chan *chans; member 64 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_send_data() local 76 chans->idx, msg->cmd); in rockchip_mbox_send_data() 78 mb->chans[chans->idx].msg = msg; in rockchip_mbox_send_data() 80 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); in rockchip_mbox_send_data() 82 MAILBOX_A2B_DAT(chans->idx)); in rockchip_mbox_send_data() 101 struct rockchip_mbox_chan *chans = mb->chans; in rockchip_mbox_shutdown() local 106 mb->chans[chans->idx].msg = NULL; in rockchip_mbox_shutdown() 122 if ((status & (1 << idx)) && (irq == mb->chans[idx].irq)) { in rockchip_mbox_irq() 140 if (irq != mb->chans[idx].irq) in rockchip_mbox_isr() [all …]
|
D | mailbox-sti.c | 109 chan_info = mbox->chans[i].con_priv; in sti_mbox_to_channel() 113 return &mbox->chans[i]; in sti_mbox_to_channel() 311 if (chan == &mbox->chans[i]) in sti_mbox_shutdown_chan() 345 chan_info = mbox->chans[i].con_priv; in sti_mbox_xlate() 362 chan = &mbox->chans[i]; in sti_mbox_xlate() 413 struct mbox_chan *chans; in sti_mbox_probe() local 444 chans = devm_kzalloc(&pdev->dev, in sti_mbox_probe() 445 sizeof(*chans) * STI_MBOX_CHAN_MAX, GFP_KERNEL); in sti_mbox_probe() 446 if (!chans) in sti_mbox_probe() 461 mbox->chans = chans; in sti_mbox_probe()
|
D | ti-msgmgr.c | 126 struct mbox_chan *chans; member 530 struct mbox_chan *chans; in ti_msgmgr_probe() local 584 chans = devm_kzalloc(dev, sizeof(*chans) * queue_count, GFP_KERNEL); in ti_msgmgr_probe() 585 if (!chans) in ti_msgmgr_probe() 587 inst->chans = chans; in ti_msgmgr_probe() 590 i < queue_count; i++, qinst++, chans++, queue_desc++) { in ti_msgmgr_probe() 592 desc, queue_desc, qinst, chans); in ti_msgmgr_probe() 600 mbox->chans = inst->chans; in ti_msgmgr_probe()
|
D | mailbox-altera.c | 300 struct mbox_chan *chans; in altera_mbox_probe() local 309 chans = devm_kzalloc(&pdev->dev, sizeof(*chans), GFP_KERNEL); in altera_mbox_probe() 310 if (!chans) in altera_mbox_probe() 329 chans[0].con_priv = mbox; in altera_mbox_probe() 332 mbox->controller.chans = chans; in altera_mbox_probe()
|
D | bcm2835-mailbox.c | 76 struct mbox_chan *link = &mbox->controller.chans[0]; in bcm2835_mbox_irq() 139 return &mbox->chans[0]; in bcm2835_mbox_index_xlate() 176 mbox->controller.chans = devm_kzalloc(dev, in bcm2835_mbox_probe() 177 sizeof(*mbox->controller.chans), GFP_KERNEL); in bcm2835_mbox_probe() 178 if (!mbox->controller.chans) in bcm2835_mbox_probe()
|
D | mailbox-xgene-slimpro.c | 78 struct mbox_chan chans[MBOX_CNT]; member 216 ctx->mc[i].chan = &ctx->chans[i]; in slimpro_mbox_probe() 217 ctx->chans[i].con_priv = &ctx->mc[i]; in slimpro_mbox_probe() 222 ctx->mb_ctrl.chans = ctx->chans; in slimpro_mbox_probe()
|
D | mailbox.c | 126 struct mbox_chan *chan = &mbox->chans[i]; in txdone_hrtimer() 435 return &mbox->chans[ind]; in of_mbox_index_xlate() 466 struct mbox_chan *chan = &mbox->chans[i]; in mbox_controller_register() 501 mbox_free_channel(&mbox->chans[i]); in mbox_controller_unregister()
|
D | bcm-pdc-mailbox.c | 968 chan = &mbc->chans[0]; in pdc_irq_thread() 1354 mbc->chans = devm_kcalloc(dev, mbc->num_chans, sizeof(*mbc->chans), in pdc_mb_init() 1356 if (!mbc->chans) in pdc_mb_init() 1362 mbc->chans[chan_index].con_priv = pdcs; in pdc_mb_init()
|
D | arm_mhu.c | 146 mhu->mbox.chans = &mhu->chan[0]; in mhu_probe()
|
D | platform_mhu.c | 157 mhu->mbox.chans = &mhu->chan[0]; in platform_mhu_probe()
|
/drivers/iio/ |
D | inkern.c | 228 struct iio_channel *chans; in of_iio_channel_get_all() local 245 chans = kcalloc(nummaps + 1, sizeof(*chans), GFP_KERNEL); in of_iio_channel_get_all() 246 if (chans == NULL) in of_iio_channel_get_all() 251 ret = __of_iio_channel_get(&chans[mapind], dev->of_node, in of_iio_channel_get_all() 256 return chans; in of_iio_channel_get_all() 260 iio_device_put(chans[i].indio_dev); in of_iio_channel_get_all() 261 kfree(chans); in of_iio_channel_get_all() 410 struct iio_channel *chans; in iio_channel_get_all() local 419 chans = of_iio_channel_get_all(dev); in iio_channel_get_all() 420 if (chans) in iio_channel_get_all() [all …]
|
/drivers/staging/comedi/drivers/ |
D | adv_pci_dio.c | 79 int chans; /* num of chans or 8255 devices */ member 355 if (d->chans) { in pci_dio_auto_attach() 359 s->n_chan = d->chans; in pci_dio_auto_attach() 371 if (d->chans) { in pci_dio_auto_attach() 375 s->n_chan = d->chans; in pci_dio_auto_attach() 402 for (j = 0; j < d->chans; j++) { in pci_dio_auto_attach()
|
D | adl_pci9118.c | 531 unsigned int flags, int chans, in pci9118_calc_divisors() argument 541 if (*div2 < chans) in pci9118_calc_divisors() 542 *div2 = chans; in pci9118_calc_divisors() 548 if (*div2 < (chans + 2)) in pci9118_calc_divisors() 549 *div2 = chans + 2; in pci9118_calc_divisors()
|
/drivers/dma/ |
D | fsl-edma.c | 181 struct fsl_edma_chan chans[]; member 682 fsl_chan = &fsl_edma->chans[ch]; in fsl_edma_tx_handler() 715 fsl_edma_disable_request(&fsl_edma->chans[ch]); in fsl_edma_err_handler() 718 fsl_edma->chans[ch].status = DMA_ERROR; in fsl_edma_err_handler() 719 fsl_edma->chans[ch].idle = true; in fsl_edma_err_handler() 880 int len, chans; in fsl_edma_probe() local 883 ret = of_property_read_u32(np, "dma-channels", &chans); in fsl_edma_probe() 889 len = sizeof(*fsl_edma) + sizeof(*fsl_chan) * chans; in fsl_edma_probe() 894 fsl_edma->n_chans = chans; in fsl_edma_probe() 933 struct fsl_edma_chan *fsl_chan = &fsl_edma->chans[i]; in fsl_edma_probe() [all …]
|
D | k3dma.c | 111 struct k3_dma_chan *chans; member 798 return dma_get_slave_channel(&(d->chans[request].vc.chan)); in k3_of_dma_simple_xlate() 879 d->chans = devm_kzalloc(&op->dev, in k3_dma_probe() 881 if (d->chans == NULL) in k3_dma_probe() 885 struct k3_dma_chan *c = &d->chans[i]; in k3_dma_probe()
|
D | pl330.c | 1697 int chans, i; in pl330_request_channel() local 1702 chans = pl330->pcfg.num_chan; in pl330_request_channel() 1704 for (i = 0; i < chans; i++) { in pl330_request_channel() 1819 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads() local 1824 pl330->channels = kzalloc((1 + chans) * sizeof(*thrd), in dmac_alloc_threads() 1830 for (i = 0; i < chans; i++) { in dmac_alloc_threads() 1839 thrd = &pl330->channels[chans]; in dmac_alloc_threads() 1840 thrd->id = chans; in dmac_alloc_threads() 1850 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources() local 1858 chans * pl330->mcbufsz, in dmac_alloc_resources() [all …]
|
D | zx296702_dma.c | 126 struct zx_dma_chan *chans; member 837 d->chans = devm_kzalloc(&op->dev, in zx_dma_probe() 839 if (!d->chans) in zx_dma_probe() 843 struct zx_dma_chan *c = &d->chans[i]; in zx_dma_probe()
|
D | coh901318.c | 1288 struct coh901318_chan *chans; member 2014 cohc = &base->chans[ch]; in dma_irq_handler() 2060 cohc = &base->chans[ch]; in dma_irq_handler() 2593 cohc = &base->chans[i]; in coh901318_base_init() 2646 base->chans = ((void *)base) + ALIGN(sizeof(struct coh901318_base), 4); in coh901318_probe() 2752 cohc = &base->chans[i]; in coh901318_base_remove()
|
/drivers/edac/ |
D | i82975x_edac.c | 482 int chans; in i82975x_probe1() local 542 chans = dual_channel_active(mch_window) + 1; in i82975x_probe1() 549 layers[1].size = I82975X_NR_CSROWS(chans); in i82975x_probe1()
|
/drivers/input/keyboard/ |
D | lm8323.c | 127 #define PWM_WAIT_TRIG(chans) (0xe000 | (((chans) & 0x7) << 6)) argument 129 #define PWM_SEND_TRIG(chans) (0xe000 | ((chans) & 0x7)) argument
|
/drivers/atm/ |
D | zatm.h | 72 int chans; /* map size, must be 2^n */ member
|
D | zatm.c | 418 if (chan < zatm_dev->chans && zatm_dev->rx_map[chan]) { in poll_rx() 605 zatm_dev->rx_map = kcalloc(zatm_dev->chans, in start_rx() 769 if (chan < zatm_dev->chans && zatm_dev->tx_map[chan]) in poll_tx() 1002 zatm_dev->tx_map = kmalloc_array(zatm_dev->chans, in start_tx() 1290 zatm_dev->chans = vccs; /* ??? */ in zatm_start()
|
/drivers/net/wireless/marvell/libertas/ |
D | cmd.c | 812 t->chans.first_channel = first_channel; in lbs_set_11d_domain_info() 813 t->chans.num_channels = num_parsed_chan; in lbs_set_11d_domain_info() 814 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info() 825 t->chans.first_channel = first_channel; in lbs_set_11d_domain_info() 826 t->chans.num_channels = num_parsed_chan; in lbs_set_11d_domain_info() 827 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info()
|
/drivers/char/ipmi/ |
D | ipmi_msghandler.c | 121 unsigned int chans; member 1300 && (rcvr->chans & (1 << chan))) in find_cmd_rcvr() 1309 unsigned int chans) in is_cmd_rcvr_exclusive() argument 1315 && (rcvr->chans & chans)) in is_cmd_rcvr_exclusive() 1324 unsigned int chans) in ipmi_register_for_cmd() argument 1336 rcvr->chans = chans; in ipmi_register_for_cmd() 1341 if (!is_cmd_rcvr_exclusive(intf, netfn, cmd, chans)) { in ipmi_register_for_cmd() 1363 unsigned int chans) in ipmi_unregister_for_cmd() argument 1372 if (((1 << i) & chans) == 0) in ipmi_unregister_for_cmd() 1379 rcvr->chans &= ~chans; in ipmi_unregister_for_cmd() [all …]
|
/drivers/ata/ |
D | pata_legacy.c | 1068 u8 chans = 1; in probe_opti_vlb() local 1075 chans = (opti_syscfg(0x3F) & 0x20) ? 2 : 1; in probe_opti_vlb() 1080 if (chans == 2) { in probe_opti_vlb()
|