/Linux-v6.1/fs/hfs/ |
D | brec.c | 68 struct hfs_bnode *node, *new_node; in hfs_brec_insert() local 84 new_node = NULL; in hfs_brec_insert() 100 if (new_node) in hfs_brec_insert() 102 new_node = hfs_bnode_split(fd); in hfs_brec_insert() 103 if (IS_ERR(new_node)) in hfs_brec_insert() 104 return PTR_ERR(new_node); in hfs_brec_insert() 140 if (!rec && new_node != node) { in hfs_brec_insert() 145 if (new_node) { in hfs_brec_insert() 147 if (!new_node->parent) { in hfs_brec_insert() 149 new_node->parent = tree->root; in hfs_brec_insert() [all …]
|
/Linux-v6.1/fs/hfsplus/ |
D | brec.c | 66 struct hfs_bnode *node, *new_node; in hfs_brec_insert() local 82 new_node = NULL; in hfs_brec_insert() 98 if (new_node) in hfs_brec_insert() 100 new_node = hfs_bnode_split(fd); in hfs_brec_insert() 101 if (IS_ERR(new_node)) in hfs_brec_insert() 102 return PTR_ERR(new_node); in hfs_brec_insert() 140 if (!rec && new_node != node) { in hfs_brec_insert() 145 if (new_node) { in hfs_brec_insert() 147 if (!new_node->parent) { in hfs_brec_insert() 149 new_node->parent = tree->root; in hfs_brec_insert() [all …]
|
/Linux-v6.1/tools/perf/util/ |
D | rblist.c | 16 struct rb_node *parent = NULL, *new_node; in rblist__add_node() local 35 new_node = rblist->node_new(rblist, new_entry); in rblist__add_node() 36 if (new_node == NULL) in rblist__add_node() 39 rb_link_node(new_node, parent, p); in rblist__add_node() 40 rb_insert_color_cached(new_node, &rblist->entries, leftmost); in rblist__add_node() 58 struct rb_node *parent = NULL, *new_node = NULL; in __rblist__findnew() local 78 new_node = rblist->node_new(rblist, entry); in __rblist__findnew() 79 if (new_node) { in __rblist__findnew() 80 rb_link_node(new_node, parent, p); in __rblist__findnew() 81 rb_insert_color_cached(new_node, in __rblist__findnew() [all …]
|
/Linux-v6.1/lib/ |
D | generic-radix-tree.c | 108 struct genradix_node *n, *new_node = NULL; in __genradix_ptr_alloc() local 121 if (!new_node) { in __genradix_ptr_alloc() 122 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc() 123 if (!new_node) in __genradix_ptr_alloc() 127 new_node->children[0] = n; in __genradix_ptr_alloc() 129 ((unsigned long) new_node | (n ? level + 1 : 0))); in __genradix_ptr_alloc() 133 new_node = NULL; in __genradix_ptr_alloc() 144 if (!new_node) { in __genradix_ptr_alloc() 145 new_node = genradix_alloc_node(gfp_mask); in __genradix_ptr_alloc() 146 if (!new_node) in __genradix_ptr_alloc() [all …]
|
/Linux-v6.1/drivers/acpi/acpica/ |
D | nsaccess.c | 38 struct acpi_namespace_node *new_node; in acpi_ns_root_initialize() local 101 new_node = in acpi_ns_root_initialize() 103 if (!new_node) { in acpi_ns_root_initialize() 108 new_node->descriptor_type = ACPI_DESC_TYPE_NAMED; in acpi_ns_root_initialize() 109 new_node->type = init_val->type; in acpi_ns_root_initialize() 112 acpi_gbl_root_node_struct.child = new_node; in acpi_ns_root_initialize() 114 prev_node->peer = new_node; in acpi_ns_root_initialize() 117 new_node->parent = &acpi_gbl_root_node_struct; in acpi_ns_root_initialize() 118 prev_node = new_node; in acpi_ns_root_initialize() 163 new_node->value = obj_desc->method.param_count; in acpi_ns_root_initialize() [all …]
|
D | nssearch.c | 259 struct acpi_namespace_node *new_node; in acpi_ns_search_and_enter() local 373 new_node = acpi_ns_create_node(target_name); in acpi_ns_search_and_enter() 374 if (!new_node) { in acpi_ns_search_and_enter() 383 new_node->flags |= ANOBJ_IS_EXTERNAL; in acpi_ns_search_and_enter() 388 new_node->flags |= ANOBJ_TEMPORARY; in acpi_ns_search_and_enter() 393 acpi_ns_install_node(walk_state, node, new_node, type); in acpi_ns_search_and_enter() 394 *return_node = new_node; in acpi_ns_search_and_enter()
|
D | dswload2.c | 376 struct acpi_namespace_node *new_node; in acpi_ds_load2_end_op() local 711 &(new_node)); in acpi_ds_load2_end_op() 718 if (new_node->type != ACPI_TYPE_METHOD) { in acpi_ds_load2_end_op() 726 op->common.node = new_node; in acpi_ds_load2_end_op()
|
/Linux-v6.1/kernel/bpf/ |
D | lpm_trie.c | 307 struct lpm_trie_node *node, *im_node = NULL, *new_node = NULL; in trie_update_elem() local 330 new_node = lpm_trie_node_alloc(trie, value); in trie_update_elem() 331 if (!new_node) { in trie_update_elem() 338 new_node->prefixlen = key->prefixlen; in trie_update_elem() 339 RCU_INIT_POINTER(new_node->child[0], NULL); in trie_update_elem() 340 RCU_INIT_POINTER(new_node->child[1], NULL); in trie_update_elem() 341 memcpy(new_node->data, key->data, trie->data_size); in trie_update_elem() 367 rcu_assign_pointer(*slot, new_node); in trie_update_elem() 375 new_node->child[0] = node->child[0]; in trie_update_elem() 376 new_node->child[1] = node->child[1]; in trie_update_elem() [all …]
|
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/ |
D | 11n_rxreorder.c | 333 struct mwifiex_rx_reorder_tbl *tbl, *new_node; in mwifiex_11n_create_rx_reorder_tbl() local 347 new_node = kzalloc(sizeof(struct mwifiex_rx_reorder_tbl), GFP_KERNEL); in mwifiex_11n_create_rx_reorder_tbl() 348 if (!new_node) in mwifiex_11n_create_rx_reorder_tbl() 351 INIT_LIST_HEAD(&new_node->list); in mwifiex_11n_create_rx_reorder_tbl() 352 new_node->tid = tid; in mwifiex_11n_create_rx_reorder_tbl() 353 memcpy(new_node->ta, ta, ETH_ALEN); in mwifiex_11n_create_rx_reorder_tbl() 354 new_node->start_win = seq_num; in mwifiex_11n_create_rx_reorder_tbl() 355 new_node->init_win = seq_num; in mwifiex_11n_create_rx_reorder_tbl() 356 new_node->flags = 0; in mwifiex_11n_create_rx_reorder_tbl() 376 last_seq, new_node->start_win); in mwifiex_11n_create_rx_reorder_tbl() [all …]
|
D | 11n.c | 547 struct mwifiex_tx_ba_stream_tbl *new_node; in mwifiex_create_ba_tbl() local 552 new_node = kzalloc(sizeof(struct mwifiex_tx_ba_stream_tbl), in mwifiex_create_ba_tbl() 554 if (!new_node) in mwifiex_create_ba_tbl() 563 INIT_LIST_HEAD(&new_node->list); in mwifiex_create_ba_tbl() 565 new_node->tid = tid; in mwifiex_create_ba_tbl() 566 new_node->ba_status = ba_status; in mwifiex_create_ba_tbl() 567 memcpy(new_node->ra, ra, ETH_ALEN); in mwifiex_create_ba_tbl() 570 list_add_tail(&new_node->list, &priv->tx_ba_stream_tbl_ptr); in mwifiex_create_ba_tbl()
|
/Linux-v6.1/drivers/media/pci/cx23885/ |
D | altera-ci.c | 224 struct fpga_inode *new_node = fpga_first_inode; in append_internal() local 226 if (new_node == NULL) { in append_internal() 227 new_node = kmalloc(sizeof(struct fpga_inode), GFP_KERNEL); in append_internal() 228 fpga_first_inode = new_node; in append_internal() 230 while (new_node->next_inode != NULL) in append_internal() 231 new_node = new_node->next_inode; in append_internal() 233 new_node->next_inode = in append_internal() 235 if (new_node->next_inode != NULL) in append_internal() 236 new_node = new_node->next_inode; in append_internal() 238 new_node = NULL; in append_internal() [all …]
|
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_tc.c | 761 struct otx2_tc_flow *new_node, *old_node; in otx2_tc_add_flow() local 775 new_node = kzalloc(sizeof(*new_node), GFP_KERNEL); in otx2_tc_add_flow() 776 if (!new_node) in otx2_tc_add_flow() 778 spin_lock_init(&new_node->lock); in otx2_tc_add_flow() 779 new_node->cookie = tc_flow_cmd->cookie; in otx2_tc_add_flow() 783 rc = otx2_tc_prepare_flow(nic, new_node, tc_flow_cmd, &dummy); in otx2_tc_add_flow() 785 kfree_rcu(new_node, rcu); in otx2_tc_add_flow() 807 new_node->bitpos = find_first_zero_bit(tc_info->tc_entries_bitmap, in otx2_tc_add_flow() 810 req->entry = flow_cfg->flow_ent[flow_cfg->max_flows - new_node->bitpos - 1]; in otx2_tc_add_flow() 813 new_node->entry = req->entry; in otx2_tc_add_flow() [all …]
|
/Linux-v6.1/net/hsr/ |
D | hsr_framereg.c | 176 struct hsr_node *new_node, *node; in hsr_add_node() local 180 new_node = kzalloc(sizeof(*new_node), GFP_ATOMIC); in hsr_add_node() 181 if (!new_node) in hsr_add_node() 184 ether_addr_copy(new_node->macaddress_A, addr); in hsr_add_node() 191 new_node->time_in[i] = now; in hsr_add_node() 192 new_node->time_out[i] = now; in hsr_add_node() 195 new_node->seq_out[i] = seq_out; in hsr_add_node() 198 hsr->proto_ops->handle_san_frame(san, rx_port, new_node); in hsr_add_node() 208 hlist_add_tail_rcu(&new_node->mac_list, node_db); in hsr_add_node() 210 return new_node; in hsr_add_node() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
D | ipoib_vlan.c | 90 struct qpn_to_netdev *new_node; in mlx5i_pkey_add_qpn() local 92 new_node = kzalloc(sizeof(*new_node), GFP_KERNEL); in mlx5i_pkey_add_qpn() 93 if (!new_node) in mlx5i_pkey_add_qpn() 96 new_node->netdev = netdev; in mlx5i_pkey_add_qpn() 97 new_node->underlay_qpn = qpn; in mlx5i_pkey_add_qpn() 99 hlist_add_head(&new_node->hlist, &ht->buckets[key]); in mlx5i_pkey_add_qpn()
|
/Linux-v6.1/fs/ext4/ |
D | block_validity.c | 75 struct rb_node *parent = NULL, *new_node = NULL; in add_system_zone() local 95 new_node = &new_entry->node; in add_system_zone() 97 rb_link_node(new_node, parent, n); in add_system_zone() 98 rb_insert_color(new_node, &system_blks->root); in add_system_zone() 101 node = rb_prev(new_node); in add_system_zone() 113 node = rb_next(new_node); in add_system_zone()
|
/Linux-v6.1/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_encap.c | 207 struct opa_vnic_mac_tbl_node *node, *new_node; in opa_vnic_update_mac_tbl() local 268 new_node = kzalloc(sizeof(*new_node), GFP_KERNEL); in opa_vnic_update_mac_tbl() 269 if (!new_node) { in opa_vnic_update_mac_tbl() 274 new_node->index = node->index; in opa_vnic_update_mac_tbl() 275 memcpy(&new_node->entry, &node->entry, sizeof(node->entry)); in opa_vnic_update_mac_tbl() 276 key = new_node->entry.mac_addr[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_update_mac_tbl() 277 vnic_hash_add(new_mactbl, &new_node->hlist, key); in opa_vnic_update_mac_tbl()
|
/Linux-v6.1/scripts/dtc/ |
D | livetree.c | 142 struct node *merge_nodes(struct node *old_node, struct node *new_node) in merge_nodes() argument 151 for_each_label_withdel(new_node->labels, l) in merge_nodes() 156 while (new_node->proplist) { in merge_nodes() 158 new_prop = new_node->proplist; in merge_nodes() 159 new_node->proplist = new_prop->next; in merge_nodes() 192 while (new_node->children) { in merge_nodes() 194 new_child = new_node->children; in merge_nodes() 195 new_node->children = new_child->next_sibling; in merge_nodes() 219 old_node->srcpos = srcpos_extend(old_node->srcpos, new_node->srcpos); in merge_nodes() 223 free(new_node); in merge_nodes() [all …]
|
D | dtc.h | 276 struct node *merge_nodes(struct node *old_node, struct node *new_node); 277 struct node *add_orphan_node(struct node *old_node, struct node *new_node, char *ref);
|
/Linux-v6.1/drivers/media/dvb-frontends/ |
D | stv0900_core.c | 85 struct stv0900_inode *new_node = stv0900_first_inode; in append_internal() local 87 if (new_node == NULL) { in append_internal() 88 new_node = kmalloc(sizeof(struct stv0900_inode), GFP_KERNEL); in append_internal() 89 stv0900_first_inode = new_node; in append_internal() 91 while (new_node->next_inode != NULL) in append_internal() 92 new_node = new_node->next_inode; in append_internal() 94 new_node->next_inode = kmalloc(sizeof(struct stv0900_inode), in append_internal() 96 if (new_node->next_inode != NULL) in append_internal() 97 new_node = new_node->next_inode; in append_internal() 99 new_node = NULL; in append_internal() [all …]
|
/Linux-v6.1/fs/dlm/ |
D | lowcomms.c | 457 struct dlm_node_addr *new_node, *na; in dlm_lowcomms_addr() local 460 new_node = kzalloc(sizeof(struct dlm_node_addr), GFP_NOFS); in dlm_lowcomms_addr() 461 if (!new_node) in dlm_lowcomms_addr() 466 kfree(new_node); in dlm_lowcomms_addr() 475 new_node->nodeid = nodeid; in dlm_lowcomms_addr() 476 new_node->addr[0] = new_addr; in dlm_lowcomms_addr() 477 new_node->addr_count = 1; in dlm_lowcomms_addr() 478 new_node->mark = dlm_config.ci_mark; in dlm_lowcomms_addr() 479 list_add(&new_node->list, &dlm_node_addrs); in dlm_lowcomms_addr() 488 kfree(new_node); in dlm_lowcomms_addr() [all …]
|
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 1526 struct bnxt_tc_flow_node *new_node, *old_node; in bnxt_tc_add_flow() local 1534 new_node = kzalloc(sizeof(*new_node), GFP_KERNEL); in bnxt_tc_add_flow() 1535 if (!new_node) { in bnxt_tc_add_flow() 1539 new_node->cookie = tc_flow_cmd->cookie; in bnxt_tc_add_flow() 1540 flow = &new_node->flow; in bnxt_tc_add_flow() 1551 kfree_rcu(new_node, rcu); in bnxt_tc_add_flow() 1566 rc = bnxt_tc_get_ref_flow_handle(bp, flow, new_node, &ref_flow_handle); in bnxt_tc_add_flow() 1571 rc = bnxt_tc_get_tunnel_handle(bp, flow, new_node, &tunnel_handle); in bnxt_tc_add_flow() 1577 tunnel_handle, new_node); in bnxt_tc_add_flow() 1584 rc = rhashtable_insert_fast(&tc_info->flow_table, &new_node->node, in bnxt_tc_add_flow() [all …]
|
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 1094 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; in hclgevf_sync_from_add_list() local 1104 new_node = hclgevf_find_mac_node(mac_list, mac_node->mac_addr); in hclgevf_sync_from_add_list() 1105 if (new_node) { in hclgevf_sync_from_add_list() 1106 hclgevf_update_mac_node(new_node, mac_node->state); in hclgevf_sync_from_add_list() 1122 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; in hclgevf_sync_from_del_list() local 1125 new_node = hclgevf_find_mac_node(mac_list, mac_node->mac_addr); in hclgevf_sync_from_del_list() 1126 if (new_node) { in hclgevf_sync_from_del_list() 1132 new_node->state = HCLGEVF_MAC_ACTIVE; in hclgevf_sync_from_del_list() 1154 struct hclgevf_mac_addr_node *mac_node, *tmp, *new_node; in hclgevf_sync_mac_list() local 1175 new_node = kzalloc(sizeof(*new_node), GFP_ATOMIC); in hclgevf_sync_mac_list() [all …]
|
/Linux-v6.1/fs/btrfs/ |
D | relocation.c | 546 struct btrfs_backref_node *new_node; in clone_backref_node() local 576 new_node = btrfs_backref_alloc_node(cache, dest->node->start, in clone_backref_node() 578 if (!new_node) in clone_backref_node() 581 new_node->lowest = node->lowest; in clone_backref_node() 582 new_node->checked = 1; in clone_backref_node() 583 new_node->root = btrfs_grab_root(dest); in clone_backref_node() 584 ASSERT(new_node->root); in clone_backref_node() 593 new_node, LINK_UPPER); in clone_backref_node() 596 list_add_tail(&new_node->lower, &cache->leaves); in clone_backref_node() 599 rb_node = rb_simple_insert(&cache->rb_root, new_node->bytenr, in clone_backref_node() [all …]
|
/Linux-v6.1/kernel/gcov/ |
D | fs.c | 539 static struct gcov_node *new_node(struct gcov_node *parent, in new_node() function 701 node = new_node(parent, NULL, curr); in add_node() 708 node = new_node(parent, info, curr); in add_node()
|
/Linux-v6.1/drivers/android/ |
D | binder.c | 725 struct binder_node *new_node, in binder_init_node_ilocked() argument 756 node = new_node; in binder_init_node_ilocked() 784 struct binder_node *new_node = kzalloc(sizeof(*node), GFP_KERNEL); in binder_new_node() local 786 if (!new_node) in binder_new_node() 789 node = binder_init_node_ilocked(proc, new_node, fp); in binder_new_node() 791 if (node != new_node) in binder_new_node() 795 kfree(new_node); in binder_new_node() 5081 struct binder_node *new_node; in binder_ioctl_set_ctx_mgr() local 5105 new_node = binder_new_node(proc, fbo); in binder_ioctl_set_ctx_mgr() 5106 if (!new_node) { in binder_ioctl_set_ctx_mgr() [all …]
|