/Linux-v6.6/tools/testing/selftests/netfilter/ |
D | nft_audit.sh | 46 "table=$table family=2 entries=1 op=nft_register_table" 49 "table=$table family=2 entries=1 op=nft_register_chain" 52 "table=$table family=2 entries=2 op=nft_register_chain" 57 "table=$table family=2 entries=1 op=nft_register_rule" 60 "table=$table family=2 entries=2 op=nft_register_rule" 71 "table=$table family=2 entries=6 op=nft_register_rule" 78 'table=t2 family=2 entries=500 op=nft_register_rule' 86 "table=t1 family=2 entries=4 op=nft_register_set" 89 "table=t1 family=2 entries=5 op=nft_register_set" 92 "table=t1 family=2 entries=3 op=nft_register_setelem" [all …]
|
/Linux-v6.6/drivers/net/ethernet/engleder/ |
D | tsnep_selftests.c | 357 qopt = kzalloc(struct_size(qopt, entries, 255), GFP_KERNEL); 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-v6.6/lib/ |
D | hashtable_test.c | 90 /* Both entries should have been visited exactly once. */ in hashtable_test_hash_add() 125 struct hashtable_test_entry entries[3]; in hashtable_test_hash_for_each() local 130 /* Add three entries to the hashtable. */ in hashtable_test_hash_for_each() 132 entries[i].key = i; in hashtable_test_hash_for_each() 133 entries[i].data = i + 10; in hashtable_test_hash_for_each() 134 entries[i].visited = 0; in hashtable_test_hash_for_each() 135 hash_add(hash, &entries[i].node, entries[i].key); in hashtable_test_hash_for_each() 149 KUNIT_EXPECT_EQ(test, entries[j].visited, 1); in hashtable_test_hash_for_each() 154 struct hashtable_test_entry entries[3]; in hashtable_test_hash_for_each_safe() local 160 /* Add three entries to the hashtable. */ in hashtable_test_hash_for_each_safe() [all …]
|
D | stackdepot.c | 63 unsigned long entries[]; /* Variable-sized array of frames */ member 126 unsigned long entries = 0; in stack_depot_early_init() local 145 * If stack_bucket_number_order is not set, leave entries as 0 to rely in stack_depot_early_init() 149 entries = 1UL << stack_bucket_number_order; in stack_depot_early_init() 153 entries, in stack_depot_early_init() 173 unsigned long entries; in stack_depot_init() local 186 entries = 1UL << stack_bucket_number_order; in stack_depot_init() 190 entries = nr_free_buffer_pages(); in stack_depot_init() 191 entries = roundup_pow_of_two(entries); in stack_depot_init() 194 entries >>= (scale - PAGE_SHIFT); in stack_depot_init() [all …]
|
D | list-test.c | 387 struct list_head entries[3], *cur; in list_test_list_cut_position() local 392 list_add_tail(&entries[0], &list1); in list_test_list_cut_position() 393 list_add_tail(&entries[1], &list1); in list_test_list_cut_position() 394 list_add_tail(&entries[2], &list1); in list_test_list_cut_position() 396 /* before: [list1] -> entries[0] -> entries[1] -> entries[2] */ in list_test_list_cut_position() 397 list_cut_position(&list2, &list1, &entries[1]); in list_test_list_cut_position() 398 /* after: [list2] -> entries[0] -> entries[1], [list1] -> entries[2] */ in list_test_list_cut_position() 401 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position() 408 KUNIT_EXPECT_PTR_EQ(test, cur, &entries[i]); in list_test_list_cut_position() 415 struct list_head entries[3], *cur; in list_test_list_cut_before() local [all …]
|
D | test_rhashtable.c | 31 MODULE_PARM_DESC(parm_entries, "Number of entries to add (default: 50000)"); 73 unsigned int entries; member 138 unsigned int entries) in test_rht_lookup() argument 142 for (i = 0; i < entries; i++) { in test_rht_lookup() 175 static void test_bucket_stats(struct rhashtable *ht, unsigned int entries) in test_bucket_stats() argument 201 pr_info(" Traversal complete: counted=%u, nelems=%u, entries=%d, table-jumps=%u\n", in test_bucket_stats() 202 total, atomic_read(&ht->nelems), entries, chain_len); in test_bucket_stats() 204 if (total != atomic_read(&ht->nelems) || total != entries) in test_bucket_stats() 209 unsigned int entries) in test_rhashtable() argument 218 * Insert entries into table with all keys even numbers in test_rhashtable() [all …]
|
/Linux-v6.6/kernel/ |
D | stacktrace.c | 19 * stack_trace_print - Print the entries in the stack trace 20 * @entries: Pointer to storage array 21 * @nr_entries: Number of entries in the storage array 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() 38 * stack_trace_snprint - Print the entries in the stack trace into a buffer 41 * @entries: Pointer to storage array 42 * @nr_entries: Number of entries in the storage array 47 int stack_trace_snprint(char *buf, size_t size, const unsigned long *entries, in stack_trace_snprint() argument [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega10_pptable.h | 131 UCHAR ucNumEntries; /* Number of entries. */ 132 ATOM_Vega10_State states[1]; /* Dynamically allocate entries. */ 165 UCHAR ucNumEntries; /* Number of entries. */ 166 ATOM_Vega10_GFXCLK_Dependency_Record entries[]; /* Dynamically allocate entries. */ member 171 UCHAR ucNumEntries; /* Number of entries. */ 172 ATOM_Vega10_MCLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ member 177 UCHAR ucNumEntries; /* Number of entries. */ 178 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ member 183 UCHAR ucNumEntries; /* Number of entries. */ 184 ATOM_Vega10_CLK_Dependency_Record entries[1]; /* Dynamically allocate entries. */ member [all …]
|
D | smu_helper.c | 224 vvalue = vol_table->entries[i].value; in phm_trim_voltage_table() 228 if (vvalue == table->entries[j].value) { in phm_trim_voltage_table() 235 table->entries[table->count].value = vvalue; in phm_trim_voltage_table() 236 table->entries[table->count].smio_low = in phm_trim_voltage_table() 237 vol_table->entries[i].smio_low; in phm_trim_voltage_table() 265 vol_table->entries[i].value = dep_table->entries[i].mvdd; in phm_get_svi2_mvdd_voltage_table() 266 vol_table->entries[i].smio_low = 0; in phm_get_svi2_mvdd_voltage_table() 293 vol_table->entries[i].value = dep_table->entries[i].vddci; in phm_get_svi2_vddci_voltage_table() 294 vol_table->entries[i].smio_low = 0; in phm_get_svi2_vddci_voltage_table() 321 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table() [all …]
|
D | vega10_processpptables.c | 319 (ATOM_Vega10_GFXCLK_Dependency_Record_V2 *)gfxclk_dep_table->entries; in init_over_drive_limits() 353 mm_table = kzalloc(struct_size(mm_table, entries, mm_dependency_table->ucNumEntries), in get_mm_clock_voltage_table() 361 mm_dependency_record = &mm_dependency_table->entries[i]; in get_mm_clock_voltage_table() 362 mm_table->entries[i].vddcInd = mm_dependency_record->ucVddcInd; in get_mm_clock_voltage_table() 363 mm_table->entries[i].samclock = in get_mm_clock_voltage_table() 365 mm_table->entries[i].eclk = le32_to_cpu(mm_dependency_record->ulEClk); in get_mm_clock_voltage_table() 366 mm_table->entries[i].vclk = le32_to_cpu(mm_dependency_record->ulVClk); in get_mm_clock_voltage_table() 367 mm_table->entries[i].dclk = le32_to_cpu(mm_dependency_record->ulDClk); in get_mm_clock_voltage_table() 576 clk_table = kzalloc(struct_size(clk_table, entries, clk_dep_table->ucNumEntries), in get_socclk_voltage_dependency_table() 584 clk_table->entries[i].vddInd = in get_socclk_voltage_dependency_table() [all …]
|
/Linux-v6.6/arch/powerpc/mm/book3s64/ |
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() 88 * we use @ua and @entries natural alignment to allow IOMMU pages 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() [all …]
|
/Linux-v6.6/arch/x86/kernel/cpu/ |
D | intel.c | 305 * the TLB when any changes are made to any of the page table entries. in early_init_intel() 798 { 0xb1, TLB_INST_2M_4M, 4, " TLB_INST 2M pages, 4-way, 8 entries or 4M pages, 4-way entries" }, 828 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 829 tlb_lli_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 830 if (tlb_lld_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 831 tlb_lld_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 834 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 835 tlb_lli_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() 836 if (tlb_lld_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup() 837 tlb_lld_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/ |
D | dcn315_clk_mgr.c | 248 .entries = { 296 .entries = { 333 .entries = { 380 /* skip empty entries, the smu array has no holes*/ in dcn315_build_watermark_ranges() 381 if (!bw_params->wm_table.entries[i].valid) in dcn315_build_watermark_ranges() 384 table->WatermarkRow[WM_DCFCLK][num_valid_sets].WmSetting = bw_params->wm_table.entries[i].wm_inst; in dcn315_build_watermark_ranges() 385 table->WatermarkRow[WM_DCFCLK][num_valid_sets].WmType = bw_params->wm_table.entries[i].wm_type; in dcn315_build_watermark_ranges() 396 bw_params->clk_table.entries[i - 1].dcfclk_mhz + 1; in dcn315_build_watermark_ranges() 399 bw_params->clk_table.entries[i].dcfclk_mhz; in dcn315_build_watermark_ranges() 479 …struct clk_limit_table_entry def_max = bw_params->clk_table.entries[bw_params->clk_table.num_entri… in dcn315_clk_mgr_helper_populate_bw_params() [all …]
|
/Linux-v6.6/tools/lib/api/fd/ |
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() 34 free(entries); in fdarray__grow() 38 memset(&entries[fda->nr_alloc], 0, sizeof(struct pollfd) * nr); in fdarray__grow() 42 fda->entries = entries; in fdarray__grow() 65 free(fda->entries); in fdarray__exit() 84 fda->entries[fda->nr].fd = fd; in fdarray__add() 85 fda->entries[fda->nr].events = revents; in fdarray__add() 99 entry = &from->entries[pos]; in fdarray__dup_entry_from() [all …]
|
/Linux-v6.6/kernel/events/ |
D | callchain.c | 50 struct callchain_cpus_entries *entries; in release_callchain_buffers_rcu() local 53 entries = container_of(head, struct callchain_cpus_entries, rcu_head); in release_callchain_buffers_rcu() 56 kfree(entries->cpu_entries[cpu]); in release_callchain_buffers_rcu() 58 kfree(entries); in release_callchain_buffers_rcu() 63 struct callchain_cpus_entries *entries; in release_callchain_buffers() local 65 entries = callchain_cpus_entries; in release_callchain_buffers() 67 call_rcu(&entries->rcu_head, release_callchain_buffers_rcu); in release_callchain_buffers() 74 struct callchain_cpus_entries *entries; in alloc_callchain_buffers() local 83 entries = kzalloc(size, GFP_KERNEL); in alloc_callchain_buffers() 84 if (!entries) in alloc_callchain_buffers() [all …]
|
/Linux-v6.6/tools/perf/util/ |
D | mem2node.c | 50 struct phys_entry *entries, *tmp_entries; in mem2node__init() local 62 entries = zalloc(sizeof(*entries) * max); 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 = tmp_entries; in mem2node__init() 105 entries[i].node, entries[i].start, entries[i].end); in mem2node__init() 107 phys_entry__insert(&entries[i], &map->root); in mem2node__init() [all …]
|
D | rb_resort.h | 6 * a new sort criteria, that must be present in the entries of the source 15 * fields to be present in each of the entries in the new, sorted, rb_tree. 18 * pre-calculating them from multiple entries in the original 'entry' from 19 * the rb_tree used as a source for the entries to be sorted: 72 struct rb_root entries; \ 79 struct rb_node **p = &sorted->entries.rb_node, *parent = NULL; \ 88 rb_insert_color(sorted_nd, &sorted->entries); \ 92 struct rb_root *entries) \ 96 for (nd = rb_first(entries); nd; nd = rb_next(nd)) { \ 103 static struct __name##_sorted *__name##_sorted__new(struct rb_root *entries, \ [all …]
|
D | arm64-frame-pointer-unwind-support.c | 12 struct entries { struct 25 struct entries *entries = arg; in add_entry() local 27 entries->stack[entries->length++] = entry->ip; in add_entry() 34 struct entries entries = {}; in get_leaf_frame_caller_aarch64() local 56 ret = unwind__get_entries(add_entry, &entries, thread, sample, 2, true); in get_leaf_frame_caller_aarch64() 59 if (ret || entries.length != 2) in get_leaf_frame_caller_aarch64() 62 return callchain_param.order == ORDER_CALLER ? entries.stack[0] : entries.stack[1]; in get_leaf_frame_caller_aarch64()
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
D | dcn314_clk_mgr.c | 362 .entries = { 399 .entries = { 446 /* skip empty entries, the smu array has no holes*/ in dcn314_build_watermark_ranges() 447 if (!bw_params->wm_table.entries[i].valid) in dcn314_build_watermark_ranges() 450 table->WatermarkRow[WM_DCFCLK][num_valid_sets].WmSetting = bw_params->wm_table.entries[i].wm_inst; in dcn314_build_watermark_ranges() 451 table->WatermarkRow[WM_DCFCLK][num_valid_sets].WmType = bw_params->wm_table.entries[i].wm_type; in dcn314_build_watermark_ranges() 462 bw_params->clk_table.entries[i - 1].dcfclk_mhz + 1; in dcn314_build_watermark_ranges() 465 bw_params->clk_table.entries[i].dcfclk_mhz; in dcn314_build_watermark_ranges() 575 …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() 597 /* Invalid number of entries in the table from PMFW. */ in dcn314_clk_mgr_helper_populate_bw_params() [all …]
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp_eth.c | 281 union eth_table_entry *entries; in __nfp_eth_read_ports() local 285 entries = kzalloc(NSP_ETH_TABLE_SIZE, GFP_KERNEL); in __nfp_eth_read_ports() 286 if (!entries) in __nfp_eth_read_ports() 289 ret = nfp_nsp_read_eth_table(nsp, entries, NSP_ETH_TABLE_SIZE); in __nfp_eth_read_ports() 296 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 304 nfp_err(cpp, "table entry count reported (%d) does not match entries present (%d)\n", in __nfp_eth_read_ports() 315 if (entries[i].port & NSP_ETH_PORT_LANES_MASK) in __nfp_eth_read_ports() 316 nfp_eth_port_translate(nsp, &entries[i], i, in __nfp_eth_read_ports() 325 kfree(entries); in __nfp_eth_read_ports() 330 kfree(entries); in __nfp_eth_read_ports() [all …]
|
/Linux-v6.6/tools/perf/tests/ |
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() 60 pr_debug("\nfiltering all but fda->entries[2]:"); in test__fdarray__filter() 70 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 71 fda->entries[3].revents = POLLIN; in test__fdarray__filter() 73 pr_debug("\nfiltering all but (fda->entries[0], fda->entries[3]):"); in test__fdarray__filter() 103 if (fda->entries[_idx].fd != _fd) { \ in test__fdarray__add() 104 pr_debug("\n%d: fda->entries[%d](%d) != %d!", \ in test__fdarray__add() [all …]
|
/Linux-v6.6/include/linux/ |
D | llist.h | 35 * The list entries deleted via llist_del_all can be traversed with 37 * entries can not be traversed safely before deleted from the list. 38 * The order of deleted entries is from the newest to the oldest added 103 * llist_for_each - iterate over some deleted entries of a lock-less list 105 * @node: the first entry of deleted list entries 107 * In general, some entries of the lock-less list can be traversed 111 * If being used on entries deleted from lock-less list directly, the 120 * llist_for_each_safe - iterate over some deleted entries of a lock-less list 124 * @node: the first entry of deleted list entries 126 * In general, some entries of the lock-less list can be traversed [all …]
|
/Linux-v6.6/fs/nfs_common/ |
D | nfsacl.c | 13 * four instead of three entries. 16 * the ACL_MASK and ACL_GROUP_OBJ entries may differ.) 18 * entries contain the identifiers of the owner and owning group. 20 * - ACL entries in the kernel are kept sorted in ascending order 95 int entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfsacl_encode() local 99 .array_len = encode_entries ? entries : 0, in nfsacl_encode() 110 if (entries > NFS_ACL_MAX_ENTRIES || in nfsacl_encode() 111 xdr_encode_word(buf, base, entries)) in nfsacl_encode() 122 /* Insert entries in canonical order: other orders seem in nfsacl_encode() 157 u32 entries = (acl && acl->a_count) ? max_t(int, acl->a_count, 4) : 0; in nfs_stream_encode_acl() local [all …]
|
/Linux-v6.6/arch/x86/kernel/ |
D | e820.c | 28 * the first 128 E820 memory entries in boot_params.e820_table and the remaining 29 * (if any) entries of the SETUP_E820_EXT nodes. We use this to: 83 struct e820_entry *entry = &table->entries[i]; in _e820__mapped_any() 118 struct e820_entry *entry = &e820_table->entries[i]; in __e820__mapped_all() 170 if (x >= ARRAY_SIZE(table->entries)) { in __e820__range_add() 171 pr_err("too many entries; ignoring [mem %#010llx-%#010llx]\n", in __e820__range_add() 176 table->entries[x].addr = start; in __e820__range_add() 177 table->entries[x].size = size; in __e820__range_add() 178 table->entries[x].type = type; in __e820__range_add() 210 e820_table->entries[i].addr, in e820__print_table() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/display/dc/dml/dcn321/ |
D | dcn321_fpu.c | 260 * sort_entries_with_same_bw - Sort entries sharing the same bandwidth by DCFCLK 294 …* remove_inconsistent_entries - Ensure entries with the same bandwidth have MEMCLK and FCLK monoto… 295 * and remove entries that do not follow this order 365 if (bw_params->clk_table.entries[i].dcfclk_mhz > max_clk_data.dcfclk_mhz) in build_synthetic_soc_states() 366 max_clk_data.dcfclk_mhz = bw_params->clk_table.entries[i].dcfclk_mhz; in build_synthetic_soc_states() 367 if (bw_params->clk_table.entries[i].fclk_mhz > max_clk_data.fclk_mhz) in build_synthetic_soc_states() 368 max_clk_data.fclk_mhz = bw_params->clk_table.entries[i].fclk_mhz; in build_synthetic_soc_states() 369 if (bw_params->clk_table.entries[i].memclk_mhz > max_clk_data.memclk_mhz) in build_synthetic_soc_states() 370 max_clk_data.memclk_mhz = bw_params->clk_table.entries[i].memclk_mhz; in build_synthetic_soc_states() 371 if (bw_params->clk_table.entries[i].dispclk_mhz > max_clk_data.dispclk_mhz) in build_synthetic_soc_states() [all …]
|