Home
last modified time | relevance | path

Searched full:ni (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/kernel/linux/linux-4.19/fs/ntfs/
Dinode.c62 ntfs_inode *ni; in ntfs_test_inode() local
66 ni = NTFS_I(vi); in ntfs_test_inode()
67 /* If !NInoAttr(ni), @vi is a normal file or directory inode. */ in ntfs_test_inode()
68 if (likely(!NInoAttr(ni))) { in ntfs_test_inode()
74 if (ni->type != na->type) in ntfs_test_inode()
76 if (ni->name_len != na->name_len) in ntfs_test_inode()
78 if (na->name_len && memcmp(ni->name, na->name, in ntfs_test_inode()
106 ntfs_inode *ni = NTFS_I(vi); in ntfs_init_locked_inode() local
110 ni->type = na->type; in ntfs_init_locked_inode()
112 NInoSetMstProtected(ni); in ntfs_init_locked_inode()
[all …]
Dfile.c75 * @ni: ntfs inode of the attribute to extend
78 * Extend the initialized size of an attribute described by the ntfs inode @ni
106 * Locking: i_mutex on the vfs inode corrseponsind to the ntfs inode @ni must be
109 static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) in ntfs_attr_extend_initialized() argument
115 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized()
126 read_lock_irqsave(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
127 old_init_size = ni->initialized_size; in ntfs_attr_extend_initialized()
129 BUG_ON(new_init_size > ni->allocated_size); in ntfs_attr_extend_initialized()
130 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_attr_extend_initialized()
134 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized()
[all …]
Dattrib.c40 * @ni: ntfs inode for which to map (part of) a runlist
44 * Map the part of a runlist containing the @vcn of the ntfs inode @ni.
46 * If @ctx is specified, it is an active search context of @ni and its base mft
77 * Locking: - The runlist described by @ni must be locked for writing on entry
79 * - If @ctx is NULL, the base mft record of @ni must not be mapped on
84 int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn, ntfs_attr_search_ctx *ctx) in ntfs_map_runlist_nolock() argument
99 if (!NInoAttr(ni)) in ntfs_map_runlist_nolock()
100 base_ni = ni; in ntfs_map_runlist_nolock()
102 base_ni = ni->ext.base_ntfs_ino; in ntfs_map_runlist_nolock()
121 read_lock_irqsave(&ni->size_lock, flags); in ntfs_map_runlist_nolock()
[all …]
Dmft.h32 extern MFT_RECORD *map_mft_record(ntfs_inode *ni);
33 extern void unmap_mft_record(ntfs_inode *ni);
38 static inline void unmap_extent_mft_record(ntfs_inode *ni) in unmap_extent_mft_record() argument
40 unmap_mft_record(ni); in unmap_extent_mft_record()
48 * @ni: ntfs inode structure of mft record
55 static inline void flush_dcache_mft_record_page(ntfs_inode *ni) in flush_dcache_mft_record_page() argument
57 flush_dcache_page(ni->page); in flush_dcache_mft_record_page()
60 extern void __mark_mft_record_dirty(ntfs_inode *ni);
64 * @ni: ntfs inode describing the mapped mft record
66 * Set the mapped (extent) mft record of the (base or extent) ntfs inode @ni,
[all …]
Daops.c65 ntfs_inode *ni; in ntfs_end_buffer_async_read() local
70 ni = NTFS_I(vi); in ntfs_end_buffer_async_read()
80 read_lock_irqsave(&ni->size_lock, flags); in ntfs_end_buffer_async_read()
81 init_size = ni->initialized_size; in ntfs_end_buffer_async_read()
83 read_unlock_irqrestore(&ni->size_lock, flags); in ntfs_end_buffer_async_read()
105 ntfs_error(ni->vol->sb, "Buffer I/O error, logical block " in ntfs_end_buffer_async_read()
130 * attribute is mst protected, i.e. if NInoMstProteced(ni) is true. in ntfs_end_buffer_async_read()
135 if (!NInoMstProtected(ni)) { in ntfs_end_buffer_async_read()
143 rec_size = ni->itype.index.block_size; in ntfs_end_buffer_async_read()
188 ntfs_inode *ni; in ntfs_read_block() local
[all …]
Dmft.c42 * @ni: ntfs inode whose mft record page to map
44 * This maps the page in which the mft record of the ntfs inode @ni is situated
50 static inline MFT_RECORD *map_mft_record_page(ntfs_inode *ni) in map_mft_record_page() argument
53 ntfs_volume *vol = ni->vol; in map_mft_record_page()
59 BUG_ON(ni->page); in map_mft_record_page()
66 index = (u64)ni->mft_no << vol->mft_record_size_bits >> in map_mft_record_page()
68 ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; in map_mft_record_page()
82 "driver.", ni->mft_no); in map_mft_record_page()
92 ni->page = page; in map_mft_record_page()
93 ni->page_ofs = ofs; in map_mft_record_page()
[all …]
Dinode.h183 static inline int NIno##flag(ntfs_inode *ni) \
185 return test_bit(NI_##flag, &(ni)->state); \
187 static inline void NInoSet##flag(ntfs_inode *ni) \
189 set_bit(NI_##flag, &(ni)->state); \
191 static inline void NInoClear##flag(ntfs_inode *ni) \
193 clear_bit(NI_##flag, &(ni)->state); \
200 static inline int NInoTestSet##flag(ntfs_inode *ni) \
202 return test_and_set_bit(NI_##flag, &(ni)->state); \
204 static inline int NInoTestClear##flag(ntfs_inode *ni) \
206 return test_and_clear_bit(NI_##flag, &(ni)->state); \
[all …]
Dattrib.h63 extern int ntfs_map_runlist_nolock(ntfs_inode *ni, VCN vcn,
65 extern int ntfs_map_runlist(ntfs_inode *ni, VCN vcn);
67 extern LCN ntfs_attr_vcn_to_lcn_nolock(ntfs_inode *ni, const VCN vcn,
70 extern runlist_element *ntfs_attr_find_vcn_nolock(ntfs_inode *ni,
89 extern ntfs_attr_search_ctx *ntfs_attr_get_search_ctx(ntfs_inode *ni,
106 extern int ntfs_attr_make_non_resident(ntfs_inode *ni, const u32 data_size);
108 extern s64 ntfs_attr_extend_allocation(ntfs_inode *ni, s64 new_alloc_size,
111 extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt,
/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()
54 /* If !NInoAttr(ni), @vi is a normal file or directory inode. */ 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()
[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()
34 * @ni: ntfs inode structure of 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);
50 * @ni: ntfs inode describing the mapped mft record
52 * Set the mapped (extent) mft record of the (base or extent) ntfs inode @ni,
[all …]
Dfile.c61 * @ni: ntfs inode of the attribute to extend
64 * Extend the initialized size of an attribute described by the ntfs inode @ni
92 * Locking: i_mutex on the vfs inode corrseponsind to the ntfs inode @ni must be
95 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()
[all …]
Dattrib.c26 * @ni: ntfs inode for which to map (part of) a runlist
30 * Map the part of a runlist containing the @vcn of the ntfs inode @ni.
32 * If @ctx is specified, it is an active search context of @ni and its base mft
63 * Locking: - The runlist described by @ni must be locked for writing on entry
65 * - If @ctx is NULL, the base mft record of @ni must not be mapped on
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()
[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()
114 * attribute is mst protected, i.e. if NInoMstProteced(ni) is true. 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
[all …]
Dmft.c28 * @ni: ntfs inode whose mft record page to map
30 * This maps the page in which the mft record of the ntfs inode @ni is situated
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()
[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 …]
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,
Dlcnalloc.h34 extern s64 __ntfs_cluster_free(ntfs_inode *ni, const VCN start_vcn,
39 * @ni: ntfs inode whose runlist describes the clusters to free
40 * @start_vcn: vcn in the runlist of @ni at which to start freeing clusters
45 * described by the ntfs inode @ni.
51 * If @ctx is specified, it is an active search context of @ni and its base mft
81 * Locking: - The runlist described by @ni must be locked for writing on entry
88 * - If @ctx is NULL, the base mft record of @ni must not be mapped on
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()
/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, \
271 * @ni: A reference to the initialized instance descriptor
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,
376 * @ni: A reference to the notification instance to use
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()
[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-4.19/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_nsp_cmds.c56 struct nsp_identify *ni; in __nfp_nsp_identify() local
62 ni = kzalloc(sizeof(*ni), GFP_KERNEL); in __nfp_nsp_identify()
63 if (!ni) in __nfp_nsp_identify()
66 ret = nfp_nsp_read_identify(nsp, ni, sizeof(*ni)); in __nfp_nsp_identify()
77 memcpy(nspi->version, ni->version, sizeof(nspi->version)); in __nfp_nsp_identify()
79 nspi->flags = ni->flags; in __nfp_nsp_identify()
80 nspi->br_primary = ni->br_primary; in __nfp_nsp_identify()
81 nspi->br_secondary = ni->br_secondary; in __nfp_nsp_identify()
82 nspi->br_nsp = ni->br_nsp; in __nfp_nsp_identify()
83 nspi->primary = le16_to_cpu(ni->primary); in __nfp_nsp_identify()
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/
DREADME9 NI hardware using comedi. The major reason for this is that the actual
15 increasingly hard to find and the NI-MHDDK (comments in in example code).
34 information is through the proprietary NI-MAX software, which currently only
36 cannot be exported from NI-MAX, except by screenshot.
48 directory are chosen to be consistent with (a) the NI's user level
49 documentation, (b) NI's user-level code, (c) the information as provided by
50 the proprietary NI-MAX software, and (d) the user interface code provided by
92 simplify/clarify signal routing on NI devices, a corresponding
98 Windows software, NI-MAX. Also, as noted above, this information can
99 only be visually conveyed from NI-MAX to other media. To make this
[all …]
/kernel/linux/linux-4.19/drivers/staging/comedi/drivers/
Dni_pcimio.c3 * Comedi driver for NI PCI-MIO E series cards
85 * - need to slow down DAC loading. I don't trust NI's claim that
1375 { PCI_VDEVICE(NI, 0x0162), BOARD_PCIMIO_16XE_50 }, /* 0x1620? */
1376 { PCI_VDEVICE(NI, 0x1170), BOARD_PCIMIO_16XE_10 },
1377 { PCI_VDEVICE(NI, 0x1180), BOARD_PCIMIO_16E_1 },
1378 { PCI_VDEVICE(NI, 0x1190), BOARD_PCIMIO_16E_4 },
1379 { PCI_VDEVICE(NI, 0x11b0), BOARD_PXI6070E },
1380 { PCI_VDEVICE(NI, 0x11c0), BOARD_PXI6040E },
1381 { PCI_VDEVICE(NI, 0x11d0), BOARD_PXI6030E },
1382 { PCI_VDEVICE(NI, 0x1270), BOARD_PCI6032E },
[all …]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
Dni_pcimio.c3 * Comedi driver for NI PCI-MIO E series cards
85 * - need to slow down DAC loading. I don't trust NI's claim that
1398 { PCI_VDEVICE(NI, 0x0162), BOARD_PCIMIO_16XE_50 }, /* 0x1620? */
1399 { PCI_VDEVICE(NI, 0x1170), BOARD_PCIMIO_16XE_10 },
1400 { PCI_VDEVICE(NI, 0x1180), BOARD_PCIMIO_16E_1 },
1401 { PCI_VDEVICE(NI, 0x1190), BOARD_PCIMIO_16E_4 },
1402 { PCI_VDEVICE(NI, 0x11b0), BOARD_PXI6070E },
1403 { PCI_VDEVICE(NI, 0x11c0), BOARD_PXI6040E },
1404 { PCI_VDEVICE(NI, 0x11d0), BOARD_PXI6030E },
1405 { PCI_VDEVICE(NI, 0x1270), BOARD_PCI6032E },
[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 …]
/kernel/linux/linux-4.19/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 …]

12345678910>>...17