Home
last modified time | relevance | path

Searched refs:table_size (Results 1 – 25 of 175) sorted by relevance

1234567

/openbmc/linux/scripts/mod/
H A Dsymsearch.c26 unsigned int table_size; member
70 unsigned int table_size) in symsearch_populate() argument
76 if (table_size-- == 0) in symsearch_populate()
94 if (table_size != 0) in symsearch_populate()
116 for (unsigned int i = 1; i < table_size; i++) { in symsearch_fixup()
126 unsigned int table_size = symbol_count(elf); in symsearch_init() local
129 sizeof(struct syminfo) * table_size)); in symsearch_init()
130 elf->symsearch->table_size = table_size; in symsearch_init()
133 qsort(elf->symsearch->table, table_size, in symsearch_init()
157 unsigned int hi = elf->symsearch->table_size; in symsearch_find_nearest()
[all …]
/openbmc/qemu/block/
H A Dqcow2-cache.c42 int table_size; member
57 int idx = table_offset / c->table_size; in qcow2_cache_get_table_idx()
80 size_t mem_size = (size_t) c->table_size * num_tables; in qcow2_cache_table_release()
124 unsigned table_size) in qcow2_cache_create() argument
130 assert(is_power_of_2(table_size)); in qcow2_cache_create()
131 assert(table_size >= (1 << MIN_CLUSTER_BITS)); in qcow2_cache_create()
132 assert(table_size <= s->cluster_size); in qcow2_cache_create()
136 c->table_size = table_size; in qcow2_cache_create()
210 c->entries[i].offset, c->table_size, false); in qcow2_cache_entry_flush()
339 if (!QEMU_IS_ALIGNED(offset, c->table_size)) { in qcow2_cache_do_get()
[all …]
H A Dqed.c61 cpu->table_size = le32_to_cpu(le->table_size); in qed_header_le_to_cpu()
76 le->table_size = cpu_to_le32(cpu->table_size); in qed_header_cpu_to_le()
162 static bool qed_is_table_size_valid(uint32_t table_size) in qed_is_table_size_valid() argument
164 if (table_size < QED_MIN_TABLE_SIZE || in qed_is_table_size_valid()
165 table_size > QED_MAX_TABLE_SIZE) { in qed_is_table_size_valid()
168 if (table_size & (table_size - 1)) { in qed_is_table_size_valid()
175 uint32_t table_size) in qed_is_image_size_valid() argument
663 qed_opts->table_size = QED_DEFAULT_TABLE_SIZE; in bdrv_qed_co_create()
679 qed_opts->table_size)) in bdrv_qed_co_create()
706 .table_size = qed_opts->table_size, in bdrv_qed_co_create()
[all …]
/openbmc/linux/mm/
H A Dpage_ext.c179 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 …]
/openbmc/linux/drivers/net/wireguard/
H A Dratelimiter.c18 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()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Dmmsch_v4_0.h59 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; \
H A Dmmsch_v3_0.h46 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; \
H A Dmmsch_v1_0.h51 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; \
H A Damdgpu_gart.c118 unsigned int order = get_order(adev->gart.table_size); in amdgpu_gart_table_ram_alloc()
138 dma_addr = dma_map_page(&adev->pdev->dev, p, 0, adev->gart.table_size, in amdgpu_gart_table_ram_alloc()
159 sg->sgl->length = adev->gart.table_size; in amdgpu_gart_table_ram_alloc()
161 sg->sgl->dma_length = adev->gart.table_size; in amdgpu_gart_table_ram_alloc()
165 bp.size = adev->gart.table_size; in amdgpu_gart_table_ram_alloc()
224 unsigned int order = get_order(adev->gart.table_size); in amdgpu_gart_table_ram_free()
258 return amdgpu_bo_create_kernel(adev, adev->gart.table_size, PAGE_SIZE, in amdgpu_gart_table_vram_alloc()
/openbmc/u-boot/arch/x86/lib/
H A Dtables.c59 u32 high_table, table_size; in write_tables() local
69 table_size = rom_table_end - rom_table_start; in write_tables()
70 high_table = (u32)high_table_malloc(table_size); in write_tables()
75 cfg_tables[i].size = table_size; in write_tables()
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/
H A Dia_css_sdis2.host.c209 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()
/openbmc/linux/net/
H A Dsysctl_net.c124 struct ctl_table *table, size_t table_size) in ensure_safe_net_sysctl() argument
130 for (size_t i = 0; i < table_size && ent->procname; ent++, i++) { in ensure_safe_net_sysctl()
166 size_t table_size) in register_net_sysctl_sz() argument
172 ensure_safe_net_sysctl(net, path, table, table_size); in register_net_sysctl_sz()
175 for (count = 0 ; count < table_size && entry->procname; entry++, count++) in register_net_sysctl_sz()
/openbmc/linux/drivers/mcb/
H A Dmcb-pci.c34 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()
H A Dmcb-lpc.c26 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()
H A Dmcb-parse.c186 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()
/openbmc/linux/drivers/clk/mmp/
H A Dclk-mix.c109 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()
/openbmc/linux/net/xfrm/
H A Dxfrm_sysctl.c47 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()
/openbmc/linux/drivers/firmware/efi/
H A Defi-init.c85 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()
/openbmc/linux/arch/powerpc/mm/
H A Dinit-common.c117 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()
/openbmc/linux/drivers/clk/sunxi-ng/
H A Dccu_sdm.c37 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()
H A Dccu_sdm.h33 u32 table_size; member
45 .table_size = ARRAY_SIZE(_table), \
/openbmc/linux/drivers/acpi/apei/
H A Deinj.c256 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()
/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_gart.c75 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()
/openbmc/linux/include/linux/
H A Dsysctl.h231 const char *path, struct ctl_table *table, size_t table_size);
233 size_t table_size);
238 const char *table_name, size_t table_size);
272 size_t table_size) in register_sysctl_sz() argument
/openbmc/linux/drivers/acpi/
H A Dtables.c340 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()

1234567