| /linux/drivers/net/ethernet/engleder/ |
| H A D | tsnep_selftests.c | 357 qopt = kzalloc_flex(*qopt, entries, 255); in tsnep_test_taprio() 361 qopt->entries[i].command = TC_TAPRIO_CMD_SET_GATES; in tsnep_test_taprio() 367 qopt->entries[0].gate_mask = 0x02; in tsnep_test_taprio() 368 qopt->entries[0].interval = 200000; in tsnep_test_taprio() 369 qopt->entries[1].gate_mask = 0x03; in tsnep_test_taprio() 370 qopt->entries[1].interval = 800000; in tsnep_test_taprio() 371 qopt->entries[2].gate_mask = 0x07; in tsnep_test_taprio() 372 qopt->entries[2].interval = 240000; in tsnep_test_taprio() 373 qopt->entries[3].gate_mask = 0x01; in tsnep_test_taprio() 374 qopt->entries[3].interval = 80000; in tsnep_test_taprio() [all …]
|
| /linux/lib/ |
| H A D | stackdepot.c | 141 static void init_stack_table(unsigned long entries) in init_stack_table() argument 145 for (i = 0; i < entries; i++) in init_stack_table() 152 unsigned long entries = 0; in stack_depot_early_init() local 188 entries = 1UL << stack_bucket_number_order; in stack_depot_early_init() 192 entries, in stack_depot_early_init() 204 if (!entries) { in stack_depot_early_init() 209 entries = stack_hash_mask + 1; in stack_depot_early_init() 211 init_stack_table(entries); in stack_depot_early_init() 219 memblock_free(stack_table, entries * sizeof(struct list_head)); in stack_depot_early_init() 231 unsigned long entries; in stack_depot_init() local [all …]
|
| H A D | test_rhashtable.c | 74 unsigned int entries; member 139 unsigned int entries) in test_rht_lookup() argument 143 for (i = 0; i < entries; i++) { in test_rht_lookup() 176 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries) in test_bucket_stats() argument 203 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats() 205 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats() 210 unsigned int entries) in test_rhashtable() argument 221 pr_info(" Adding %d keys\n", entries); in test_rhashtable() 223 for (i = 0; i < entries; i++) { in test_rhashtable() 238 test_bucket_stats(ht, entries); in test_rhashtable() [all …]
|
| /linux/lib/tests/ |
| H A D | list-test.c | 391 struct list_head entries[3], *cur; in list_test_list_cut_position() local 396 list_add_tail(&entries[0], &list1); in list_test_list_cut_position() 397 list_add_tail(&entries[1], &list1); in list_test_list_cut_position() 398 list_add_tail(&entries[2], &list1); in list_test_list_cut_position() 401 list_cut_position(&list2, &list1, &entries[1]); in list_test_list_cut_position() 405 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position() 412 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position() 421 struct list_head entries[3], *cur; in list_test_list_cut_before() local 426 list_add_tail(&entries[0], &list1); in list_test_list_cut_before() 427 list_add_tail(&entries[1], &list1); in list_test_list_cut_before() [all …]
|
| /linux/arch/powerpc/mm/book3s64/ |
| H A D | iommu_api.c | 34 u64 entries; /* number of entries in hpas/hpages[] */ member 57 unsigned long entries, unsigned long dev_hpa, in mm_iommu_do_alloc() argument 66 ret = account_locked_vm(mm, entries, true); in mm_iommu_do_alloc() 70 locked_entries = entries; in mm_iommu_do_alloc() 80 mem->pageshift = __ffs(dev_hpa | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc() 91 mem->pageshift = __ffs(ua | (entries << PAGE_SHIFT)); in mm_iommu_do_alloc() 92 mem->hpas = vzalloc(array_size(entries, sizeof(mem->hpas[0]))); in mm_iommu_do_alloc() 102 chunk = min(chunk, entries); in mm_iommu_do_alloc() 103 for (entry = 0; entry < entries; entry += chunk) { in mm_iommu_do_alloc() 104 unsigned long n = min(entries - entry, chunk); in mm_iommu_do_alloc() [all …]
|
| /linux/tools/lib/api/fd/ |
| H A D | array.c | 15 fda->entries = NULL; in fdarray__init() 27 struct pollfd *entries = realloc(fda->entries, size); in fdarray__grow() local 29 if (entries == NULL) in fdarray__grow() 35 fda->entries = entries; in fdarray__grow() 39 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 43 fda->entries = entries; in fdarray__grow() 66 free(fda->entries); in fdarray__exit() [all...] |
| /linux/tools/perf/util/ |
| H A D | mem2node.c | 50 struct phys_entry *entries, *tmp_entries; in mem2node__init() local 62 entries = calloc(max, sizeof(*entries)); in mem2node__init() 63 if (!entries) in mem2node__init() 84 struct phys_entry *prev = &entries[j - 1]; in mem2node__init() 93 phys_entry__init(&entries[j++], start, bsize, n->node); in mem2node__init() 97 /* Cut unused entries, due to merging. */ in mem2node__init() 98 tmp_entries = realloc(entries, sizeof(*entries) * j); in mem2node__init() 101 entries in mem2node__init() [all...] |
| H A D | arm64-frame-pointer-unwind-support.c | 13 struct entries { 38 struct entries *entries = arg; in get_leaf_frame_caller_aarch64() 40 entries->stack[entries->length++] = entry->ip; in get_leaf_frame_caller_aarch64() 47 struct entries entries = {}; in get_leaf_frame_caller_aarch64() 70 ret = unwind__get_entries(add_entry, &entries, thread, sample, 2, true); in get_leaf_frame_caller_aarch64() 73 if (ret || entries.length != 2) 76 return callchain_param.order == ORDER_CALLER ? entries 12 struct entries { global() struct 32 struct entries *entries = arg; add_entry() local 41 struct entries entries = {}; get_leaf_frame_caller_aarch64() local [all...] |
| H A D | pstack.c | 18 void *entries[]; member 45 if (pstack->entries[i] == key) { in pstack__remove() 47 memmove(pstack->entries + i, in pstack__remove() 48 pstack->entries + i + 1, in pstack__remove() 63 pstack->entries[pstack->top++] = key; in pstack__push() 70 return pstack->entries[pstack->top - 1]; in pstack__pop()
|
| H A D | rb_resort.h | |
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp_eth.c | 294 union eth_table_entry *entries; in __nfp_eth_read_ports() local 298 entries = kzalloc(NSP_ETH_TABLE_SIZE, GFP_KERNEL); in __nfp_eth_read_ports() 299 if (!entries) in __nfp_eth_read_ports() 302 ret = nfp_nsp_read_eth_table(nsp, entries, NSP_ETH_TABLE_SIZE); in __nfp_eth_read_ports() 309 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 328 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 329 nfp_eth_port_translate(nsp, &entries[i], i, in __nfp_eth_read_ports() 338 kfree(entries); in __nfp_eth_read_ports() 343 kfree(entries); in __nfp_eth_read_ports() 349 union eth_table_entry *entries; in nfp_eth_config_start() local [all …]
|
| /linux/kernel/events/ |
| H A D | callchain.c | 52 struct callchain_cpus_entries *entries; in release_callchain_buffers_rcu() local 55 entries = container_of(head, struct callchain_cpus_entries, rcu_head); in release_callchain_buffers_rcu() 58 kfree(entries->cpu_entries[cpu]); in release_callchain_buffers_rcu() 60 kfree(entries); in release_callchain_buffers_rcu() 65 struct callchain_cpus_entries *entries; in release_callchain_buffers() local 67 entries = callchain_cpus_entries; in release_callchain_buffers() 69 call_rcu(&entries->rcu_head, release_callchain_buffers_rcu); in release_callchain_buffers() 76 struct callchain_cpus_entries *entries; in alloc_callchain_buffers() local 85 entries = kzalloc(size, GFP_KERNEL); in alloc_callchain_buffers() 86 if (!entries) in alloc_callchain_buffers() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
| H A D | dcn314_clk_mgr.c | 415 .entries = { 452 .entries = { 505 if (!bw_params->wm_table.entries[i].valid) in dcn314_build_watermark_ranges() 509 (uint8_t)bw_params->wm_table.entries[i].wm_inst; in dcn314_build_watermark_ranges() 511 (uint8_t)bw_params->wm_table.entries[i].wm_type; in dcn314_build_watermark_ranges() 522 (uint16_t)(bw_params->clk_table.entries[i - 1].dcfclk_mhz + 1); in dcn314_build_watermark_ranges() 525 (uint16_t)bw_params->clk_table.entries[i].dcfclk_mhz; in dcn314_build_watermark_ranges() 635 …struct clk_limit_table_entry def_max = bw_params->clk_table.entries[bw_params->clk_table.num_entri… in dcn314_clk_mgr_helper_populate_bw_params() 678 if (bw_params->clk_table.entries[j].dcfclk_mhz <= clock_table->DcfClocks[i]) in dcn314_clk_mgr_helper_populate_bw_params() 681 bw_params->clk_table.entries[i].phyclk_mhz = bw_params->clk_table.entries[j].phyclk_mhz; in dcn314_clk_mgr_helper_populate_bw_params() [all …]
|
| /linux/drivers/misc/vmw_vmci/ |
| H A D | vmci_handle_array.c | 22 array = kmalloc_flex(*array, entries, capacity, GFP_ATOMIC); in vmci_handle_arr_create() 48 size_t new_size = struct_size(array, entries, in vmci_handle_arr_append_entry() 62 array->entries[array->size] = handle; in vmci_handle_arr_append_entry() 78 if (vmci_handle_is_equal(array->entries[i], entry_handle)) { in vmci_handle_arr_remove_entry() 79 handle = array->entries[i]; in vmci_handle_arr_remove_entry() 81 array->entries[i] = array->entries[array->size]; in vmci_handle_arr_remove_entry() 82 array->entries[array->size] = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_entry() 99 handle = array->entries[array->size]; in vmci_handle_arr_remove_tail() 100 array->entries[array->size] = VMCI_INVALID_HANDLE; in vmci_handle_arr_remove_tail() 115 return array->entries[index]; in vmci_handle_arr_get_entry() [all …]
|
| /linux/arch/x86/xen/ |
| H A D | multicalls.c | 40 struct multicall_entry entries[MC_BATCH]; member 49 struct multicall_entry entries[MC_BATCH]; member 121 unsigned int opidx = mcdb->entries[idx].op & 0xff; in print_debug_data() 125 mcdb->entries[idx].op, b->entries[idx].result, in print_debug_data() 132 pr_cont("%lx ", mcdb->entries[idx].args[arg]); in print_debug_data() 161 memcpy(mcdb->entries, b->entries, in xen_mc_flush() 174 mc = &b->entries[0]; in xen_mc_flush() 183 if (HYPERVISOR_multicall(b->entries, b->mcidx) != 0) in xen_mc_flush() 186 if (b->entries[i].result < 0) in xen_mc_flush() 196 } else if (b->entries[i].result < 0) { in xen_mc_flush() [all …]
|
| /linux/tools/perf/trace/beauty/ |
| H A D | ioctl.c | 41 if (nr < strarray__ioctl_tty_cmd.nr_entries && strarray__ioctl_tty_cmd.entries[nr] != NULL) in ioctl__scnprintf_tty_cmd() 42 return scnprintf(bf, size, "%s", strarray__ioctl_tty_cmd.entries[nr]); in ioctl__scnprintf_tty_cmd() 52 if (nr < strarray__drm_ioctl_cmds.nr_entries && strarray__drm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_drm_cmd() 53 return scnprintf(bf, size, "DRM_%s", strarray__drm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_drm_cmd() 63 …if (nr < strarray__sndrv_pcm_ioctl_cmds.nr_entries && strarray__sndrv_pcm_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_pcm_cmd() 64 return scnprintf(bf, size, "SNDRV_PCM_%s", strarray__sndrv_pcm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_pcm_cmd() 74 …if (nr < strarray__sndrv_ctl_ioctl_cmds.nr_entries && strarray__sndrv_ctl_ioctl_cmds.entries[nr] !… in ioctl__scnprintf_sndrv_ctl_cmd() 75 return scnprintf(bf, size, "SNDRV_CTL_%s", strarray__sndrv_ctl_ioctl_cmds.entries[nr]); in ioctl__scnprintf_sndrv_ctl_cmd() 85 if (nr < strarray__kvm_ioctl_cmds.nr_entries && strarray__kvm_ioctl_cmds.entries[nr] != NULL) in ioctl__scnprintf_kvm_cmd() 86 return scnprintf(bf, size, "KVM_%s", strarray__kvm_ioctl_cmds.entries[nr]); in ioctl__scnprintf_kvm_cmd() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | legacy_dpm.c | 167 amdgpu_table->entries = kzalloc(size, GFP_KERNEL); in amdgpu_parse_clk_voltage_dep_table() 168 if (!amdgpu_table->entries) in amdgpu_parse_clk_voltage_dep_table() 171 entry = &atom_table->entries[0]; in amdgpu_parse_clk_voltage_dep_table() 173 amdgpu_table->entries[i].clk = le16_to_cpu(entry->usClockLow) | in amdgpu_parse_clk_voltage_dep_table() 175 amdgpu_table->entries[i].v = le16_to_cpu(entry->usVoltage); in amdgpu_parse_clk_voltage_dep_table() 286 le16_to_cpu(clk_v->entries[0].usSclkLow) | in amdgpu_parse_extended_power_table() 287 (clk_v->entries[0].ucSclkHigh << 16); in amdgpu_parse_extended_power_table() 289 le16_to_cpu(clk_v->entries[0].usMclkLow) | in amdgpu_parse_extended_power_table() 290 (clk_v->entries[0].ucMclkHigh << 16); in amdgpu_parse_extended_power_table() 292 le16_to_cpu(clk_v->entries[0].usVddc); in amdgpu_parse_extended_power_table() [all …]
|
| /linux/drivers/tty/vt/ |
| H A D | gen_ucs_fallback_table.py | 235 for page, entries in page_groups.items(): 238 while i < len(entries): 239 start_offset, fallback = entries[i] 243 while (j < len(entries) and 244 entries[j][0] == entries[j-1][0] + 1 and # consecutive offsets 245 entries[j][1] == fallback): # same fallback 249 end_offset = entries[j-1][0] 259 compressed_entries.append(entries[k]) 286 total_compressed_entries = sum(len(entries) for entries in compressed_pages.values()) 316 for page, entries in sorted_pages: [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | port.c | 68 table->entries[i] = 0; in mlx4_init_mac_table() 82 table->entries[i] = 0; in mlx4_init_vlan_table() 105 if (index < 0 || index >= table->max || !table->entries[index]) { in validate_index() 120 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) in find_index() 128 __be64 *entries) in mlx4_set_port_mac_table() argument 138 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE); in mlx4_set_port_mac_table() 196 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))) in __mlx4_register_mac() 198 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i])))) in __mlx4_register_mac() 223 ((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[index_at_dup_port])))) in __mlx4_register_mac() 242 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { in __mlx4_register_mac() [all …]
|
| /linux/kernel/ |
| H A D | stacktrace.c | 24 void stack_trace_print(const unsigned long *entries, unsigned int nr_entries, in stack_trace_print() argument 29 if (WARN_ON(!entries)) in stack_trace_print() 33 printk("%*c%pS\n", 1 + spaces, ' ', (void *)entries[i]); in stack_trace_print() 47 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument 52 if (WARN_ON(!entries)) in stack_trace_snprint() 57 (void *)entries[i]); in stack_trace_snprint() 272 .entries = store, in stack_trace_save() 296 .entries = store, in stack_trace_save_tsk() 320 .entries = store, in stack_trace_save_regs() 346 .entries = store, in stack_trace_save_tsk_reliable() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | fdarray.c | 14 fda->entries[fd].fd = fda->nr - fd; in fdarray__init_revents() 15 fda->entries[fd].events = revents; in fdarray__init_revents() 16 fda->entries[fd].revents = revents; in fdarray__init_revents() 58 fda->entries[2].revents = POLLIN; in test__fdarray__filter() 70 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 71 fda->entries[3].revents = POLLIN; in test__fdarray__filter() 103 if (fda->entries[_idx].fd != _fd) { \ in test__fdarray__add() 105 __LINE__, _idx, fda->entries[1].fd, _fd); \ in test__fdarray__add() 108 if (fda->entries[_idx].events != (_revents)) { \ in test__fdarray__add() 110 __LINE__, _idx, fda->entries[_idx].fd, _revents); \ in test__fdarray__add() [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| H A D | sja1105_tas.c | 49 if (!list_empty(&gating_cfg->entries)) { in sja1105_tas_set_runtime_params() 185 kfree(table->entries); in sja1105_init_scheduling() 192 kfree(table->entries); in sja1105_init_scheduling() 199 kfree(table->entries); in sja1105_init_scheduling() 206 kfree(table->entries); in sja1105_init_scheduling() 218 if (!list_empty(&gating_cfg->entries)) { in sja1105_init_scheduling() 231 table->entries = kcalloc(num_entries, table->ops->unpacked_entry_size, in sja1105_init_scheduling() 233 if (!table->entries) in sja1105_init_scheduling() 236 schedule = table->entries; in sja1105_init_scheduling() 240 table->entries = kcalloc(SJA1105_MAX_SCHEDULE_ENTRY_POINTS_PARAMS_COUNT, in sja1105_init_scheduling() [all …]
|
| /linux/rust/syn/ |
| H A D | buffer.rs | 37 entries: Box<[Entry]>, field 41 fn recursive_new(entries: &mut Vec<Entry>, stream: TokenStream) { in recursive_new() 44 TokenTree::Ident(ident) => entries.push(Entry::Ident(ident)), in recursive_new() 45 TokenTree::Punct(punct) => entries.push(Entry::Punct(punct)), in recursive_new() 46 TokenTree::Literal(literal) => entries.push(Entry::Literal(literal)), in recursive_new() 48 let group_start_index = entries.len(); in recursive_new() 49 entries.push(Entry::End(0, 0)); // we replace this below in recursive_new() 50 Self::recursive_new(entries, group.stream()); in recursive_new() 51 let group_end_index = entries.len(); in recursive_new() 53 entries.push(Entry::End( in recursive_new() [all …]
|
| /linux/mm/kmsan/ |
| H A D | report.c | 88 unsigned long *entries = NULL, *chained_entries = NULL; in kmsan_print_origin() local 100 nr_entries = stack_depot_fetch(origin, &entries); in kmsan_print_origin() 102 magic = nr_entries ? entries[0] : 0; in kmsan_print_origin() 104 descr = (char *)entries[1]; in kmsan_print_origin() 105 pc1 = (void *)entries[2]; in kmsan_print_origin() 106 pc2 = (void *)entries[3]; in kmsan_print_origin() 122 head = entries[1]; in kmsan_print_origin() 123 origin = entries[2]; in kmsan_print_origin() 140 skipnr = get_stack_skipnr(entries, nr_entries); in kmsan_print_origin() 141 stack_trace_print(entries + skipnr, nr_entries - skipnr, in kmsan_print_origin()
|
| /linux/tools/testing/selftests/kvm/s390/ |
| H A D | irq_routing.c | 43 routing->entries[0] = ue; in test() 44 routing->entries[0].u.adapter.summary_addr = (uintptr_t)mem; in test() 45 routing->entries[0].u.adapter.ind_addr = (uintptr_t)mem; in test() 47 routing->entries[0].u.adapter.summary_offset = 4096 * 8; in test() 51 routing->entries[0].u.adapter.summary_offset -= 4; in test() 55 routing->entries[0].u.adapter.ind_offset = 4096 * 8; in test() 59 routing->entries[0].u.adapter.ind_offset -= 4; in test()
|