Home
last modified time | relevance | path

Searched refs:nr_channels (Results 1 – 25 of 60) sorted by relevance

123

/linux-6.12.1/drivers/dma/dw/
Dof.c39 slave.channels >= BIT(dw->pdata->nr_channels))) in dw_dma_of_xlate()
55 u32 nr_channels; in dw_dma_parse_dt() local
62 if (of_property_read_u32(np, "dma-channels", &nr_channels)) in dw_dma_parse_dt()
64 if (nr_channels > DW_DMA_MAX_NR_CHANNELS) in dw_dma_parse_dt()
72 pdata->nr_channels = nr_channels; in dw_dma_parse_dt()
88 memset32(pdata->multi_block, 1, nr_channels); in dw_dma_parse_dt()
89 of_property_read_u32_array(np, "multi-block", pdata->multi_block, nr_channels); in dw_dma_parse_dt()
91 memset32(pdata->max_burst, DW_DMA_MAX_BURST, nr_channels); in dw_dma_parse_dt()
92 of_property_read_u32_array(np, "snps,max-burst-len", pdata->max_burst, nr_channels); in dw_dma_parse_dt()
Dinternal.h62 .nr_channels = 8,
78 .nr_channels = 8,
/linux-6.12.1/arch/sh/drivers/dma/
Ddma-api.c34 (chan >= info->first_vchannel_nr + info->nr_channels)) in get_dma_info()
53 nr += info->nr_channels; in get_nr_channels()
67 for (i = 0; i < info->nr_channels; i++) { in get_dma_channel()
182 for (i = 0; i < info->nr_channels; i++) { in dma_proc_show()
203 info->name, info->nr_channels, info->nr_channels > 1 ? "s" : ""); in register_dmac()
218 size = sizeof(struct dma_channel) * info->nr_channels; in register_dmac()
227 for (i = 0; i < info->nr_channels; i++) { in register_dmac()
254 for (i = 0; i < info->nr_channels; i++) in unregister_dmac()
Ddma-pvr2.c75 .nr_channels = 1,
/linux-6.12.1/drivers/hwtracing/stm/
Ddummy_stm.c56 static unsigned int nr_channels = STP_CHANNEL_MAX; variable
58 module_param(nr_channels, int, 0400);
78 nr_channels > STP_CHANNEL_MAX) in dummy_stm_init()
88 dummy_stm[i].sw_nchannels = nr_channels; in dummy_stm_init()
/linux-6.12.1/drivers/irqchip/
Dirq-meson-gpio.c71 unsigned int nr_channels; member
95 .nr_channels = 8, \
106 .nr_channels = 8, \
117 .nr_channels = 12, \
250 idx = find_first_zero_bit(ctl->channel_map, ctl->params->nr_channels); in meson_gpio_irq_request_channel()
251 if (idx >= ctl->params->nr_channels) { in meson_gpio_irq_request_channel()
537 ctl->params->nr_channels, in meson_gpio_irq_parse_dt()
538 ctl->params->nr_channels); in meson_gpio_irq_parse_dt()
540 pr_err("can't get %d channel interrupts\n", ctl->params->nr_channels); in meson_gpio_irq_parse_dt()
594 ctl->params->nr_hwirq, ctl->params->nr_channels); in meson_gpio_irq_of_init()
/linux-6.12.1/drivers/dma/
Dtegra210-adma.c95 unsigned int nr_channels; member
155 unsigned int nr_channels; member
166 struct tegra_adma_chan channels[] __counted_by(nr_channels);
743 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_suspend()
785 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_resume()
816 .nr_channels = 22,
832 .nr_channels = 32,
858 struct_size(tdma, channels, cdata->nr_channels), in tegra_adma_probe()
865 tdma->nr_channels = cdata->nr_channels; in tegra_adma_probe()
879 BITS_TO_LONGS(tdma->nr_channels) * sizeof(unsigned long), in tegra_adma_probe()
[all …]
Dtegra20-apb-dma.c123 unsigned int nr_channels; member
1369 .nr_channels = 16,
1378 .nr_channels = 32,
1387 .nr_channels = 32,
1396 .nr_channels = 32,
1442 size = struct_size(tdma, channels, cdata->nr_channels); in tegra_dma_probe()
1482 for (i = 0; i < cdata->nr_channels; i++) { in tegra_dma_probe()
1568 cdata->nr_channels); in tegra_dma_probe()
1617 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_dev_suspend()
Dtegra186-gpc-dma.c181 unsigned int nr_channels; member
1299 .nr_channels = 32,
1307 .nr_channels = 32,
1315 .nr_channels = 32,
1362 struct_size(tdma, channels, cdata->nr_channels), in tegra_dma_probe()
1399 for (i = 0; i < cdata->nr_channels; i++) { in tegra_dma_probe()
1490 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_pm_suspend()
1512 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_pm_resume()
Dimg-mdc-dma.c140 unsigned int nr_channels; member
919 mdma->nr_channels = (val >> MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT) & in mdc_dma_probe()
939 &mdma->nr_channels); in mdc_dma_probe()
966 for (i = 0; i < mdma->nr_channels; i++) { in mdc_dma_probe()
1007 mdma->nr_channels, mdma->nr_threads); in mdc_dma_probe()
1049 for (i = 0; i < mdma->nr_channels; i++) { in img_mdc_suspend_late()
/linux-6.12.1/drivers/edac/
Di3000_edac.c237 multi_chan = mci->csrows[0]->nr_channels - 1; in i3000_process_error_info()
315 int interleaved, nr_channels; in i3000_probe1() local
354 nr_channels = interleaved ? 2 : 1; in i3000_probe1()
357 layers[0].size = I3000_RANKS / nr_channels; in i3000_probe1()
360 layers[1].size = nr_channels; in i3000_probe1()
407 for (j = 0; j < nr_channels; j++) { in i3000_probe1()
410 dimm->nr_pages = nr_pages / nr_channels; in i3000_probe1()
Di3200_edac.c103 static int nr_channels; variable
199 if (nr_channels == 2) in i3200_get_and_clear_error_info()
212 if (nr_channels == 2) in i3200_get_and_clear_error_info()
234 for (channel = 0; channel < nr_channels; channel++) { in i3200_process_error_info()
353 nr_channels = how_many_channels(pdev); in i3200_probe1()
359 layers[1].size = nr_channels; in i3200_probe1()
393 for (j = 0; j < nr_channels; j++) { in i3200_probe1()
Die31200_edac.c180 static int nr_channels; variable
285 if (nr_channels == 2) in ie31200_get_and_clear_error_info()
298 if (nr_channels == 2) in ie31200_get_and_clear_error_info()
321 for (channel = 0; channel < nr_channels; channel++) { in ie31200_process_error_info()
427 nr_channels = how_many_channels(pdev); in ie31200_probe1()
432 layers[1].size = nr_channels; in ie31200_probe1()
Di82975x_edac.c310 chan = (mci->csrows[row]->nr_channels == 1) ? 0 : info->eap & 1; in i82975x_process_error_info()
392 if (csrow->nr_channels > 1) in i82975x_init_csrows()
406 for (chan = 0; chan < csrow->nr_channels; chan++) { in i82975x_init_csrows()
409 dimm->nr_pages = nr_pages / csrow->nr_channels; in i82975x_init_csrows()
Dcpc925_edac.c345 switch (csrow->nr_channels) { in cpc925_init_csrows()
368 for (j = 0; j < csrow->nr_channels; j++) { in cpc925_init_csrows()
370 dimm->nr_pages = nr_pages / csrow->nr_channels; in cpc925_init_csrows()
914 int res = 0, nr_channels; in cpc925_probe() local
946 nr_channels = cpc925_mc_get_channels(vbase) + 1; in cpc925_probe()
952 layers[1].size = nr_channels; in cpc925_probe()
Dcell_edac.c152 for (j = 0; j < csrow->nr_channels; j++) { in cell_edac_init_csrows()
156 dimm->nr_pages = nr_pages / csrow->nr_channels; in cell_edac_init_csrows()
/linux-6.12.1/drivers/dma/hsu/
Dhsu.c159 if (nr >= chip->hsu->nr_channels) in hsu_dma_get_status()
218 if (nr >= chip->hsu->nr_channels) in hsu_dma_do_irq()
441 hsu->nr_channels = (chip->length - chip->offset) / HSU_DMA_CHAN_LENGTH; in hsu_dma_probe()
443 hsu->chan = devm_kcalloc(chip->dev, hsu->nr_channels, in hsu_dma_probe()
449 for (i = 0; i < hsu->nr_channels; i++) { in hsu_dma_probe()
488 dev_info(chip->dev, "Found HSU DMA, %d channels\n", hsu->nr_channels); in hsu_dma_probe()
500 for (i = 0; i < hsu->nr_channels; i++) { in hsu_dma_remove()
/linux-6.12.1/drivers/reset/sti/
Dreset-stih407.c113 .nr_channels = ARRAY_SIZE(stih407_powerdowns),
120 .nr_channels = ARRAY_SIZE(stih407_softresets),
126 .nr_channels = ARRAY_SIZE(stih407_picophyresets),
Dreset-syscfg.c142 rc->channels = devm_kcalloc(dev, data->nr_channels, in syscfg_reset_controller_register()
149 rc->rst.nr_resets = data->nr_channels; in syscfg_reset_controller_register()
152 for (i = 0; i < data->nr_channels; i++) { in syscfg_reset_controller_register()
Dreset-syscfg.h50 int nr_channels; member
/linux-6.12.1/arch/x86/kernel/
Dhpet.c37 unsigned int nr_channels; member
196 hd.hd_nirqs = hpet_base.nr_channels; in hpet_reserve_platform_timers()
206 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_reserve_platform_timers()
231 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_select_device_channel()
672 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_get_unused_clockevent()
720 for (i = 0; i < hpet_base.nr_channels; i++) { in hpet_select_clockevents()
745 hpet_base.nr_channels, hpet_base.nr_clockevents); in hpet_select_clockevents()
1056 hpet_base.nr_channels = channels; in hpet_enable()
1110 hpet_base.nr_channels = 0; in hpet_enable()
1183 for (i = 0; i < hpet_base.nr_channels; i++) in hpet_disable()
/linux-6.12.1/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c198 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in axi_chan_disable()
225 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in axi_chan_enable()
254 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) in axi_chan_is_hw_enable()
270 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init()
1161 for (i = 0; i < dw->hdata->nr_channels; i++) { in dw_axi_dma_interrupt()
1226 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in dma_chan_pause()
1273 if (chan->chip->dw->hdata->nr_channels >= DMAC_CHAN_16) { in axi_chan_resume()
1388 chip->dw->hdata->nr_channels = tmp; in parse_device_properties()
1409 chip->dw->hdata->nr_channels); in parse_device_properties()
1412 for (tmp = 0; tmp < chip->dw->hdata->nr_channels; tmp++) { in parse_device_properties()
[all …]
/linux-6.12.1/include/linux/
Dtimb_dma.h39 unsigned nr_channels; member
/linux-6.12.1/drivers/net/can/
Dkvaser_pciefd.c427 u8 nr_channels; member
956 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_setup_can_ctrls()
1034 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_reg_candev()
1157 pcie->nr_channels = min(KVASER_PCIEFD_MAX_CAN_CHANNELS, in kvaser_pciefd_setup_board()
1193 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_data_packet()
1343 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_error_packet()
1412 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_status_packet()
1493 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_ack_packet()
1539 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_eflush_packet()
1701 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_irq_handler()
[all …]
/linux-6.12.1/include/linux/platform_data/
Ddma-dw.h59 u32 nr_channels; member

123