/openbmc/linux/arch/sparc/prom/ |
H A D | ranges.c | 92 int num_ranges; in prom_apply_generic_ranges() local 99 num_ranges = (success / sizeof(struct linux_prom_ranges)); in prom_apply_generic_ranges() 109 prom_adjust_ranges(ranges, num_ranges, parent_ranges, num_parent_ranges); in prom_apply_generic_ranges() 112 prom_adjust_regs(regs, nregs, ranges, num_ranges); in prom_apply_generic_ranges()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_reg.c | 23 u8 num_ranges; member 62 for (idx = 0; idx < map->num_ranges; idx++) { in rvu_check_valid_reg()
|
/openbmc/linux/drivers/gpu/drm/i915/selftests/ |
H A D | intel_uncore.c | 28 unsigned int num_ranges, in intel_fw_table_check() argument 34 for (i = 0, prev = -1; i < num_ranges; i++, ranges++) { in intel_fw_table_check() 112 unsigned int num_ranges; in intel_uncore_mock_selftests() member 129 fw[i].num_ranges, in intel_uncore_mock_selftests()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | host.c | 452 int num_ranges, i; in mmc_of_parse_voltage() local 464 num_ranges = ret / 2; in mmc_of_parse_voltage() 465 if (!num_ranges) { in mmc_of_parse_voltage() 470 voltage_ranges = kcalloc(2 * num_ranges, sizeof(*voltage_ranges), GFP_KERNEL); in mmc_of_parse_voltage() 474 ret = device_property_read_u32_array(dev, prop, voltage_ranges, 2 * num_ranges); in mmc_of_parse_voltage() 480 for (i = 0; i < num_ranges; i++) { in mmc_of_parse_voltage()
|
/openbmc/linux/drivers/pmdomain/imx/ |
H A D | scu-pd.c | 110 u8 num_ranges; member 303 .num_ranges = ARRAY_SIZE(imx8qxp_scu_pd_ranges), 478 for (i = 0; i < pd_soc->num_ranges; i++) in imx_scu_init_pm_domains() 490 for (i = 0; i < pd_soc->num_ranges; i++) { in imx_scu_init_pm_domains()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | sparsebit.c | 1900 int num_ranges; variable 1906 for (i = num_ranges; --i >= 0; ) in get_value() 1935 if (num_ranges == 1000) in operate() 1937 ranges[num_ranges++] = (struct range) in operate() 1948 if (num_ranges == 1000) in operate() 1950 ranges[num_ranges++] = (struct range) in operate() 1965 num_ranges = 0; in operate() 1966 ranges[num_ranges++] = (struct range) in operate() 1977 num_ranges = 0; in operate() 2025 if (num_ranges == 1000) in operate() [all …]
|
/openbmc/linux/drivers/regulator/ |
H A D | bd9576-regulator.c | 216 static int bd9576_set_limit(const struct linear_range *r, int num_ranges, in bd9576_set_limit() argument 225 ret = linear_range_get_selector_low_array(r, num_ranges, in bd9576_set_limit() 318 int num_ranges; in bd9576_set_ocp() local 334 num_ranges = ARRAY_SIZE(voutS1_ocp_ranges); in bd9576_set_ocp() 338 num_ranges = ARRAY_SIZE(voutS1_ocp_ranges_internal); in bd9576_set_ocp() 348 num_ranges = ARRAY_SIZE(voutS1_ocw_ranges); in bd9576_set_ocp() 352 num_ranges = ARRAY_SIZE(voutS1_ocw_ranges_internal); in bd9576_set_ocp() 380 return bd9576_set_limit(range, num_ranges, d->regmap, in bd9576_set_ocp()
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | debug.h | 226 int num_ranges); 249 int num_ranges) in ath10k_sta_update_rx_tid_stats_ampdu() argument
|
H A D | debugfs_sta.c | 50 int num_ranges) in ath10k_sta_update_rx_tid_stats_ampdu() argument 68 for (i = 0; i < num_ranges; i++) in ath10k_sta_update_rx_tid_stats_ampdu()
|
/openbmc/linux/drivers/remoteproc/ |
H A D | remoteproc_virtio.c | 32 int num_ranges = 0; in copy_dma_range_map() local 38 num_ranges++; in copy_dma_range_map() 40 new_map = kmemdup(map, array_size(num_ranges + 1, sizeof(*map)), in copy_dma_range_map()
|
/openbmc/linux/drivers/vfio/pci/pds/ |
H A D | dirty.c | 190 u32 num_ranges = nnodes; in pds_vfio_dirty_enable() local 230 if (num_ranges > max_regions) { in pds_vfio_dirty_enable() 232 num_ranges = max_regions; in pds_vfio_dirty_enable()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomctrl.c | 57 uint8_t num_ranges = 0; in atomctrl_retrieve_ac_timing() local 60 num_ranges < VBIOS_MAX_AC_TIMING_ENTRIES) { in atomctrl_retrieve_ac_timing() 64 table->mc_reg_table_entry[num_ranges].mclk_max = in atomctrl_retrieve_ac_timing() 71 table->mc_reg_table_entry[num_ranges].mc_data[i] = in atomctrl_retrieve_ac_timing() 77 table->mc_reg_table_entry[num_ranges].mc_data[i] = in atomctrl_retrieve_ac_timing() 78 table->mc_reg_table_entry[num_ranges].mc_data[i-1]; in atomctrl_retrieve_ac_timing() 81 num_ranges++; in atomctrl_retrieve_ac_timing() 90 table->num_entries = num_ranges; in atomctrl_retrieve_ac_timing()
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | gmc_v9_0.c | 1882 int num_ranges = 0, ret, mem_groups; in gmc_v9_0_init_acpi_mem_ranges() local 1900 num_ranges = 1; in gmc_v9_0_init_acpi_mem_ranges() 1904 if (gmc_v9_0_is_node_present(node_ids, num_ranges, in gmc_v9_0_init_acpi_mem_ranges() 1908 node_ids[num_ranges] = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges() 1909 mem_ranges[num_ranges].numa.node = numa_info.nid; in gmc_v9_0_init_acpi_mem_ranges() 1910 mem_ranges[num_ranges].size = numa_info.size; in gmc_v9_0_init_acpi_mem_ranges() 1911 ++num_ranges; in gmc_v9_0_init_acpi_mem_ranges() 1914 adev->gmc.num_mem_partitions = num_ranges; in gmc_v9_0_init_acpi_mem_ranges()
|
H A D | amdgpu_atombios.c | 1422 u8 frev, crev, num_entries, t_mem_id, num_ranges = 0; in amdgpu_atombios_init_mc_reg_table() local 1466 (num_ranges < VBIOS_MAX_AC_TIMING_ENTRIES)) { in amdgpu_atombios_init_mc_reg_table() 1470 reg_table->mc_reg_table_entry[num_ranges].mclk_max = in amdgpu_atombios_init_mc_reg_table() 1475 reg_table->mc_reg_table_entry[num_ranges].mc_data[i] = in amdgpu_atombios_init_mc_reg_table() 1481 reg_table->mc_reg_table_entry[num_ranges].mc_data[i] = in amdgpu_atombios_init_mc_reg_table() 1482 reg_table->mc_reg_table_entry[num_ranges].mc_data[i - 1]; in amdgpu_atombios_init_mc_reg_table() 1485 num_ranges++; in amdgpu_atombios_init_mc_reg_table() 1492 reg_table->num_entries = num_ranges; in amdgpu_atombios_init_mc_reg_table()
|
/openbmc/linux/drivers/bus/fsl-mc/ |
H A D | fsl-mc-bus.c | 1001 u8 *num_ranges) in get_mc_addr_translation_ranges() argument 1008 *num_ranges = of_range_count(&parser); in get_mc_addr_translation_ranges() 1009 if (!*num_ranges) { in get_mc_addr_translation_ranges() 1019 *ranges = devm_kcalloc(dev, *num_ranges, in get_mc_addr_translation_ranges()
|
/openbmc/linux/drivers/of/ |
H A D | address.c | 943 int len, num_ranges = 0; in of_dma_get_range() local 976 num_ranges++; in of_dma_get_range() 979 if (!num_ranges) { in of_dma_get_range() 984 r = kcalloc(num_ranges + 1, sizeof(*r), GFP_KERNEL); in of_dma_get_range()
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs42l83-i2c.c | 156 .num_ranges = 1,
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | cmd.c | 746 u32 num_ranges = nnodes; in mlx5vf_create_tracker() local 756 if (num_ranges > max_num_range) { in mlx5vf_create_tracker() 758 num_ranges = max_num_range; in mlx5vf_create_tracker() 762 record_size * num_ranges; in mlx5vf_create_tracker() 781 MLX5_SET(page_track, obj_context, num_ranges, num_ranges); in mlx5vf_create_tracker() 785 for (i = 0; i < num_ranges; i++) { in mlx5vf_create_tracker()
|
/openbmc/u-boot/drivers/video/ |
H A D | stb_truetype.h | 562 …k_context *spc, unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges); 590 …pack_context *spc, stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rec… 592 …pack_context *spc, stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rec… 2847 …pack_context *spc, stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rec… in stbtt_PackFontRangesGatherRects() argument 2852 for (i=0; i < num_ranges; ++i) { in stbtt_PackFontRangesGatherRects() 2876 …pack_context *spc, stbtt_fontinfo *info, stbtt_pack_range *ranges, int num_ranges, stbrp_rect *rec… in stbtt_PackFontRangesRenderIntoRects() argument 2885 for (i=0; i < num_ranges; ++i) { in stbtt_PackFontRangesRenderIntoRects() 2963 …ck_context *spc, unsigned char *fontdata, int font_index, stbtt_pack_range *ranges, int num_ranges) in stbtt_PackFontRanges() argument 2971 for (i=0; i < num_ranges; ++i) in stbtt_PackFontRanges() 2979 for (i=0; i < num_ranges; ++i) in stbtt_PackFontRanges() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | rsmu_i2c.c | 189 .num_ranges = ARRAY_SIZE(rsmu_sabre_range_cfg),
|
H A D | wcd934x.c | 119 .num_ranges = ARRAY_SIZE(wcd934x_ranges),
|
H A D | da9062-core.c | 477 .num_ranges = ARRAY_SIZE(da9061_range_cfg), 583 .num_ranges = ARRAY_SIZE(da9062_range_cfg),
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_res.c | 81 u8 num_ranges = 0; in alloc_bus_range() local 93 num_ranges = newbus->noMemRanges; in alloc_bus_range() 96 num_ranges = newbus->noPFMemRanges; in alloc_bus_range() 99 num_ranges = newbus->noIORanges; in alloc_bus_range() 113 if (first_bus || (!num_ranges)) in alloc_bus_range()
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | cxd2820r_core.c | 583 .num_ranges = ARRAY_SIZE(regmap_range_cfg0), in cxd2820r_probe() 591 .num_ranges = ARRAY_SIZE(regmap_range_cfg1), in cxd2820r_probe()
|
/openbmc/qemu/hw/vfio/ |
H A D | common.c | 978 control->num_ranges = !!tracking->max32 + !!tracking->max64 + in vfio_device_feature_dma_logging_start_create() 981 control->num_ranges); in vfio_device_feature_dma_logging_start_create() 1005 trace_vfio_device_dirty_tracking_start(control->num_ranges, in vfio_device_feature_dma_logging_start_create()
|