/Linux-v4.19/fs/overlayfs/ |
D | super.c | 216 static void ovl_free_fs(struct ovl_fs *ofs) in ovl_free_fs() argument 220 dput(ofs->indexdir); in ovl_free_fs() 221 dput(ofs->workdir); in ovl_free_fs() 222 if (ofs->workdir_locked) in ovl_free_fs() 223 ovl_inuse_unlock(ofs->workbasedir); in ovl_free_fs() 224 dput(ofs->workbasedir); in ovl_free_fs() 225 if (ofs->upperdir_locked) in ovl_free_fs() 226 ovl_inuse_unlock(ofs->upper_mnt->mnt_root); in ovl_free_fs() 227 mntput(ofs->upper_mnt); in ovl_free_fs() 228 for (i = 0; i < ofs->numlower; i++) in ovl_free_fs() [all …]
|
D | util.c | 23 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_want_write() local 24 return mnt_want_write(ofs->upper_mnt); in ovl_want_write() 29 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_drop_write() local 30 mnt_drop_write(ofs->upper_mnt); in ovl_drop_write() 35 struct ovl_fs *ofs = dentry->d_sb->s_fs_info; in ovl_workdir() local 36 return ofs->workdir; in ovl_workdir() 41 struct ovl_fs *ofs = sb->s_fs_info; in ovl_override_creds() local 43 return override_creds(ofs->creator_cred); in ovl_override_creds() 48 struct ovl_fs *ofs = sb->s_fs_info; in ovl_same_sb() local 50 if (!ofs->numlowerfs) in ovl_same_sb() [all …]
|
/Linux-v4.19/fs/jffs2/ |
D | nodelist.c | 66 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 …]
|
D | scan.c | 47 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); 288 uint32_t ofs, uint32_t len) in jffs2_fill_scan_buf() argument 293 ret = jffs2_flash_read(c, ofs, len, &retlen, buf); in jffs2_fill_scan_buf() 296 len, ofs, ret); in jffs2_fill_scan_buf() 301 ofs, retlen); in jffs2_fill_scan_buf() 328 struct jffs2_raw_xattr *rx, uint32_t ofs, in jffs2_scan_xattr_node() argument 338 ofs, je32_to_cpu(rx->node_crc), crc); in jffs2_scan_xattr_node() 351 ofs, je32_to_cpu(rx->totlen), totlen); in jffs2_scan_xattr_node() 363 = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); in jffs2_scan_xattr_node() [all …]
|
D | read.c | 25 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 …]
|
D | readinode.c | 37 uint32_t crc, ofs, len; in check_node_data() local 43 ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode); in check_node_data() 47 int adj = ofs % c->wbuf_pagesize; in check_node_data() 53 ref_offset(ref), tn->csize, ofs); in check_node_data() 57 ofs += adj; in check_node_data() 62 ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); in check_node_data() 67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data() 70 mtd_unpoint(c->mtd, ofs, retlen); in check_node_data() 85 err = jffs2_flash_read(c, ofs, len, &retlen, buffer); in check_node_data() 87 JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ofs, err); in check_node_data() [all …]
|
/Linux-v4.19/drivers/tty/serial/ |
D | stm32-usart.c | 104 struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; in stm32_config_rs485() local 111 stm32_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); in stm32_config_rs485() 118 cr1 = readl_relaxed(port->membase + ofs->cr1); in stm32_config_rs485() 119 cr3 = readl_relaxed(port->membase + ofs->cr3); in stm32_config_rs485() 120 usartdiv = readl_relaxed(port->membase + ofs->brr); in stm32_config_rs485() 141 writel_relaxed(cr3, port->membase + ofs->cr3); in stm32_config_rs485() 142 writel_relaxed(cr1, port->membase + ofs->cr1); in stm32_config_rs485() 144 stm32_clr_bits(port, ofs->cr3, USART_CR3_DEM | USART_CR3_DEP); in stm32_config_rs485() 145 stm32_clr_bits(port, ofs->cr1, in stm32_config_rs485() 149 stm32_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); in stm32_config_rs485() [all …]
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-io.c | 40 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) in iwl_write8() argument 42 trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); in iwl_write8() 43 iwl_trans_write8(trans, ofs, val); in iwl_write8() 47 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) in iwl_write32() argument 49 trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); in iwl_write32() 50 iwl_trans_write32(trans, ofs, val); in iwl_write32() 54 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) in iwl_write64() argument 56 trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); in iwl_write64() 57 iwl_trans_write32(trans, ofs, lower_32_bits(val)); in iwl_write64() 58 iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); in iwl_write64() [all …]
|
D | iwl-io.h | 35 void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); 36 void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); 37 void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); 38 u32 iwl_read32(struct iwl_trans *trans, u32 ofs); 60 u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs); 61 u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs); 62 void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val); 63 void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val); 64 void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val); 67 void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); [all …]
|
/Linux-v4.19/drivers/media/pci/pt3/ |
D | pt3_dma.c | 61 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-v4.19/security/selinux/ss/ |
D | ebitmap.h | 50 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-v4.19/arch/xtensa/variants/test_mmuhifi_c3/include/variant/ |
D | tie-asm.h | 36 .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-v4.19/drivers/staging/erofs/ |
D | dir.c | 27 void *dentry_blk, unsigned *ofs, in erofs_fill_dentries() argument 33 de = dentry_blk + *ofs; in erofs_fill_dentries() 73 *ofs += sizeof(struct erofs_dirent); in erofs_fill_dentries() 75 *ofs = maxsize; in erofs_fill_dentries() 85 unsigned ofs = ctx->pos % EROFS_BLKSIZ; in erofs_readdir() local 112 maxsize = min_t(unsigned, dirsize - ctx->pos + ofs, PAGE_SIZE); in erofs_readdir() 118 ofs = roundup(ofs, sizeof(struct erofs_dirent)); in erofs_readdir() 119 if (unlikely(ofs >= nameoff)) in erofs_readdir() 123 err = erofs_fill_dentries(ctx, de, &ofs, nameoff, maxsize); in erofs_readdir() 130 ctx->pos = blknr_to_addr(i) + ofs; in erofs_readdir() [all …]
|
D | xattr.c | 22 unsigned ofs; member 53 it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); in init_inode_xattrs() 62 ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); in init_inode_xattrs() 70 it.ofs += sizeof(struct erofs_xattr_ibody_header); in init_inode_xattrs() 73 if (unlikely(it.ofs >= EROFS_BLKSIZ)) { in init_inode_xattrs() 75 BUG_ON(it.ofs != EROFS_BLKSIZ); in init_inode_xattrs() 84 it.ofs = 0; in init_inode_xattrs() 87 le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); in init_inode_xattrs() 88 it.ofs += sizeof(__le32); in init_inode_xattrs() 104 if (unlikely(it->ofs >= EROFS_BLKSIZ)) { in xattr_iter_fixup() [all …]
|
/Linux-v4.19/drivers/mtd/maps/ |
D | pci.c | 28 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 36 unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); 40 static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) in mtd_pci_read8() argument 44 val.x[0]= readb(map->base + map->translate(map, ofs)); in mtd_pci_read8() 48 static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) in mtd_pci_read32() argument 52 val.x[0] = readl(map->base + map->translate(map, ofs)); in mtd_pci_read32() 62 static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write8() argument 65 writeb(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write8() 68 static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) in mtd_pci_write32() argument 71 writel(val.x[0], map->base + map->translate(map, ofs)); in mtd_pci_write32() [all …]
|
/Linux-v4.19/drivers/s390/char/ |
D | hmcdrv_cache.c | 40 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()
|
/Linux-v4.19/arch/mips/txx9/generic/ |
D | irq_tx4939.c | 57 int ofs; in tx4939_irq_unmask() local 65 ofs = (irq_nr & 16) + (irq_nr & 1) * 8; in tx4939_irq_unmask() 66 __raw_writel((__raw_readl(lvlp) & ~(0xff << ofs)) in tx4939_irq_unmask() 67 | (tx4939irq[irq_nr].level << ofs), in tx4939_irq_unmask() 75 int ofs; in tx4939_irq_mask() local 83 ofs = (irq_nr & 16) + (irq_nr & 1) * 8; in tx4939_irq_mask() 84 __raw_writel((__raw_readl(lvlp) & ~(0xff << ofs)) in tx4939_irq_mask() 85 | (irc_dlevel << ofs), in tx4939_irq_mask() 109 int ofs; in tx4939_irq_set_type() local 137 ofs = (((irq_nr & 16) >> 1) | (irq_nr & (8 - 1))) * 2; in tx4939_irq_set_type() [all …]
|
/Linux-v4.19/fs/f2fs/ |
D | extent_cache.c | 22 unsigned int ofs) in __lookup_rb_tree_fast() argument 25 if (cached_re->ofs <= ofs && in __lookup_rb_tree_fast() 26 cached_re->ofs + cached_re->len > ofs) { in __lookup_rb_tree_fast() 34 unsigned int ofs) in __lookup_rb_tree_slow() argument 42 if (ofs < re->ofs) in __lookup_rb_tree_slow() 44 else if (ofs >= re->ofs + re->len) in __lookup_rb_tree_slow() 53 struct rb_entry *cached_re, unsigned int ofs) in f2fs_lookup_rb_tree() argument 57 re = __lookup_rb_tree_fast(cached_re, ofs); in f2fs_lookup_rb_tree() 59 return __lookup_rb_tree_slow(root, ofs); in f2fs_lookup_rb_tree() 66 unsigned int ofs) in f2fs_lookup_rb_tree_for_insert() argument [all …]
|
/Linux-v4.19/arch/xtensa/variants/test_kc705_be/include/variant/ |
D | tie-asm.h | 76 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 77 xchal_sa_start \continue, \ofs 142 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 143 xchal_sa_start \continue, \ofs 201 .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 202 xchal_sa_start \continue, \ofs 249 .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 250 xchal_sa_start \continue, \ofs 292 .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm 293 .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm [all …]
|
/Linux-v4.19/drivers/net/arcnet/ |
D | arc-rawmode.c | 45 int ofs; in rx() local 50 ofs = 512 - length; in rx() 52 ofs = 256 - length; in rx() 70 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 118 int ofs; in prepare_tx() local 134 hard->offset[1] = ofs = 512 - length; in prepare_tx() 137 hard->offset[1] = ofs = 512 - length - 3; in prepare_tx() 139 hard->offset[0] = ofs = 256 - length; in prepare_tx() 143 length, ofs); in prepare_tx() 146 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()
|
D | capmode.c | 49 int ofs; in rx() local 55 ofs = 512 - length; in rx() 57 ofs = 256 - length; in rx() 83 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx() 137 int ofs; in prepare_tx() local 158 hard->offset[1] = ofs = 512 - length; in prepare_tx() 161 hard->offset[1] = ofs = 512 - length - 3; in prepare_tx() 163 hard->offset[0] = ofs = 256 - length; in prepare_tx() 167 length, ofs); in prepare_tx() 171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, in prepare_tx() [all …]
|
/Linux-v4.19/arch/xtensa/variants/test_kc705_hifi/include/variant/ |
D | tie-asm.h | 77 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 78 xchal_sa_start \continue, \ofs 143 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 144 xchal_sa_start \continue, \ofs 205 .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 206 xchal_sa_start \continue, \ofs 262 .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 263 xchal_sa_start \continue, \ofs 313 .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm 314 .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm [all …]
|
/Linux-v4.19/include/linux/mtd/ |
D | map.h | 403 static inline map_word inline_map_read(struct map_info *map, unsigned long ofs) in inline_map_read() argument 408 r.x[0] = __raw_readb(map->virt + ofs); in inline_map_read() 410 r.x[0] = __raw_readw(map->virt + ofs); in inline_map_read() 412 r.x[0] = __raw_readl(map->virt + ofs); in inline_map_read() 415 r.x[0] = __raw_readq(map->virt + ofs); in inline_map_read() 418 memcpy_fromio(r.x, map->virt + ofs, map->bankwidth); in inline_map_read() 425 static inline void inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs) in inline_map_write() argument 428 __raw_writeb(datum.x[0], map->virt + ofs); in inline_map_write() 430 __raw_writew(datum.x[0], map->virt + ofs); in inline_map_write() 432 __raw_writel(datum.x[0], map->virt + ofs); in inline_map_write() [all …]
|
/Linux-v4.19/arch/mips/kernel/ |
D | irq_txx9.c | 70 int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; in txx9_irq_unmask() local 72 __raw_writel((__raw_readl(ilrp) & ~(0xff << ofs)) in txx9_irq_unmask() 73 | (txx9irq[irq_nr].level << ofs), in txx9_irq_unmask() 86 int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; in txx9_irq_mask() local 88 __raw_writel((__raw_readl(ilrp) & ~(0xff << ofs)) in txx9_irq_mask() 89 | (irc_dlevel << ofs), in txx9_irq_mask() 117 int ofs; in txx9_irq_set_type() local 132 ofs = (irq_nr & (8 - 1)) * 2; in txx9_irq_set_type() 133 cr &= ~(0x3 << ofs); in txx9_irq_set_type() 134 cr |= (mode & 0x3) << ofs; in txx9_irq_set_type()
|
/Linux-v4.19/arch/arm/mach-netx/include/mach/ |
D | netx-regs.h | 118 #define NETX_SYSTEM_REG(ofs) IOMEM(NETX_VA_SYSTEM + (ofs)) argument 188 #define NETX_GPIO_REG(ofs) IOMEM(NETX_VA_GPIO + (ofs)) argument 233 #define NETX_PIO_REG(ofs) IOMEM(NETX_VA_PIO + (ofs)) argument 320 #define NETX_PFIFO_REG(ofs) IOMEM(NETX_VA_PFIFO + (ofs)) argument 337 #define NETX_MEMCR_REG(ofs) IOMEM(NETX_VA_MEMCR + (ofs)) argument 358 #define NETX_DPMAS_REG(ofs) IOMEM(NETX_VA_DPMAS + (ofs)) argument 428 #define NETX_I2C_REG(ofs) IOMEM(NETX_VA_I2C, (ofs)) argument
|