/linux-4.4.14/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 …]
|
D | sys.h | 196 #define nlm_get_sys_pcibase(node) nlm_pcicfg_base(cpu_is_xlp9xx() ? \ argument 197 XLP9XX_IO_SYS_OFFSET(node) : XLP_IO_SYS_OFFSET(node)) 198 #define nlm_get_sys_regbase(node) (nlm_get_sys_pcibase(node) + XLP_IO_PCI_HDRSZ) argument 201 #define nlm_get_fuse_pcibase(node) \ argument 202 nlm_pcicfg_base(XLP9XX_IO_FUSE_OFFSET(node)) 203 #define nlm_get_fuse_regbase(node) \ argument 204 (nlm_get_fuse_pcibase(node) + XLP_IO_PCI_HDRSZ) 206 #define nlm_get_clock_pcibase(node) \ argument 207 nlm_pcicfg_base(XLP9XX_IO_CLOCK_OFFSET(node)) 208 #define nlm_get_clock_regbase(node) \ argument [all …]
|
/linux-4.4.14/drivers/staging/lustre/lustre/ldlm/ |
D | interval_tree.c | 50 static inline int node_is_left_child(struct interval_node *node) in node_is_left_child() argument 52 LASSERT(node->in_parent != NULL); in node_is_left_child() 53 return node == node->in_parent->in_left; in node_is_left_child() 56 static inline int node_is_right_child(struct interval_node *node) in node_is_right_child() argument 58 LASSERT(node->in_parent != NULL); in node_is_right_child() 59 return node == node->in_parent->in_right; in node_is_right_child() 62 static inline int node_is_red(struct interval_node *node) in node_is_red() argument 64 return node->in_color == INTERVAL_RED; in node_is_red() 67 static inline int node_is_black(struct interval_node *node) in node_is_black() argument 69 return node->in_color == INTERVAL_BLACK; in node_is_black() [all …]
|
D | ldlm_extent.c | 112 struct ldlm_interval *node; in ldlm_interval_alloc() local 115 node = kmem_cache_alloc(ldlm_interval_slab, GFP_NOFS | __GFP_ZERO); in ldlm_interval_alloc() 116 if (node == NULL) in ldlm_interval_alloc() 119 INIT_LIST_HEAD(&node->li_group); in ldlm_interval_alloc() 120 ldlm_interval_attach(node, lock); in ldlm_interval_alloc() 121 return node; in ldlm_interval_alloc() 124 void ldlm_interval_free(struct ldlm_interval *node) in ldlm_interval_free() argument 126 if (node) { in ldlm_interval_free() 127 LASSERT(list_empty(&node->li_group)); in ldlm_interval_free() 128 LASSERT(!interval_is_intree(&node->li_node)); in ldlm_interval_free() [all …]
|
/linux-4.4.14/fs/hfs/ |
D | bnode.c | 17 void hfs_bnode_read(struct hfs_bnode *node, void *buf, in hfs_bnode_read() argument 22 off += node->page_offset; in hfs_bnode_read() 23 page = node->page[0]; in hfs_bnode_read() 29 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 33 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 37 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 41 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 45 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 50 tree = node->tree; in hfs_bnode_read_key() 51 if (node->type == HFS_NODE_LEAF || in hfs_bnode_read_key() [all …]
|
D | brec.c | 18 u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) in hfs_brec_lenoff() argument 23 dataoff = node->tree->node_size - (rec + 2) * 2; in hfs_brec_lenoff() 24 hfs_bnode_read(node, retval, dataoff, 4); in hfs_brec_lenoff() 30 u16 hfs_brec_keylen(struct hfs_bnode *node, u16 rec) in hfs_brec_keylen() argument 34 if (node->type != HFS_NODE_INDEX && node->type != HFS_NODE_LEAF) in hfs_brec_keylen() 37 if ((node->type == HFS_NODE_INDEX) && in hfs_brec_keylen() 38 !(node->tree->attributes & HFS_TREE_VARIDXKEYS)) { in hfs_brec_keylen() 39 if (node->tree->attributes & HFS_TREE_BIGKEYS) in hfs_brec_keylen() 40 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() 42 retval = node->tree->max_key_len + 1; in hfs_brec_keylen() [all …]
|
D | btree.c | 138 struct hfs_bnode *node; in hfs_btree_close() local 145 while ((node = tree->node_hash[i])) { in hfs_btree_close() 146 tree->node_hash[i] = node->next_hash; in hfs_btree_close() 147 if (atomic_read(&node->refcnt)) in hfs_btree_close() 149 node->tree->cnid, node->this, in hfs_btree_close() 150 atomic_read(&node->refcnt)); in hfs_btree_close() 151 hfs_bnode_free(node); in hfs_btree_close() 162 struct hfs_bnode *node; in hfs_btree_write() local 165 node = hfs_bnode_find(tree, 0); in hfs_btree_write() 166 if (IS_ERR(node)) in hfs_btree_write() [all …]
|
/linux-4.4.14/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 …]
|
/linux-4.4.14/fs/hfsplus/ |
D | bnode.c | 21 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() 27 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bnode_read() 42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument 46 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16() 50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument 54 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8() 58 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument 63 tree = node->tree; in hfs_bnode_read_key() 64 if (node->type == HFS_NODE_LEAF || 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 (node->tree->cnid != HFSPLUS_ATTR_CNID)) { in hfs_brec_keylen() 41 retval = node->tree->max_key_len + 2; in hfs_brec_keylen() 43 recoff = hfs_bnode_read_u16(node, in hfs_brec_keylen() [all …]
|
D | btree.c | 259 struct hfs_bnode *node; in hfs_btree_close() local 266 while ((node = tree->node_hash[i])) { in hfs_btree_close() 267 tree->node_hash[i] = node->next_hash; in hfs_btree_close() 268 if (atomic_read(&node->refcnt)) in hfs_btree_close() 271 node->tree->cnid, node->this, in hfs_btree_close() 272 atomic_read(&node->refcnt)); in hfs_btree_close() 273 hfs_bnode_free(node); in hfs_btree_close() 284 struct hfs_bnode *node; in hfs_btree_write() local 287 node = hfs_bnode_find(tree, 0); in hfs_btree_write() 288 if (IS_ERR(node)) in hfs_btree_write() [all …]
|
/linux-4.4.14/scripts/dtc/ |
D | livetree.c | 100 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 …]
|
D | checks.c | 43 typedef void (*tree_check_fn)(struct check *c, struct node *dt); 44 typedef void (*node_check_fn)(struct check *c, struct node *dt, struct node *node); 45 typedef void (*prop_check_fn)(struct check *c, struct node *dt, 46 struct node *node, struct property *prop); 126 static void check_nodes_props(struct check *c, struct node *dt, struct node *node) in check_nodes_props() argument 128 struct node *child; in check_nodes_props() 131 TRACE(c, "%s", node->fullpath); in check_nodes_props() 133 c->node_fn(c, dt, node); in check_nodes_props() 136 for_each_property(node, prop) { in check_nodes_props() 137 TRACE(c, "%s\t'%s'", node->fullpath, prop->name); in check_nodes_props() [all …]
|
D | dtc.h | 145 struct node { struct 149 struct node *children; argument 151 struct node *parent; argument 152 struct node *next_sibling; argument 192 struct node *build_node(struct property *proplist, struct node *children); 193 struct node *build_node_delete(void); 194 struct node *name_node(struct node *node, char *name); 195 struct node *chain_node(struct node *first, struct node *list); 196 struct node *merge_nodes(struct node *old_node, struct node *new_node); 198 void add_property(struct node *node, struct property *prop); [all …]
|
D | fdtput.c | 137 int node; in store_key_value() local 140 node = fdt_path_offset(blob, node_name); in store_key_value() 141 if (node < 0) { in store_key_value() 142 report_error(node_name, -1, node); in store_key_value() 146 err = fdt_setprop(blob, node, property, buf, len); in store_key_value() 168 int node, offset = 0; in create_paths() local 174 for (sep = path; *sep; path = sep + 1, offset = node) { in create_paths() 180 node = fdt_subnode_offset_namelen(blob, offset, path, in create_paths() 182 if (node == -FDT_ERR_NOTFOUND) { in create_paths() 183 node = fdt_add_subnode_namelen(blob, offset, path, in create_paths() [all …]
|
D | fdtget.c | 122 static int list_properties(const void *blob, int node) in list_properties() argument 128 prop = fdt_first_property_offset(blob, node); in list_properties() 150 static int list_subnodes(const void *blob, int node) in list_subnodes() argument 159 tag = fdt_next_tag(blob, node, &nextoffset); in list_subnodes() 162 pathp = fdt_get_name(blob, node, NULL); in list_subnodes() 191 node = nextoffset; in list_subnodes() 207 int node, const char *property) in show_data_for_item() argument 214 err = list_properties(blob, node); in show_data_for_item() 218 err = list_subnodes(blob, node); in show_data_for_item() 223 value = fdt_getprop(blob, node, property, &len); in show_data_for_item() [all …]
|
/linux-4.4.14/net/hsr/ |
D | hsr_framereg.c | 62 struct hsr_node *node; in hsr_addr_is_self() local 64 node = list_first_or_null_rcu(&hsr->self_node_db, struct hsr_node, in hsr_addr_is_self() 66 if (!node) { in hsr_addr_is_self() 71 if (ether_addr_equal(addr, node->MacAddressA)) in hsr_addr_is_self() 73 if (ether_addr_equal(addr, node->MacAddressB)) in hsr_addr_is_self() 84 struct hsr_node *node; in find_node_by_AddrA() local 86 list_for_each_entry_rcu(node, node_db, mac_list) { in find_node_by_AddrA() 87 if (ether_addr_equal(node->MacAddressA, addr)) in find_node_by_AddrA() 88 return node; in find_node_by_AddrA() 102 struct hsr_node *node, *oldnode; in hsr_create_self_node() local [all …]
|
/linux-4.4.14/arch/ia64/mm/ |
D | discontig.c | 57 #define NODEDATA_ALIGN(addr, node) \ argument 59 (((node)*PERCPU_PAGE_SIZE) & (MAX_NODE_ALIGN_OFFSET - 1))) 75 int node) in build_node_maps() argument 78 struct bootmem_data *bdp = &bootmem_node_data[node]; in build_node_maps() 102 static int __meminit early_nr_cpus_node(int node) in early_nr_cpus_node() argument 107 if (node == node_cpuid[cpu].nid) in early_nr_cpus_node() 117 static unsigned long __meminit compute_pernodesize(int node) in compute_pernodesize() argument 121 cpus = early_nr_cpus_node(node); in compute_pernodesize() 123 pernodesize += node * L1_CACHE_BYTES; in compute_pernodesize() 140 static void *per_cpu_node_setup(void *cpu_data, int node) in per_cpu_node_setup() argument [all …]
|
/linux-4.4.14/lib/ |
D | timerqueue.c | 39 bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node) in timerqueue_add() argument 46 WARN_ON_ONCE(!RB_EMPTY_NODE(&node->node)); in timerqueue_add() 50 ptr = rb_entry(parent, struct timerqueue_node, node); in timerqueue_add() 51 if (node->expires.tv64 < ptr->expires.tv64) in timerqueue_add() 56 rb_link_node(&node->node, parent, p); in timerqueue_add() 57 rb_insert_color(&node->node, &head->head); in timerqueue_add() 59 if (!head->next || node->expires.tv64 < head->next->expires.tv64) { in timerqueue_add() 60 head->next = node; in timerqueue_add() 75 bool timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) in timerqueue_del() argument 77 WARN_ON_ONCE(RB_EMPTY_NODE(&node->node)); in timerqueue_del() [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 …]
|
D | rbtree.c | 97 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument 100 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() 111 rb_set_parent_color(node, NULL, RB_BLACK); in __rb_insert() 136 node = gparent; in __rb_insert() 137 parent = rb_parent(node); in __rb_insert() 138 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() 143 if (node == tmp) { in __rb_insert() 156 tmp = node->rb_left; in __rb_insert() 158 WRITE_ONCE(node->rb_left, parent); in __rb_insert() 162 rb_set_parent_color(parent, node, RB_RED); in __rb_insert() [all …]
|
D | radix-tree.c | 88 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, in tag_set() argument 91 __set_bit(offset, node->tags[tag]); in tag_set() 94 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, in tag_clear() argument 97 __clear_bit(offset, node->tags[tag]); in tag_clear() 100 static inline int tag_get(struct radix_tree_node *node, unsigned int tag, in tag_get() argument 103 return test_bit(offset, node->tags[tag]); in tag_get() 130 static inline int any_tag_set(struct radix_tree_node *node, unsigned int tag) in any_tag_set() argument 134 if (node->tags[tag][idx]) in any_tag_set() 221 struct radix_tree_node *node = in radix_tree_node_rcu_free() local 231 tag_clear(node, i, 0); in radix_tree_node_rcu_free() [all …]
|
D | plist.c | 74 void plist_add(struct plist_node *node, struct plist_head *head) in plist_add() argument 80 WARN_ON(!plist_node_empty(node)); in plist_add() 81 WARN_ON(!list_empty(&node->prio_list)); in plist_add() 89 if (node->prio < iter->prio) { in plist_add() 99 if (!prev || prev->prio != node->prio) in plist_add() 100 list_add_tail(&node->prio_list, &iter->prio_list); in plist_add() 102 list_add_tail(&node->node_list, node_next); in plist_add() 113 void plist_del(struct plist_node *node, struct plist_head *head) in plist_del() argument 117 if (!list_empty(&node->prio_list)) { in plist_del() 118 if (node->node_list.next != &head->node_list) { in plist_del() [all …]
|
D | assoc_array.c | 30 const struct assoc_array_node *node; in assoc_array_subtree_iterate() local 45 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate() 58 ptr = ACCESS_ONCE(node->slots[slot]); in assoc_array_subtree_iterate() 88 node = assoc_array_ptr_to_node(cursor); in assoc_array_subtree_iterate() 92 ptr = ACCESS_ONCE(node->slots[slot]); in assoc_array_subtree_iterate() 101 parent = ACCESS_ONCE(node->back_pointer); in assoc_array_subtree_iterate() 102 slot = node->parent_slot; in assoc_array_subtree_iterate() 165 struct assoc_array_node *node; /* Node in which leaf might be found */ member 188 struct assoc_array_node *node; in assoc_array_walk() local 218 node = assoc_array_ptr_to_node(cursor); in assoc_array_walk() [all …]
|
D | rbtree_test.c | 24 static void insert(struct test_node *node, struct rb_root *root) in insert() argument 27 u32 key = node->key; in insert() 37 rb_link_node(&node->rb, parent, new); in insert() 38 rb_insert_color(&node->rb, root); in insert() 41 static inline void erase(struct test_node *node, struct rb_root *root) in erase() argument 43 rb_erase(&node->rb, root); in erase() 46 static inline u32 augment_recompute(struct test_node *node) in augment_recompute() argument 48 u32 max = node->val, child_augmented; in augment_recompute() 49 if (node->rb.rb_left) { in augment_recompute() 50 child_augmented = rb_entry(node->rb.rb_left, struct test_node, in augment_recompute() [all …]
|
/linux-4.4.14/tools/lib/ |
D | rbtree.c | 72 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument 75 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() 86 rb_set_parent_color(node, NULL, RB_BLACK); in __rb_insert() 111 node = gparent; in __rb_insert() 112 parent = rb_parent(node); in __rb_insert() 113 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() 118 if (node == tmp) { in __rb_insert() 131 parent->rb_right = tmp = node->rb_left; in __rb_insert() 132 node->rb_left = parent; in __rb_insert() 136 rb_set_parent_color(parent, node, RB_RED); in __rb_insert() [all …]
|
/linux-4.4.14/include/drm/ |
D | drm_vma_manager.h | 61 struct drm_vma_offset_node *node, unsigned long pages); 63 struct drm_vma_offset_node *node); 65 int drm_vma_node_allow(struct drm_vma_offset_node *node, struct file *filp); 66 void drm_vma_node_revoke(struct drm_vma_offset_node *node, struct file *filp); 67 bool drm_vma_node_is_allowed(struct drm_vma_offset_node *node, 87 struct drm_vma_offset_node *node; in drm_vma_offset_exact_lookup_locked() local 89 node = drm_vma_offset_lookup_locked(mgr, start, pages); in drm_vma_offset_exact_lookup_locked() 90 return (node && node->vm_node.start == start) ? node : NULL; in drm_vma_offset_exact_lookup_locked() 135 static inline void drm_vma_node_reset(struct drm_vma_offset_node *node) in drm_vma_node_reset() argument 137 memset(node, 0, sizeof(*node)); in drm_vma_node_reset() [all …]
|
/linux-4.4.14/include/linux/ |
D | interval_tree_generic.h | 45 static inline ITTYPE ITPREFIX ## _compute_subtree_last(ITSTRUCT *node) \ 47 ITTYPE max = ITLAST(node), subtree_last; \ 48 if (node->ITRB.rb_left) { \ 49 subtree_last = rb_entry(node->ITRB.rb_left, \ 54 if (node->ITRB.rb_right) { \ 55 subtree_last = rb_entry(node->ITRB.rb_right, \ 68 ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, struct rb_root *root) \ 71 ITTYPE start = ITSTART(node), last = ITLAST(node); \ 85 node->ITSUBTREE = last; \ 86 rb_link_node(&node->ITRB, rb_parent, link); \ [all …]
|
D | rbtree_latch.h | 39 struct rb_node node[2]; member 68 __lt_from_rb(struct rb_node *node, int idx) in __lt_from_rb() argument 70 return container_of(node, struct latch_tree_node, node[idx]); in __lt_from_rb() 79 struct rb_node *node = <n->node[idx]; in __lt_insert() local 93 rb_link_node_rcu(node, parent, link); in __lt_insert() 94 rb_insert_color(node, root); in __lt_insert() 100 rb_erase(<n->node[idx], <r->tree[idx]); in __lt_erase() 105 int (*comp)(void *key, struct latch_tree_node *node)) in __lt_find() argument 107 struct rb_node *node = rcu_dereference_raw(ltr->tree[idx].rb_node); in __lt_find() local 111 while (node) { in __lt_find() [all …]
|
D | topology.h | 42 #define nr_cpus_node(node) cpumask_weight(cpumask_of_node(node)) argument 45 #define for_each_node_with_cpus(node) \ argument 46 for_each_online_node(node) \ 47 if (nr_cpus_node(node)) 89 static inline void set_numa_node(int node) in set_numa_node() argument 91 this_cpu_write(numa_node, node); in set_numa_node() 96 static inline void set_cpu_numa_node(int cpu, int node) in set_cpu_numa_node() argument 98 per_cpu(numa_node, cpu) = node; in set_cpu_numa_node() 125 static inline void set_numa_mem(int node) in set_numa_mem() argument 127 this_cpu_write(_numa_mem_, node); in set_numa_mem() [all …]
|
D | nodemask.h | 115 #define node_set(node, dst) __node_set((node), &(dst)) argument 116 static __always_inline void __node_set(int node, volatile nodemask_t *dstp) in __node_set() argument 118 set_bit(node, dstp->bits); in __node_set() 121 #define node_clear(node, dst) __node_clear((node), &(dst)) argument 122 static inline void __node_clear(int node, volatile nodemask_t *dstp) in __node_clear() argument 124 clear_bit(node, dstp->bits); in __node_clear() 140 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) argument 142 #define node_test_and_set(node, nodemask) \ argument 143 __node_test_and_set((node), &(nodemask)) 144 static inline int __node_test_and_set(int node, nodemask_t *addr) in __node_test_and_set() argument [all …]
|
D | rbtree.h | 56 #define RB_EMPTY_NODE(node) \ argument 57 ((node)->__rb_parent_color == (unsigned long)(node)) 58 #define RB_CLEAR_NODE(node) \ argument 59 ((node)->__rb_parent_color = (unsigned long)(node)) 80 static inline void rb_link_node(struct rb_node *node, struct rb_node *parent, in rb_link_node() argument 83 node->__rb_parent_color = (unsigned long)parent; in rb_link_node() 84 node->rb_left = node->rb_right = NULL; in rb_link_node() 86 *rb_link = node; in rb_link_node() 89 static inline void rb_link_node_rcu(struct rb_node *node, struct rb_node *parent, in rb_link_node_rcu() argument 92 node->__rb_parent_color = (unsigned long)parent; in rb_link_node_rcu() [all …]
|
D | rbtree_augmented.h | 39 void (*propagate)(struct rb_node *node, struct rb_node *stop); 44 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 57 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument 60 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 69 rbstruct *node = rb_entry(rb, rbstruct, rbfield); \ 70 rbtype augmented = rbcompute(node); \ 71 if (node->rbaugmented == augmented) \ 73 node->rbaugmented = augmented; \ 74 rb = rb_parent(&node->rbfield); \ 137 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() argument [all …]
|
D | of_fdt.h | 30 unsigned long node, 34 unsigned long node, 37 unsigned long node); 38 extern int of_fdt_match(const void *blob, unsigned long node, 52 extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, 55 extern const void *of_get_flat_dt_prop(unsigned long node, const char *name, 57 extern int of_flat_dt_is_compatible(unsigned long node, const char *name); 58 extern int of_flat_dt_match(unsigned long node, const char *const *matches); 62 extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, 64 extern int early_init_dt_scan_memory(unsigned long node, const char *uname, [all …]
|
D | plist.h | 112 #define PLIST_NODE_INIT(node, __prio) \ argument 115 .prio_list = LIST_HEAD_INIT((node).prio_list), \ 116 .node_list = LIST_HEAD_INIT((node).node_list), \ 134 static inline void plist_node_init(struct plist_node *node, int prio) in plist_node_init() argument 136 node->prio = prio; in plist_node_init() 137 INIT_LIST_HEAD(&node->prio_list); in plist_node_init() 138 INIT_LIST_HEAD(&node->node_list); in plist_node_init() 141 extern void plist_add(struct plist_node *node, struct plist_head *head); 142 extern void plist_del(struct plist_node *node, struct plist_head *head); 144 extern void plist_requeue(struct plist_node *node, struct plist_head *head); [all …]
|
D | timerqueue.h | 9 struct rb_node node; member 20 struct timerqueue_node *node); 22 struct timerqueue_node *node); 24 struct timerqueue_node *node); 40 static inline void timerqueue_init(struct timerqueue_node *node) in timerqueue_init() argument 42 RB_CLEAR_NODE(&node->node); in timerqueue_init()
|
D | of_graph.h | 43 int of_graph_parse_endpoint(const struct device_node *node, 45 struct device_node *of_graph_get_port_by_id(struct device_node *node, u32 id); 51 const struct device_node *node); 52 struct device_node *of_graph_get_remote_port(const struct device_node *node); 55 static inline int of_graph_parse_endpoint(const struct device_node *node, in of_graph_parse_endpoint() argument 62 struct device_node *node, u32 id) in of_graph_get_port_by_id() argument 81 const struct device_node *node) in of_graph_get_remote_port_parent() argument 87 const struct device_node *node) in of_graph_get_remote_port() argument
|
/linux-4.4.14/arch/sparc/prom/ |
D | tree_32.c | 23 static phandle __prom_getchild(phandle node) in __prom_getchild() argument 29 cnode = prom_nodeops->no_child(node); in __prom_getchild() 39 phandle prom_getchild(phandle node) in prom_getchild() argument 43 if ((s32)node == -1) in prom_getchild() 46 cnode = __prom_getchild(node); in prom_getchild() 55 static phandle __prom_getsibling(phandle node) in __prom_getsibling() argument 61 cnode = prom_nodeops->no_nextnode(node); in __prom_getsibling() 71 phandle prom_getsibling(phandle node) in prom_getsibling() argument 75 if ((s32)node == -1) in prom_getsibling() 78 sibnode = __prom_getsibling(node); in prom_getsibling() [all …]
|
D | tree_64.c | 19 static phandle prom_node_to_node(const char *type, phandle node) in prom_node_to_node() argument 26 args[3] = (unsigned int) node; in prom_node_to_node() 37 inline phandle __prom_getchild(phandle node) in __prom_getchild() argument 39 return prom_node_to_node("child", node); in __prom_getchild() 42 phandle prom_getchild(phandle node) in prom_getchild() argument 46 if ((s32)node == -1) in prom_getchild() 48 cnode = __prom_getchild(node); in prom_getchild() 55 inline phandle prom_getparent(phandle node) in prom_getparent() argument 59 if ((s32)node == -1) in prom_getparent() 61 cnode = prom_node_to_node("parent", node); in prom_getparent() [all …]
|
/linux-4.4.14/tools/perf/tests/ |
D | hists_output.c | 98 struct rb_node *node; in del_hist_entries() local 108 node = rb_first(root_out); in del_hist_entries() 110 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 111 rb_erase(node, root_out); in del_hist_entries() 132 struct rb_node *node; in test1() local 167 node = rb_first(root); in test1() 168 he = rb_entry(node, struct hist_entry, rb_node); in test1() 173 node = rb_next(node); in test1() 174 he = rb_entry(node, struct hist_entry, rb_node); in test1() 179 node = rb_next(node); in test1() [all …]
|
/linux-4.4.14/arch/x86/platform/olpc/ |
D | olpc_dt.c | 27 static phandle __init olpc_dt_getsibling(phandle node) in olpc_dt_getsibling() argument 29 const void *args[] = { (void *)node }; in olpc_dt_getsibling() 30 void *res[] = { &node }; in olpc_dt_getsibling() 32 if ((s32)node == -1) in olpc_dt_getsibling() 35 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling() 38 return node; in olpc_dt_getsibling() 41 static phandle __init olpc_dt_getchild(phandle node) in olpc_dt_getchild() argument 43 const void *args[] = { (void *)node }; in olpc_dt_getchild() 44 void *res[] = { &node }; in olpc_dt_getchild() 46 if ((s32)node == -1) in olpc_dt_getchild() [all …]
|
/linux-4.4.14/fs/ocfs2/cluster/ |
D | quorum.c | 177 static void o2quo_set_hold(struct o2quo_state *qs, u8 node) in o2quo_set_hold() argument 181 if (!test_and_set_bit(node, qs->qs_hold_bm)) { in o2quo_set_hold() 184 "node %u\n", node); in o2quo_set_hold() 185 mlog(0, "node %u, %d total\n", node, qs->qs_holds); in o2quo_set_hold() 189 static void o2quo_clear_hold(struct o2quo_state *qs, u8 node) in o2quo_clear_hold() argument 193 if (test_and_clear_bit(node, qs->qs_hold_bm)) { in o2quo_clear_hold() 194 mlog(0, "node %u, %d total\n", node, qs->qs_holds - 1); in o2quo_clear_hold() 202 node, qs->qs_holds); in o2quo_clear_hold() 210 void o2quo_hb_up(u8 node) in o2quo_hb_up() argument 218 "node %u\n", node); in o2quo_hb_up() [all …]
|
D | nodemanager.c | 45 struct o2nm_node *node = NULL; in o2nm_get_node_by_num() local 51 node = o2nm_single_cluster->cl_nodes[node_num]; in o2nm_get_node_by_num() 52 if (node) in o2nm_get_node_by_num() 53 config_item_get(&node->nd_item); in o2nm_get_node_by_num() 56 return node; in o2nm_get_node_by_num() 84 struct o2nm_node *node, *ret = NULL; in o2nm_node_ip_tree_lookup() local 90 node = rb_entry(parent, struct o2nm_node, nd_ip_node); in o2nm_node_ip_tree_lookup() 92 cmp = memcmp(&ip_needle, &node->nd_ipv4_address, in o2nm_node_ip_tree_lookup() 99 ret = node; in o2nm_node_ip_tree_lookup() 114 struct o2nm_node *node = NULL; in o2nm_get_node_by_ip() local [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | gk20a.c | 137 struct gk20a_instobj_dma *node = gk20a_instobj_dma(memory); in gk20a_instobj_cpu_map_dma() local 138 struct device *dev = node->base.imem->base.subdev.device->dev; in gk20a_instobj_cpu_map_dma() 145 pages[0] = pfn_to_page(dma_to_phys(dev, node->handle) >> PAGE_SHIFT); in gk20a_instobj_cpu_map_dma() 159 struct gk20a_instobj_iommu *node = gk20a_instobj_iommu(memory); in gk20a_instobj_cpu_map_iommu() local 162 return vmap(node->pages, npages, VM_MAP, in gk20a_instobj_cpu_map_iommu() 194 struct gk20a_instobj *node = gk20a_instobj(memory); in gk20a_instobj_acquire() local 195 struct gk20a_instmem *imem = node->imem; in gk20a_instobj_acquire() 204 if (node->vaddr) { in gk20a_instobj_acquire() 206 list_del(&node->vaddr_node); in gk20a_instobj_acquire() 214 node->vaddr = imem->cpu_map(memory); in gk20a_instobj_acquire() [all …]
|
/linux-4.4.14/drivers/acpi/acpica/ |
D | nsobject.c | 73 acpi_ns_attach_object(struct acpi_namespace_node *node, in acpi_ns_attach_object() argument 85 if (!node) { in acpi_ns_attach_object() 102 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { in acpi_ns_attach_object() 107 node, acpi_ut_get_descriptor_name(node))); in acpi_ns_attach_object() 113 if (node->object == object) { in acpi_ns_attach_object() 116 object, node)); in acpi_ns_attach_object() 155 obj_desc, node, acpi_ut_get_node_name(node))); in acpi_ns_attach_object() 159 if (node->object) { in acpi_ns_attach_object() 160 acpi_ns_detach_object(node); in acpi_ns_attach_object() 181 last_obj_desc->common.next_object = node->object; in acpi_ns_attach_object() [all …]
|
D | dsargs.c | 57 acpi_ds_execute_arguments(struct acpi_namespace_node *node, 77 acpi_ds_execute_arguments(struct acpi_namespace_node *node, in acpi_ds_execute_arguments() argument 96 op->common.node = scope_node; in acpi_ds_execute_arguments() 116 walk_state->deferred_node = node; in acpi_ds_execute_arguments() 127 op->common.node = node; in acpi_ds_execute_arguments() 137 op->common.node = scope_node; in acpi_ds_execute_arguments() 158 walk_state->deferred_node = node; in acpi_ds_execute_arguments() 183 struct acpi_namespace_node *node; in acpi_ds_get_buffer_field_arguments() local 195 node = obj_desc->buffer_field.node; in acpi_ds_get_buffer_field_arguments() 198 node, NULL)); in acpi_ds_get_buffer_field_arguments() [all …]
|
D | nsalloc.c | 64 struct acpi_namespace_node *node; in acpi_ns_create_node() local 71 node = acpi_os_acquire_object(acpi_gbl_namespace_cache); in acpi_ns_create_node() 72 if (!node) { in acpi_ns_create_node() 86 node->name.integer = name; in acpi_ns_create_node() 87 ACPI_SET_DESCRIPTOR_TYPE(node, ACPI_DESC_TYPE_NAMED); in acpi_ns_create_node() 88 return_PTR(node); in acpi_ns_create_node() 106 void acpi_ns_delete_node(struct acpi_namespace_node *node) in acpi_ns_delete_node() argument 115 acpi_ns_detach_object(node); in acpi_ns_delete_node() 123 obj_desc = node->object; in acpi_ns_delete_node() 129 obj_desc->data.handler(node, obj_desc->data.pointer); in acpi_ns_delete_node() [all …]
|
D | dswload2.c | 73 struct acpi_namespace_node *node; in acpi_ds_load2_begin_op() local 142 node = NULL; in acpi_ds_load2_begin_op() 155 ACPI_NS_SEARCH_PARENT, walk_state, &(node)); in acpi_ds_load2_begin_op() 162 if (op && (op->named.node == acpi_gbl_root_node)) { in acpi_ds_load2_begin_op() 163 node = op->named.node; in acpi_ds_load2_begin_op() 166 acpi_ds_scope_stack_push(node, object_type, in acpi_ds_load2_begin_op() 181 &(node)); in acpi_ds_load2_begin_op() 201 switch (node->type) { in acpi_ds_load2_begin_op() 226 acpi_ut_get_node_name(node), in acpi_ds_load2_begin_op() 227 acpi_ut_get_type_name(node->type))); in acpi_ds_load2_begin_op() [all …]
|
D | dbcmds.c | 63 acpi_dm_test_resource_conversion(struct acpi_namespace_node *node, char *name); 91 struct acpi_namespace_node *node; in acpi_db_convert_to_node() local 99 node = ACPI_TO_POINTER(address); in acpi_db_convert_to_node() 100 if (!acpi_os_readable(node, sizeof(struct acpi_namespace_node))) { in acpi_db_convert_to_node() 101 acpi_os_printf("Address %p is invalid", node); in acpi_db_convert_to_node() 107 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { in acpi_db_convert_to_node() 110 node, acpi_ut_get_descriptor_name(node)); in acpi_db_convert_to_node() 118 node = acpi_db_local_ns_lookup(in_string); in acpi_db_convert_to_node() 119 if (!node) { in acpi_db_convert_to_node() 123 node = acpi_gbl_root_node; in acpi_db_convert_to_node() [all …]
|
D | nssearch.c | 58 struct acpi_namespace_node *node, 100 struct acpi_namespace_node *node; in acpi_ns_search_one_scope() local 125 node = parent_node->child; in acpi_ns_search_one_scope() 126 while (node) { in acpi_ns_search_one_scope() 130 if (node->name.integer == target_name) { in acpi_ns_search_one_scope() 134 if (acpi_ns_get_type(node) == in acpi_ns_search_one_scope() 136 node = in acpi_ns_search_one_scope() 138 node->object); in acpi_ns_search_one_scope() 146 acpi_ut_get_type_name(node->type), in acpi_ns_search_one_scope() 147 node, in acpi_ns_search_one_scope() [all …]
|
D | nsnames.c | 66 char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) in acpi_ns_get_external_pathname() argument 70 ACPI_FUNCTION_TRACE_PTR(ns_get_external_pathname, node); in acpi_ns_get_external_pathname() 72 name_buffer = acpi_ns_get_normalized_pathname(node, FALSE); in acpi_ns_get_external_pathname() 89 acpi_size acpi_ns_get_pathname_length(struct acpi_namespace_node *node) in acpi_ns_get_pathname_length() argument 95 size = acpi_ns_build_normalized_path(node, NULL, 0, FALSE); in acpi_ns_get_pathname_length() 121 struct acpi_namespace_node *node; in acpi_ns_handle_to_pathname() local 126 node = acpi_ns_validate_handle(target_handle); in acpi_ns_handle_to_pathname() 127 if (!node) { in acpi_ns_handle_to_pathname() 134 acpi_ns_build_normalized_path(node, NULL, 0, no_trailing); in acpi_ns_handle_to_pathname() 148 (void)acpi_ns_build_normalized_path(node, buffer->pointer, in acpi_ns_handle_to_pathname() [all …]
|
D | evhandler.c | 152 acpi_ev_has_default_handler(struct acpi_namespace_node *node, in acpi_ev_has_default_handler() argument 160 obj_desc = acpi_ns_get_attached_object(node); in acpi_ev_has_default_handler() 205 struct acpi_namespace_node *node; in acpi_ev_install_handler() local 220 node = acpi_ns_validate_handle(obj_handle); in acpi_ev_install_handler() 221 if (!node) { in acpi_ev_install_handler() 229 if ((node->type != ACPI_TYPE_DEVICE) && in acpi_ev_install_handler() 230 (node->type != ACPI_TYPE_REGION) && (node != acpi_gbl_root_node)) { in acpi_ev_install_handler() 236 obj_desc = acpi_ns_get_attached_object(node); in acpi_ev_install_handler() 328 acpi_ev_install_space_handler(struct acpi_namespace_node * node, in acpi_ev_install_space_handler() argument 345 if ((node->type != ACPI_TYPE_DEVICE) && in acpi_ev_install_space_handler() [all …]
|
D | dswload.c | 144 struct acpi_namespace_node *node; in acpi_ds_load1_begin_op() local 166 if (op->common.node) { in acpi_ds_load1_begin_op() 192 walk_state, &(node)); in acpi_ds_load1_begin_op() 206 &node); in acpi_ds_load1_begin_op() 218 switch (node->type) { in acpi_ds_load1_begin_op() 245 acpi_ut_get_node_name(node), in acpi_ds_load1_begin_op() 246 acpi_ut_get_type_name(node->type))); in acpi_ds_load1_begin_op() 248 node->type = ACPI_TYPE_ANY; in acpi_ds_load1_begin_op() 257 if ((node == acpi_gbl_root_node) && in acpi_ds_load1_begin_op() 272 acpi_ut_get_type_name(node->type), in acpi_ds_load1_begin_op() [all …]
|
D | exresnte.c | 85 struct acpi_namespace_node *node; in acpi_ex_resolve_node_to_value() local 94 node = *object_ptr; in acpi_ex_resolve_node_to_value() 95 source_desc = acpi_ns_get_attached_object(node); in acpi_ex_resolve_node_to_value() 96 entry_type = acpi_ns_get_type((acpi_handle) node); in acpi_ex_resolve_node_to_value() 99 node, source_desc, in acpi_ex_resolve_node_to_value() 107 node = ACPI_CAST_PTR(struct acpi_namespace_node, node->object); in acpi_ex_resolve_node_to_value() 108 source_desc = acpi_ns_get_attached_object(node); in acpi_ex_resolve_node_to_value() 109 entry_type = acpi_ns_get_type((acpi_handle) node); in acpi_ex_resolve_node_to_value() 110 *object_ptr = node; in acpi_ex_resolve_node_to_value() 122 (node->flags & (ANOBJ_METHOD_ARG | ANOBJ_METHOD_LOCAL))) { in acpi_ex_resolve_node_to_value() [all …]
|
D | dbnames.c | 139 struct acpi_namespace_node *node; in acpi_db_set_scope() local 153 ACPI_NS_NO_UPSEARCH, &node); in acpi_db_set_scope() 163 ACPI_NS_NO_UPSEARCH, &node); in acpi_db_set_scope() 183 acpi_gbl_db_scope_node = node; in acpi_db_set_scope() 428 struct acpi_namespace_node *node = in acpi_db_walk_for_predefined_names() local 436 predefined = acpi_ut_match_predefined_method(node->name.ascii); in acpi_db_walk_for_predefined_names() 441 pathname = acpi_ns_get_external_pathname(node); in acpi_db_walk_for_predefined_names() 470 acpi_ns_check_acpi_compliance(pathname, node, predefined); in acpi_db_walk_for_predefined_names() 521 struct acpi_namespace_node *node = in acpi_db_walk_for_object_counts() local 524 if (node->type > ACPI_TYPE_NS_NODE_MAX) { in acpi_db_walk_for_object_counts() [all …]
|
D | evxfregn.c | 82 struct acpi_namespace_node *node; in acpi_install_address_space_handler() local 100 node = acpi_ns_validate_handle(device); in acpi_install_address_space_handler() 101 if (!node) { in acpi_install_address_space_handler() 109 acpi_ev_install_space_handler(node, space_id, handler, setup, in acpi_install_address_space_handler() 149 status = acpi_ev_execute_reg_methods(node, space_id); in acpi_install_address_space_handler() 180 struct acpi_namespace_node *node; in ACPI_EXPORT_SYMBOL() local 198 node = acpi_ns_validate_handle(device); in ACPI_EXPORT_SYMBOL() 199 if (!node || in ACPI_EXPORT_SYMBOL() 200 ((node->type != ACPI_TYPE_DEVICE) && in ACPI_EXPORT_SYMBOL() 201 (node->type != ACPI_TYPE_PROCESSOR) && in ACPI_EXPORT_SYMBOL() [all …]
|
D | dbtest.c | 61 acpi_db_test_integer_type(struct acpi_namespace_node *node, u32 bit_length); 64 acpi_db_test_buffer_type(struct acpi_namespace_node *node, u32 bit_length); 67 acpi_db_test_string_type(struct acpi_namespace_node *node, u32 byte_length); 70 acpi_db_read_from_object(struct acpi_namespace_node *node, 75 acpi_db_write_to_object(struct acpi_namespace_node *node, 275 struct acpi_namespace_node *node; in acpi_db_test_one_object() local 283 node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_handle); in acpi_db_test_one_object() 284 obj_desc = node->object; in acpi_db_test_one_object() 290 switch (node->type) { in acpi_db_test_one_object() 343 acpi_ut_get_type_name(node->type), node->name.ascii); in acpi_db_test_one_object() [all …]
|
D | dbobject.c | 53 static void acpi_db_decode_node(struct acpi_namespace_node *node); 183 static void acpi_db_decode_node(struct acpi_namespace_node *node) in acpi_db_decode_node() argument 187 acpi_ut_get_node_name(node)); in acpi_db_decode_node() 189 if (node->flags & ANOBJ_METHOD_ARG) { in acpi_db_decode_node() 192 if (node->flags & ANOBJ_METHOD_LOCAL) { in acpi_db_decode_node() 196 switch (node->type) { in acpi_db_decode_node() 213 (node)); in acpi_db_decode_node() 369 acpi_db_decode_node(obj_desc->reference.node); in acpi_db_display_internal_object() 420 struct acpi_namespace_node *node; in acpi_db_decode_locals() local 424 node = walk_state->method_node; in acpi_db_decode_locals() [all …]
|
D | nsxfname.c | 84 struct acpi_namespace_node *node = NULL; in acpi_get_handle() local 132 acpi_ns_get_node(prefix_node, pathname, ACPI_NS_NO_UPSEARCH, &node); in acpi_get_handle() 134 *ret_handle = ACPI_CAST_PTR(acpi_handle, node); in acpi_get_handle() 161 struct acpi_namespace_node *node; in ACPI_EXPORT_SYMBOL() local 196 node = acpi_ns_validate_handle(handle); in ACPI_EXPORT_SYMBOL() 197 if (!node) { in ACPI_EXPORT_SYMBOL() 211 node_name = acpi_ut_get_node_name(node); in ACPI_EXPORT_SYMBOL() 277 struct acpi_namespace_node *node; in acpi_get_object_info() local 304 node = acpi_ns_validate_handle(handle); in acpi_get_object_info() 305 if (!node) { in acpi_get_object_info() [all …]
|
D | acnamesp.h | 98 acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node); 155 void acpi_ns_delete_node(struct acpi_namespace_node *node); 157 void acpi_ns_remove_node(struct acpi_namespace_node *node); 164 void acpi_ns_detach_object(struct acpi_namespace_node *node); 233 struct acpi_namespace_node *node, 239 struct acpi_namespace_node *node, 248 acpi_ns_check_return_value(struct acpi_namespace_node *node, 271 char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node); 274 acpi_ns_build_normalized_path(struct acpi_namespace_node *node, 277 char *acpi_ns_get_normalized_pathname(struct acpi_namespace_node *node, [all …]
|
D | nsxfobj.c | 68 struct acpi_namespace_node *node; in acpi_get_type() local 93 node = acpi_ns_validate_handle(handle); in acpi_get_type() 94 if (!node) { in acpi_get_type() 99 *ret_type = node->type; in acpi_get_type() 122 struct acpi_namespace_node *node; in ACPI_EXPORT_SYMBOL() local 143 node = acpi_ns_validate_handle(handle); in ACPI_EXPORT_SYMBOL() 144 if (!node) { in ACPI_EXPORT_SYMBOL() 151 parent_node = node->parent; in ACPI_EXPORT_SYMBOL() 191 struct acpi_namespace_node *node; in ACPI_EXPORT_SYMBOL() local 230 node = acpi_ns_get_next_node_typed(type, parent_node, child_node); in ACPI_EXPORT_SYMBOL() [all …]
|
D | evmisc.c | 69 u8 acpi_ev_is_notify_object(struct acpi_namespace_node *node) in acpi_ev_is_notify_object() argument 71 switch (node->type) { in acpi_ev_is_notify_object() 101 acpi_ev_queue_notify_request(struct acpi_namespace_node * node, in acpi_ev_queue_notify_request() argument 114 if (!acpi_ev_is_notify_object(node)) { in acpi_ev_queue_notify_request() 128 obj_desc = acpi_ns_get_attached_object(node); in acpi_ev_queue_notify_request() 145 acpi_ut_get_node_name(node), notify_value, in acpi_ev_queue_notify_request() 146 node)); in acpi_ev_queue_notify_request() 160 info->notify.node = node; in acpi_ev_queue_notify_request() 168 acpi_ut_get_node_name(node), in acpi_ev_queue_notify_request() 169 acpi_ut_get_type_name(node->type), notify_value, in acpi_ev_queue_notify_request() [all …]
|
D | nseval.c | 94 if (!info->node) { in acpi_ns_evaluate() 105 ACPI_NS_NO_UPSEARCH, &info->node); in acpi_ns_evaluate() 115 if (acpi_ns_get_type(info->node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { in acpi_ns_evaluate() 116 info->node = in acpi_ns_evaluate() 118 info->node->object); in acpi_ns_evaluate() 124 info->node_flags = info->node->flags; in acpi_ns_evaluate() 125 info->obj_desc = acpi_ns_get_attached_object(info->node); in acpi_ns_evaluate() 128 info->relative_pathname, info->node, in acpi_ns_evaluate() 129 acpi_ns_get_attached_object(info->node))); in acpi_ns_evaluate() 134 acpi_ut_match_predefined_method(info->node->name.ascii); in acpi_ns_evaluate() [all …]
|
D | dsmthdat.c | 251 struct acpi_namespace_node **node) in acpi_ds_method_data_get_node() argument 270 *node = &walk_state->local_variables[index]; in acpi_ds_method_data_get_node() 284 *node = &walk_state->arguments[index]; in acpi_ds_method_data_get_node() 320 struct acpi_namespace_node *node; in acpi_ds_method_data_set_value() local 331 status = acpi_ds_method_data_get_node(type, index, walk_state, &node); in acpi_ds_method_data_set_value() 346 node->object = object; in acpi_ds_method_data_set_value() 374 struct acpi_namespace_node *node; in acpi_ds_method_data_get_value() local 388 status = acpi_ds_method_data_get_node(type, index, walk_state, &node); in acpi_ds_method_data_get_value() 395 object = node->object; in acpi_ds_method_data_get_value() 416 node->object = object; in acpi_ds_method_data_get_value() [all …]
|
D | exresolv.c | 251 if ((stack_desc->reference.node->type == in acpi_ex_resolve_object_to_value() 253 || (stack_desc->reference.node->type == in acpi_ex_resolve_object_to_value() 258 *stack_ptr = (void *)stack_desc->reference.node; in acpi_ex_resolve_object_to_value() 263 (stack_desc->reference.node)->object; in acpi_ex_resolve_object_to_value() 340 struct acpi_namespace_node *node = in acpi_ex_resolve_multiple() local 358 obj_desc = acpi_ns_get_attached_object(node); in acpi_ex_resolve_multiple() 373 acpi_ut_get_node_name(node))); in acpi_ex_resolve_multiple() 402 node = obj_desc->reference.object; in acpi_ex_resolve_multiple() 405 node = obj_desc->reference.node; in acpi_ex_resolve_multiple() 410 if (ACPI_GET_DESCRIPTOR_TYPE(node) != in acpi_ex_resolve_multiple() [all …]
|
D | dsobject.c | 95 if (!op->common.node) { in acpi_ds_build_internal_object() 106 node))); in acpi_ds_build_internal_object() 131 node->name.ascii)); in acpi_ds_build_internal_object() 164 op->common.node); in acpi_ds_build_internal_object() 181 type = op->common.node->type; in acpi_ds_build_internal_object() 184 op->common.node = in acpi_ds_build_internal_object() 186 op->common.node->object); in acpi_ds_build_internal_object() 199 acpi_ut_add_reference(op->common.node->object); in acpi_ds_build_internal_object() 348 op->common.node = ACPI_CAST_PTR(struct acpi_namespace_node, obj_desc); in acpi_ds_build_internal_buffer_obj() 417 obj_desc->package.node = parent->common.node; in acpi_ds_build_internal_package_obj() [all …]
|
D | dbdisply.c | 177 struct acpi_namespace_node *node; in acpi_db_decode_and_display_object() local 231 node = obj_ptr; in acpi_db_decode_and_display_object() 298 node = acpi_db_local_ns_lookup(target); in acpi_db_decode_and_display_object() 299 if (!node) { in acpi_db_decode_and_display_object() 306 status = acpi_get_name(node, ACPI_FULL_PATHNAME_NO_TRAILING, &ret_buf); in acpi_db_decode_and_display_object() 313 node, (char *)ret_buf.pointer); in acpi_db_decode_and_display_object() 316 if (!acpi_os_readable(node, sizeof(struct acpi_namespace_node))) { in acpi_db_decode_and_display_object() 317 acpi_os_printf("Invalid Named object at address %p\n", node); in acpi_db_decode_and_display_object() 321 acpi_ut_debug_dump_buffer((void *)node, in acpi_db_decode_and_display_object() 324 acpi_ex_dump_namespace_node(node, 1); in acpi_db_decode_and_display_object() [all …]
|
D | rsxface.c | 98 struct acpi_namespace_node *node; in acpi_rs_validate_parameters() local 109 node = acpi_ns_validate_handle(device_handle); in acpi_rs_validate_parameters() 110 if (!node) { in acpi_rs_validate_parameters() 114 if (node->type != ACPI_TYPE_DEVICE) { in acpi_rs_validate_parameters() 130 *return_node = node; in acpi_rs_validate_parameters() 162 struct acpi_namespace_node *node; in acpi_get_irq_routing_table() local 168 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); in acpi_get_irq_routing_table() 173 status = acpi_rs_get_prt_method_data(node, ret_buffer); in acpi_get_irq_routing_table() 207 struct acpi_namespace_node *node; in ACPI_EXPORT_SYMBOL() local 213 status = acpi_rs_validate_parameters(device_handle, ret_buffer, &node); in ACPI_EXPORT_SYMBOL() [all …]
|
/linux-4.4.14/drivers/block/drbd/ |
D | drbd_interval.c | 9 sector_t interval_end(struct rb_node *node) in interval_end() argument 11 struct drbd_interval *this = rb_entry(node, struct drbd_interval, rb); in interval_end() 23 compute_subtree_last(struct drbd_interval *node) in compute_subtree_last() argument 25 sector_t max = node->sector + (node->size >> 9); in compute_subtree_last() 27 if (node->rb.rb_left) { in compute_subtree_last() 28 sector_t left = interval_end(node->rb.rb_left); in compute_subtree_last() 32 if (node->rb.rb_right) { in compute_subtree_last() 33 sector_t right = interval_end(node->rb.rb_right); in compute_subtree_last() 93 struct rb_node *node = root->rb_node; in drbd_contains_interval() local 95 while (node) { in drbd_contains_interval() [all …]
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_mm.c | 107 struct drm_mm_node *node, in drm_mm_insert_helper() argument 118 BUG_ON(node->allocated); in drm_mm_insert_helper() 147 node->start = adj_start; in drm_mm_insert_helper() 148 node->size = size; in drm_mm_insert_helper() 149 node->mm = mm; in drm_mm_insert_helper() 150 node->color = color; in drm_mm_insert_helper() 151 node->allocated = 1; in drm_mm_insert_helper() 153 INIT_LIST_HEAD(&node->hole_stack); in drm_mm_insert_helper() 154 list_add(&node->node_list, &hole_node->node_list); in drm_mm_insert_helper() 156 BUG_ON(node->start + node->size > adj_end); in drm_mm_insert_helper() [all …]
|
D | drm_vma_manager.c | 145 struct drm_vma_offset_node *node, *best; in drm_vma_offset_lookup_locked() local 153 node = rb_entry(iter, struct drm_vma_offset_node, vm_rb); in drm_vma_offset_lookup_locked() 154 offset = node->vm_node.start; in drm_vma_offset_lookup_locked() 157 best = node; in drm_vma_offset_lookup_locked() 178 struct drm_vma_offset_node *node) in _drm_vma_offset_add_rb() argument 188 if (node->vm_node.start < iter_node->vm_node.start) in _drm_vma_offset_add_rb() 190 else if (node->vm_node.start > iter_node->vm_node.start) in _drm_vma_offset_add_rb() 196 rb_link_node(&node->vm_rb, parent, iter); in _drm_vma_offset_add_rb() 197 rb_insert_color(&node->vm_rb, &mgr->vm_addr_space_rb); in _drm_vma_offset_add_rb() 224 struct drm_vma_offset_node *node, unsigned long pages) in drm_vma_offset_add() argument [all …]
|
/linux-4.4.14/arch/x86/mm/ |
D | pat_rbtree.c | 39 static int is_node_overlap(struct memtype *node, u64 start, u64 end) in is_node_overlap() argument 41 if (node->start >= end || node->end <= start) in is_node_overlap() 47 static u64 get_subtree_max_end(struct rb_node *node) in get_subtree_max_end() argument 50 if (node) { in get_subtree_max_end() 51 struct memtype *data = container_of(node, struct memtype, rb); in get_subtree_max_end() 79 struct rb_node *node = root->rb_node; in RB_DECLARE_CALLBACKS() local 82 while (node) { in RB_DECLARE_CALLBACKS() 83 struct memtype *data = container_of(node, struct memtype, rb); in RB_DECLARE_CALLBACKS() 85 if (get_subtree_max_end(node->rb_left) > start) { in RB_DECLARE_CALLBACKS() 87 node = node->rb_left; in RB_DECLARE_CALLBACKS() [all …]
|
D | srat.c | 76 int pxm, node; in acpi_numa_x2apic_affinity_init() local 94 node = setup_node(pxm); in acpi_numa_x2apic_affinity_init() 95 if (node < 0) { in acpi_numa_x2apic_affinity_init() 102 …NFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u skipped apicid that is too big\n", pxm, apic_id, node); in acpi_numa_x2apic_affinity_init() 105 set_apicid_to_node(apic_id, node); in acpi_numa_x2apic_affinity_init() 106 node_set(node, numa_nodes_parsed); in acpi_numa_x2apic_affinity_init() 109 pxm, apic_id, node); in acpi_numa_x2apic_affinity_init() 116 int pxm, node; in acpi_numa_processor_affinity_init() local 130 node = setup_node(pxm); in acpi_numa_processor_affinity_init() 131 if (node < 0) { in acpi_numa_processor_affinity_init() [all …]
|
/linux-4.4.14/arch/mips/loongson64/loongson-3/ |
D | numa.c | 124 static void __init szmem(unsigned int node) in szmem() argument 133 if (node_id != node) in szmem() 153 PFN_PHYS(end_pfn - start_pfn), node); in szmem() 167 PFN_PHYS(end_pfn - start_pfn), node); in szmem() 181 static void __init node_mem_init(unsigned int node) in node_mem_init() argument 187 node_addrspace_offset = nid_to_addroffset(node); in node_mem_init() 189 node, node_addrspace_offset); in node_mem_init() 191 get_pfn_range_for_nid(node, &start_pfn, &end_pfn); in node_mem_init() 193 if (node == 0) in node_mem_init() 196 node, start_pfn, end_pfn, freepfn); in node_mem_init() [all …]
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 128 if (ctx && ctx->node[0]) { in bdisp_hw_free_nodes() 134 ctx->node[0], ctx->node_paddr[0], &attrs); in bdisp_hw_free_nodes() 167 ctx->node[i] = base; in bdisp_hw_alloc_nodes() 169 dev_dbg(dev, "node[%d]=0x%p (paddr=%pad)\n", i, ctx->node[i], in bdisp_hw_alloc_nodes() 464 struct bdisp_node *node, in bdisp_hw_build_node() argument 479 memset(node, 0, sizeof(*node)); in bdisp_hw_build_node() 494 node->nip = 0; in bdisp_hw_build_node() 495 node->cic = BLT_CIC_ALL_GRP; in bdisp_hw_build_node() 496 node->ack = BLT_ACK_BYPASS_S2S3; in bdisp_hw_build_node() 501 node->ins = BLT_INS_S1_OFF | BLT_INS_S2_MEM | BLT_INS_S3_OFF; in bdisp_hw_build_node() [all …]
|
D | bdisp-debug.c | 322 struct bdisp_node *node; in bdisp_dbg_last_nodes() local 331 node = bdisp->dbg.copy_node[i]; in bdisp_dbg_last_nodes() 332 if (!node) in bdisp_dbg_last_nodes() 336 seq_printf(s, "NIP\t0x%08X\n", node->nip); in bdisp_dbg_last_nodes() 337 seq_printf(s, "CIC\t0x%08X\n", node->cic); in bdisp_dbg_last_nodes() 338 bdisp_dbg_dump_ins(s, node->ins); in bdisp_dbg_last_nodes() 339 seq_printf(s, "ACK\t0x%08X\n", node->ack); in bdisp_dbg_last_nodes() 341 seq_printf(s, "TBA\t0x%08X\n", node->tba); in bdisp_dbg_last_nodes() 342 bdisp_dbg_dump_tty(s, node->tty); in bdisp_dbg_last_nodes() 343 bdisp_dbg_dump_xy(s, node->txy, "TXY"); in bdisp_dbg_last_nodes() [all …]
|
/linux-4.4.14/drivers/clk/ |
D | clk-moxart.c | 19 static void __init moxart_of_pll_clk_init(struct device_node *node) in moxart_of_pll_clk_init() argument 24 const char *name = node->name; in moxart_of_pll_clk_init() 27 of_property_read_string(node, "clock-output-names", &name); in moxart_of_pll_clk_init() 28 parent_name = of_clk_get_parent_name(node, 0); in moxart_of_pll_clk_init() 30 base = of_iomap(node, 0); in moxart_of_pll_clk_init() 32 pr_err("%s: of_iomap failed\n", node->full_name); in moxart_of_pll_clk_init() 39 ref_clk = of_clk_get(node, 0); in moxart_of_pll_clk_init() 41 pr_err("%s: of_clk_get failed\n", node->full_name); in moxart_of_pll_clk_init() 47 pr_err("%s: failed to register clock\n", node->full_name); in moxart_of_pll_clk_init() 52 of_clk_add_provider(node, of_clk_src_simple_get, clk); in moxart_of_pll_clk_init() [all …]
|
D | clk-conf.c | 17 static int __set_clk_parents(struct device_node *node, bool clk_supplier) in __set_clk_parents() argument 23 num_parents = of_count_phandle_with_args(node, "assigned-clock-parents", in __set_clk_parents() 27 node->full_name); in __set_clk_parents() 30 rc = of_parse_phandle_with_args(node, "assigned-clock-parents", in __set_clk_parents() 39 if (clkspec.np == node && !clk_supplier) in __set_clk_parents() 44 index, node->full_name); in __set_clk_parents() 48 rc = of_parse_phandle_with_args(node, "assigned-clocks", in __set_clk_parents() 52 if (clkspec.np == node && !clk_supplier) { in __set_clk_parents() 59 index, node->full_name); in __set_clk_parents() 77 static int __set_clk_rates(struct device_node *node, bool clk_supplier) in __set_clk_rates() argument [all …]
|
D | clk-nspire.c | 67 static void __init nspire_ahbdiv_setup(struct device_node *node, in nspire_ahbdiv_setup() argument 73 const char *clk_name = node->name; in nspire_ahbdiv_setup() 77 io = of_iomap(node, 0); in nspire_ahbdiv_setup() 85 of_property_read_string(node, "clock-output-names", &clk_name); in nspire_ahbdiv_setup() 86 parent_name = of_clk_get_parent_name(node, 0); in nspire_ahbdiv_setup() 91 of_clk_add_provider(node, of_clk_src_simple_get, clk); in nspire_ahbdiv_setup() 94 static void __init nspire_ahbdiv_setup_cx(struct device_node *node) in nspire_ahbdiv_setup_cx() argument 96 nspire_ahbdiv_setup(node, nspire_clkinfo_cx); in nspire_ahbdiv_setup_cx() 99 static void __init nspire_ahbdiv_setup_classic(struct device_node *node) in nspire_ahbdiv_setup_classic() argument 101 nspire_ahbdiv_setup(node, nspire_clkinfo_classic); in nspire_ahbdiv_setup_classic() [all …]
|
/linux-4.4.14/arch/mips/netlogic/common/ |
D | irq.c | 81 struct nlm_soc_info *node; member 93 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_enable() 94 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable() 95 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_enable() 104 spin_lock_irqsave(&pd->node->piclock, flags); in xlp_pic_disable() 105 nlm_pic_disable_irt(pd->node->picbase, pd->irt); in xlp_pic_disable() 106 spin_unlock_irqrestore(&pd->node->piclock, flags); in xlp_pic_disable() 130 nlm_pic_ack(pd->node->picbase, pd->irt); in xlp_pic_unmask() 184 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt) in nlm_setup_pic_irq() argument 189 xirq = nlm_irq_to_xirq(node, irq); in nlm_setup_pic_irq() [all …]
|
/linux-4.4.14/drivers/firewire/ |
D | core-topology.c | 113 struct fw_node *node; in fw_node_create() local 115 node = kzalloc(sizeof(*node) + port_count * sizeof(node->ports[0]), in fw_node_create() 117 if (node == NULL) in fw_node_create() 120 node->color = color; in fw_node_create() 121 node->node_id = LOCAL_BUS | SELF_ID_PHY_ID(sid); in fw_node_create() 122 node->link_on = SELF_ID_LINK_ON(sid); in fw_node_create() 123 node->phy_speed = SELF_ID_PHY_SPEED(sid); in fw_node_create() 124 node->initiated_reset = SELF_ID_PHY_INITIATOR(sid); in fw_node_create() 125 node->port_count = port_count; in fw_node_create() 127 atomic_set(&node->ref_count, 1); in fw_node_create() [all …]
|
/linux-4.4.14/tools/perf/util/ |
D | strfilter.c | 13 static void strfilter_node__delete(struct strfilter_node *node) in strfilter_node__delete() argument 15 if (node) { in strfilter_node__delete() 16 if (node->p && !is_operator(*node->p)) in strfilter_node__delete() 17 zfree((char **)&node->p); in strfilter_node__delete() 18 strfilter_node__delete(node->l); in strfilter_node__delete() 19 strfilter_node__delete(node->r); in strfilter_node__delete() 20 free(node); in strfilter_node__delete() 65 struct strfilter_node *node = zalloc(sizeof(*node)); in strfilter_node__alloc() local 67 if (node) { in strfilter_node__alloc() 68 node->p = op; in strfilter_node__alloc() [all …]
|
D | intlist.c | 19 struct int_node *node = malloc(sizeof(*node)); in intlist__node_new() local 21 if (node != NULL) { in intlist__node_new() 22 node->i = i; in intlist__node_new() 23 node->priv = NULL; in intlist__node_new() 24 rc = &node->rb_node; in intlist__node_new() 38 struct int_node *node = container_of(rb_node, struct int_node, rb_node); in intlist__node_delete() local 40 int_node__delete(node); in intlist__node_delete() 46 struct int_node *node = container_of(rb_node, struct int_node, rb_node); in intlist__node_cmp() local 48 return node->i - i; in intlist__node_cmp() 56 void intlist__remove(struct intlist *ilist, struct int_node *node) in intlist__remove() argument [all …]
|
D | callchain.c | 244 __sort_chain_flat(struct rb_root *rb_root, struct callchain_node *node, in __sort_chain_flat() argument 250 n = rb_first(&node->rb_root_in); in __sort_chain_flat() 258 if (node->hit && node->hit >= min_hit) in __sort_chain_flat() 259 rb_insert_callchain(rb_root, node, CHAIN_FLAT); in __sort_chain_flat() 270 __sort_chain_flat(rb_root, &root->node, min_hit); in sort_chain_flat() 273 static void __sort_chain_graph_abs(struct callchain_node *node, in __sort_chain_graph_abs() argument 279 node->rb_root = RB_ROOT; in __sort_chain_graph_abs() 280 n = rb_first(&node->rb_root_in); in __sort_chain_graph_abs() 288 rb_insert_callchain(&node->rb_root, child, in __sort_chain_graph_abs() 297 __sort_chain_graph_abs(&chain_root->node, min_hit); in sort_chain_graph_abs() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/ |
D | sched.c | 151 int node; in spu_update_sched_info() local 154 node = ctx->spu->node; in spu_update_sched_info() 159 mutex_lock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info() 161 mutex_unlock(&cbe_spu_info[node].list_mutex); in spu_update_sched_info() 167 static int __node_allowed(struct spu_context *ctx, int node) in __node_allowed() argument 169 if (nr_cpus_node(node)) { in __node_allowed() 170 const struct cpumask *mask = cpumask_of_node(node); in __node_allowed() 179 static int node_allowed(struct spu_context *ctx, int node) in node_allowed() argument 184 rval = __node_allowed(ctx, node); in node_allowed() 192 int node; in do_notify_spus_active() local [all …]
|
/linux-4.4.14/mm/ |
D | interval_tree.c | 29 void vma_interval_tree_insert_after(struct vm_area_struct *node, in vma_interval_tree_insert_after() argument 35 unsigned long last = vma_last_pgoff(node); in vma_interval_tree_insert_after() 37 VM_BUG_ON_VMA(vma_start_pgoff(node) != vma_start_pgoff(prev), node); in vma_interval_tree_insert_after() 56 node->shared.rb_subtree_last = last; in vma_interval_tree_insert_after() 57 rb_link_node(&node->shared.rb, &parent->shared.rb, link); in vma_interval_tree_insert_after() 58 rb_insert_augmented(&node->shared.rb, root, in vma_interval_tree_insert_after() 76 void anon_vma_interval_tree_insert(struct anon_vma_chain *node, in INTERVAL_TREE_DEFINE() 80 node->cached_vma_start = avc_start_pgoff(node); in INTERVAL_TREE_DEFINE() 81 node->cached_vma_last = avc_last_pgoff(node); in INTERVAL_TREE_DEFINE() 83 __anon_vma_interval_tree_insert(node, root); in INTERVAL_TREE_DEFINE() [all …]
|
D | sparse-vmemmap.c | 38 static void * __init_refok __earlyonly_bootmem_alloc(int node, in __earlyonly_bootmem_alloc() argument 44 BOOTMEM_ALLOC_ACCESSIBLE, node); in __earlyonly_bootmem_alloc() 50 void * __meminit vmemmap_alloc_block(unsigned long size, int node) in vmemmap_alloc_block() argument 56 if (node_state(node, N_HIGH_MEMORY)) in vmemmap_alloc_block() 58 node, GFP_KERNEL | __GFP_ZERO | __GFP_REPEAT, in vmemmap_alloc_block() 68 return __earlyonly_bootmem_alloc(node, size, size, in vmemmap_alloc_block() 73 void * __meminit vmemmap_alloc_block_buf(unsigned long size, int node) in vmemmap_alloc_block_buf() argument 78 return vmemmap_alloc_block(size, node); in vmemmap_alloc_block_buf() 83 return vmemmap_alloc_block(size, node); in vmemmap_alloc_block_buf() 90 void __meminit vmemmap_verify(pte_t *pte, int node, in vmemmap_verify() argument [all …]
|
D | workingset.c | 310 struct radix_tree_node *node; in shadow_lru_isolate() local 326 node = container_of(item, struct radix_tree_node, private_list); in shadow_lru_isolate() 327 mapping = node->private_data; in shadow_lru_isolate() 345 BUG_ON(!node->count); in shadow_lru_isolate() 346 BUG_ON(node->count & RADIX_TREE_COUNT_MASK); in shadow_lru_isolate() 349 if (node->slots[i]) { in shadow_lru_isolate() 350 BUG_ON(!radix_tree_exceptional_entry(node->slots[i])); in shadow_lru_isolate() 351 node->slots[i] = NULL; in shadow_lru_isolate() 352 BUG_ON(node->count < (1U << RADIX_TREE_COUNT_SHIFT)); in shadow_lru_isolate() 353 node->count -= 1U << RADIX_TREE_COUNT_SHIFT; in shadow_lru_isolate() [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | auxio_32.c | 31 phandle node, auxio_nd; in auxio_probe() local 42 node = prom_getchild(prom_root_node); in auxio_probe() 43 auxio_nd = prom_searchsiblings(node, "auxiliary-io"); in auxio_probe() 45 node = prom_searchsiblings(node, "obio"); in auxio_probe() 46 node = prom_getchild(node); in auxio_probe() 47 auxio_nd = prom_searchsiblings(node, "auxio"); in auxio_probe() 53 if(prom_searchsiblings(node, "leds")) { in auxio_probe() 114 phandle node; in auxio_power_probe() local 118 node = prom_getchild(prom_root_node); in auxio_power_probe() 119 node = prom_searchsiblings(node, "obio"); in auxio_power_probe() [all …]
|
D | cpumap.c | 187 struct cpuinfo_node *node; in build_cpuinfo_tree() local 211 node = &new_tree->nodes[n]; in build_cpuinfo_tree() 218 node->id = id; in build_cpuinfo_tree() 219 node->level = level; in build_cpuinfo_tree() 220 node->num_cpus = 1; in build_cpuinfo_tree() 222 node->parent_index = (level > CPUINFO_LVL_ROOT) in build_cpuinfo_tree() 225 node->child_start = node->child_end = node->rover = in build_cpuinfo_tree() 229 prev_id[level] = node->id; in build_cpuinfo_tree() 252 node = &new_tree->nodes[level_rover[level]]; in build_cpuinfo_tree() 253 node->num_cpus = num_cpus[level]; in build_cpuinfo_tree() [all …]
|
/linux-4.4.14/drivers/iommu/ |
D | iova.c | 53 container_of(iovad->cached32_node, struct iova, node); in __get_cached_rbnode() 65 iovad->cached32_node = &new->node; in __cached_rbnode_insert_update() 77 cached_iova = container_of(curr, struct iova, node); in __cached_rbnode_delete_update() 80 struct rb_node *node = rb_next(&free->node); in __cached_rbnode_delete_update() local 81 struct iova *iova = container_of(node, struct iova, node); in __cached_rbnode_delete_update() 84 if (node && iova->pfn_lo < iovad->dma_32bit_pfn) in __cached_rbnode_delete_update() 85 iovad->cached32_node = node; in __cached_rbnode_delete_update() 116 struct iova *curr_iova = container_of(curr, struct iova, node); in __alloc_and_insert_iova_range() 163 struct iova, node); in __alloc_and_insert_iova_range() 175 rb_link_node(&new->node, parent, entry); in __alloc_and_insert_iova_range() [all …]
|
/linux-4.4.14/drivers/base/ |
D | devres.c | 26 struct devres_node node; member 32 struct devres_node node[2]; member 42 static void set_node_dbginfo(struct devres_node *node, const char *name, in set_node_dbginfo() argument 45 node->name = name; in set_node_dbginfo() 46 node->size = size; in set_node_dbginfo() 49 static void devres_log(struct device *dev, struct devres_node *node, in devres_log() argument 54 op, node, node->name, (unsigned long)node->size); in devres_log() 57 #define set_node_dbginfo(node, n, s) do {} while (0) argument 58 #define devres_log(dev, node, op) do {} while (0) argument 75 static struct devres_group * node_to_group(struct devres_node *node) in node_to_group() argument [all …]
|
D | node.c | 30 struct node *node_dev = to_node(dev); in node_read_cpumap() 227 static inline bool hugetlb_register_node(struct node *node) in hugetlb_register_node() argument 230 node_state(node->dev.id, N_MEMORY)) { in hugetlb_register_node() 231 __hugetlb_register_node(node); in hugetlb_register_node() 237 static inline void hugetlb_unregister_node(struct node *node) in hugetlb_unregister_node() argument 240 __hugetlb_unregister_node(node); in hugetlb_unregister_node() 250 static inline void hugetlb_register_node(struct node *node) {} in hugetlb_register_node() argument 252 static inline void hugetlb_unregister_node(struct node *node) {} in hugetlb_unregister_node() argument 257 struct node *node = to_node(dev); in node_device_release() local 269 flush_work(&node->node_work); in node_device_release() [all …]
|
/linux-4.4.14/arch/mips/netlogic/xlp/ |
D | usb-init-xlp2.c | 87 #define nlm_xlpii_get_usb_pcibase(node, inst) \ argument 89 XLP9XX_IO_USB_OFFSET(node, inst) : \ 90 XLP2XX_IO_USB_OFFSET(node, inst)) 91 #define nlm_xlpii_get_usb_regbase(node, inst) \ argument 92 (nlm_xlpii_get_usb_pcibase(node, inst) + XLP_IO_PCI_HDRSZ) 118 int node, irq; in xlp9xx_usb_ack() local 122 node = data->irq / NLM_IRQS_PER_NODE; in xlp9xx_usb_ack() 126 port_addr = nlm_xlpii_get_usb_regbase(node, 1); in xlp9xx_usb_ack() 129 port_addr = nlm_xlpii_get_usb_regbase(node, 2); in xlp9xx_usb_ack() 132 port_addr = nlm_xlpii_get_usb_regbase(node, 3); in xlp9xx_usb_ack() [all …]
|
D | nlm_hal.c | 52 void nlm_node_init(int node) in nlm_node_init() argument 56 nodep = nlm_get_node(node); in nlm_node_init() 57 if (node == 0) in nlm_node_init() 59 nodep->sysbase = nlm_get_sys_regbase(node); in nlm_node_init() 60 nodep->picbase = nlm_get_pic_regbase(node); in nlm_node_init() 63 nodep->socbus = xlp9xx_get_socbus(node); in nlm_node_init() 228 static unsigned int nlm_xlp2_get_core_frequency(int node, int core) in nlm_xlp2_get_core_frequency() argument 234 clockbase = nlm_get_clock_regbase(node); in nlm_xlp2_get_core_frequency() 240 sysbase = nlm_get_node(node)->sysbase; in nlm_xlp2_get_core_frequency() 274 static unsigned int nlm_xlp_get_core_frequency(int node, int core) in nlm_xlp_get_core_frequency() argument [all …]
|
D | ahci-init-xlp2.c | 145 #define nlm_get_sata_pcibase(node) \ argument 146 nlm_pcicfg_base(XLP9XX_IO_SATA_OFFSET(node)) 147 #define nlm_get_sata_regbase(node) \ argument 148 (nlm_get_sata_pcibase(node) + 0x100) 253 static void nlm_sata_firmware_init(int node) in nlm_sata_firmware_init() argument 260 regbase = nlm_get_sata_regbase(node); in nlm_sata_firmware_init() 335 int node; in nlm_ahci_init() local 339 for (node = 0; node < NLM_NR_NODES; node++) in nlm_ahci_init() 340 if (nlm_node_present(node)) in nlm_ahci_init() 341 nlm_sata_firmware_init(node); in nlm_ahci_init() [all …]
|
/linux-4.4.14/kernel/locking/ |
D | osq_lock.c | 37 struct optimistic_spin_node *node, in osq_wait_next() argument 72 if (node->next) { in osq_wait_next() 73 next = xchg(&node->next, NULL); in osq_wait_next() 86 struct optimistic_spin_node *node = this_cpu_ptr(&osq_node); in osq_lock() local 91 node->locked = 0; in osq_lock() 92 node->next = NULL; in osq_lock() 93 node->cpu = curr; in osq_lock() 106 node->prev = prev; in osq_lock() 107 WRITE_ONCE(prev->next, node); in osq_lock() 118 while (!READ_ONCE(node->locked)) { in osq_lock() [all …]
|
D | qspinlock_paravirt.h | 61 struct pv_node *node; member 99 static struct qspinlock **pv_hash(struct qspinlock *lock, struct pv_node *node) in pv_hash() argument 106 WRITE_ONCE(he->node, node); in pv_hash() 127 struct pv_node *node; in pv_unhash() local 131 node = READ_ONCE(he->node); in pv_unhash() 133 return node; in pv_unhash() 149 static void pv_init_node(struct mcs_spinlock *node) in pv_init_node() argument 151 struct pv_node *pn = (struct pv_node *)node; in pv_init_node() 164 static void pv_wait_node(struct mcs_spinlock *node) in pv_wait_node() argument 166 struct pv_node *pn = (struct pv_node *)node; in pv_wait_node() [all …]
|
D | mcs_spinlock.h | 62 void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_lock() argument 67 node->locked = 0; in mcs_spin_lock() 68 node->next = NULL; in mcs_spin_lock() 76 prev = xchg(lock, node); in mcs_spin_lock() 88 WRITE_ONCE(prev->next, node); in mcs_spin_lock() 91 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock() 99 void mcs_spin_unlock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_unlock() argument 101 struct mcs_spinlock *next = READ_ONCE(node->next); in mcs_spin_unlock() 107 if (likely(cmpxchg_release(lock, node, NULL) == node)) in mcs_spin_unlock() 110 while (!(next = READ_ONCE(node->next))) in mcs_spin_unlock()
|
D | qspinlock.c | 240 static __always_inline void __pv_init_node(struct mcs_spinlock *node) { } in __pv_init_node() argument 241 static __always_inline void __pv_wait_node(struct mcs_spinlock *node) { } in __pv_wait_node() argument 243 struct mcs_spinlock *node) { } in __pv_kick_node() argument 245 struct mcs_spinlock *node) { } in __pv_wait_head() argument 283 struct mcs_spinlock *prev, *next, *node; in queued_spin_lock_slowpath() local 361 node = this_cpu_ptr(&mcs_nodes[0]); in queued_spin_lock_slowpath() 362 idx = node->count++; in queued_spin_lock_slowpath() 365 node += idx; in queued_spin_lock_slowpath() 366 node->locked = 0; in queued_spin_lock_slowpath() 367 node->next = NULL; in queued_spin_lock_slowpath() [all …]
|
/linux-4.4.14/fs/btrfs/ |
D | ulist.c | 63 struct ulist_node *node; in ulist_fini() local 66 list_for_each_entry_safe(node, next, &ulist->nodes, list) { in ulist_fini() 67 kfree(node); in ulist_fini() 135 static void ulist_rbtree_erase(struct ulist *ulist, struct ulist_node *node) in ulist_rbtree_erase() argument 137 rb_erase(&node->rb_node, &ulist->root); in ulist_rbtree_erase() 138 list_del(&node->list); in ulist_rbtree_erase() 139 kfree(node); in ulist_rbtree_erase() 195 struct ulist_node *node; in ulist_add_merge() local 197 node = ulist_rbtree_search(ulist, val); in ulist_add_merge() 198 if (node) { in ulist_add_merge() [all …]
|
D | delayed-inode.c | 92 struct btrfs_delayed_node *node; in btrfs_get_delayed_node() local 94 node = ACCESS_ONCE(btrfs_inode->delayed_node); in btrfs_get_delayed_node() 95 if (node) { in btrfs_get_delayed_node() 96 atomic_inc(&node->refs); in btrfs_get_delayed_node() 97 return node; in btrfs_get_delayed_node() 101 node = radix_tree_lookup(&root->delayed_nodes_tree, ino); in btrfs_get_delayed_node() 102 if (node) { in btrfs_get_delayed_node() 104 atomic_inc(&node->refs); /* can be accessed */ in btrfs_get_delayed_node() 105 BUG_ON(btrfs_inode->delayed_node != node); in btrfs_get_delayed_node() 107 return node; in btrfs_get_delayed_node() [all …]
|
D | delayed-ref.h | 92 struct btrfs_delayed_ref_node node; member 143 struct btrfs_delayed_ref_node node; member 150 struct btrfs_delayed_ref_node node; member 286 static int btrfs_delayed_ref_is_head(struct btrfs_delayed_ref_node *node) in btrfs_delayed_ref_is_head() argument 288 return node->is_head; in btrfs_delayed_ref_is_head() 295 btrfs_delayed_node_to_tree_ref(struct btrfs_delayed_ref_node *node) in btrfs_delayed_node_to_tree_ref() argument 297 WARN_ON(btrfs_delayed_ref_is_head(node)); in btrfs_delayed_node_to_tree_ref() 298 return container_of(node, struct btrfs_delayed_tree_ref, node); in btrfs_delayed_node_to_tree_ref() 302 btrfs_delayed_node_to_data_ref(struct btrfs_delayed_ref_node *node) in btrfs_delayed_node_to_data_ref() argument 304 WARN_ON(btrfs_delayed_ref_is_head(node)); in btrfs_delayed_node_to_data_ref() [all …]
|
D | relocation.c | 92 struct backref_node *node[2]; member 197 struct backref_node *node); 199 struct backref_node *node); 220 struct backref_node *node; in backref_cache_cleanup() local 224 node = list_entry(cache->detached.next, in backref_cache_cleanup() 226 remove_backref_node(cache, node); in backref_cache_cleanup() 230 node = list_entry(cache->leaves.next, in backref_cache_cleanup() 232 remove_backref_node(cache, node); in backref_cache_cleanup() 248 struct backref_node *node; in alloc_backref_node() local 250 node = kzalloc(sizeof(*node), GFP_NOFS); in alloc_backref_node() [all …]
|
/linux-4.4.14/drivers/pnp/pnpbios/ |
D | core.c | 204 struct pnp_bios_node *node; in pnpbios_get_resources() local 210 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_get_resources() 211 if (!node) in pnpbios_get_resources() 213 if (pnp_bios_get_dev_node(&nodenum, (char)PNPMODE_DYNAMIC, node)) { in pnpbios_get_resources() 214 kfree(node); in pnpbios_get_resources() 217 pnpbios_read_resources_from_node(dev, node); in pnpbios_get_resources() 219 kfree(node); in pnpbios_get_resources() 226 struct pnp_bios_node *node; in pnpbios_set_resources() local 233 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_set_resources() 234 if (!node) in pnpbios_set_resources() [all …]
|
D | proc.c | 176 struct pnp_bios_node *node; in pnp_devices_proc_show() local 179 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnp_devices_proc_show() 180 if (!node) in pnp_devices_proc_show() 186 if (pnp_bios_get_dev_node(&nodenum, PNPMODE_DYNAMIC, node)) in pnp_devices_proc_show() 189 node->handle, node->eisa_id, in pnp_devices_proc_show() 190 node->type_code, node->flags); in pnp_devices_proc_show() 200 kfree(node); in pnp_devices_proc_show() 220 struct pnp_bios_node *node; in pnpbios_proc_show() local 225 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_proc_show() 226 if (!node) in pnpbios_proc_show() [all …]
|
/linux-4.4.14/drivers/clk/keystone/ |
D | pll.c | 162 static void __init _of_pll_clk_init(struct device_node *node, bool pllctrl) in _of_pll_clk_init() argument 175 parent_name = of_clk_get_parent_name(node, 0); in _of_pll_clk_init() 176 if (of_property_read_u32(node, "fixed-postdiv", &pll_data->postdiv)) { in _of_pll_clk_init() 185 i = of_property_match_string(node, "reg-names", in _of_pll_clk_init() 187 pll_data->pllod = of_iomap(node, i); in _of_pll_clk_init() 190 i = of_property_match_string(node, "reg-names", "control"); in _of_pll_clk_init() 191 pll_data->pll_ctl0 = of_iomap(node, i); in _of_pll_clk_init() 206 i = of_property_match_string(node, "reg-names", "multiplier"); in _of_pll_clk_init() 207 pll_data->pllm = of_iomap(node, i); in _of_pll_clk_init() 215 clk = clk_register_pll(NULL, node->name, parent_name, pll_data); in _of_pll_clk_init() [all …]
|
/linux-4.4.14/security/selinux/ |
D | netnode.c | 117 struct sel_netnode *node; in sel_netnode_find() local 131 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) in sel_netnode_find() 132 if (node->nsec.family == family) in sel_netnode_find() 135 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find() 136 return node; in sel_netnode_find() 139 if (ipv6_addr_equal(&node->nsec.addr.ipv6, in sel_netnode_find() 141 return node; in sel_netnode_find() 156 static void sel_netnode_insert(struct sel_netnode *node) in sel_netnode_insert() argument 160 switch (node->nsec.family) { in sel_netnode_insert() 162 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert() [all …]
|
D | avc.c | 207 struct avc_node *node; in avc_get_hash_stats() local 219 hlist_for_each_entry_rcu(node, head, list) in avc_get_hash_stats() 381 static int avc_add_xperms_decision(struct avc_node *node, in avc_add_xperms_decision() argument 386 node->ae.xp_node->xp.len++; in avc_add_xperms_decision() 391 list_add(&dest_xpd->xpd_list, &node->ae.xp_node->xpd_head); in avc_add_xperms_decision() 407 static int avc_xperms_populate(struct avc_node *node, in avc_xperms_populate() argument 431 node->ae.xp_node = dest; in avc_xperms_populate() 487 struct avc_node *node = container_of(rhead, struct avc_node, rhead); in avc_node_free() local 488 avc_xperms_free(node->ae.xp_node); in avc_node_free() 489 kmem_cache_free(avc_node_cachep, node); in avc_node_free() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/core/ |
D | mm.c | 26 #define node(root, dir) ((root)->nl_entry.dir == &mm->nodes) ? NULL : \ macro 32 struct nvkm_mm_node *node; in nvkm_mm_dump() local 36 list_for_each_entry(node, &mm->nodes, nl_entry) { in nvkm_mm_dump() 38 node->offset, node->length, node->type); in nvkm_mm_dump() 41 list_for_each_entry(node, &mm->free, fl_entry) { in nvkm_mm_dump() 43 node->offset, node->length, node->type); in nvkm_mm_dump() 53 struct nvkm_mm_node *prev = node(this, prev); in nvkm_mm_free() 54 struct nvkm_mm_node *next = node(this, next); in nvkm_mm_free() 129 prev = node(this, prev); in nvkm_mm_head() 133 next = node(this, next); in nvkm_mm_head() [all …]
|
/linux-4.4.14/drivers/media/v4l2-core/ |
D | v4l2-of.c | 23 static int v4l2_of_parse_csi_bus(const struct device_node *node, in v4l2_of_parse_csi_bus() argument 32 prop = of_find_property(node, "data-lanes", NULL); in v4l2_of_parse_csi_bus() 46 prop = of_find_property(node, "lane-polarities", NULL); in v4l2_of_parse_csi_bus() 60 node->full_name, 1 + bus->num_data_lanes, i); in v4l2_of_parse_csi_bus() 65 if (!of_property_read_u32(node, "clock-lanes", &v)) { in v4l2_of_parse_csi_bus() 70 if (of_get_property(node, "clock-noncontinuous", &v)) in v4l2_of_parse_csi_bus() 81 static void v4l2_of_parse_parallel_bus(const struct device_node *node, in v4l2_of_parse_parallel_bus() argument 88 if (!of_property_read_u32(node, "hsync-active", &v)) in v4l2_of_parse_parallel_bus() 92 if (!of_property_read_u32(node, "vsync-active", &v)) in v4l2_of_parse_parallel_bus() 96 if (!of_property_read_u32(node, "field-even-active", &v)) in v4l2_of_parse_parallel_bus() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_sgdma.c | 12 struct nvkm_mem *node; member 30 struct nvkm_mem *node = mem->mm_node; in nv04_sgdma_bind() local 33 node->sg = ttm->sg; in nv04_sgdma_bind() 34 node->pages = NULL; in nv04_sgdma_bind() 36 node->sg = NULL; in nv04_sgdma_bind() 37 node->pages = nvbe->ttm.dma_address; in nv04_sgdma_bind() 39 node->size = (mem->num_pages << PAGE_SHIFT) >> 12; in nv04_sgdma_bind() 41 nvkm_vm_map(&node->vma[0], node); in nv04_sgdma_bind() 42 nvbe->node = node; in nv04_sgdma_bind() 50 nvkm_vm_unmap(&nvbe->node->vma[0]); in nv04_sgdma_unbind() [all …]
|
D | nouveau_ttm.c | 52 nvkm_mem_node_cleanup(struct nvkm_mem *node) in nvkm_mem_node_cleanup() argument 54 if (node->vma[0].node) { in nvkm_mem_node_cleanup() 55 nvkm_vm_unmap(&node->vma[0]); in nvkm_mem_node_cleanup() 56 nvkm_vm_put(&node->vma[0]); in nvkm_mem_node_cleanup() 59 if (node->vma[1].node) { in nvkm_mem_node_cleanup() 60 nvkm_vm_unmap(&node->vma[1]); in nvkm_mem_node_cleanup() 61 nvkm_vm_put(&node->vma[1]); in nvkm_mem_node_cleanup() 84 struct nvkm_mem *node; in nouveau_vram_manager_new() local 96 (nvbo->tile_flags >> 8) & 0x3ff, &node); in nouveau_vram_manager_new() 102 node->page_shift = nvbo->page_shift; in nouveau_vram_manager_new() [all …]
|
/linux-4.4.14/drivers/net/wan/ |
D | hd64570.h | 130 #define DSR_RX(node) (DSR + (node ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)) argument 131 #define DSR_TX(node) (DSR + (node ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)) argument 133 #define DMR_RX(node) (DMR + (node ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)) argument 134 #define DMR_TX(node) (DMR + (node ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)) argument 136 #define FCT_RX(node) (FCT + (node ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)) argument 137 #define FCT_TX(node) (FCT + (node ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)) argument 139 #define DIR_RX(node) (DIR + (node ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)) argument 140 #define DIR_TX(node) (DIR + (node ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)) argument 142 #define DCR_RX(node) (DCR + (node ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)) argument 143 #define DCR_TX(node) (DCR + (node ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)) argument
|
/linux-4.4.14/drivers/clk/ti/ |
D | dpll.c | 144 struct device_node *node) in _register_dpll() argument 150 dd->clk_ref = of_clk_get(node, 0); in _register_dpll() 151 dd->clk_bypass = of_clk_get(node, 1); in _register_dpll() 155 node->name); in _register_dpll() 156 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll() 167 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_dpll() 289 static void _register_dpll_x2(struct device_node *node, in _register_dpll_x2() argument 296 const char *name = node->name; in _register_dpll_x2() 299 parent_name = of_clk_get_parent_name(node, 0); in _register_dpll_x2() 301 pr_err("%s must have parent\n", node->name); in _register_dpll_x2() [all …]
|
D | gate.c | 214 static void __init _of_ti_gate_clk_setup(struct device_node *node, in _of_ti_gate_clk_setup() argument 227 reg = ti_clk_get_reg_addr(node, 0); in _of_ti_gate_clk_setup() 231 if (!of_property_read_u32(node, "ti,bit-shift", &val)) in _of_ti_gate_clk_setup() 235 if (of_clk_get_parent_count(node) != 1) { in _of_ti_gate_clk_setup() 236 pr_err("%s must have 1 parent\n", node->name); in _of_ti_gate_clk_setup() 240 parent_name = of_clk_get_parent_name(node, 0); in _of_ti_gate_clk_setup() 242 if (of_property_read_bool(node, "ti,set-rate-parent")) in _of_ti_gate_clk_setup() 245 if (of_property_read_bool(node, "ti,set-bit-to-disable")) in _of_ti_gate_clk_setup() 248 clk = _register_gate(NULL, node->name, parent_name, flags, reg, in _of_ti_gate_clk_setup() 252 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _of_ti_gate_clk_setup() [all …]
|
D | interface.c | 104 static void __init _of_ti_interface_clk_setup(struct device_node *node, in _of_ti_interface_clk_setup() argument 113 reg = ti_clk_get_reg_addr(node, 0); in _of_ti_interface_clk_setup() 117 if (!of_property_read_u32(node, "ti,bit-shift", &val)) in _of_ti_interface_clk_setup() 120 parent_name = of_clk_get_parent_name(node, 0); in _of_ti_interface_clk_setup() 122 pr_err("%s must have a parent\n", node->name); in _of_ti_interface_clk_setup() 126 clk = _register_interface(NULL, node->name, parent_name, reg, in _of_ti_interface_clk_setup() 130 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _of_ti_interface_clk_setup() 133 static void __init of_ti_interface_clk_setup(struct device_node *node) in of_ti_interface_clk_setup() argument 135 _of_ti_interface_clk_setup(node, &clkhwops_iclk_wait); in of_ti_interface_clk_setup() 140 static void __init of_ti_no_wait_interface_clk_setup(struct device_node *node) in of_ti_no_wait_interface_clk_setup() argument [all …]
|
D | composite.c | 66 struct device_node *node; member 78 static struct device_node *_get_component_node(struct device_node *node, int i) in _get_component_node() argument 83 rc = of_parse_phandle_with_args(node, "clocks", "#clock-cells", i, in _get_component_node() 91 static struct component_clk *_lookup_component(struct device_node *node) in _lookup_component() argument 96 if (comp->node == node) in _lookup_component() 160 struct device_node *node) in _register_composite() argument 177 cclk->comp_nodes[i]->name, node->name); in _register_composite() 178 if (!ti_clk_retry_init(node, hw, in _register_composite() 186 node->name, component_clk_types[comp->type]); in _register_composite() 209 pr_err("%s: no parents found for %s!\n", __func__, node->name); in _register_composite() [all …]
|
D | fixed-factor.c | 36 static void __init of_ti_fixed_factor_clk_setup(struct device_node *node) in of_ti_fixed_factor_clk_setup() argument 39 const char *clk_name = node->name; in of_ti_fixed_factor_clk_setup() 44 if (of_property_read_u32(node, "ti,clock-div", &div)) { in of_ti_fixed_factor_clk_setup() 45 pr_err("%s must have a clock-div property\n", node->name); in of_ti_fixed_factor_clk_setup() 49 if (of_property_read_u32(node, "ti,clock-mult", &mult)) { in of_ti_fixed_factor_clk_setup() 50 pr_err("%s must have a clock-mult property\n", node->name); in of_ti_fixed_factor_clk_setup() 54 if (of_property_read_bool(node, "ti,set-rate-parent")) in of_ti_fixed_factor_clk_setup() 57 parent_name = of_clk_get_parent_name(node, 0); in of_ti_fixed_factor_clk_setup() 63 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_ti_fixed_factor_clk_setup() 64 of_ti_clk_autoidle_setup(node); in of_ti_fixed_factor_clk_setup()
|
D | apll.c | 137 struct device_node *node) in omap_clk_register_apll() argument 143 ad->clk_ref = of_clk_get(node, 0); in omap_clk_register_apll() 144 ad->clk_bypass = of_clk_get(node, 1); in omap_clk_register_apll() 148 node->name); in omap_clk_register_apll() 149 if (!ti_clk_retry_init(node, hw, omap_clk_register_apll)) in omap_clk_register_apll() 157 of_clk_add_provider(node, of_clk_src_simple_get, clk); in omap_clk_register_apll() 170 static void __init of_dra7_apll_setup(struct device_node *node) in of_dra7_apll_setup() argument 187 init->name = node->name; in of_dra7_apll_setup() 190 init->num_parents = of_clk_get_parent_count(node); in of_dra7_apll_setup() 192 pr_err("dra7 apll %s must have parent(s)\n", node->name); in of_dra7_apll_setup() [all …]
|
D | autoidle.c | 32 struct list_head node; member 110 list_for_each_entry(c, &autoidle_clks, node) in _clk_generic_allow_autoidle_all() 124 list_for_each_entry(c, &autoidle_clks, node) in _clk_generic_deny_autoidle_all() 139 int __init of_ti_clk_autoidle_setup(struct device_node *node) in of_ti_clk_autoidle_setup() argument 145 if (of_property_read_u32(node, "ti,autoidle-shift", &shift)) in of_ti_clk_autoidle_setup() 154 clk->name = node->name; in of_ti_clk_autoidle_setup() 155 clk->reg = ti_clk_get_reg_addr(node, 0); in of_ti_clk_autoidle_setup() 162 if (of_property_read_bool(node, "ti,invert-autoidle-bit")) in of_ti_clk_autoidle_setup() 165 list_add(&clk->node, &autoidle_clks); in of_ti_clk_autoidle_setup() 187 list_add(&c->node, &clk_hw_omap_clocks); in omap2_init_clk_hw_omap_clocks() [all …]
|
/linux-4.4.14/security/selinux/ss/ |
D | conditional.c | 90 int evaluate_cond_node(struct policydb *p, struct cond_node *node) in evaluate_cond_node() argument 95 new_state = cond_evaluate_expr(p, node->expr); in evaluate_cond_node() 96 if (new_state != node->cur_state) { in evaluate_cond_node() 97 node->cur_state = new_state; in evaluate_cond_node() 101 for (cur = node->true_list; cur; cur = cur->next) { in evaluate_cond_node() 103 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node() 105 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node() 108 for (cur = node->false_list; cur; cur = cur->next) { in evaluate_cond_node() 111 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node() 113 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node() [all …]
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_mn.c | 49 struct hlist_node node; member 72 struct radeon_mn_node *node, *next_node; in radeon_mn_destroy() local 77 hash_del(&rmn->node); in radeon_mn_destroy() 78 rbtree_postorder_for_each_entry_safe(node, next_node, &rmn->objects, in radeon_mn_destroy() 81 interval_tree_remove(&node->it, &rmn->objects); in radeon_mn_destroy() 82 list_for_each_entry_safe(bo, next_bo, &node->bos, mn_list) { in radeon_mn_destroy() 86 kfree(node); in radeon_mn_destroy() 136 struct radeon_mn_node *node; in radeon_mn_invalidate_range_start() local 140 node = container_of(it, struct radeon_mn_node, it); in radeon_mn_invalidate_range_start() 143 list_for_each_entry(bo, &node->bos, mn_list) { in radeon_mn_invalidate_range_start() [all …]
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_mn.c | 49 struct hlist_node node; member 72 struct amdgpu_mn_node *node, *next_node; in amdgpu_mn_destroy() local 77 hash_del(&rmn->node); in amdgpu_mn_destroy() 78 rbtree_postorder_for_each_entry_safe(node, next_node, &rmn->objects, in amdgpu_mn_destroy() 81 interval_tree_remove(&node->it, &rmn->objects); in amdgpu_mn_destroy() 82 list_for_each_entry_safe(bo, next_bo, &node->bos, mn_list) { in amdgpu_mn_destroy() 86 kfree(node); in amdgpu_mn_destroy() 136 struct amdgpu_mn_node *node; in amdgpu_mn_invalidate_range_start() local 140 node = container_of(it, struct amdgpu_mn_node, it); in amdgpu_mn_invalidate_range_start() 143 list_for_each_entry(bo, &node->bos, mn_list) { in amdgpu_mn_invalidate_range_start() [all …]
|
/linux-4.4.14/drivers/clk/sunxi/ |
D | clk-sun9i-core.c | 91 static void __init sun9i_a80_pll4_setup(struct device_node *node) in sun9i_a80_pll4_setup() argument 95 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_pll4_setup() 98 node->name); in sun9i_a80_pll4_setup() 102 sunxi_factors_register(node, &sun9i_a80_pll4_data, in sun9i_a80_pll4_setup() 151 static void __init sun9i_a80_gt_setup(struct device_node *node) in sun9i_a80_gt_setup() argument 156 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_gt_setup() 159 node->name); in sun9i_a80_gt_setup() 163 gt = sunxi_factors_register(node, &sun9i_a80_gt_data, in sun9i_a80_gt_setup() 216 static void __init sun9i_a80_ahb_setup(struct device_node *node) in sun9i_a80_ahb_setup() argument 220 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_ahb_setup() [all …]
|
D | clk-usb.c | 96 static void __init sunxi_usb_clk_setup(struct device_node *node, in sunxi_usb_clk_setup() argument 109 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sunxi_usb_clk_setup() 113 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_usb_clk_setup() 133 of_property_read_string_index(node, "clock-output-names", in sunxi_usb_clk_setup() 146 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sunxi_usb_clk_setup() 157 reset_data->clk = of_clk_get(node, 0); in sunxi_usb_clk_setup() 169 reset_data->rcdev.of_node = node; in sunxi_usb_clk_setup() 180 static void __init sun4i_a10_usb_setup(struct device_node *node) in sun4i_a10_usb_setup() argument 182 sunxi_usb_clk_setup(node, &sun4i_a10_usb_clk_data, &sun4i_a10_usb_lock); in sun4i_a10_usb_setup() 191 static void __init sun5i_a13_usb_setup(struct device_node *node) in sun5i_a13_usb_setup() argument [all …]
|
D | clk-mod0.c | 82 static void __init sun4i_a10_mod0_setup(struct device_node *node) in sun4i_a10_mod0_setup() argument 86 reg = of_iomap(node, 0); in sun4i_a10_mod0_setup() 96 sunxi_factors_register(node, &sun4i_a10_mod0_data, in sun4i_a10_mod0_setup() 142 static void __init sun9i_a80_mod0_setup(struct device_node *node) in sun9i_a80_mod0_setup() argument 146 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_mod0_setup() 149 node->name); in sun9i_a80_mod0_setup() 153 sunxi_factors_register(node, &sun9i_a80_mod0_data, in sun9i_a80_mod0_setup() 160 static void __init sun5i_a13_mbus_setup(struct device_node *node) in sun5i_a13_mbus_setup() argument 165 reg = of_iomap(node, 0); in sun5i_a13_mbus_setup() 171 mbus = sunxi_factors_register(node, &sun4i_a10_mod0_data, in sun5i_a13_mbus_setup() [all …]
|
D | clk-simple-gates.c | 26 static void __init sunxi_simple_gates_setup(struct device_node *node, in sunxi_simple_gates_setup() argument 41 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sunxi_simple_gates_setup() 45 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_simple_gates_setup() 51 number = of_property_count_u32_elems(node, "clock-indices"); in sunxi_simple_gates_setup() 52 of_property_read_u32_index(node, "clock-indices", number - 1, &number); in sunxi_simple_gates_setup() 58 of_property_for_each_u32(node, "clock-indices", prop, p, index) { in sunxi_simple_gates_setup() 59 of_property_read_string_index(node, "clock-output-names", in sunxi_simple_gates_setup() 84 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sunxi_simple_gates_setup() 92 of_address_to_resource(node, 0, &res); in sunxi_simple_gates_setup() 96 static void __init sunxi_simple_gates_init(struct device_node *node) in sunxi_simple_gates_init() argument [all …]
|
D | clk-a10-pll2.c | 46 static void __init sun4i_pll2_setup(struct device_node *node, in sun4i_pll2_setup() argument 49 const char *clk_name = node->name, *parent; in sun4i_pll2_setup() 57 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun4i_pll2_setup() 69 parent = of_clk_get_parent_name(node, 0); in sun4i_pll2_setup() 128 of_property_read_string_index(node, "clock-output-names", in sun4i_pll2_setup() 143 of_property_read_string_index(node, "clock-output-names", in sun4i_pll2_setup() 152 of_property_read_string_index(node, "clock-output-names", in sun4i_pll2_setup() 161 of_property_read_string_index(node, "clock-output-names", in sun4i_pll2_setup() 171 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sun4i_pll2_setup() 189 static void __init sun4i_a10_pll2_setup(struct device_node *node) in sun4i_a10_pll2_setup() argument [all …]
|
D | clk-a10-codec.c | 23 static void __init sun4i_codec_clk_setup(struct device_node *node) in sun4i_codec_clk_setup() argument 26 const char *clk_name = node->name, *parent_name; in sun4i_codec_clk_setup() 29 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun4i_codec_clk_setup() 33 of_property_read_string(node, "clock-output-names", &clk_name); in sun4i_codec_clk_setup() 34 parent_name = of_clk_get_parent_name(node, 0); in sun4i_codec_clk_setup() 41 of_clk_add_provider(node, of_clk_src_simple_get, clk); in sun4i_codec_clk_setup()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | fsl_soc.c | 112 struct device_node *node; in get_brgfreq() local 119 node = of_find_compatible_node(NULL, NULL, "fsl,cpm-brg"); in get_brgfreq() 120 if (node) { in get_brgfreq() 121 prop = of_get_property(node, "clock-frequency", &size); in get_brgfreq() 125 of_node_put(node); in get_brgfreq() 130 node = of_find_node_by_type(NULL, "cpm"); in get_brgfreq() 131 if (!node) in get_brgfreq() 132 node = of_find_compatible_node(NULL, NULL, "fsl,qe"); in get_brgfreq() 133 if (!node) in get_brgfreq() 134 node = of_find_node_by_type(NULL, "qe"); in get_brgfreq() [all …]
|
D | mpc5xxx_clocks.c | 14 unsigned long mpc5xxx_get_bus_frequency(struct device_node *node) in mpc5xxx_get_bus_frequency() argument 18 of_node_get(node); in mpc5xxx_get_bus_frequency() 19 while (node) { in mpc5xxx_get_bus_frequency() 20 p_bus_freq = of_get_property(node, "bus-frequency", NULL); in mpc5xxx_get_bus_frequency() 24 node = of_get_next_parent(node); in mpc5xxx_get_bus_frequency() 26 of_node_put(node); in mpc5xxx_get_bus_frequency()
|
/linux-4.4.14/fs/nilfs2/ |
D | btree.c | 86 static int nilfs_btree_node_get_flags(const struct nilfs_btree_node *node) in nilfs_btree_node_get_flags() argument 88 return node->bn_flags; in nilfs_btree_node_get_flags() 92 nilfs_btree_node_set_flags(struct nilfs_btree_node *node, int flags) in nilfs_btree_node_set_flags() argument 94 node->bn_flags = flags; in nilfs_btree_node_set_flags() 97 static int nilfs_btree_node_root(const struct nilfs_btree_node *node) in nilfs_btree_node_root() argument 99 return nilfs_btree_node_get_flags(node) & NILFS_BTREE_NODE_ROOT; in nilfs_btree_node_root() 102 static int nilfs_btree_node_get_level(const struct nilfs_btree_node *node) in nilfs_btree_node_get_level() argument 104 return node->bn_level; in nilfs_btree_node_get_level() 108 nilfs_btree_node_set_level(struct nilfs_btree_node *node, int level) in nilfs_btree_node_set_level() argument 110 node->bn_level = level; in nilfs_btree_node_set_level() [all …]
|
/linux-4.4.14/drivers/bus/ |
D | vexpress-config.c | 53 static void vexpress_config_find_prop(struct device_node *node, in vexpress_config_find_prop() argument 59 of_node_get(node); in vexpress_config_find_prop() 60 while (node) { in vexpress_config_find_prop() 61 if (of_property_read_u32(node, name, val) == 0) { in vexpress_config_find_prop() 62 of_node_put(node); in vexpress_config_find_prop() 65 node = of_get_next_parent(node); in vexpress_config_find_prop() 69 int vexpress_config_get_topo(struct device_node *node, u32 *site, in vexpress_config_get_topo() argument 72 vexpress_config_find_prop(node, "arm,vexpress,site", site); in vexpress_config_get_topo() 77 vexpress_config_find_prop(node, "arm,vexpress,position", position); in vexpress_config_get_topo() 78 vexpress_config_find_prop(node, "arm,vexpress,dcc", dcc); in vexpress_config_get_topo() [all …]
|
/linux-4.4.14/drivers/acpi/ |
D | numa.c | 54 int node_to_pxm(int node) in node_to_pxm() argument 56 if (node < 0) in node_to_pxm() 58 return node_to_pxm_map[node]; in node_to_pxm() 61 static void __acpi_map_pxm_to_node(int pxm, int node) in __acpi_map_pxm_to_node() argument 63 if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm]) in __acpi_map_pxm_to_node() 64 pxm_to_node_map[pxm] = node; in __acpi_map_pxm_to_node() 65 if (node_to_pxm_map[node] == PXM_INVAL || pxm < node_to_pxm_map[node]) in __acpi_map_pxm_to_node() 66 node_to_pxm_map[node] = pxm; in __acpi_map_pxm_to_node() 71 int node; in acpi_map_pxm_to_node() local 76 node = pxm_to_node_map[pxm]; in acpi_map_pxm_to_node() [all …]
|
D | wakeup.c | 32 struct list_head *node, *next; in acpi_enable_wakeup_devices() local 34 list_for_each_safe(node, next, &acpi_wakeup_device_list) { in acpi_enable_wakeup_devices() 36 container_of(node, struct acpi_device, wakeup_list); in acpi_enable_wakeup_devices() 59 struct list_head *node, *next; in acpi_disable_wakeup_devices() local 61 list_for_each_safe(node, next, &acpi_wakeup_device_list) { in acpi_disable_wakeup_devices() 63 container_of(node, struct acpi_device, wakeup_list); in acpi_disable_wakeup_devices() 81 struct list_head *node, *next; in acpi_wakeup_device_init() local 84 list_for_each_safe(node, next, &acpi_wakeup_device_list) { in acpi_wakeup_device_init() 85 struct acpi_device *dev = container_of(node, in acpi_wakeup_device_init()
|
/linux-4.4.14/drivers/misc/mic/scif/ |
D | scif_nm.c | 27 static void scif_invalidate_ep(int node) in scif_invalidate_ep() argument 36 if (ep->remote_dev->node == node) { in scif_invalidate_ep() 45 if (ep->remote_dev->node == node) { in scif_invalidate_ep() 96 msg.src.node = scif_info.nodeid; in scif_send_acks() 97 msg.dst.node = SCIF_MGMT_NODE; in scif_send_acks() 98 msg.payload[0] = dev->node; in scif_send_acks() 104 msg.src.node = scif_info.nodeid; in scif_send_acks() 105 msg.dst.node = dev->node; in scif_send_acks() 132 scif_invalidate_ep(dev->node); in scif_cleanup_scifdev() 133 scif_zap_mmaps(dev->node); in scif_cleanup_scifdev() [all …]
|
/linux-4.4.14/drivers/xen/xenbus/ |
D | xenbus_client.c | 122 watch->node = path; in xenbus_watch_path() 128 watch->node = NULL; in xenbus_watch_path() 546 struct xenbus_map_node *node; in xenbus_map_ring_valloc_pv() local 559 node = kzalloc(sizeof(*node), GFP_KERNEL); in xenbus_map_ring_valloc_pv() 560 if (!node) in xenbus_map_ring_valloc_pv() 565 kfree(node); in xenbus_map_ring_valloc_pv() 572 err = __xenbus_map_ring(dev, gnt_refs, nr_grefs, node->handles, in xenbus_map_ring_valloc_pv() 579 node->nr_handles = nr_grefs; in xenbus_map_ring_valloc_pv() 580 node->pv.area = area; in xenbus_map_ring_valloc_pv() 583 list_add(&node->next, &xenbus_valloc_pages); in xenbus_map_ring_valloc_pv() [all …]
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | topology.h | 11 int node; in cpu_to_node() local 16 node = alpha_mv.cpuid_to_nid(cpu); in cpu_to_node() 19 BUG_ON(node < 0); in cpu_to_node() 22 return node; in cpu_to_node() 27 static const struct cpumask *cpumask_of_node(int node) in cpumask_of_node() argument 31 if (node == -1) in cpumask_of_node() 34 cpumask_clear(&node_to_cpumask_map[node]); in cpumask_of_node() 37 if (cpu_to_node(cpu) == node) in cpumask_of_node() 38 cpumask_set_cpu(cpu, node_to_cpumask_map[node]); in cpumask_of_node() 41 return &node_to_cpumask_map[node]; in cpumask_of_node()
|
/linux-4.4.14/fs/ext4/ |
D | block_validity.c | 23 struct rb_node node; member 61 struct rb_node **n = &sbi->system_blks.rb_node, *node; in add_system_zone() local 66 entry = rb_entry(parent, struct ext4_system_zone, node); in add_system_zone() 78 node); in add_system_zone() 90 new_node = &new_entry->node; in add_system_zone() 97 node = rb_prev(new_node); in add_system_zone() 98 if (node) { in add_system_zone() 99 entry = rb_entry(node, struct ext4_system_zone, node); in add_system_zone() 103 rb_erase(node, &sbi->system_blks); in add_system_zone() 109 node = rb_next(new_node); in add_system_zone() [all …]
|
/linux-4.4.14/drivers/of/ |
D | pdt.c | 90 static struct property * __init of_pdt_build_one_prop(phandle node, char *prev, in of_pdt_build_one_prop() argument 115 err = of_pdt_prom_ops->nextprop(node, prev, p->name); in of_pdt_build_one_prop() 120 p->length = of_pdt_prom_ops->getproplen(node, p->name); in of_pdt_build_one_prop() 127 len = of_pdt_prom_ops->getproperty(node, p->name, in of_pdt_build_one_prop() 137 static struct property * __init of_pdt_build_prop_list(phandle node) in of_pdt_build_prop_list() argument 141 head = tail = of_pdt_build_one_prop(node, NULL, in of_pdt_build_prop_list() 142 ".node", &node, sizeof(node)); in of_pdt_build_prop_list() 144 tail->next = of_pdt_build_one_prop(node, NULL, NULL, NULL, 0); in of_pdt_build_prop_list() 147 tail->next = of_pdt_build_one_prop(node, tail->name, in of_pdt_build_prop_list() 155 static char * __init of_pdt_get_one_property(phandle node, const char *name) in of_pdt_get_one_property() argument [all …]
|
D | resolver.c | 29 static struct device_node *__of_find_node_by_full_name(struct device_node *node, in __of_find_node_by_full_name() argument 34 if (node == NULL) in __of_find_node_by_full_name() 38 if (of_node_cmp(node->full_name, full_name) == 0) in __of_find_node_by_full_name() 39 return node; in __of_find_node_by_full_name() 41 for_each_child_of_node(node, child) { in __of_find_node_by_full_name() 55 struct device_node *node; in of_get_tree_max_phandle() local 62 for_each_of_allnodes(node) { in of_get_tree_max_phandle() 63 if (node->phandle != OF_PHANDLE_ILLEGAL && in of_get_tree_max_phandle() 64 node->phandle > phandle) in of_get_tree_max_phandle() 65 phandle = node->phandle; in of_get_tree_max_phandle() [all …]
|
D | dynamic.c | 24 struct device_node *of_node_get(struct device_node *node) in of_node_get() argument 26 if (node) in of_node_get() 27 kobject_get(&node->kobj); in of_node_get() 28 return node; in of_node_get() 37 void of_node_put(struct device_node *node) in of_node_put() argument 39 if (node) in of_node_put() 40 kobject_put(&node->kobj); in of_node_put() 323 struct device_node *node = kobj_to_device_node(kobj); in of_node_release() local 324 struct property *prop = node->properties; in of_node_release() 327 if (!of_node_check_flag(node, OF_DETACHED)) { in of_node_release() [all …]
|
D | fdt.c | 91 unsigned long node, const char *compat) in of_fdt_is_compatible() argument 97 cp = fdt_getprop(blob, node, "compatible", &cplen); in of_fdt_is_compatible() 121 bool of_fdt_is_big_endian(const void *blob, unsigned long node) in of_fdt_is_big_endian() argument 123 if (fdt_getprop(blob, node, "big-endian", NULL)) in of_fdt_is_big_endian() 126 fdt_getprop(blob, node, "native-endian", NULL)) in of_fdt_is_big_endian() 134 int of_fdt_match(const void *blob, unsigned long node, in of_fdt_match() argument 143 tmp = of_fdt_is_compatible(blob, node, *compat); in of_fdt_match() 472 static int __init __reserved_mem_reserve_reg(unsigned long node, in __reserved_mem_reserve_reg() argument 481 prop = of_get_flat_dt_prop(node, "reg", &len); in __reserved_mem_reserve_reg() 491 nomap = of_get_flat_dt_prop(node, "no-map", NULL) != NULL; in __reserved_mem_reserve_reg() [all …]
|
/linux-4.4.14/drivers/base/regmap/ |
D | regcache-rbtree.c | 35 struct rb_node node; member 70 struct rb_node *node; in regcache_rbtree_lookup() local 82 node = rbtree_ctx->root.rb_node; in regcache_rbtree_lookup() 83 while (node) { in regcache_rbtree_lookup() 84 rbnode = container_of(node, struct regcache_rbtree_node, node); in regcache_rbtree_lookup() 91 node = node->rb_right; in regcache_rbtree_lookup() 93 node = node->rb_left; in regcache_rbtree_lookup() 112 node); in regcache_rbtree_insert() 130 rb_link_node(&rbnode->node, parent, new); in regcache_rbtree_insert() 131 rb_insert_color(&rbnode->node, root); in regcache_rbtree_insert() [all …]
|
/linux-4.4.14/arch/mips/sgi-ip27/ |
D | ip27-memory.c | 265 static unsigned long __init slot_psize_compute(cnodeid_t node, int slot) in slot_psize_compute() argument 272 nasid = COMPACT_TO_NASID_NODEID(node); in slot_psize_compute() 358 cnodeid_t node; in szmem() local 360 for_each_online_node(node) { in szmem() 363 slot_psize = slot_psize_compute(node, slot); in szmem() 378 slot, node); in szmem() 382 memblock_add_node(PFN_PHYS(slot_getbasepfn(node, slot)), in szmem() 383 PFN_PHYS(slot_psize), node); in szmem() 388 static void __init node_mem_init(cnodeid_t node) in node_mem_init() argument 390 unsigned long slot_firstpfn = slot_getbasepfn(node, 0); in node_mem_init() [all …]
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | omapdss-boot-init.c | 39 struct device_node *node; member 55 static void __init omapdss_update_prop(struct device_node *node, char *compat, in omapdss_update_prop() argument 68 of_update_property(node, prop); in omapdss_update_prop() 91 static void __init omapdss_omapify_node(struct device_node *node) in omapdss_omapify_node() argument 98 prop = of_find_property(node, "compatible", NULL); in omapdss_omapify_node() 117 omapdss_update_prop(node, new_compat, new_len); in omapdss_omapify_node() 120 static void __init omapdss_add_to_list(struct device_node *node, bool root) in omapdss_add_to_list() argument 125 n->node = node; in omapdss_add_to_list() 131 static bool __init omapdss_list_contains(const struct device_node *node) in omapdss_list_contains() argument 136 if (n->node == node) in omapdss_list_contains() [all …]
|
/linux-4.4.14/net/tipc/ |
D | name_distr.c | 51 u32 node; member 91 struct tipc_node *node; in named_cluster_distribute() local 95 list_for_each_entry_rcu(node, &tn->node_list, list) { in named_cluster_distribute() 96 dnode = node->addr; in named_cluster_distribute() 99 if (!tipc_node_is_up(node)) in named_cluster_distribute() 232 struct tipc_node *node; in tipc_publ_subscribe() local 237 node = tipc_node_find(net, addr); in tipc_publ_subscribe() 238 if (!node) { in tipc_publ_subscribe() 244 tipc_node_lock(node); in tipc_publ_subscribe() 245 list_add_tail(&publ->nodesub_list, &node->publ_list); in tipc_publ_subscribe() [all …]
|
D | node.c | 75 static void tipc_node_delete(struct tipc_node *node); 105 struct tipc_node *node = container_of(kref, struct tipc_node, kref); in tipc_node_kref_release() local 107 tipc_node_delete(node); in tipc_node_kref_release() 110 void tipc_node_put(struct tipc_node *node) in tipc_node_put() argument 112 kref_put(&node->kref, tipc_node_kref_release); in tipc_node_put() 115 static void tipc_node_get(struct tipc_node *node) in tipc_node_get() argument 117 kref_get(&node->kref); in tipc_node_get() 126 struct tipc_node *node; in tipc_node_find() local 132 hlist_for_each_entry_rcu(node, &tn->node_htable[tipc_hashfn(addr)], in tipc_node_find() 134 if (node->addr == addr) { in tipc_node_find() [all …]
|
/linux-4.4.14/kernel/power/ |
D | wakelock.c | 28 struct rb_node node; member 39 struct rb_node *node; in pm_show_wakelocks() local 46 for (node = rb_first(&wakelocks_tree); node; node = rb_next(node)) { in pm_show_wakelocks() 47 wl = rb_entry(node, struct wakelock, node); in pm_show_wakelocks() 124 rb_erase(&wl->node, &wakelocks_tree); in __wakelocks_gc() 152 struct rb_node **node = &wakelocks_tree.rb_node; in wakelock_lookup_add() local 153 struct rb_node *parent = *node; in wakelock_lookup_add() 156 while (*node) { in wakelock_lookup_add() 159 parent = *node; in wakelock_lookup_add() 160 wl = rb_entry(*node, struct wakelock, node); in wakelock_lookup_add() [all …]
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | prom.c | 172 static void __init scan_features(unsigned long node, const unsigned char *ftrs, in scan_features() argument 211 static void __init check_cpu_pa_features(unsigned long node) in check_cpu_pa_features() argument 216 pa_ftrs = of_get_flat_dt_prop(node, "ibm,pa-features", &tablelen); in check_cpu_pa_features() 220 scan_features(node, pa_ftrs, tablelen, in check_cpu_pa_features() 225 static void __init init_mmu_slb_size(unsigned long node) in init_mmu_slb_size() argument 229 slb_size_ptr = of_get_flat_dt_prop(node, "slb-size", NULL) ? : in init_mmu_slb_size() 230 of_get_flat_dt_prop(node, "ibm,slb-size", NULL); in init_mmu_slb_size() 236 #define init_mmu_slb_size(node) do { } while(0) argument 261 static inline void identical_pvr_fixup(unsigned long node) in identical_pvr_fixup() argument 264 const char *model = of_get_flat_dt_prop(node, "model", NULL); in identical_pvr_fixup() [all …]
|
D | pci_of_scan.c | 74 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev) in of_pci_parse_addrs() argument 84 addrs = of_get_property(node, "assigned-addresses", &proplen); in of_pci_parse_addrs() 124 struct pci_dev *of_create_pci_dev(struct device_node *node, in of_create_pci_dev() argument 133 type = of_get_property(node, "device_type", NULL); in of_create_pci_dev() 139 dev->dev.of_node = of_node_get(node); in of_create_pci_dev() 148 dev->vendor = get_int_prop(node, "vendor-id", 0xffff); in of_create_pci_dev() 149 dev->device = get_int_prop(node, "device-id", 0xffff); in of_create_pci_dev() 150 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); in of_create_pci_dev() 151 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); in of_create_pci_dev() 157 dev->class = get_int_prop(node, "class-code", 0); in of_create_pci_dev() [all …]
|
D | machine_kexec.c | 229 static void __init export_crashk_values(struct device_node *node) in export_crashk_values() argument 235 prop = of_find_property(node, "linux,crashkernel-base", NULL); in export_crashk_values() 237 of_remove_property(node, prop); in export_crashk_values() 239 prop = of_find_property(node, "linux,crashkernel-size", NULL); in export_crashk_values() 241 of_remove_property(node, prop); in export_crashk_values() 245 of_add_property(node, &crashk_base_prop); in export_crashk_values() 247 of_add_property(node, &crashk_size_prop); in export_crashk_values() 255 of_update_property(node, &memory_limit_prop); in export_crashk_values() 260 struct device_node *node; in kexec_setup() local 263 node = of_find_node_by_path("/chosen"); in kexec_setup() [all …]
|
/linux-4.4.14/tools/include/linux/ |
D | rbtree_augmented.h | 42 void (*propagate)(struct rb_node *node, struct rb_node *stop); 47 extern void __rb_insert_augmented(struct rb_node *node, struct rb_root *root, 60 rb_insert_augmented(struct rb_node *node, struct rb_root *root, in rb_insert_augmented() argument 63 __rb_insert_augmented(node, root, augment->rotate); in rb_insert_augmented() 72 rbstruct *node = rb_entry(rb, rbstruct, rbfield); \ 73 rbtype augmented = rbcompute(node); \ 74 if (node->rbaugmented == augmented) \ 76 node->rbaugmented = augmented; \ 77 rb = rb_parent(&node->rbfield); \ 140 __rb_erase_augmented(struct rb_node *node, struct rb_root *root, in __rb_erase_augmented() argument [all …]
|
D | rbtree.h | 55 #define RB_EMPTY_NODE(node) \ argument 56 ((node)->__rb_parent_color == (unsigned long)(node)) 57 #define RB_CLEAR_NODE(node) \ argument 58 ((node)->__rb_parent_color = (unsigned long)(node)) 79 static inline void rb_link_node(struct rb_node *node, struct rb_node *parent, in rb_link_node() argument 82 node->__rb_parent_color = (unsigned long)parent; in rb_link_node() 83 node->rb_left = node->rb_right = NULL; in rb_link_node() 85 *rb_link = node; in rb_link_node()
|
/linux-4.4.14/Documentation/ |
D | rbtree.txt | 62 struct rb_node node; 68 individual members may be accessed directly via rb_entry(node, type, member). 85 struct rb_node *node = root->rb_node; 87 while (node) { 88 struct mytype *data = container_of(node, struct mytype, node); 94 node = node->rb_left; 96 node = node->rb_right; 107 new node, then inserting the node and rebalancing ("recoloring") the tree. 110 location of the pointer on which to graft the new node. The new node also 111 needs a link to its parent node for rebalancing purposes. [all …]
|
D | numastat.txt | 4 /sys/devices/system/node/node*/numastat 8 numa_hit A process wanted to allocate memory from this node, 11 numa_miss A process wanted to allocate memory from another node, 12 but ended up with memory from this node. 14 numa_foreign A process wanted to allocate on this node, 17 local_node A process ran on this node and got memory from it. 19 other_node A process ran on this node and got memory from another node. 21 interleave_hit Interleaving wanted to allocate from this node
|
D | md-cluster.txt | 6 Separate write-intent-bitmap are used for each cluster node. 7 The bitmaps record all writes that may have been started on that node, 18 node writes to any given block at a time, so a write 25 ensure one node doesn't read from a location where another node (or the same 26 node) is writing. 35 The bm_lockres protects individual node bitmaps. They are named in the 36 form bitmap001 for node 1, bitmap002 for node and so on. When a node 38 during the lifetime the node is part of the cluster. The lock resource 40 DLM starts node count from one and bitmap slots start from zero, one is 45 Each node has to communicate with other nodes when starting or ending [all …]
|
/linux-4.4.14/Documentation/ABI/stable/ |
D | sysfs-devices-node | 1 What: /sys/devices/system/node/possible 7 What: /sys/devices/system/node/online 13 What: /sys/devices/system/node/has_normal_memory 19 What: /sys/devices/system/node/has_cpu 25 What: /sys/devices/system/node/has_high_memory 32 What: /sys/devices/system/node/nodeX 37 information on node X such as what CPUs are local to the 38 node. Each file is detailed next. 40 What: /sys/devices/system/node/nodeX/cpumap 44 The node's cpumap. [all …]
|
/linux-4.4.14/fs/befs/ |
D | btree.c | 100 struct befs_btree_node *node, 103 static int befs_leafnode(struct befs_btree_node *node); 105 static fs16 *befs_bt_keylen_index(struct befs_btree_node *node); 107 static fs64 *befs_bt_valarray(struct befs_btree_node *node); 109 static char *befs_bt_keydata(struct befs_btree_node *node); 112 struct befs_btree_node *node, 116 struct befs_btree_node *node, 197 struct befs_btree_node *node, befs_off_t node_off) in befs_bt_read_node() argument 203 if (node->bh) in befs_bt_read_node() 204 brelse(node->bh); in befs_bt_read_node() [all …]
|
/linux-4.4.14/drivers/memory/ |
D | mvebu-devbus.c | 99 struct device_node *node, in get_timing_param_ps() argument 106 err = of_property_read_u32(node, name, &time_ps); in get_timing_param_ps() 109 name, node->full_name); in get_timing_param_ps() 121 struct device_node *node, in devbus_get_timing_params() argument 127 err = of_property_read_u32(node, "devbus,bus-width", &r->bus_width); in devbus_get_timing_params() 131 node->full_name); in devbus_get_timing_params() 148 err = get_timing_param_ps(devbus, node, "devbus,badr-skew-ps", in devbus_get_timing_params() 153 err = get_timing_param_ps(devbus, node, "devbus,turn-off-ps", in devbus_get_timing_params() 158 err = get_timing_param_ps(devbus, node, "devbus,acc-first-ps", in devbus_get_timing_params() 163 err = get_timing_param_ps(devbus, node, "devbus,acc-next-ps", in devbus_get_timing_params() [all …]
|
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/ |
D | mce-genpool.c | 32 struct mce_evt_llist *node, *tmp; in mce_gen_pool_process() local 40 llist_for_each_entry_safe(node, tmp, head, llnode) { in mce_gen_pool_process() 41 mce = &node->mce; in mce_gen_pool_process() 43 gen_pool_free(mce_evt_pool, (unsigned long)node, sizeof(*node)); in mce_gen_pool_process() 54 struct mce_evt_llist *node; in mce_gen_pool_add() local 59 node = (void *)gen_pool_alloc(mce_evt_pool, sizeof(*node)); in mce_gen_pool_add() 60 if (!node) { in mce_gen_pool_add() 65 memcpy(&node->mce, mce, sizeof(*mce)); in mce_gen_pool_add() 66 llist_add(&node->llnode, &mce_event_llist); in mce_gen_pool_add()
|
/linux-4.4.14/drivers/staging/lustre/lustre/include/ |
D | interval_tree.h | 65 static inline int interval_is_intree(struct interval_node *node) in interval_is_intree() argument 67 return node->in_intree == 1; in interval_is_intree() 70 static inline __u64 interval_high(struct interval_node *node) in interval_high() argument 72 return node->in_extent.end; in interval_high() 75 static inline void interval_set(struct interval_node *node, in interval_set() argument 79 node->in_extent.start = start; in interval_set() 80 node->in_extent.end = end; in interval_set() 81 node->in_max_high = end; in interval_set() 84 struct interval_node *interval_insert(struct interval_node *node, 86 void interval_erase(struct interval_node *node, struct interval_node **root);
|
/linux-4.4.14/arch/powerpc/boot/ |
D | simpleboot.c | 33 int node, size, i; in platform_init() local 40 node = fdt_path_offset(_dtb_start, "/"); in platform_init() 41 if (node < 0) in platform_init() 43 na = fdt_getprop(_dtb_start, node, "#address-cells", &size); in platform_init() 46 ns = fdt_getprop(_dtb_start, node, "#size-cells", &size); in platform_init() 51 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init() 53 if (node < 0) in platform_init() 55 reg = fdt_getprop(_dtb_start, node, "reg", &size); in platform_init() 72 node = fdt_node_offset_by_prop_value(_dtb_start, -1, "device_type", in platform_init() 74 if (!node) in platform_init() [all …]
|
D | cuboot-8xx.c | 25 void *node; in platform_fixups() local 31 node = finddevice("/soc/cpm"); in platform_fixups() 32 if (node) in platform_fixups() 33 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups() 35 node = finddevice("/soc/cpm/brg"); in platform_fixups() 36 if (node) in platform_fixups() 37 setprop(node, "clock-frequency", &bd.bi_busfreq, 4); in platform_fixups()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | gct.c | 13 gct6_find_nodes(gct6_node *node, gct6_search_struct *search) in gct6_find_nodes() argument 19 if (node->magic != GCT_NODE_MAGIC) { in gct6_find_nodes() 28 if (node->type != wanted->type) in gct6_find_nodes() 30 if (node->subtype != wanted->subtype) in gct6_find_nodes() 35 wanted->callout(node); in gct6_find_nodes() 39 if (node->next) in gct6_find_nodes() 40 status |= gct6_find_nodes(GCT_NODE_PTR(node->next), search); in gct6_find_nodes() 43 if (node->child) in gct6_find_nodes() 44 status |= gct6_find_nodes(GCT_NODE_PTR(node->child), search); in gct6_find_nodes()
|
/linux-4.4.14/arch/c6x/platforms/ |
D | dscr.c | 102 void (*init)(struct device_node *node); 284 static void __init dscr_parse_devstat(struct device_node *node, in dscr_parse_devstat() argument 290 err = of_property_read_u32_array(node, "ti,dscr-devstat", &val, 1); in dscr_parse_devstat() 296 static void __init dscr_parse_silicon_rev(struct device_node *node, in dscr_parse_silicon_rev() argument 302 err = of_property_read_u32_array(node, "ti,dscr-silicon-rev", vals, 3); in dscr_parse_silicon_rev() 327 static void __init dscr_parse_mac_fuse(struct device_node *node, in dscr_parse_mac_fuse() argument 333 err = of_property_read_u32_array(node, "ti,dscr-mac-fuse-regs", in dscr_parse_mac_fuse() 346 static void __init dscr_parse_rmii_resets(struct device_node *node, in dscr_parse_rmii_resets() argument 353 p = of_get_property(node, "ti,dscr-rmii-resets", &size); in dscr_parse_rmii_resets() 368 static void __init dscr_parse_privperm(struct device_node *node, in dscr_parse_privperm() argument [all …]
|
D | emif.c | 47 struct device_node *node; in c6x_emifa_init() local 52 node = of_find_matching_node(NULL, emifa_match); in c6x_emifa_init() 53 if (!node) in c6x_emifa_init() 56 regs = of_iomap(node, 0); in c6x_emifa_init() 61 err = of_property_read_u32_array(node, "ti,dscr-dev-enable", &val, 1); in c6x_emifa_init() 66 p = of_get_property(node, "ti,emifa-ce-config", &len); in c6x_emifa_init() 75 err = of_property_read_u32_array(node, "ti,emifa-burst-priority", &val, 1); in c6x_emifa_init() 79 err = of_property_read_u32_array(node, "ti,emifa-async-wait-control", &val, 1); in c6x_emifa_init() 84 of_node_put(node); in c6x_emifa_init()
|
/linux-4.4.14/arch/x86/kernel/ |
D | kdebugfs.c | 33 struct setup_data_node *node = file->private_data; in setup_data_read() local 43 if (pos >= node->len) in setup_data_read() 46 if (count > node->len - pos) in setup_data_read() 47 count = node->len - pos; in setup_data_read() 49 pa = node->paddr + sizeof(struct setup_data) + pos; in setup_data_read() 79 struct setup_data_node *node) in create_setup_data_node() argument 89 type = debugfs_create_x32("type", S_IRUGO, d, &node->type); in create_setup_data_node() 93 data = debugfs_create_file("data", S_IRUGO, d, node, &fops_setup_data); in create_setup_data_node() 108 struct setup_data_node *node; in create_setup_data_nodes() local 123 node = kmalloc(sizeof(*node), GFP_KERNEL); in create_setup_data_nodes() [all …]
|
/linux-4.4.14/arch/arm/mach-rockchip/ |
D | platsmp.c | 171 static int __init rockchip_smp_prepare_sram(struct device_node *node) in rockchip_smp_prepare_sram() argument 179 ret = of_address_to_resource(node, 0, &res); in rockchip_smp_prepare_sram() 182 __func__, node->full_name); in rockchip_smp_prepare_sram() 214 struct device_node *node; in rockchip_smp_prepare_pmu() local 223 node = of_find_node_by_path("/cpus"); in rockchip_smp_prepare_pmu() 225 pmu = syscon_regmap_lookup_by_phandle(node, "rockchip,pmu"); in rockchip_smp_prepare_pmu() 226 of_node_put(node); in rockchip_smp_prepare_pmu() 236 node = of_find_compatible_node(NULL, NULL, "rockchip,rk3066-pmu"); in rockchip_smp_prepare_pmu() 237 if (!node) { in rockchip_smp_prepare_pmu() 242 pmu_base = of_iomap(node, 0); in rockchip_smp_prepare_pmu() [all …]
|
/linux-4.4.14/tools/perf/ |
D | builtin-kmem.c | 57 struct rb_node node; member 71 struct rb_node **node = &root_alloc_stat.rb_node; in insert_alloc_stat() local 75 while (*node) { in insert_alloc_stat() 76 parent = *node; in insert_alloc_stat() 77 data = rb_entry(*node, struct alloc_stat, node); in insert_alloc_stat() 80 node = &(*node)->rb_right; in insert_alloc_stat() 82 node = &(*node)->rb_left; in insert_alloc_stat() 103 rb_link_node(&data->node, parent, node); in insert_alloc_stat() 104 rb_insert_color(&data->node, &root_alloc_stat); in insert_alloc_stat() 114 struct rb_node **node = &root_caller_stat.rb_node; in insert_caller_stat() local [all …]
|
/linux-4.4.14/drivers/firmware/efi/libstub/ |
D | fdt.c | 27 int node, prev, num_rsv; in update_fdt() local 65 node = fdt_next_node(fdt, prev, NULL); in update_fdt() 66 if (node < 0) in update_fdt() 69 type = fdt_getprop(fdt, node, "device_type", &len); in update_fdt() 71 fdt_del_node(fdt, node); in update_fdt() 75 prev = node; in update_fdt() 86 node = fdt_subnode_offset(fdt, 0, "chosen"); in update_fdt() 87 if (node < 0) { in update_fdt() 88 node = fdt_add_subnode(fdt, 0, "chosen"); in update_fdt() 89 if (node < 0) { in update_fdt() [all …]
|
/linux-4.4.14/Documentation/devicetree/bindings/arm/ |
D | topology.txt | 36 If not stated otherwise, whenever a reference to a cpu node phandle is made its 37 value must point to a cpu node compliant with the cpu node bindings as 43 2 - cpu-map node 46 The ARM CPU topology is defined within the cpu-map node, which is a direct 47 child of the cpus node and provides a container where the actual topology 50 - cpu-map node 55 cpu-map node. 57 Description: The cpu-map node is just a container node where its 62 The cpu-map node's parent node must be the cpus node. 64 The cpu-map node's child nodes can be: [all …]
|
D | fsl.txt | 5 Required root node properties: 9 Required root node properties: 13 Required root node properties: 17 Required root node properties: 21 Required root node properties: 25 Required root node properties: 29 Required root node properties: 33 Required root node properties: 37 Required root node properties: 41 Required root node properties: [all …]
|
D | rockchip.txt | 5 Required root node properties: 9 Required root node properties: 13 Required root node properties: 17 Required root node properties: 21 Required root node properties: 25 Required root node properties: 31 Required root node properties: 35 Required root node properties: 39 Required root node properties: 46 Required root node properties: [all …]
|
/linux-4.4.14/kernel/trace/ |
D | trace_stat.c | 26 struct rb_node node; member 50 rbtree_postorder_for_each_entry_safe(snode, n, &session->stat_root, node) { in __reset_stat_session() 94 this = container_of(*new, struct stat_node, node); in insert_stat() 104 rb_link_node(&data->node, parent, new); in insert_stat() 105 rb_insert_color(&data->node, root); in insert_stat() 175 struct rb_node *node; in stat_seq_start() local 189 node = rb_first(&session->stat_root); in stat_seq_start() 190 for (i = 0; node && i < n; i++) in stat_seq_start() 191 node = rb_next(node); in stat_seq_start() 193 return node; in stat_seq_start() [all …]
|
/linux-4.4.14/arch/arm/mach-sunxi/ |
D | platsmp.c | 44 struct device_node *node; in sun6i_smp_prepare_cpus() local 46 node = of_find_compatible_node(NULL, NULL, "allwinner,sun6i-a31-prcm"); in sun6i_smp_prepare_cpus() 47 if (!node) { in sun6i_smp_prepare_cpus() 52 prcm_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus() 58 node = of_find_compatible_node(NULL, NULL, in sun6i_smp_prepare_cpus() 60 if (!node) { in sun6i_smp_prepare_cpus() 65 cpucfg_membase = of_iomap(node, 0); in sun6i_smp_prepare_cpus() 127 struct device_node *node; in sun8i_smp_prepare_cpus() local 129 node = of_find_compatible_node(NULL, NULL, "allwinner,sun8i-a23-prcm"); in sun8i_smp_prepare_cpus() 130 if (!node) { in sun8i_smp_prepare_cpus() [all …]
|
/linux-4.4.14/fs/jffs2/ |
D | nodelist.c | 93 if (frag->node && (frag->ofs & (PAGE_CACHE_SIZE - 1)) == 0) { in jffs2_truncate_fragtree() 96 frag->node->raw->flash_offset = ref_offset(frag->node->raw) | REF_PRISTINE; in jffs2_truncate_fragtree() 104 if (this->node) { in jffs2_obsolete_node_frag() 105 this->node->frags--; in jffs2_obsolete_node_frag() 106 if (!this->node->frags) { in jffs2_obsolete_node_frag() 109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag() 110 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag() 111 jffs2_free_full_dnode(this->node); in jffs2_obsolete_node_frag() 114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag() 115 mark_ref_normal(this->node->raw); in jffs2_obsolete_node_frag() [all …]
|
D | debug.c | 81 struct jffs2_full_dnode *fn = frag->node; in __jffs2_dbg_fragtree_paranoia_check_nolock() 99 && frag_prev(frag)->size < PAGE_CACHE_SIZE && frag_prev(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock() 106 && frag_next(frag)->size < PAGE_CACHE_SIZE && frag_next(frag)->node) { in __jffs2_dbg_fragtree_paranoia_check_nolock() 711 if (this->node) in __jffs2_dbg_dump_fragtree_nolock() 713 this->ofs, this->ofs+this->size, ref_offset(this->node->raw), in __jffs2_dbg_dump_fragtree_nolock() 714 ref_flags(this->node->raw), this, frag_left(this), frag_right(this), in __jffs2_dbg_dump_fragtree_nolock() 775 union jffs2_node_union node; in __jffs2_dbg_dump_node() local 783 ret = jffs2_flash_read(c, ofs, len, &retlen, (unsigned char *)&node); in __jffs2_dbg_dump_node() 790 printk(JFFS2_DBG "magic:\t%#04x\n", je16_to_cpu(node.u.magic)); in __jffs2_dbg_dump_node() 791 printk(JFFS2_DBG "nodetype:\t%#04x\n", je16_to_cpu(node.u.nodetype)); in __jffs2_dbg_dump_node() [all …]
|
/linux-4.4.14/drivers/cpufreq/ |
D | ppc_cbe_cpufreq_pmi.c | 81 u8 node, slow_mode; in cbe_cpufreq_handle_pmi() local 85 node = pmi_msg.data1; in cbe_cpufreq_handle_pmi() 88 pmi_slow_mode_limit[node] = slow_mode; in cbe_cpufreq_handle_pmi() 90 pr_debug("cbe_handle_pmi: node: %d max_freq: %d\n", node, slow_mode); in cbe_cpufreq_handle_pmi() 98 u8 node; in pmi_notifier() local 107 node = cbe_cpu_to_node(policy->cpu); in pmi_notifier() 109 pr_debug("got notified, event=%lu, node=%u\n", event, node); in pmi_notifier() 111 if (pmi_slow_mode_limit[node] != 0) { in pmi_notifier() 113 node, pmi_slow_mode_limit[node]); in pmi_notifier() 117 cbe_freqs[pmi_slow_mode_limit[node]].frequency); in pmi_notifier()
|
/linux-4.4.14/net/batman-adv/ |
D | hash.h | 70 struct hlist_node *node, *node_tmp; in batadv_hash_delete() local 79 hlist_for_each_safe(node, node_tmp, head) { in batadv_hash_delete() 80 hlist_del_rcu(node); in batadv_hash_delete() 83 free_cb(node, arg); in batadv_hash_delete() 111 struct hlist_node *node; in batadv_hash_add() local 123 hlist_for_each(node, head) { in batadv_hash_add() 124 if (!compare(node, data)) in batadv_hash_add() 153 struct hlist_node *node; in batadv_hash_remove() local 161 hlist_for_each(node, head) { in batadv_hash_remove() 162 if (!compare(node, data)) in batadv_hash_remove() [all …]
|
/linux-4.4.14/arch/s390/numa/ |
D | mode_emu.c | 84 static int cores_pinned(struct toptree *node) in cores_pinned() argument 86 return emu_cores->per_node[node->id]; in cores_pinned() 152 static int dist_node_to_core(struct toptree *node, struct toptree *core) in dist_node_to_core() argument 157 toptree_for_each(core_node, node, CORE) in dist_node_to_core() 181 struct toptree *node, *node_best = NULL; in node_for_core() local 187 toptree_for_each(node, numa, NODE) { in node_for_core() 189 if (core_pinned_to_node_id(core) == node->id) { in node_for_core() 190 node_best = node; in node_for_core() 194 if (cores_pinned(node) >= cores_target) in node_for_core() 196 dist_cur = dist_node_to_core(node, core); in node_for_core() [all …]
|
/linux-4.4.14/include/asm-generic/ |
D | topology.h | 38 #define set_numa_node(node) argument 41 #define set_cpu_numa_node(cpu, node) argument 48 #define parent_node(node) ((void)(node),0) argument 51 #define cpumask_of_node(node) ((void)node, cpu_online_mask) argument 68 #define set_numa_mem(node) argument 71 #define set_cpu_numa_mem(cpu, node) argument
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
D | misc.c | 34 static int __init find_i2c_driver(struct device_node *node, in find_i2c_driver() argument 40 if (!of_device_is_compatible(node, i2c_devices[i].of_device)) in find_i2c_driver() 54 struct device_node *node; in pasemi_register_i2c_devices() local 63 node = NULL; in pasemi_register_i2c_devices() 64 while ((node = of_get_next_child(adap_node, node))) { in pasemi_register_i2c_devices() 69 addr = of_get_property(node, "reg", &len); in pasemi_register_i2c_devices() 78 info.irq = irq_of_parse_and_map(node, 0); in pasemi_register_i2c_devices() 82 if (find_i2c_driver(node, &info) < 0) in pasemi_register_i2c_devices()
|
/linux-4.4.14/arch/mips/pci/ |
D | msi-xlp.c | 113 struct nlm_soc_info *node; member 227 nlm_pic_ack(md->node->picbase, in xlp_msix_mask_ack() 293 static int xlp_setup_msi(uint64_t lnkbase, int node, int link, in xlp_setup_msi() argument 304 xirq = nlm_irq_to_xirq(node, nlm_link_msiirq(link, 0)); in xlp_setup_msi() 306 msiaddr = MSI_LINK_ADDR(node, link); in xlp_setup_msi() 316 nlm_setup_pic_irq(node, lirq, lirq, irt); in xlp_setup_msi() 317 nlm_pic_init_irt(nlm_get_node(node)->picbase, irt, lirq, in xlp_setup_msi() 318 node * nlm_threads_per_node(), 1 /*en */); in xlp_setup_msi() 400 static int xlp_setup_msix(uint64_t lnkbase, int node, int link, in xlp_setup_msix() argument 411 xirq = nlm_irq_to_xirq(node, nlm_link_msixirq(link, 0)); in xlp_setup_msix() [all …]
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
D | base.c | 30 nvkm_vm_map_at(struct nvkm_vma *vma, u64 delta, struct nvkm_mem *node) in nvkm_vm_map_at() argument 35 int big = vma->node->type != mmu->func->spg_shift; in nvkm_vm_map_at() 36 u32 offset = vma->node->offset + (delta >> 12); in nvkm_vm_map_at() 37 u32 bits = vma->node->type - 12; in nvkm_vm_map_at() 44 list_for_each_entry(r, &node->regions, rl_entry) { in nvkm_vm_map_at() 56 mmu->func->map(vma, pgt, node, pte, len, phys, delta); in nvkm_vm_map_at() 66 delta += (u64)len << vma->node->type; in nvkm_vm_map_at() 79 int big = vma->node->type != mmu->func->spg_shift; in nvkm_vm_map_sg_table() 80 u32 offset = vma->node->offset + (delta >> 12); in nvkm_vm_map_sg_table() 81 u32 bits = vma->node->type - 12; in nvkm_vm_map_sg_table() [all …]
|
/linux-4.4.14/net/mac80211/ |
D | mesh_pathtbl.c | 76 #define for_each_mesh_entry(tbl, node, i) \ argument 78 hlist_for_each_entry_rcu(node, &tbl->hash_buckets[i], list) 340 struct mpath_node *node; in mpath_lookup() local 343 hlist_for_each_entry_rcu(node, bucket, list) { in mpath_lookup() 344 mpath = node->mpath; in mpath_lookup() 393 struct mpath_node *node; in mesh_path_lookup_by_idx() local 397 for_each_mesh_entry(tbl, node, i) { in mesh_path_lookup_by_idx() 398 if (sdata && node->mpath->sdata != sdata) in mesh_path_lookup_by_idx() 401 if (mpath_expired(node->mpath)) { in mesh_path_lookup_by_idx() 402 spin_lock_bh(&node->mpath->state_lock); in mesh_path_lookup_by_idx() [all …]
|
/linux-4.4.14/tools/lib/lockdep/ |
D | preload.c | 31 struct rb_node node; member 101 struct rb_node **node = &locks.rb_node; in __get_lock_node() local 106 while (*node) { in __get_lock_node() 107 l = rb_entry(*node, struct lock_lookup, node); in __get_lock_node() 109 *parent = *node; in __get_lock_node() 111 node = &l->node.rb_left; in __get_lock_node() 113 node = &l->node.rb_right; in __get_lock_node() 115 return node; in __get_lock_node() 118 return node; in __get_lock_node() 177 struct rb_node **node, *parent; in __get_lock() local [all …]
|
/linux-4.4.14/net/netfilter/ |
D | nft_rbtree.c | 28 struct rb_node node; member 45 rbe = rb_entry(parent, struct nft_rbtree_elem, node); in nft_rbtree_lookup() 92 rbe = rb_entry(parent, struct nft_rbtree_elem, node); in __nft_rbtree_insert() 106 rb_link_node(&new->node, parent, p); in __nft_rbtree_insert() 107 rb_insert_color(&new->node, &priv->root); in __nft_rbtree_insert() 131 rb_erase(&rbe->node, &priv->root); in nft_rbtree_remove() 153 rbe = rb_entry(parent, struct nft_rbtree_elem, node); in nft_rbtree_deactivate() 180 struct rb_node *node; in nft_rbtree_walk() local 184 for (node = rb_first(&priv->root); node != NULL; node = rb_next(node)) { in nft_rbtree_walk() 185 rbe = rb_entry(node, struct nft_rbtree_elem, node); in nft_rbtree_walk() [all …]
|
/linux-4.4.14/drivers/infiniband/hw/usnic/ |
D | usnic_uiom_interval_tree.c | 42 #define START(node) ((node)->start) argument 43 #define LAST(node) ((node)->last) argument 45 #define MAKE_NODE(node, start, end, ref_cnt, flags, err, err_out) \ argument 47 node = usnic_uiom_interval_node_alloc(start, \ 49 if (!node) { \ 55 #define MARK_FOR_ADD(node, list) (list_add_tail(&node->link, list)) argument 57 #define MAKE_NODE_AND_APPEND(node, start, end, ref_cnt, flags, err, \ argument 60 MAKE_NODE(node, start, end, \ 63 MARK_FOR_ADD(node, list); \ 107 struct usnic_uiom_interval_node *node; in find_intervals_intersection_sorted() local [all …]
|
/linux-4.4.14/drivers/android/ |
D | binder.c | 265 struct binder_node *node; member 871 struct binder_node *node; in binder_get_node() local 874 node = rb_entry(n, struct binder_node, rb_node); in binder_get_node() 876 if (ptr < node->ptr) in binder_get_node() 878 else if (ptr > node->ptr) in binder_get_node() 881 return node; in binder_get_node() 892 struct binder_node *node; in binder_new_node() local 896 node = rb_entry(parent, struct binder_node, rb_node); in binder_new_node() 898 if (ptr < node->ptr) in binder_new_node() 900 else if (ptr > node->ptr) in binder_new_node() [all …]
|
/linux-4.4.14/drivers/i2c/busses/ |
D | i2c-powermac.c | 218 struct device_node *node) in i2c_powermac_get_addr() argument 224 prop = of_get_property(node, "reg", &len); in i2c_powermac_get_addr() 229 prop = of_get_property(node, "i2c-address", &len); in i2c_powermac_get_addr() 234 if (!strcmp(node->name, "cereal")) in i2c_powermac_get_addr() 236 else if (!strcmp(node->name, "deq")) in i2c_powermac_get_addr() 239 dev_warn(&adap->dev, "No i2c address for %s\n", node->full_name); in i2c_powermac_get_addr() 287 struct device_node *node, in i2c_powermac_get_type() argument 303 if (of_modalias_node(node, tmp, sizeof(tmp)) >= 0) { in i2c_powermac_get_type() 309 if (!strcmp(node->name, "deq")) { in i2c_powermac_get_type() 321 " on %s\n", node->full_name); in i2c_powermac_get_type() [all …]
|
/linux-4.4.14/arch/powerpc/platforms/cell/ |
D | interrupt.c | 54 struct device_node *node; member 65 unsigned char node = bits.source >> 4; in iic_pending_to_hwnum() local 72 return (node << IIC_IRQ_NODE_SHIFT) | (class << 4) | unit; in iic_pending_to_hwnum() 190 struct irq_domain *iic_get_irq_host(int node) in iic_get_irq_host() argument 226 static int iic_host_match(struct irq_domain *h, struct device_node *node, in iic_host_match() argument 229 return of_device_is_compatible(node, in iic_host_match() 255 unsigned int node, ext, unit, class; in iic_host_xlate() local 267 node = intspec[0] >> 24; in iic_host_xlate() 273 if (node > 1) in iic_host_xlate() 277 *out_hwirq = (node << IIC_IRQ_NODE_SHIFT); in iic_host_xlate() [all …]
|
/linux-4.4.14/arch/ia64/kernel/ |
D | numa.c | 71 int cpu, i, node; in build_cpu_to_node_map() local 73 for(node=0; node < MAX_NUMNODES; node++) in build_cpu_to_node_map() 74 cpumask_clear(&node_to_cpu_mask[node]); in build_cpu_to_node_map() 77 node = -1; in build_cpu_to_node_map() 80 node = node_cpuid[i].nid; in build_cpu_to_node_map() 83 map_cpu_to_node(cpu, node); in build_cpu_to_node_map()
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | mmzone.h | 38 int node; in pfn_to_nid() local 40 for (node = 0 ; node < MAX_NUMNODES ; node++) in pfn_to_nid() 41 if (pfn >= node_start_pfn(node) && pfn < node_end_pfn(node)) in pfn_to_nid() 44 return node; in pfn_to_nid()
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-cpu.c | 93 static void cfs_node_to_cpumask(int node, cpumask_t *mask) in cfs_node_to_cpumask() argument 95 cpumask_copy(mask, cpumask_of_node(node)); in cfs_node_to_cpumask() 284 int node; in cfs_cpt_set_cpu() local 307 node = cpu_to_node(cpu); in cfs_cpt_set_cpu() 310 if (!node_isset(node, *cptab->ctb_nodemask)) in cfs_cpt_set_cpu() 311 node_set(node, *cptab->ctb_nodemask); in cfs_cpt_set_cpu() 314 if (!node_isset(node, *cptab->ctb_parts[cpt].cpt_nodemask)) in cfs_cpt_set_cpu() 315 node_set(node, *cptab->ctb_parts[cpt].cpt_nodemask); in cfs_cpt_set_cpu() 324 int node; in cfs_cpt_unset_cpu() local 356 node = cpu_to_node(cpu); in cfs_cpt_unset_cpu() [all …]
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | oplib.h | 218 extern int prom_getsibling(int node); 232 extern int prom_getint(int node, char *property); 235 extern int prom_getintdefault(int node, char *property, int defval); 238 extern int prom_getbool(int node, char *prop); 241 extern void prom_getstring(int node, char *prop, char *buf, int bufsize); 254 extern char *prom_firstprop(int node); 259 extern char *prom_nextprop(int node, char *prev_property); 262 extern int prom_node_has_property(int node, char *property); 267 extern int prom_setprop(int node, char *prop_name, char *prop_value, 287 extern void prom_apply_generic_ranges(int node, int parent,
|
/linux-4.4.14/drivers/clk/socfpga/ |
D | clk-periph.c | 60 static __init void __socfpga_periph_init(struct device_node *node, in __socfpga_periph_init() argument 66 const char *clk_name = node->name; in __socfpga_periph_init() 73 of_property_read_u32(node, "reg", ®); in __socfpga_periph_init() 81 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in __socfpga_periph_init() 90 rc = of_property_read_u32(node, "fixed-divider", &fixed_div); in __socfpga_periph_init() 96 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_periph_init() 102 init.num_parents = of_clk_parent_fill(node, parent_name, in __socfpga_periph_init() 113 rc = of_clk_add_provider(node, of_clk_src_simple_get, clk); in __socfpga_periph_init() 116 void __init socfpga_periph_init(struct device_node *node) in socfpga_periph_init() argument 118 __socfpga_periph_init(node, &periclk_ops); in socfpga_periph_init()
|
/linux-4.4.14/kernel/irq/ |
D | irqdesc.c | 39 static int alloc_masks(struct irq_desc *desc, gfp_t gfp, int node) in alloc_masks() argument 42 gfp, node)) in alloc_masks() 46 if (!zalloc_cpumask_var_node(&desc->pending_mask, gfp, node)) { in alloc_masks() 54 static void desc_smp_init(struct irq_desc *desc, int node) in desc_smp_init() argument 61 desc->irq_common_data.node = node; in desc_smp_init() 67 alloc_masks(struct irq_desc *desc, gfp_t gfp, int node) { return 0; } in alloc_masks() argument 68 static inline void desc_smp_init(struct irq_desc *desc, int node) { } in desc_smp_init() argument 71 static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node, in desc_set_defaults() argument 93 desc_smp_init(desc, node); in desc_set_defaults() 144 static struct irq_desc *alloc_desc(int irq, int node, struct module *owner) in alloc_desc() argument [all …]
|
/linux-4.4.14/drivers/irqchip/ |
D | irq-omap-intc.c | 246 static int __init omap_init_irq_of(struct device_node *node) in omap_init_irq_of() argument 250 omap_irq_base = of_iomap(node, 0); in omap_init_irq_of() 254 domain = irq_domain_add_linear(node, omap_nr_irqs, in omap_init_irq_of() 266 static int __init omap_init_irq_legacy(u32 base, struct device_node *node) in omap_init_irq_legacy() argument 280 domain = irq_domain_add_legacy(node, omap_nr_irqs, irq_base, 0, in omap_init_irq_legacy() 300 static int __init omap_init_irq(u32 base, struct device_node *node) in omap_init_irq() argument 310 if (of_device_is_compatible(node, "ti,omap2-intc") || in omap_init_irq() 311 of_device_is_compatible(node, "ti,omap3-intc")) { in omap_init_irq() 314 if (of_address_to_resource(node, 0, &res)) in omap_init_irq() 318 ret = omap_init_irq_legacy(base, node); in omap_init_irq() [all …]
|