Home
last modified time | relevance | path

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

123

/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,
Dcore.c1096 pdata->nr_channels = (dw_params >> DW_PARAMS_NR_CHAN & 7) + 1; in do_dma_probe()
1107 } else if (chip->pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) { in do_dma_probe()
1117 dw->chan = devm_kcalloc(chip->dev, pdata->nr_channels, sizeof(*dw->chan), in do_dma_probe()
1125 dw->all_chan_mask = (1 << pdata->nr_channels) - 1; in do_dma_probe()
1150 for (i = 0; i < pdata->nr_channels; i++) { in do_dma_probe()
1163 dwc->priority = pdata->nr_channels - i - 1; in do_dma_probe()
1263 pdata->nr_channels); in do_dma_probe()
/drivers/irqchip/
Dirq-meson-gpio.c71 unsigned int nr_channels; member
95 .nr_channels = 8, \
106 .nr_channels = 8, \
117 .nr_channels = 12, \
240 idx = find_first_zero_bit(ctl->channel_map, ctl->params->nr_channels); in meson_gpio_irq_request_channel()
241 if (idx >= ctl->params->nr_channels) { in meson_gpio_irq_request_channel()
527 ctl->params->nr_channels, in meson_gpio_irq_parse_dt()
528 ctl->params->nr_channels); in meson_gpio_irq_parse_dt()
530 pr_err("can't get %d channel interrupts\n", ctl->params->nr_channels); in meson_gpio_irq_parse_dt()
584 ctl->params->nr_hwirq, ctl->params->nr_channels); in meson_gpio_irq_of_init()
/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()
/drivers/edac/
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()
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()
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()
Dedac_mc.c115 edac_dbg(4, " csrow->nr_channels = %d\n", csrow->nr_channels); in edac_mc_dump_csrow()
232 csr->nr_channels = tot_channels; in edac_mc_alloc_csrows()
619 for (j = 0; j < csrow->nr_channels; j++) in edac_mc_add_mc_with_groups()
624 for (j = 0; j < csrow->nr_channels; j++) in edac_mc_add_mc_with_groups()
764 for (j = 0; j < csrow->nr_channels; j++) { in edac_mc_find_csrow_by_page()
Dedac_mc_sysfs.c167 for (i = 0; i < csrow->nr_channels; i++) in csrow_size_show()
376 if (idx >= csrow->nr_channels) in csrow_dev_is_visible()
420 for (chan = 0; chan < csrow->nr_channels; chan++) in nr_pages_per_csrow()
702 for (chan = 0; chan < ri->nr_channels; chan++) in mci_reset_counters_store()
829 for (j = 0; j < csrow->nr_channels; j++) { in mci_size_mb_show()
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()
/drivers/dma/
Dtegra210-adma.c94 unsigned int nr_channels; member
154 unsigned int nr_channels; member
741 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_suspend()
779 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_resume()
807 .nr_channels = 22,
823 .nr_channels = 32,
850 struct_size(tdma, channels, cdata->nr_channels), in tegra_adma_probe()
857 tdma->nr_channels = cdata->nr_channels; in tegra_adma_probe()
872 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_probe()
936 tdma->nr_channels); in tegra_adma_probe()
[all …]
Dtegra186-gpc-dma.c178 unsigned int nr_channels; member
1292 .nr_channels = 31,
1300 .nr_channels = 31,
1308 .nr_channels = 31,
1355 struct_size(tdma, channels, cdata->nr_channels), in tegra_dma_probe()
1385 for (i = 0; i < cdata->nr_channels; i++) { in tegra_dma_probe()
1454 cdata->nr_channels); in tegra_dma_probe()
1474 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_pm_suspend()
1493 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_pm_resume()
Dtegra20-apb-dma.c124 unsigned int nr_channels; member
1375 .nr_channels = 16,
1384 .nr_channels = 32,
1393 .nr_channels = 32,
1402 .nr_channels = 32,
1448 size = struct_size(tdma, channels, cdata->nr_channels); in tegra_dma_probe()
1488 for (i = 0; i < cdata->nr_channels; i++) { in tegra_dma_probe()
1574 cdata->nr_channels); in tegra_dma_probe()
1625 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_dev_suspend()
Dimg-mdc-dma.c141 unsigned int nr_channels; member
922 mdma->nr_channels = (val >> MDC_GLOBAL_CONFIG_A_DMA_CONTEXTS_SHIFT) & in mdc_dma_probe()
942 &mdma->nr_channels); in mdc_dma_probe()
969 for (i = 0; i < mdma->nr_channels; i++) { in mdc_dma_probe()
1010 mdma->nr_channels, mdma->nr_threads); in mdc_dma_probe()
1054 for (i = 0; i < mdma->nr_channels; i++) { in img_mdc_suspend_late()
Dmxs-dma.c146 unsigned int nr_channels; member
315 for (i = 0; i != mxs_dma->nr_channels; ++i) in mxs_dma_irq_to_chan()
737 if (param.chan_id >= mxs_dma->nr_channels) in mxs_dma_xlate()
756 ret = of_property_read_u32(np, "dma-channels", &mxs_dma->nr_channels); in mxs_dma_probe()
Dstm32-mdma.c255 u32 nr_channels; member
1600 u32 nr_channels, nr_requests; in stm32_mdma_probe() local
1608 &nr_channels); in stm32_mdma_probe()
1610 nr_channels = STM32_MDMA_MAX_CHANNELS; in stm32_mdma_probe()
1612 nr_channels); in stm32_mdma_probe()
1633 dmadev->nr_channels = nr_channels; in stm32_mdma_probe()
1701 for (i = 0; i < dmadev->nr_channels; i++) { in stm32_mdma_probe()
1788 for (id = 0; id < dmadev->nr_channels; id++) { in stm32_mdma_pm_suspend()
/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()
/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.c151 rc->channels = devm_kcalloc(dev, data->nr_channels, in syscfg_reset_controller_register()
158 rc->rst.nr_resets = data->nr_channels; in syscfg_reset_controller_register()
161 for (i = 0; i < data->nr_channels; i++) { in syscfg_reset_controller_register()
Dreset-syscfg.h50 int nr_channels; member
/drivers/net/can/
Dkvaser_pciefd.c281 u8 nr_channels; member
439 memcpy(&pcie->nr_channels, param->data, le32_to_cpu(param->len)); in kvaser_pciefd_cfg_read_params()
948 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_setup_can_ctrls()
1039 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_reg_candev()
1137 if (pcie->nr_channels != sysid_nr_chan) { in kvaser_pciefd_setup_board()
1140 pcie->nr_channels, in kvaser_pciefd_setup_board()
1145 if (pcie->nr_channels > KVASER_PCIEFD_MAX_CAN_CHANNELS) in kvaser_pciefd_setup_board()
1146 pcie->nr_channels = KVASER_PCIEFD_MAX_CAN_CHANNELS; in kvaser_pciefd_setup_board()
1183 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_data_packet()
1342 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_error_packet()
[all …]
/drivers/dma/dw-axi-dmac/
Ddw-axi-dmac-platform.c218 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init()
1111 for (i = 0; i < dw->hdata->nr_channels; i++) { in dw_axi_dma_interrupt()
1310 chip->dw->hdata->nr_channels = tmp; in parse_device_properties()
1331 chip->dw->hdata->nr_channels); in parse_device_properties()
1334 for (tmp = 0; tmp < chip->dw->hdata->nr_channels; tmp++) { in parse_device_properties()
1342 chip->dw->hdata->nr_channels); in parse_device_properties()
1346 for (tmp = 0; tmp < chip->dw->hdata->nr_channels; tmp++) { in parse_device_properties()
1347 if (carr[tmp] >= chip->dw->hdata->nr_channels) in parse_device_properties()
1421 dw->chan = devm_kcalloc(chip->dev, hdata->nr_channels, in dw_probe()
1432 for (i = 0; i < hdata->nr_channels; i++) { in dw_probe()
[all …]

123