Home
last modified time | relevance | path

Searched refs:new_entry (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/fs/ext4/
Dblock_validity.c73 struct ext4_system_zone *new_entry, *entry; in add_system_zone() local
88 new_entry = kmem_cache_alloc(ext4_system_zone_cachep, in add_system_zone()
90 if (!new_entry) in add_system_zone()
92 new_entry->start_blk = start_blk; in add_system_zone()
93 new_entry->count = count; in add_system_zone()
94 new_entry->ino = ino; in add_system_zone()
95 new_node = &new_entry->node; in add_system_zone()
104 if (can_merge(entry, new_entry)) { in add_system_zone()
105 new_entry->start_blk = entry->start_blk; in add_system_zone()
106 new_entry->count += entry->count; in add_system_zone()
[all …]
Dmballoc.c5107 struct ext4_free_data *new_entry, in ext4_try_merge_freed_extent() argument
5110 if ((entry->efd_tid != new_entry->efd_tid) || in ext4_try_merge_freed_extent()
5111 (entry->efd_group != new_entry->efd_group)) in ext4_try_merge_freed_extent()
5114 new_entry->efd_start_cluster) { in ext4_try_merge_freed_extent()
5115 new_entry->efd_start_cluster = entry->efd_start_cluster; in ext4_try_merge_freed_extent()
5116 new_entry->efd_count += entry->efd_count; in ext4_try_merge_freed_extent()
5117 } else if (new_entry->efd_start_cluster + new_entry->efd_count == in ext4_try_merge_freed_extent()
5119 new_entry->efd_count += entry->efd_count; in ext4_try_merge_freed_extent()
5131 struct ext4_free_data *new_entry) in ext4_mb_free_metadata() argument
5135 ext4_grpblk_t clusters = new_entry->efd_count; in ext4_mb_free_metadata()
[all …]
/kernel/linux/linux-5.10/security/tomoyo/
Ddomain.c31 int tomoyo_update_policy(struct tomoyo_acl_head *new_entry, const int size, in tomoyo_update_policy() argument
48 if (!check_duplicate(entry, new_entry)) in tomoyo_update_policy()
55 entry = tomoyo_commit_ok(new_entry, size); in tomoyo_update_policy()
92 int tomoyo_update_domain(struct tomoyo_acl_info *new_entry, const int size, in tomoyo_update_domain() argument
108 new_entry->cond = tomoyo_get_condition(param); in tomoyo_update_domain()
109 if (!new_entry->cond) in tomoyo_update_domain()
115 if (new_entry->cond->transit && in tomoyo_update_domain()
116 !(new_entry->type == TOMOYO_TYPE_PATH_ACL && in tomoyo_update_domain()
117 container_of(new_entry, struct tomoyo_path_acl, head) in tomoyo_update_domain()
127 if (!tomoyo_same_acl_head(entry, new_entry) || in tomoyo_update_domain()
[all …]
Dcommon.h1005 int tomoyo_update_domain(struct tomoyo_acl_info *new_entry, const int size,
1013 int tomoyo_update_policy(struct tomoyo_acl_head *new_entry, const int size,
/kernel/linux/linux-5.10/drivers/s390/cio/
Dqdio_debug.c64 struct qdio_dbf_entry *new_entry; in qdio_allocate_dbf() local
85 new_entry = kzalloc(sizeof(struct qdio_dbf_entry), GFP_KERNEL); in qdio_allocate_dbf()
86 if (!new_entry) { in qdio_allocate_dbf()
90 strlcpy(new_entry->dbf_name, text, QDIO_DBF_NAME_LEN); in qdio_allocate_dbf()
91 new_entry->dbf_info = irq_ptr->debug_area; in qdio_allocate_dbf()
93 list_add(&new_entry->dbf_list, &qdio_dbf_list); in qdio_allocate_dbf()
/kernel/linux/linux-5.10/drivers/firmware/efi/
Defivars.c368 struct efivar_entry *new_entry; in efivar_create() local
404 new_entry = kzalloc(sizeof(*new_entry), GFP_KERNEL); in efivar_create()
405 if (!new_entry) in efivar_create()
409 copy_out_compat(&new_entry->var, compat); in efivar_create()
411 memcpy(&new_entry->var, new_var, sizeof(*new_var)); in efivar_create()
413 err = efivar_entry_set(new_entry, attributes, size, in efivar_create()
421 if (efivar_create_sysfs_entry(new_entry)) { in efivar_create()
423 kfree(new_entry); in efivar_create()
428 kfree(new_entry); in efivar_create()
/kernel/linux/linux-5.10/tools/perf/util/
Drblist.c13 int rblist__add_node(struct rblist *rblist, const void *new_entry) in rblist__add_node() argument
24 rc = rblist->node_cmp(parent, new_entry); in rblist__add_node()
35 new_node = rblist->node_new(rblist, new_entry); in rblist__add_node()
Drblist.h27 struct rb_node *(*node_new)(struct rblist *rlist, const void *new_entry);
34 int rblist__add_node(struct rblist *rblist, const void *new_entry);
Dstrlist.c63 int strlist__add(struct strlist *slist, const char *new_entry) in strlist__add() argument
65 return rblist__add_node(&slist->rblist, new_entry); in strlist__add()
/kernel/linux/linux-5.10/arch/x86/kvm/svm/
Davic.c263 u64 *entry, new_entry; in avic_init_backing_page() local
288 new_entry = __sme_set((page_to_phys(svm->avic_backing_page) & in avic_init_backing_page()
291 WRITE_ONCE(*entry, new_entry); in avic_init_backing_page()
390 u32 *entry, new_entry; in avic_ldr_write() local
397 new_entry = READ_ONCE(*entry); in avic_ldr_write()
398 new_entry &= ~AVIC_LOGICAL_ID_ENTRY_GUEST_PHYSICAL_ID_MASK; in avic_ldr_write()
399 new_entry |= (g_physical_id & AVIC_LOGICAL_ID_ENTRY_GUEST_PHYSICAL_ID_MASK); in avic_ldr_write()
400 new_entry |= AVIC_LOGICAL_ID_ENTRY_VALID_MASK; in avic_ldr_write()
401 WRITE_ONCE(*entry, new_entry); in avic_ldr_write()
/kernel/linux/linux-5.10/fs/cifs/
Dreaddir.c483 char *new_entry; in nxt_dir_entry() local
490 new_entry = old_entry + sizeof(FIND_FILE_STANDARD_INFO) + in nxt_dir_entry()
499 new_entry = old_entry + next_offset; in nxt_dir_entry()
501 cifs_dbg(FYI, "new entry %p old entry %p\n", new_entry, old_entry); in nxt_dir_entry()
503 if (new_entry >= end_of_smb) { in nxt_dir_entry()
505 new_entry, end_of_smb, old_entry); in nxt_dir_entry()
508 (new_entry + sizeof(FIND_FILE_STANDARD_INFO) > end_of_smb)) in nxt_dir_entry()
510 (new_entry + sizeof(FILE_DIRECTORY_INFO) > end_of_smb))) { in nxt_dir_entry()
512 new_entry, end_of_smb); in nxt_dir_entry()
515 return new_entry; in nxt_dir_entry()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c155 struct mlx4_steer_index *new_entry; in new_steering_entry() local
165 new_entry = kzalloc(sizeof(*new_entry), GFP_KERNEL); in new_steering_entry()
166 if (!new_entry) in new_steering_entry()
169 INIT_LIST_HEAD(&new_entry->duplicates); in new_steering_entry()
170 new_entry->index = index; in new_steering_entry()
171 list_add_tail(&new_entry->list, &s_steer->steer_entries[steer]); in new_steering_entry()
184 list_add_tail(&dqp->list, &new_entry->duplicates); in new_steering_entry()
233 list_del(&new_entry->list); in new_steering_entry()
234 kfree(new_entry); in new_steering_entry()
1117 u8 new_entry = 0; in mlx4_qp_attach_common() local
[all …]
/kernel/linux/linux-5.10/fs/f2fs/
Dnamei.c925 struct f2fs_dir_entry *new_entry; in f2fs_rename() local
996 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
998 if (!new_entry) { in f2fs_rename()
1012 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
1114 struct f2fs_dir_entry *old_entry, *new_entry; in f2fs_cross_rename() local
1147 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, &new_page); in f2fs_cross_rename()
1148 if (!new_entry) { in f2fs_cross_rename()
1224 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_cross_rename()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Daffinity.c640 bool new_entry = false; in hfi1_dev_affinity_init() local
661 new_entry = true; in hfi1_dev_affinity_init()
738 ret = _dev_comp_vect_cpu_mask_init(dd, entry, new_entry); in hfi1_dev_affinity_init()
742 if (new_entry) in hfi1_dev_affinity_init()
751 if (new_entry) in hfi1_dev_affinity_init()
/kernel/linux/linux-5.10/drivers/scsi/
Dnsp32.c1710 int new_entry; in nsp32_adjust_busfree() local
1726 for (new_entry = old_entry; new_entry < sg_num; new_entry++) { in nsp32_adjust_busfree()
1727 sentlen += (le32_to_cpu(sgt[new_entry].len) & ~SGTEND); in nsp32_adjust_busfree()
1734 if (new_entry == sg_num) { in nsp32_adjust_busfree()
1748 len = le32_to_cpu(sgt[new_entry].len); in nsp32_adjust_busfree()
1749 addr = le32_to_cpu(sgt[new_entry].addr); in nsp32_adjust_busfree()
1751 sgt[new_entry].addr = cpu_to_le32(addr); in nsp32_adjust_busfree()
1752 sgt[new_entry].len = cpu_to_le32(restlen); in nsp32_adjust_busfree()
1755 data->cur_entry = new_entry; in nsp32_adjust_busfree()
Dhpsa.c1357 int entry, struct hpsa_scsi_dev_t *new_entry) in hpsa_scsi_update_entry() argument
1363 h->dev[entry]->raid_level = new_entry->raid_level; in hpsa_scsi_update_entry()
1368 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1371 if (new_entry->offload_config && new_entry->offload_to_be_enabled) { in hpsa_scsi_update_entry()
1380 h->dev[entry]->raid_map = new_entry->raid_map; in hpsa_scsi_update_entry()
1381 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1383 if (new_entry->offload_to_be_enabled) { in hpsa_scsi_update_entry()
1384 h->dev[entry]->ioaccel_handle = new_entry->ioaccel_handle; in hpsa_scsi_update_entry()
1387 h->dev[entry]->hba_ioaccel_enabled = new_entry->hba_ioaccel_enabled; in hpsa_scsi_update_entry()
1388 h->dev[entry]->offload_config = new_entry->offload_config; in hpsa_scsi_update_entry()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4vf/
Dcxgb4vf_main.c275 struct hash_mac_addr *new_entry, *entry; in cxgb4vf_change_mac() local
291 new_entry = kzalloc(sizeof(*new_entry), GFP_KERNEL); in cxgb4vf_change_mac()
292 if (!new_entry) in cxgb4vf_change_mac()
294 ether_addr_copy(new_entry->addr, addr); in cxgb4vf_change_mac()
295 new_entry->iface_mac = true; in cxgb4vf_change_mac()
296 list_add_tail(&new_entry->list, &adapter->mac_hlist); in cxgb4vf_change_mac()
945 struct hash_mac_addr *new_entry; in cxgb4vf_mac_sync() local
956 new_entry = kzalloc(sizeof(*new_entry), GFP_ATOMIC); in cxgb4vf_mac_sync()
957 if (!new_entry) in cxgb4vf_mac_sync()
959 ether_addr_copy(new_entry->addr, mac_addr); in cxgb4vf_mac_sync()
[all …]
/kernel/linux/linux-5.10/fs/exfat/
Dnamei.c1194 int new_entry = 0; in __exfat_rename() local
1231 new_entry = new_ei->entry; in __exfat_rename()
1232 ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); in __exfat_rename()
1272 ep = exfat_get_dentry(sb, p_dir, new_entry, &new_bh, NULL); in __exfat_rename()
1278 num_entries = exfat_count_ext_entries(sb, p_dir, new_entry, ep); in __exfat_rename()
1285 if (exfat_remove_entries(new_inode, p_dir, new_entry, 0, in __exfat_rename()
/kernel/linux/linux-5.10/drivers/iommu/
Dvirtio-iommu.c821 struct iommu_resv_region *entry, *new_entry, *msi = NULL; in viommu_get_resv_regions() local
829 new_entry = kmemdup(entry, sizeof(*entry), GFP_KERNEL); in viommu_get_resv_regions()
830 if (!new_entry) in viommu_get_resv_regions()
832 list_add_tail(&new_entry->list, head); in viommu_get_resv_regions()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc.c1882 u16 old_entry, new_entry; in rvu_mbox_handler_npc_mcam_shift_entry() local
1896 new_entry = req->new_entry[index]; in rvu_mbox_handler_npc_mcam_shift_entry()
1905 rc = npc_mcam_verify_entry(mcam, pcifunc, new_entry); in rvu_mbox_handler_npc_mcam_shift_entry()
1910 if (mcam->entry2cntr_map[new_entry] != NPC_MCAM_INVALID_MAP) { in rvu_mbox_handler_npc_mcam_shift_entry()
1916 npc_enable_mcam_entry(rvu, mcam, blkaddr, new_entry, false); in rvu_mbox_handler_npc_mcam_shift_entry()
1919 npc_copy_mcam_entry(rvu, mcam, blkaddr, old_entry, new_entry); in rvu_mbox_handler_npc_mcam_shift_entry()
1927 new_entry, cntr); in rvu_mbox_handler_npc_mcam_shift_entry()
1931 npc_enable_mcam_entry(rvu, mcam, blkaddr, new_entry, true); in rvu_mbox_handler_npc_mcam_shift_entry()
/kernel/linux/linux-5.10/drivers/net/wireless/intersil/hostap/
Dhostap_hw.c2946 struct set_tim_data *new_entry; in prism2_set_tim() local
2953 new_entry = kzalloc(sizeof(*new_entry), GFP_ATOMIC); in prism2_set_tim()
2954 if (new_entry == NULL) in prism2_set_tim()
2957 new_entry->aid = aid; in prism2_set_tim()
2958 new_entry->set = set; in prism2_set_tim()
2969 kfree(new_entry); in prism2_set_tim()
2970 new_entry = NULL; in prism2_set_tim()
2974 if (new_entry) in prism2_set_tim()
2975 list_add_tail(&new_entry->list, &local->set_tim_list); in prism2_set_tim()
/kernel/linux/linux-5.10/fs/hmdfs/
Dfile_merge.c66 int insert_filename(struct rb_root *root, struct hmdfs_cache_entry **new_entry) in insert_filename() argument
71 struct hmdfs_cache_entry *data = *new_entry; in insert_filename()
89 *new_entry = entry; in insert_filename()
Dhmdfs_merge_view.h101 int insert_filename(struct rb_root *root, struct hmdfs_cache_entry **new_entry);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_tcam.c1264 struct mlxsw_sp_acl_tcam_entry *new_entry; in mlxsw_sp_acl_tcam_ventry_migrate() local
1273 new_entry = mlxsw_sp_acl_tcam_entry_create(mlxsw_sp, ventry, chunk); in mlxsw_sp_acl_tcam_ventry_migrate()
1274 if (IS_ERR(new_entry)) in mlxsw_sp_acl_tcam_ventry_migrate()
1275 return PTR_ERR(new_entry); in mlxsw_sp_acl_tcam_ventry_migrate()
1277 ventry->entry = new_entry; in mlxsw_sp_acl_tcam_ventry_migrate()
/kernel/linux/linux-5.10/fs/
Ddax.c748 void *new_entry = dax_make_entry(pfn, flags); in dax_insert_entry() local
769 dax_associate_entry(new_entry, mapping, vmf->vma, vmf->address); in dax_insert_entry()
778 old = dax_lock_entry(xas, new_entry); in dax_insert_entry()
781 entry = new_entry; in dax_insert_entry()

12