/linux-6.6.21/mm/ |
D | page_ext.c | 179 unsigned long table_size; in alloc_node_page_ext() local 195 table_size = page_ext_size * nr_pages; in alloc_node_page_ext() 198 table_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS), in alloc_node_page_ext() 203 total_usage += table_size; in alloc_node_page_ext() 272 unsigned long table_size; in init_section_page_ext() local 279 table_size = page_ext_size * PAGES_PER_SECTION; in init_section_page_ext() 280 base = alloc_page_ext(table_size, nid); in init_section_page_ext() 300 total_usage += table_size; in init_section_page_ext() 310 size_t table_size; in free_page_ext() local 312 table_size = page_ext_size * PAGES_PER_SECTION; in free_page_ext() [all …]
|
/linux-6.6.21/drivers/net/wireguard/ |
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-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | mmsch_v3_0.h | 46 uint32_t table_size; member 100 table_size += size_dw; \ 110 table_size += size_dw; \ 121 table_size += size_dw; \ 129 table_size += size_dw; \
|
D | mmsch_v4_0.h | 59 uint32_t table_size; member 114 table_size += size_dw; \ 124 table_size += size_dw; \ 135 table_size += size_dw; \ 143 table_size += size_dw; \
|
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; \
|
D | amdgpu_gart.c | 117 unsigned int order = get_order(adev->gart.table_size); in amdgpu_gart_table_ram_alloc() 137 dma_addr = dma_map_page(&adev->pdev->dev, p, 0, adev->gart.table_size, in amdgpu_gart_table_ram_alloc() 158 sg->sgl->length = adev->gart.table_size; in amdgpu_gart_table_ram_alloc() 160 sg->sgl->dma_length = adev->gart.table_size; in amdgpu_gart_table_ram_alloc() 164 bp.size = adev->gart.table_size; in amdgpu_gart_table_ram_alloc() 223 unsigned int order = get_order(adev->gart.table_size); in amdgpu_gart_table_ram_free() 257 return amdgpu_bo_create_kernel(adev, adev->gart.table_size, PAGE_SIZE, in amdgpu_gart_table_vram_alloc()
|
/linux-6.6.21/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
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-6.6.21/drivers/mcb/ |
D | mcb-pci.c | 34 int ret, table_size; in mcb_pci_probe() local 93 table_size = ret; in mcb_pci_probe() 95 if (table_size < CHAM_HEADER_SIZE) { in mcb_pci_probe() 102 table_size, in mcb_pci_probe() 110 priv->base = devm_ioremap(&pdev->dev, priv->mapbase, table_size); in mcb_pci_probe()
|
D | mcb-lpc.c | 26 int ret = 0, table_size; in mcb_lpc_probe() local 64 table_size = ret; in mcb_lpc_probe() 66 if (table_size < CHAM_HEADER_SIZE) { in mcb_lpc_probe() 73 table_size, in mcb_lpc_probe() 81 priv->base = devm_ioremap(&pdev->dev, priv->mem->start, table_size); in mcb_lpc_probe()
|
D | mcb-parse.c | 186 u32 table_size; in chameleon_parse_cells() local 246 table_size = p - base; in chameleon_parse_cells() 247 pr_debug("%d cell(s) found. Chameleon table size: 0x%04x bytes\n", num_cells, table_size); in chameleon_parse_cells() 250 return table_size; in chameleon_parse_cells()
|
/linux-6.6.21/net/ |
D | sysctl_net.c | 125 struct ctl_table *table, size_t table_size) in ensure_safe_net_sysctl() argument 131 for (size_t i = 0; i < table_size && ent->procname; ent++, i++) { in ensure_safe_net_sysctl() 167 size_t table_size) in register_net_sysctl_sz() argument 173 ensure_safe_net_sysctl(net, path, table, table_size); in register_net_sysctl_sz() 176 for (count = 0 ; count < table_size && entry->procname; entry++, count++) in register_net_sysctl_sz()
|
/linux-6.6.21/drivers/clk/mmp/ |
D | clk-mix.c | 109 unsigned int table_size) in _filter_clk_table() argument 118 for (i = 0; i < table_size; i++) { in _filter_clk_table() 220 for (i = 0; i < mix->table_size; i++) { in mmp_clk_mix_determine_rate() 353 for (i = 0; i < mix->table_size; i++) { in mmp_clk_set_parent() 360 if (i < mix->table_size) { in mmp_clk_set_parent() 386 for (i = 0; i < mix->table_size; i++) { in mmp_clk_set_rate() 397 if (i < mix->table_size) in mmp_clk_set_rate() 424 _filter_clk_table(mix, mix->table, mix->table_size); in mmp_clk_mix_init() 464 table_bytes = sizeof(*config->table) * config->table_size; in mmp_clk_register_mix() 469 mix->table_size = config->table_size; in mmp_clk_register_mix()
|
/linux-6.6.21/net/xfrm/ |
D | xfrm_sysctl.c | 47 size_t table_size = ARRAY_SIZE(xfrm_table); in xfrm_sysctl_init() local 62 table_size = 0; in xfrm_sysctl_init() 66 table_size); in xfrm_sysctl_init()
|
/linux-6.6.21/drivers/firmware/efi/ |
D | efi-init.c | 85 size_t table_size; in uefi_init() local 107 table_size = sizeof(efi_config_table_t) * systab->nr_tables; in uefi_init() 109 table_size); in uefi_init() 118 early_memunmap(config_tables, table_size); in uefi_init()
|
/linux-6.6.21/arch/powerpc/mm/ |
D | init-common.c | 117 unsigned long table_size = sizeof(void *) << shift; in pgtable_cache_add() local 118 unsigned long align = table_size; in pgtable_cache_add() 143 new = kmem_cache_create(name, table_size, align, 0, ctor(shift)); in pgtable_cache_add()
|
/linux-6.6.21/drivers/clk/sunxi-ng/ |
D | ccu_sdm.c | 37 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_enable() 102 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_has_rate() 131 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_read_rate() 151 for (i = 0; i < sdm->table_size; i++) in ccu_sdm_helper_get_factors()
|
D | ccu_sdm.h | 33 u32 table_size; member 45 .table_size = ARRAY_SIZE(_table), \
|
/linux-6.6.21/drivers/acpi/apei/ |
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() 394 table_size - sizeof(*trigger_tab)); in __einj_error_trigger()
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
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-6.6.21/include/linux/ |
D | sysctl.h | 232 const char *path, struct ctl_table *table, size_t table_size); 234 size_t table_size); 239 const char *table_name, size_t table_size); 273 size_t table_size) in register_sysctl_sz() argument
|
/linux-6.6.21/drivers/acpi/ |
D | tables.c | 340 char *id, unsigned long table_size, in acpi_parse_entries_array() argument 356 ((unsigned long)table_header + table_size); in acpi_parse_entries_array() 402 char *id, unsigned long table_size, struct acpi_subtable_proc *proc, in acpi_table_parse_entries_array() argument 415 if (!table_size) in acpi_table_parse_entries_array() 427 count = acpi_parse_entries_array(id, table_size, table_header, in acpi_table_parse_entries_array() 435 char *id, unsigned long table_size, int entry_id, in __acpi_table_parse_entries() argument 446 return acpi_table_parse_entries_array(id, table_size, &proc, 1, in __acpi_table_parse_entries() 460 int __init acpi_table_parse_entries(char *id, unsigned long table_size, in acpi_table_parse_entries() argument 465 return __acpi_table_parse_entries(id, table_size, entry_id, handler, in acpi_table_parse_entries()
|
/linux-6.6.21/drivers/pci/controller/ |
D | pcie-mediatek-gen3.c | 251 resource_size_t table_size; in mtk_pcie_set_trans_table() local 259 table_size = BIT(fls(remaining) - 1); in mtk_pcie_set_trans_table() 263 table_size = min(table_size, addr_align); in mtk_pcie_set_trans_table() 267 if (table_size < 0x1000) { in mtk_pcie_set_trans_table() 269 (unsigned long long)table_size); in mtk_pcie_set_trans_table() 274 writel_relaxed(lower_32_bits(cpu_addr) | PCIE_ATR_SIZE(fls(table_size) - 1), table); in mtk_pcie_set_trans_table() 291 (unsigned long long)pci_addr, (unsigned long long)table_size); in mtk_pcie_set_trans_table() 293 cpu_addr += table_size; in mtk_pcie_set_trans_table() 294 pci_addr += table_size; in mtk_pcie_set_trans_table() 295 remaining -= table_size; in mtk_pcie_set_trans_table()
|
/linux-6.6.21/drivers/gpu/drm/i915/display/ |
D | intel_bios.c | 209 if (ptrs->panel_name.table_size) in lfp_data_min_size() 236 fp_timing_size = ptrs->ptr[0].fp_timing.table_size; in validate_lfp_data_ptrs() 237 dvo_timing_size = ptrs->ptr[0].dvo_timing.table_size; in validate_lfp_data_ptrs() 238 panel_pnp_id_size = ptrs->ptr[0].panel_pnp_id.table_size; in validate_lfp_data_ptrs() 239 panel_name_size = ptrs->panel_name.table_size; in validate_lfp_data_ptrs() 258 if (ptrs->ptr[i].fp_timing.table_size != fp_timing_size || in validate_lfp_data_ptrs() 259 ptrs->ptr[i].dvo_timing.table_size != dvo_timing_size || in validate_lfp_data_ptrs() 260 ptrs->ptr[i].panel_pnp_id.table_size != panel_pnp_id_size) in validate_lfp_data_ptrs() 329 if (ptrs->panel_name.table_size) { in fixup_lfp_data_ptrs() 340 int table_size, int total_size) in make_lfp_data_ptr() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | legacy.c | 81 int table_size; in esw_create_legacy_fdb_table() local 108 table_size = fdb->max_fte; in esw_create_legacy_fdb_table() 117 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 3); in esw_create_legacy_fdb_table() 130 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, table_size - 2); in esw_create_legacy_fdb_table() 131 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 2); in esw_create_legacy_fdb_table() 149 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, table_size - 1); in esw_create_legacy_fdb_table() 150 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, table_size - 1); in esw_create_legacy_fdb_table()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | egress_ofld.c | 188 int table_size = 0; in esw_acl_egress_ofld_setup() local 201 table_size++; in esw_acl_egress_ofld_setup() 203 table_size++; in esw_acl_egress_ofld_setup() 205 MLX5_FLOW_NAMESPACE_ESW_EGRESS, table_size); in esw_acl_egress_ofld_setup()
|