/kernel/linux/linux-5.10/arch/mips/include/asm/netlogic/xlp-hal/ |
D | iomap.h | 50 #define XLP_IO_DEV(node, dev) ((dev) + (node) * 8) argument 53 #define XLP_HDR_OFFSET(node, bus, dev, fn) \ argument 54 XLP_IO_PCI_OFFSET(bus, XLP_IO_DEV(node, dev), fn) 56 #define XLP_IO_BRIDGE_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 0) argument 58 #define XLP_IO_CIC0_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 1) argument 59 #define XLP_IO_CIC1_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 2) argument 60 #define XLP_IO_CIC2_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 3) argument 61 #define XLP_IO_PIC_OFFSET(node) XLP_HDR_OFFSET(node, 0, 0, 4) argument 63 #define XLP_IO_PCIE_OFFSET(node, i) XLP_HDR_OFFSET(node, 0, 1, i) argument 64 #define XLP_IO_PCIE0_OFFSET(node) XLP_HDR_OFFSET(node, 0, 1, 0) argument [all …]
|
/kernel/linux/linux-5.10/fs/hfs/ |
D | bnode.c | 18 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument 26 off += node->page_offset; in hfs_bnode_read() 31 if (pagenum >= node->tree->pages_per_bnode) in hfs_bnode_read() 33 page = node->page[pagenum]; in hfs_bnode_read() 45 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 49 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 53 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 57 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 61 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 66 tree = node->tree; in hfs_bnode_read_key() [all …]
|
D | brec.c | 19 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 24 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 25 hfs_bnode_read(node, retval, dataoff, 4); in hfs_brec_lenoff() 31 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 35 if (node->type != HFS_NODE_INDEX && node->type != HFS_NODE_LEAF) in hfs_brec_keylen() 38 if ((node->type == HFS_NODE_INDEX) && in hfs_brec_keylen() 39 !(node->tree->attributes & HFS_TREE_VARIDXKEYS)) { in hfs_brec_keylen() 40 if (node->tree->attributes & HFS_TREE_BIGKEYS) in hfs_brec_keylen() 41 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() 43 retval = node->tree->max_key_len + 1; in hfs_brec_keylen() [all …]
|
/kernel/linux/linux-5.10/scripts/dtc/ |
D | checks.c | 29 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node); 62 struct node *node, in check_msg() argument 76 else if (node && node->srcpos) in check_msg() 77 pos = node->srcpos; in check_msg() 92 if (node) { in check_msg() 94 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 96 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg() 106 pos = node->srcpos; in check_msg() 119 #define FAIL(c, dti, node, ...) \ argument 123 check_msg((c), dti, node, NULL, __VA_ARGS__); \ [all …]
|
D | livetree.c | 88 struct node *build_node(struct property *proplist, struct node *children, in build_node() 91 struct node *new = xmalloc(sizeof(*new)); in build_node() 92 struct node *child; in build_node() 107 struct node *build_node_delete(struct srcpos *srcpos) in build_node_delete() 109 struct node *new = xmalloc(sizeof(*new)); in build_node_delete() 119 struct node *name_node(struct node *node, char *name) in name_node() argument 121 assert(node->name == NULL); in name_node() 123 node->name = name; in name_node() 125 return node; in name_node() 128 struct node *omit_node_if_unused(struct node *node) in omit_node_if_unused() argument [all …]
|
/kernel/linux/linux-5.10/scripts/gdb/linux/ |
D | rbtree.py | 15 node = root.address.cast(rb_root_type.get_type().pointer()) 19 node = root['rb_node'] 20 if node == 0: 23 while node['rb_left']: 24 node = node['rb_left'] 26 return node 31 node = root.address.cast(rb_root_type.get_type().pointer()) 35 node = root['rb_node'] 36 if node == 0: 39 while node['rb_right']: [all …]
|
/kernel/linux/linux-5.10/kernel/gcov/ |
D | fs.c | 145 static struct gcov_info *get_node_info(struct gcov_node *node) in get_node_info() argument 147 if (node->num_loaded > 0) in get_node_info() 148 return node->loaded_info[0]; in get_node_info() 150 return node->unloaded_info; in get_node_info() 157 static struct gcov_info *get_accumulated_info(struct gcov_node *node) in get_accumulated_info() argument 162 if (node->unloaded_info) in get_accumulated_info() 163 info = gcov_info_dup(node->unloaded_info); in get_accumulated_info() 165 info = gcov_info_dup(node->loaded_info[i++]); in get_accumulated_info() 168 for (; i < node->num_loaded; i++) in get_accumulated_info() 169 gcov_info_add(info, node->loaded_info[i]); in get_accumulated_info() [all …]
|
/kernel/linux/linux-5.10/fs/hfsplus/ |
D | bnode.c | 22 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument 27 off += node->page_offset; in hfs_bnode_read() 28 pagep = node->page + (off >> PAGE_SHIFT); in hfs_bnode_read() 43 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 47 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 51 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 55 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 59 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 64 tree = node->tree; in hfs_bnode_read_key() 65 if (node->type == HFS_NODE_LEAF || in hfs_bnode_read_key() [all …]
|
D | brec.c | 20 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 25 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 26 hfs_bnode_read(node, retval, dataoff, 4); in hfs_brec_lenoff() 32 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 36 if (node->type != HFS_NODE_INDEX && node->type != HFS_NODE_LEAF) in hfs_brec_keylen() 39 if ((node->type == HFS_NODE_INDEX) && in hfs_brec_keylen() 40 !(node->tree->attributes & HFS_TREE_VARIDXKEYS) && in hfs_brec_keylen() 41 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen() 42 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() 44 recoff = hfs_bnode_read_u16(node, in hfs_brec_keylen() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | radix-tree.c | 98 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, in tag_set() argument 101 __set_bit(offset, node->tags[tag]); in tag_set() 104 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, in tag_clear() argument 107 __clear_bit(offset, node->tags[tag]); in tag_clear() 110 static inline int tag_get(const struct radix_tree_node *node, unsigned int tag, in tag_get() argument 113 return test_bit(offset, node->tags[tag]); in tag_get() 150 static inline int any_tag_set(const struct radix_tree_node *node, in any_tag_set() argument 155 if (node->tags[tag][idx]) in any_tag_set() 161 static inline void all_tag_set(struct radix_tree_node *node, unsigned int tag) in all_tag_set() argument 163 bitmap_fill(node->tags[tag], RADIX_TREE_MAP_SIZE); in all_tag_set() [all …]
|
D | bootconfig.c | 65 int __init xbc_node_index(struct xbc_node *node) in xbc_node_index() argument 67 return node - &xbc_nodes[0]; in xbc_node_index() 77 struct xbc_node * __init xbc_node_get_parent(struct xbc_node *node) in xbc_node_get_parent() argument 79 return node->parent == XBC_NODE_MAX ? NULL : &xbc_nodes[node->parent]; in xbc_node_get_parent() 89 struct xbc_node * __init xbc_node_get_child(struct xbc_node *node) in xbc_node_get_child() argument 91 return node->child ? &xbc_nodes[node->child] : NULL; in xbc_node_get_child() 103 struct xbc_node * __init xbc_node_get_next(struct xbc_node *node) in xbc_node_get_next() argument 105 return node->next ? &xbc_nodes[node->next] : NULL; in xbc_node_get_next() 115 const char * __init xbc_node_get_data(struct xbc_node *node) in xbc_node_get_data() argument 117 int offset = node->data & ~XBC_VALUE; in xbc_node_get_data() [all …]
|
D | btree.c | 95 unsigned long *node; in btree_node_alloc() local 97 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 98 if (likely(node)) in btree_node_alloc() 99 memset(node, 0, NODESIZE); in btree_node_alloc() 100 return node; in btree_node_alloc() 148 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument 150 return &node[n * geo->keylen]; in bkey() 153 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument 155 return (void *)node[geo->no_longs + n]; in bval() 158 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | allowedips.c | 23 static void copy_and_assign_cidr(struct allowedips_node *node, const u8 *src, in copy_and_assign_cidr() argument 26 node->cidr = cidr; in copy_and_assign_cidr() 27 node->bit_at_a = cidr / 8U; in copy_and_assign_cidr() 29 node->bit_at_a ^= (bits / 8U - 1U) % 8U; in copy_and_assign_cidr() 31 node->bit_at_b = 7U - (cidr % 8U); in copy_and_assign_cidr() 32 node->bitlen = bits; in copy_and_assign_cidr() 33 memcpy(node->bits, src, bits / 8U); in copy_and_assign_cidr() 36 static inline u8 choose(struct allowedips_node *node, const u8 *key) in choose() argument 38 return (key[node->bit_at_a] >> node->bit_at_b) & 1; in choose() 58 struct allowedips_node *node, *stack[MAX_ALLOWEDIPS_DEPTH] = { in root_free_rcu() local [all …]
|
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
D | connection.c | 81 body->case_sensitive = conn_impl->node->sbi->s_case_sensitive; in hs_fill_case_sense_data() 88 __u8 sensitive = conn_impl->node->sbi->s_case_sensitive ? 1 : 0; in hs_parse_case_sense_data() 111 body->features = cpu_to_le64(conn_impl->node->sbi->s_features); in hs_fill_feature_data() 125 conn_impl->node->features = le64_to_cpu(body->features); in hs_parse_feature_data() 286 data_len, conn_impl->node->device_id); in hs_proc_msg_data() 295 req_len, data_len, conn_impl->node->device_id); in hs_proc_msg_data() 306 ops, data_len, conn_impl->node->device_id, hs_req->len); in hs_proc_msg_data() 409 static int hmdfs_node_waiting_evt_sum(const struct hmdfs_peer *node) in hmdfs_node_waiting_evt_sum() argument 415 sum += node->waiting_evt[i]; in hmdfs_node_waiting_evt_sum() 420 static int hmdfs_update_node_waiting_evt(struct hmdfs_peer *node, int evt, in hmdfs_update_node_waiting_evt() argument [all …]
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | bpf_lru_list.c | 42 static bool bpf_lru_node_is_ref(const struct bpf_lru_node *node) in bpf_lru_node_is_ref() argument 44 return READ_ONCE(node->ref); in bpf_lru_node_is_ref() 47 static void bpf_lru_node_clear_ref(struct bpf_lru_node *node) in bpf_lru_node_clear_ref() argument 49 WRITE_ONCE(node->ref, 0); in bpf_lru_node_clear_ref() 67 struct bpf_lru_node *node, in __bpf_lru_node_move_to_free() argument 71 if (WARN_ON_ONCE(IS_LOCAL_LIST_TYPE(node->type))) in __bpf_lru_node_move_to_free() 77 if (&node->list == l->next_inactive_rotation) in __bpf_lru_node_move_to_free() 80 bpf_lru_list_count_dec(l, node->type); in __bpf_lru_node_move_to_free() 82 node->type = tgt_free_type; in __bpf_lru_node_move_to_free() 83 list_move(&node->list, free_list); in __bpf_lru_node_move_to_free() [all …]
|
D | lpm_trie.c | 165 const struct lpm_trie_node *node, in longest_prefix_match() argument 168 u32 limit = min(node->prefixlen, key->prefixlen); in longest_prefix_match() 180 u64 diff = be64_to_cpu(*(__be64 *)node->data ^ in longest_prefix_match() 193 u32 diff = be32_to_cpu(*(__be32 *)&node->data[i] ^ in longest_prefix_match() 205 u16 diff = be16_to_cpu(*(__be16 *)&node->data[i] ^ in longest_prefix_match() 217 prefixlen += 8 - fls(node->data[i] ^ key->data[i]); in longest_prefix_match() 230 struct lpm_trie_node *node, *found = NULL; in trie_lookup_elem() local 235 for (node = rcu_dereference(trie->root); node;) { in trie_lookup_elem() 243 matchlen = longest_prefix_match(trie, node, key); in trie_lookup_elem() 245 found = node; in trie_lookup_elem() [all …]
|
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/ |
D | zlist.c | 25 static inline void zlist_node_lock(struct zlist_node *node) in zlist_node_lock() argument 27 bit_spin_lock(ZLIST_LOCK_BIT, (unsigned long *)node); in zlist_node_lock() 30 static inline void zlist_node_unlock(struct zlist_node *node) in zlist_node_unlock() argument 32 bit_spin_unlock(ZLIST_LOCK_BIT, (unsigned long *)node); in zlist_node_unlock() 37 struct zlist_node *prev, struct zlist_node *node, in zlist_before_add_check() argument 42 assert(idx2node(node->prev, tab) == node); in zlist_before_add_check() 43 assert(idx2node(node->next, tab) == node); in zlist_before_add_check() 47 struct zlist_node *prev, struct zlist_node *node, in zlist_after_add_check() argument 50 assert(idx2node(prev->next, tab) == node); in zlist_after_add_check() 51 assert(idx2node(next->prev, tab) == node); in zlist_after_add_check() [all …]
|
/kernel/linux/linux-5.10/net/hsr/ |
D | hsr_framereg.c | 43 struct hsr_node *node; in hsr_addr_is_self() local 45 node = list_first_or_null_rcu(&hsr->self_node_db, struct hsr_node, in hsr_addr_is_self() 47 if (!node) { in hsr_addr_is_self() 52 if (ether_addr_equal(addr, node->macaddress_A)) in hsr_addr_is_self() 54 if (ether_addr_equal(addr, node->macaddress_B)) in hsr_addr_is_self() 65 struct hsr_node *node; in find_node_by_addr_A() local 67 list_for_each_entry_rcu(node, node_db, mac_list) { in find_node_by_addr_A() 68 if (ether_addr_equal(node->macaddress_A, addr)) in find_node_by_addr_A() 69 return node; in find_node_by_addr_A() 83 struct hsr_node *node, *oldnode; in hsr_create_self_node() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_mm.c | 107 static noinline void save_stack(struct drm_mm_node *node) in save_stack() argument 115 node->stack = stack_depot_save(entries, n, GFP_NOWAIT); in save_stack() 120 struct drm_mm_node *node; in show_leaks() local 129 list_for_each_entry(node, drm_mm_nodes(mm), node_list) { in show_leaks() 130 if (!node->stack) { in show_leaks() 132 node->start, node->size); in show_leaks() 136 nr_entries = stack_depot_fetch(node->stack, &entries); in show_leaks() 139 node->start, node->size, buf); in show_leaks() 148 static void save_stack(struct drm_mm_node *node) { } in save_stack() argument 152 #define START(node) ((node)->start) argument [all …]
|
/kernel/linux/linux-5.10/arch/ia64/mm/ |
D | discontig.c | 54 #define NODEDATA_ALIGN(addr, node) \ argument 56 (((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1))) 71 int node) in build_node_maps() argument 78 if (!mem_data[node].min_pfn) { in build_node_maps() 79 mem_data[node].min_pfn = spfn; in build_node_maps() 80 mem_data[node].max_pfn = epfn; in build_node_maps() 82 mem_data[node].min_pfn = min(spfn, mem_data[node].min_pfn); in build_node_maps() 83 mem_data[node].max_pfn = max(epfn, mem_data[node].max_pfn); in build_node_maps() 97 static int early_nr_cpus_node(int node) in early_nr_cpus_node() argument 102 if (node == node_cpuid[cpu].nid) in early_nr_cpus_node() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/ |
D | intel_gt_buffer_pool.c | 34 static void node_free(struct intel_gt_buffer_pool_node *node) in node_free() argument 36 i915_gem_object_put(node->obj); in node_free() 37 i915_active_fini(&node->active); in node_free() 38 kfree_rcu(node, rcu); in node_free() 43 struct intel_gt_buffer_pool_node *node, *stale = NULL; in pool_free_older_than() local 61 node = list_entry(pos, typeof(*node), link); in pool_free_older_than() 63 age = READ_ONCE(node->age); in pool_free_older_than() 68 if (!xchg(&node->age, 0)) in pool_free_older_than() 71 node->free = stale; in pool_free_older_than() 72 stale = node; in pool_free_older_than() [all …]
|
/kernel/linux/linux-5.10/tools/lib/ |
D | rbtree.c | 85 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument 88 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() 100 rb_set_parent_color(node, NULL, RB_BLACK); in __rb_insert() 133 node = gparent; in __rb_insert() 134 parent = rb_parent(node); in __rb_insert() 135 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() 140 if (node == tmp) { in __rb_insert() 154 tmp = node->rb_left; in __rb_insert() 156 WRITE_ONCE(node->rb_left, parent); in __rb_insert() 160 rb_set_parent_color(parent, node, RB_RED); in __rb_insert() [all …]
|
/kernel/linux/linux-5.10/drivers/base/test/ |
D | property-entry-test.c | 20 struct fwnode_handle *node; in pe_test_uints() local 27 node = fwnode_create_software_node(entries, NULL); in pe_test_uints() 28 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, node); in pe_test_uints() 30 error = fwnode_property_read_u8(node, "prop-u8", &val_u8); in pe_test_uints() 34 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 1); in pe_test_uints() 38 error = fwnode_property_read_u8_array(node, "prop-u8", array_u8, 2); in pe_test_uints() 41 error = fwnode_property_read_u8(node, "no-prop-u8", &val_u8); in pe_test_uints() 44 error = fwnode_property_read_u8_array(node, "no-prop-u8", array_u8, 1); in pe_test_uints() 47 error = fwnode_property_read_u16(node, "prop-u16", &val_u16); in pe_test_uints() 51 error = fwnode_property_read_u16_array(node, "prop-u16", array_u16, 1); in pe_test_uints() [all …]
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | hists_output.c | 97 struct rb_node *node; in del_hist_entries() local 107 node = rb_first_cached(root_out); in del_hist_entries() 109 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 110 rb_erase_cached(node, root_out); in del_hist_entries() 131 struct rb_node *node; in test1() local 166 node = rb_first_cached(root); in test1() 167 he = rb_entry(node, struct hist_entry, rb_node); in test1() 172 node = rb_next(node); in test1() 173 he = rb_entry(node, struct hist_entry, rb_node); in test1() 178 node = rb_next(node); in test1() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/prom/ |
D | tree_32.c | 24 static phandle __prom_getchild(phandle node) in __prom_getchild() argument 30 cnode = prom_nodeops->no_child(node); in __prom_getchild() 40 phandle prom_getchild(phandle node) in prom_getchild() argument 44 if ((s32)node == -1) in prom_getchild() 47 cnode = __prom_getchild(node); in prom_getchild() 56 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument 62 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling() 72 phandle prom_getsibling(phandle node) in prom_getsibling() argument 76 if ((s32)node == -1) in prom_getsibling() 79 sibnode = __prom_getsibling(node); in prom_getsibling() [all …]
|