Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.15/fs/overlayfs/
Dsuper.c215 static void ovl_free_fs(struct ovl_fs *ofs) in ovl_free_fs() argument
220 iput(ofs->workbasedir_trap); in ovl_free_fs()
221 iput(ofs->indexdir_trap); in ovl_free_fs()
222 iput(ofs->workdir_trap); in ovl_free_fs()
223 dput(ofs->whiteout); in ovl_free_fs()
224 dput(ofs->indexdir); in ovl_free_fs()
225 dput(ofs->workdir); in ovl_free_fs()
226 if (ofs->workdir_locked) in ovl_free_fs()
227 ovl_inuse_unlock(ofs->workbasedir); in ovl_free_fs()
228 dput(ofs->workbasedir); in ovl_free_fs()
[all …]
Dnamei.c33 struct ovl_fs *ofs = OVL_FS(d->sb); in ovl_check_redirect() local
35 buf = ovl_get_redirect_xattr(ofs, dentry, prelen + strlen(post)); in ovl_check_redirect()
108 static struct ovl_fh *ovl_get_fh(struct ovl_fs *ofs, struct dentry *dentry, in ovl_get_fh() argument
114 res = ovl_do_getxattr(ofs, dentry, ox, NULL, 0); in ovl_get_fh()
128 res = ovl_do_getxattr(ofs, dentry, ox, fh->buf, res); in ovl_get_fh()
153 struct dentry *ovl_decode_real_fh(struct ovl_fs *ofs, struct ovl_fh *fh, in ovl_decode_real_fh() argument
167 if (ofs->config.uuid ? !uuid_equal(&fh->fb.uuid, &mnt->mnt_sb->s_uuid) : in ovl_decode_real_fh()
347 int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, in ovl_check_origin_fh() argument
353 for (i = 1; i < ofs->numlayer; i++) { in ovl_check_origin_fh()
358 if (ofs->layers[i].fsid && in ovl_check_origin_fh()
[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 …]
/Linux-v5.15/sound/soc/fsl/
Dfsl_sai.h19 #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */ argument
20 #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */ argument
21 #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */ argument
22 #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */ argument
23 #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */ argument
24 #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */ argument
46 #define FSL_SAI_RCSR(ofs) (0x80 + ofs) /* SAI Receive Control */ argument
47 #define FSL_SAI_RCR1(ofs) (0x84 + ofs)/* SAI Receive Configuration 1 */ argument
48 #define FSL_SAI_RCR2(ofs) (0x88 + ofs) /* SAI Receive Configuration 2 */ argument
49 #define FSL_SAI_RCR3(ofs) (0x8c + ofs) /* SAI Receive Configuration 3 */ argument
[all …]
Dfsl_sai.c62 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_isr() local
75 regmap_read(sai->regmap, FSL_SAI_TCSR(ofs), &xcsr); in fsl_sai_isr()
105 regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), flags | xcsr); in fsl_sai_isr()
109 regmap_read(sai->regmap, FSL_SAI_RCSR(ofs), &xcsr); in fsl_sai_isr()
139 regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), flags | xcsr); in fsl_sai_isr()
173 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_sysclk_tr() local
194 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), in fsl_sai_set_dai_sysclk_tr()
227 unsigned int ofs = sai->soc_data->reg_offset; in fsl_sai_set_dai_fmt_tr() local
322 regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), in fsl_sai_set_dai_fmt_tr()
324 regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx, ofs), in fsl_sai_set_dai_fmt_tr()
[all …]
/Linux-v5.15/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);
289 uint32_t ofs, uint32_t len) in jffs2_fill_scan_buf() argument
294 ret = jffs2_flash_read(c, ofs, len, &retlen, buf); in jffs2_fill_scan_buf()
297 len, ofs, ret); in jffs2_fill_scan_buf()
302 ofs, retlen); in jffs2_fill_scan_buf()
329 struct jffs2_raw_xattr *rx, uint32_t ofs, in jffs2_scan_xattr_node() argument
339 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node()
352 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node()
364 = 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-v5.15/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-v5.15/drivers/net/wireless/mediatek/mt76/mt7915/
Dregs.h9 #define MT_MCU_WFDMA0(ofs) (MT_MCU_WFDMA0_BASE + (ofs)) argument
14 #define MT_MCU_WFDMA1(ofs) (MT_MCU_WFDMA1_BASE + (ofs)) argument
23 #define MT_PLE(ofs) (MT_PLE_BASE + (ofs)) argument
35 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
57 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
88 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
96 #define MT_WF_ETBF(_band, ofs) (MT_WF_ETBF_BASE(_band) + (ofs)) argument
119 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
132 #define MT_WF_MIB(_band, ofs) (MT_WF_MIB_BASE(_band) + (ofs)) argument
158 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
[all …]
Ddma.c43 static void __mt7915_dma_prefetch(struct mt7915_dev *dev, u32 ofs) in __mt7915_dma_prefetch() argument
47 mt76_wr(dev, MT_WFDMA0_RX_RING0_EXT_CTRL + ofs, PREFETCH(0x0, 0x4)); in __mt7915_dma_prefetch()
48 mt76_wr(dev, MT_WFDMA0_RX_RING1_EXT_CTRL + ofs, PREFETCH(0x40, 0x4)); in __mt7915_dma_prefetch()
49 mt76_wr(dev, MT_WFDMA0_RX_RING2_EXT_CTRL + ofs, PREFETCH(0x80, 0x0)); in __mt7915_dma_prefetch()
51 mt76_wr(dev, MT_WFDMA1_TX_RING0_EXT_CTRL + ofs, PREFETCH(0x80, 0x4)); in __mt7915_dma_prefetch()
52 mt76_wr(dev, MT_WFDMA1_TX_RING1_EXT_CTRL + ofs, PREFETCH(0xc0, 0x4)); in __mt7915_dma_prefetch()
53 mt76_wr(dev, MT_WFDMA1_TX_RING2_EXT_CTRL + ofs, PREFETCH(0x100, 0x4)); in __mt7915_dma_prefetch()
54 mt76_wr(dev, MT_WFDMA1_TX_RING3_EXT_CTRL + ofs, PREFETCH(0x140, 0x4)); in __mt7915_dma_prefetch()
55 mt76_wr(dev, MT_WFDMA1_TX_RING4_EXT_CTRL + ofs, PREFETCH(0x180, 0x4)); in __mt7915_dma_prefetch()
56 mt76_wr(dev, MT_WFDMA1_TX_RING5_EXT_CTRL + ofs, PREFETCH(0x1c0, 0x4)); in __mt7915_dma_prefetch()
[all …]
/Linux-v5.15/drivers/tty/serial/
Dstm32-usart.c103 const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_usart_config_rs485() local
108 stm32_usart_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); in stm32_usart_config_rs485()
115 cr1 = readl_relaxed(port->membase + ofs->cr1); in stm32_usart_config_rs485()
116 cr3 = readl_relaxed(port->membase + ofs->cr3); in stm32_usart_config_rs485()
117 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_usart_config_rs485()
139 writel_relaxed(cr3, port->membase + ofs->cr3); in stm32_usart_config_rs485()
140 writel_relaxed(cr1, port->membase + ofs->cr1); in stm32_usart_config_rs485()
142 stm32_usart_clr_bits(port, ofs->cr3, in stm32_usart_config_rs485()
144 stm32_usart_clr_bits(port, ofs->cr1, in stm32_usart_config_rs485()
148 stm32_usart_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); in stm32_usart_config_rs485()
[all …]
/Linux-v5.15/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 atmel_at25fs_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_lock() argument
24 static int atmel_at25fs_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_unlock() argument
29 if (ofs || len != nor->params->size) in atmel_at25fs_unlock()
40 static int atmel_at25fs_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_at25fs_is_locked() argument
69 static int atmel_set_global_protection(struct spi_nor *nor, loff_t ofs, in atmel_set_global_protection() argument
76 if (ofs || len != nor->params->size) in atmel_set_global_protection()
119 static int atmel_global_protect(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_global_protect() argument
121 return atmel_set_global_protection(nor, ofs, len, true); in atmel_global_protect()
124 static int atmel_global_unprotect(struct spi_nor *nor, loff_t ofs, uint64_t len) in atmel_global_unprotect() argument
126 return atmel_set_global_protection(nor, ofs, len, false); in atmel_global_unprotect()
[all …]
/Linux-v5.15/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
30 #define MT_MDP(ofs) (MT_MDP_BASE + (ofs)) argument
53 #define MT_WF_TMAC(_band, ofs) (MT_WF_TMAC_BASE(_band) + (ofs)) argument
78 #define MT_WF_DMA(_band, ofs) (MT_WF_DMA_BASE(_band) + (ofs)) argument
86 #define MT_WF_LPON(_band, ofs) (MT_WF_LPON_BASE(_band) + (ofs)) argument
97 #define MT_WF_MIB(_band, ofs) (MT_WF_MIB_BASE(_band) + (ofs)) argument
142 #define MT_WTBLON_TOP(ofs) (MT_WTBLON_TOP_BASE + (ofs)) argument
160 #define MT_WF_AGG(_band, ofs) (MT_WF_AGG_BASE(_band) + (ofs)) argument
191 #define MT_WF_ARB(_band, ofs) (MT_WF_ARB_BASE(_band) + (ofs)) argument
[all …]
/Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/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-v5.15/fs/ksmbd/
Dasn1.c149 static void encode_asn_tag(char *buf, unsigned int *ofs, char tag, char seq, in encode_asn_tag() argument
153 int index = *ofs; in encode_asn_tag()
169 len = len - (index - *ofs); in encode_asn_tag()
180 *ofs += (index - *ofs); in encode_asn_tag()
187 unsigned int ofs = 0; in build_spnego_ntlmssp_neg_blob() local
202 encode_asn_tag(buf, &ofs, 0xa1, 0x30, neg_result_len + oid_len + in build_spnego_ntlmssp_neg_blob()
206 encode_asn_tag(buf, &ofs, 0xa0, 0x0a, 1); in build_spnego_ntlmssp_neg_blob()
207 buf[ofs++] = 1; in build_spnego_ntlmssp_neg_blob()
210 encode_asn_tag(buf, &ofs, 0xa1, 0x06, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
211 memcpy(buf + ofs, NTLMSSP_OID_STR, NTLMSSP_OID_LEN); in build_spnego_ntlmssp_neg_blob()
[all …]
/Linux-v5.15/fs/erofs/
Ddir.c24 void *dentry_blk, unsigned int *ofs, in erofs_fill_dentries() argument
27 struct erofs_dirent *de = dentry_blk + *ofs; in erofs_fill_dentries()
61 *ofs += sizeof(struct erofs_dirent); in erofs_fill_dentries()
63 *ofs = maxsize; in erofs_fill_dentries()
73 unsigned int ofs = ctx->pos % EROFS_BLKSIZ; in erofs_readdir() local
108 dirsize - ctx->pos + ofs, PAGE_SIZE); in erofs_readdir()
114 ofs = roundup(ofs, sizeof(struct erofs_dirent)); in erofs_readdir()
115 if (ofs >= nameoff) in erofs_readdir()
119 err = erofs_fill_dentries(dir, ctx, de, &ofs, in erofs_readdir()
126 ctx->pos = blknr_to_addr(i) + ofs; in erofs_readdir()
[all …]
Dxattr.c15 unsigned int ofs; member
95 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs()
107 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs()
119 it.ofs += sizeof(struct erofs_xattr_ibody_header); in init_inode_xattrs()
122 if (it.ofs >= EROFS_BLKSIZ) { in init_inode_xattrs()
124 DBG_BUGON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs()
137 it.ofs = 0; in init_inode_xattrs()
140 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs()
141 it.ofs += sizeof(__le32); in init_inode_xattrs()
172 if (it->ofs < EROFS_BLKSIZ) in xattr_iter_fixup()
[all …]
/Linux-v5.15/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-v5.15/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