Home
last modified time | relevance | path

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

12345678910

/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 …]
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 …]
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 …]
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()
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 …]
/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 …]
/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 …]
/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 …]
/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 …]
Dni_65xx.c786 { PCI_VDEVICE(NI, 0x1710), BOARD_PXI6509 },
787 { PCI_VDEVICE(NI, 0x7085), BOARD_PCI6509 },
788 { PCI_VDEVICE(NI, 0x7086), BOARD_PXI6528 },
789 { PCI_VDEVICE(NI, 0x7087), BOARD_PCI6515 },
790 { PCI_VDEVICE(NI, 0x7088), BOARD_PCI6514 },
791 { PCI_VDEVICE(NI, 0x70a9), BOARD_PCI6528 },
792 { PCI_VDEVICE(NI, 0x70c3), BOARD_PCI6511 },
793 { PCI_VDEVICE(NI, 0x70c8), BOARD_PCI6513 },
794 { PCI_VDEVICE(NI, 0x70c9), BOARD_PXI6515 },
795 { PCI_VDEVICE(NI, 0x70cc), BOARD_PCI6512 },
[all …]
Dni_routes.h5 * Route information for NI boards.
72 * ni_assign_device_routes() - Assign the proper lookup table for NI signal
73 * routing to the specified NI device.
156 * is valid for the given NI comedi_device.
231 * Return: The NI signal value (e.g. NI_PFI(0) or PXI_Clk10) if found.
252 * particular valid NI signal/terminal route.
282 * Otherwise, the src is expected to be one of the abstracted NI in ni_get_reg_value_roffs()
295 * ni_check_trigger_arg_roffs() - Checks the trigger argument (*_arg) of an NI
298 * to define a trigger source, _or_ a valid NI
311 * Return: 0 if the src (either register value or NI signal/terminal name) is
Dni_670x.c3 * Comedi driver for NI 670x devices
84 * NI 6703/ NI 6704 | NI 6704 Only in ni_670x_ao_insn_write()
265 { PCI_VDEVICE(NI, 0x1290), BOARD_PCI6704 },
266 { PCI_VDEVICE(NI, 0x1920), BOARD_PXI6704 },
267 { PCI_VDEVICE(NI, 0x2c90), BOARD_PCI6703 },
/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 …]
/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 …]
/linux-5.10/Documentation/devicetree/bindings/net/
Dnixge.txt1 * NI XGE Ethernet controller
4 - 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";
/linux-5.10/Documentation/devicetree/bindings/input/
De3x0-button.txt3 This module is part of the NI Ettus Research USRP E3x0 SDR.
9 - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0
11 - <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0
13 - "press", "release": For devices such as the NI Ettus Research USRP E3x0
/linux-5.10/arch/mips/generic/
Dboard-ni169445.its.S4 description = "NI 169445 device tree";
5 data = /incbin/("boot/dts/ni/169445.dtb");
17 description = "NI 169445 Linux Kernel";
/linux-5.10/drivers/staging/comedi/
Dcomedi.h952 /* *** BEGIN GLOBALLY-NAMED NI TERMINALS/SIGNALS *** */
956 * Some of these have no NI_ prefix as they are useful for non-NI hardware, such
968 * NI hardware using comedi. The major reason for this is that the actual
973 * increasingly hard to find and the NI MHDDK (comments in example code).
985 * Similar, albeit less, confusion plagued NI's previous version of their own
986 * drivers. Earlier than 2003, NI greatly simplified the situation for users
990 * The names below mirror the names chosen and well documented by NI. These
998 * Base of abstracted NI names.
1001 * NI select registers anyways, we'll identify all values >= (1<<15) as being an
1002 * abstracted NI signal/terminal name.
[all …]
/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";

12345678910