/linux/mm/ |
A D | page_ext.c | 155 unsigned long table_size; in alloc_node_page_ext() local 171 table_size = page_ext_size * nr_pages; in alloc_node_page_ext() 174 table_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS), in alloc_node_page_ext() 179 total_usage += table_size; in alloc_node_page_ext() 241 unsigned long table_size; in init_section_page_ext() local 248 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext() 249 base = alloc_page_ext(table_size, nid); in init_section_page_ext() 269 total_usage += table_size; in init_section_page_ext() 279 size_t table_size; in free_page_ext() local 281 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext() [all …]
|
/linux/drivers/net/wireguard/ |
A D | ratelimiter.c | 18 static unsigned int max_entries, table_size; variable 62 for (i = 0; i < table_size; ++i) { in wg_ratelimiter_gc_entries() 98 (table_size - 1)]; in wg_ratelimiter_allow() 105 (table_size - 1)]; in wg_ratelimiter_allow() 173 table_size = (totalram_pages() > (1U << 30) / PAGE_SIZE) ? 8192 : in wg_ratelimiter_init() 177 max_entries = table_size * 8; in wg_ratelimiter_init() 179 table_v4 = kvcalloc(table_size, sizeof(*table_v4), GFP_KERNEL); in wg_ratelimiter_init() 184 table_v6 = kvcalloc(table_size, sizeof(*table_v6), GFP_KERNEL); in wg_ratelimiter_init()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_rlc.c | 190 u32 table_offset, table_size; in amdgpu_gfx_rlc_setup_cp_table() local 204 table_size = le32_to_cpu(hdr->jt_size); in amdgpu_gfx_rlc_setup_cp_table() 212 table_size = le32_to_cpu(hdr->jt_size); in amdgpu_gfx_rlc_setup_cp_table() 220 table_size = le32_to_cpu(hdr->jt_size); in amdgpu_gfx_rlc_setup_cp_table() 228 table_size = le32_to_cpu(hdr->jt_size); in amdgpu_gfx_rlc_setup_cp_table() 236 table_size = le32_to_cpu(hdr->jt_size); in amdgpu_gfx_rlc_setup_cp_table() 239 for (i = 0; i < table_size; i ++) { in amdgpu_gfx_rlc_setup_cp_table() 244 bo_offset += table_size; in amdgpu_gfx_rlc_setup_cp_table()
|
A D | mmsch_v3_0.h | 44 uint32_t table_size; member 98 table_size += size_dw; \ 108 table_size += size_dw; \ 119 table_size += size_dw; \ 127 table_size += size_dw; \
|
A D | mmsch_v1_0.h | 51 uint32_t table_size; member 135 table_size += sizeof(struct mmsch_v1_0_cmd_direct_read_modify_write)/4; \ 143 table_size += sizeof(struct mmsch_v1_0_cmd_direct_write)/4; \ 151 table_size += sizeof(struct mmsch_v1_0_cmd_direct_polling)/4; \
|
A D | mmsch_v2_0.h | 319 table_size += sizeof(struct mmsch_v2_0_cmd_direct_read_modify_write)/4; \ 327 table_size += sizeof(struct mmsch_v2_0_cmd_direct_write)/4; \ 335 table_size += sizeof(struct mmsch_v2_0_cmd_direct_polling)/4; \
|
/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
A D | ia_css_sdis2.host.c | 209 unsigned int size_bytes, table_width, table_size, height; in ia_css_translate_dvs2_statistics() local 240 table_size = table_width * host_stats->grid.aligned_height; in ia_css_translate_dvs2_statistics() 247 &htemp_ptr[0 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 249 &htemp_ptr[1 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 251 &htemp_ptr[2 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 253 &htemp_ptr[3 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 257 &vtemp_ptr[0 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 259 &vtemp_ptr[1 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 261 &vtemp_ptr[2 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics() 263 &vtemp_ptr[3 * table_size + src_offset], size_bytes); in ia_css_translate_dvs2_statistics()
|
/linux/drivers/clk/mmp/ |
A D | clk-mix.c | 112 unsigned int table_size) in _filter_clk_table() argument 121 for (i = 0; i < table_size; i++) { in _filter_clk_table() 223 for (i = 0; i < mix->table_size; i++) { in mmp_clk_mix_determine_rate() 356 for (i = 0; i < mix->table_size; i++) { in mmp_clk_set_parent() 363 if (i < mix->table_size) { in mmp_clk_set_parent() 389 for (i = 0; i < mix->table_size; i++) { in mmp_clk_set_rate() 400 if (i < mix->table_size) in mmp_clk_set_rate() 427 _filter_clk_table(mix, mix->table, mix->table_size); in mmp_clk_mix_init() 467 table_bytes = sizeof(*config->table) * config->table_size; in mmp_clk_register_mix() 472 mix->table_size = config->table_size; in mmp_clk_register_mix()
|
/linux/drivers/acpi/apei/ |
A D | einj.c | 256 if (trigger_tab->table_size > PAGE_SIZE || in einj_check_trigger_header() 257 trigger_tab->table_size < trigger_tab->header_size) in einj_check_trigger_header() 260 (trigger_tab->table_size - trigger_tab->header_size) / in einj_check_trigger_header() 296 u32 table_size; in __einj_error_trigger() local 325 table_size = trigger_tab->table_size; in __einj_error_trigger() 327 table_size - sizeof(*trigger_tab), in __einj_error_trigger() 332 (unsigned long long)trigger_paddr + table_size - 1); in __einj_error_trigger() 336 trigger_tab = ioremap_cache(trigger_paddr, table_size); in __einj_error_trigger() 393 table_size - sizeof(*trigger_tab)); in __einj_error_trigger()
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_sdm.c | 36 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_enable() 99 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_has_rate() 127 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_read_rate() 146 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_get_factors()
|
A D | ccu_sdm.h | 33 u32 table_size; member 45 .table_size = ARRAY_SIZE(_table), \
|
/linux/arch/powerpc/mm/ |
A D | init-common.c | 96 unsigned long table_size = sizeof(void *) << shift; in pgtable_cache_add() local 97 unsigned long align = table_size; in pgtable_cache_add() 121 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
|
/linux/drivers/firmware/efi/ |
A D | efi-init.c | 91 size_t table_size; in uefi_init() local 113 table_size = sizeof(efi_config_table_t) * systab->nr_tables; in uefi_init() 115 table_size); in uefi_init() 125 early_memunmap(config_tables, table_size); in uefi_init()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | legacy.c | 80 int table_size; in esw_create_legacy_fdb_table() local 98 table_size = BIT(MLX5_CAP_ESW_FLOWTABLE_FDB(dev, log_max_ft_size)); in esw_create_legacy_fdb_table() 99 ft_attr.max_fte = table_size; in esw_create_legacy_fdb_table() 116 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 3); in esw_create_legacy_fdb_table() 129 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, table_size - 2); in esw_create_legacy_fdb_table() 130 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 2); in esw_create_legacy_fdb_table() 148 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, table_size - 1); in esw_create_legacy_fdb_table() 149 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 1); in esw_create_legacy_fdb_table()
|
/linux/drivers/gpu/drm/radeon/ |
A D | radeon_gart.c | 75 ptr = dma_alloc_coherent(&rdev->pdev->dev, rdev->gart.table_size, in radeon_gart_table_ram_alloc() 84 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_alloc() 109 rdev->gart.table_size >> PAGE_SHIFT); in radeon_gart_table_ram_free() 112 dma_free_coherent(&rdev->pdev->dev, rdev->gart.table_size, in radeon_gart_table_ram_free() 133 r = radeon_bo_create(rdev, rdev->gart.table_size, in radeon_gart_table_vram_alloc()
|
/linux/drivers/cpufreq/ |
A D | s3c2440-cpufreq.c | 214 size_t table_size) in run_freq_for() argument 227 index = s3c_cpufreq_addfreq(table, index, table_size, freq); in run_freq_for() 239 size_t table_size) in s3c2440_cpufreq_calctable() argument 249 table, table_size); in s3c2440_cpufreq_calctable()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
A D | egress_ofld.c | 174 int table_size = 0; in esw_acl_egress_ofld_setup() local 187 table_size++; in esw_acl_egress_ofld_setup() 189 table_size++; in esw_acl_egress_ofld_setup() 191 MLX5_FLOW_NAMESPACE_ESW_EGRESS, table_size); in esw_acl_egress_ofld_setup()
|
/linux/include/linux/soc/samsung/ |
A D | s3c-cpufreq-core.h | 180 size_t table_size); 272 int index, size_t table_size, in s3c_cpufreq_addfreq() argument 279 if (index >= table_size) in s3c_cpufreq_addfreq()
|
/linux/drivers/acpi/ |
A D | tables.c | 294 static int __init acpi_parse_entries_array(char *id, unsigned long table_size, in acpi_parse_entries_array() argument 311 ((unsigned long)table_header + table_size); in acpi_parse_entries_array() 356 unsigned long table_size, in acpi_table_parse_entries_array() argument 370 if (!table_size) in acpi_table_parse_entries_array() 382 count = acpi_parse_entries_array(id, table_size, table_header, in acpi_table_parse_entries_array() 390 unsigned long table_size, in acpi_table_parse_entries() argument 400 return acpi_table_parse_entries_array(id, table_size, &proc, 1, in acpi_table_parse_entries()
|
/linux/drivers/gpu/drm/r128/ |
A D | ati_pcigart.c | 53 dmah->size = gart_info->table_size; in drm_ati_alloc_pcigart_table() 95 max_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_cleanup() 163 max_ati_pages = (gart_info->table_size / sizeof(u32)); in drm_ati_pcigart_init()
|
/linux/drivers/iio/health/ |
A D | afe440x.h | 139 unsigned int table_size; member 152 .table_size = ARRAY_SIZE(_table), \
|
/linux/drivers/gpu/drm/amd/pm/swsmu/ |
A D | smu_cmn.c | 888 uint32_t table_size; in smu_cmn_update_table() local 893 table_size = smu_table->tables[table_index].size; in smu_cmn_update_table() 896 memcpy(table->cpu_addr, table_data, table_size); in smu_cmn_update_table() 914 memcpy(table_data, table->cpu_addr, table_size); in smu_cmn_update_table() 950 uint32_t table_size = in smu_cmn_get_metrics_table_locked() local 970 memcpy(metrics_table, smu_table->metrics_table, table_size); in smu_cmn_get_metrics_table_locked()
|
/linux/drivers/power/supply/ |
A D | max17042_battery.c | 593 int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); in max17042_init_model() local 596 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_init_model() 602 table_size); in max17042_init_model() 604 table_size); in max17042_init_model() 610 table_size); in max17042_init_model() 621 int table_size = ARRAY_SIZE(chip->pdata->config_data->cell_char_tbl); in max17042_verify_model_lock() local 625 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_verify_model_lock() 630 table_size); in max17042_verify_model_lock() 631 for (i = 0; i < table_size; i++) in max17042_verify_model_lock()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
A D | processpptables.c | 91 uint16_t table_size = 0; in get_vce_clock_info_array_size() local 96 table_size = sizeof(uint8_t) + p->ucNumEntries * sizeof(VCEClockInfo); in get_vce_clock_info_array_size() 99 return table_size; in get_vce_clock_info_array_size() 119 uint16_t table_size = 0; in get_vce_clock_voltage_limit_table_size() local 127 return table_size; in get_vce_clock_voltage_limit_table_size() 190 uint16_t table_size = 0; in get_uvd_clock_info_array_size() local 196 table_size = sizeof(UCHAR) + in get_uvd_clock_info_array_size() 200 return table_size; in get_uvd_clock_info_array_size() 317 unsigned long table_size; in get_cac_tdp_table() local 320 table_size = sizeof(unsigned long) + sizeof(struct phm_cac_tdp_table); in get_cac_tdp_table() [all …]
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_mcg.c | 318 int table_size = dev->limits.num_mgms + dev->limits.num_amgms; in mthca_init_mcg_table() local 321 table_size, in mthca_init_mcg_table() 322 table_size - 1, in mthca_init_mcg_table()
|