/drivers/dma/dw/ |
D | of.c | 52 u32 nr_channels; in dw_dma_parse_dt() local 64 if (of_property_read_u32(np, "dma-channels", &nr_channels)) in dw_dma_parse_dt() 66 if (nr_channels > DW_DMA_MAX_NR_CHANNELS) in dw_dma_parse_dt() 74 pdata->nr_channels = nr_channels; in dw_dma_parse_dt() 93 if (!of_property_read_u32_array(np, "multi-block", mb, nr_channels)) { in dw_dma_parse_dt() 94 for (tmp = 0; tmp < nr_channels; tmp++) in dw_dma_parse_dt() 97 for (tmp = 0; tmp < nr_channels; tmp++) in dw_dma_parse_dt()
|
D | core.c | 1083 pdata->nr_channels = (dw_params >> DW_PARAMS_NR_CHAN & 7) + 1; in do_dma_probe() 1094 } else if (chip->pdata->nr_channels > DW_DMA_MAX_NR_CHANNELS) { in do_dma_probe() 1104 dw->chan = devm_kcalloc(chip->dev, pdata->nr_channels, sizeof(*dw->chan), in do_dma_probe() 1112 dw->all_chan_mask = (1 << pdata->nr_channels) - 1; in do_dma_probe() 1137 for (i = 0; i < pdata->nr_channels; i++) { in do_dma_probe() 1150 dwc->priority = pdata->nr_channels - i - 1; in do_dma_probe() 1228 pdata->nr_channels); in do_dma_probe()
|
D | internal.h | 62 .nr_channels = 8,
|
/drivers/hwtracing/stm/ |
D | dummy_stm.c | 56 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/ |
D | i3200_edac.c | 103 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() 354 nr_channels = how_many_channels(pdev); in i3200_probe1() 360 layers[1].size = nr_channels; in i3200_probe1() 394 for (j = 0; j < nr_channels; j++) { in i3200_probe1()
|
D | i3000_edac.c | 237 multi_chan = mci->csrows[0]->nr_channels - 1; in i3000_process_error_info() 316 int interleaved, nr_channels; in i3000_probe1() local 355 nr_channels = interleaved ? 2 : 1; in i3000_probe1() 358 layers[0].size = I3000_RANKS / nr_channels; in i3000_probe1() 361 layers[1].size = nr_channels; in i3000_probe1() 408 for (j = 0; j < nr_channels; j++) { in i3000_probe1() 411 dimm->nr_pages = nr_pages / nr_channels; in i3000_probe1()
|
D | ie31200_edac.c | 172 static int nr_channels; variable 275 if (nr_channels == 2) in ie31200_get_and_clear_error_info() 288 if (nr_channels == 2) in ie31200_get_and_clear_error_info() 311 for (channel = 0; channel < nr_channels; channel++) { in ie31200_process_error_info() 418 nr_channels = how_many_channels(pdev); in ie31200_probe1() 423 layers[1].size = nr_channels; in ie31200_probe1()
|
D | i82975x_edac.c | 310 chan = (mci->csrows[row]->nr_channels == 1) ? 0 : info->eap & 1; in i82975x_process_error_info() 393 if (csrow->nr_channels > 1) in i82975x_init_csrows() 407 for (chan = 0; chan < csrow->nr_channels; chan++) { in i82975x_init_csrows() 410 dimm->nr_pages = nr_pages / csrow->nr_channels; in i82975x_init_csrows()
|
D | cpc925_edac.c | 345 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()
|
D | cell_edac.c | 152 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()
|
D | edac_mc.c | 171 edac_dbg(4, " csrow->nr_channels = %d\n", csrow->nr_channels); in edac_mc_dump_csrow() 402 csr->nr_channels = tot_channels; in edac_mc_alloc() 724 for (j = 0; j < csrow->nr_channels; j++) in edac_mc_add_mc_with_groups() 729 for (j = 0; j < csrow->nr_channels; j++) in edac_mc_add_mc_with_groups() 869 for (j = 0; j < csrow->nr_channels; j++) { in edac_mc_find_csrow_by_page()
|
D | edac_mc_sysfs.c | 167 for (i = 0; i < csrow->nr_channels; i++) in csrow_size_show() 361 if (idx >= csrow->nr_channels) in csrow_dev_is_visible() 397 for (chan = 0; chan < csrow->nr_channels; chan++) in nr_pages_per_csrow() 694 for (chan = 0; chan < ri->nr_channels; chan++) in mci_reset_counters_store() 823 for (j = 0; j < csrow->nr_channels; j++) { in mci_size_mb_show()
|
/drivers/dma/dw-axi-dmac/ |
D | dw-axi-dmac-platform.c | 179 for (i = 0; i < chip->dw->hdata->nr_channels; i++) { in axi_dma_hw_init() 607 for (i = 0; i < dw->hdata->nr_channels; i++) { in dw_axi_dma_interrupt() 765 chip->dw->hdata->nr_channels = tmp; in parse_device_properties() 784 chip->dw->hdata->nr_channels); in parse_device_properties() 787 for (tmp = 0; tmp < chip->dw->hdata->nr_channels; tmp++) { in parse_device_properties() 795 chip->dw->hdata->nr_channels); in parse_device_properties() 799 for (tmp = 0; tmp < chip->dw->hdata->nr_channels; tmp++) { in parse_device_properties() 800 if (carr[tmp] >= chip->dw->hdata->nr_channels) in parse_device_properties() 867 dw->chan = devm_kcalloc(chip->dev, hdata->nr_channels, in dw_probe() 886 for (i = 0; i < hdata->nr_channels; i++) { in dw_probe() [all …]
|
/drivers/dma/ |
D | tegra210-adma.c | 99 unsigned int nr_channels; member 157 unsigned int nr_channels; member 723 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_suspend() 761 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_runtime_resume() 791 .nr_channels = 22, 806 .nr_channels = 32, 830 struct_size(tdma, channels, cdata->nr_channels), in tegra_adma_probe() 837 tdma->nr_channels = cdata->nr_channels; in tegra_adma_probe() 852 for (i = 0; i < tdma->nr_channels; i++) { in tegra_adma_probe() 916 tdma->nr_channels); in tegra_adma_probe() [all …]
|
D | tegra20-apb-dma.c | 123 int nr_channels; member 1347 .nr_channels = 16, 1356 .nr_channels = 32, 1365 .nr_channels = 32, 1374 .nr_channels = 32, 1396 struct_size(tdma, channels, cdata->nr_channels), in tegra_dma_probe() 1448 for (i = 0; i < cdata->nr_channels; i++) { in tegra_dma_probe() 1532 cdata->nr_channels); in tegra_dma_probe() 1559 for (i = 0; i < tdma->chip_data->nr_channels; ++i) { in tegra_dma_remove() 1578 for (i = 0; i < tdma->chip_data->nr_channels; i++) { in tegra_dma_runtime_suspend() [all …]
|
D | img-mdc-dma.c | 141 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()
|
D | mxs-dma.c | 147 unsigned int nr_channels; member 334 for (i = 0; i != mxs_dma->nr_channels; ++i) in mxs_dma_irq_to_chan() 756 if (param.chan_id >= mxs_dma->nr_channels) in mxs_dma_xlate() 777 ret = of_property_read_u32(np, "dma-channels", &mxs_dma->nr_channels); in mxs_dma_probe()
|
D | stm32-mdma.c | 277 u32 nr_channels; member 1535 u32 nr_channels, nr_requests; in stm32_mdma_probe() local 1543 &nr_channels); in stm32_mdma_probe() 1545 nr_channels = STM32_MDMA_MAX_CHANNELS; in stm32_mdma_probe() 1547 nr_channels); in stm32_mdma_probe() 1567 dmadev->nr_channels = nr_channels; in stm32_mdma_probe() 1632 for (i = 0; i < dmadev->nr_channels; i++) { in stm32_mdma_probe()
|
/drivers/dma/hsu/ |
D | hsu.c | 151 if (nr >= chip->hsu->nr_channels) in hsu_dma_get_status() 209 if (nr >= chip->hsu->nr_channels) in hsu_dma_do_irq() 430 hsu->nr_channels = (chip->length - chip->offset) / HSU_DMA_CHAN_LENGTH; in hsu_dma_probe() 432 hsu->chan = devm_kcalloc(chip->dev, hsu->nr_channels, in hsu_dma_probe() 438 for (i = 0; i < hsu->nr_channels; i++) { in hsu_dma_probe() 477 dev_info(chip->dev, "Found HSU DMA, %d channels\n", hsu->nr_channels); in hsu_dma_probe() 489 for (i = 0; i < hsu->nr_channels; i++) { in hsu_dma_remove()
|
/drivers/reset/sti/ |
D | reset-stih407.c | 113 .nr_channels = ARRAY_SIZE(stih407_powerdowns), 120 .nr_channels = ARRAY_SIZE(stih407_softresets), 126 .nr_channels = ARRAY_SIZE(stih407_picophyresets),
|
D | reset-syscfg.c | 150 rc->channels = devm_kcalloc(dev, data->nr_channels, in syscfg_reset_controller_register() 157 rc->rst.nr_resets = data->nr_channels; in syscfg_reset_controller_register() 160 for (i = 0; i < data->nr_channels; i++) { in syscfg_reset_controller_register()
|
D | reset-syscfg.h | 50 int nr_channels; member
|
/drivers/net/can/ |
D | kvaser_pciefd.c | 271 u8 nr_channels; member 432 memcpy(&pcie->nr_channels, param->data, le32_to_cpu(param->len)); in kvaser_pciefd_cfg_read_params() 924 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_setup_can_ctrls() 1012 for (i = 0; i < pcie->nr_channels; i++) { in kvaser_pciefd_reg_candev() 1100 if (pcie->nr_channels != sysid_nr_chan) { in kvaser_pciefd_setup_board() 1103 pcie->nr_channels, in kvaser_pciefd_setup_board() 1108 if (pcie->nr_channels > KVASER_PCIEFD_MAX_CAN_CHANNELS) in kvaser_pciefd_setup_board() 1109 pcie->nr_channels = KVASER_PCIEFD_MAX_CAN_CHANNELS; in kvaser_pciefd_setup_board() 1147 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_data_packet() 1314 if (ch_id >= pcie->nr_channels) in kvaser_pciefd_handle_error_packet() [all …]
|
/drivers/dma/xilinx/ |
D | xilinx_dma.c | 446 u32 nr_channels; member 2458 chan->tdest = chan_id - xdev->nr_channels; in xilinx_dma_chan_probe() 2546 int ret, i, nr_channels = 1; in xilinx_dma_child_probe() local 2548 ret = of_property_read_u32(node, "dma-channels", &nr_channels); in xilinx_dma_child_probe() 2552 for (i = 0; i < nr_channels; i++) in xilinx_dma_child_probe() 2555 xdev->nr_channels += nr_channels; in xilinx_dma_child_probe() 2573 if (chan_id >= xdev->nr_channels || !xdev->chan[chan_id]) in of_dma_xilinx_xlate() 2739 for (i = 0; i < xdev->nr_channels; i++) in xilinx_dma_probe() 2767 for (i = 0; i < xdev->nr_channels; i++) in xilinx_dma_probe() 2789 for (i = 0; i < xdev->nr_channels; i++) in xilinx_dma_remove()
|
/drivers/xen/events/ |
D | events_internal.h | 58 unsigned (*nr_channels)(void); member
|