Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 25 of 76) sorted by relevance

1234

/kernel/linux/linux-5.10/fs/ntfs/
Dinode.c49 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 …]
Dattrib.c70 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 …]
Daops.c51 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 …]
Dfile.c95 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument
101 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized()
112 read_lock_irqsave(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
113 old_init_size = ni->initialized_size; in ntfs_attr_extend_initialized()
115 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
116 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
120 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized()
123 if (!NInoAttr(ni)) in ntfs_attr_extend_initialized()
124 base_ni = ni; in ntfs_attr_extend_initialized()
126 base_ni = ni->ext.base_ntfs_ino; in ntfs_attr_extend_initialized()
[all …]
Dmft.h18 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 …]
Dinode.h169 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 …]
Dmft.c36 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 …]
Dattrib.h49 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,
Dnamei.c166 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 …]
Dcompress.c467 ntfs_inode *ni = NTFS_I(mapping->host); in ntfs_read_compressed_block() local
468 ntfs_volume *vol = ni->vol; in ntfs_read_compressed_block()
476 u32 cb_size = ni->itype.compressed.block_size; in ntfs_read_compressed_block()
491 >> ni->itype.compressed.block_size_bits; in ntfs_read_compressed_block()
512 BUG_ON(ni->type != AT_DATA); in ntfs_read_compressed_block()
513 BUG_ON(ni->name_len); in ntfs_read_compressed_block()
542 read_lock_irqsave(&ni->size_lock, flags); in ntfs_read_compressed_block()
543 i_size = i_size_read(VFS_I(ni)); in ntfs_read_compressed_block()
544 initialized_size = ni->initialized_size; in ntfs_read_compressed_block()
545 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_read_compressed_block()
[all …]
Dlcnalloc.h34 extern s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn,
93 static inline s64 ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, in ntfs_cluster_free() argument
96 return __ntfs_cluster_free(ni, start_vcn, count, ctx, false); in ntfs_cluster_free()
Dlcnalloc.c835 s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn, s64 count, in __ntfs_cluster_free() argument
844 BUG_ON(!ni); in __ntfs_cluster_free()
846 "0x%llx.%s", ni->mft_no, (unsigned long long)start_vcn, in __ntfs_cluster_free()
849 vol = ni->vol; in __ntfs_cluster_free()
866 rl = ntfs_attr_find_vcn_nolock(ni, start_vcn, ctx); in __ntfs_cluster_free()
920 rl = ntfs_attr_find_vcn_nolock(ni, vcn, ctx); in __ntfs_cluster_free()
988 delta = __ntfs_cluster_free(ni, start_vcn, total_freed, ctx, true); in __ntfs_cluster_free()
/kernel/linux/linux-5.10/drivers/firmware/arm_scmi/
Dnotify.c180 r->proto->ops->set_notify_enabled(r->proto->ni->handle, \
193 r->proto->ops->fill_custom_report(r->proto->ni->handle, \
297 struct scmi_notify_instance *ni; member
368 scmi_get_active_handler(struct scmi_notify_instance *ni, u32 evt_key);
369 static void scmi_put_active_handler(struct scmi_notify_instance *ni,
371 static void scmi_put_handler_unlocked(struct scmi_notify_instance *ni,
382 scmi_lookup_and_call_event_chain(struct scmi_notify_instance *ni, in scmi_lookup_and_call_event_chain() argument
394 hndl = scmi_get_active_handler(ni, evt_key); in scmi_lookup_and_call_event_chain()
404 scmi_put_active_handler(ni, hndl); in scmi_lookup_and_call_event_chain()
433 dev_err(pd->ni->handle->dev, "corrupted EVT header. Flush.\n"); in scmi_process_event_header()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_cmds.c26 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 …]
/kernel/linux/linux-5.10/fs/f2fs/
Dnode.h63 struct node_info ni; /* in-memory node information */ member
66 #define nat_get_nid(nat) ((nat)->ni.nid)
67 #define nat_set_nid(nat, n) ((nat)->ni.nid = (n))
68 #define nat_get_blkaddr(nat) ((nat)->ni.blk_addr)
69 #define nat_set_blkaddr(nat, b) ((nat)->ni.blk_addr = (b))
70 #define nat_get_ino(nat) ((nat)->ni.ino)
71 #define nat_set_ino(nat, i) ((nat)->ni.ino = (i))
72 #define nat_get_version(nat) ((nat)->ni.version)
73 #define nat_set_version(nat, v) ((nat)->ni.version = (v))
92 ne->ni.flag |= mask; in set_nat_flag()
[all …]
Dnode.c174 node_info_from_raw_nat(&ne->ni, raw_ne); in __init_nat_entry()
219 nid_t set = NAT_BLOCK_OFFSET(ne->ni.nid); in __grab_nat_entry_set()
428 static void set_node_addr(struct f2fs_sb_info *sbi, struct node_info *ni, in set_node_addr() argument
433 struct nat_entry *new = __alloc_nat_entry(ni->nid, true); in set_node_addr()
436 e = __lookup_nat_cache(nm_i, ni->nid); in set_node_addr()
439 copy_node_info(&e->ni, ni); in set_node_addr()
440 f2fs_bug_on(sbi, ni->blk_addr == NEW_ADDR); in set_node_addr()
447 copy_node_info(&e->ni, ni); in set_node_addr()
448 f2fs_bug_on(sbi, ni->blk_addr != NULL_ADDR); in set_node_addr()
455 f2fs_bug_on(sbi, nat_get_blkaddr(e) != ni->blk_addr); in set_node_addr()
[all …]
/kernel/linux/linux-5.10/fs/lockd/
Dhost.c111 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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/
Dnixge.txt4 - compatible: Should be "ni,xge-enet-3.00", but can be "ni,xge-enet-2.00" for
26 compatible = "ni,xge-enet-3.00";
51 compatible = "ni,xge-enet-2.00";
67 compatible = "ni,xge-enet-2.00";
/kernel/linux/linux-5.10/drivers/md/
Ddm-stats.c208 size_t ni; in dm_stats_cleanup() local
215 for (ni = 0; ni < s->n_entries; ni++) { in dm_stats_cleanup()
216 shared = &s->stat_shared[ni]; in dm_stats_cleanup()
220 (unsigned long)ni, in dm_stats_cleanup()
247 size_t ni; in dm_stats_create() local
314 for (ni = 0; ni < n_entries; ni++) { in dm_stats_create()
315 atomic_set(&s->stat_shared[ni].in_flight[READ], 0); in dm_stats_create()
316 atomic_set(&s->stat_shared[ni].in_flight[WRITE], 0); in dm_stats_create()
327 for (ni = 0; ni < n_entries; ni++) { in dm_stats_create()
328 s->stat_shared[ni].tmp.histogram = hi; in dm_stats_create()
[all …]
/kernel/linux/linux-5.10/net/core/
Dnetpoll.c176 struct netpoll_info *ni = rcu_dereference_bh(dev->npinfo); in netpoll_poll_dev() local
183 if (!ni || down_trylock(&ni->dev_lock)) in netpoll_poll_dev()
187 up(&ni->dev_lock); in netpoll_poll_dev()
197 up(&ni->dev_lock); in netpoll_poll_dev()
205 struct netpoll_info *ni; in netpoll_poll_disable() local
209 ni = srcu_dereference(dev->npinfo, &netpoll_srcu); in netpoll_poll_disable()
210 if (ni) in netpoll_poll_disable()
211 down(&ni->dev_lock); in netpoll_poll_disable()
218 struct netpoll_info *ni; in netpoll_poll_enable() local
220 ni = rcu_dereference(dev->npinfo); in netpoll_poll_enable()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/gpio/
Dni,169445-nand-gpio.txt8 - compatible: should be "ni,169445-nand-gpio"
24 compatible = "ni,169445-nand-gpio";
32 compatible = "ni,169445-nand-gpio";
/kernel/linux/linux-5.10/arch/mips/boot/dts/ni/
D169445.dts6 compatible = "ni,169445";
44 compatible = "ni,169445-nand-gpio";
52 compatible = "ni,169445-nand-gpio";
/kernel/linux/linux-5.10/net/atm/
Dbr2684.c666 struct atm_newif_br2684 ni; in br2684_create() local
671 if (copy_from_user(&ni, arg, sizeof ni)) in br2684_create()
674 if (ni.media & BR2684_FLAG_ROUTED) in br2684_create()
678 ni.media &= 0xffff; /* strip flags */ in br2684_create()
680 if (ni.media != BR2684_MEDIA_ETHERNET || ni.mtu != 1500) in br2684_create()
684 ni.ifname[0] ? ni.ifname : "nas%d", in br2684_create()
/kernel/linux/linux-5.10/sound/soc/codecs/
Dmax98095.c945 unsigned long long ni; in max98095_dai1_hw_params() local
979 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98095_dai1_hw_params()
981 do_div(ni, (unsigned long long int)max98095->sysclk); in max98095_dai1_hw_params()
983 (ni >> 8) & 0x7F); in max98095_dai1_hw_params()
985 ni & 0xFF); in max98095_dai1_hw_params()
1006 unsigned long long ni; in max98095_dai2_hw_params() local
1040 ni = 65536ULL * (rate < 50000 ? 96ULL : 48ULL) in max98095_dai2_hw_params()
1042 do_div(ni, (unsigned long long int)max98095->sysclk); in max98095_dai2_hw_params()
1044 (ni >> 8) & 0x7F); in max98095_dai2_hw_params()
1046 ni & 0xFF); in max98095_dai2_hw_params()
[all …]
/kernel/linux/linux-5.10/arch/ia64/kernel/
Dtime.c112 struct thread_info *ni = task_thread_info(current); in arch_vtime_task_switch() local
114 ni->ac_stamp = pi->ac_stamp; in arch_vtime_task_switch()
115 ni->ac_stime = ni->ac_utime = 0; in arch_vtime_task_switch()

1234