Home
last modified time | relevance | path

Searched refs:node (Results 1 – 25 of 4674) sorted by relevance

12345678910>>...187

/OK3568_Linux_fs/kernel/arch/mips/include/asm/netlogic/xlp-hal/
H A Diomap.h50 #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 …]
/OK3568_Linux_fs/yocto/poky/bitbake/lib/
H A Dcodegen.py58 def to_source(node, indent_with=' ' * 4, add_line_information=False): argument
77 generator.visit(node)
102 def newline(self, node=None, extra=0): argument
104 if node is not None and self.add_line_information:
105 self.write('# line: %s' % node.lineno)
115 def body_or_else(self, node): argument
116 self.body(node.body)
117 if node.orelse:
120 self.body(node.orelse)
122 def signature(self, node): argument
[all …]
/OK3568_Linux_fs/kernel/fs/hfs/
H A Dbnode.c18 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 …]
H A Dbrec.c19 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 …]
/OK3568_Linux_fs/u-boot/drivers/core/
H A Dofnode.c19 int ofnode_read_u32(ofnode node, const char *propname, u32 *outp) in ofnode_read_u32() argument
21 assert(ofnode_valid(node)); in ofnode_read_u32()
24 if (ofnode_is_np(node)) { in ofnode_read_u32()
25 return of_read_u32(ofnode_to_np(node), propname, outp); in ofnode_read_u32()
30 cell = fdt_getprop(gd->fdt_blob, ofnode_to_offset(node), in ofnode_read_u32()
43 int ofnode_read_u32_default(ofnode node, const char *propname, u32 def) in ofnode_read_u32_default() argument
45 assert(ofnode_valid(node)); in ofnode_read_u32_default()
46 ofnode_read_u32(node, propname, &def); in ofnode_read_u32_default()
51 int ofnode_read_s32_default(ofnode node, const char *propname, s32 def) in ofnode_read_s32_default() argument
53 assert(ofnode_valid(node)); in ofnode_read_s32_default()
[all …]
/OK3568_Linux_fs/kernel/scripts/dtc/
H A Dchecks.c29 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 …]
H A Dlivetree.c88 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 …]
/OK3568_Linux_fs/kernel/kernel/gcov/
H A Dfs.c145 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 …]
/OK3568_Linux_fs/u-boot/include/dm/
H A Dofnode.h57 ofnode node; member
80 ofnode node; member
95 static inline const struct device_node *ofnode_to_np(ofnode node) in ofnode_to_np() argument
101 return node.np; in ofnode_to_np()
112 static inline int ofnode_to_offset(ofnode node) in ofnode_to_offset() argument
118 return node.of_offset; in ofnode_to_offset()
126 static inline bool ofnode_valid(ofnode node) in ofnode_valid() argument
129 return node.np != NULL; in ofnode_valid()
131 return node.of_offset != -1; in ofnode_valid()
142 ofnode node; in offset_to_ofnode() local
[all …]
/OK3568_Linux_fs/u-boot/scripts/dtc/
H A Dlivetree.c100 struct node *build_node(struct property *proplist, struct node *children) in build_node()
102 struct node *new = xmalloc(sizeof(*new)); in build_node()
103 struct node *child; in build_node()
117 struct node *build_node_delete(void) in build_node_delete()
119 struct node *new = xmalloc(sizeof(*new)); in build_node_delete()
128 struct node *name_node(struct node *node, char *name) in name_node() argument
130 assert(node->name == NULL); in name_node()
132 node->name = name; in name_node()
134 return node; in name_node()
137 struct node *merge_nodes(struct node *old_node, struct node *new_node) in merge_nodes()
[all …]
H A Dchecks.c43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
99 static void check_nodes_props(struct check *c, struct dt_info *dti, struct node *node) in check_nodes_props() argument
101 struct node *child; in check_nodes_props()
103 TRACE(c, "%s", node->fullpath); in check_nodes_props()
105 c->fn(c, dti, node); in check_nodes_props()
107 for_each_child(node, child) in check_nodes_props()
113 struct node *dt = dti->dt; in run_check()
157 struct node *node) in check_always_fail() argument
164 struct node *node) in check_is_string() argument
169 prop = get_property(node, propname); in check_is_string()
[all …]
/OK3568_Linux_fs/kernel/scripts/gdb/linux/
H A Drbtree.py15 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 …]
/OK3568_Linux_fs/kernel/fs/hfsplus/
H A Dbnode.c22 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 …]
H A Dbrec.c20 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 …]
/OK3568_Linux_fs/kernel/lib/
H A Dradix-tree.c98 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 …]
H A Dbootconfig.c65 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireguard/
H A Dallowedips.c23 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_BITS] = { in root_free_rcu() local
[all …]
/OK3568_Linux_fs/u-boot/arch/x86/cpu/baytrail/
H A Dfsp_configs.c134 int node; in update_fsp_configs() local
143 node = fdtdec_next_compatible(blob, 0, COMPAT_INTEL_BAYTRAIL_FSP); in update_fsp_configs()
144 if (node < 0) { in update_fsp_configs()
149 fsp_upd->mrc_init_tseg_size = fdtdec_get_int(blob, node, in update_fsp_configs()
152 fsp_upd->mrc_init_mmio_size = fdtdec_get_int(blob, node, in update_fsp_configs()
155 fsp_upd->mrc_init_spd_addr1 = fdtdec_get_int(blob, node, in update_fsp_configs()
158 fsp_upd->mrc_init_spd_addr2 = fdtdec_get_int(blob, node, in update_fsp_configs()
161 fsp_upd->emmc_boot_mode = fdtdec_get_int(blob, node, in update_fsp_configs()
164 fsp_upd->enable_sdio = fdtdec_get_bool(blob, node, "fsp,enable-sdio"); in update_fsp_configs()
165 fsp_upd->enable_sdcard = fdtdec_get_bool(blob, node, in update_fsp_configs()
[all …]
/OK3568_Linux_fs/u-boot/drivers/block/
H A Dblkcache.c36 struct block_cache_node *node; in cache_find() local
38 list_for_each_entry(node, &block_cache, lh) in cache_find()
39 if ((node->iftype == iftype) && in cache_find()
40 (node->devnum == devnum) && in cache_find()
41 (node->blksz == blksz) && in cache_find()
42 (node->start <= start) && in cache_find()
43 (node->start + node->blkcnt >= start + blkcnt)) { in cache_find()
44 if (block_cache.next != &node->lh) { in cache_find()
46 list_del(&node->lh); in cache_find()
47 list_add(&node->lh, &block_cache); in cache_find()
[all …]
/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dbpf_lru_list.c42 static bool bpf_lru_node_is_ref(const struct bpf_lru_node *node) in bpf_lru_node_is_ref() argument
44 return node->ref; in bpf_lru_node_is_ref()
62 struct bpf_lru_node *node, in __bpf_lru_node_move_to_free() argument
66 if (WARN_ON_ONCE(IS_LOCAL_LIST_TYPE(node->type))) in __bpf_lru_node_move_to_free()
72 if (&node->list == l->next_inactive_rotation) in __bpf_lru_node_move_to_free()
75 bpf_lru_list_count_dec(l, node->type); in __bpf_lru_node_move_to_free()
77 node->type = tgt_free_type; in __bpf_lru_node_move_to_free()
78 list_move(&node->list, free_list); in __bpf_lru_node_move_to_free()
83 struct bpf_lru_node *node, in __bpf_lru_node_move_in() argument
86 if (WARN_ON_ONCE(!IS_LOCAL_LIST_TYPE(node->type)) || in __bpf_lru_node_move_in()
[all …]
H A Dlpm_trie.c165 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 …]
/OK3568_Linux_fs/kernel/net/hsr/
H A Dhsr_framereg.c43 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 …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_mm.c107 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 …]
/OK3568_Linux_fs/external/security/librkcrypto/src/
H A Drkcrypto_mem.c43 void (*free_node)(int dma_node_fd, struct mem_pool_node *node);
73 struct mem_pool_node *node = NULL; in crypto_alloc_node_drm() local
84 node = malloc(sizeof(*node)); in crypto_alloc_node_drm()
85 if (!node) in crypto_alloc_node_drm()
88 memset(node, 0x00, sizeof(*node)); in crypto_alloc_node_drm()
93 free(node); in crypto_alloc_node_drm()
97 ret = drmPrimeHandleToFD(dma_node_fd, req.handle, 0, &node->mem.dma_fd); in crypto_alloc_node_drm()
111 req.handle, node->mem.dma_fd, size, req.size); in crypto_alloc_node_drm()
114 node->mem.vaddr = mmap64(0, req.size, PROT_READ | PROT_WRITE, MAP_SHARED, in crypto_alloc_node_drm()
117 node->mem.vaddr = mmap(0, req.size, PROT_READ | PROT_WRITE, MAP_SHARED, in crypto_alloc_node_drm()
[all …]
/OK3568_Linux_fs/kernel/arch/ia64/mm/
H A Ddiscontig.c54 #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 …]

12345678910>>...187