Home
last modified time | relevance | path

Searched refs:ofs (Results 1 – 25 of 265) sorted by relevance

1234567891011

/linux-6.1.9/fs/overlayfs/
Dsuper.c222 static void ovl_free_fs(struct ovl_fs *ofs) in ovl_free_fs() argument
227 iput(ofs->workbasedir_trap); in ovl_free_fs()
228 iput(ofs->indexdir_trap); in ovl_free_fs()
229 iput(ofs->workdir_trap); in ovl_free_fs()
230 dput(ofs->whiteout); in ovl_free_fs()
231 dput(ofs->indexdir); in ovl_free_fs()
232 dput(ofs->workdir); in ovl_free_fs()
233 if (ofs->workdir_locked) in ovl_free_fs()
234 ovl_inuse_unlock(ofs->workbasedir); in ovl_free_fs()
235 dput(ofs->workbasedir); in ovl_free_fs()
[all …]
Doverlayfs.h121 static inline const char *ovl_xattr(struct ovl_fs *ofs, enum ovl_xattr ox) in ovl_xattr() argument
123 return ovl_xattr_table[ox][ofs->config.userxattr]; in ovl_xattr()
138 static inline int ovl_do_notify_change(struct ovl_fs *ofs, in ovl_do_notify_change() argument
142 return notify_change(ovl_upper_mnt_userns(ofs), upperdentry, attr, NULL); in ovl_do_notify_change()
145 static inline int ovl_do_rmdir(struct ovl_fs *ofs, in ovl_do_rmdir() argument
148 int err = vfs_rmdir(ovl_upper_mnt_userns(ofs), dir, dentry); in ovl_do_rmdir()
154 static inline int ovl_do_unlink(struct ovl_fs *ofs, struct inode *dir, in ovl_do_unlink() argument
157 int err = vfs_unlink(ovl_upper_mnt_userns(ofs), dir, dentry, NULL); in ovl_do_unlink()
163 static inline int ovl_do_link(struct ovl_fs *ofs, struct dentry *old_dentry, in ovl_do_link() argument
166 int err = vfs_link(old_dentry, ovl_upper_mnt_userns(ofs), dir, new_dentry, NULL); in ovl_do_link()
[all …]
Ddir.c26 int ovl_cleanup(struct ovl_fs *ofs, struct inode *wdir, struct dentry *wdentry) in ovl_cleanup() argument
32 err = ovl_do_rmdir(ofs, wdir, wdentry); in ovl_cleanup()
34 err = ovl_do_unlink(ofs, wdir, wdentry); in ovl_cleanup()
45 struct dentry *ovl_lookup_temp(struct ovl_fs *ofs, struct dentry *workdir) in ovl_lookup_temp() argument
54 temp = ovl_lookup_upper(ofs, name, workdir, strlen(name)); in ovl_lookup_temp()
65 static struct dentry *ovl_whiteout(struct ovl_fs *ofs) in ovl_whiteout() argument
69 struct dentry *workdir = ofs->workdir; in ovl_whiteout()
72 if (!ofs->whiteout) { in ovl_whiteout()
73 whiteout = ovl_lookup_temp(ofs, workdir); in ovl_whiteout()
77 err = ovl_do_whiteout(ofs, wdir, whiteout); in ovl_whiteout()
[all …]
Dnamei.c34 struct ovl_fs *ofs = OVL_FS(d->sb); in ovl_check_redirect() local
36 buf = ovl_get_redirect_xattr(ofs, path, prelen + strlen(post)); in ovl_check_redirect()
109 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_get_fh() argument
115 res = ovl_getxattr_upper(ofs, upperdentry, ox, NULL, 0); in ovl_get_fh()
129 res = ovl_getxattr_upper(ofs, upperdentry, ox, fh->buf, res); in ovl_get_fh()
154 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, in ovl_decode_real_fh() argument
168 if (ofs->config.uuid ? !uuid_equal(&fh->fb.uuid, &mnt->mnt_sb->s_uuid) : in ovl_decode_real_fh()
197 static bool ovl_is_opaquedir(struct ovl_fs *ofs, const struct path *path) in ovl_is_opaquedir() argument
199 return ovl_path_check_dir_xattr(ofs, path, OVL_XATTR_OPAQUE); in ovl_is_opaquedir()
353 int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, in ovl_check_origin_fh() argument
[all …]
Dutil.c21 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() local
22 return mnt_want_write(ovl_upper_mnt(ofs)); in ovl_want_write()
27 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() local
28 mnt_drop_write(ovl_upper_mnt(ofs)); in ovl_drop_write()
33 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() local
34 return ofs->workdir; in ovl_workdir()
39 struct ovl_fs *ofs = sb->s_fs_info; in ovl_override_creds() local
41 return override_creds(ofs->creator_cred); in ovl_override_creds()
65 struct ovl_fs *ofs = sb->s_fs_info; in ovl_indexdir() local
67 return ofs->indexdir; in ovl_indexdir()
[all …]
Dcopy_up.c196 static int ovl_copy_up_file(struct ovl_fs *ofs, struct dentry *dentry, in ovl_copy_up_file() argument
280 if (!error && ovl_should_sync(ofs)) in ovl_copy_up_file()
287 static int ovl_set_size(struct ovl_fs *ofs, in ovl_set_size() argument
295 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_size()
298 static int ovl_set_timestamps(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_timestamps() argument
308 return ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_timestamps()
311 int ovl_set_attr(struct ovl_fs *ofs, struct dentry *upperdentry, in ovl_set_attr() argument
321 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
329 err = ovl_do_notify_change(ofs, upperdentry, &attr); in ovl_set_attr()
332 ovl_set_timestamps(ofs, upperdentry, stat); in ovl_set_attr()
[all …]
/linux-6.1.9/sound/soc/fsl/
Dfsl_sai.h23 #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */ argument
24 #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */ argument
25 #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */ argument
26 #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */ argument
27 #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */ argument
28 #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */ argument
50 #define FSL_SAI_RCSR(ofs) (0x80 + ofs) /* SAI Receive Control */ argument
51 #define FSL_SAI_RCR1(ofs) (0x84 + ofs)/* SAI Receive Configuration 1 */ argument
52 #define FSL_SAI_RCR2(ofs) (0x88 + ofs) /* SAI Receive Configuration 2 */ argument
53 #define FSL_SAI_RCR3(ofs) (0x8c + ofs) /* SAI Receive Configuration 3 */ argument
[all …]
/linux-6.1.9/fs/jffs2/
Dnodelist.c66 if (frag && frag->ofs != size) { in jffs2_truncate_fragtree()
67 if (frag->ofs+frag->size > size) { in jffs2_truncate_fragtree()
68 frag->size = size - frag->ofs; in jffs2_truncate_fragtree()
72 while (frag && frag->ofs >= size) { in jffs2_truncate_fragtree()
88 if (frag->ofs + frag->size < size) in jffs2_truncate_fragtree()
89 return frag->ofs + frag->size; in jffs2_truncate_fragtree()
93 if (frag->node && (frag->ofs & (PAGE_SIZE - 1)) == 0) { in jffs2_truncate_fragtree()
95 frag->ofs, frag->ofs + frag->size); in jffs2_truncate_fragtree()
109 ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); in jffs2_obsolete_node_frag()
114 …ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); in jffs2_obsolete_node_frag()
[all …]
Dscan.c47 struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s);
49 struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s);
291 uint32_t ofs, uint32_t len) in jffs2_fill_scan_buf() argument
296 ret = jffs2_flash_read(c, ofs, len, &retlen, buf); in jffs2_fill_scan_buf()
299 len, ofs, ret); in jffs2_fill_scan_buf()
304 ofs, retlen); in jffs2_fill_scan_buf()
331 struct jffs2_raw_xattr *rx, uint32_t ofs, in jffs2_scan_xattr_node() argument
341 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node()
354 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node()
366 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node()
[all …]
Dread.c25 int ofs, int len) in jffs2_read_dnode() argument
71 D1(if(ofs + len > je32_to_cpu(ri->dsize)) { in jffs2_read_dnode()
73 len, ofs, je32_to_cpu(ri->dsize)); in jffs2_read_dnode()
143 memcpy(buf, decomprbuf+ofs, len); in jffs2_read_dnode()
177 if (unlikely(!frag || frag->ofs > offset || in jffs2_read_inode_range()
178 frag->ofs + frag->size <= offset)) { in jffs2_read_inode_range()
180 if (frag && frag->ofs > offset) { in jffs2_read_inode_range()
182 f->inocache->ino, frag->ofs, offset); in jffs2_read_inode_range()
183 holesize = min(holesize, frag->ofs - offset); in jffs2_read_inode_range()
192 uint32_t holeend = min(end, frag->ofs + frag->size); in jffs2_read_inode_range()
[all …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/
Diwl-io.h11 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val);
12 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val);
13 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val);
14 u32 iwl_read32(struct iwl_trans *trans, u32 ofs);
36 u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs);
37 u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs);
38 void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val);
39 void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val);
40 void iwl_write_prph_delay(struct iwl_trans *trans, u32 ofs,
42 static inline void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write_prph() argument
[all …]
Diwl-io.c17 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument
19 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8()
20 iwl_trans_write8(trans, ofs, val); in iwl_write8()
24 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument
26 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32()
27 iwl_trans_write32(trans, ofs, val); in iwl_write32()
31 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument
33 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64()
34 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64()
35 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64()
[all …]
/linux-6.1.9/drivers/tty/serial/
Dstm32-usart.c41 .ofs = {
62 .ofs = {
84 .ofs = {
137 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_tx_empty() local
139 if (readl_relaxed(port->membase + ofs->isr) & USART_SR_TC) in stm32_usart_tx_empty()
222 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_config_rs485() local
227 stm32_usart_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); in stm32_usart_config_rs485()
232 cr1 = readl_relaxed(port->membase + ofs->cr1); in stm32_usart_config_rs485()
233 cr3 = readl_relaxed(port->membase + ofs->cr3); in stm32_usart_config_rs485()
234 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_usart_config_rs485()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7921/
Dregs.h9 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument
18 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
29 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
52 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
77 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
85 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
96 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
110 #define MT_WF_MIB(_band, ofs) (MT_WF_MIB_BASE(_band) + (ofs)) argument
173 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
191 #define MT_WF_AGG(_band, ofs) (MT_WF_AGG_BASE(_band) + (ofs)) argument
[all …]
/linux-6.1.9/drivers/mtd/spi-nor/
Dswp.c50 static void spi_nor_get_locked_range_sr(struct spi_nor *nor, u8 sr, loff_t *ofs, in spi_nor_get_locked_range_sr() argument
66 *ofs = 0; in spi_nor_get_locked_range_sr()
78 *ofs = 0; in spi_nor_get_locked_range_sr()
80 *ofs = mtd->size - *len; in spi_nor_get_locked_range_sr()
87 static bool spi_nor_check_lock_status_sr(struct spi_nor *nor, loff_t ofs, in spi_nor_check_lock_status_sr() argument
99 offs_max = ofs + len; in spi_nor_check_lock_status_sr()
103 return (offs_max <= lock_offs_max) && (ofs >= lock_offs); in spi_nor_check_lock_status_sr()
106 return (ofs >= lock_offs_max) || (offs_max <= lock_offs); in spi_nor_check_lock_status_sr()
109 static bool spi_nor_is_locked_sr(struct spi_nor *nor, loff_t ofs, uint64_t len, in spi_nor_is_locked_sr() argument
112 return spi_nor_check_lock_status_sr(nor, ofs, len, sr, true); in spi_nor_is_locked_sr()
[all …]
Datmel.c19 static int at25fs_nor_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_lock() argument
24 static int at25fs_nor_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_unlock() argument
29 if (ofs || len != nor->params->size) in at25fs_nor_unlock()
40 static int at25fs_nor_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in at25fs_nor_is_locked() argument
69 static int atmel_nor_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_nor_set_global_protection() argument
76 if (ofs || len != nor->params->size) in atmel_nor_set_global_protection()
119 static int atmel_nor_global_protect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_protect() argument
122 return atmel_nor_set_global_protection(nor, ofs, len, true); in atmel_nor_global_protect()
125 static int atmel_nor_global_unprotect(struct spi_nor *nor, loff_t ofs, in atmel_nor_global_unprotect() argument
128 return atmel_nor_set_global_protection(nor, ofs, len, false); in atmel_nor_global_unprotect()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7915/
Dregs.h112 #define MT_MCU_WFDMA0(ofs) (MT_MCU_WFDMA0_BASE + (ofs)) argument
118 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument
128 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
146 #define MT_PSE(ofs) (MT_PSE_BASE + (ofs)) argument
150 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
177 #define MT_WF_TRB(_band, ofs) (MT_WF_TRB_BASE(_band) + (ofs)) argument
185 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
221 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
229 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
252 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
[all …]
/linux-6.1.9/fs/ksmbd/
Dasn1.c59 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq, in encode_asn_tag() argument
63 int index = *ofs; in encode_asn_tag()
79 len = len - (index - *ofs); in encode_asn_tag()
90 *ofs += (index - *ofs); in encode_asn_tag()
97 unsigned int ofs = 0; in build_spnego_ntlmssp_neg_blob() local
112 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len + oid_len + in build_spnego_ntlmssp_neg_blob()
116 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1); in build_spnego_ntlmssp_neg_blob()
117 buf[ofs++] = 1; in build_spnego_ntlmssp_neg_blob()
120 encode_asn_tag(buf, &ofs, 0xa1, 0x06, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
121 memcpy(buf + ofs, NTLMSSP_OID_STR, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
[all …]
/linux-6.1.9/drivers/media/pci/pt3/
Dpt3_dma.c61 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) in next_unit() argument
63 *ofs += PT3_ACCESS_UNIT; in next_unit()
64 if (*ofs >= DATA_BUF_SZ) { in next_unit()
65 *ofs -= DATA_BUF_SZ; in next_unit()
70 return &adap->buffer[*idx].data[*ofs]; in next_unit()
75 int idx, ofs; in pt3_proc_dma() local
78 ofs = adap->buf_ofs; in pt3_proc_dma()
80 if (adap->buffer[idx].data[ofs] == PT3_BUF_CANARY) in pt3_proc_dma()
83 while (*next_unit(adap, &idx, &ofs) != PT3_BUF_CANARY) { in pt3_proc_dma()
93 adap->buffer[idx].data, ofs / TS_PACKET_SZ); in pt3_proc_dma()
[all …]
/linux-6.1.9/security/selinux/ss/
Debitmap.h50 unsigned int ofs; in ebitmap_start_positive() local
53 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_start_positive()
54 if (ofs < EBITMAP_SIZE) in ebitmap_start_positive()
55 return (*n)->startbit + ofs; in ebitmap_start_positive()
69 unsigned int ofs; in ebitmap_next_positive() local
71 ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); in ebitmap_next_positive()
72 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
73 return ofs + (*n)->startbit; in ebitmap_next_positive()
76 ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); in ebitmap_next_positive()
77 if (ofs < EBITMAP_SIZE) in ebitmap_next_positive()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt7615/
Dregs.h36 #define MT_HW_INFO(ofs) (MT_HW_INFO_BASE + (ofs)) argument
52 #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) argument
65 #define MT_MCU_CIRQ(ofs) (MT_MCU_CIRQ_BASE + (ofs)) argument
69 #define MT_HIF(ofs) ((dev)->reg_map[MT_HIF_BASE] + (ofs)) argument
88 #define MT_HIF2(ofs) (MT_HIF2_BASE + (ofs)) argument
162 #define MT_CSR(ofs) ((dev)->reg_map[MT_CSR_BASE] + (ofs)) argument
165 #define MT_PLE(ofs) ((dev)->reg_map[MT_PLE_BASE] + (ofs)) argument
177 #define MT_PSE(ofs) ((dev)->reg_map[MT_PSE_BASE] + (ofs)) argument
189 #define MT_PP(ofs) ((dev)->reg_map[MT_PP_BASE] + (ofs)) argument
195 #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) argument
[all …]
/linux-6.1.9/arch/xtensa/variants/test_mmuhifi_c3/include/variant/
Dtie-asm.h36 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
37 xchal_sa_start \continue, \ofs
63 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
64 xchal_sa_start \continue, \ofs
97 .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
98 xchal_sa_start \continue, \ofs
133 .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
134 xchal_sa_start \continue, \ofs
167 .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm
168 .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm
[all …]
/linux-6.1.9/fs/erofs/
Dxattr.c16 unsigned int ofs; member
76 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
85 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs()
96 it.ofs += sizeof(struct erofs_xattr_ibody_header); in init_inode_xattrs()
99 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs()
101 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs()
111 it.ofs = 0; in init_inode_xattrs()
114 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs()
115 it.ofs += sizeof(__le32); in init_inode_xattrs()
146 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup()
[all …]
/linux-6.1.9/drivers/mtd/maps/
Dpci.c25 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
33 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs);
37 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) in mtd_pci_read8() argument
41 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8()
45 static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) in mtd_pci_read32() argument
49 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32()
59 static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write8() argument
62 writeb(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write8()
65 static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write32() argument
68 writel(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write32()
[all …]
/linux-6.1.9/drivers/s390/char/
Dhmcdrv_cache.c40 loff_t ofs; member
50 .ofs = -1,
71 if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ in hmcdrv_cache_get()
74 if ((hmcdrv_cache_file.ofs < 0) || /* has content? */ in hmcdrv_cache_get()
81 len = hmcdrv_cache_file.fsize - ftp->ofs; in hmcdrv_cache_get()
89 pos = ftp->ofs - hmcdrv_cache_file.ofs; in hmcdrv_cache_get()
143 hmcdrv_cache_file.ofs = ftp->ofs; in hmcdrv_cache_do()
150 hmcdrv_cache_file.ofs = -1; /* invalidate content */ in hmcdrv_cache_do()
205 hmcdrv_cache_file.ofs = -1; in hmcdrv_cache_cmd()
251 hmcdrv_cache_file.ofs = -1; in hmcdrv_cache_shutdown()

1234567891011