/linux-4.1.27/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.1.27/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 | 102 struct ldlm_interval *node; in ldlm_interval_alloc() local 105 OBD_SLAB_ALLOC_PTR_GFP(node, ldlm_interval_slab, GFP_NOFS); in ldlm_interval_alloc() 106 if (node == NULL) in ldlm_interval_alloc() 109 INIT_LIST_HEAD(&node->li_group); in ldlm_interval_alloc() 110 ldlm_interval_attach(node, lock); in ldlm_interval_alloc() 111 return node; in ldlm_interval_alloc() 114 void ldlm_interval_free(struct ldlm_interval *node) in ldlm_interval_free() argument 116 if (node) { in ldlm_interval_free() 117 LASSERT(list_empty(&node->li_group)); in ldlm_interval_free() 118 LASSERT(!interval_is_intree(&node->li_node)); in ldlm_interval_free() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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); 125 static void check_nodes_props(struct check *c, struct node *dt, struct node *node) in check_nodes_props() argument 127 struct node *child; in check_nodes_props() 130 TRACE(c, "%s", node->fullpath); in check_nodes_props() 132 c->node_fn(c, dt, node); in check_nodes_props() 135 for_each_property(node, prop) { in check_nodes_props() 136 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.1.27/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.1.27/lib/ |
D | timerqueue.c | 39 void 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() 72 void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) in timerqueue_del() argument 74 WARN_ON_ONCE(RB_EMPTY_NODE(&node->node)); in timerqueue_del() [all …]
|
D | rbtree.c | 73 __rb_insert(struct rb_node *node, struct rb_root *root, in __rb_insert() argument 76 struct rb_node *parent = rb_red_parent(node), *gparent, *tmp; in __rb_insert() 87 rb_set_parent_color(node, NULL, RB_BLACK); in __rb_insert() 112 node = gparent; in __rb_insert() 113 parent = rb_parent(node); in __rb_insert() 114 rb_set_parent_color(node, parent, RB_RED); in __rb_insert() 119 if (node == tmp) { in __rb_insert() 132 parent->rb_right = tmp = node->rb_left; in __rb_insert() 133 node->rb_left = parent; in __rb_insert() 137 rb_set_parent_color(parent, node, RB_RED); in __rb_insert() [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 | radix-tree.c | 87 static inline void tag_set(struct radix_tree_node *node, unsigned int tag, in tag_set() argument 90 __set_bit(offset, node->tags[tag]); in tag_set() 93 static inline void tag_clear(struct radix_tree_node *node, unsigned int tag, in tag_clear() argument 96 __clear_bit(offset, node->tags[tag]); in tag_clear() 99 static inline int tag_get(struct radix_tree_node *node, unsigned int tag, in tag_get() argument 102 return test_bit(offset, node->tags[tag]); in tag_get() 129 static inline int any_tag_set(struct radix_tree_node *node, unsigned int tag) in any_tag_set() argument 133 if (node->tags[tag][idx]) in any_tag_set() 219 struct radix_tree_node *node = in radix_tree_node_rcu_free() local 229 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.1.27/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.1.27/include/drm/ |
D | drm_vma_manager.h | 64 struct drm_vma_offset_node *node, unsigned long pages); 66 struct drm_vma_offset_node *node); 68 int drm_vma_node_allow(struct drm_vma_offset_node *node, struct file *filp); 69 void drm_vma_node_revoke(struct drm_vma_offset_node *node, struct file *filp); 70 bool drm_vma_node_is_allowed(struct drm_vma_offset_node *node, 90 struct drm_vma_offset_node *node; in drm_vma_offset_exact_lookup() local 92 node = drm_vma_offset_lookup(mgr, start, pages); in drm_vma_offset_exact_lookup() 93 return (node && node->vm_node.start == start) ? node : NULL; in drm_vma_offset_exact_lookup() 145 static inline void drm_vma_node_reset(struct drm_vma_offset_node *node) in drm_vma_node_reset() argument 147 memset(node, 0, sizeof(*node)); in drm_vma_node_reset() [all …]
|
D | drm_mm.h | 93 void (*color_adjust)(struct drm_mm_node *node, unsigned long color, 107 static inline bool drm_mm_node_allocated(struct drm_mm_node *node) in drm_mm_node_allocated() argument 109 return node->allocated; in drm_mm_node_allocated() 221 int drm_mm_reserve_node(struct drm_mm *mm, struct drm_mm_node *node); 224 struct drm_mm_node *node, 247 struct drm_mm_node *node, in drm_mm_insert_node() argument 252 return drm_mm_insert_node_generic(mm, node, size, alignment, 0, flags, in drm_mm_insert_node() 257 struct drm_mm_node *node, 284 struct drm_mm_node *node, in drm_mm_insert_node_in_range() argument 291 return drm_mm_insert_node_in_range_generic(mm, node, size, alignment, in drm_mm_insert_node_in_range() [all …]
|
/linux-4.1.27/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 | 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_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 | 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()
|
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 | 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); 49 const struct device_node *node); 50 struct device_node *of_graph_get_remote_port(const struct device_node *node); 53 static inline int of_graph_parse_endpoint(const struct device_node *node, in of_graph_parse_endpoint() argument 60 struct device_node *node, u32 id) in of_graph_get_port_by_id() argument 73 const struct device_node *node) in of_graph_get_remote_port_parent() argument 79 const struct device_node *node) in of_graph_get_remote_port() argument
|
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()
|
/linux-4.1.27/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.1.27/tools/perf/tests/ |
D | hists_output.c | 94 struct rb_node *node; in del_hist_entries() local 104 node = rb_first(root_out); in del_hist_entries() 106 he = rb_entry(node, struct hist_entry, rb_node); in del_hist_entries() 107 rb_erase(node, root_out); in del_hist_entries() 128 struct rb_node *node; in test1() local 163 node = rb_first(root); in test1() 164 he = rb_entry(node, struct hist_entry, rb_node); in test1() 169 node = rb_next(node); in test1() 170 he = rb_entry(node, struct hist_entry, rb_node); in test1() 175 node = rb_next(node); in test1() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/drivers/acpi/acpica/ |
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 | 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 | 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 | 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 | 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 | 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 | 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 192 node = acpi_ns_validate_handle(handle); in ACPI_EXPORT_SYMBOL() 193 if (!node) { in ACPI_EXPORT_SYMBOL() 207 node_name = acpi_ut_get_node_name(node); in ACPI_EXPORT_SYMBOL() 273 struct acpi_namespace_node *node; in acpi_get_object_info() local 299 node = acpi_ns_validate_handle(handle); in acpi_get_object_info() 300 if (!node) { in acpi_get_object_info() [all …]
|
D | nsnames.c | 68 acpi_ns_build_external_path(struct acpi_namespace_node *node, in acpi_ns_build_external_path() argument 87 parent_node = node; in acpi_ns_build_external_path() 134 char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) in acpi_ns_get_external_pathname() argument 140 ACPI_FUNCTION_TRACE_PTR(ns_get_external_pathname, node); in acpi_ns_get_external_pathname() 144 size = acpi_ns_get_pathname_length(node); in acpi_ns_get_external_pathname() 159 status = acpi_ns_build_external_path(node, size, name_buffer); in acpi_ns_get_external_pathname() 180 acpi_size acpi_ns_get_pathname_length(struct acpi_namespace_node *node) in acpi_ns_get_pathname_length() argument 192 next_node = node; in acpi_ns_get_pathname_length() 231 struct acpi_namespace_node *node; in acpi_ns_handle_to_pathname() local 236 node = acpi_ns_validate_handle(target_handle); in acpi_ns_handle_to_pathname() [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 | acnamesp.h | 97 acpi_ns_load_table(u32 table_index, struct acpi_namespace_node *node); 154 void acpi_ns_delete_node(struct acpi_namespace_node *node); 156 void acpi_ns_remove_node(struct acpi_namespace_node *node); 163 void acpi_ns_detach_object(struct acpi_namespace_node *node); 236 struct acpi_namespace_node *node, 242 struct acpi_namespace_node *node, 251 acpi_ns_check_return_value(struct acpi_namespace_node *node, 275 acpi_ns_build_external_path(struct acpi_namespace_node *node, 278 char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node); 294 acpi_size acpi_ns_get_pathname_length(struct acpi_namespace_node *node); [all …]
|
D | nseval.c | 95 if (!info->node) { in acpi_ns_evaluate() 106 ACPI_NS_NO_UPSEARCH, &info->node); in acpi_ns_evaluate() 116 if (acpi_ns_get_type(info->node) == ACPI_TYPE_LOCAL_METHOD_ALIAS) { in acpi_ns_evaluate() 117 info->node = in acpi_ns_evaluate() 119 info->node->object); in acpi_ns_evaluate() 125 info->node_flags = info->node->flags; in acpi_ns_evaluate() 126 info->obj_desc = acpi_ns_get_attached_object(info->node); in acpi_ns_evaluate() 129 info->relative_pathname, info->node, in acpi_ns_evaluate() 130 acpi_ns_get_attached_object(info->node))); in acpi_ns_evaluate() 135 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 | 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 | 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 …]
|
D | exresolv.c | 252 if ((stack_desc->reference.node->type == in acpi_ex_resolve_object_to_value() 254 || (stack_desc->reference.node->type == in acpi_ex_resolve_object_to_value() 259 *stack_ptr = (void *)stack_desc->reference.node; in acpi_ex_resolve_object_to_value() 264 (stack_desc->reference.node)->object; in acpi_ex_resolve_object_to_value() 341 struct acpi_namespace_node *node; in acpi_ex_resolve_multiple() local 397 node = obj_desc->reference.object; in acpi_ex_resolve_multiple() 400 node = obj_desc->reference.node; in acpi_ex_resolve_multiple() 405 if (ACPI_GET_DESCRIPTOR_TYPE(node) != in acpi_ex_resolve_multiple() 409 node, in acpi_ex_resolve_multiple() 410 acpi_ut_get_descriptor_name(node))); in acpi_ex_resolve_multiple() [all …]
|
D | evrgnini.c | 53 static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node); 202 parent_node = region_obj->region.node->parent; in acpi_ev_pci_config_region_setup() 217 if (handler_obj->address_space.node == acpi_gbl_root_node) { in acpi_ev_pci_config_region_setup() 255 pci_root_node = handler_obj->address_space.node; in acpi_ev_pci_config_region_setup() 280 pci_device_node = region_obj->region.node; in acpi_ev_pci_config_region_setup() 326 region_obj->region.node); in acpi_ev_pci_config_region_setup() 349 static u8 acpi_ev_is_pci_root_bridge(struct acpi_namespace_node *node) in acpi_ev_is_pci_root_bridge() argument 359 status = acpi_ut_execute_HID(node, &hid); in acpi_ev_is_pci_root_bridge() 373 status = acpi_ut_execute_CID(node, &cid); in acpi_ev_is_pci_root_bridge() 508 struct acpi_namespace_node *node; in acpi_ev_initialize_region() local [all …]
|
/linux-4.1.27/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.1.27/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 | 134 struct drm_vma_offset_node *node; in drm_vma_offset_lookup() local 137 node = drm_vma_offset_lookup_locked(mgr, start, pages); in drm_vma_offset_lookup() 140 return node; in drm_vma_offset_lookup() 161 struct drm_vma_offset_node *node, *best; in drm_vma_offset_lookup_locked() local 169 node = rb_entry(iter, struct drm_vma_offset_node, vm_rb); in drm_vma_offset_lookup_locked() 170 offset = node->vm_node.start; in drm_vma_offset_lookup_locked() 173 best = node; in drm_vma_offset_lookup_locked() 194 struct drm_vma_offset_node *node) in _drm_vma_offset_add_rb() argument 204 if (node->vm_node.start < iter_node->vm_node.start) in _drm_vma_offset_add_rb() 206 else if (node->vm_node.start > iter_node->vm_node.start) in _drm_vma_offset_add_rb() [all …]
|
/linux-4.1.27/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.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | gk20a.c | 110 struct gk20a_instobj_priv *node = (void *)object; in gk20a_instobj_rd32() local 112 u64 base = (node->mem->offset + offset) & 0xffffff00000ULL; in gk20a_instobj_rd32() 113 u64 addr = (node->mem->offset + offset) & 0x000000fffffULL; in gk20a_instobj_rd32() 130 struct gk20a_instobj_priv *node = (void *)object; in gk20a_instobj_wr32() local 132 u64 base = (node->mem->offset + offset) & 0xffffff00000ULL; in gk20a_instobj_wr32() 133 u64 addr = (node->mem->offset + offset) & 0x000000fffffULL; in gk20a_instobj_wr32() 147 struct gk20a_instobj_dma *node = (void *)_node; in gk20a_instobj_dtor_dma() local 148 struct gk20a_instmem_priv *priv = (void *)nvkm_instmem(node); in gk20a_instobj_dtor_dma() 151 if (unlikely(!node->cpuaddr)) in gk20a_instobj_dtor_dma() 154 dma_free_attrs(dev, _node->mem->size << PAGE_SHIFT, node->cpuaddr, in gk20a_instobj_dtor_dma() [all …]
|
D | nv50.c | 47 struct nv50_instobj_priv *node = (void *)object; in nv50_instobj_rd32() local 49 u64 base = (node->mem->offset + offset) & 0xffffff00000ULL; in nv50_instobj_rd32() 50 u64 addr = (node->mem->offset + offset) & 0x000000fffffULL; in nv50_instobj_rd32() 67 struct nv50_instobj_priv *node = (void *)object; in nv50_instobj_wr32() local 69 u64 base = (node->mem->offset + offset) & 0xffffff00000ULL; in nv50_instobj_wr32() 70 u64 addr = (node->mem->offset + offset) & 0x000000fffffULL; in nv50_instobj_wr32() 84 struct nv50_instobj_priv *node = (void *)object; in nv50_instobj_dtor() local 86 pfb->ram->put(pfb, &node->mem); in nv50_instobj_dtor() 87 nvkm_instobj_destroy(&node->base); in nv50_instobj_dtor() 97 struct nv50_instobj_priv *node; in nv50_instobj_ctor() local [all …]
|
D | nv04.c | 36 struct nv04_instobj_priv *node = (void *)object; in nv04_instobj_rd32() local 37 return nv_ro32(priv, node->mem->offset + addr); in nv04_instobj_rd32() 44 struct nv04_instobj_priv *node = (void *)object; in nv04_instobj_wr32() local 45 nv_wo32(priv, node->mem->offset + addr, data); in nv04_instobj_wr32() 52 struct nv04_instobj_priv *node = (void *)object; in nv04_instobj_dtor() local 56 nvkm_mm_free(&priv->heap, &node->mem); in nv04_instobj_dtor() 59 nvkm_instobj_destroy(&node->base); in nv04_instobj_dtor() 68 struct nv04_instobj_priv *node; in nv04_instobj_ctor() local 76 ret = nvkm_instobj_create(parent, engine, oclass, &node); in nv04_instobj_ctor() 77 *pobject = nv_object(node); in nv04_instobj_ctor() [all …]
|
/linux-4.1.27/arch/mips/loongson/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.1.27/drivers/clk/ |
D | clk-moxart.c | 18 void __init moxart_of_pll_clk_init(struct device_node *node) in moxart_of_pll_clk_init() argument 23 const char *name = node->name; in moxart_of_pll_clk_init() 26 of_property_read_string(node, "clock-output-names", &name); in moxart_of_pll_clk_init() 27 parent_name = of_clk_get_parent_name(node, 0); in moxart_of_pll_clk_init() 29 base = of_iomap(node, 0); in moxart_of_pll_clk_init() 31 pr_err("%s: of_iomap failed\n", node->full_name); in moxart_of_pll_clk_init() 38 ref_clk = of_clk_get(node, 0); in moxart_of_pll_clk_init() 40 pr_err("%s: of_clk_get failed\n", node->full_name); in moxart_of_pll_clk_init() 46 pr_err("%s: failed to register clock\n", node->full_name); in moxart_of_pll_clk_init() 51 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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/iommu/ |
D | iova.c | 85 container_of(iovad->cached32_node, struct iova, node); in __get_cached_rbnode() 97 iovad->cached32_node = &new->node; in __cached_rbnode_insert_update() 109 cached_iova = container_of(curr, struct iova, node); in __cached_rbnode_delete_update() 112 struct rb_node *node = rb_next(&free->node); in __cached_rbnode_delete_update() local 113 struct iova *iova = container_of(node, struct iova, node); in __cached_rbnode_delete_update() 116 if (node && iova->pfn_lo < iovad->dma_32bit_pfn) in __cached_rbnode_delete_update() 117 iovad->cached32_node = node; in __cached_rbnode_delete_update() 153 struct iova *curr_iova = container_of(curr, struct iova, node); in __alloc_and_insert_iova_range() 200 struct iova, node); in __alloc_and_insert_iova_range() 212 rb_link_node(&new->node, parent, entry); in __alloc_and_insert_iova_range() [all …]
|
/linux-4.1.27/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.1.27/net/tipc/ |
D | node.c | 45 static void tipc_node_delete(struct tipc_node *node); 73 struct tipc_node *node = container_of(kref, struct tipc_node, kref); in tipc_node_kref_release() local 75 tipc_node_delete(node); in tipc_node_kref_release() 78 void tipc_node_put(struct tipc_node *node) in tipc_node_put() argument 80 kref_put(&node->kref, tipc_node_kref_release); in tipc_node_put() 83 static void tipc_node_get(struct tipc_node *node) in tipc_node_get() argument 85 kref_get(&node->kref); in tipc_node_get() 94 struct tipc_node *node; in tipc_node_find() local 100 hlist_for_each_entry_rcu(node, &tn->node_htable[tipc_hashfn(addr)], in tipc_node_find() 102 if (node->addr == addr) { in tipc_node_find() [all …]
|
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_active_links(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.h | 142 void tipc_node_put(struct tipc_node *node); 151 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node, 153 void tipc_node_unlock(struct tipc_node *node); 159 static inline void tipc_node_lock(struct tipc_node *node) in tipc_node_lock() argument 161 spin_lock_bh(&node->lock); in tipc_node_lock() 164 static inline bool tipc_node_blocked(struct tipc_node *node) in tipc_node_blocked() argument 166 return (node->action_flags & (TIPC_WAIT_PEER_LINKS_DOWN | in tipc_node_blocked() 172 struct tipc_node *node; in tipc_node_get_mtu() local 175 node = tipc_node_find(net, addr); in tipc_node_get_mtu() 177 if (likely(node)) { in tipc_node_get_mtu() [all …]
|
D | bcast.c | 52 static void tipc_nmap_add(struct tipc_node_map *nm_ptr, u32 node); 53 static void tipc_nmap_remove(struct tipc_node_map *nm_ptr, u32 node); 133 static void bclink_update_last_sent(struct tipc_node *node, u32 seqno) in bclink_update_last_sent() argument 135 node->bclink.last_sent = less_eq(node->bclink.last_sent, seqno) ? in bclink_update_last_sent() 136 seqno : node->bclink.last_sent; in bclink_update_last_sent() 401 static void bclink_accept_pkt(struct tipc_node *node, u32 seqno) in bclink_accept_pkt() argument 403 struct tipc_net *tn = net_generic(node->net, tipc_net_id); in bclink_accept_pkt() 405 bclink_update_last_sent(node, seqno); in bclink_accept_pkt() 406 node->bclink.last_in = seqno; in bclink_accept_pkt() 407 node->bclink.oos_state = 0; in bclink_accept_pkt() [all …]
|
/linux-4.1.27/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() 226 static unsigned int nlm_xlp2_get_core_frequency(int node, int core) in nlm_xlp2_get_core_frequency() argument 232 clockbase = nlm_get_clock_regbase(node); in nlm_xlp2_get_core_frequency() 238 sysbase = nlm_get_node(node)->sysbase; in nlm_xlp2_get_core_frequency() 272 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 …]
|
D | ahci-init.c | 89 #define nlm_get_sata_pcibase(node) \ argument 90 nlm_pcicfg_base(XLP_IO_SATA_OFFSET(node)) 92 #define nlm_get_sata_regbase(node) \ argument 93 (nlm_get_sata_pcibase(node) + 0x900) 111 static void nlm_sata_firmware_init(int node) in nlm_sata_firmware_init() argument 118 regbase = nlm_get_sata_regbase(node); in nlm_sata_firmware_init() 153 int node = 0; in nlm_ahci_init() local 157 nlm_sata_firmware_init(node); in nlm_ahci_init() 185 int node = 0; /* XLP3XX does not support multi-node */ in nlm_sata_fixup_final() local 187 regbase = nlm_get_sata_regbase(node); in nlm_sata_fixup_final() [all …]
|
/linux-4.1.27/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() 100 node->prev = prev; in osq_lock() 101 WRITE_ONCE(prev->next, node); in osq_lock() 112 while (!READ_ONCE(node->locked)) { in osq_lock() [all …]
|
D | mcs_spinlock.h | 61 void mcs_spin_lock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_lock() argument 66 node->locked = 0; in mcs_spin_lock() 67 node->next = NULL; in mcs_spin_lock() 69 prev = xchg(lock, node); in mcs_spin_lock() 81 WRITE_ONCE(prev->next, node); in mcs_spin_lock() 84 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock() 92 void mcs_spin_unlock(struct mcs_spinlock **lock, struct mcs_spinlock *node) in mcs_spin_unlock() argument 94 struct mcs_spinlock *next = READ_ONCE(node->next); in mcs_spin_unlock() 100 if (likely(cmpxchg(lock, node, NULL) == node)) in mcs_spin_unlock() 103 while (!(next = READ_ONCE(node->next))) in mcs_spin_unlock()
|
/linux-4.1.27/drivers/clk/keystone/ |
D | pll.c | 163 static void __init _of_pll_clk_init(struct device_node *node, bool pllctrl) in _of_pll_clk_init() argument 176 parent_name = of_clk_get_parent_name(node, 0); in _of_pll_clk_init() 177 if (of_property_read_u32(node, "fixed-postdiv", &pll_data->postdiv)) { in _of_pll_clk_init() 186 i = of_property_match_string(node, "reg-names", in _of_pll_clk_init() 188 pll_data->pllod = of_iomap(node, i); in _of_pll_clk_init() 191 i = of_property_match_string(node, "reg-names", "control"); in _of_pll_clk_init() 192 pll_data->pll_ctl0 = of_iomap(node, i); in _of_pll_clk_init() 207 i = of_property_match_string(node, "reg-names", "multiplier"); in _of_pll_clk_init() 208 pll_data->pllm = of_iomap(node, i); in _of_pll_clk_init() 216 clk = clk_register_pll(NULL, node->name, parent_name, pll_data); in _of_pll_clk_init() [all …]
|
/linux-4.1.27/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.1.27/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 | 295 __sort_chain_flat(struct rb_root *rb_root, struct callchain_node *node, in __sort_chain_flat() argument 301 n = rb_first(&node->rb_root_in); in __sort_chain_flat() 309 if (node->hit && node->hit >= min_hit) in __sort_chain_flat() 310 rb_insert_callchain(rb_root, node, CHAIN_FLAT); in __sort_chain_flat() 321 __sort_chain_flat(rb_root, &root->node, min_hit); in sort_chain_flat() 324 static void __sort_chain_graph_abs(struct callchain_node *node, in __sort_chain_graph_abs() argument 330 node->rb_root = RB_ROOT; in __sort_chain_graph_abs() 331 n = rb_first(&node->rb_root_in); in __sort_chain_graph_abs() 339 rb_insert_callchain(&node->rb_root, child, in __sort_chain_graph_abs() 348 __sort_chain_graph_abs(&chain_root->node, min_hit); in sort_chain_graph_abs() [all …]
|
/linux-4.1.27/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 | 181 struct avc_node *node; in avc_get_hash_stats() local 193 hlist_for_each_entry_rcu(node, head, list) in avc_get_hash_stats() 210 struct avc_node *node = container_of(rhead, struct avc_node, rhead); in avc_node_free() local 211 kmem_cache_free(avc_node_cachep, node); in avc_node_free() 215 static void avc_node_delete(struct avc_node *node) in avc_node_delete() argument 217 hlist_del_rcu(&node->list); in avc_node_delete() 218 call_rcu(&node->rhead, avc_node_free); in avc_node_delete() 222 static void avc_node_kill(struct avc_node *node) in avc_node_kill() argument 224 kmem_cache_free(avc_node_cachep, node); in avc_node_kill() 238 struct avc_node *node; in avc_reclaim_node() local [all …]
|
/linux-4.1.27/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.1.27/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 | 49 nvkm_mem_node_cleanup(struct nvkm_mem *node) in nvkm_mem_node_cleanup() argument 51 if (node->vma[0].node) { in nvkm_mem_node_cleanup() 52 nvkm_vm_unmap(&node->vma[0]); in nvkm_mem_node_cleanup() 53 nvkm_vm_put(&node->vma[0]); in nvkm_mem_node_cleanup() 56 if (node->vma[1].node) { in nvkm_mem_node_cleanup() 57 nvkm_vm_unmap(&node->vma[1]); in nvkm_mem_node_cleanup() 58 nvkm_vm_put(&node->vma[1]); in nvkm_mem_node_cleanup() 81 struct nvkm_mem *node; in nouveau_vram_manager_new() local 93 (nvbo->tile_flags >> 8) & 0x3ff, &node); in nouveau_vram_manager_new() 99 node->page_shift = nvbo->page_shift; in nouveau_vram_manager_new() [all …]
|
/linux-4.1.27/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.1.27/drivers/media/v4l2-core/ |
D | v4l2-of.c | 22 static int v4l2_of_parse_csi_bus(const struct device_node *node, in v4l2_of_parse_csi_bus() argument 31 prop = of_find_property(node, "data-lanes", NULL); in v4l2_of_parse_csi_bus() 45 prop = of_find_property(node, "lane-polarities", NULL); in v4l2_of_parse_csi_bus() 59 node->full_name, 1 + bus->num_data_lanes, i); in v4l2_of_parse_csi_bus() 64 if (!of_property_read_u32(node, "clock-lanes", &v)) { in v4l2_of_parse_csi_bus() 69 if (of_get_property(node, "clock-noncontinuous", &v)) in v4l2_of_parse_csi_bus() 80 static void v4l2_of_parse_parallel_bus(const struct device_node *node, in v4l2_of_parse_parallel_bus() argument 87 if (!of_property_read_u32(node, "hsync-active", &v)) in v4l2_of_parse_parallel_bus() 91 if (!of_property_read_u32(node, "vsync-active", &v)) in v4l2_of_parse_parallel_bus() 95 if (!of_property_read_u32(node, "pclk-sample", &v)) in v4l2_of_parse_parallel_bus() [all …]
|
/linux-4.1.27/drivers/clk/ti/ |
D | dpll.c | 143 struct device_node *node) in _register_dpll() argument 149 dd->clk_ref = of_clk_get(node, 0); in _register_dpll() 150 dd->clk_bypass = of_clk_get(node, 1); in _register_dpll() 154 node->name); in _register_dpll() 155 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll() 166 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_dpll() 288 static void _register_dpll_x2(struct device_node *node, in _register_dpll_x2() argument 295 const char *name = node->name; in _register_dpll_x2() 298 parent_name = of_clk_get_parent_name(node, 0); in _register_dpll_x2() 300 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 | 34 static void __init of_ti_fixed_factor_clk_setup(struct device_node *node) in of_ti_fixed_factor_clk_setup() argument 37 const char *clk_name = node->name; in of_ti_fixed_factor_clk_setup() 42 if (of_property_read_u32(node, "ti,clock-div", &div)) { in of_ti_fixed_factor_clk_setup() 43 pr_err("%s must have a clock-div property\n", node->name); in of_ti_fixed_factor_clk_setup() 47 if (of_property_read_u32(node, "ti,clock-mult", &mult)) { in of_ti_fixed_factor_clk_setup() 48 pr_err("%s must have a clock-mult property\n", node->name); in of_ti_fixed_factor_clk_setup() 52 if (of_property_read_bool(node, "ti,set-rate-parent")) in of_ti_fixed_factor_clk_setup() 55 parent_name = of_clk_get_parent_name(node, 0); in of_ti_fixed_factor_clk_setup() 61 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_ti_fixed_factor_clk_setup() 62 of_ti_clk_autoidle_setup(node); in of_ti_fixed_factor_clk_setup()
|
D | apll.c | 134 struct device_node *node) in omap_clk_register_apll() argument 140 ad->clk_ref = of_clk_get(node, 0); in omap_clk_register_apll() 141 ad->clk_bypass = of_clk_get(node, 1); in omap_clk_register_apll() 145 node->name); in omap_clk_register_apll() 146 if (!ti_clk_retry_init(node, hw, omap_clk_register_apll)) in omap_clk_register_apll() 154 of_clk_add_provider(node, of_clk_src_simple_get, clk); in omap_clk_register_apll() 167 static void __init of_dra7_apll_setup(struct device_node *node) in of_dra7_apll_setup() argument 185 init->name = node->name; in of_dra7_apll_setup() 188 init->num_parents = of_clk_get_parent_count(node); in of_dra7_apll_setup() 190 pr_err("dra7 apll %s must have parent(s)\n", node->name); in of_dra7_apll_setup() [all …]
|
D | autoidle.c | 30 struct list_head node; member 75 list_for_each_entry(c, &autoidle_clks, node) in of_ti_clk_allow_autoidle_all() 89 list_for_each_entry(c, &autoidle_clks, node) in of_ti_clk_deny_autoidle_all() 104 int __init of_ti_clk_autoidle_setup(struct device_node *node) in of_ti_clk_autoidle_setup() argument 110 if (of_property_read_u32(node, "ti,autoidle-shift", &shift)) in of_ti_clk_autoidle_setup() 119 clk->name = node->name; in of_ti_clk_autoidle_setup() 120 clk->reg = ti_clk_get_reg_addr(node, 0); in of_ti_clk_autoidle_setup() 127 if (of_property_read_bool(node, "ti,invert-autoidle-bit")) in of_ti_clk_autoidle_setup() 130 list_add(&clk->node, &autoidle_clks); in of_ti_clk_autoidle_setup()
|
D | clk.c | 45 struct device_node *node; in ti_dt_clocks_register() local 50 node = of_find_node_by_name(NULL, c->node_name); in ti_dt_clocks_register() 51 clkspec.np = node; in ti_dt_clocks_register() 65 struct device_node *node; member 82 int __init ti_clk_retry_init(struct device_node *node, struct clk_hw *hw, in ti_clk_retry_init() argument 87 pr_debug("%s: adding to retry list...\n", node->name); in ti_clk_retry_init() 92 retry->node = node; in ti_clk_retry_init() 109 void __iomem *ti_clk_get_reg_addr(struct device_node *node, int index) in ti_clk_get_reg_addr() argument 119 if (clocks_node_ptr[i] == node->parent) in ti_clk_get_reg_addr() 124 pr_err("clk-provider not found for %s!\n", node->name); in ti_clk_get_reg_addr() [all …]
|
D | mux.c | 187 static void of_mux_clk_setup(struct device_node *node) in of_mux_clk_setup() argument 199 num_parents = of_clk_get_parent_count(node); in of_mux_clk_setup() 201 pr_err("mux-clock %s must have parents\n", node->name); in of_mux_clk_setup() 209 parent_names[i] = of_clk_get_parent_name(node, i); in of_mux_clk_setup() 211 reg = ti_clk_get_reg_addr(node, 0); in of_mux_clk_setup() 216 of_property_read_u32(node, "ti,bit-shift", &shift); in of_mux_clk_setup() 218 if (of_property_read_bool(node, "ti,index-starts-at-one")) in of_mux_clk_setup() 221 if (of_property_read_bool(node, "ti,set-rate-parent")) in of_mux_clk_setup() 231 clk = _register_mux(NULL, node->name, parent_names, num_parents, in of_mux_clk_setup() 236 of_clk_add_provider(node, of_clk_src_simple_get, clk); in of_mux_clk_setup() [all …]
|
/linux-4.1.27/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.1.27/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-mod0.c | 81 static void __init sun4i_a10_mod0_setup(struct device_node *node) in sun4i_a10_mod0_setup() argument 85 reg = of_iomap(node, 0); in sun4i_a10_mod0_setup() 95 sunxi_factors_register(node, &sun4i_a10_mod0_data, in sun4i_a10_mod0_setup() 141 static void __init sun9i_a80_mod0_setup(struct device_node *node) in sun9i_a80_mod0_setup() argument 145 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sun9i_a80_mod0_setup() 148 node->name); in sun9i_a80_mod0_setup() 152 sunxi_factors_register(node, &sun9i_a80_mod0_data, in sun9i_a80_mod0_setup() 159 static void __init sun5i_a13_mbus_setup(struct device_node *node) in sun5i_a13_mbus_setup() argument 164 reg = of_iomap(node, 0); in sun5i_a13_mbus_setup() 170 mbus = sunxi_factors_register(node, &sun4i_a10_mod0_data, in sun5i_a13_mbus_setup() [all …]
|
D | clk-usb.c | 95 static void __init sunxi_usb_clk_setup(struct device_node *node, in sunxi_usb_clk_setup() argument 108 reg = of_io_request_and_map(node, 0, of_node_full_name(node)); in sunxi_usb_clk_setup() 112 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_usb_clk_setup() 132 of_property_read_string_index(node, "clock-output-names", in sunxi_usb_clk_setup() 145 of_clk_add_provider(node, of_clk_src_onecell_get, clk_data); in sunxi_usb_clk_setup() 156 reset_data->clk = of_clk_get(node, 0); in sunxi_usb_clk_setup() 168 reset_data->rcdev.of_node = node; in sunxi_usb_clk_setup() 179 static void __init sun4i_a10_usb_setup(struct device_node *node) in sun4i_a10_usb_setup() argument 181 sunxi_usb_clk_setup(node, &sun4i_a10_usb_clk_data, &sun4i_a10_usb_lock); in sun4i_a10_usb_setup() 190 static void __init sun5i_a13_usb_setup(struct device_node *node) in sun5i_a13_usb_setup() argument [all …]
|
/linux-4.1.27/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 19 of_node_get(node); in mpc5xxx_get_bus_frequency() 20 while (node) { in mpc5xxx_get_bus_frequency() 21 p_bus_freq = of_get_property(node, "bus-frequency", NULL); in mpc5xxx_get_bus_frequency() 25 np = of_get_parent(node); in mpc5xxx_get_bus_frequency() 26 of_node_put(node); in mpc5xxx_get_bus_frequency() 27 node = np; in mpc5xxx_get_bus_frequency() 29 of_node_put(node); in mpc5xxx_get_bus_frequency()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/xen/xenbus/ |
D | xenbus_client.c | 117 watch->node = path; in xenbus_watch_path() 123 watch->node = NULL; in xenbus_watch_path() 541 struct xenbus_map_node *node; in xenbus_map_ring_valloc_pv() local 554 node = kzalloc(sizeof(*node), GFP_KERNEL); in xenbus_map_ring_valloc_pv() 555 if (!node) in xenbus_map_ring_valloc_pv() 560 kfree(node); in xenbus_map_ring_valloc_pv() 567 err = __xenbus_map_ring(dev, gnt_refs, nr_grefs, node->handles, in xenbus_map_ring_valloc_pv() 574 node->nr_handles = nr_grefs; in xenbus_map_ring_valloc_pv() 575 node->pv.area = area; in xenbus_map_ring_valloc_pv() 578 list_add(&node->next, &xenbus_valloc_pages); in xenbus_map_ring_valloc_pv() [all …]
|
/linux-4.1.27/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.1.27/fs/btrfs/ |
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 | 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() 186 struct ulist_node *node; in ulist_add_merge() local 188 node = ulist_rbtree_search(ulist, val); in ulist_add_merge() 189 if (node) { in ulist_add_merge() 191 *old_aux = node->aux; in ulist_add_merge() 194 node = kmalloc(sizeof(*node), gfp_mask); in ulist_add_merge() 195 if (!node) in ulist_add_merge() 198 node->val = val; in ulist_add_merge() [all …]
|
D | delayed-ref.h | 77 struct btrfs_delayed_ref_node node; member 117 struct btrfs_delayed_ref_node node; member 124 struct btrfs_delayed_ref_node node; member 248 static int btrfs_delayed_ref_is_head(struct btrfs_delayed_ref_node *node) in btrfs_delayed_ref_is_head() argument 250 return node->is_head; in btrfs_delayed_ref_is_head() 257 btrfs_delayed_node_to_tree_ref(struct btrfs_delayed_ref_node *node) in btrfs_delayed_node_to_tree_ref() argument 259 WARN_ON(btrfs_delayed_ref_is_head(node)); in btrfs_delayed_node_to_tree_ref() 260 return container_of(node, struct btrfs_delayed_tree_ref, node); in btrfs_delayed_node_to_tree_ref() 264 btrfs_delayed_node_to_data_ref(struct btrfs_delayed_ref_node *node) in btrfs_delayed_node_to_data_ref() argument 266 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 …]
|
D | delayed-ref.c | 65 if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) { in comp_data_refs() 140 struct rb_node *node) in tree_insert() argument 148 ins = rb_entry(node, struct btrfs_delayed_ref_node, rb_node); in tree_insert() 163 rb_link_node(node, parent_node, p); in tree_insert() 164 rb_insert_color(node, root); in tree_insert() 170 struct rb_node *node) in htree_insert() argument 178 ins = rb_entry(node, struct btrfs_delayed_ref_head, href_node); in htree_insert() 179 bytenr = ins->node.bytenr; in htree_insert() 185 if (bytenr < entry->node.bytenr) in htree_insert() 187 else if (bytenr > entry->node.bytenr) in htree_insert() [all …]
|
/linux-4.1.27/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 | 90 unsigned long node, const char *compat) in of_fdt_is_compatible() argument 96 cp = fdt_getprop(blob, node, "compatible", &cplen); in of_fdt_is_compatible() 120 bool of_fdt_is_big_endian(const void *blob, unsigned long node) in of_fdt_is_big_endian() argument 122 if (fdt_getprop(blob, node, "big-endian", NULL)) in of_fdt_is_big_endian() 125 fdt_getprop(blob, node, "native-endian", NULL)) in of_fdt_is_big_endian() 133 int of_fdt_match(const void *blob, unsigned long node, in of_fdt_match() argument 142 tmp = of_fdt_is_compatible(blob, node, *compat); in of_fdt_match() 464 static int __init __reserved_mem_reserve_reg(unsigned long node, in __reserved_mem_reserve_reg() argument 473 prop = of_get_flat_dt_prop(node, "reg", &len); in __reserved_mem_reserve_reg() 483 nomap = of_get_flat_dt_prop(node, "no-map", NULL) != NULL; in __reserved_mem_reserve_reg() [all …]
|
D | of_pci.c | 9 static inline int __of_pci_pci_compare(struct device_node *node, in __of_pci_pci_compare() argument 14 devfn = of_pci_get_devfn(node); in __of_pci_pci_compare() 24 struct device_node *node, *node2; in of_pci_find_child_device() local 26 for_each_child_of_node(parent, node) { in of_pci_find_child_device() 27 if (__of_pci_pci_compare(node, devfn)) in of_pci_find_child_device() 28 return node; in of_pci_find_child_device() 34 if (!strcmp(node->name, "multifunc-device")) { in of_pci_find_child_device() 35 for_each_child_of_node(node, node2) { in of_pci_find_child_device() 37 of_node_put(node); in of_pci_find_child_device() 77 int of_pci_parse_bus_range(struct device_node *node, struct resource *res) in of_pci_parse_bus_range() argument [all …]
|
/linux-4.1.27/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.1.27/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.1.27/security/selinux/ss/ |
D | conditional.c | 89 int evaluate_cond_node(struct policydb *p, struct cond_node *node) in evaluate_cond_node() argument 94 new_state = cond_evaluate_expr(p, node->expr); in evaluate_cond_node() 95 if (new_state != node->cur_state) { in evaluate_cond_node() 96 node->cur_state = new_state; in evaluate_cond_node() 100 for (cur = node->true_list; cur; cur = cur->next) { in evaluate_cond_node() 102 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node() 104 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node() 107 for (cur = node->false_list; cur; cur = cur->next) { in evaluate_cond_node() 110 cur->node->key.specified &= ~AVTAB_ENABLED; in evaluate_cond_node() 112 cur->node->key.specified |= AVTAB_ENABLED; in evaluate_cond_node() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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_low(struct interval_node *node) in interval_low() argument 72 return node->in_extent.start; in interval_low() 75 static inline __u64 interval_high(struct interval_node *node) in interval_high() argument 77 return node->in_extent.end; in interval_high() 80 static inline void interval_set(struct interval_node *node, in interval_set() argument 84 node->in_extent.start = start; in interval_set() 85 node->in_extent.end = end; in interval_set() 86 node->in_max_high = end; in interval_set() [all …]
|
/linux-4.1.27/kernel/power/ |
D | wakelock.c | 27 struct rb_node node; member 38 struct rb_node *node; in pm_show_wakelocks() local 45 for (node = rb_first(&wakelocks_tree); node; node = rb_next(node)) { in pm_show_wakelocks() 46 wl = rb_entry(node, struct wakelock, node); in pm_show_wakelocks() 122 rb_erase(&wl->node, &wakelocks_tree); in wakelocks_gc() 140 struct rb_node **node = &wakelocks_tree.rb_node; in wakelock_lookup_add() local 141 struct rb_node *parent = *node; in wakelock_lookup_add() 144 while (*node) { in wakelock_lookup_add() 147 parent = *node; in wakelock_lookup_add() 148 wl = rb_entry(*node, struct wakelock, node); in wakelock_lookup_add() [all …]
|
/linux-4.1.27/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 check_cpu_slb_size(unsigned long node) in check_cpu_slb_size() argument 229 slb_size_ptr = of_get_flat_dt_prop(node, "slb-size", NULL); in check_cpu_slb_size() 234 slb_size_ptr = of_get_flat_dt_prop(node, "ibm,slb-size", NULL); in check_cpu_slb_size() 240 #define check_cpu_slb_size(node) do { } while(0) argument 265 static inline void identical_pvr_fixup(unsigned long node) in identical_pvr_fixup() argument 268 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 134 type = of_get_property(node, "device_type", NULL); in of_create_pci_dev() 140 dev->dev.of_node = of_node_get(node); in of_create_pci_dev() 152 dev->vendor = get_int_prop(node, "vendor-id", 0xffff); in of_create_pci_dev() 153 dev->device = get_int_prop(node, "device-id", 0xffff); in of_create_pci_dev() 154 dev->subsystem_vendor = get_int_prop(node, "subsystem-vendor-id", 0); in of_create_pci_dev() 155 dev->subsystem_device = get_int_prop(node, "subsystem-id", 0); in of_create_pci_dev() 161 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 …]
|
D | prom_init.c | 448 phandle node; in prom_next_node() local 450 if ((node = *nodep) != 0 in prom_next_node() 451 && (*nodep = call_prom("child", 1, 1, node)) != 0) in prom_next_node() 453 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node() 456 if ((node = call_prom("parent", 1, 1, node)) == 0) in prom_next_node() 458 if ((*nodep = call_prom("peer", 1, 1, node)) != 0) in prom_next_node() 463 static int inline prom_getprop(phandle node, const char *pname, in prom_getprop() argument 466 return call_prom("getprop", 4, 1, node, ADDR(pname), in prom_getprop() 470 static int inline prom_getproplen(phandle node, const char *pname) in prom_getproplen() argument 472 return call_prom("getproplen", 2, 1, node, ADDR(pname)); in prom_getproplen() [all …]
|
D | machine_kexec_64.c | 38 struct device_node *node; in default_machine_kexec_prepare() local 78 for_each_node_by_type(node, "pci") { in default_machine_kexec_prepare() 79 basep = of_get_property(node, "linux,tce-base", NULL); in default_machine_kexec_prepare() 80 sizep = of_get_property(node, "linux,tce-size", NULL); in default_machine_kexec_prepare() 386 struct device_node *node; in export_htab_values() local 393 node = of_find_node_by_path("/chosen"); in export_htab_values() 394 if (!node) in export_htab_values() 398 prop = of_find_property(node, htab_base_prop.name, NULL); in export_htab_values() 400 of_remove_property(node, prop); in export_htab_values() 401 prop = of_find_property(node, htab_size_prop.name, NULL); in export_htab_values() [all …]
|
D | pci_32.c | 71 make_one_node_map(struct device_node* node, u8 pci_bus) in make_one_node_map() argument 78 bus_range = of_get_property(node, "bus-range", &len); in make_one_node_map() 81 "assuming it starts at 0\n", node->full_name); in make_one_node_map() 86 for_each_child_of_node(node, node) { in make_one_node_map() 90 class_code = of_get_property(node, "class-code", NULL); in make_one_node_map() 94 reg = of_get_property(node, "reg", NULL); in make_one_node_map() 102 make_one_node_map(node, dev->subordinate->number); in make_one_node_map() 129 struct device_node* node = hose->dn; in pcibios_make_OF_bus_map() local 131 if (!node) in pcibios_make_OF_bus_map() 133 make_one_node_map(node, hose->first_busno); in pcibios_make_OF_bus_map() [all …]
|
/linux-4.1.27/tools/perf/ |
D | builtin-kmem.c | 51 struct rb_node node; member 65 struct rb_node **node = &root_alloc_stat.rb_node; in insert_alloc_stat() local 69 while (*node) { in insert_alloc_stat() 70 parent = *node; in insert_alloc_stat() 71 data = rb_entry(*node, struct alloc_stat, node); in insert_alloc_stat() 74 node = &(*node)->rb_right; in insert_alloc_stat() 76 node = &(*node)->rb_left; in insert_alloc_stat() 97 rb_link_node(&data->node, parent, node); in insert_alloc_stat() 98 rb_insert_color(&data->node, &root_alloc_stat); in insert_alloc_stat() 108 struct rb_node **node = &root_caller_stat.rb_node; in insert_caller_stat() local [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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()
|
D | cuboot-pq2.c | 130 void *node, *parent_node; in fixup_pci() local 133 node = finddevice("/pci"); in fixup_pci() 134 if (!node || !dt_is_compatible(node, "fsl,pq2-pci")) in fixup_pci() 138 if (!dt_xlate_reg(node, i, in fixup_pci() 146 dt_get_reg_format(node, &naddr, &nsize); in fixup_pci() 150 parent_node = get_parent(node); in fixup_pci() 158 len = getprop(node, "ranges", pci_ranges_buf, in fixup_pci() 247 void *node; in pq2_platform_fixups() local 253 node = finddevice("/soc/cpm"); in pq2_platform_fixups() 254 if (node) in pq2_platform_fixups() [all …]
|
D | mpc8xx.c | 61 void *node; in mpc8xx_set_clocks() local 65 node = finddevice("/soc/cpm"); in mpc8xx_set_clocks() 66 if (node) in mpc8xx_set_clocks() 67 setprop(node, "clock-frequency", &sysclk, 4); in mpc8xx_set_clocks() 69 node = finddevice("/soc/cpm/brg"); in mpc8xx_set_clocks() 70 if (node) in mpc8xx_set_clocks() 71 setprop(node, "clock-frequency", &sysclk, 4); in mpc8xx_set_clocks()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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 …]
|
/linux-4.1.27/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.1.27/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->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->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->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.1.27/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 …]
|
D | scan.c | 364 raw->next_in_ino = xd->node->next_in_ino; in jffs2_scan_xattr_node() 365 xd->node->next_in_ino = raw; in jffs2_scan_xattr_node() 444 struct jffs2_unknown_node *node; in jffs2_scan_eraseblock() local 635 if (jeb->offset + c->sector_size < ofs + sizeof(*node)) { in jffs2_scan_eraseblock() 639 sizeof(*node)); in jffs2_scan_eraseblock() 645 if (buf_ofs + buf_len < ofs + sizeof(*node)) { in jffs2_scan_eraseblock() 656 node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; in jffs2_scan_eraseblock() 718 if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { in jffs2_scan_eraseblock() 726 if (je16_to_cpu(node->magic) == JFFS2_DIRTY_BITMASK) { in jffs2_scan_eraseblock() 733 if (je16_to_cpu(node->magic) == JFFS2_OLD_MAGIC_BITMASK) { in jffs2_scan_eraseblock() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/net/batman-adv/ |
D | hash.h | 61 struct hlist_node *node, *node_tmp; in batadv_hash_delete() local 70 hlist_for_each_safe(node, node_tmp, head) { in batadv_hash_delete() 71 hlist_del_rcu(node); in batadv_hash_delete() 74 free_cb(node, arg); in batadv_hash_delete() 124 struct hlist_node *node; in batadv_hash_add() local 136 hlist_for_each(node, head) { in batadv_hash_add() 137 if (!compare(node, data)) in batadv_hash_add() 166 struct hlist_node *node; in batadv_hash_remove() local 174 hlist_for_each(node, head) { in batadv_hash_remove() 175 if (!compare(node, data)) in batadv_hash_remove() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/infiniband/hw/usnic/ |
D | usnic_uiom_interval_tree.c | 27 #define START(node) ((node)->start) argument 28 #define LAST(node) ((node)->last) argument 30 #define MAKE_NODE(node, start, end, ref_cnt, flags, err, err_out) \ argument 32 node = usnic_uiom_interval_node_alloc(start, \ 34 if (!node) { \ 40 #define MARK_FOR_ADD(node, list) (list_add_tail(&node->link, list)) argument 42 #define MAKE_NODE_AND_APPEND(node, start, end, ref_cnt, flags, err, \ argument 45 MAKE_NODE(node, start, end, \ 48 MARK_FOR_ADD(node, list); \ 92 struct usnic_uiom_interval_node *node; in find_intervals_intersection_sorted() local [all …]
|
/linux-4.1.27/drivers/acpi/ |
D | numa.c | 56 int node_to_pxm(int node) in node_to_pxm() argument 58 if (node < 0) in node_to_pxm() 60 return node_to_pxm_map[node]; in node_to_pxm() 63 static void __acpi_map_pxm_to_node(int pxm, int node) in __acpi_map_pxm_to_node() argument 65 if (pxm_to_node_map[pxm] == NUMA_NO_NODE || node < pxm_to_node_map[pxm]) in __acpi_map_pxm_to_node() 66 pxm_to_node_map[pxm] = node; in __acpi_map_pxm_to_node() 67 if (node_to_pxm_map[node] == PXM_INVAL || pxm < node_to_pxm_map[node]) in __acpi_map_pxm_to_node() 68 node_to_pxm_map[node] = pxm; in __acpi_map_pxm_to_node() 73 int node = pxm_to_node_map[pxm]; in acpi_map_pxm_to_node() local 75 if (node == NUMA_NO_NODE) { 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()
|
D | nvs.c | 23 struct list_head node; member 46 list_add_tail(®ion->node, &nvs_region_list); in acpi_nvs_register() 57 list_for_each_entry(region, &nvs_region_list, node) { in acpi_nvs_for_each_region() 80 struct list_head node; member 108 list_add_tail(&entry->node, &nvs_list); in suspend_nvs_register() 119 list_for_each_entry_safe(entry, next, &nvs_list, node) { in suspend_nvs_register() 120 list_del(&entry->node); in suspend_nvs_register() 133 list_for_each_entry(entry, &nvs_list, node) in suspend_nvs_free() 157 list_for_each_entry(entry, &nvs_list, node) { in suspend_nvs_alloc() 176 list_for_each_entry(entry, &nvs_list, node) in suspend_nvs_save() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/socfpga/ |
D | clk-periph.c | 52 static __init void __socfpga_periph_init(struct device_node *node, in __socfpga_periph_init() argument 58 const char *clk_name = node->name; in __socfpga_periph_init() 65 of_property_read_u32(node, "reg", ®); in __socfpga_periph_init() 73 rc = of_property_read_u32_array(node, "div-reg", div_reg, 3); in __socfpga_periph_init() 82 rc = of_property_read_u32(node, "fixed-divider", &fixed_div); in __socfpga_periph_init() 88 of_property_read_string(node, "clock-output-names", &clk_name); in __socfpga_periph_init() 93 parent_name = of_clk_get_parent_name(node, 0); in __socfpga_periph_init() 104 rc = of_clk_add_provider(node, of_clk_src_simple_get, clk); in __socfpga_periph_init() 107 void __init socfpga_periph_init(struct device_node *node) in socfpga_periph_init() argument 109 __socfpga_periph_init(node, &periclk_ops); in socfpga_periph_init()
|
/linux-4.1.27/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() 189 struct irq_domain *iic_get_irq_host(int node) in iic_get_irq_host() argument 225 static int iic_host_match(struct irq_domain *h, struct device_node *node) in iic_host_match() argument 227 return of_device_is_compatible(node, in iic_host_match() 253 unsigned int node, ext, unit, class; in iic_host_xlate() local 265 node = intspec[0] >> 24; in iic_host_xlate() 271 if (node > 1) in iic_host_xlate() 275 *out_hwirq = (node << IIC_IRQ_NODE_SHIFT); in iic_host_xlate() [all …]
|
D | spu_manage.c | 95 nid = spu->node; in spu_map_interrupts_old() 130 struct device_node *node = spu->devnode; in spu_map_device_old() local 135 spu->name = of_get_property(node, "name", NULL); in spu_map_device_old() 139 prop = of_get_property(node, "local-store", NULL); in spu_map_device_old() 146 spu_map_prop_old(spu, node, "local-store"); in spu_map_device_old() 150 prop = of_get_property(node, "problem", NULL); in spu_map_device_old() 155 spu->problem = spu_map_prop_old(spu, node, "problem"); in spu_map_device_old() 159 spu->priv2 = spu_map_prop_old(spu, node, "priv2"); in spu_map_device_old() 164 spu->priv1 = spu_map_prop_old(spu, node, "priv1"); in spu_map_device_old() 288 struct device_node *node; in of_enumerate_spus() local [all …]
|
/linux-4.1.27/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.1.27/kernel/irq/ |
D | irqdesc.c | 39 static int alloc_masks(struct irq_desc *desc, gfp_t gfp, int node) in alloc_masks() argument 41 if (!zalloc_cpumask_var_node(&desc->irq_data.affinity, gfp, node)) in alloc_masks() 45 if (!zalloc_cpumask_var_node(&desc->pending_mask, gfp, node)) { in alloc_masks() 53 static void desc_smp_init(struct irq_desc *desc, int node) in desc_smp_init() argument 55 desc->irq_data.node = node; in desc_smp_init() 64 return desc->irq_data.node; in desc_node() 69 alloc_masks(struct irq_desc *desc, gfp_t gfp, int node) { return 0; } in alloc_masks() argument 70 static inline void desc_smp_init(struct irq_desc *desc, int node) { } in desc_smp_init() argument 74 static void desc_set_defaults(unsigned int irq, struct irq_desc *desc, int node, in desc_set_defaults() argument 94 desc_smp_init(desc, node); in desc_set_defaults() [all …]
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/irqchip/ |
D | irq-omap-intc.c | 247 static int __init omap_init_irq_of(struct device_node *node) in omap_init_irq_of() argument 251 omap_irq_base = of_iomap(node, 0); in omap_init_irq_of() 255 domain = irq_domain_add_linear(node, omap_nr_irqs, in omap_init_irq_of() 267 static int __init omap_init_irq_legacy(u32 base, struct device_node *node) in omap_init_irq_legacy() argument 281 domain = irq_domain_add_legacy(node, omap_nr_irqs, irq_base, 0, in omap_init_irq_legacy() 301 static int __init omap_init_irq(u32 base, struct device_node *node) in omap_init_irq() argument 311 if (of_device_is_compatible(node, "ti,omap2-intc") || in omap_init_irq() 312 of_device_is_compatible(node, "ti,omap3-intc")) { in omap_init_irq() 315 if (of_address_to_resource(node, 0, &res)) in omap_init_irq() 319 ret = omap_init_irq_legacy(base, node); in omap_init_irq() [all …]
|
/linux-4.1.27/Documentation/devicetree/bindings/regulator/ |
D | isl9305.txt | 7 - regulators: A node that houses a sub-node for each regulator within the 8 device. Each sub-node is identified using the node's name, with valid 9 values being "dcd1", "dcd2", "ldo1" and "ldo2". The content of each sub-node 11 - VINDCD1-supply: A phandle to a regulator node supplying VINDCD1. 12 VINDCD2-supply: A phandle to a regulator node supplying VINDCD2. 13 VINLDO1-supply: A phandle to a regulator node supplying VINLDO1. 14 VINLDO2-supply: A phandle to a regulator node supplying VINLDO2.
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | feature.c | 120 typedef long (*feature_call)(struct device_node *node, long param, long value); 141 static inline int simple_feature_tweak(struct device_node *node, int type, in simple_feature_tweak() argument 147 macio = macio_find(node, type); in simple_feature_tweak() 163 static long ohare_htw_scc_enable(struct device_node *node, long param, in ohare_htw_scc_enable() argument 173 macio = macio_find(node, 0); in ohare_htw_scc_enable() 176 if (!strcmp(node->name, "ch-a")) in ohare_htw_scc_enable() 178 else if (!strcmp(node->name, "ch-b")) in ohare_htw_scc_enable() 256 static long ohare_floppy_enable(struct device_node *node, long param, in ohare_floppy_enable() argument 259 return simple_feature_tweak(node, macio_ohare, in ohare_floppy_enable() 263 static long ohare_mesh_enable(struct device_node *node, long param, long value) in ohare_mesh_enable() argument [all …]
|
/linux-4.1.27/drivers/net/wireless/mwifiex/ |
D | uap_event.c | 49 struct mwifiex_sta_node *node; in mwifiex_process_uap_event() local 81 node = mwifiex_add_sta_entry(priv, event->sta_addr); in mwifiex_process_uap_event() 82 if (!node) { in mwifiex_process_uap_event() 92 sinfo.assoc_req_ies_len, node); in mwifiex_process_uap_event() 95 if (node->is_11n_enabled) in mwifiex_process_uap_event() 96 node->ampdu_sta[i] = in mwifiex_process_uap_event() 99 node->ampdu_sta[i] = BA_STREAM_NOT_ALLOWED; in mwifiex_process_uap_event() 101 memset(node->rx_seq, 0xff, sizeof(node->rx_seq)); in mwifiex_process_uap_event() 242 struct mwifiex_sta_node *node) in mwifiex_uap_del_sta_data() argument 244 if (priv->ap_11n_enabled && node->is_11n_enabled) { in mwifiex_uap_del_sta_data() [all …]
|