/drivers/staging/lustre/lustre/ldlm/ |
D | interval_tree.c | 46 static inline int node_is_left_child(struct interval_node *node) in node_is_left_child() argument 48 return node == node->in_parent->in_left; in node_is_left_child() 51 static inline int node_is_right_child(struct interval_node *node) in node_is_right_child() argument 53 return node == node->in_parent->in_right; in node_is_right_child() 56 static inline int node_is_red(struct interval_node *node) in node_is_red() argument 58 return node->in_color == INTERVAL_RED; in node_is_red() 61 static inline int node_is_black(struct interval_node *node) in node_is_black() argument 63 return node->in_color == INTERVAL_BLACK; in node_is_black() 104 static struct interval_node *interval_first(struct interval_node *node) in interval_first() argument 106 if (!node) in interval_first() [all …]
|
/drivers/gpu/drm/ |
D | drm_mm.c | 106 static noinline void save_stack(struct drm_mm_node *node) in save_stack() argument 121 node->stack = depot_save_stack(&trace, GFP_NOWAIT); in save_stack() 126 struct drm_mm_node *node; in show_leaks() local 134 list_for_each_entry(node, drm_mm_nodes(mm), node_list) { in show_leaks() 140 if (!node->stack) { in show_leaks() 142 node->start, node->size); in show_leaks() 146 depot_fetch_stack(node->stack, &trace); in show_leaks() 149 node->start, node->size, buf); in show_leaks() 158 static void save_stack(struct drm_mm_node *node) { } in save_stack() argument 162 #define START(node) ((node)->start) argument [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
D | gk20a.c | 171 struct gk20a_instobj *node = gk20a_instobj(memory); in gk20a_instobj_acquire_dma() local 172 struct gk20a_instmem *imem = node->imem; in gk20a_instobj_acquire_dma() 177 return node->vaddr; in gk20a_instobj_acquire_dma() 183 struct gk20a_instobj_iommu *node = gk20a_instobj_iommu(memory); in gk20a_instobj_acquire_iommu() local 184 struct gk20a_instmem *imem = node->base.imem; in gk20a_instobj_acquire_iommu() 192 if (node->base.vaddr) { in gk20a_instobj_acquire_iommu() 193 if (!node->use_cpt) { in gk20a_instobj_acquire_iommu() 195 list_del(&node->vaddr_node); in gk20a_instobj_acquire_iommu() 204 node->base.vaddr = vmap(node->pages, size >> PAGE_SHIFT, VM_MAP, in gk20a_instobj_acquire_iommu() 206 if (!node->base.vaddr) { in gk20a_instobj_acquire_iommu() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/hmm/ |
D | hmm_vm.c | 43 struct hmm_vm_node *node) in addr_in_vm_node() argument 45 return (addr >= node->start) && (addr < (node->start + node->size)); in addr_in_vm_node() 68 struct hmm_vm_node *node, *tmp; in hmm_vm_clean() local 78 list_for_each_entry_safe(node, tmp, &new_head, list) { in hmm_vm_clean() 79 list_del(&node->list); in hmm_vm_clean() 80 kmem_cache_free(vm->cache, node); in hmm_vm_clean() 89 struct hmm_vm_node *node; in alloc_hmm_vm_node() local 91 node = kmem_cache_alloc(vm->cache, GFP_KERNEL); in alloc_hmm_vm_node() 92 if (!node) { in alloc_hmm_vm_node() 97 INIT_LIST_HEAD(&node->list); in alloc_hmm_vm_node() [all …]
|
/drivers/acpi/acpica/ |
D | nsobject.c | 73 acpi_ns_attach_object(struct acpi_namespace_node *node, in acpi_ns_attach_object() argument 85 if (!node) { in acpi_ns_attach_object() 102 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { in acpi_ns_attach_object() 107 node, acpi_ut_get_descriptor_name(node))); in acpi_ns_attach_object() 113 if (node->object == object) { in acpi_ns_attach_object() 116 object, node)); in acpi_ns_attach_object() 155 obj_desc, node, acpi_ut_get_node_name(node))); in acpi_ns_attach_object() 159 if (node->object) { in acpi_ns_attach_object() 160 acpi_ns_detach_object(node); in acpi_ns_attach_object() 181 last_obj_desc->common.next_object = node->object; in acpi_ns_attach_object() [all …]
|
D | dsargs.c | 57 acpi_ds_execute_arguments(struct acpi_namespace_node *node, 77 acpi_ds_execute_arguments(struct acpi_namespace_node *node, in acpi_ds_execute_arguments() argument 96 op->common.node = scope_node; in acpi_ds_execute_arguments() 116 walk_state->deferred_node = node; in acpi_ds_execute_arguments() 127 op->common.node = node; in acpi_ds_execute_arguments() 137 op->common.node = scope_node; in acpi_ds_execute_arguments() 158 walk_state->deferred_node = node; in acpi_ds_execute_arguments() 183 struct acpi_namespace_node *node; in acpi_ds_get_buffer_field_arguments() local 195 node = obj_desc->buffer_field.node; in acpi_ds_get_buffer_field_arguments() 198 (ACPI_TYPE_BUFFER_FIELD, node, NULL)); in acpi_ds_get_buffer_field_arguments() [all …]
|
D | nsalloc.c | 64 struct acpi_namespace_node *node; in acpi_ns_create_node() local 71 node = acpi_os_acquire_object(acpi_gbl_namespace_cache); in acpi_ns_create_node() 72 if (!node) { in acpi_ns_create_node() 86 node->name.integer = name; in acpi_ns_create_node() 87 ACPI_SET_DESCRIPTOR_TYPE(node, ACPI_DESC_TYPE_NAMED); in acpi_ns_create_node() 88 return_PTR(node); in acpi_ns_create_node() 106 void acpi_ns_delete_node(struct acpi_namespace_node *node) in acpi_ns_delete_node() argument 115 acpi_ns_detach_object(node); in acpi_ns_delete_node() 123 obj_desc = node->object; in acpi_ns_delete_node() 129 obj_desc->data.handler(node, obj_desc->data.pointer); in acpi_ns_delete_node() [all …]
|
D | dswload2.c | 73 struct acpi_namespace_node *node; in acpi_ds_load2_begin_op() local 142 node = NULL; in acpi_ds_load2_begin_op() 155 ACPI_NS_SEARCH_PARENT, walk_state, &(node)); in acpi_ds_load2_begin_op() 162 if (op && (op->named.node == acpi_gbl_root_node)) { in acpi_ds_load2_begin_op() 163 node = op->named.node; in acpi_ds_load2_begin_op() 166 acpi_ds_scope_stack_push(node, object_type, in acpi_ds_load2_begin_op() 181 &(node)); in acpi_ds_load2_begin_op() 201 switch (node->type) { in acpi_ds_load2_begin_op() 226 acpi_ut_get_node_name(node), in acpi_ds_load2_begin_op() 227 acpi_ut_get_type_name(node->type))); in acpi_ds_load2_begin_op() [all …]
|
D | nsnames.c | 66 char *acpi_ns_get_external_pathname(struct acpi_namespace_node *node) in acpi_ns_get_external_pathname() argument 70 ACPI_FUNCTION_TRACE_PTR(ns_get_external_pathname, node); in acpi_ns_get_external_pathname() 72 name_buffer = acpi_ns_get_normalized_pathname(node, FALSE); in acpi_ns_get_external_pathname() 88 acpi_size acpi_ns_get_pathname_length(struct acpi_namespace_node *node) in acpi_ns_get_pathname_length() argument 94 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { in acpi_ns_get_pathname_length() 97 node, ACPI_GET_DESCRIPTOR_TYPE(node))); in acpi_ns_get_pathname_length() 101 size = acpi_ns_build_normalized_path(node, NULL, 0, FALSE); in acpi_ns_get_pathname_length() 123 struct acpi_namespace_node *node; in acpi_ns_handle_to_name() local 128 node = acpi_ns_validate_handle(target_handle); in acpi_ns_handle_to_name() 129 if (!node) { in acpi_ns_handle_to_name() [all …]
|
D | dbcmds.c | 63 acpi_dm_test_resource_conversion(struct acpi_namespace_node *node, char *name); 91 struct acpi_namespace_node *node; in acpi_db_convert_to_node() local 99 node = ACPI_TO_POINTER(address); in acpi_db_convert_to_node() 100 if (!acpi_os_readable(node, sizeof(struct acpi_namespace_node))) { in acpi_db_convert_to_node() 101 acpi_os_printf("Address %p is invalid", node); in acpi_db_convert_to_node() 107 if (ACPI_GET_DESCRIPTOR_TYPE(node) != ACPI_DESC_TYPE_NAMED) { in acpi_db_convert_to_node() 110 node, acpi_ut_get_descriptor_name(node)); in acpi_db_convert_to_node() 118 node = acpi_db_local_ns_lookup(in_string); in acpi_db_convert_to_node() 119 if (!node) { in acpi_db_convert_to_node() 123 node = acpi_gbl_root_node; in acpi_db_convert_to_node() [all …]
|
/drivers/gpu/drm/selftests/ |
D | test-drm_mm.c | 107 struct drm_mm_node *node, *check, *found; in assert_continuous() local 116 drm_mm_for_each_node(node, mm) { in assert_continuous() 117 if (node->start != addr) { in assert_continuous() 119 n, addr, node->start); in assert_continuous() 123 if (node->size != size) { in assert_continuous() 125 n, size, node->size); in assert_continuous() 129 if (drm_mm_hole_follows(node)) { in assert_continuous() 136 if (node != check) { in assert_continuous() 138 node->start, check->start); in assert_continuous() 156 static u64 misalignment(struct drm_mm_node *node, u64 alignment) in misalignment() argument [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | mmu_rb.c | 86 INTERVAL_TREE_DEFINE(struct mmu_rb_node, node, unsigned long, __last, 89 static unsigned long mmu_node_start(struct mmu_rb_node *node) in mmu_node_start() argument 91 return node->addr & PAGE_MASK; in mmu_node_start() 94 static unsigned long mmu_node_last(struct mmu_rb_node *node) in mmu_node_last() argument 96 return PAGE_ALIGN(node->addr + node->len) - 1; in mmu_node_last() 136 struct rb_node *node; in hfi1_mmu_rb_unregister() local 152 while ((node = rb_first_cached(&handler->root))) { in hfi1_mmu_rb_unregister() 153 rbnode = rb_entry(node, struct mmu_rb_node, node); in hfi1_mmu_rb_unregister() 154 rb_erase_cached(node, &handler->root); in hfi1_mmu_rb_unregister() 168 struct mmu_rb_node *node; in hfi1_mmu_rb_insert() local [all …]
|
/drivers/firmware/efi/ |
D | dev-path-parser.c | 41 static long __init parse_acpi_path(struct efi_dev_path *node, in parse_acpi_path() argument 47 if (node->length != 12) in parse_acpi_path() 51 'A' + ((node->acpi.hid >> 10) & 0x1f) - 1, in parse_acpi_path() 52 'A' + ((node->acpi.hid >> 5) & 0x1f) - 1, in parse_acpi_path() 53 'A' + ((node->acpi.hid >> 0) & 0x1f) - 1, in parse_acpi_path() 54 node->acpi.hid >> 16); in parse_acpi_path() 55 sprintf(hid_uid.uid, "%u", node->acpi.uid); in parse_acpi_path() 79 static long __init parse_pci_path(struct efi_dev_path *node, in parse_pci_path() argument 84 if (node->length != 6) in parse_pci_path() 89 devfn = PCI_DEVFN(node->pci.dev, node->pci.fn); in parse_pci_path() [all …]
|
/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 433 if (ctx && ctx->node[0]) in bdisp_hw_free_nodes() 436 ctx->node[0], ctx->node_paddr[0], in bdisp_hw_free_nodes() 467 ctx->node[i] = base; in bdisp_hw_alloc_nodes() 469 dev_dbg(dev, "node[%d]=0x%p (paddr=%pad)\n", i, ctx->node[i], in bdisp_hw_alloc_nodes() 759 struct bdisp_node *node, in bdisp_hw_build_node() argument 774 memset(node, 0, sizeof(*node)); in bdisp_hw_build_node() 789 node->nip = 0; in bdisp_hw_build_node() 790 node->cic = BLT_CIC_ALL_GRP; in bdisp_hw_build_node() 791 node->ack = BLT_ACK_BYPASS_S2S3; in bdisp_hw_build_node() 796 node->ins = BLT_INS_S1_OFF | BLT_INS_S2_MEM | BLT_INS_S3_OFF; in bdisp_hw_build_node() [all …]
|
/drivers/block/drbd/ |
D | drbd_interval.c | 10 sector_t interval_end(struct rb_node *node) in interval_end() argument 12 struct drbd_interval *this = rb_entry(node, struct drbd_interval, rb); in interval_end() 24 compute_subtree_last(struct drbd_interval *node) in compute_subtree_last() argument 26 sector_t max = node->sector + (node->size >> 9); in compute_subtree_last() 28 if (node->rb.rb_left) { in compute_subtree_last() 29 sector_t left = interval_end(node->rb.rb_left); in compute_subtree_last() 33 if (node->rb.rb_right) { in compute_subtree_last() 34 sector_t right = interval_end(node->rb.rb_right); in compute_subtree_last() 94 struct rb_node *node = root->rb_node; in drbd_contains_interval() local 96 while (node) { in drbd_contains_interval() [all …]
|
/drivers/net/wireless/quantenna/qtnfmac/ |
D | util.c | 31 struct qtnf_sta_node *node; in qtnf_sta_list_lookup() local 36 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup() 37 if (ether_addr_equal(node->mac_addr, mac)) in qtnf_sta_list_lookup() 38 return node; in qtnf_sta_list_lookup() 47 struct qtnf_sta_node *node; in qtnf_sta_list_lookup_index() local 52 list_for_each_entry(node, &list->head, list) { in qtnf_sta_list_lookup_index() 54 return node; in qtnf_sta_list_lookup_index() 63 struct qtnf_sta_node *node; in qtnf_sta_list_add() local 68 node = qtnf_sta_list_lookup(list, mac); in qtnf_sta_list_add() 70 if (node) in qtnf_sta_list_add() [all …]
|
/drivers/acpi/arm64/ |
D | iort.c | 92 struct fwnode_handle *iort_get_fwnode(struct acpi_iort_node *node) in iort_get_fwnode() argument 99 if (curr->iort_node == node) { in iort_get_fwnode() 114 static inline void iort_delete_fwnode(struct acpi_iort_node *node) in iort_delete_fwnode() argument 120 if (curr->iort_node == node) { in iort_delete_fwnode() 130 (struct acpi_iort_node *node, void *context); 242 static acpi_status iort_match_node_callback(struct acpi_iort_node *node, in iort_match_node_callback() argument 248 if (node->type == ACPI_IORT_NODE_NAMED_COMPONENT) { in iort_match_node_callback() 262 ncomp = (struct acpi_iort_named_component *)node->node_data; in iort_match_node_callback() 266 } else if (node->type == ACPI_IORT_NODE_PCI_ROOT_COMPLEX) { in iort_match_node_callback() 271 pci_rc = (struct acpi_iort_root_complex *)node->node_data; in iort_match_node_callback() [all …]
|
/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 refcount_set(&node->ref_count, 1); in fw_node_create() [all …]
|
/drivers/base/ |
D | devres.c | 27 struct devres_node node; member 39 struct devres_node node[2]; member 49 static void set_node_dbginfo(struct devres_node *node, const char *name, in set_node_dbginfo() argument 52 node->name = name; in set_node_dbginfo() 53 node->size = size; in set_node_dbginfo() 56 static void devres_log(struct device *dev, struct devres_node *node, in devres_log() argument 61 op, node, node->name, (unsigned long)node->size); in devres_log() 64 #define set_node_dbginfo(node, n, s) do {} while (0) argument 65 #define devres_log(dev, node, op) do {} while (0) argument 82 static struct devres_group * node_to_group(struct devres_node *node) in node_to_group() argument [all …]
|
/drivers/clk/ti/ |
D | dpll.c | 156 struct device_node *node) in _register_dpll() argument 162 clk = of_clk_get(node, 0); in _register_dpll() 165 node->name); in _register_dpll() 166 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll() 174 clk = of_clk_get(node, 1); in _register_dpll() 178 node->name); in _register_dpll() 179 if (!ti_clk_retry_init(node, hw, _register_dpll)) in _register_dpll() 188 clk = ti_clk_register(NULL, &clk_hw->hw, node->name); in _register_dpll() 192 of_clk_add_provider(node, of_clk_src_simple_get, clk); in _register_dpll() 306 static void _register_dpll_x2(struct device_node *node, in _register_dpll_x2() argument [all …]
|
/drivers/clk/ |
D | clk-moxart.c | 19 static void __init moxart_of_pll_clk_init(struct device_node *node) in moxart_of_pll_clk_init() argument 25 const char *name = node->name; in moxart_of_pll_clk_init() 28 of_property_read_string(node, "clock-output-names", &name); in moxart_of_pll_clk_init() 29 parent_name = of_clk_get_parent_name(node, 0); in moxart_of_pll_clk_init() 31 base = of_iomap(node, 0); in moxart_of_pll_clk_init() 33 pr_err("%pOF: of_iomap failed\n", node); in moxart_of_pll_clk_init() 40 ref_clk = of_clk_get(node, 0); in moxart_of_pll_clk_init() 42 pr_err("%pOF: of_clk_get failed\n", node); in moxart_of_pll_clk_init() 48 pr_err("%pOF: failed to register clock\n", node); in moxart_of_pll_clk_init() 53 of_clk_add_hw_provider(node, of_clk_hw_simple_get, hw); in moxart_of_pll_clk_init() [all …]
|
/drivers/pnp/pnpbios/ |
D | core.c | 205 struct pnp_bios_node *node; in pnpbios_get_resources() local 211 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_get_resources() 212 if (!node) in pnpbios_get_resources() 214 if (pnp_bios_get_dev_node(&nodenum, (char)PNPMODE_DYNAMIC, node)) { in pnpbios_get_resources() 215 kfree(node); in pnpbios_get_resources() 218 pnpbios_read_resources_from_node(dev, node); in pnpbios_get_resources() 220 kfree(node); in pnpbios_get_resources() 227 struct pnp_bios_node *node; in pnpbios_set_resources() local 234 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_set_resources() 235 if (!node) in pnpbios_set_resources() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | fs_core.c | 172 static void del_rule(struct fs_node *node); 173 static void del_flow_table(struct fs_node *node); 174 static void del_flow_group(struct fs_node *node); 175 static void del_fte(struct fs_node *node); 183 static void tree_init_node(struct fs_node *node, in tree_init_node() argument 187 atomic_set(&node->refcount, refcount); in tree_init_node() 188 INIT_LIST_HEAD(&node->list); in tree_init_node() 189 INIT_LIST_HEAD(&node->children); in tree_init_node() 190 mutex_init(&node->lock); in tree_init_node() 191 node->remove_func = remove_func; in tree_init_node() [all …]
|
/drivers/clk/keystone/ |
D | pll.c | 162 static void __init _of_pll_clk_init(struct device_node *node, bool pllctrl) in _of_pll_clk_init() argument 175 parent_name = of_clk_get_parent_name(node, 0); in _of_pll_clk_init() 176 if (of_property_read_u32(node, "fixed-postdiv", &pll_data->postdiv)) { in _of_pll_clk_init() 185 i = of_property_match_string(node, "reg-names", in _of_pll_clk_init() 187 pll_data->pllod = of_iomap(node, i); in _of_pll_clk_init() 190 i = of_property_match_string(node, "reg-names", "control"); in _of_pll_clk_init() 191 pll_data->pll_ctl0 = of_iomap(node, i); in _of_pll_clk_init() 206 i = of_property_match_string(node, "reg-names", "multiplier"); in _of_pll_clk_init() 207 pll_data->pllm = of_iomap(node, i); in _of_pll_clk_init() 215 clk = clk_register_pll(NULL, node->name, parent_name, pll_data); in _of_pll_clk_init() [all …]
|
/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 …]
|