/linux-6.1.9/fs/ntfs/ |
D | inode.c | 49 ntfs_inode *ni; in ntfs_test_inode() local 53 ni = NTFS_I(vi); in ntfs_test_inode() 55 if (likely(!NInoAttr(ni))) { in ntfs_test_inode() 61 if (ni->type != na->type) in ntfs_test_inode() 63 if (ni->name_len != na->name_len) in ntfs_test_inode() 65 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode() 94 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode() local 98 ni->type = na->type; in ntfs_init_locked_inode() 100 NInoSetMstProtected(ni); in ntfs_init_locked_inode() 102 ni->name = na->name; in ntfs_init_locked_inode() [all …]
|
D | attrib.c | 70 int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, ntfs_attr_search_ctx *ctx) in ntfs_map_runlist_nolock() argument 85 if (!NInoAttr(ni)) in ntfs_map_runlist_nolock() 86 base_ni = ni; in ntfs_map_runlist_nolock() 88 base_ni = ni->ext.base_ntfs_ino; in ntfs_map_runlist_nolock() 107 read_lock_irqsave(&ni->size_lock, flags); in ntfs_map_runlist_nolock() 108 allocated_size_vcn = ni->allocated_size >> in ntfs_map_runlist_nolock() 109 ni->vol->cluster_size_bits; in ntfs_map_runlist_nolock() 110 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_map_runlist_nolock() 120 if (vcn >= allocated_size_vcn || (a->type == ni->type && in ntfs_map_runlist_nolock() 121 a->name_length == ni->name_len && in ntfs_map_runlist_nolock() [all …]
|
D | aops.c | 51 ntfs_inode *ni; in ntfs_end_buffer_async_read() local 56 ni = NTFS_I(vi); in ntfs_end_buffer_async_read() 66 read_lock_irqsave(&ni->size_lock, flags); in ntfs_end_buffer_async_read() 67 init_size = ni->initialized_size; in ntfs_end_buffer_async_read() 69 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_end_buffer_async_read() 91 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read() 119 if (!NInoMstProtected(ni)) { in ntfs_end_buffer_async_read() 127 rec_size = ni->itype.index.block_size; in ntfs_end_buffer_async_read() 171 ntfs_inode *ni; in ntfs_read_block() local 182 ni = NTFS_I(vi); in ntfs_read_block() [all …]
|
D | file.c | 96 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument 102 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized() 113 read_lock_irqsave(&ni->size_lock, flags); in ntfs_attr_extend_initialized() 114 old_init_size = ni->initialized_size; in ntfs_attr_extend_initialized() 116 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized() 117 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_attr_extend_initialized() 121 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized() 124 if (!NInoAttr(ni)) in ntfs_attr_extend_initialized() 125 base_ni = ni; in ntfs_attr_extend_initialized() 127 base_ni = ni->ext.base_ntfs_ino; in ntfs_attr_extend_initialized() [all …]
|
D | mft.h | 18 extern MFT_RECORD *map_mft_record(ntfs_inode *ni); 19 extern void unmap_mft_record(ntfs_inode *ni); 24 static inline void unmap_extent_mft_record(ntfs_inode *ni) in unmap_extent_mft_record() argument 26 unmap_mft_record(ni); in unmap_extent_mft_record() 41 static inline void flush_dcache_mft_record_page(ntfs_inode *ni) in flush_dcache_mft_record_page() argument 43 flush_dcache_page(ni->page); in flush_dcache_mft_record_page() 46 extern void __mark_mft_record_dirty(ntfs_inode *ni); 59 static inline void mark_mft_record_dirty(ntfs_inode *ni) in mark_mft_record_dirty() argument 61 if (!NInoTestSetDirty(ni)) in mark_mft_record_dirty() 62 __mark_mft_record_dirty(ni); in mark_mft_record_dirty() [all …]
|
D | inode.h | 169 static inline int NIno##flag(ntfs_inode *ni) \ 171 return test_bit(NI_##flag, &(ni)->state); \ 173 static inline void NInoSet##flag(ntfs_inode *ni) \ 175 set_bit(NI_##flag, &(ni)->state); \ 177 static inline void NInoClear##flag(ntfs_inode *ni) \ 179 clear_bit(NI_##flag, &(ni)->state); \ 186 static inline int NInoTestSet##flag(ntfs_inode *ni) \ 188 return test_and_set_bit(NI_##flag, &(ni)->state); \ 190 static inline int NInoTestClear##flag(ntfs_inode *ni) \ 192 return test_and_clear_bit(NI_##flag, &(ni)->state); \ [all …]
|
D | mft.c | 36 static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni) in map_mft_record_page() argument 39 ntfs_volume *vol = ni->vol; in map_mft_record_page() 45 BUG_ON(ni->page); in map_mft_record_page() 52 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page() 54 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page() 68 "driver.", ni->mft_no); in map_mft_record_page() 78 ni->page = page; in map_mft_record_page() 79 ni->page_ofs = ofs; in map_mft_record_page() 83 "Run chkdsk.", ni->mft_no); in map_mft_record_page() 89 ni->page = NULL; in map_mft_record_page() [all …]
|
D | attrib.h | 49 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, 51 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn); 53 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn, 56 extern runlist_element *ntfs_attr_find_vcn_nolock(ntfs_inode *ni, 75 extern ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni, 92 extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size); 94 extern s64 ntfs_attr_extend_allocation(ntfs_inode *ni, s64 new_alloc_size, 97 extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
|
D | namei.c | 166 ntfs_inode *ni = NTFS_I(dent_inode); in ntfs_lookup() local 184 ni = NTFS_I(dent_inode); in ntfs_lookup() 185 m = map_mft_record(ni); in ntfs_lookup() 192 ctx = ntfs_attr_get_search_ctx(ni, m); in ntfs_lookup() 232 unmap_mft_record(ni); in ntfs_lookup() 255 unmap_mft_record(ni); in ntfs_lookup() 289 ntfs_inode *ni = NTFS_I(vi); in ntfs_get_parent() local 299 mrec = map_mft_record(ni); in ntfs_get_parent() 303 ctx = ntfs_attr_get_search_ctx(ni, mrec); in ntfs_get_parent() 305 unmap_mft_record(ni); in ntfs_get_parent() [all …]
|
/linux-6.1.9/fs/ntfs3/ |
D | frecord.c | 20 static struct mft_inode *ni_ins_mi(struct ntfs_inode *ni, struct rb_root *tree, in ni_ins_mi() argument 50 static struct mft_inode *ni_find_mi(struct ntfs_inode *ni, CLST rno) in ni_find_mi() argument 52 return ni_ins_mi(ni, &ni->mi_tree, rno, NULL); in ni_find_mi() 58 static void ni_add_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_add_mi() argument 60 ni_ins_mi(ni, &ni->mi_tree, mi->rno, &mi->node); in ni_add_mi() 66 void ni_remove_mi(struct ntfs_inode *ni, struct mft_inode *mi) in ni_remove_mi() argument 68 rb_erase(&mi->node, &ni->mi_tree); in ni_remove_mi() 74 struct ATTR_STD_INFO *ni_std(struct ntfs_inode *ni) in ni_std() argument 78 attr = mi_find_attr(&ni->mi, NULL, ATTR_STD, NULL, 0, NULL); in ni_std() 88 struct ATTR_STD_INFO5 *ni_std5(struct ntfs_inode *ni) in ni_std5() argument [all …]
|
D | attrlist.c | 19 static inline bool al_is_valid_le(const struct ntfs_inode *ni, in al_is_valid_le() argument 22 if (!le || !ni->attr_list.le || !ni->attr_list.size) in al_is_valid_le() 25 return PtrOffset(ni->attr_list.le, le) + le16_to_cpu(le->size) <= in al_is_valid_le() 26 ni->attr_list.size; in al_is_valid_le() 29 void al_destroy(struct ntfs_inode *ni) in al_destroy() argument 31 run_close(&ni->attr_list.run); in al_destroy() 32 kfree(ni->attr_list.le); in al_destroy() 33 ni->attr_list.le = NULL; in al_destroy() 34 ni->attr_list.size = 0; in al_destroy() 35 ni->attr_list.dirty = false; in al_destroy() [all …]
|
D | file.c | 77 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_getattr() local 79 if (is_compressed(ni)) in ntfs_getattr() 82 if (is_encrypted(ni)) in ntfs_getattr() 90 stat->btime = ni->i_crtime; in ntfs_getattr() 91 stat->blksize = ni->mi.sbi->cluster_size; /* 512, 1K, ..., 2M */ in ntfs_getattr() 97 struct ntfs_inode *ni, in ntfs_extend_initialized_size() argument 101 struct inode *inode = &ni->vfs_inode; in ntfs_extend_initialized_size() 107 if (is_resident(ni)) { in ntfs_extend_initialized_size() 108 ni->i_valid = new_valid; in ntfs_extend_initialized_size() 112 WARN_ON(is_compressed(ni)); in ntfs_extend_initialized_size() [all …]
|
D | attrib.c | 87 static int attr_load_runs(struct ATTRIB *attr, struct ntfs_inode *ni, in attr_load_runs() argument 108 err = run_unpack_ex(run, ni->mi.sbi, ni->mi.rno, svcn, evcn, in attr_load_runs() 237 int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr, in attr_make_nonresident() argument 300 page = grab_cache_page(ni->vfs_inode.i_mapping, 0); in attr_make_nonresident() 323 al_remove_le(ni, le); in attr_make_nonresident() 325 err = ni_insert_nonresident(ni, attr_s->type, attr_name(attr_s), in attr_make_nonresident() 338 ni->ni_flags &= ~NI_FLAG_RESIDENT; in attr_make_nonresident() 362 static int attr_set_size_res(struct ntfs_inode *ni, struct ATTRIB *attr, in attr_set_size_res() argument 381 return attr_make_nonresident(ni, attr, le, mi, new_size, in attr_set_size_res() 410 int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type, in attr_set_size() argument [all …]
|
D | inode.c | 28 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_read_mft() local 53 err = mi_init(&ni->mi, sbi, ino); in ntfs_read_mft() 57 if (!sbi->mft.ni && ino == MFT_REC_MFT && !sb->s_root) { in ntfs_read_mft() 60 sbi->mft.ni = ni; in ntfs_read_mft() 61 init_rwsem(&ni->file.run_lock); in ntfs_read_mft() 63 if (!run_add_entry(&ni->file.run, 0, t64, t32, true)) { in ntfs_read_mft() 69 err = mi_read(&ni->mi, ino == MFT_REC_MFT); in ntfs_read_mft() 74 rec = ni->mi.mrec; in ntfs_read_mft() 114 attr = ni_enum_attr_ex(ni, attr, &le, NULL); in ntfs_read_mft() 123 run = &ni->file.run; in ntfs_read_mft() [all …]
|
D | xattr.c | 74 static int ntfs_read_ea(struct ntfs_inode *ni, struct EA_FULL **ea, in ntfs_read_ea() argument 78 struct ntfs_sb_info *sbi = ni->mi.sbi; in ntfs_read_ea() 90 ni_find_attr(ni, NULL, &le, ATTR_EA_INFO, NULL, 0, NULL, NULL); in ntfs_read_ea() 92 ni_find_attr(ni, attr_info, &le, ATTR_EA, NULL, 0, NULL, NULL); in ntfs_read_ea() 121 err = attr_load_runs_range(ni, ATTR_EA, NULL, 0, &run, 0, size); in ntfs_read_ea() 158 static ssize_t ntfs_list_ea(struct ntfs_inode *ni, char *buffer, in ntfs_list_ea() argument 168 err = ntfs_read_ea(ni, &ea_all, 0, &info); in ntfs_list_ea() 202 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_get_ea() local 209 if (!(ni->ni_flags & NI_FLAG_EA)) in ntfs_get_ea() 213 ni_lock(ni); in ntfs_get_ea() [all …]
|
D | ntfs_fs.h | 245 struct ntfs_inode *ni; member 269 struct ntfs_inode *ni; member 280 struct ntfs_inode *ni; member 289 struct ntfs_inode *ni; member 295 struct ntfs_inode *ni; member 416 int attr_make_nonresident(struct ntfs_inode *ni, struct ATTRIB *attr, 420 int attr_set_size(struct ntfs_inode *ni, enum ATTR_TYPE type, 424 int attr_data_get_block(struct ntfs_inode *ni, CLST vcn, CLST clen, CLST *lcn, 426 int attr_data_read_resident(struct ntfs_inode *ni, struct page *page); 427 int attr_data_write_resident(struct ntfs_inode *ni, struct page *page); [all …]
|
D | dir.c | 239 struct ntfs_inode *ni = ntfs_i(dir); in dir_search_u() local 254 err = indx_find(&ni->dir, ni, NULL, uni, 0, sbi, &diff, &e, fnd); in dir_search_u() 275 static inline int ntfs_filldir(struct ntfs_sb_info *sbi, struct ntfs_inode *ni, in ntfs_filldir() argument 289 if (!mi_is_ref(&ni->mi, &fname->home)) in ntfs_filldir() 320 static int ntfs_read_hdr(struct ntfs_sb_info *sbi, struct ntfs_inode *ni, in ntfs_read_hdr() argument 352 err = ntfs_filldir(sbi, ni, e, name, ctx); in ntfs_read_hdr() 373 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_readdir() local 380 u8 index_bits = ni->dir.index_bits; in ntfs_readdir() 398 if (!ni->mi_loaded && ni->attr_list.size) { in ntfs_readdir() 404 ni_lock(ni); in ntfs_readdir() [all …]
|
D | index.c | 204 static int bmp_buf_get(struct ntfs_index *indx, struct ntfs_inode *ni, in bmp_buf_get() argument 209 struct ntfs_sb_info *sbi = ni->mi.sbi; in bmp_buf_get() 219 b = ni_find_attr(ni, NULL, &le, ATTR_BITMAP, in->name, in->name_len, in bmp_buf_get() 316 static int indx_mark_used(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_used() argument 322 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_used() 336 static int indx_mark_free(struct ntfs_index *indx, struct ntfs_inode *ni, in indx_mark_free() argument 342 err = bmp_buf_get(indx, ni, bit, &bbuf); in indx_mark_free() 360 static int scan_nres_bitmap(struct ntfs_inode *ni, struct ATTRIB *bitmap, in scan_nres_bitmap() argument 366 struct ntfs_sb_info *sbi = ni->mi.sbi; in scan_nres_bitmap() 402 err = attr_load_runs_vcn(ni, ATTR_BITMAP, name->name, in scan_nres_bitmap() [all …]
|
D | fsntfs.c | 219 sbi->objid.ni = ntfs_i(inode2); in ntfs_extend_init() 234 sbi->reparse.ni = ntfs_i(inode2); in ntfs_extend_init() 251 int ntfs_loadlog_and_replay(struct ntfs_inode *ni, struct ntfs_sb_info *sbi) in ntfs_loadlog_and_replay() argument 260 if (ni->vfs_inode.i_size >= 0x100000000ull) { in ntfs_loadlog_and_replay() 294 sbi->mft.ni = ntfs_i(inode); in ntfs_loadlog_and_replay() 297 err = ni_load_all_mi(sbi->mft.ni); in ntfs_loadlog_and_replay() 299 err = log_replay(ni, &initialized); in ntfs_loadlog_and_replay() 302 sbi->mft.ni = NULL; in ntfs_loadlog_and_replay() 316 err = ntfs_bio_fill_1(sbi, &ni->file.run); in ntfs_loadlog_and_replay() 472 struct ntfs_inode *ni = sbi->mft.ni; in ntfs_extend_mft() local [all …]
|
D | namei.c | 68 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_lookup() local 76 err = ntfs_nls_to_utf16(ni->mi.sbi, dentry->d_name.name, in ntfs_lookup() 82 ni_lock(ni); in ntfs_lookup() 84 ni_unlock(ni); in ntfs_lookup() 129 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_link() local 139 ni_lock(ni); in ntfs_link() 158 ni_unlock(ni); in ntfs_link() 169 struct ntfs_inode *ni = ntfs_i(dir); in ntfs_unlink() local 172 ni_lock_dir(ni); in ntfs_unlink() 176 ni_unlock(ni); in ntfs_unlink() [all …]
|
D | super.c | 403 struct ntfs_inode *ni = alloc_inode_sb(sb, ntfs_inode_cachep, GFP_NOFS); in ntfs_alloc_inode() local 405 if (!ni) in ntfs_alloc_inode() 408 memset(ni, 0, offsetof(struct ntfs_inode, vfs_inode)); in ntfs_alloc_inode() 410 mutex_init(&ni->ni_lock); in ntfs_alloc_inode() 412 return &ni->vfs_inode; in ntfs_alloc_inode() 418 struct ntfs_inode *ni = ntfs_i(inode); in ntfs_i_callback() local 420 mutex_destroy(&ni->ni_lock); in ntfs_i_callback() 422 kmem_cache_free(ntfs_inode_cachep, ni); in ntfs_i_callback() 432 struct ntfs_inode *ni = foo; in init_once() local 434 inode_init_once(&ni->vfs_inode); in init_once() [all …]
|
/linux-6.1.9/drivers/firmware/arm_scmi/ |
D | notify.c | 299 struct scmi_notify_instance *ni; member 371 scmi_get_active_handler(struct scmi_notify_instance *ni, u32 evt_key); 372 static void scmi_put_active_handler(struct scmi_notify_instance *ni, 374 static bool scmi_put_handler_unlocked(struct scmi_notify_instance *ni, 385 scmi_lookup_and_call_event_chain(struct scmi_notify_instance *ni, in scmi_lookup_and_call_event_chain() argument 397 hndl = scmi_get_active_handler(ni, evt_key); in scmi_lookup_and_call_event_chain() 407 scmi_put_active_handler(ni, hndl); in scmi_lookup_and_call_event_chain() 436 dev_err(pd->ni->handle->dev, "corrupted EVT header. Flush.\n"); in scmi_process_event_header() 478 dev_err(pd->ni->handle->dev, "corrupted EVT Payload. Flush.\n"); in scmi_process_event_payload() 484 dev_warn(pd->ni->handle->dev, in scmi_process_event_payload() [all …]
|
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp_cmds.c | 26 struct nsp_identify *ni; in __nfp_nsp_identify() local 32 ni = kzalloc(sizeof(*ni), GFP_KERNEL); in __nfp_nsp_identify() 33 if (!ni) in __nfp_nsp_identify() 36 ret = nfp_nsp_read_identify(nsp, ni, sizeof(*ni)); in __nfp_nsp_identify() 47 memcpy(nspi->version, ni->version, sizeof(nspi->version)); in __nfp_nsp_identify() 49 nspi->flags = ni->flags; in __nfp_nsp_identify() 50 nspi->br_primary = ni->br_primary; in __nfp_nsp_identify() 51 nspi->br_secondary = ni->br_secondary; in __nfp_nsp_identify() 52 nspi->br_nsp = ni->br_nsp; in __nfp_nsp_identify() 53 nspi->primary = le16_to_cpu(ni->primary); in __nfp_nsp_identify() [all …]
|
/linux-6.1.9/fs/f2fs/ |
D | node.h | 69 struct node_info ni; /* in-memory node information */ member 72 #define nat_get_nid(nat) ((nat)->ni.nid) 73 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n)) 74 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr) 75 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b)) 76 #define nat_get_ino(nat) ((nat)->ni.ino) 77 #define nat_set_ino(nat, i) ((nat)->ni.ino = (i)) 78 #define nat_get_version(nat) ((nat)->ni.version) 79 #define nat_set_version(nat, v) ((nat)->ni.version = (v)) 98 ne->ni.flag |= mask; in set_nat_flag() [all …]
|
/linux-6.1.9/fs/lockd/ |
D | host.c | 111 static struct nlm_host *nlm_alloc_host(struct nlm_lookup_host_info *ni, in nlm_alloc_host() argument 121 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host() 122 ni->hostname, ni->hostname_len); in nlm_alloc_host() 137 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host() 138 host->h_addrlen = ni->salen; in nlm_alloc_host() 144 host->h_version = ni->version; in nlm_alloc_host() 145 host->h_proto = ni->protocol; in nlm_alloc_host() 147 host->h_server = ni->server; in nlm_alloc_host() 148 host->h_noresvport = ni->noresvport; in nlm_alloc_host() 165 host->net = ni->net; in nlm_alloc_host() [all …]
|