ofs 445 arch/alpha/include/asm/bitops.h unsigned long b0, b1, ofs, tmp; ofs 449 arch/alpha/include/asm/bitops.h ofs = (b0 ? 0 : 64); ofs 452 arch/alpha/include/asm/bitops.h return __ffs(tmp) + ofs; ofs 224 arch/alpha/kernel/pci_iommu.c iommu_arena_free(struct pci_iommu_arena *arena, long ofs, long n) ofs 229 arch/alpha/kernel/pci_iommu.c p = arena->ptes + ofs; ofs 773 arch/alpha/kernel/pci_iommu.c long npages, ofs; ofs 800 arch/alpha/kernel/pci_iommu.c ofs = (addr - arena->dma_base) >> PAGE_SHIFT; ofs 801 arch/alpha/kernel/pci_iommu.c iommu_arena_free(arena, ofs, npages); ofs 44 arch/alpha/kernel/sys_cabriolet.c int ofs = (irq - 16) / 8; ofs 45 arch/alpha/kernel/sys_cabriolet.c outb(mask >> (16 + ofs * 8), 0x804 + ofs); ofs 20 arch/ia64/kernel/elfcore.c Elf64_Off ofs = 0; ofs 28 arch/ia64/kernel/elfcore.c if (ofs == 0) { ofs 29 arch/ia64/kernel/elfcore.c ofs = phdr.p_offset = offset; ofs 32 arch/ia64/kernel/elfcore.c phdr.p_offset = ofs; ofs 35 arch/ia64/kernel/elfcore.c phdr.p_offset += ofs; ofs 193 arch/microblaze/kernel/unwind.c int ofs = 0; ofs 236 arch/microblaze/kernel/unwind.c pc -= ofs; ofs 266 arch/microblaze/kernel/unwind.c ofs = sizeof(unsigned long); ofs 30 arch/mips/cavium-octeon/flash_setup.c static map_word octeon_flash_map_read(struct map_info *map, unsigned long ofs) ofs 35 arch/mips/cavium-octeon/flash_setup.c r = inline_map_read(map, ofs); ofs 42 arch/mips/cavium-octeon/flash_setup.c unsigned long ofs) ofs 45 arch/mips/cavium-octeon/flash_setup.c inline_map_write(map, datum, ofs); ofs 556 arch/mips/include/asm/gt64120.h #define __GT_READ(ofs) \ ofs 557 arch/mips/include/asm/gt64120.h (*(volatile u32 *)(GT64120_BASE+(ofs))) ofs 558 arch/mips/include/asm/gt64120.h #define __GT_WRITE(ofs, data) \ ofs 559 arch/mips/include/asm/gt64120.h do { *(volatile u32 *)(GT64120_BASE+(ofs)) = (data); } while (0) ofs 560 arch/mips/include/asm/gt64120.h #define GT_READ(ofs) le32_to_cpu(__GT_READ(ofs)) ofs 561 arch/mips/include/asm/gt64120.h #define GT_WRITE(ofs, data) __GT_WRITE(ofs, cpu_to_le32(data)) ofs 70 arch/mips/kernel/irq_txx9.c int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; ofs 72 arch/mips/kernel/irq_txx9.c __raw_writel((__raw_readl(ilrp) & ~(0xff << ofs)) ofs 73 arch/mips/kernel/irq_txx9.c | (txx9irq[irq_nr].level << ofs), ofs 86 arch/mips/kernel/irq_txx9.c int ofs = irq_nr / 16 * 16 + (irq_nr & 1) * 8; ofs 88 arch/mips/kernel/irq_txx9.c __raw_writel((__raw_readl(ilrp) & ~(0xff << ofs)) ofs 89 arch/mips/kernel/irq_txx9.c | (irc_dlevel << ofs), ofs 117 arch/mips/kernel/irq_txx9.c int ofs; ofs 132 arch/mips/kernel/irq_txx9.c ofs = (irq_nr & (8 - 1)) * 2; ofs 133 arch/mips/kernel/irq_txx9.c cr &= ~(0x3 << ofs); ofs 134 arch/mips/kernel/irq_txx9.c cr |= (mode & 0x3) << ofs; ofs 462 arch/mips/kernel/process.c unsigned long ofs; ofs 471 arch/mips/kernel/process.c kallsyms_lookup_size_offset(addr, &size, &ofs); ofs 515 arch/mips/kernel/process.c unsigned long size, ofs; ofs 562 arch/mips/kernel/process.c if (!kallsyms_lookup_size_offset(pc, &size, &ofs)) ofs 567 arch/mips/kernel/process.c if (unlikely(ofs == 0)) { ofs 573 arch/mips/kernel/process.c info.func = (void *)(pc - ofs); ofs 574 arch/mips/kernel/process.c info.func_size = ofs; /* analyze from start to ofs */ ofs 57 arch/mips/txx9/generic/irq_tx4939.c int ofs; ofs 65 arch/mips/txx9/generic/irq_tx4939.c ofs = (irq_nr & 16) + (irq_nr & 1) * 8; ofs 66 arch/mips/txx9/generic/irq_tx4939.c __raw_writel((__raw_readl(lvlp) & ~(0xff << ofs)) ofs 67 arch/mips/txx9/generic/irq_tx4939.c | (tx4939irq[irq_nr].level << ofs), ofs 75 arch/mips/txx9/generic/irq_tx4939.c int ofs; ofs 83 arch/mips/txx9/generic/irq_tx4939.c ofs = (irq_nr & 16) + (irq_nr & 1) * 8; ofs 84 arch/mips/txx9/generic/irq_tx4939.c __raw_writel((__raw_readl(lvlp) & ~(0xff << ofs)) ofs 85 arch/mips/txx9/generic/irq_tx4939.c | (irc_dlevel << ofs), ofs 109 arch/mips/txx9/generic/irq_tx4939.c int ofs; ofs 137 arch/mips/txx9/generic/irq_tx4939.c ofs = (((irq_nr & 16) >> 1) | (irq_nr & (8 - 1))) * 2; ofs 139 arch/mips/txx9/generic/irq_tx4939.c cr &= ~(0x3 << ofs); ofs 140 arch/mips/txx9/generic/irq_tx4939.c cr |= (mode & 0x3) << ofs; ofs 290 arch/mips/txx9/rbtx4939/setup.c static unsigned long rbtx4939_flash_fixup_ofs(unsigned long ofs) ofs 299 arch/mips/txx9/rbtx4939/setup.c return (ofs & ~0xc00000) | ((((ofs >> 22) + shift) & 3) << 22); ofs 304 arch/mips/txx9/rbtx4939/setup.c ofs ^= 0x400000; /* swap A[22] */ ofs 306 arch/mips/txx9/rbtx4939/setup.c return ofs; ofs 309 arch/mips/txx9/rbtx4939/setup.c static map_word rbtx4939_flash_read16(struct map_info *map, unsigned long ofs) ofs 313 arch/mips/txx9/rbtx4939/setup.c ofs = rbtx4939_flash_fixup_ofs(ofs); ofs 314 arch/mips/txx9/rbtx4939/setup.c r.x[0] = __raw_readw(map->virt + ofs); ofs 319 arch/mips/txx9/rbtx4939/setup.c unsigned long ofs) ofs 321 arch/mips/txx9/rbtx4939/setup.c ofs = rbtx4939_flash_fixup_ofs(ofs); ofs 322 arch/mips/txx9/rbtx4939/setup.c __raw_writew(datum.x[0], map->virt + ofs); ofs 1974 arch/s390/kvm/kvm-s390.c unsigned long ofs = cur_gfn - ms->base_gfn; ofs 1983 arch/s390/kvm/kvm-s390.c ofs = 0; ofs 1985 arch/s390/kvm/kvm-s390.c ofs = find_next_bit(kvm_second_dirty_bitmap(ms), ms->npages, ofs); ofs 1986 arch/s390/kvm/kvm-s390.c while ((slotidx > 0) && (ofs >= ms->npages)) { ofs 1989 arch/s390/kvm/kvm-s390.c ofs = find_next_bit(kvm_second_dirty_bitmap(ms), ms->npages, 0); ofs 1991 arch/s390/kvm/kvm-s390.c return ms->base_gfn + ofs; ofs 31 arch/sh/include/mach-common/mach/urquell.h #define BOARDREG(ofs) (FPGA_BASE + ofs##_OFS) ofs 32 arch/sh/include/mach-common/mach/urquell.h #define UBOARDREG(ofs) (0xa0000000 + FPGA_BASE + ofs##_OFS) ofs 228 arch/sh/kernel/cpu/sh5/unwind.c int ofs = 0; ofs 268 arch/sh/kernel/cpu/sh5/unwind.c pc -= ofs; ofs 282 arch/sh/kernel/cpu/sh5/unwind.c ofs = sizeof(unsigned long); ofs 240 arch/sparc/kernel/time_32.c static unsigned char mostek_read_byte(struct device *dev, u32 ofs) ofs 245 arch/sparc/kernel/time_32.c return readb(pdata->ioaddr + ofs); ofs 248 arch/sparc/kernel/time_32.c static void mostek_write_byte(struct device *dev, u32 ofs, u8 val) ofs 253 arch/sparc/kernel/time_32.c writeb(val, pdata->ioaddr + ofs); ofs 527 arch/sparc/kernel/time_64.c static unsigned char mostek_read_byte(struct device *dev, u32 ofs) ofs 532 arch/sparc/kernel/time_64.c return readb(regs + ofs); ofs 535 arch/sparc/kernel/time_64.c static void mostek_write_byte(struct device *dev, u32 ofs, u8 val) ofs 540 arch/sparc/kernel/time_64.c writeb(val, regs + ofs); ofs 23 arch/x86/um/elfcore.c Elf32_Off ofs = 0; ofs 29 arch/x86/um/elfcore.c ofs = phdr.p_offset = offset; ofs 32 arch/x86/um/elfcore.c phdr.p_offset += ofs; ofs 76 arch/xtensa/variants/csp/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 142 arch/xtensa/variants/csp/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 37 arch/xtensa/variants/dc232b/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 78 arch/xtensa/variants/dc232b/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 77 arch/xtensa/variants/dc233c/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 141 arch/xtensa/variants/dc233c/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 76 arch/xtensa/variants/de212/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 130 arch/xtensa/variants/de212/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 37 arch/xtensa/variants/fsf/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 52 arch/xtensa/variants/fsf/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 76 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 142 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 201 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 249 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 292 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 293 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 294 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp2_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 295 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp2_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 296 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp3_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 297 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp3_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 298 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp4_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 299 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp4_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 300 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp5_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 301 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp5_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 302 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp6_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 303 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp6_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 304 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp7_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 305 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h .macro xchal_cp7_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 77 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 143 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 205 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 262 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 ofs 313 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 314 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 315 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp2_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 316 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp2_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 317 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp3_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 318 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp3_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 319 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp4_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 320 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp4_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 321 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp5_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 322 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp5_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 323 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp6_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 324 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp6_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 325 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp7_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 326 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h .macro xchal_cp7_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 36 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 63 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 97 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp1_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 133 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp1_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL ofs 167 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp0_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 168 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp0_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 169 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp2_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 170 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp2_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 171 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp3_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 172 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp3_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 173 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp4_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 174 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp4_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 175 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp5_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 176 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp5_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 177 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp6_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 178 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp6_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 179 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp7_store p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 180 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h .macro xchal_cp7_load p a b c d continue=0 ofs=-1 select=-1 ; .endm ofs 1114 drivers/ata/libata-core.c unsigned int ofs, unsigned int len) ofs 1121 drivers/ata/libata-core.c c = id[ofs] >> 8; ofs 1125 drivers/ata/libata-core.c c = id[ofs] & 0xff; ofs 1129 drivers/ata/libata-core.c ofs++; ofs 1149 drivers/ata/libata-core.c unsigned int ofs, unsigned int len) ofs 1153 drivers/ata/libata-core.c ata_id_string(id, s, ofs, len - 1); ofs 911 drivers/ata/sata_mv.c unsigned long ofs = (mv_hardport_from_port(port) + 1) * 0x100UL; ofs 913 drivers/ata/sata_mv.c return hc_mmio + ofs; ofs 1327 drivers/ata/sata_mv.c unsigned int ofs; ofs 1333 drivers/ata/sata_mv.c ofs = SATA_STATUS + (sc_reg_in * sizeof(u32)); ofs 1336 drivers/ata/sata_mv.c ofs = SATA_ACTIVE; /* active is not with the others */ ofs 1339 drivers/ata/sata_mv.c ofs = 0xffffffffU; ofs 1342 drivers/ata/sata_mv.c return ofs; ofs 1347 drivers/ata/sata_mv.c unsigned int ofs = mv_scr_offset(sc_reg_in); ofs 1349 drivers/ata/sata_mv.c if (ofs != 0xffffffffU) { ofs 1350 drivers/ata/sata_mv.c *val = readl(mv_ap_base(link->ap) + ofs); ofs 1358 drivers/ata/sata_mv.c unsigned int ofs = mv_scr_offset(sc_reg_in); ofs 1360 drivers/ata/sata_mv.c if (ofs != 0xffffffffU) { ofs 1361 drivers/ata/sata_mv.c void __iomem *addr = mv_ap_base(link->ap) + ofs; ofs 3038 drivers/ata/sata_mv.c unsigned int ofs; ofs 3044 drivers/ata/sata_mv.c ofs = sc_reg_in * sizeof(u32); ofs 3047 drivers/ata/sata_mv.c ofs = 0xffffffffU; ofs 3050 drivers/ata/sata_mv.c return ofs; ofs 3058 drivers/ata/sata_mv.c unsigned int ofs = mv5_scr_offset(sc_reg_in); ofs 3060 drivers/ata/sata_mv.c if (ofs != 0xffffffffU) { ofs 3061 drivers/ata/sata_mv.c *val = readl(addr + ofs); ofs 3072 drivers/ata/sata_mv.c unsigned int ofs = mv5_scr_offset(sc_reg_in); ofs 3074 drivers/ata/sata_mv.c if (ofs != 0xffffffffU) { ofs 3075 drivers/ata/sata_mv.c writelfl(val, addr + ofs); ofs 1148 drivers/ata/sata_sx4.c unsigned int ofs; ofs 1170 drivers/ata/sata_sx4.c &spd0[pdc_i2c_read_data[i].ofs]); ofs 317 drivers/block/ps3disk.c static void ata_id_string(const u16 *id, unsigned char *s, unsigned int ofs, ofs 323 drivers/block/ps3disk.c c = id[ofs] >> 8; ofs 327 drivers/block/ps3disk.c c = id[ofs] & 0xff; ofs 331 drivers/block/ps3disk.c ofs++; ofs 336 drivers/block/ps3disk.c static void ata_id_c_string(const u16 *id, unsigned char *s, unsigned int ofs, ofs 343 drivers/block/ps3disk.c ata_id_string(id, s, ofs, len - 1); ofs 109 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c void get_ofs_set(qp_set ofs, enum colour_mode mode, float bpp) ofs 111 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c int *p = ofs; ofs 234 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c get_ofs_set(rc->ofs, cm, bpp); ofs 48 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.h qp_set ofs; ofs 91 drivers/gpu/drm/amd/display/dc/dsc/rc_calc_dpi.c dsc_cfg->rc_range_params[i].range_bpg_offset = 0x3f & rc->ofs[i]; ofs 194 drivers/gpu/drm/i915/display/intel_bios.c size_t ofs; ofs 198 drivers/gpu/drm/i915/display/intel_bios.c ofs = ptrs->ptr[index].fp_timing_offset; ofs 199 drivers/gpu/drm/i915/display/intel_bios.c if (ofs < data_ofs || ofs 200 drivers/gpu/drm/i915/display/intel_bios.c ofs + sizeof(struct lvds_fp_timing) > data_ofs + data_size) ofs 202 drivers/gpu/drm/i915/display/intel_bios.c return (const struct lvds_fp_timing *)((const u8 *)bdb + ofs); ofs 348 drivers/gpu/drm/nouveau/nouveau_bios.c int ret, ofs, fpstrapping; ofs 373 drivers/gpu/drm/nouveau/nouveau_bios.c ofs = -1; ofs 377 drivers/gpu/drm/nouveau/nouveau_bios.c ofs = 0; ofs 388 drivers/gpu/drm/nouveau/nouveau_bios.c ofs = -7; ofs 437 drivers/gpu/drm/nouveau/nouveau_bios.c recordlen * fpindex + ofs; ofs 30 drivers/gpu/ipu-v3/ipu-cpmem.c #define IPU_CPMEM_WORD(word, ofs, size) ((((word) * 160 + (ofs)) << 8) | (size)) ofs 107 drivers/gpu/ipu-v3/ipu-cpmem.c u32 ofs = bit % 32; ofs 114 drivers/gpu/ipu-v3/ipu-cpmem.c val &= ~(mask << ofs); ofs 115 drivers/gpu/ipu-v3/ipu-cpmem.c val |= v << ofs; ofs 120 drivers/gpu/ipu-v3/ipu-cpmem.c val &= ~(mask >> (ofs ? (32 - ofs) : 0)); ofs 121 drivers/gpu/ipu-v3/ipu-cpmem.c val |= v >> (ofs ? (32 - ofs) : 0); ofs 133 drivers/gpu/ipu-v3/ipu-cpmem.c u32 ofs = bit % 32; ofs 139 drivers/gpu/ipu-v3/ipu-cpmem.c val = (readl(&base->word[word].data[i]) >> ofs) & mask; ofs 145 drivers/gpu/ipu-v3/ipu-cpmem.c tmp &= mask >> (ofs ? (32 - ofs) : 0); ofs 146 drivers/gpu/ipu-v3/ipu-cpmem.c val |= tmp << (ofs ? (32 - ofs) : 0); ofs 1447 drivers/hwmon/lm93.c int ofs = s_attr->nr; ofs 1451 drivers/hwmon/lm93.c LM93_TEMP_AUTO_OFFSET_FROM_REG(data->block10.offset[ofs], ofs 1461 drivers/hwmon/lm93.c int ofs = s_attr->nr; ofs 1476 drivers/hwmon/lm93.c data->block10.offset[ofs] = LM93_TEMP_AUTO_OFFSET_TO_REG( ofs 1477 drivers/hwmon/lm93.c data->block10.offset[ofs], val, nr, 1); ofs 1478 drivers/hwmon/lm93.c lm93_write_byte(client, LM93_REG_TEMP_OFFSET(ofs), ofs 1479 drivers/hwmon/lm93.c data->block10.offset[ofs]); ofs 486 drivers/iio/adc/mxs-lradc-adc.c int chan, ofs = 0; ofs 501 drivers/iio/adc/mxs-lradc-adc.c ctrl4_set |= chan << LRADC_CTRL4_LRADCSELECT_OFFSET(ofs); ofs 502 drivers/iio/adc/mxs-lradc-adc.c ctrl4_clr |= LRADC_CTRL4_LRADCSELECT_MASK(ofs); ofs 503 drivers/iio/adc/mxs-lradc-adc.c ctrl1_irq |= LRADC_CTRL1_LRADC_IRQ_EN(ofs); ofs 504 drivers/iio/adc/mxs-lradc-adc.c writel(chan_value, adc->base + LRADC_CH(ofs)); ofs 505 drivers/iio/adc/mxs-lradc-adc.c bitmap_set(&enable, ofs, 1); ofs 506 drivers/iio/adc/mxs-lradc-adc.c ofs++; ofs 1477 drivers/infiniband/hw/hns/hns_roce_hem.c int ofs, end; ofs 1495 drivers/infiniband/hw/hns/hns_roce_hem.c for (ofs = r->offset; ofs < end; ofs += unit) { ofs 1496 drivers/infiniband/hw/hns/hns_roce_hem.c ret = hem_list_alloc_mid_bt(hr_dev, r, unit, ofs, ofs 1210 drivers/infiniband/hw/qib/qib_user_sdma.c unsigned ofs, u16 tail, u8 gen) ofs 1220 drivers/infiniband/hw/qib/qib_user_sdma.c descq0 = qib_sdma_make_desc0(gen, addr, dwlen, ofs); ofs 1256 drivers/infiniband/hw/qib/qib_user_sdma.c unsigned ofs = 0; ofs 1260 drivers/infiniband/hw/qib/qib_user_sdma.c qib_user_sdma_send_frag(ppd, pkt, i, ofs, tail, gen); ofs 1261 drivers/infiniband/hw/qib/qib_user_sdma.c ofs += pkt->addr[i].length >> 2; ofs 1280 drivers/infiniband/hw/qib/qib_user_sdma.c if (ofs > dd->piosize2kmax_dwords) { ofs 1292 drivers/infiniband/hw/qib/qib_user_sdma.c ofs = 0; /* reset for next packet */ ofs 2227 drivers/input/touchscreen/atmel_mxt_ts.c unsigned int ofs, page; ofs 2239 drivers/input/touchscreen/atmel_mxt_ts.c ofs = (y + (x * col_width)) * sizeof(u16); ofs 2240 drivers/input/touchscreen/atmel_mxt_ts.c page = ofs / MXT_DIAGNOSTIC_SIZE; ofs 2241 drivers/input/touchscreen/atmel_mxt_ts.c ofs %= MXT_DIAGNOSTIC_SIZE; ofs 2246 drivers/input/touchscreen/atmel_mxt_ts.c return get_unaligned_le16(&dbg->t37_buf[page].data[ofs]); ofs 425 drivers/input/touchscreen/cyttsp4_core.c tch->ofs = tch_old->loc & CY_BYTE_OFS_MASK; ofs 442 drivers/input/touchscreen/cyttsp4_core.c tch->ofs = tch_new->loc & CY_BYTE_OFS_MASK; ofs 453 drivers/input/touchscreen/cyttsp4_core.c si->si_ofs.tch_abs[abs].ofs); ofs 802 drivers/input/touchscreen/cyttsp4_core.c xy_data + si->si_ofs.tch_abs[abs].ofs, ofs 255 drivers/input/touchscreen/cyttsp4_core.h size_t ofs; /* abs byte offset */ ofs 132 drivers/mailbox/omap-mailbox.c unsigned int mbox_read_reg(struct omap_mbox_device *mdev, size_t ofs) ofs 134 drivers/mailbox/omap-mailbox.c return __raw_readl(mdev->mbox_base + ofs); ofs 138 drivers/mailbox/omap-mailbox.c void mbox_write_reg(struct omap_mbox_device *mdev, u32 val, size_t ofs) ofs 140 drivers/mailbox/omap-mailbox.c __raw_writel(val, mdev->mbox_base + ofs); ofs 68 drivers/media/dvb-frontends/ascot2e.c #define ASCOT2E_OFFSET(ofs) ((u8)(ofs) & 0x1F) ofs 44 drivers/media/dvb-frontends/helene.c #define HELENE_OFFSET(ofs) ((u8)(ofs) & 0x1F) ofs 1093 drivers/media/i2c/et8ek8/et8ek8_driver.c int ofs; ofs 1118 drivers/media/i2c/et8ek8/et8ek8_driver.c ofs = offset & 0x07; /* Offset within this window */ ofs 1119 drivers/media/i2c/et8ek8/et8ek8_driver.c bytes = length + ofs > 8 ? 8-ofs : length; ofs 1124 drivers/media/i2c/et8ek8/et8ek8_driver.c ofs += PRIV_MEM_START_REG; ofs 1125 drivers/media/i2c/et8ek8/et8ek8_driver.c buffer[0] = (u8)(ofs >> 8); ofs 1126 drivers/media/i2c/et8ek8/et8ek8_driver.c buffer[1] = (u8)(ofs & 0xFF); ofs 61 drivers/media/pci/pt3/pt3_dma.c static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) ofs 63 drivers/media/pci/pt3/pt3_dma.c *ofs += PT3_ACCESS_UNIT; ofs 64 drivers/media/pci/pt3/pt3_dma.c if (*ofs >= DATA_BUF_SZ) { ofs 65 drivers/media/pci/pt3/pt3_dma.c *ofs -= DATA_BUF_SZ; ofs 70 drivers/media/pci/pt3/pt3_dma.c return &adap->buffer[*idx].data[*ofs]; ofs 75 drivers/media/pci/pt3/pt3_dma.c int idx, ofs; ofs 78 drivers/media/pci/pt3/pt3_dma.c ofs = adap->buf_ofs; ofs 80 drivers/media/pci/pt3/pt3_dma.c if (adap->buffer[idx].data[ofs] == PT3_BUF_CANARY) ofs 83 drivers/media/pci/pt3/pt3_dma.c while (*next_unit(adap, &idx, &ofs) != PT3_BUF_CANARY) { ofs 93 drivers/media/pci/pt3/pt3_dma.c adap->buffer[idx].data, ofs / TS_PACKET_SZ); ofs 100 drivers/media/pci/pt3/pt3_dma.c adap->buf_ofs = ofs; ofs 107 drivers/media/pci/pt3/pt3_dma.c int idx, ofs; ofs 111 drivers/media/pci/pt3/pt3_dma.c ofs = 0; ofs 115 drivers/media/pci/pt3/pt3_dma.c p[ofs] = PT3_BUF_CANARY; ofs 116 drivers/media/pci/pt3/pt3_dma.c ofs += PT3_ACCESS_UNIT; ofs 117 drivers/media/pci/pt3/pt3_dma.c if (ofs >= DATA_BUF_SZ) { ofs 118 drivers/media/pci/pt3/pt3_dma.c ofs -= DATA_BUF_SZ; ofs 150 drivers/media/pci/pt3/pt3_dma.c int idx, ofs; ofs 170 drivers/media/pci/pt3/pt3_dma.c ofs = 0; ofs 188 drivers/media/pci/pt3/pt3_dma.c data_addr = adap->buffer[idx].b_addr + ofs; ofs 198 drivers/media/pci/pt3/pt3_dma.c ofs += DATA_XFER_SZ; ofs 199 drivers/media/pci/pt3/pt3_dma.c if (ofs >= DATA_BUF_SZ) { ofs 200 drivers/media/pci/pt3/pt3_dma.c ofs -= DATA_BUF_SZ; ofs 124 drivers/media/platform/coda/coda-h264.c int ofs = rbsp->pos++ / 8; ofs 126 drivers/media/platform/coda/coda-h264.c if (ofs >= rbsp->size) ofs 129 drivers/media/platform/coda/coda-h264.c return (rbsp->buf[ofs] >> shift) & 1; ofs 135 drivers/media/platform/coda/coda-h264.c int ofs = rbsp->pos++ / 8; ofs 137 drivers/media/platform/coda/coda-h264.c if (ofs >= rbsp->size) ofs 140 drivers/media/platform/coda/coda-h264.c rbsp->buf[ofs] &= ~(1 << shift); ofs 141 drivers/media/platform/coda/coda-h264.c rbsp->buf[ofs] |= bit << shift; ofs 113 drivers/media/platform/s5p-mfc/s5p_mfc_cmd_v5.c h2r_args.arg[2] = ctx->ctx.ofs; ofs 246 drivers/media/platform/s5p-mfc/s5p_mfc_common.h unsigned long ofs; ofs 217 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c ctx->ctx.ofs = OFFSETA(ctx->ctx.dma); ofs 233 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c ctx->shm.ofs = ctx->shm.dma - dev->dma_base[BANK_L_CTX]; ofs 234 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c BUG_ON(ctx->shm.ofs & ((1 << MFC_BANK1_ALIGN_ORDER) - 1)); ofs 261 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c unsigned int ofs) ofs 263 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c *(u32 *)(ctx->shm.virt + ofs) = data; ofs 268 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c unsigned long ofs) ofs 271 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c return *(u32 *)(ctx->shm.virt + ofs); ofs 358 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v5.c mfc_write(dev, ctx->shm.ofs, S5P_FIMV_SI_CH0_HOST_WR_ADR); ofs 2087 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned long ofs) ofs 2092 drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c ret = readl((void __iomem *)ofs); ofs 68 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 69 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 70 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, ofs 1384 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long ofs, last_end = 0; ofs 1395 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); ofs 1397 drivers/mtd/chips/cfi_cmdset_0001.c *virt = map->virt + cfi->chips[chipnum].start + ofs; ofs 1399 drivers/mtd/chips/cfi_cmdset_0001.c *phys = map->phys + cfi->chips[chipnum].start + ofs; ofs 1413 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) ofs 1414 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; ofs 1418 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); ofs 1425 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 1436 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long ofs; ofs 1443 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); ofs 1453 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) ofs 1454 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; ofs 1472 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 1515 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long ofs; ofs 1521 drivers/mtd/chips/cfi_cmdset_0001.c ofs = from - (chipnum << cfi->chipshift); ofs 1529 drivers/mtd/chips/cfi_cmdset_0001.c if ((len + ofs -1) >> cfi->chipshift) ofs 1530 drivers/mtd/chips/cfi_cmdset_0001.c thislen = (1<<cfi->chipshift) - ofs; ofs 1534 drivers/mtd/chips/cfi_cmdset_0001.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); ofs 1542 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 1629 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long ofs; ofs 1632 drivers/mtd/chips/cfi_cmdset_0001.c ofs = to - (chipnum << cfi->chipshift); ofs 1635 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs & (map_bankwidth(map)-1)) { ofs 1636 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); ofs 1637 drivers/mtd/chips/cfi_cmdset_0001.c int gap = ofs - bus_ofs; ofs 1651 drivers/mtd/chips/cfi_cmdset_0001.c ofs += n; ofs 1655 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { ofs 1657 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 1667 drivers/mtd/chips/cfi_cmdset_0001.c ofs, datum, FL_WRITING); ofs 1671 drivers/mtd/chips/cfi_cmdset_0001.c ofs += map_bankwidth(map); ofs 1676 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { ofs 1678 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 1691 drivers/mtd/chips/cfi_cmdset_0001.c ofs, datum, FL_WRITING); ofs 1876 drivers/mtd/chips/cfi_cmdset_0001.c unsigned long ofs, vec_seek, i; ofs 1886 drivers/mtd/chips/cfi_cmdset_0001.c ofs = to - (chipnum << cfi->chipshift); ofs 1891 drivers/mtd/chips/cfi_cmdset_0001.c int size = wbufsize - (ofs & (wbufsize-1)); ofs 1896 drivers/mtd/chips/cfi_cmdset_0001.c ofs, &vecs, &vec_seek, size); ofs 1900 drivers/mtd/chips/cfi_cmdset_0001.c ofs += size; ofs 1904 drivers/mtd/chips/cfi_cmdset_0001.c if (ofs >> cfi->chipshift) { ofs 1906 drivers/mtd/chips/cfi_cmdset_0001.c ofs = 0; ofs 2160 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2166 drivers/mtd/chips/cfi_cmdset_0001.c __func__, ofs, len); ofs 2168 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, NULL); ofs 2172 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, DO_XXLOCK_ONEBLOCK_LOCK); ofs 2178 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, NULL); ofs 2184 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2190 drivers/mtd/chips/cfi_cmdset_0001.c __func__, ofs, len); ofs 2192 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, NULL); ofs 2196 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, DO_XXLOCK_ONEBLOCK_UNLOCK); ofs 2202 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, NULL); ofs 2208 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_is_locked(struct mtd_info *mtd, loff_t ofs, ofs 2212 drivers/mtd/chips/cfi_cmdset_0001.c ofs, len, NULL) ? 1 : 0; ofs 98 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 99 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 101 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 102 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 103 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 1244 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long ofs; ofs 1250 drivers/mtd/chips/cfi_cmdset_0002.c ofs = from - (chipnum << cfi->chipshift); ofs 1258 drivers/mtd/chips/cfi_cmdset_0002.c if ((len + ofs -1) >> cfi->chipshift) ofs 1259 drivers/mtd/chips/cfi_cmdset_0002.c thislen = (1<<cfi->chipshift) - ofs; ofs 1263 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); ofs 1271 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 1352 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long ofs; ofs 1359 drivers/mtd/chips/cfi_cmdset_0002.c ofs=from & 7; ofs 1367 drivers/mtd/chips/cfi_cmdset_0002.c if ((len + ofs -1) >> 3) ofs 1368 drivers/mtd/chips/cfi_cmdset_0002.c thislen = (1<<3) - ofs; ofs 1372 drivers/mtd/chips/cfi_cmdset_0002.c ret = do_read_secsi_onechip(map, &cfi->chips[chipnum], ofs, ofs 1381 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 1827 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long ofs, chipstart; ofs 1831 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); ofs 1835 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map)-1)) { ofs 1836 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map)-1); ofs 1837 drivers/mtd/chips/cfi_cmdset_0002.c int i = ofs - bus_ofs; ofs 1870 drivers/mtd/chips/cfi_cmdset_0002.c ofs += n; ofs 1875 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 1877 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 1890 drivers/mtd/chips/cfi_cmdset_0002.c ofs, datum, FL_WRITING); ofs 1894 drivers/mtd/chips/cfi_cmdset_0002.c ofs += map_bankwidth(map); ofs 1899 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 1901 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 1926 drivers/mtd/chips/cfi_cmdset_0002.c tmp_buf = map_read(map, ofs + chipstart); ofs 1933 drivers/mtd/chips/cfi_cmdset_0002.c ofs, tmp_buf, FL_WRITING); ofs 2108 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long ofs; ofs 2111 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); ofs 2114 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map)-1)) { ofs 2115 drivers/mtd/chips/cfi_cmdset_0002.c size_t local_len = (-ofs)&(map_bankwidth(map)-1); ofs 2118 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), ofs 2122 drivers/mtd/chips/cfi_cmdset_0002.c ofs += local_len; ofs 2126 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 2128 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 2137 drivers/mtd/chips/cfi_cmdset_0002.c int size = wbufsize - (ofs & (wbufsize-1)); ofs 2145 drivers/mtd/chips/cfi_cmdset_0002.c ofs, buf, size); ofs 2149 drivers/mtd/chips/cfi_cmdset_0002.c ofs += size; ofs 2154 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 2156 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 2165 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_write_words(mtd, ofs + (chipnum<<cfi->chipshift), ofs 2317 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long ofs, chipstart; ofs 2322 drivers/mtd/chips/cfi_cmdset_0002.c ofs = to - (chipnum << cfi->chipshift); ofs 2326 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs & (map_bankwidth(map) - 1)) { ofs 2327 drivers/mtd/chips/cfi_cmdset_0002.c unsigned long bus_ofs = ofs & ~(map_bankwidth(map) - 1); ofs 2328 drivers/mtd/chips/cfi_cmdset_0002.c int i = ofs - bus_ofs; ofs 2349 drivers/mtd/chips/cfi_cmdset_0002.c ofs += n; ofs 2354 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 2356 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 2369 drivers/mtd/chips/cfi_cmdset_0002.c ofs, datum); ofs 2373 drivers/mtd/chips/cfi_cmdset_0002.c ofs += map_bankwidth(map); ofs 2378 drivers/mtd/chips/cfi_cmdset_0002.c if (ofs >> cfi->chipshift) { ofs 2380 drivers/mtd/chips/cfi_cmdset_0002.c ofs = 0; ofs 2392 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_amdstd_panic_wait(map, &cfi->chips[chipnum], ofs); ofs 2396 drivers/mtd/chips/cfi_cmdset_0002.c tmp_buf = map_read(map, ofs + chipstart); ofs 2401 drivers/mtd/chips/cfi_cmdset_0002.c ofs, tmp_buf); ofs 2697 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_atmel_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2699 drivers/mtd/chips/cfi_cmdset_0002.c return cfi_varsize_frob(mtd, do_atmel_lock, ofs, len, NULL); ofs 2702 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_atmel_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2704 drivers/mtd/chips/cfi_cmdset_0002.c return cfi_varsize_frob(mtd, do_atmel_unlock, ofs, len, NULL); ofs 2794 drivers/mtd/chips/cfi_cmdset_0002.c static int __maybe_unused cfi_ppb_lock(struct mtd_info *mtd, loff_t ofs, ofs 2797 drivers/mtd/chips/cfi_cmdset_0002.c return cfi_varsize_frob(mtd, do_ppb_xxlock, ofs, len, ofs 2801 drivers/mtd/chips/cfi_cmdset_0002.c static int __maybe_unused cfi_ppb_unlock(struct mtd_info *mtd, loff_t ofs, ofs 2850 drivers/mtd/chips/cfi_cmdset_0002.c if ((offset < ofs) || (offset >= (ofs + len))) { ofs 2866 drivers/mtd/chips/cfi_cmdset_0002.c if (offset >= (ofs + len)) ofs 2885 drivers/mtd/chips/cfi_cmdset_0002.c ret = cfi_varsize_frob(mtd, do_ppb_xxlock, ofs, len, ofs 2906 drivers/mtd/chips/cfi_cmdset_0002.c static int __maybe_unused cfi_ppb_is_locked(struct mtd_info *mtd, loff_t ofs, ofs 2909 drivers/mtd/chips/cfi_cmdset_0002.c return cfi_varsize_frob(mtd, do_ppb_xxlock, ofs, len, ofs 43 drivers/mtd/chips/cfi_cmdset_0020.c static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 44 drivers/mtd/chips/cfi_cmdset_0020.c static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 388 drivers/mtd/chips/cfi_cmdset_0020.c unsigned long ofs; ofs 394 drivers/mtd/chips/cfi_cmdset_0020.c ofs = from - (chipnum << cfi->chipshift); ofs 402 drivers/mtd/chips/cfi_cmdset_0020.c if ((len + ofs -1) >> cfi->chipshift) ofs 403 drivers/mtd/chips/cfi_cmdset_0020.c thislen = (1<<cfi->chipshift) - ofs; ofs 407 drivers/mtd/chips/cfi_cmdset_0020.c ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); ofs 415 drivers/mtd/chips/cfi_cmdset_0020.c ofs = 0; ofs 616 drivers/mtd/chips/cfi_cmdset_0020.c unsigned long ofs; ofs 619 drivers/mtd/chips/cfi_cmdset_0020.c ofs = to - (chipnum << cfi->chipshift); ofs 624 drivers/mtd/chips/cfi_cmdset_0020.c printk("%s: ofs[%x] len[%x]\n", __func__, ofs, len); ofs 630 drivers/mtd/chips/cfi_cmdset_0020.c int size = wbufsize - (ofs & (wbufsize-1)); ofs 636 drivers/mtd/chips/cfi_cmdset_0020.c ofs, buf, size); ofs 640 drivers/mtd/chips/cfi_cmdset_0020.c ofs += size; ofs 645 drivers/mtd/chips/cfi_cmdset_0020.c if (ofs >> cfi->chipshift) { ofs 647 drivers/mtd/chips/cfi_cmdset_0020.c ofs = 0; ofs 1130 drivers/mtd/chips/cfi_cmdset_0020.c static int cfi_staa_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1140 drivers/mtd/chips/cfi_cmdset_0020.c if (ofs & (mtd->erasesize - 1)) ofs 1146 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = ofs >> cfi->chipshift; ofs 1147 drivers/mtd/chips/cfi_cmdset_0020.c adr = ofs - (chipnum << cfi->chipshift); ofs 1277 drivers/mtd/chips/cfi_cmdset_0020.c static int cfi_staa_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1287 drivers/mtd/chips/cfi_cmdset_0020.c chipnum = ofs >> cfi->chipshift; ofs 1288 drivers/mtd/chips/cfi_cmdset_0020.c adr = ofs - (chipnum << cfi->chipshift); ofs 359 drivers/mtd/chips/cfi_util.c loff_t ofs, size_t len, void *thunk) ofs 380 drivers/mtd/chips/cfi_util.c while (i < mtd->numeraseregions && ofs >= regions[i].offset) ofs 390 drivers/mtd/chips/cfi_util.c if (ofs & (regions[i].erasesize-1)) ofs 400 drivers/mtd/chips/cfi_util.c while (i<mtd->numeraseregions && (ofs + len) >= regions[i].offset) ofs 408 drivers/mtd/chips/cfi_util.c if ((ofs + len) & (regions[i].erasesize-1)) ofs 411 drivers/mtd/chips/cfi_util.c chipnum = ofs >> cfi->chipshift; ofs 412 drivers/mtd/chips/cfi_util.c adr = ofs - (chipnum << cfi->chipshift); ofs 425 drivers/mtd/chips/cfi_util.c ofs += size; ofs 428 drivers/mtd/chips/cfi_util.c if (ofs == regions[i].offset + size * regions[i].numblocks) ofs 80 drivers/mtd/chips/fwh_lock.h static int fwh_lock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 84 drivers/mtd/chips/fwh_lock.h ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len, ofs 91 drivers/mtd/chips/fwh_lock.h static int fwh_unlock_varsize(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 95 drivers/mtd/chips/fwh_lock.h ret = cfi_varsize_frob(mtd, fwh_xxlock_oneblock, ofs, len, ofs 1922 drivers/mtd/chips/jedec_probe.c uint32_t ofs = cfi_build_cmd_addr(0 + (bank << 8), map, cfi); ofs 1924 drivers/mtd/chips/jedec_probe.c if (ofs >= map->size) ofs 1926 drivers/mtd/chips/jedec_probe.c result = map_read(map, base + ofs); ofs 1938 drivers/mtd/chips/jedec_probe.c u32 ofs = cfi_build_cmd_addr(1, map, cfi); ofs 1940 drivers/mtd/chips/jedec_probe.c result = map_read(map, base + ofs); ofs 433 drivers/mtd/devices/docg3.c static void doc_setup_writeaddr_sector(struct docg3 *docg3, int sector, int ofs) ofs 435 drivers/mtd/devices/docg3.c ofs = ofs >> 2; ofs 437 drivers/mtd/devices/docg3.c doc_flash_address(docg3, ofs & 0xff); ofs 457 drivers/mtd/devices/docg3.c int wear, int ofs) ofs 462 drivers/mtd/devices/docg3.c block0, block1, page, ofs, wear); ofs 464 drivers/mtd/devices/docg3.c if (!wear && (ofs < 2 * DOC_LAYOUT_PAGE_SIZE)) { ofs 506 drivers/mtd/devices/docg3.c int ofs) ofs 511 drivers/mtd/devices/docg3.c block0, block1, page, ofs); ofs 515 drivers/mtd/devices/docg3.c if (ofs < 2 * DOC_LAYOUT_PAGE_SIZE) { ofs 529 drivers/mtd/devices/docg3.c doc_setup_writeaddr_sector(docg3, sector, ofs); ofs 539 drivers/mtd/devices/docg3.c doc_setup_writeaddr_sector(docg3, sector, ofs); ofs 833 drivers/mtd/devices/docg3.c int *ofs, int reliable) ofs 849 drivers/mtd/devices/docg3.c *ofs = DOC_LAYOUT_PAGE_OOB_SIZE; ofs 851 drivers/mtd/devices/docg3.c *ofs = 0; ofs 869 drivers/mtd/devices/docg3.c int block0, block1, page, ret, skip, ofs = 0; ofs 899 drivers/mtd/devices/docg3.c calc_block_sector(from - skip, &block0, &block1, &page, &ofs, ofs 903 drivers/mtd/devices/docg3.c ret = doc_read_page_prepare(docg3, block0, block1, page, ofs); ofs 1008 drivers/mtd/devices/docg3.c int block0, block1, page, ofs, is_good; ofs 1010 drivers/mtd/devices/docg3.c calc_block_sector(from, &block0, &block1, &page, &ofs, ofs 1013 drivers/mtd/devices/docg3.c from, block0, block1, page, ofs); ofs 1039 drivers/mtd/devices/docg3.c int block0, block1, page, ofs; ofs 1044 drivers/mtd/devices/docg3.c calc_block_sector(from, &block0, &block1, &page, &ofs, docg3->reliable); ofs 1051 drivers/mtd/devices/docg3.c ofs + DOC_LAYOUT_WEAR_OFFSET, 0); ofs 1180 drivers/mtd/devices/docg3.c int block0, block1, page, ret = 0, ofs = 0; ofs 1185 drivers/mtd/devices/docg3.c &ofs, docg3->reliable); ofs 1186 drivers/mtd/devices/docg3.c if (info->addr + info->len > mtd->size || page || ofs) ofs 1189 drivers/mtd/devices/docg3.c calc_block_sector(info->addr, &block0, &block1, &page, &ofs, ofs 1226 drivers/mtd/devices/docg3.c int block0, block1, page, ret, ofs = 0; ofs 1230 drivers/mtd/devices/docg3.c calc_block_sector(to, &block0, &block1, &page, &ofs, docg3->reliable); ofs 1238 drivers/mtd/devices/docg3.c ret = doc_write_seek(docg3, block0, block1, page, ofs); ofs 1374 drivers/mtd/devices/docg3.c static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, ofs 1397 drivers/mtd/devices/docg3.c ofs, ops->mode, buf, len, oobbuf, ooblen); ofs 1410 drivers/mtd/devices/docg3.c (ofs % DOC_LAYOUT_PAGE_SIZE)) ofs 1422 drivers/mtd/devices/docg3.c return doc_backup_oob(docg3, ofs, ops); ofs 1431 drivers/mtd/devices/docg3.c if (ofs == docg3->oob_write_ofs) ofs 1437 drivers/mtd/devices/docg3.c ret = doc_write_page(docg3, ofs, buf, oob, autoecc); ofs 1439 drivers/mtd/devices/docg3.c ofs += DOC_LAYOUT_PAGE_SIZE; ofs 37 drivers/mtd/devices/mtdram.c static int check_offs_len(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 42 drivers/mtd/devices/mtdram.c if (mtd_mod_by_eb(ofs, mtd)) { ofs 26 drivers/mtd/lpddr/lpddr_cmds.c static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 27 drivers/mtd/lpddr/lpddr_cmds.c static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 514 drivers/mtd/lpddr/lpddr_cmds.c unsigned long ofs, last_end = 0; ofs 522 drivers/mtd/lpddr/lpddr_cmds.c ofs = adr - (chipnum << lpddr->chipshift); ofs 523 drivers/mtd/lpddr/lpddr_cmds.c *mtdbuf = (void *)map->virt + chip->start + ofs; ofs 537 drivers/mtd/lpddr/lpddr_cmds.c if ((len + ofs - 1) >> lpddr->chipshift) ofs 538 drivers/mtd/lpddr/lpddr_cmds.c thislen = (1<<lpddr->chipshift) - ofs; ofs 553 drivers/mtd/lpddr/lpddr_cmds.c ofs = 0; ofs 566 drivers/mtd/lpddr/lpddr_cmds.c unsigned long ofs; ofs 569 drivers/mtd/lpddr/lpddr_cmds.c ofs = adr - (chipnum << lpddr->chipshift); ofs 579 drivers/mtd/lpddr/lpddr_cmds.c if ((len + ofs - 1) >> lpddr->chipshift) ofs 580 drivers/mtd/lpddr/lpddr_cmds.c thislen = (1<<lpddr->chipshift) - ofs; ofs 599 drivers/mtd/lpddr/lpddr_cmds.c ofs = 0; ofs 625 drivers/mtd/lpddr/lpddr_cmds.c unsigned long ofs, vec_seek, i; ofs 637 drivers/mtd/lpddr/lpddr_cmds.c ofs = to; ofs 642 drivers/mtd/lpddr/lpddr_cmds.c int size = wbufsize - (ofs & (wbufsize-1)); ofs 648 drivers/mtd/lpddr/lpddr_cmds.c ofs, &vecs, &vec_seek, size); ofs 652 drivers/mtd/lpddr/lpddr_cmds.c ofs += size; ofs 667 drivers/mtd/lpddr/lpddr_cmds.c unsigned long ofs, len; ofs 673 drivers/mtd/lpddr/lpddr_cmds.c ofs = instr->addr; ofs 677 drivers/mtd/lpddr/lpddr_cmds.c ret = do_erase_oneblock(mtd, ofs); ofs 680 drivers/mtd/lpddr/lpddr_cmds.c ofs += size; ofs 724 drivers/mtd/lpddr/lpddr_cmds.c static int lpddr_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 726 drivers/mtd/lpddr/lpddr_cmds.c return do_xxlock(mtd, ofs, len, DO_XXLOCK_LOCK); ofs 729 drivers/mtd/lpddr/lpddr_cmds.c static int lpddr_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 731 drivers/mtd/lpddr/lpddr_cmds.c return do_xxlock(mtd, ofs, len, DO_XXLOCK_UNLOCK); ofs 54 drivers/mtd/maps/dc21285.c static map_word dc21285_read8(struct map_info *map, unsigned long ofs) ofs 57 drivers/mtd/maps/dc21285.c val.x[0] = *(uint8_t*)(map->virt + ofs); ofs 61 drivers/mtd/maps/dc21285.c static map_word dc21285_read16(struct map_info *map, unsigned long ofs) ofs 64 drivers/mtd/maps/dc21285.c val.x[0] = *(uint16_t*)(map->virt + ofs); ofs 68 drivers/mtd/maps/dc21285.c static map_word dc21285_read32(struct map_info *map, unsigned long ofs) ofs 71 drivers/mtd/maps/dc21285.c val.x[0] = *(uint32_t*)(map->virt + ofs); ofs 89 drivers/mtd/maps/ixp4xx.c static map_word ixp4xx_read16(struct map_info *map, unsigned long ofs) ofs 92 drivers/mtd/maps/ixp4xx.c val.x[0] = flash_read16(map->virt + ofs); ofs 13 drivers/mtd/maps/map_funcs.c static map_word __xipram simple_map_read(struct map_info *map, unsigned long ofs) ofs 15 drivers/mtd/maps/map_funcs.c return inline_map_read(map, ofs); ofs 18 drivers/mtd/maps/map_funcs.c static void __xipram simple_map_write(struct map_info *map, const map_word datum, unsigned long ofs) ofs 20 drivers/mtd/maps/map_funcs.c inline_map_write(map, datum, ofs); ofs 25 drivers/mtd/maps/pci.c unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); ofs 33 drivers/mtd/maps/pci.c unsigned long (*translate)(struct map_pci_info *map, unsigned long ofs); ofs 37 drivers/mtd/maps/pci.c static map_word mtd_pci_read8(struct map_info *_map, unsigned long ofs) ofs 41 drivers/mtd/maps/pci.c val.x[0]= readb(map->base + map->translate(map, ofs)); ofs 45 drivers/mtd/maps/pci.c static map_word mtd_pci_read32(struct map_info *_map, unsigned long ofs) ofs 49 drivers/mtd/maps/pci.c val.x[0] = readl(map->base + map->translate(map, ofs)); ofs 59 drivers/mtd/maps/pci.c static void mtd_pci_write8(struct map_info *_map, map_word val, unsigned long ofs) ofs 62 drivers/mtd/maps/pci.c writeb(val.x[0], map->base + map->translate(map, ofs)); ofs 65 drivers/mtd/maps/pci.c static void mtd_pci_write32(struct map_info *_map, map_word val, unsigned long ofs) ofs 68 drivers/mtd/maps/pci.c writel(val.x[0], map->base + map->translate(map, ofs)); ofs 124 drivers/mtd/maps/pci.c intel_iq80310_translate(struct map_pci_info *map, unsigned long ofs) ofs 126 drivers/mtd/maps/pci.c unsigned long page_addr = ofs & 0x00400000; ofs 138 drivers/mtd/maps/pci.c ofs += 0x00800000; ofs 141 drivers/mtd/maps/pci.c return ofs; ofs 212 drivers/mtd/maps/pci.c intel_dc21285_translate(struct map_pci_info *map, unsigned long ofs) ofs 214 drivers/mtd/maps/pci.c return ofs & 0x00ffffc0 ? ofs : (ofs ^ (1 << 5)); ofs 108 drivers/mtd/maps/pcmciamtd.c static map_word pcmcia_read8_remap(struct map_info *map, unsigned long ofs) ofs 113 drivers/mtd/maps/pcmciamtd.c addr = remap_window(map, ofs); ofs 118 drivers/mtd/maps/pcmciamtd.c pr_debug("ofs = 0x%08lx (%p) data = 0x%02lx\n", ofs, addr, d.x[0]); ofs 123 drivers/mtd/maps/pcmciamtd.c static map_word pcmcia_read16_remap(struct map_info *map, unsigned long ofs) ofs 128 drivers/mtd/maps/pcmciamtd.c addr = remap_window(map, ofs); ofs 133 drivers/mtd/maps/pcmciamtd.c pr_debug("ofs = 0x%08lx (%p) data = 0x%04lx\n", ofs, addr, d.x[0]); ofs 217 drivers/mtd/maps/pcmciamtd.c static map_word pcmcia_read8(struct map_info *map, unsigned long ofs) ofs 225 drivers/mtd/maps/pcmciamtd.c d.x[0] = readb(win_base + ofs); ofs 227 drivers/mtd/maps/pcmciamtd.c ofs, win_base + ofs, d.x[0]); ofs 232 drivers/mtd/maps/pcmciamtd.c static map_word pcmcia_read16(struct map_info *map, unsigned long ofs) ofs 240 drivers/mtd/maps/pcmciamtd.c d.x[0] = readw(win_base + ofs); ofs 242 drivers/mtd/maps/pcmciamtd.c ofs, win_base + ofs, d.x[0]); ofs 121 drivers/mtd/maps/physmap-core.c unsigned long ofs) ofs 125 drivers/mtd/maps/physmap-core.c ofs >>= info->win_order; ofs 126 drivers/mtd/maps/physmap-core.c if (info->gpio_values == ofs) ofs 130 drivers/mtd/maps/physmap-core.c if ((BIT(i) & ofs) == (BIT(i) & info->gpio_values)) ofs 133 drivers/mtd/maps/physmap-core.c gpiod_set_value(info->gpios->desc[i], !!(BIT(i) & ofs)); ofs 136 drivers/mtd/maps/physmap-core.c info->gpio_values = ofs; ofs 142 drivers/mtd/maps/physmap-core.c unsigned long ofs) ofs 151 drivers/mtd/maps/physmap-core.c physmap_set_addr_gpios(info, ofs); ofs 153 drivers/mtd/maps/physmap-core.c word = readw(map->virt + (ofs & win_mask(info->win_order))); ofs 159 drivers/mtd/maps/physmap-core.c unsigned long ofs, ssize_t len) ofs 168 drivers/mtd/maps/physmap-core.c unsigned int winofs = ofs & win_mask(info->win_order); ofs 172 drivers/mtd/maps/physmap-core.c physmap_set_addr_gpios(info, ofs); ofs 176 drivers/mtd/maps/physmap-core.c ofs += chunklen; ofs 181 drivers/mtd/maps/physmap-core.c unsigned long ofs) ofs 189 drivers/mtd/maps/physmap-core.c physmap_set_addr_gpios(info, ofs); ofs 192 drivers/mtd/maps/physmap-core.c writew(word, map->virt + (ofs & win_mask(info->win_order))); ofs 195 drivers/mtd/maps/physmap-core.c static void physmap_addr_gpios_copy_to(struct map_info *map, unsigned long ofs, ofs 205 drivers/mtd/maps/physmap-core.c unsigned int winofs = ofs & win_mask(info->win_order); ofs 209 drivers/mtd/maps/physmap-core.c physmap_set_addr_gpios(info, ofs); ofs 213 drivers/mtd/maps/physmap-core.c ofs += chunklen; ofs 87 drivers/mtd/maps/physmap-gemini.c unsigned long ofs) ofs 92 drivers/mtd/maps/physmap-gemini.c ret = inline_map_read(map, ofs); ofs 100 drivers/mtd/maps/physmap-gemini.c unsigned long ofs) ofs 103 drivers/mtd/maps/physmap-gemini.c inline_map_write(map, datum, ofs); ofs 91 drivers/mtd/maps/sbc_gxx.c static inline void sbc_gxx_page(struct map_info *map, unsigned long ofs) ofs 93 drivers/mtd/maps/sbc_gxx.c unsigned long page = ofs >> WINDOW_SHIFT; ofs 102 drivers/mtd/maps/sbc_gxx.c static map_word sbc_gxx_read8(struct map_info *map, unsigned long ofs) ofs 106 drivers/mtd/maps/sbc_gxx.c sbc_gxx_page(map, ofs); ofs 107 drivers/mtd/maps/sbc_gxx.c ret.x[0] = readb(iomapadr + (ofs & WINDOW_MASK)); ofs 53 drivers/mtd/maps/vmu-flash.c unsigned int ofs; /* block offset */ ofs 81 drivers/mtd/maps/vmu-flash.c vblock->ofs = src_ofs % card->blocklen; ofs 302 drivers/mtd/maps/vmu-flash.c static unsigned char vmu_flash_read_char(unsigned long ofs, int *retval, ofs 325 drivers/mtd/maps/vmu-flash.c vblock = ofs_to_block(ofs, mtd, partition); ofs 339 drivers/mtd/maps/vmu-flash.c ret = buf[vblock->ofs]; ofs 382 drivers/mtd/maps/vmu-flash.c leftover = card->blocklen - vblock->ofs; ofs 383 drivers/mtd/maps/vmu-flash.c if (vblock->ofs + len - index < card->blocklen) { ofs 386 drivers/mtd/maps/vmu-flash.c pcache->buffer + vblock->ofs, ofs 392 drivers/mtd/maps/vmu-flash.c vblock->ofs, leftover); ofs 459 drivers/mtd/maps/vmu-flash.c buffer[vblock->ofs] = buf[index]; ofs 460 drivers/mtd/maps/vmu-flash.c vblock->ofs++; ofs 464 drivers/mtd/maps/vmu-flash.c } while (vblock->ofs < card->blocklen); ofs 476 drivers/mtd/maps/vmu-flash.c vblock->ofs = 0; ofs 440 drivers/mtd/mtdconcat.c static int concat_xxlock(struct mtd_info *mtd, loff_t ofs, uint64_t len, ofs 450 drivers/mtd/mtdconcat.c if (ofs >= subdev->size) { ofs 452 drivers/mtd/mtdconcat.c ofs -= subdev->size; ofs 455 drivers/mtd/mtdconcat.c if (ofs + len > subdev->size) ofs 456 drivers/mtd/mtdconcat.c size = subdev->size - ofs; ofs 461 drivers/mtd/mtdconcat.c err = mtd_lock(subdev, ofs, size); ofs 463 drivers/mtd/mtdconcat.c err = mtd_unlock(subdev, ofs, size); ofs 472 drivers/mtd/mtdconcat.c ofs = 0; ofs 478 drivers/mtd/mtdconcat.c static int concat_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 480 drivers/mtd/mtdconcat.c return concat_xxlock(mtd, ofs, len, true); ofs 483 drivers/mtd/mtdconcat.c static int concat_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 485 drivers/mtd/mtdconcat.c return concat_xxlock(mtd, ofs, len, false); ofs 488 drivers/mtd/mtdconcat.c static int concat_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 496 drivers/mtd/mtdconcat.c if (ofs >= subdev->size) { ofs 497 drivers/mtd/mtdconcat.c ofs -= subdev->size; ofs 501 drivers/mtd/mtdconcat.c if (ofs + len > subdev->size) ofs 504 drivers/mtd/mtdconcat.c return mtd_is_locked(subdev, ofs, len); ofs 545 drivers/mtd/mtdconcat.c static int concat_block_isbad(struct mtd_info *mtd, loff_t ofs) ofs 556 drivers/mtd/mtdconcat.c if (ofs >= subdev->size) { ofs 557 drivers/mtd/mtdconcat.c ofs -= subdev->size; ofs 561 drivers/mtd/mtdconcat.c res = mtd_block_isbad(subdev, ofs); ofs 568 drivers/mtd/mtdconcat.c static int concat_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 576 drivers/mtd/mtdconcat.c if (ofs >= subdev->size) { ofs 577 drivers/mtd/mtdconcat.c ofs -= subdev->size; ofs 581 drivers/mtd/mtdconcat.c err = mtd_block_markbad(subdev, ofs); ofs 1742 drivers/mtd/mtdcore.c int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1746 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) ofs 1750 drivers/mtd/mtdcore.c return mtd->_lock(mtd, ofs, len); ofs 1754 drivers/mtd/mtdcore.c int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1758 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) ofs 1762 drivers/mtd/mtdcore.c return mtd->_unlock(mtd, ofs, len); ofs 1766 drivers/mtd/mtdcore.c int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1770 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size || len > mtd->size - ofs) ofs 1774 drivers/mtd/mtdcore.c return mtd->_is_locked(mtd, ofs, len); ofs 1778 drivers/mtd/mtdcore.c int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs) ofs 1780 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size) ofs 1784 drivers/mtd/mtdcore.c return mtd->_block_isreserved(mtd, ofs); ofs 1788 drivers/mtd/mtdcore.c int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs) ofs 1790 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size) ofs 1794 drivers/mtd/mtdcore.c return mtd->_block_isbad(mtd, ofs); ofs 1798 drivers/mtd/mtdcore.c int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 1802 drivers/mtd/mtdcore.c if (ofs < 0 || ofs >= mtd->size) ofs 1806 drivers/mtd/mtdcore.c return mtd->_block_markbad(mtd, ofs); ofs 211 drivers/mtd/mtdpart.c static int part_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 214 drivers/mtd/mtdpart.c return part->parent->_lock(part->parent, ofs + part->offset, len); ofs 217 drivers/mtd/mtdpart.c static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 220 drivers/mtd/mtdpart.c return part->parent->_unlock(part->parent, ofs + part->offset, len); ofs 223 drivers/mtd/mtdpart.c static int part_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 226 drivers/mtd/mtdpart.c return part->parent->_is_locked(part->parent, ofs + part->offset, len); ofs 247 drivers/mtd/mtdpart.c static int part_block_isreserved(struct mtd_info *mtd, loff_t ofs) ofs 250 drivers/mtd/mtdpart.c ofs += part->offset; ofs 251 drivers/mtd/mtdpart.c return part->parent->_block_isreserved(part->parent, ofs); ofs 254 drivers/mtd/mtdpart.c static int part_block_isbad(struct mtd_info *mtd, loff_t ofs) ofs 257 drivers/mtd/mtdpart.c ofs += part->offset; ofs 258 drivers/mtd/mtdpart.c return part->parent->_block_isbad(part->parent, ofs); ofs 261 drivers/mtd/mtdpart.c static int part_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 266 drivers/mtd/mtdpart.c ofs += part->offset; ofs 267 drivers/mtd/mtdpart.c res = part->parent->_block_markbad(part->parent, ofs); ofs 306 drivers/mtd/mtdpart.c static int part_max_bad_blocks(struct mtd_info *mtd, loff_t ofs, size_t len) ofs 311 drivers/mtd/mtdpart.c ofs + part->offset, len); ofs 336 drivers/mtd/nand/onenand/onenand_base.c loff_t ofs = 0; ofs 342 drivers/mtd/nand/onenand/onenand_base.c ofs = this->diesize[0]; ofs 346 drivers/mtd/nand/onenand/onenand_base.c ofs += (loff_t)block << (this->erase_shift - 1); ofs 348 drivers/mtd/nand/onenand/onenand_base.c ofs += (loff_t)(block - boundary - 1) << (this->erase_shift - 1); ofs 349 drivers/mtd/nand/onenand/onenand_base.c return ofs; ofs 2116 drivers/mtd/nand/onenand/onenand_base.c static int onenand_block_isbad_nolock(struct mtd_info *mtd, loff_t ofs, int allowbbt) ofs 2122 drivers/mtd/nand/onenand/onenand_base.c return bbm->isbad_bbt(mtd, ofs, allowbbt); ofs 2421 drivers/mtd/nand/onenand/onenand_base.c static int onenand_block_isbad(struct mtd_info *mtd, loff_t ofs) ofs 2426 drivers/mtd/nand/onenand/onenand_base.c ret = onenand_block_isbad_nolock(mtd, ofs, 0); ofs 2439 drivers/mtd/nand/onenand/onenand_base.c static int onenand_default_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 2453 drivers/mtd/nand/onenand/onenand_base.c block = onenand_block(this, ofs); ofs 2458 drivers/mtd/nand/onenand/onenand_base.c ofs += mtd->oobsize + (this->badblockpos & ~0x01); ofs 2463 drivers/mtd/nand/onenand/onenand_base.c return onenand_write_oob_nolock(mtd, ofs, &ops); ofs 2473 drivers/mtd/nand/onenand/onenand_base.c static int onenand_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 2478 drivers/mtd/nand/onenand/onenand_base.c ret = onenand_block_isbad(mtd, ofs); ofs 2487 drivers/mtd/nand/onenand/onenand_base.c ret = this->block_markbad(mtd, ofs); ofs 2501 drivers/mtd/nand/onenand/onenand_base.c static int onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, size_t len, int cmd) ofs 2507 drivers/mtd/nand/onenand/onenand_base.c start = onenand_block(this, ofs); ofs 2508 drivers/mtd/nand/onenand/onenand_base.c end = onenand_block(this, ofs + len) - 1; ofs 2580 drivers/mtd/nand/onenand/onenand_base.c static int onenand_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2585 drivers/mtd/nand/onenand/onenand_base.c ret = onenand_do_lock_cmd(mtd, ofs, len, ONENAND_CMD_LOCK); ofs 2598 drivers/mtd/nand/onenand/onenand_base.c static int onenand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 2603 drivers/mtd/nand/onenand/onenand_base.c ret = onenand_do_lock_cmd(mtd, ofs, len, ONENAND_CMD_UNLOCK); ofs 2651 drivers/mtd/nand/onenand/onenand_base.c loff_t ofs = 0; ofs 2679 drivers/mtd/nand/onenand/onenand_base.c ofs = this->chipsize >> 1; ofs 2684 drivers/mtd/nand/onenand/onenand_base.c onenand_do_lock_cmd(mtd, ofs, len, ONENAND_CMD_UNLOCK); ofs 3437 drivers/mtd/nand/onenand/onenand_base.c loff_t ofs; ofs 3449 drivers/mtd/nand/onenand/onenand_base.c die = ofs = 0; ofs 3454 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].offset = ofs; ofs 3458 drivers/mtd/nand/onenand/onenand_base.c ofs += mtd->eraseregions[i].numblocks << eraseshift; ofs 3464 drivers/mtd/nand/onenand/onenand_base.c ofs += (this->boundary[die] + 1) << (eraseshift - 1); ofs 3468 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].offset = ofs; ofs 3472 drivers/mtd/nand/onenand/onenand_base.c ofs += mtd->eraseregions[i].numblocks << eraseshift; ofs 622 drivers/mtd/nand/onenand/samsung.c int err, ofs, page_dma = 0; ofs 649 drivers/mtd/nand/onenand/samsung.c ofs = ((size_t) buf & ~PAGE_MASK); ofs 654 drivers/mtd/nand/onenand/samsung.c dma_dst = dma_map_page(dev, page, ofs, count, DMA_FROM_DEVICE); ofs 746 drivers/mtd/nand/onenand/samsung.c static void s3c_onenand_do_lock_cmd(struct mtd_info *mtd, loff_t ofs, ofs 752 drivers/mtd/nand/onenand/samsung.c start = ofs >> this->erase_shift; ofs 775 drivers/mtd/nand/onenand/samsung.c loff_t ofs = 0; ofs 792 drivers/mtd/nand/onenand/samsung.c ofs = this->chipsize >> 1; ofs 796 drivers/mtd/nand/onenand/samsung.c s3c_onenand_do_lock_cmd(mtd, ofs, len, ONENAND_CMD_UNLOCK); ofs 549 drivers/mtd/nand/raw/cafe_nand.c static int cafe_nand_block_bad(struct nand_chip *chip, loff_t ofs) ofs 779 drivers/mtd/nand/raw/diskonchip.c static int doc200x_block_bad(struct nand_chip *this, loff_t ofs) ofs 1888 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c static int gpmi_block_markbad(struct nand_chip *chip, loff_t ofs) ofs 1896 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c chipnr = (int)(ofs >> chip->chip_shift); ofs 1906 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c page = (int)(ofs >> chip->page_shift); ofs 80 drivers/mtd/nand/raw/internals.h int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs); ofs 208 drivers/mtd/nand/raw/nand_base.c static int check_offs_len(struct nand_chip *chip, loff_t ofs, uint64_t len) ofs 213 drivers/mtd/nand/raw/nand_base.c if (ofs & ((1ULL << chip->phys_erase_shift) - 1)) { ofs 317 drivers/mtd/nand/raw/nand_base.c static int nand_block_bad(struct nand_chip *chip, loff_t ofs) ofs 323 drivers/mtd/nand/raw/nand_base.c first_page = (int)(ofs >> chip->page_shift) & chip->pagemask; ofs 346 drivers/mtd/nand/raw/nand_base.c static int nand_isbad_bbm(struct nand_chip *chip, loff_t ofs) ofs 349 drivers/mtd/nand/raw/nand_base.c return chip->legacy.block_bad(chip, ofs); ofs 351 drivers/mtd/nand/raw/nand_base.c return nand_block_bad(chip, ofs); ofs 515 drivers/mtd/nand/raw/nand_base.c static int nand_default_block_markbad(struct nand_chip *chip, loff_t ofs) ofs 537 drivers/mtd/nand/raw/nand_base.c ofs + (page_offset * mtd->writesize), ofs 554 drivers/mtd/nand/raw/nand_base.c int nand_markbad_bbm(struct nand_chip *chip, loff_t ofs) ofs 557 drivers/mtd/nand/raw/nand_base.c return chip->legacy.block_markbad(chip, ofs); ofs 559 drivers/mtd/nand/raw/nand_base.c return nand_default_block_markbad(chip, ofs); ofs 581 drivers/mtd/nand/raw/nand_base.c static int nand_block_markbad_lowlevel(struct nand_chip *chip, loff_t ofs) ofs 591 drivers/mtd/nand/raw/nand_base.c einfo.addr = ofs; ofs 600 drivers/mtd/nand/raw/nand_base.c ret = nand_markbad_bbm(chip, ofs); ofs 606 drivers/mtd/nand/raw/nand_base.c res = nand_markbad_bbt(chip, ofs); ofs 624 drivers/mtd/nand/raw/nand_base.c static int nand_block_isreserved(struct mtd_info *mtd, loff_t ofs) ofs 631 drivers/mtd/nand/raw/nand_base.c return nand_isreserved_bbt(chip, ofs); ofs 643 drivers/mtd/nand/raw/nand_base.c static int nand_block_checkbad(struct nand_chip *chip, loff_t ofs, int allowbbt) ofs 647 drivers/mtd/nand/raw/nand_base.c return nand_isbad_bbt(chip, ofs, allowbbt); ofs 649 drivers/mtd/nand/raw/nand_base.c return nand_isbad_bbm(chip, ofs); ofs 4306 drivers/mtd/nand/raw/nand_base.c static int nand_block_markbad(struct mtd_info *mtd, loff_t ofs) ofs 4310 drivers/mtd/nand/raw/nand_base.c ret = nand_block_isbad(mtd, ofs); ofs 4318 drivers/mtd/nand/raw/nand_base.c return nand_block_markbad_lowlevel(mtd_to_nand(mtd), ofs); ofs 2189 drivers/mtd/nand/raw/qcom_nandc.c static int qcom_nandc_block_bad(struct nand_chip *chip, loff_t ofs) ofs 2197 drivers/mtd/nand/raw/qcom_nandc.c page = (int)(ofs >> chip->page_shift) & chip->pagemask; ofs 2227 drivers/mtd/nand/raw/qcom_nandc.c static int qcom_nandc_block_markbad(struct nand_chip *chip, loff_t ofs) ofs 2244 drivers/mtd/nand/raw/qcom_nandc.c page = (int)(ofs >> chip->page_shift) & chip->pagemask; ofs 99 drivers/mtd/nand/raw/sm_common.c static int sm_block_markbad(struct nand_chip *chip, loff_t ofs) ofs 118 drivers/mtd/nand/raw/sm_common.c ret = mtd_write_oob(mtd, ofs, &ops); ofs 121 drivers/mtd/nand/raw/sm_common.c (int)ofs); ofs 1344 drivers/mtd/spi-nor/spi-nor.c static void stm_get_locked_range(struct spi_nor *nor, u8 sr, loff_t *ofs, ofs 1354 drivers/mtd/spi-nor/spi-nor.c *ofs = 0; ofs 1360 drivers/mtd/spi-nor/spi-nor.c *ofs = 0; ofs 1362 drivers/mtd/spi-nor/spi-nor.c *ofs = mtd->size - *len; ofs 1370 drivers/mtd/spi-nor/spi-nor.c static int stm_check_lock_status_sr(struct spi_nor *nor, loff_t ofs, uint64_t len, ofs 1383 drivers/mtd/spi-nor/spi-nor.c return (ofs + len <= lock_offs + lock_len) && (ofs >= lock_offs); ofs 1386 drivers/mtd/spi-nor/spi-nor.c return (ofs >= lock_offs + lock_len) || (ofs + len <= lock_offs); ofs 1389 drivers/mtd/spi-nor/spi-nor.c static int stm_is_locked_sr(struct spi_nor *nor, loff_t ofs, uint64_t len, ofs 1392 drivers/mtd/spi-nor/spi-nor.c return stm_check_lock_status_sr(nor, ofs, len, sr, true); ofs 1395 drivers/mtd/spi-nor/spi-nor.c static int stm_is_unlocked_sr(struct spi_nor *nor, loff_t ofs, uint64_t len, ofs 1398 drivers/mtd/spi-nor/spi-nor.c return stm_check_lock_status_sr(nor, ofs, len, sr, false); ofs 1433 drivers/mtd/spi-nor/spi-nor.c static int stm_lock(struct spi_nor *nor, loff_t ofs, uint64_t len) ofs 1448 drivers/mtd/spi-nor/spi-nor.c if (stm_is_locked_sr(nor, ofs, len, status_old)) ofs 1452 drivers/mtd/spi-nor/spi-nor.c if (!stm_is_locked_sr(nor, 0, ofs, status_old)) ofs 1456 drivers/mtd/spi-nor/spi-nor.c if (!stm_is_locked_sr(nor, ofs + len, mtd->size - (ofs + len), ofs 1468 drivers/mtd/spi-nor/spi-nor.c lock_len = mtd->size - ofs; ofs 1470 drivers/mtd/spi-nor/spi-nor.c lock_len = ofs + len; ofs 1513 drivers/mtd/spi-nor/spi-nor.c static int stm_unlock(struct spi_nor *nor, loff_t ofs, uint64_t len) ofs 1528 drivers/mtd/spi-nor/spi-nor.c if (stm_is_unlocked_sr(nor, ofs, len, status_old)) ofs 1532 drivers/mtd/spi-nor/spi-nor.c if (!stm_is_unlocked_sr(nor, 0, ofs, status_old)) ofs 1536 drivers/mtd/spi-nor/spi-nor.c if (!stm_is_unlocked_sr(nor, ofs + len, mtd->size - (ofs + len), ofs 1548 drivers/mtd/spi-nor/spi-nor.c lock_len = mtd->size - (ofs + len); ofs 1550 drivers/mtd/spi-nor/spi-nor.c lock_len = ofs; ofs 1598 drivers/mtd/spi-nor/spi-nor.c static int stm_is_locked(struct spi_nor *nor, loff_t ofs, uint64_t len) ofs 1606 drivers/mtd/spi-nor/spi-nor.c return stm_is_locked_sr(nor, ofs, len, status); ofs 1615 drivers/mtd/spi-nor/spi-nor.c static int spi_nor_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1624 drivers/mtd/spi-nor/spi-nor.c ret = nor->params.locking_ops->lock(nor, ofs, len); ofs 1630 drivers/mtd/spi-nor/spi-nor.c static int spi_nor_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1639 drivers/mtd/spi-nor/spi-nor.c ret = nor->params.locking_ops->unlock(nor, ofs, len); ofs 1645 drivers/mtd/spi-nor/spi-nor.c static int spi_nor_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len) ofs 1654 drivers/mtd/spi-nor/spi-nor.c ret = nor->params.locking_ops->is_locked(nor, ofs, len); ofs 45 drivers/net/arcnet/arc-rawmode.c int ofs; ofs 50 drivers/net/arcnet/arc-rawmode.c ofs = 512 - length; ofs 52 drivers/net/arcnet/arc-rawmode.c ofs = 256 - length; ofs 70 drivers/net/arcnet/arc-rawmode.c lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), ofs 118 drivers/net/arcnet/arc-rawmode.c int ofs; ofs 134 drivers/net/arcnet/arc-rawmode.c hard->offset[1] = ofs = 512 - length; ofs 137 drivers/net/arcnet/arc-rawmode.c hard->offset[1] = ofs = 512 - length - 3; ofs 139 drivers/net/arcnet/arc-rawmode.c hard->offset[0] = ofs = 256 - length; ofs 143 drivers/net/arcnet/arc-rawmode.c length, ofs); ofs 146 drivers/net/arcnet/arc-rawmode.c lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); ofs 1071 drivers/net/arcnet/arcnet.c int length, ofs; ofs 1077 drivers/net/arcnet/arcnet.c ofs = rxdata.pkt.hard.offset[0]; ofs 1078 drivers/net/arcnet/arcnet.c length = 256 - ofs; ofs 1080 drivers/net/arcnet/arcnet.c ofs = rxdata.pkt.hard.offset[1]; ofs 1081 drivers/net/arcnet/arcnet.c length = 512 - ofs; ofs 1086 drivers/net/arcnet/arcnet.c lp->hw.copy_from_card(dev, bufnum, ofs, soft, sizeof(rxdata.pkt.soft)); ofs 1089 drivers/net/arcnet/arcnet.c lp->hw.copy_from_card(dev, bufnum, ofs, soft, length); ofs 49 drivers/net/arcnet/capmode.c int ofs; ofs 55 drivers/net/arcnet/capmode.c ofs = 512 - length; ofs 57 drivers/net/arcnet/capmode.c ofs = 256 - length; ofs 83 drivers/net/arcnet/capmode.c lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), ofs 137 drivers/net/arcnet/capmode.c int ofs; ofs 158 drivers/net/arcnet/capmode.c hard->offset[1] = ofs = 512 - length; ofs 161 drivers/net/arcnet/capmode.c hard->offset[1] = ofs = 512 - length - 3; ofs 163 drivers/net/arcnet/capmode.c hard->offset[0] = ofs = 256 - length; ofs 167 drivers/net/arcnet/capmode.c length, ofs); ofs 171 drivers/net/arcnet/capmode.c lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, ofs 177 drivers/net/arcnet/capmode.c lp->hw.copy_to_card(dev, bufnum, ofs + 1, ofs 65 drivers/net/arcnet/com20020.c int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; ofs 68 drivers/net/arcnet/com20020.c arcnet_outb((ofs >> 8) | RDDATAflag | AUTOINCflag, ofs 70 drivers/net/arcnet/com20020.c arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); ofs 80 drivers/net/arcnet/com20020.c int ioaddr = dev->base_addr, ofs = 512 * bufnum + offset; ofs 83 drivers/net/arcnet/com20020.c arcnet_outb((ofs >> 8) | AUTOINCflag, ioaddr, COM20020_REG_W_ADDR_HI); ofs 84 drivers/net/arcnet/com20020.c arcnet_outb(ofs & 0xff, ioaddr, COM20020_REG_W_ADDR_LO); ofs 127 drivers/net/arcnet/rfc1051.c int ofs; ofs 132 drivers/net/arcnet/rfc1051.c ofs = 512 - length; ofs 134 drivers/net/arcnet/rfc1051.c ofs = 256 - length; ofs 149 drivers/net/arcnet/rfc1051.c lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), ofs 212 drivers/net/arcnet/rfc1051.c int ofs; ofs 228 drivers/net/arcnet/rfc1051.c hard->offset[1] = ofs = 512 - length; ofs 231 drivers/net/arcnet/rfc1051.c hard->offset[1] = ofs = 512 - length - 3; ofs 233 drivers/net/arcnet/rfc1051.c hard->offset[0] = ofs = 256 - length; ofs 237 drivers/net/arcnet/rfc1051.c lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); ofs 139 drivers/net/arcnet/rfc1201.c int saddr = pkt->hard.source, ofs; ofs 146 drivers/net/arcnet/rfc1201.c ofs = 512 - length; ofs 148 drivers/net/arcnet/rfc1201.c ofs = 256 - length; ofs 161 drivers/net/arcnet/rfc1201.c ofs += 4; ofs 198 drivers/net/arcnet/rfc1201.c ofs + sizeof(pkt->soft), ofs 353 drivers/net/arcnet/rfc1201.c lp->hw.copy_from_card(dev, bufnum, ofs + RFC1201_HDR_SIZE, ofs 446 drivers/net/arcnet/rfc1201.c int ofs; ofs 452 drivers/net/arcnet/rfc1201.c hard->offset[1] = ofs = 512 - softlen; ofs 461 drivers/net/arcnet/rfc1201.c ofs = 512 - softlen; ofs 462 drivers/net/arcnet/rfc1201.c hard->offset[1] = ofs - RFC1201_HDR_SIZE; ofs 463 drivers/net/arcnet/rfc1201.c lp->hw.copy_to_card(dev, bufnum, ofs - RFC1201_HDR_SIZE, ofs 466 drivers/net/arcnet/rfc1201.c hard->offset[0] = ofs = 256 - softlen; ofs 470 drivers/net/arcnet/rfc1201.c lp->hw.copy_to_card(dev, bufnum, ofs, soft, softlen); ofs 645 drivers/net/ethernet/broadcom/bcmsysport.h #define STAT_RXCHK(str, m, ofs) { \ ofs 650 drivers/net/ethernet/broadcom/bcmsysport.h .reg_offset = ofs, \ ofs 653 drivers/net/ethernet/broadcom/bcmsysport.h #define STAT_RBUF(str, m, ofs) { \ ofs 658 drivers/net/ethernet/broadcom/bcmsysport.h .reg_offset = ofs, \ ofs 8832 drivers/net/ethernet/broadcom/tg3.c static int tg3_stop_block(struct tg3 *tp, unsigned long ofs, u32 enable_bit, bool silent) ofs 8838 drivers/net/ethernet/broadcom/tg3.c switch (ofs) { ofs 8854 drivers/net/ethernet/broadcom/tg3.c val = tr32(ofs); ofs 8856 drivers/net/ethernet/broadcom/tg3.c tw32_f(ofs, val); ofs 8863 drivers/net/ethernet/broadcom/tg3.c ofs, enable_bit); ofs 8868 drivers/net/ethernet/broadcom/tg3.c val = tr32(ofs); ofs 8876 drivers/net/ethernet/broadcom/tg3.c ofs, enable_bit); ofs 1794 drivers/net/ethernet/dec/tulip/de2104x.c unsigned i, sa_offset = 0, ofs; ofs 1822 drivers/net/ethernet/dec/tulip/de2104x.c ofs = ee_data[SROMC0InfoLeaf]; ofs 1823 drivers/net/ethernet/dec/tulip/de2104x.c if (ofs >= (sizeof(ee_data) - sizeof(struct de_srom_info_leaf) - sizeof(struct de_srom_media_block))) ofs 1827 drivers/net/ethernet/dec/tulip/de2104x.c il = (struct de_srom_info_leaf *) &ee_data[ofs]; ofs 1832 drivers/net/ethernet/dec/tulip/de2104x.c if ((sizeof(ee_data) - ofs) < ofs 1846 drivers/net/ethernet/dec/tulip/de2104x.c de->board_idx, ofs, media_name[de->media_type]); ofs 60 drivers/net/ethernet/intel/e1000e/netdev.c u32 ofs; ofs 151 drivers/net/ethernet/intel/e1000e/netdev.c switch (reginfo->ofs) { ofs 166 drivers/net/ethernet/intel/e1000e/netdev.c reginfo->name, __er32(hw, reginfo->ofs)); ofs 251 drivers/net/ethernet/intel/igb/igb_main.c u32 ofs; ofs 298 drivers/net/ethernet/intel/igb/igb_main.c switch (reginfo->ofs) { ofs 348 drivers/net/ethernet/intel/igb/igb_main.c pr_info("%-15s %08x\n", reginfo->name, rd32(reginfo->ofs)); ofs 427 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c u32 ofs; ofs 473 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c switch (reginfo->ofs) { ofs 532 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c reginfo->name, IXGBE_READ_REG(hw, reginfo->ofs)); ofs 468 drivers/net/ethernet/smsc/smc91c92_cs.c buf = parse.version_1.str + parse.version_1.ofs[3]; ofs 173 drivers/net/ethernet/ti/davinci_cpdma.c #define dma_reg_read(ctlr, ofs) readl((ctlr)->dmaregs + (ofs)) ofs 176 drivers/net/ethernet/ti/davinci_cpdma.c #define dma_reg_write(ctlr, ofs, v) writel(v, (ctlr)->dmaregs + (ofs)) ofs 34 drivers/net/ethernet/ti/netcp_xgbepcsr.c u32 ofs; ofs 133 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + cfg_phyb_1p25g_156p25mhz_cmu0[i].ofs, ofs 140 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + cfg_phyb_10p3125g_156p25mhz_cmu1[i].ofs, ofs 155 drivers/net/ethernet/ti/netcp_xgbepcsr.c cfg_phyb_10p3125g_16bit_lane[i].ofs + ofs 175 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + cfg_phyb_10p3125g_comlane[i].ofs, ofs 250 drivers/net/ethernet/ti/netcp_xgbepcsr.c int select, int ofs) ofs 253 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + 0x0008, ((select << 5) + ofs) << 24, ofs 270 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + 0x00fc, ((select << 8) + ofs) << 16, ~0xf800ffff); ofs 274 drivers/net/ethernet/ti/netcp_xgbepcsr.c int select, int ofs) ofs 277 drivers/net/ethernet/ti/netcp_xgbepcsr.c netcp_xgbe_serdes_write_tbus_addr(serdes_regs, select, ofs); ofs 435 drivers/net/ethernet/ti/netcp_xgbepcsr.c reg_rmw(serdes_regs + cfg_cm_c1_c2[i].ofs + (0x200 * lane), ofs 627 drivers/net/wireless/intel/ipw2x00/ipw2100.c const u8 * data, u32 len, u32 ofs) ofs 632 drivers/net/wireless/intel/ipw2x00/ipw2100.c out = snprintf(buf, count, "%08X", ofs); ofs 664 drivers/net/wireless/intel/ipw2x00/ipw2100.c u32 ofs = 0; ofs 670 drivers/net/wireless/intel/ipw2x00/ipw2100.c snprint_line(line, sizeof(line), &data[ofs], ofs 671 drivers/net/wireless/intel/ipw2x00/ipw2100.c min(len, 16U), ofs)); ofs 672 drivers/net/wireless/intel/ipw2x00/ipw2100.c ofs += 16; ofs 2314 drivers/net/wireless/intel/ipw2x00/ipw2100.c #define SNAPSHOT_ADDR(ofs) (priv->snapshot[((ofs) >> 12) & 0xff] + ((ofs) & 0xfff)) ofs 221 drivers/net/wireless/intel/ipw2x00/ipw2200.c const u8 * data, u32 len, u32 ofs) ofs 226 drivers/net/wireless/intel/ipw2x00/ipw2200.c out = snprintf(buf, count, "%08X", ofs); ofs 258 drivers/net/wireless/intel/ipw2x00/ipw2200.c u32 ofs = 0; ofs 263 drivers/net/wireless/intel/ipw2x00/ipw2200.c snprint_line(line, sizeof(line), &data[ofs], ofs 264 drivers/net/wireless/intel/ipw2x00/ipw2200.c min(len, 16U), ofs); ofs 266 drivers/net/wireless/intel/ipw2x00/ipw2200.c ofs += 16; ofs 274 drivers/net/wireless/intel/ipw2x00/ipw2200.c u32 ofs = 0; ofs 278 drivers/net/wireless/intel/ipw2x00/ipw2200.c out = snprint_line(output, size, &data[ofs], ofs 279 drivers/net/wireless/intel/ipw2x00/ipw2200.c min_t(size_t, len, 16U), ofs); ofs 281 drivers/net/wireless/intel/ipw2x00/ipw2200.c ofs += 16; ofs 326 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline void _ipw_write8(struct ipw_priv *ipw, unsigned long ofs, ofs 329 drivers/net/wireless/intel/ipw2x00/ipw2200.c writeb(val, ipw->hw_base + ofs); ofs 333 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_write8(ipw, ofs, val) do { \ ofs 335 drivers/net/wireless/intel/ipw2x00/ipw2200.c __LINE__, (u32)(ofs), (u32)(val)); \ ofs 336 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_write8(ipw, ofs, val); \ ofs 340 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline void _ipw_write16(struct ipw_priv *ipw, unsigned long ofs, ofs 343 drivers/net/wireless/intel/ipw2x00/ipw2200.c writew(val, ipw->hw_base + ofs); ofs 347 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_write16(ipw, ofs, val) do { \ ofs 349 drivers/net/wireless/intel/ipw2x00/ipw2200.c __LINE__, (u32)(ofs), (u32)(val)); \ ofs 350 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_write16(ipw, ofs, val); \ ofs 354 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline void _ipw_write32(struct ipw_priv *ipw, unsigned long ofs, ofs 357 drivers/net/wireless/intel/ipw2x00/ipw2200.c writel(val, ipw->hw_base + ofs); ofs 361 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_write32(ipw, ofs, val) do { \ ofs 363 drivers/net/wireless/intel/ipw2x00/ipw2200.c __LINE__, (u32)(ofs), (u32)(val)); \ ofs 364 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_write32(ipw, ofs, val); \ ofs 368 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline u8 _ipw_read8(struct ipw_priv *ipw, unsigned long ofs) ofs 370 drivers/net/wireless/intel/ipw2x00/ipw2200.c return readb(ipw->hw_base + ofs); ofs 374 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_read8(ipw, ofs) ({ \ ofs 376 drivers/net/wireless/intel/ipw2x00/ipw2200.c (u32)(ofs)); \ ofs 377 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_read8(ipw, ofs); \ ofs 381 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline u16 _ipw_read16(struct ipw_priv *ipw, unsigned long ofs) ofs 383 drivers/net/wireless/intel/ipw2x00/ipw2200.c return readw(ipw->hw_base + ofs); ofs 387 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_read16(ipw, ofs) ({ \ ofs 389 drivers/net/wireless/intel/ipw2x00/ipw2200.c (u32)(ofs)); \ ofs 390 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_read16(ipw, ofs); \ ofs 394 drivers/net/wireless/intel/ipw2x00/ipw2200.c static inline u32 _ipw_read32(struct ipw_priv *ipw, unsigned long ofs) ofs 396 drivers/net/wireless/intel/ipw2x00/ipw2200.c return readl(ipw->hw_base + ofs); ofs 400 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define ipw_read32(ipw, ofs) ({ \ ofs 402 drivers/net/wireless/intel/ipw2x00/ipw2200.c (u32)(ofs)); \ ofs 403 drivers/net/wireless/intel/ipw2x00/ipw2200.c _ipw_read32(ipw, ofs); \ ofs 3220 drivers/net/wireless/intel/iwlegacy/3945-mac.c u32 size = sizeof(measure_report), len = 0, ofs = 0; ofs 3234 drivers/net/wireless/intel/iwlegacy/3945-mac.c hex_dump_to_buffer(data + ofs, size, 16, 1, buf + len, ofs 3240 drivers/net/wireless/intel/iwlegacy/3945-mac.c ofs += 16; ofs 1984 drivers/net/wireless/intel/iwlegacy/common.h _il_write8(struct il_priv *il, u32 ofs, u8 val) ofs 1986 drivers/net/wireless/intel/iwlegacy/common.h writeb(val, il->hw_base + ofs); ofs 1988 drivers/net/wireless/intel/iwlegacy/common.h #define il_write8(il, ofs, val) _il_write8(il, ofs, val) ofs 1991 drivers/net/wireless/intel/iwlegacy/common.h _il_wr(struct il_priv *il, u32 ofs, u32 val) ofs 1993 drivers/net/wireless/intel/iwlegacy/common.h writel(val, il->hw_base + ofs); ofs 1997 drivers/net/wireless/intel/iwlegacy/common.h _il_rd(struct il_priv *il, u32 ofs) ofs 1999 drivers/net/wireless/intel/iwlegacy/common.h return readl(il->hw_base + ofs); ofs 458 drivers/net/wireless/intel/iwlegacy/debug.c int pos = 0, ofs = 0, buf_size = 0; ofs 486 drivers/net/wireless/intel/iwlegacy/debug.c for (ofs = 0; ofs < eeprom_len; ofs += 16) { ofs 488 drivers/net/wireless/intel/iwlegacy/debug.c ofs, ptr + ofs); ofs 250 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c int pos = 0, ofs = 0, buf_size = 0; ofs 272 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c for (ofs = 0 ; ofs < eeprom_len ; ofs += 16) { ofs 274 drivers/net/wireless/intel/iwlwifi/dvm/debugfs.c ofs, ptr + ofs); ofs 708 drivers/net/wireless/intel/iwlwifi/fw/dbg.c u32 len, u32 ofs, u32 type) ofs 719 drivers/net/wireless/intel/iwlwifi/fw/dbg.c dump_mem->offset = cpu_to_le32(ofs); ofs 720 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_trans_read_mem_bytes(fwrt->trans, ofs, dump_mem->data, len); ofs 1012 drivers/net/wireless/intel/iwlwifi/fw/dbg.c u32 ofs = le32_to_cpu(fw_dbg_mem[i].ofs); ofs 1014 drivers/net/wireless/intel/iwlwifi/fw/dbg.c iwl_fw_dump_mem(fwrt, &dump_data, len, ofs, ofs 622 drivers/net/wireless/intel/iwlwifi/fw/file.h __le32 ofs; ofs 103 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val) ofs 105 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite8(trans->dev, ofs, val); ofs 106 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write8(trans, ofs, val); ofs 110 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val) ofs 112 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite32(trans->dev, ofs, val); ofs 113 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs, val); ofs 117 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val) ofs 119 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite64(trans->dev, ofs, val); ofs 120 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs, lower_32_bits(val)); ofs 121 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write32(trans, ofs + 4, upper_32_bits(val)); ofs 125 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read32(struct iwl_trans *trans, u32 ofs) ofs 127 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 val = iwl_trans_read32(trans, ofs); ofs 129 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_ioread32(trans->dev, ofs, val); ofs 203 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs) ofs 205 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 val = iwl_trans_read_prph(trans, ofs); ofs 206 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_ioread_prph32(trans->dev, ofs, val); ofs 211 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val) ofs 213 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite_prph32(trans->dev, ofs, val); ofs 214 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_trans_write_prph(trans, ofs, val); ofs 218 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val) ofs 220 drivers/net/wireless/intel/iwlwifi/iwl-io.c trace_iwlwifi_dev_iowrite_prph64(trans->dev, ofs, val); ofs 221 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, val & 0xffffffff); ofs 222 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs + 4, val >> 32); ofs 226 drivers/net/wireless/intel/iwlwifi/iwl-io.c u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs) ofs 232 drivers/net/wireless/intel/iwlwifi/iwl-io.c val = iwl_read_prph_no_grab(trans, ofs); ofs 239 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val) ofs 244 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, val); ofs 265 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) ofs 270 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, ofs 271 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_read_prph_no_grab(trans, ofs) | ofs 278 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, ofs 284 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, ofs 285 drivers/net/wireless/intel/iwlwifi/iwl-io.c (iwl_read_prph_no_grab(trans, ofs) & ofs 292 drivers/net/wireless/intel/iwlwifi/iwl-io.c void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask) ofs 298 drivers/net/wireless/intel/iwlwifi/iwl-io.c val = iwl_read_prph_no_grab(trans, ofs); ofs 299 drivers/net/wireless/intel/iwlwifi/iwl-io.c iwl_write_prph_no_grab(trans, ofs, (val & ~mask)); ofs 64 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write8(struct iwl_trans *trans, u32 ofs, u8 val); ofs 65 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write32(struct iwl_trans *trans, u32 ofs, u32 val); ofs 66 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write64(struct iwl_trans *trans, u64 ofs, u64 val); ofs 67 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read32(struct iwl_trans *trans, u32 ofs); ofs 89 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read_prph_no_grab(struct iwl_trans *trans, u32 ofs); ofs 90 drivers/net/wireless/intel/iwlwifi/iwl-io.h u32 iwl_read_prph(struct iwl_trans *trans, u32 ofs); ofs 91 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph_no_grab(struct iwl_trans *trans, u32 ofs, u32 val); ofs 92 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph64_no_grab(struct iwl_trans *trans, u64 ofs, u64 val); ofs 93 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_write_prph(struct iwl_trans *trans, u32 ofs, u32 val); ofs 96 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_set_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); ofs 97 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_set_bits_mask_prph(struct iwl_trans *trans, u32 ofs, ofs 99 drivers/net/wireless/intel/iwlwifi/iwl-io.h void iwl_clear_bits_prph(struct iwl_trans *trans, u32 ofs, u32 mask); ofs 113 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_umac_prph(struct iwl_trans *trans, u32 ofs) ofs 115 drivers/net/wireless/intel/iwlwifi/iwl-io.h return ofs + trans->trans_cfg->umac_prph_offset; ofs 118 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_read_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs) ofs 120 drivers/net/wireless/intel/iwlwifi/iwl-io.h return iwl_read_prph_no_grab(trans, ofs + ofs 124 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline u32 iwl_read_umac_prph(struct iwl_trans *trans, u32 ofs) ofs 126 drivers/net/wireless/intel/iwlwifi/iwl-io.h return iwl_read_prph(trans, ofs + trans->trans_cfg->umac_prph_offset); ofs 129 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_write_umac_prph_no_grab(struct iwl_trans *trans, u32 ofs, ofs 132 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_write_prph_no_grab(trans, ofs + trans->trans_cfg->umac_prph_offset, ofs 136 drivers/net/wireless/intel/iwlwifi/iwl-io.h static inline void iwl_write_umac_prph(struct iwl_trans *trans, u32 ofs, ofs 139 drivers/net/wireless/intel/iwlwifi/iwl-io.h iwl_write_prph(trans, ofs + trans->trans_cfg->umac_prph_offset, val); ofs 588 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write8)(struct iwl_trans *trans, u32 ofs, u8 val); ofs 589 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write32)(struct iwl_trans *trans, u32 ofs, u32 val); ofs 590 drivers/net/wireless/intel/iwlwifi/iwl-trans.h u32 (*read32)(struct iwl_trans *trans, u32 ofs); ofs 591 drivers/net/wireless/intel/iwlwifi/iwl-trans.h u32 (*read_prph)(struct iwl_trans *trans, u32 ofs); ofs 592 drivers/net/wireless/intel/iwlwifi/iwl-trans.h void (*write_prph)(struct iwl_trans *trans, u32 ofs, u32 val); ofs 1137 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write8(struct iwl_trans *trans, u32 ofs, u8 val) ofs 1139 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->write8(trans, ofs, val); ofs 1142 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write32(struct iwl_trans *trans, u32 ofs, u32 val) ofs 1144 drivers/net/wireless/intel/iwlwifi/iwl-trans.h trans->ops->write32(trans, ofs, val); ofs 1147 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_read32(struct iwl_trans *trans, u32 ofs) ofs 1149 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->read32(trans, ofs); ofs 1152 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline u32 iwl_trans_read_prph(struct iwl_trans *trans, u32 ofs) ofs 1154 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->read_prph(trans, ofs); ofs 1157 drivers/net/wireless/intel/iwlwifi/iwl-trans.h static inline void iwl_trans_write_prph(struct iwl_trans *trans, u32 ofs, ofs 1160 drivers/net/wireless/intel/iwlwifi/iwl-trans.h return trans->ops->write_prph(trans, ofs, val); ofs 202 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c unsigned int ofs, len; ofs 211 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c ofs = img->sec[IWL_UCODE_SECTION_DATA].offset; ofs 215 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c ofs = mvm->dbgfs_sram_offset; ofs 223 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c iwl_trans_read_mem_bytes(mvm->trans, ofs, ptr, len); ofs 1888 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write8(struct iwl_trans *trans, u32 ofs, u8 val) ofs 1890 drivers/net/wireless/intel/iwlwifi/pcie/trans.c writeb(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); ofs 1893 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static void iwl_trans_pcie_write32(struct iwl_trans *trans, u32 ofs, u32 val) ofs 1895 drivers/net/wireless/intel/iwlwifi/pcie/trans.c writel(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); ofs 1898 drivers/net/wireless/intel/iwlwifi/pcie/trans.c static u32 iwl_trans_pcie_read32(struct iwl_trans *trans, u32 ofs) ofs 1900 drivers/net/wireless/intel/iwlwifi/pcie/trans.c return readl(IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); ofs 11 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) ofs 22 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_HIF(ofs) (MT_HIF_BASE + (ofs)) ofs 96 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_PSE(ofs) (MT_PSE_BASE + (ofs)) ofs 134 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) ofs 175 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs)) ofs 233 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs)) ofs 265 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_ARB(ofs) (MT_WF_ARB_BASE + (ofs)) ofs 345 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_TMAC(ofs) (MT_WF_TMAC_BASE + (ofs)) ofs 400 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_RMAC(ofs) (MT_WF_RMAC_BASE + (ofs)) ofs 460 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_WF_SEC(ofs) (MT_WF_SEC_BASE + (ofs)) ofs 13 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_MCU(ofs) (MT_MCU_BASE + (ofs)) ofs 26 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_HIF(ofs) (MT_HIF_BASE + (ofs)) ofs 69 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_PHY(ofs) (MT_WF_PHY_BASE + (ofs)) ofs 103 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_CFG(ofs) (MT_WF_CFG_BASE + (ofs)) ofs 112 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_AGG(ofs) (MT_WF_AGG_BASE + (ofs)) ofs 140 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_TMAC(ofs) (MT_WF_TMAC_BASE + (ofs)) ofs 154 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_RMAC(ofs) (MT_WF_RMAC_BASE + (ofs)) ofs 180 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_DMA(ofs) (MT_WF_DMA_BASE + (ofs)) ofs 251 drivers/net/wireless/mediatek/mt76/mt7615/regs.h #define MT_WF_MIB(ofs) (MT_WF_MIB_BASE + (ofs)) ofs 476 drivers/pcmcia/cistpl.c u_int ofs; ofs 485 drivers/pcmcia/cistpl.c ofs = get_unaligned_le32(link + 1); ofs 491 drivers/pcmcia/cistpl.c ofs = tuple->LinkOffset; ofs 500 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, SPACE(tuple->Flags), ofs, 5, link); ofs 505 drivers/pcmcia/cistpl.c return ofs; ofs 506 drivers/pcmcia/cistpl.c remove_cis_cache(s, SPACE(tuple->Flags), ofs, 5); ofs 508 drivers/pcmcia/cistpl.c ofs = ofs >> 1; ofs 510 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, SPACE(tuple->Flags), ofs, 5, link); ofs 515 drivers/pcmcia/cistpl.c return ofs; ofs 516 drivers/pcmcia/cistpl.c remove_cis_cache(s, SPACE(tuple->Flags), ofs, 5); ofs 524 drivers/pcmcia/cistpl.c int ofs, i, attr; ofs 533 drivers/pcmcia/cistpl.c ofs = tuple->CISOffset + tuple->TupleLink; ofs 540 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs, 2, link); ofs 544 drivers/pcmcia/cistpl.c ofs++; ofs 551 drivers/pcmcia/cistpl.c ofs = follow_link(s, tuple); ofs 552 drivers/pcmcia/cistpl.c if (ofs < 0) ofs 555 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs, 2, link); ofs 571 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, 4, ofs 579 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, 4, ofs 591 drivers/pcmcia/cistpl.c tuple->LinkOffset = ofs + 3; ofs 595 drivers/pcmcia/cistpl.c ret = read_cis_cache(s, attr, ofs+2, ofs 619 drivers/pcmcia/cistpl.c ofs += link[1] + 2; ofs 628 drivers/pcmcia/cistpl.c tuple->CISOffset = ofs + 2; ofs 761 drivers/pcmcia/cistpl.c char *s, u_char *ofs, u_char *found) ofs 771 drivers/pcmcia/cistpl.c ofs[i] = j; ofs 805 drivers/pcmcia/cistpl.c vers_1->str, vers_1->ofs, &vers_1->ns); ofs 817 drivers/pcmcia/cistpl.c altstr->str, altstr->ofs, &altstr->ns); ofs 462 drivers/pcmcia/ds.c tmp = vers1->str + vers1->ofs[i]; ofs 20 drivers/phy/broadcom/phy-brcm-sata.c #define SATA_PCB_REG_OFFSET(ofs) ((ofs) * 4) ofs 203 drivers/phy/broadcom/phy-brcm-sata.c u32 ofs, u32 msk, u32 value) ofs 208 drivers/phy/broadcom/phy-brcm-sata.c tmp = readl(pcb_base + SATA_PCB_REG_OFFSET(ofs)); ofs 210 drivers/phy/broadcom/phy-brcm-sata.c writel(tmp, pcb_base + SATA_PCB_REG_OFFSET(ofs)); ofs 213 drivers/phy/broadcom/phy-brcm-sata.c static u32 brcm_sata_phy_rd(void __iomem *pcb_base, u32 bank, u32 ofs) ofs 216 drivers/phy/broadcom/phy-brcm-sata.c return readl(pcb_base + SATA_PCB_REG_OFFSET(ofs)); ofs 532 drivers/phy/broadcom/phy-brcm-usb-init.c u32 val, ofs; ofs 535 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = 0; ofs 538 drivers/phy/broadcom/phy-brcm-usb-init.c brcmusb_usb_mdio_write(ctrl_base, 0x1f, (0x8080 + ofs), ofs 543 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = PHY_PORT_SELECT_1; ofs 549 drivers/phy/broadcom/phy-brcm-usb-init.c u32 val, ofs; ofs 552 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = 0; ofs 555 drivers/phy/broadcom/phy-brcm-usb-init.c brcmusb_usb_mdio_write(ctrl_base, 0x1f, (0x8060 + ofs), ofs 559 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = PHY_PORT_SELECT_1; ofs 565 drivers/phy/broadcom/phy-brcm-usb-init.c u32 val, ofs; ofs 568 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = 0; ofs 571 drivers/phy/broadcom/phy-brcm-usb-init.c brcmusb_usb_mdio_write(ctrl_base, 0x1f, (0x80e0 + ofs), ofs 576 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = PHY_PORT_SELECT_1; ofs 582 drivers/phy/broadcom/phy-brcm-usb-init.c u32 ofs; ofs 627 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = 0; ofs 629 drivers/phy/broadcom/phy-brcm-usb-init.c brcmusb_usb_mdio_write(ctrl_base, 0x1f, (0x8040 + ofs), ofs 633 drivers/phy/broadcom/phy-brcm-usb-init.c brcmusb_usb_mdio_write(ctrl_base, 0x1f, (0x8020 + ofs), ofs 636 drivers/phy/broadcom/phy-brcm-usb-init.c ofs = PHY_PORT_SELECT_1; ofs 5624 drivers/pinctrl/sirf/pinctrl-atlas7.c u32 ofs; ofs 5627 drivers/pinctrl/sirf/pinctrl-atlas7.c ofs = gpio - bank->gpio_offset; ofs 5628 drivers/pinctrl/sirf/pinctrl-atlas7.c if (ofs >= bank->ngpio) ofs 5631 drivers/pinctrl/sirf/pinctrl-atlas7.c return bank->gpio_pins[ofs]; ofs 45 drivers/rtc/rtc-m48t59.c m48t59_mem_writeb(struct device *dev, u32 ofs, u8 val) ofs 49 drivers/rtc/rtc-m48t59.c writeb(val, m48t59->ioaddr+ofs); ofs 53 drivers/rtc/rtc-m48t59.c m48t59_mem_readb(struct device *dev, u32 ofs) ofs 57 drivers/rtc/rtc-m48t59.c return readb(m48t59->ioaddr+ofs); ofs 169 drivers/s390/char/diag_ftp.c ldfpl->offset = ftp->ofs; ofs 40 drivers/s390/char/hmcdrv_cache.c loff_t ofs; ofs 50 drivers/s390/char/hmcdrv_cache.c .ofs = -1, ofs 71 drivers/s390/char/hmcdrv_cache.c if (ftp->ofs >= hmcdrv_cache_file.fsize) /* EOF ? */ ofs 74 drivers/s390/char/hmcdrv_cache.c if ((hmcdrv_cache_file.ofs < 0) || /* has content? */ ofs 81 drivers/s390/char/hmcdrv_cache.c len = hmcdrv_cache_file.fsize - ftp->ofs; ofs 89 drivers/s390/char/hmcdrv_cache.c pos = ftp->ofs - hmcdrv_cache_file.ofs; ofs 143 drivers/s390/char/hmcdrv_cache.c hmcdrv_cache_file.ofs = ftp->ofs; ofs 150 drivers/s390/char/hmcdrv_cache.c hmcdrv_cache_file.ofs = -1; /* invalidate content */ ofs 205 drivers/s390/char/hmcdrv_cache.c hmcdrv_cache_file.ofs = -1; ofs 251 drivers/s390/char/hmcdrv_cache.c hmcdrv_cache_file.ofs = -1; ofs 169 drivers/s390/char/hmcdrv_ftp.c ftp->id, ftp->fname, (long long) ftp->ofs, ftp->len); ofs 191 drivers/s390/char/hmcdrv_ftp.c .ofs = 0, ofs 242 drivers/s390/char/hmcdrv_ftp.c struct hmcdrv_ftp_cmdspec ftp = {.len = len, .ofs = offset}; ofs 51 drivers/s390/char/hmcdrv_ftp.h loff_t ofs; ofs 113 drivers/s390/char/sclp_ftp.c sccb->evbuf.mdd.ftp.offset = ftp->ofs; ofs 178 drivers/s390/char/sclp_ftp.c ftp->id, ftp->fname, (long long) ftp->ofs, ftp->len); ofs 1990 drivers/scsi/ncr53c8xx.c #define FADDR(label,ofs)(RELOC_REGISTER | ((REG(label))+(ofs))) ofs 6686 drivers/scsi/ncr53c8xx.c u_char chg, ofs, per, fak, wide; ofs 6874 drivers/scsi/ncr53c8xx.c ofs = np->msgin[4]; ofs 6875 drivers/scsi/ncr53c8xx.c if (ofs==0) per=255; ofs 6882 drivers/scsi/ncr53c8xx.c if (ofs && starget) ofs 6893 drivers/scsi/ncr53c8xx.c if (ofs > tp->maxoffs) ofs 6894 drivers/scsi/ncr53c8xx.c {chg = 1; ofs = tp->maxoffs;} ofs 6901 drivers/scsi/ncr53c8xx.c if (ofs != 0) { ofs 6905 drivers/scsi/ncr53c8xx.c ofs = 0; ofs 6908 drivers/scsi/ncr53c8xx.c if (ofs == 0) { ofs 6917 drivers/scsi/ncr53c8xx.c "fak=%d chg=%d.\n", per, scntl3, ofs, fak, chg); ofs 6935 drivers/scsi/ncr53c8xx.c spi_offset(starget) = ofs; ofs 6936 drivers/scsi/ncr53c8xx.c ncr_setsync(np, cp, scntl3, (fak<<5)|ofs); ofs 6954 drivers/scsi/ncr53c8xx.c spi_offset(starget) = ofs; ofs 6955 drivers/scsi/ncr53c8xx.c ncr_setsync(np, cp, scntl3, (fak<<5)|ofs); ofs 6957 drivers/scsi/ncr53c8xx.c spi_populate_sync_msg(np->msgout, per, ofs); ofs 6964 drivers/scsi/ncr53c8xx.c if (!ofs) { ofs 1086 drivers/scsi/ncr53c8xx.h #define SCR_REG_OFS(ofs) ((((ofs) & 0x7f) << 16ul) + ((ofs) & 0x80)) ofs 1156 drivers/scsi/ncr53c8xx.h #define SCR_REG_OFS2(ofs) (((ofs) & 0xff) << 16ul) ofs 569 drivers/scsi/sym53c8xx_2/sym_defs.h #define SCR_REG_OFS(ofs) ((((ofs) & 0x7f) << 16ul) + ((ofs) & 0x80)) ofs 639 drivers/scsi/sym53c8xx_2/sym_defs.h #define SCR_REG_OFS2(ofs) (((ofs) & 0xff) << 16ul) ofs 182 drivers/scsi/sym53c8xx_2/sym_fw.h #define HADDR_2(label,ofs) (RELOC_SOFTC | \ ofs 183 drivers/scsi/sym53c8xx_2/sym_fw.h (offsetof(struct sym_hcb, label)+(ofs))) ofs 185 drivers/scsi/sym53c8xx_2/sym_fw.h #define RADDR_2(label,ofs) (RELOC_REGISTER | ((REG(label))+(ofs))) ofs 1931 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_settrans(struct sym_hcb *np, int target, u_char opts, u_char ofs, ofs 1952 drivers/scsi/sym53c8xx_2/sym_hipd.c sval = (sval & ~0x1f) | ofs; ofs 1954 drivers/scsi/sym53c8xx_2/sym_hipd.c sval = (sval & ~0x3f) | ofs; ofs 1959 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs != 0) { ofs 2092 drivers/scsi/sym53c8xx_2/sym_hipd.c u_char ofs, u_char per, u_char div, u_char fak) ofs 2098 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_settrans(np, target, 0, ofs, per, wide, div, fak); ofs 2102 drivers/scsi/sym53c8xx_2/sym_hipd.c else if (ofs) ofs 2107 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_offset(starget) = ofs; ofs 2112 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->tgoal.offset = ofs; ofs 2124 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_setpprot(struct sym_hcb *np, int target, u_char opts, u_char ofs, ofs 2130 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_settrans(np, target, opts, ofs, per, wide, div, fak); ofs 2132 drivers/scsi/sym53c8xx_2/sym_hipd.c if (wide || ofs) ofs 2138 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_offset(starget) = tp->tgoal.offset = ofs; ofs 3627 drivers/scsi/sym53c8xx_2/sym_hipd.c static int sym_evaluate_dp(struct sym_hcb *np, struct sym_ccb *cp, u32 scr, int *ofs) ofs 3639 drivers/scsi/sym53c8xx_2/sym_hipd.c dp_ofs = *ofs; ofs 3656 drivers/scsi/sym53c8xx_2/sym_hipd.c *ofs = dp_ofs; ofs 3729 drivers/scsi/sym53c8xx_2/sym_hipd.c *ofs = dp_ofs; ofs 3745 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_modify_dp(struct sym_hcb *np, struct sym_tcb *tp, struct sym_ccb *cp, int ofs) ofs 3747 drivers/scsi/sym53c8xx_2/sym_hipd.c int dp_ofs = ofs; ofs 3948 drivers/scsi/sym53c8xx_2/sym_hipd.c u_char chg, ofs, per, fak, div; ofs 3959 drivers/scsi/sym53c8xx_2/sym_hipd.c ofs = np->msgin[4]; ofs 3964 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs) { ofs 3965 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs > np->maxoffs) ofs 3966 drivers/scsi/sym53c8xx_2/sym_hipd.c {chg = 1; ofs = np->maxoffs;} ofs 3969 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs) { ofs 3978 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs && sym_getsync(np, 0, per, &div, &fak) < 0) ofs 3984 drivers/scsi/sym53c8xx_2/sym_hipd.c ofs, per, div, fak, chg); ofs 3997 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_setsync (np, target, ofs, per, div, fak); ofs 4008 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_populate_sync_msg(np->msgout, per, ofs); ofs 4067 drivers/scsi/sym53c8xx_2/sym_hipd.c unsigned char ofs = np->msgin[5]; ofs 4090 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs) { ofs 4092 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs > maxoffs) { ofs 4094 drivers/scsi/sym53c8xx_2/sym_hipd.c ofs = maxoffs; ofs 4098 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs) { ofs 4110 drivers/scsi/sym53c8xx_2/sym_hipd.c if (ofs && sym_getsync(np, dt, per, &div, &fak) < 0) ofs 4123 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_setpprot(np, target, opts, ofs, per, wide, div, fak); ofs 4134 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_populate_ppr_msg(np->msgout, per, ofs, wide, opts); ofs 4152 drivers/scsi/sym53c8xx_2/sym_hipd.c tp->tgoal.offset = ofs; ofs 79 drivers/staging/comedi/drivers/amplc_dio200_common.c unsigned int ofs; /* DIO base offset */ ofs 84 drivers/staging/comedi/drivers/amplc_dio200_common.c unsigned int ofs; ofs 175 drivers/staging/comedi/drivers/amplc_dio200_common.c data[1] = dio200_read8(dev, subpriv->ofs) & subpriv->valid_isns; ofs 193 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, 0); ofs 215 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, isn_bits); ofs 286 drivers/staging/comedi/drivers/amplc_dio200_common.c while ((intstat = (dio200_read8(dev, subpriv->ofs) & ofs 290 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, cur_enabled); ofs 309 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, cur_enabled); ofs 430 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->ofs = offset; ofs 436 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, 0); ofs 611 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_CTRL_REG, config); ofs 626 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_A_REG, ofs 630 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_B_REG, ofs 634 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_C_REG, ofs 639 drivers/staging/comedi/drivers/amplc_dio200_common.c val = dio200_read8(dev, subpriv->ofs + I8255_DATA_A_REG); ofs 640 drivers/staging/comedi/drivers/amplc_dio200_common.c val |= dio200_read8(dev, subpriv->ofs + I8255_DATA_B_REG) << 8; ofs 641 drivers/staging/comedi/drivers/amplc_dio200_common.c val |= dio200_read8(dev, subpriv->ofs + I8255_DATA_C_REG) << 16; ofs 685 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->ofs = offset; ofs 141 drivers/staging/fwserial/dma_fifo.c int ofs, l; ofs 153 drivers/staging/fwserial/dma_fifo.c ofs = fifo->in % fifo->capacity; ofs 154 drivers/staging/fwserial/dma_fifo.c l = min(n, fifo->capacity - ofs); ofs 155 drivers/staging/fwserial/dma_fifo.c memcpy(fifo->data + ofs, src, l); ofs 184 drivers/staging/fwserial/dma_fifo.c unsigned int len, n, ofs, l, limit; ofs 202 drivers/staging/fwserial/dma_fifo.c ofs = fifo->out % fifo->capacity; ofs 203 drivers/staging/fwserial/dma_fifo.c l = fifo->capacity - ofs; ofs 208 drivers/staging/fwserial/dma_fifo.c } else if (ofs + n > fifo->guard) { ofs 220 drivers/staging/fwserial/dma_fifo.c pended->data = fifo->data + ofs; ofs 2416 drivers/staging/fwserial/fwserial.c #define FW_UNIT_ADDRESS(ofs) (((CSR_OFFSET | CSR_DEPENDENT_INFO) << 24) \ ofs 2417 drivers/staging/fwserial/fwserial.c | (((ofs) - CSR_REGISTER_BASE) >> 2)) ofs 2422 drivers/staging/fwserial/fwserial.c #define FW_ROM_DESCRIPTOR(ofs) (((CSR_LEAF | CSR_DESCRIPTOR) << 24) | (ofs)) ofs 192 drivers/staging/media/allegro-dvt/nal-h264.c int ofs; ofs 203 drivers/staging/media/allegro-dvt/nal-h264.c ofs = rbsp->pos / 8; ofs 204 drivers/staging/media/allegro-dvt/nal-h264.c if (ofs >= rbsp->size) ofs 207 drivers/staging/media/allegro-dvt/nal-h264.c bit = (rbsp->data[ofs] >> shift) & 1; ofs 223 drivers/staging/media/allegro-dvt/nal-h264.c int ofs; ofs 229 drivers/staging/media/allegro-dvt/nal-h264.c ofs = rbsp->pos / 8; ofs 230 drivers/staging/media/allegro-dvt/nal-h264.c if (ofs >= rbsp->size) ofs 233 drivers/staging/media/allegro-dvt/nal-h264.c rbsp->data[ofs] &= ~(1 << shift); ofs 234 drivers/staging/media/allegro-dvt/nal-h264.c rbsp->data[ofs] |= value << shift; ofs 1870 drivers/tty/moxa.c void __iomem *baseAddr, *ofsAddr, *ofs; ofs 1896 drivers/tty/moxa.c ofs = baseAddr + DynPage_addr + bufhead + tail; ofs 1897 drivers/tty/moxa.c memcpy_toio(ofs, buffer, len); ofs 1910 drivers/tty/moxa.c ofs = baseAddr + DynPage_addr + pageofs; ofs 1911 drivers/tty/moxa.c memcpy_toio(ofs, buffer, len); ofs 1929 drivers/tty/moxa.c void __iomem *baseAddr, *ofsAddr, *ofs; ofs 1951 drivers/tty/moxa.c ofs = baseAddr + DynPage_addr + bufhead + head; ofs 1956 drivers/tty/moxa.c memcpy_fromio(dst, ofs, len); ofs 1965 drivers/tty/moxa.c ofs = baseAddr + DynPage_addr + pageofs; ofs 1968 drivers/tty/moxa.c memcpy_fromio(dst, ofs, len); ofs 91 drivers/tty/serial/atmel_serial.c unsigned int ofs; ofs 1462 drivers/tty/serial/atmel_serial.c xmit->tail += pdc->ofs; ofs 1465 drivers/tty/serial/atmel_serial.c port->icount.tx += pdc->ofs; ofs 1466 drivers/tty/serial/atmel_serial.c pdc->ofs = 0; ofs 1480 drivers/tty/serial/atmel_serial.c pdc->ofs = count; ofs 1513 drivers/tty/serial/atmel_serial.c pdc->ofs = 0; ofs 1618 drivers/tty/serial/atmel_serial.c tail = pdc->ofs; ofs 1644 drivers/tty/serial/atmel_serial.c tty_insert_flip_string(tport, pdc->buf + pdc->ofs, ofs 1651 drivers/tty/serial/atmel_serial.c pdc->ofs = head; ofs 1659 drivers/tty/serial/atmel_serial.c pdc->ofs = 0; ofs 1705 drivers/tty/serial/atmel_serial.c pdc->ofs = 0; ofs 2022 drivers/tty/serial/atmel_serial.c atmel_port->pdc_tx.ofs = 0; ofs 105 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 110 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 117 drivers/tty/serial/stm32-usart.c cr1 = readl_relaxed(port->membase + ofs->cr1); ofs 118 drivers/tty/serial/stm32-usart.c cr3 = readl_relaxed(port->membase + ofs->cr3); ofs 119 drivers/tty/serial/stm32-usart.c usartdiv = readl_relaxed(port->membase + ofs->brr); ofs 140 drivers/tty/serial/stm32-usart.c writel_relaxed(cr3, port->membase + ofs->cr3); ofs 141 drivers/tty/serial/stm32-usart.c writel_relaxed(cr1, port->membase + ofs->cr1); ofs 143 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DEM | USART_CR3_DEP); ofs 144 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, ofs 148 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 174 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 178 drivers/tty/serial/stm32-usart.c *sr = readl_relaxed(port->membase + ofs->isr); ofs 199 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 207 drivers/tty/serial/stm32-usart.c c = readl_relaxed(port->membase + ofs->rdr); ofs 219 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 242 drivers/tty/serial/stm32-usart.c if ((sr & USART_SR_ERR_MASK) && ofs->icr != UNDEF_REG) ofs 244 drivers/tty/serial/stm32-usart.c port->membase + ofs->icr); ofs 290 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32port->info->ofs; ofs 292 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 302 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 309 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr3, USART_CR3_TXFTIE); ofs 311 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, USART_CR1_TXEIE); ofs 317 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 320 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_TXFTIE); ofs 322 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, USART_CR1_TXEIE); ofs 328 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 332 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 338 drivers/tty/serial/stm32-usart.c if (!(readl_relaxed(port->membase + ofs->isr) & USART_SR_TXE)) ofs 340 drivers/tty/serial/stm32-usart.c writel_relaxed(xmit->buf[xmit->tail], port->membase + ofs->tdr); ofs 355 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32port->info->ofs; ofs 407 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 416 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 421 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 422 drivers/tty/serial/stm32-usart.c writel_relaxed(port->x_char, port->membase + ofs->tdr); ofs 426 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 435 drivers/tty/serial/stm32-usart.c if (ofs->icr == UNDEF_REG) ofs 436 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->isr, USART_SR_TC); ofs 438 drivers/tty/serial/stm32-usart.c writel_relaxed(USART_ICR_TCCF, port->membase + ofs->icr); ofs 456 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 461 drivers/tty/serial/stm32-usart.c sr = readl_relaxed(port->membase + ofs->isr); ofs 463 drivers/tty/serial/stm32-usart.c if ((sr & USART_SR_RTOF) && ofs->icr != UNDEF_REG) ofs 465 drivers/tty/serial/stm32-usart.c port->membase + ofs->icr); ofs 467 drivers/tty/serial/stm32-usart.c if ((sr & USART_SR_WUF) && (ofs->icr != UNDEF_REG)) ofs 469 drivers/tty/serial/stm32-usart.c port->membase + ofs->icr); ofs 503 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 505 drivers/tty/serial/stm32-usart.c return readl_relaxed(port->membase + ofs->isr) & USART_SR_TXE; ofs 511 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 514 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr3, USART_CR3_RTSE); ofs 516 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_RTSE); ofs 546 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 550 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, stm32_port->cr1_irq); ofs 552 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, stm32_port->cr3_irq); ofs 561 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 565 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, stm32_port->cr1_irq); ofs 567 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr3, stm32_port->cr3_irq); ofs 576 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 578 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, stm32_port->cr1_irq); ofs 580 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, stm32_port->cr3_irq); ofs 592 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 604 drivers/tty/serial/stm32-usart.c if (ofs->rqr != UNDEF_REG) ofs 605 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->rqr, USART_RQR_RXFRQ); ofs 609 drivers/tty/serial/stm32-usart.c val = readl_relaxed(port->membase + ofs->cr3); ofs 613 drivers/tty/serial/stm32-usart.c writel_relaxed(val, port->membase + ofs->cr3); ofs 620 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, val); ofs 628 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 639 drivers/tty/serial/stm32-usart.c ret = readl_relaxed_poll_timeout(port->membase + ofs->isr, ofs 646 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, val); ofs 685 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 702 drivers/tty/serial/stm32-usart.c writel_relaxed(0, port->membase + ofs->cr1); ofs 705 drivers/tty/serial/stm32-usart.c if (ofs->rqr != UNDEF_REG) ofs 706 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->rqr, ofs 713 drivers/tty/serial/stm32-usart.c cr3 = readl_relaxed(port->membase + ofs->cr3); ofs 743 drivers/tty/serial/stm32-usart.c if (ofs->rtor != UNDEF_REG && (stm32_port->rx_ch || ofs 752 drivers/tty/serial/stm32-usart.c writel_relaxed(bits, port->membase + ofs->rtor); ofs 782 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, USART_CR1_OVER8); ofs 786 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, USART_CR1_OVER8); ofs 791 drivers/tty/serial/stm32-usart.c writel_relaxed(mantissa | fraction, port->membase + ofs->brr); ofs 839 drivers/tty/serial/stm32-usart.c writel_relaxed(cr3, port->membase + ofs->cr3); ofs 840 drivers/tty/serial/stm32-usart.c writel_relaxed(cr2, port->membase + ofs->cr2); ofs 841 drivers/tty/serial/stm32-usart.c writel_relaxed(cr1, port->membase + ofs->cr1); ofs 843 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 879 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32port->info->ofs; ofs 889 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 1013 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32port->info->ofs; ofs 1037 drivers/tty/serial/stm32-usart.c config.src_addr = port->mapbase + ofs->rdr; ofs 1085 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32port->info->ofs; ofs 1109 drivers/tty/serial/stm32-usart.c config.dst_addr = port->mapbase + ofs->tdr; ofs 1205 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 1210 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAR); ofs 1220 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr3, USART_CR3_DMAT); ofs 1250 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 1252 drivers/tty/serial/stm32-usart.c while (!(readl_relaxed(port->membase + ofs->isr) & USART_SR_TXE)) ofs 1255 drivers/tty/serial/stm32-usart.c writel_relaxed(ch, port->membase + ofs->tdr); ofs 1262 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 1277 drivers/tty/serial/stm32-usart.c old_cr1 = readl_relaxed(port->membase + ofs->cr1); ofs 1280 drivers/tty/serial/stm32-usart.c writel_relaxed(new_cr1, port->membase + ofs->cr1); ofs 1285 drivers/tty/serial/stm32-usart.c writel_relaxed(old_cr1, port->membase + ofs->cr1); ofs 1349 drivers/tty/serial/stm32-usart.c struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; ofs 1357 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 1358 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, USART_CR1_UESM); ofs 1359 drivers/tty/serial/stm32-usart.c val = readl_relaxed(port->membase + ofs->cr3); ofs 1363 drivers/tty/serial/stm32-usart.c writel_relaxed(val, port->membase + ofs->cr3); ofs 1364 drivers/tty/serial/stm32-usart.c stm32_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); ofs 1366 drivers/tty/serial/stm32-usart.c stm32_clr_bits(port, ofs->cr1, USART_CR1_UESM); ofs 34 drivers/tty/serial/stm32-usart.h struct stm32_usart_offsets ofs; ofs 42 drivers/tty/serial/stm32-usart.h .ofs = { ofs 63 drivers/tty/serial/stm32-usart.h .ofs = { ofs 84 drivers/tty/serial/stm32-usart.h .ofs = { ofs 242 drivers/usb/host/xhci-tegra.c u32 ofs = CSB_PAGE_OFFSET(offset); ofs 246 drivers/usb/host/xhci-tegra.c return fpci_readl(tegra, XUSB_CFG_CSB_BASE_ADDR + ofs); ofs 253 drivers/usb/host/xhci-tegra.c u32 ofs = CSB_PAGE_OFFSET(offset); ofs 256 drivers/usb/host/xhci-tegra.c fpci_writel(tegra, value, XUSB_CFG_CSB_BASE_ADDR + ofs); ofs 190 drivers/watchdog/alim7101_wdt.c size_t ofs; ofs 197 drivers/watchdog/alim7101_wdt.c for (ofs = 0; ofs != count; ofs++) { ofs 199 drivers/watchdog/alim7101_wdt.c if (get_user(c, buf + ofs)) ofs 274 drivers/watchdog/machzwd.c size_t ofs; ofs 282 drivers/watchdog/machzwd.c for (ofs = 0; ofs != count; ofs++) { ofs 284 drivers/watchdog/machzwd.c if (get_user(c, buf + ofs)) ofs 170 drivers/watchdog/sbc60xxwdt.c size_t ofs; ofs 178 drivers/watchdog/sbc60xxwdt.c for (ofs = 0; ofs != count; ofs++) { ofs 180 drivers/watchdog/sbc60xxwdt.c if (get_user(c, buf + ofs)) ofs 224 drivers/watchdog/sc520_wdt.c size_t ofs; ofs 231 drivers/watchdog/sc520_wdt.c for (ofs = 0; ofs != count; ofs++) { ofs 233 drivers/watchdog/sc520_wdt.c if (get_user(c, buf + ofs)) ofs 192 drivers/watchdog/w83877f_wdt.c size_t ofs; ofs 200 drivers/watchdog/w83877f_wdt.c for (ofs = 0; ofs != count; ofs++) { ofs 202 drivers/watchdog/w83877f_wdt.c if (get_user(c, buf + ofs)) ofs 333 drivers/watchdog/w83977f_wdt.c size_t ofs; ofs 341 drivers/watchdog/w83977f_wdt.c for (ofs = 0; ofs != count; ofs++) { ofs 343 drivers/watchdog/w83977f_wdt.c if (get_user(c, buf + ofs)) ofs 458 fs/ceph/super.c int ofs = offsetof(struct ceph_mount_options, snapdir_name); ofs 461 fs/ceph/super.c ret = memcmp(fsopt1, fsopt2, ofs); ofs 128 fs/cifs/link.c unsigned int ofs; ofs 150 fs/cifs/link.c ofs = CIFS_MF_SYMLINK_LINK_OFFSET; ofs 151 fs/cifs/link.c memcpy(buf + ofs, link_str, link_len); ofs 153 fs/cifs/link.c ofs += link_len; ofs 154 fs/cifs/link.c if (ofs < CIFS_MF_SYMLINK_FILE_SIZE) { ofs 155 fs/cifs/link.c buf[ofs] = '\n'; ofs 156 fs/cifs/link.c ofs++; ofs 159 fs/cifs/link.c while (ofs < CIFS_MF_SYMLINK_FILE_SIZE) { ofs 160 fs/cifs/link.c buf[ofs] = ' '; ofs 161 fs/cifs/link.c ofs++; ofs 25 fs/erofs/dir.c void *dentry_blk, unsigned int *ofs, ofs 28 fs/erofs/dir.c struct erofs_dirent *de = dentry_blk + *ofs; ofs 62 fs/erofs/dir.c *ofs += sizeof(struct erofs_dirent); ofs 64 fs/erofs/dir.c *ofs = maxsize; ofs 74 fs/erofs/dir.c unsigned int ofs = ctx->pos % EROFS_BLKSIZ; ofs 109 fs/erofs/dir.c dirsize - ctx->pos + ofs, PAGE_SIZE); ofs 115 fs/erofs/dir.c ofs = roundup(ofs, sizeof(struct erofs_dirent)); ofs 116 fs/erofs/dir.c if (ofs >= nameoff) ofs 120 fs/erofs/dir.c err = erofs_fill_dentries(dir, ctx, de, &ofs, ofs 127 fs/erofs/dir.c ctx->pos = blknr_to_addr(i) + ofs; ofs 132 fs/erofs/dir.c ofs = 0; ofs 176 fs/erofs/inode.c unsigned int ofs; ofs 182 fs/erofs/inode.c ofs = erofs_blkoff(inode_loc); ofs 185 fs/erofs/inode.c __func__, vi->nid, ofs, blkaddr); ofs 198 fs/erofs/inode.c err = erofs_read_inode(inode, data + ofs); ofs 213 fs/erofs/inode.c err = erofs_fill_symlink(inode, data, ofs); ofs 16 fs/erofs/xattr.c unsigned int ofs; ofs 90 fs/erofs/xattr.c it.ofs = erofs_blkoff(iloc(sbi, vi->nid) + vi->inode_isize); ofs 102 fs/erofs/xattr.c ih = (struct erofs_xattr_ibody_header *)(it.kaddr + it.ofs); ofs 114 fs/erofs/xattr.c it.ofs += sizeof(struct erofs_xattr_ibody_header); ofs 117 fs/erofs/xattr.c if (it.ofs >= EROFS_BLKSIZ) { ofs 119 fs/erofs/xattr.c DBG_BUGON(it.ofs != EROFS_BLKSIZ); ofs 132 fs/erofs/xattr.c it.ofs = 0; ofs 135 fs/erofs/xattr.c le32_to_cpu(*(__le32 *)(it.kaddr + it.ofs)); ofs 136 fs/erofs/xattr.c it.ofs += sizeof(__le32); ofs 165 fs/erofs/xattr.c if (it->ofs < EROFS_BLKSIZ) ofs 170 fs/erofs/xattr.c it->blkaddr += erofs_blknr(it->ofs); ofs 181 fs/erofs/xattr.c it->ofs = erofs_blkoff(it->ofs); ofs 201 fs/erofs/xattr.c it->ofs = erofs_blkoff(iloc(sbi, vi->nid) + inline_xattr_ofs); ofs 233 fs/erofs/xattr.c entry = *(struct erofs_xattr_entry *)(it->kaddr + it->ofs); ofs 245 fs/erofs/xattr.c it->ofs += sizeof(struct erofs_xattr_entry); ofs 251 fs/erofs/xattr.c it->ofs += entry.e_name_len + value_sz; ofs 259 fs/erofs/xattr.c if (it->ofs >= EROFS_BLKSIZ) { ofs 260 fs/erofs/xattr.c DBG_BUGON(it->ofs > EROFS_BLKSIZ); ofs 265 fs/erofs/xattr.c it->ofs = 0; ofs 268 fs/erofs/xattr.c slice = min_t(unsigned int, PAGE_SIZE - it->ofs, ofs 272 fs/erofs/xattr.c err = op->name(it, processed, it->kaddr + it->ofs, slice); ofs 274 fs/erofs/xattr.c it->ofs += entry.e_name_len - processed + value_sz; ofs 278 fs/erofs/xattr.c it->ofs += slice; ofs 288 fs/erofs/xattr.c it->ofs += value_sz; ofs 294 fs/erofs/xattr.c if (it->ofs >= EROFS_BLKSIZ) { ofs 295 fs/erofs/xattr.c DBG_BUGON(it->ofs > EROFS_BLKSIZ); ofs 300 fs/erofs/xattr.c it->ofs = 0; ofs 303 fs/erofs/xattr.c slice = min_t(unsigned int, PAGE_SIZE - it->ofs, ofs 305 fs/erofs/xattr.c op->value(it, processed, it->kaddr + it->ofs, slice); ofs 306 fs/erofs/xattr.c it->ofs += slice; ofs 312 fs/erofs/xattr.c it->ofs = EROFS_XATTR_ALIGN(it->ofs); ofs 399 fs/erofs/xattr.c it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); ofs 622 fs/erofs/xattr.c it->it.ofs = xattrblock_offset(sbi, vi->xattr_shared_xattrs[i]); ofs 387 fs/erofs/zmap.c unsigned long long ofs, end; ofs 404 fs/erofs/zmap.c ofs = map->m_la; ofs 405 fs/erofs/zmap.c m.lcn = ofs >> lclusterbits; ofs 406 fs/erofs/zmap.c endoff = ofs & ((1 << lclusterbits) - 1); ofs 446 fs/erofs/zmap.c m.type, ofs, vi->nid); ofs 1148 fs/f2fs/data.c int err = 0, ofs = 1; ofs 1286 fs/f2fs/data.c blkaddr == (map->m_pblk + ofs)) || ofs 1289 fs/f2fs/data.c ofs++; ofs 1323 fs/f2fs/data.c unsigned int ofs = start_pgofs - map->m_lblk; ofs 1326 fs/f2fs/data.c start_pgofs, map->m_pblk + ofs, ofs 1327 fs/f2fs/data.c map->m_len - ofs); ofs 1348 fs/f2fs/data.c unsigned int ofs = start_pgofs - map->m_lblk; ofs 1351 fs/f2fs/data.c start_pgofs, map->m_pblk + ofs, ofs 1352 fs/f2fs/data.c map->m_len - ofs); ofs 19 fs/f2fs/extent_cache.c unsigned int ofs) ofs 22 fs/f2fs/extent_cache.c if (cached_re->ofs <= ofs && ofs 23 fs/f2fs/extent_cache.c cached_re->ofs + cached_re->len > ofs) { ofs 31 fs/f2fs/extent_cache.c unsigned int ofs) ofs 39 fs/f2fs/extent_cache.c if (ofs < re->ofs) ofs 41 fs/f2fs/extent_cache.c else if (ofs >= re->ofs + re->len) ofs 50 fs/f2fs/extent_cache.c struct rb_entry *cached_re, unsigned int ofs) ofs 54 fs/f2fs/extent_cache.c re = __lookup_rb_tree_fast(cached_re, ofs); ofs 56 fs/f2fs/extent_cache.c return __lookup_rb_tree_slow(root, ofs); ofs 64 fs/f2fs/extent_cache.c unsigned int ofs, bool *leftmost) ofs 73 fs/f2fs/extent_cache.c if (ofs < re->ofs) { ofs 75 fs/f2fs/extent_cache.c } else if (ofs >= re->ofs + re->len) { ofs 97 fs/f2fs/extent_cache.c unsigned int ofs, ofs 117 fs/f2fs/extent_cache.c if (re->ofs <= ofs && re->ofs + re->len > ofs) ofs 128 fs/f2fs/extent_cache.c if (ofs < re->ofs) { ofs 130 fs/f2fs/extent_cache.c } else if (ofs >= re->ofs + re->len) { ofs 144 fs/f2fs/extent_cache.c if (parent && ofs > re->ofs) ofs 149 fs/f2fs/extent_cache.c if (parent && ofs < re->ofs) ofs 155 fs/f2fs/extent_cache.c if (ofs == re->ofs || force) { ofs 160 fs/f2fs/extent_cache.c if (ofs == re->ofs + re->len - 1 || force) { ofs 186 fs/f2fs/extent_cache.c if (cur_re->ofs + cur_re->len > next_re->ofs) { ofs 188 fs/f2fs/extent_cache.c cur_re->ofs, cur_re->len, ofs 189 fs/f2fs/extent_cache.c next_re->ofs, next_re->len); ofs 569 fs/f2fs/f2fs.h unsigned int ofs; /* start offset of the entry */ ofs 1740 fs/f2fs/f2fs.h static inline bool f2fs_has_xattr_block(unsigned int ofs) ofs 1742 fs/f2fs/f2fs.h return ofs == XATTR_NODE_OFFSET; ofs 3058 fs/f2fs/f2fs.h struct page *f2fs_new_node_page(struct dnode_of_data *dn, unsigned int ofs); ofs 3532 fs/f2fs/f2fs.h struct rb_entry *cached_re, unsigned int ofs); ofs 3536 fs/f2fs/f2fs.h unsigned int ofs, bool *leftmost); ofs 3538 fs/f2fs/f2fs.h struct rb_entry *cached_re, unsigned int ofs, ofs 519 fs/f2fs/file.c int nr_free = 0, ofs = dn->ofs_in_node, len = count; ofs 527 fs/f2fs/file.c addr = blkaddr_in_node(raw_node) + base + ofs; ofs 556 fs/f2fs/file.c dn->inode) + ofs; ofs 560 fs/f2fs/file.c dn->ofs_in_node = ofs; ofs 895 fs/f2fs/node.c int ofs, int depth) ofs 916 fs/f2fs/node.c f2fs_ra_node_pages(page, ofs, NIDS_PER_BLOCK); ofs 920 fs/f2fs/node.c for (i = ofs; i < NIDS_PER_BLOCK; i++, freed++) { ofs 932 fs/f2fs/node.c child_nofs = nofs + ofs * (NIDS_PER_BLOCK + 1) + 1; ofs 933 fs/f2fs/node.c for (i = ofs; i < NIDS_PER_BLOCK; i++) { ofs 952 fs/f2fs/node.c if (!ofs) { ofs 1216 fs/f2fs/node.c struct page *f2fs_new_node_page(struct dnode_of_data *dn, unsigned int ofs) ofs 1230 fs/f2fs/node.c if (unlikely((err = inc_valid_node_count(sbi, dn->inode, !ofs)))) ofs 1236 fs/f2fs/node.c dec_valid_node_count(sbi, dn->inode, !ofs); ofs 1249 fs/f2fs/node.c fill_node_footer(page, dn->nid, dn->inode->i_ino, ofs, true); ofs 1256 fs/f2fs/node.c if (f2fs_has_xattr_block(ofs)) ofs 1259 fs/f2fs/node.c if (ofs == 0) ofs 268 fs/f2fs/node.h nid_t ino, unsigned int ofs, bool reset) ofs 282 fs/f2fs/node.h rn->footer.flag = cpu_to_le32((ofs << OFFSET_BIT_SHIFT) | ofs 344 fs/f2fs/node.h unsigned int ofs = ofs_of_node(node_page); ofs 346 fs/f2fs/node.h if (f2fs_has_xattr_block(ofs)) ofs 349 fs/f2fs/node.h if (ofs == 3 || ofs == 4 + NIDS_PER_BLOCK || ofs 350 fs/f2fs/node.h ofs == 5 + 2 * NIDS_PER_BLOCK) ofs 352 fs/f2fs/node.h if (ofs >= 6 + 2 * NIDS_PER_BLOCK) { ofs 353 fs/f2fs/node.h ofs -= 6 + 2 * NIDS_PER_BLOCK; ofs 354 fs/f2fs/node.h if (!((long int)ofs % (NIDS_PER_BLOCK + 1))) ofs 33 fs/jffs2/compr_rubin.c unsigned int ofs; ofs 48 fs/jffs2/compr_rubin.c unsigned buflen, unsigned ofs, ofs 53 fs/jffs2/compr_rubin.c pp->ofs = ofs; ofs 59 fs/jffs2/compr_rubin.c if (pp->ofs >= pp->buflen - (use_reserved?0:pp->reserve)) ofs 63 fs/jffs2/compr_rubin.c pp->buf[pp->ofs >> 3] |= (1<<(7-(pp->ofs & 7))); ofs 65 fs/jffs2/compr_rubin.c pp->buf[pp->ofs >> 3] &= ~(1<<(7-(pp->ofs & 7))); ofs 67 fs/jffs2/compr_rubin.c pp->ofs++; ofs 74 fs/jffs2/compr_rubin.c return pp->ofs; ofs 81 fs/jffs2/compr_rubin.c bit = (pp->buf[pp->ofs >> 3] >> (7-(pp->ofs & 7))) & 1; ofs 83 fs/jffs2/compr_rubin.c pp->ofs++; ofs 98 fs/jffs2/debug.c if (frag->ofs & (PAGE_SIZE-1) && frag_prev(frag) ofs 105 fs/jffs2/debug.c if ((frag->ofs+frag->size) & (PAGE_SIZE-1) && frag_next(frag) ofs 108 fs/jffs2/debug.c ref_offset(fn->raw), frag->ofs, frag->ofs+frag->size); ofs 126 fs/jffs2/debug.c uint32_t ofs, int len) ofs 136 fs/jffs2/debug.c ret = jffs2_flash_read(c, ofs, len, &retlen, buf); ofs 151 fs/jffs2/debug.c ofs, ofs + i); ofs 152 fs/jffs2/debug.c __jffs2_dbg_dump_buffer(buf, len, ofs); ofs 713 fs/jffs2/debug.c this->ofs, this->ofs+this->size, ref_offset(this->node->raw), ofs 718 fs/jffs2/debug.c this->ofs, this->ofs+this->size, this, frag_left(this), ofs 720 fs/jffs2/debug.c if (this->ofs != lastofs) ofs 722 fs/jffs2/debug.c lastofs = this->ofs + this->size; ofs 773 fs/jffs2/debug.c __jffs2_dbg_dump_node(struct jffs2_sb_info *c, uint32_t ofs) ofs 781 fs/jffs2/debug.c printk(JFFS2_DBG_MSG_PREFIX " dump node at offset %#08x.\n", ofs); ofs 783 fs/jffs2/debug.c ret = jffs2_flash_read(c, ofs, len, &retlen, (unsigned char *)&node); ofs 192 fs/jffs2/debug.h uint32_t ofs, int len); ofs 216 fs/jffs2/debug.h __jffs2_dbg_dump_node(struct jffs2_sb_info *c, uint32_t ofs); ofs 227 fs/jffs2/debug.h #define jffs2_dbg_prewrite_paranoia_check(c, ofs, len) \ ofs 228 fs/jffs2/debug.h __jffs2_dbg_prewrite_paranoia_check(c, ofs, len) ofs 234 fs/jffs2/debug.h #define jffs2_dbg_prewrite_paranoia_check(c, ofs, len) ofs 252 fs/jffs2/debug.h #define jffs2_dbg_dump_node(c, ofs) \ ofs 253 fs/jffs2/debug.h __jffs2_dbg_dump_node(c, ofs); ofs 262 fs/jffs2/debug.h #define jffs2_dbg_dump_node(c, ofs) ofs 316 fs/jffs2/erase.c uint32_t ofs; ofs 361 fs/jffs2/erase.c for (ofs = jeb->offset; ofs < jeb->offset + c->sector_size; ) { ofs 362 fs/jffs2/erase.c uint32_t readlen = min((uint32_t)PAGE_SIZE, jeb->offset + c->sector_size - ofs); ofs 365 fs/jffs2/erase.c *bad_offset = ofs; ofs 367 fs/jffs2/erase.c ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); ofs 370 fs/jffs2/erase.c ofs, ret); ofs 376 fs/jffs2/erase.c ofs, readlen, retlen); ofs 391 fs/jffs2/erase.c ofs += readlen; ofs 537 fs/jffs2/gc.c end = frag->ofs + frag->size; ofs 539 fs/jffs2/gc.c start = frag->ofs; ofs 808 fs/jffs2/gc.c ilen = last_frag->ofs + last_frag->size; ofs 1087 fs/jffs2/gc.c ilen = frag->ofs + frag->size; ofs 1139 fs/jffs2/gc.c for (frag = jffs2_lookup_node_frag(&f->fragtree, fn->ofs); ofs 1141 fs/jffs2/gc.c if (frag->ofs > fn->size + fn->ofs) ofs 1203 fs/jffs2/gc.c BUG_ON(frag->ofs != start); ofs 1206 fs/jffs2/gc.c while((frag = frag_prev(frag)) && frag->ofs >= min) { ofs 1210 fs/jffs2/gc.c if (frag->ofs > min) { ofs 1212 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); ofs 1213 fs/jffs2/gc.c start = frag->ofs; ofs 1219 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); ofs 1234 fs/jffs2/gc.c frag->ofs, ofs 1235 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1237 fs/jffs2/gc.c start = frag->ofs; ofs 1242 fs/jffs2/gc.c frag->ofs, ofs 1243 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1249 fs/jffs2/gc.c frag->ofs, ofs 1250 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1252 fs/jffs2/gc.c start = frag->ofs; ofs 1262 fs/jffs2/gc.c while((frag = frag_next(frag)) && frag->ofs+frag->size <= max) { ofs 1266 fs/jffs2/gc.c if (frag->ofs+frag->size < max) { ofs 1268 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); ofs 1269 fs/jffs2/gc.c end = frag->ofs + frag->size; ofs 1275 fs/jffs2/gc.c frag->ofs, frag->ofs+frag->size); ofs 1290 fs/jffs2/gc.c frag->ofs, ofs 1291 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1293 fs/jffs2/gc.c end = frag->ofs + frag->size; ofs 1298 fs/jffs2/gc.c frag->ofs, ofs 1299 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1305 fs/jffs2/gc.c frag->ofs, ofs 1306 fs/jffs2/gc.c frag->ofs + frag->size, ofs 1308 fs/jffs2/gc.c end = frag->ofs + frag->size; ofs 1315 fs/jffs2/gc.c D1(BUG_ON(end > frag_last(&f->fragtree)->ofs + frag_last(&f->fragtree)->size)); ofs 66 fs/jffs2/nodelist.c if (frag && frag->ofs != size) { ofs 67 fs/jffs2/nodelist.c if (frag->ofs+frag->size > size) { ofs 68 fs/jffs2/nodelist.c frag->size = size - frag->ofs; ofs 72 fs/jffs2/nodelist.c while (frag && frag->ofs >= size) { ofs 88 fs/jffs2/nodelist.c if (frag->ofs + frag->size < size) ofs 89 fs/jffs2/nodelist.c return frag->ofs + frag->size; ofs 93 fs/jffs2/nodelist.c if (frag->node && (frag->ofs & (PAGE_SIZE - 1)) == 0) { ofs 95 fs/jffs2/nodelist.c frag->ofs, frag->ofs + frag->size); ofs 109 fs/jffs2/nodelist.c ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size); ofs 114 fs/jffs2/nodelist.c ref_offset(this->node->raw), this->node->ofs, this->node->ofs+this->node->size, this->node->frags); ofs 127 fs/jffs2/nodelist.c dbg_fragtree2("insert frag (0x%04x-0x%04x)\n", newfrag->ofs, newfrag->ofs + newfrag->size); ofs 133 fs/jffs2/nodelist.c if (newfrag->ofs > base->ofs) ofs 135 fs/jffs2/nodelist.c else if (newfrag->ofs < base->ofs) ofs 138 fs/jffs2/nodelist.c JFFS2_ERROR("duplicate frag at %08x (%p,%p)\n", newfrag->ofs, newfrag, base); ofs 149 fs/jffs2/nodelist.c static struct jffs2_node_frag * new_fragment(struct jffs2_full_dnode *fn, uint32_t ofs, uint32_t size) ofs 155 fs/jffs2/nodelist.c newfrag->ofs = ofs; ofs 173 fs/jffs2/nodelist.c if (lastend < newfrag->node->ofs) { ofs 177 fs/jffs2/nodelist.c holefrag= new_fragment(NULL, lastend, newfrag->node->ofs - lastend); ofs 188 fs/jffs2/nodelist.c holefrag->ofs, holefrag->ofs + holefrag->size); ofs 192 fs/jffs2/nodelist.c holefrag->ofs, holefrag->ofs + holefrag->size); ofs 221 fs/jffs2/nodelist.c this = jffs2_lookup_node_frag(root, newfrag->node->ofs); ofs 225 fs/jffs2/nodelist.c this->ofs, this->ofs+this->size, this->node?(ref_offset(this->node->raw)):0xffffffff, this); ofs 226 fs/jffs2/nodelist.c lastend = this->ofs + this->size; ofs 233 fs/jffs2/nodelist.c if (lastend <= newfrag->ofs) { ofs 240 fs/jffs2/nodelist.c if (lastend && (lastend-1) >> PAGE_SHIFT == newfrag->ofs >> PAGE_SHIFT) { ofs 251 fs/jffs2/nodelist.c this->ofs, this->ofs + this->size, ofs 255 fs/jffs2/nodelist.c this->ofs, this->ofs + this->size); ofs 260 fs/jffs2/nodelist.c if (newfrag->ofs > this->ofs) { ofs 269 fs/jffs2/nodelist.c if (this->ofs + this->size > newfrag->ofs + newfrag->size) { ofs 275 fs/jffs2/nodelist.c this->ofs, this->ofs+this->size, ref_offset(this->node->raw)); ofs 278 fs/jffs2/nodelist.c this->ofs, this->ofs+this->size); ofs 281 fs/jffs2/nodelist.c newfrag2 = new_fragment(this->node, newfrag->ofs + newfrag->size, ofs 282 fs/jffs2/nodelist.c this->ofs + this->size - newfrag->ofs - newfrag->size); ofs 289 fs/jffs2/nodelist.c this->size = newfrag->ofs - this->ofs; ofs 306 fs/jffs2/nodelist.c this->size = newfrag->ofs - this->ofs; ofs 315 fs/jffs2/nodelist.c newfrag, newfrag->ofs, newfrag->ofs+newfrag->size, this, this->ofs, this->ofs+this->size); ofs 319 fs/jffs2/nodelist.c if (newfrag->ofs + newfrag->size >= this->ofs+this->size) { ofs 320 fs/jffs2/nodelist.c dbg_fragtree2("obsoleting node frag %p (%x-%x)\n", this, this->ofs, this->ofs+this->size); ofs 323 fs/jffs2/nodelist.c this->ofs += newfrag->size; ofs 334 fs/jffs2/nodelist.c while ((this = frag_next(newfrag)) && newfrag->ofs + newfrag->size >= this->ofs + this->size) { ofs 337 fs/jffs2/nodelist.c this, this->ofs, this->ofs+this->size); ofs 344 fs/jffs2/nodelist.c if (!this || newfrag->ofs + newfrag->size == this->ofs) ofs 348 fs/jffs2/nodelist.c this->size = (this->ofs + this->size) - (newfrag->ofs + newfrag->size); ofs 349 fs/jffs2/nodelist.c this->ofs = newfrag->ofs + newfrag->size; ofs 371 fs/jffs2/nodelist.c newfrag = new_fragment(fn, fn->ofs, fn->size); ofs 377 fs/jffs2/nodelist.c fn->ofs, fn->ofs+fn->size, ref_offset(fn->raw), newfrag); ofs 385 fs/jffs2/nodelist.c if (newfrag->ofs & (PAGE_SIZE-1)) { ofs 394 fs/jffs2/nodelist.c if ((newfrag->ofs+newfrag->size) & (PAGE_SIZE-1)) { ofs 539 fs/jffs2/nodelist.c if (frag->ofs + frag->size <= offset) { ofs 541 fs/jffs2/nodelist.c if (!prev || frag->ofs > prev->ofs) ofs 544 fs/jffs2/nodelist.c } else if (frag->ofs > offset) { ofs 556 fs/jffs2/nodelist.c prev->ofs, prev->ofs+prev->size); ofs 587 fs/jffs2/nodelist.c uint32_t ofs, uint32_t len, ofs 608 fs/jffs2/nodelist.c ref->flash_offset, ofs, ref->next_in_ino, len); ofs 610 fs/jffs2/nodelist.c ref->flash_offset = ofs; ofs 682 fs/jffs2/nodelist.c uint32_t ofs = jeb->offset + c->sector_size - jeb->free_size; ofs 683 fs/jffs2/nodelist.c ofs |= REF_OBSOLETE; ofs 685 fs/jffs2/nodelist.c jffs2_link_node_ref(c, jeb, ofs, size, NULL); ofs 216 fs/jffs2/nodelist.h uint32_t ofs; /* The offset to which the data of this node belongs */ ofs 274 fs/jffs2/nodelist.h uint32_t ofs; /* The offset to which this fragment belongs */ ofs 377 fs/jffs2/nodelist.h uint32_t ofs, uint32_t len, ofs 390 fs/jffs2/nodelist.h uint32_t ofs, uint32_t len, ofs 455 fs/jffs2/nodelist.h int ofs, int len); ofs 501 fs/jffs2/nodemgmt.c uint32_t ofs, uint32_t len, ofs 507 fs/jffs2/nodemgmt.c jeb = &c->blocks[ofs / c->sector_size]; ofs 510 fs/jffs2/nodemgmt.c __func__, ofs & ~3, ofs & 3, len); ofs 515 fs/jffs2/nodemgmt.c if ((c->nextblock || ((ofs & 3) != REF_OBSOLETE)) ofs 516 fs/jffs2/nodemgmt.c && (jeb != c->nextblock || (ofs & ~3) != jeb->offset + (c->sector_size - jeb->free_size))) { ofs 518 fs/jffs2/nodemgmt.c ofs & ~3, ofs & 3); ofs 530 fs/jffs2/nodemgmt.c new = jffs2_link_node_ref(c, jeb, ofs, len, ic); ofs 79 fs/jffs2/os-linux.h #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, buf) ofs 80 fs/jffs2/os-linux.h #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) ofs 117 fs/jffs2/os-linux.h int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char *buf); ofs 118 fs/jffs2/os-linux.h int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf); ofs 192 fs/jffs2/os-linux.h int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, ofs 25 fs/jffs2/read.c int ofs, int len) ofs 71 fs/jffs2/read.c D1(if(ofs + len > je32_to_cpu(ri->dsize)) { ofs 73 fs/jffs2/read.c len, ofs, je32_to_cpu(ri->dsize)); ofs 143 fs/jffs2/read.c memcpy(buf, decomprbuf+ofs, len); ofs 177 fs/jffs2/read.c if (unlikely(!frag || frag->ofs > offset || ofs 178 fs/jffs2/read.c frag->ofs + frag->size <= offset)) { ofs 180 fs/jffs2/read.c if (frag && frag->ofs > offset) { ofs 182 fs/jffs2/read.c f->inocache->ino, frag->ofs, offset); ofs 183 fs/jffs2/read.c holesize = min(holesize, frag->ofs - offset); ofs 192 fs/jffs2/read.c uint32_t holeend = min(end, frag->ofs + frag->size); ofs 194 fs/jffs2/read.c offset, holeend, frag->ofs, ofs 195 fs/jffs2/read.c frag->ofs + frag->size); ofs 205 fs/jffs2/read.c fragofs = offset - frag->ofs; ofs 208 fs/jffs2/read.c frag->ofs+fragofs, ofs 209 fs/jffs2/read.c frag->ofs + fragofs+readlen, ofs 212 fs/jffs2/read.c ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); ofs 37 fs/jffs2/readinode.c uint32_t crc, ofs, len; ofs 43 fs/jffs2/readinode.c ofs = ref_offset(ref) + sizeof(struct jffs2_raw_inode); ofs 47 fs/jffs2/readinode.c int adj = ofs % c->wbuf_pagesize; ofs 53 fs/jffs2/readinode.c ref_offset(ref), tn->csize, ofs); ofs 57 fs/jffs2/readinode.c ofs += adj; ofs 62 fs/jffs2/readinode.c ref_offset(ref), tn->csize, tn->partial_crc, tn->data_crc, ofs - len, ofs, len); ofs 67 fs/jffs2/readinode.c err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); ofs 70 fs/jffs2/readinode.c mtd_unpoint(c->mtd, ofs, retlen); ofs 85 fs/jffs2/readinode.c err = jffs2_flash_read(c, ofs, len, &retlen, buffer); ofs 87 fs/jffs2/readinode.c JFFS2_ERROR("can not read %d bytes from 0x%08x, error code: %d.\n", len, ofs, err); ofs 92 fs/jffs2/readinode.c JFFS2_ERROR("short read at %#08x: %zd instead of %d.\n", ofs, retlen, len); ofs 104 fs/jffs2/readinode.c mtd_unpoint(c->mtd, ofs, len); ofs 140 fs/jffs2/readinode.c mtd_unpoint(c->mtd, ofs, len); ofs 161 fs/jffs2/readinode.c tn->fn->ofs, tn->fn->ofs + tn->fn->size, ref_offset(tn->fn->raw)); ofs 187 fs/jffs2/readinode.c if (tn->fn->ofs < offset) ofs 189 fs/jffs2/readinode.c else if (tn->fn->ofs >= offset) ofs 222 fs/jffs2/readinode.c uint32_t fn_end = tn->fn->ofs + tn->fn->size; ofs 225 fs/jffs2/readinode.c dbg_readinode("insert fragment %#04x-%#04x, ver %u at %08x\n", tn->fn->ofs, fn_end, tn->version, ref_offset(tn->fn->raw)); ofs 250 fs/jffs2/readinode.c this = jffs2_lookup_tn(&rii->tn_root, tn->fn->ofs); ofs 266 fs/jffs2/readinode.c dbg_readinode("'this' found %#04x-%#04x (%s)\n", this->fn->ofs, this->fn->ofs + this->fn->size, this->fn ? "data" : "hole"); ofs 270 fs/jffs2/readinode.c if (this->fn->ofs > fn_end) ofs 273 fs/jffs2/readinode.c this->version, this->fn->ofs, this->fn->size); ofs 293 fs/jffs2/readinode.c this->fn->ofs >= tn->fn->ofs && ofs 294 fs/jffs2/readinode.c this->fn->ofs + this->fn->size <= fn_end) { ofs 302 fs/jffs2/readinode.c while (this && this->fn->ofs + this->fn->size <= fn_end) { ofs 307 fs/jffs2/readinode.c this->version, this->fn->ofs, ofs 308 fs/jffs2/readinode.c this->fn->ofs+this->fn->size); ofs 317 fs/jffs2/readinode.c this->fn->ofs <= tn->fn->ofs && ofs 318 fs/jffs2/readinode.c this->fn->ofs+this->fn->size >= fn_end) { ofs 345 fs/jffs2/readinode.c if (tn->fn->ofs > insert_point->fn->ofs) ofs 347 fs/jffs2/readinode.c else if (tn->fn->ofs < insert_point->fn->ofs || ofs 361 fs/jffs2/readinode.c if (this->fn->ofs + this->fn->size > tn->fn->ofs) { ofs 363 fs/jffs2/readinode.c this, this->version, this->fn->ofs, ofs 364 fs/jffs2/readinode.c this->fn->ofs+this->fn->size); ofs 386 fs/jffs2/readinode.c while (this && this->fn->ofs < fn_end) { ofs 389 fs/jffs2/readinode.c this->version, this->fn->ofs, ofs 390 fs/jffs2/readinode.c this->fn->ofs+this->fn->size); ofs 467 fs/jffs2/readinode.c dbg_readinode("tn %p ver %d range 0x%x-0x%x ov %d\n", this, this->version, this->fn->ofs, ofs 468 fs/jffs2/readinode.c this->fn->ofs+this->fn->size, this->overlapped); ofs 502 fs/jffs2/readinode.c this->version, this->fn->ofs, ofs 503 fs/jffs2/readinode.c this->fn->ofs+this->fn->size); ofs 515 fs/jffs2/readinode.c this, this->version, this->fn->ofs, ofs 516 fs/jffs2/readinode.c this->fn->ofs+this->fn->size, this->overlapped); ofs 824 fs/jffs2/readinode.c tn->fn->ofs = je32_to_cpu(rd->offset); ofs 857 fs/jffs2/readinode.c tn, tn->version, tn->fn->ofs, ofs 858 fs/jffs2/readinode.c tn->fn->ofs+tn->fn->size, tn->overlapped); ofs 47 fs/jffs2/scan.c struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s); ofs 49 fs/jffs2/scan.c struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s); ofs 288 fs/jffs2/scan.c uint32_t ofs, uint32_t len) ofs 293 fs/jffs2/scan.c ret = jffs2_flash_read(c, ofs, len, &retlen, buf); ofs 296 fs/jffs2/scan.c len, ofs, ret); ofs 301 fs/jffs2/scan.c ofs, retlen); ofs 328 fs/jffs2/scan.c struct jffs2_raw_xattr *rx, uint32_t ofs, ofs 338 fs/jffs2/scan.c ofs, je32_to_cpu(rx->node_crc), crc); ofs 351 fs/jffs2/scan.c ofs, je32_to_cpu(rx->totlen), totlen); ofs 363 fs/jffs2/scan.c = jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, NULL); ofs 373 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, totlen, (void *)xd); ofs 377 fs/jffs2/scan.c jffs2_sum_add_xattr_mem(s, rx, ofs - jeb->offset); ofs 379 fs/jffs2/scan.c ofs, xd->xid, xd->version); ofs 384 fs/jffs2/scan.c struct jffs2_raw_xref *rr, uint32_t ofs, ofs 394 fs/jffs2/scan.c ofs, je32_to_cpu(rr->node_crc), crc); ofs 402 fs/jffs2/scan.c ofs, je32_to_cpu(rr->totlen), ofs 430 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(rr->totlen)), (void *)ref); ofs 433 fs/jffs2/scan.c jffs2_sum_add_xref_mem(s, rr, ofs - jeb->offset); ofs 435 fs/jffs2/scan.c ofs, ref->xid, ref->ino); ofs 446 fs/jffs2/scan.c uint32_t ofs, prevofs, max_ofs; ofs 456 fs/jffs2/scan.c ofs = jeb->offset; ofs 459 fs/jffs2/scan.c jffs2_dbg(1, "%s(): Scanning block at 0x%x\n", __func__, ofs); ofs 568 fs/jffs2/scan.c ofs = 0; ofs 571 fs/jffs2/scan.c while(ofs < max_ofs && *(uint32_t *)(&buf[ofs]) == 0xFFFFFFFF) ofs 572 fs/jffs2/scan.c ofs += 4; ofs 574 fs/jffs2/scan.c if (ofs == max_ofs) { ofs 595 fs/jffs2/scan.c if (ofs) { ofs 597 fs/jffs2/scan.c jeb->offset + ofs); ofs 600 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, ofs))) ofs 605 fs/jffs2/scan.c ofs += jeb->offset; ofs 612 fs/jffs2/scan.c while(ofs < jeb->offset + c->sector_size) { ofs 623 fs/jffs2/scan.c if (ofs & 3) { ofs 624 fs/jffs2/scan.c pr_warn("Eep. ofs 0x%08x not word-aligned!\n", ofs); ofs 625 fs/jffs2/scan.c ofs = PAD(ofs); ofs 628 fs/jffs2/scan.c if (ofs == prevofs) { ofs 630 fs/jffs2/scan.c ofs); ofs 633 fs/jffs2/scan.c ofs += 4; ofs 636 fs/jffs2/scan.c prevofs = ofs; ofs 638 fs/jffs2/scan.c if (jeb->offset + c->sector_size < ofs + sizeof(*node)) { ofs 641 fs/jffs2/scan.c jeb->offset, c->sector_size, ofs, ofs 643 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, (jeb->offset + c->sector_size)-ofs))) ofs 648 fs/jffs2/scan.c if (buf_ofs + buf_len < ofs + sizeof(*node)) { ofs 649 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 652 fs/jffs2/scan.c buf_len, ofs); ofs 653 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 656 fs/jffs2/scan.c buf_ofs = ofs; ofs 659 fs/jffs2/scan.c node = (struct jffs2_unknown_node *)&buf[ofs-buf_ofs]; ofs 661 fs/jffs2/scan.c if (*(uint32_t *)(&buf[ofs-buf_ofs]) == 0xffffffff) { ofs 665 fs/jffs2/scan.c empty_start = ofs; ofs 666 fs/jffs2/scan.c ofs += 4; ofs 669 fs/jffs2/scan.c jffs2_dbg(1, "Found empty flash at 0x%08x\n", ofs); ofs 671 fs/jffs2/scan.c inbuf_ofs = ofs - buf_ofs; ofs 675 fs/jffs2/scan.c empty_start, ofs); ofs 676 fs/jffs2/scan.c if ((err = jffs2_scan_dirty_space(c, jeb, ofs-empty_start))) ofs 682 fs/jffs2/scan.c ofs += 4; ofs 686 fs/jffs2/scan.c ofs); ofs 702 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 713 fs/jffs2/scan.c buf_len, ofs); ofs 714 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 717 fs/jffs2/scan.c buf_ofs = ofs; ofs 721 fs/jffs2/scan.c if (ofs == jeb->offset && je16_to_cpu(node->magic) == KSAMTIB_CIGAM_2SFFJ) { ofs 723 fs/jffs2/scan.c ofs); ofs 726 fs/jffs2/scan.c ofs += 4; ofs 730 fs/jffs2/scan.c jffs2_dbg(1, "Dirty bitmask at 0x%08x\n", ofs); ofs 733 fs/jffs2/scan.c ofs += 4; ofs 737 fs/jffs2/scan.c pr_warn("Old JFFS2 bitmask found at 0x%08x\n", ofs); ofs 741 fs/jffs2/scan.c ofs += 4; ofs 748 fs/jffs2/scan.c JFFS2_MAGIC_BITMASK, ofs, ofs 752 fs/jffs2/scan.c ofs += 4; ofs 764 fs/jffs2/scan.c ofs, je16_to_cpu(node->magic), ofs 771 fs/jffs2/scan.c ofs += 4; ofs 775 fs/jffs2/scan.c if (ofs + je32_to_cpu(node->totlen) > jeb->offset + c->sector_size) { ofs 778 fs/jffs2/scan.c ofs, je32_to_cpu(node->totlen)); ofs 782 fs/jffs2/scan.c ofs += 4; ofs 789 fs/jffs2/scan.c ofs); ofs 792 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 798 fs/jffs2/scan.c if (buf_ofs + buf_len < ofs + sizeof(struct jffs2_raw_inode)) { ofs 799 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 802 fs/jffs2/scan.c buf_len, ofs); ofs 803 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 806 fs/jffs2/scan.c buf_ofs = ofs; ofs 809 fs/jffs2/scan.c err = jffs2_scan_inode_node(c, jeb, (void *)node, ofs, s); ofs 811 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 815 fs/jffs2/scan.c if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { ofs 816 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 819 fs/jffs2/scan.c ofs); ofs 820 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 823 fs/jffs2/scan.c buf_ofs = ofs; ofs 826 fs/jffs2/scan.c err = jffs2_scan_dirent_node(c, jeb, (void *)node, ofs, s); ofs 828 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 833 fs/jffs2/scan.c if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { ofs 834 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 837 fs/jffs2/scan.c ofs); ofs 838 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 841 fs/jffs2/scan.c buf_ofs = ofs; ofs 844 fs/jffs2/scan.c err = jffs2_scan_xattr_node(c, jeb, (void *)node, ofs, s); ofs 847 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 850 fs/jffs2/scan.c if (buf_ofs + buf_len < ofs + je32_to_cpu(node->totlen)) { ofs 851 fs/jffs2/scan.c buf_len = min_t(uint32_t, buf_size, jeb->offset + c->sector_size - ofs); ofs 854 fs/jffs2/scan.c ofs); ofs 855 fs/jffs2/scan.c err = jffs2_fill_scan_buf(c, buf, ofs, buf_len); ofs 858 fs/jffs2/scan.c buf_ofs = ofs; ofs 861 fs/jffs2/scan.c err = jffs2_scan_xref_node(c, jeb, (void *)node, ofs, s); ofs 864 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 869 fs/jffs2/scan.c jffs2_dbg(1, "CLEANMARKER node found at 0x%08x\n", ofs); ofs 872 fs/jffs2/scan.c ofs, je32_to_cpu(node->totlen), ofs 876 fs/jffs2/scan.c ofs += PAD(sizeof(struct jffs2_unknown_node)); ofs 879 fs/jffs2/scan.c ofs, jeb->offset); ofs 882 fs/jffs2/scan.c ofs += PAD(sizeof(struct jffs2_unknown_node)); ofs 884 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_NORMAL, c->cleanmarker_size, NULL); ofs 886 fs/jffs2/scan.c ofs += PAD(c->cleanmarker_size); ofs 895 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 902 fs/jffs2/scan.c je16_to_cpu(node->nodetype), ofs); ofs 908 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 913 fs/jffs2/scan.c je16_to_cpu(node->nodetype), ofs); ofs 918 fs/jffs2/scan.c je16_to_cpu(node->nodetype), ofs); ofs 921 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 926 fs/jffs2/scan.c je16_to_cpu(node->nodetype), ofs); ofs 928 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_PRISTINE, PAD(je32_to_cpu(node->totlen)), NULL); ofs 932 fs/jffs2/scan.c ofs += PAD(je32_to_cpu(node->totlen)); ofs 989 fs/jffs2/scan.c struct jffs2_raw_inode *ri, uint32_t ofs, struct jffs2_summary *s) ofs 994 fs/jffs2/scan.c jffs2_dbg(1, "%s(): Node at 0x%08x\n", __func__, ofs); ofs 1009 fs/jffs2/scan.c __func__, ofs, je32_to_cpu(ri->node_crc), crc); ofs 1026 fs/jffs2/scan.c jffs2_link_node_ref(c, jeb, ofs | REF_UNCHECKED, PAD(je32_to_cpu(ri->totlen)), ic); ofs 1036 fs/jffs2/scan.c jffs2_sum_add_inode_mem(s, ri, ofs - jeb->offset); ofs 1043 fs/jffs2/scan.c struct jffs2_raw_dirent *rd, uint32_t ofs, struct jffs2_summary *s) ofs 1051 fs/jffs2/scan.c jffs2_dbg(1, "%s(): Node at 0x%08x\n", __func__, ofs); ofs 1059 fs/jffs2/scan.c __func__, ofs, je32_to_cpu(rd->node_crc), crc); ofs 1072 fs/jffs2/scan.c ofs, checkedlen); ofs 1084 fs/jffs2/scan.c __func__, ofs, je32_to_cpu(rd->name_crc), crc); ofs 1100 fs/jffs2/scan.c fd->raw = jffs2_link_node_ref(c, jeb, ofs | dirent_node_state(rd), ofs 1111 fs/jffs2/scan.c jffs2_sum_add_dirent_mem(s, rd, ofs - jeb->offset); ofs 116 fs/jffs2/summary.c uint32_t ofs) ofs 126 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); /* relative offset from the beginning of the jeb */ ofs 134 fs/jffs2/summary.c uint32_t ofs) ofs 144 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); /* relative from the beginning of the jeb */ ofs 158 fs/jffs2/summary.c int jffs2_sum_add_xattr_mem(struct jffs2_summary *s, struct jffs2_raw_xattr *rx, uint32_t ofs) ofs 169 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 176 fs/jffs2/summary.c int jffs2_sum_add_xref_mem(struct jffs2_summary *s, struct jffs2_raw_xref *rr, uint32_t ofs) ofs 185 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 249 fs/jffs2/summary.c unsigned long count, uint32_t ofs) ofs 260 fs/jffs2/summary.c jeb = &c->blocks[ofs / c->sector_size]; ofs 261 fs/jffs2/summary.c ofs -= jeb->offset; ofs 274 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 290 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 325 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 336 fs/jffs2/summary.c temp->offset = cpu_to_je32(ofs); ofs 372 fs/jffs2/summary.c uint32_t ofs, uint32_t len, ofs 376 fs/jffs2/summary.c if ((ofs & ~3) > c->sector_size - jeb->free_size) { ofs 378 fs/jffs2/summary.c jffs2_scan_dirty_space(c, jeb, (ofs & ~3) - (c->sector_size - jeb->free_size)); ofs 381 fs/jffs2/summary.c return jffs2_link_node_ref(c, jeb, jeb->offset + ofs, len, ic); ofs 577 fs/jffs2/summary.c int ret, ofs; ofs 580 fs/jffs2/summary.c ofs = c->sector_size - sumsize; ofs 583 fs/jffs2/summary.c jeb->offset, jeb->offset + ofs, sumsize); ofs 653 fs/jffs2/summary.c sum_link_node_ref(c, jeb, ofs | REF_NORMAL, sumsize, NULL); ofs 185 fs/jffs2/summary.h int jffs2_sum_add_inode_mem(struct jffs2_summary *s, struct jffs2_raw_inode *ri, uint32_t ofs); ofs 186 fs/jffs2/summary.h int jffs2_sum_add_dirent_mem(struct jffs2_summary *s, struct jffs2_raw_dirent *rd, uint32_t ofs); ofs 187 fs/jffs2/summary.h int jffs2_sum_add_xattr_mem(struct jffs2_summary *s, struct jffs2_raw_xattr *rx, uint32_t ofs); ofs 188 fs/jffs2/summary.h int jffs2_sum_add_xref_mem(struct jffs2_summary *s, struct jffs2_raw_xref *rr, uint32_t ofs); ofs 231 fs/jffs2/wbuf.c uint32_t ofs) ofs 237 fs/jffs2/wbuf.c ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); ofs 244 fs/jffs2/wbuf.c __func__, ofs, retlen, c->wbuf_pagesize); ofs 283 fs/jffs2/wbuf.c uint32_t start, end, ofs, len; ofs 406 fs/jffs2/wbuf.c ofs = write_ofs(c); ofs 418 fs/jffs2/wbuf.c towrite, ofs); ofs 423 fs/jffs2/wbuf.c pr_notice("Faking write error at 0x%08x\n", ofs); ofs 425 fs/jffs2/wbuf.c mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); ofs 429 fs/jffs2/wbuf.c ret = mtd_write(c->mtd, ofs, towrite, &retlen, ofs 432 fs/jffs2/wbuf.c if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) { ofs 438 fs/jffs2/wbuf.c jffs2_add_physical_node_ref(c, ofs | REF_OBSOLETE, ref_totlen(c, jeb, first_raw), NULL); ofs 442 fs/jffs2/wbuf.c pr_notice("Recovery of wbuf succeeded to %08x\n", ofs); ofs 445 fs/jffs2/wbuf.c c->wbuf_ofs = ofs + towrite; ofs 455 fs/jffs2/wbuf.c c->wbuf_ofs = ofs; ofs 460 fs/jffs2/wbuf.c new_jeb = &c->blocks[ofs / c->sector_size]; ofs 471 fs/jffs2/wbuf.c rawlen, ref_offset(raw), ref_flags(raw), ofs); ofs 527 fs/jffs2/wbuf.c new_ref = jffs2_link_node_ref(c, new_jeb, ofs | ref_flags(raw), rawlen, ic); ofs 544 fs/jffs2/wbuf.c ofs += rawlen; ofs 941 fs/jffs2/wbuf.c int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, ofs 947 fs/jffs2/wbuf.c return jffs2_flash_direct_write(c, ofs, len, retlen, buf); ofs 951 fs/jffs2/wbuf.c return jffs2_flash_writev(c, vecs, 1, ofs, retlen, 0); ofs 957 fs/jffs2/wbuf.c int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf) ofs 963 fs/jffs2/wbuf.c return mtd_read(c->mtd, ofs, len, retlen, buf); ofs 967 fs/jffs2/wbuf.c ret = mtd_read(c->mtd, ofs, len, retlen, buf); ofs 972 fs/jffs2/wbuf.c len, ofs); ofs 991 fs/jffs2/wbuf.c if (SECTOR_ADDR(ofs) != SECTOR_ADDR(c->wbuf_ofs)) ofs 994 fs/jffs2/wbuf.c if (ofs >= c->wbuf_ofs) { ofs 995 fs/jffs2/wbuf.c owbf = (ofs - c->wbuf_ofs); /* offset in write buffer */ ofs 1002 fs/jffs2/wbuf.c orbf = (c->wbuf_ofs - ofs); /* offset in read buffer */ ofs 189 fs/jffs2/write.c fn->ofs = je32_to_cpu(ri->offset); ofs 32 fs/jffs2/writev.c int jffs2_flash_direct_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, ofs 36 fs/jffs2/writev.c ret = mtd_write(c->mtd, ofs, len, retlen, buf); ofs 45 fs/jffs2/writev.c res = jffs2_sum_add_kvec(c, vecs, 1, (uint32_t) ofs); ofs 76 fs/ntfs/aops.c int ofs; ofs 79 fs/ntfs/aops.c ofs = 0; ofs 81 fs/ntfs/aops.c ofs = init_size - file_ofs; ofs 83 fs/ntfs/aops.c memset(kaddr + bh_offset(bh) + ofs, 0, ofs 84 fs/ntfs/aops.c bh->b_size - ofs); ofs 1110 fs/ntfs/aops.c unsigned int ofs; ofs 1116 fs/ntfs/aops.c ofs = bh_offset(tbh); ofs 1122 fs/ntfs/aops.c mft_no = (((s64)page->index << PAGE_SHIFT) + ofs) ofs 1127 fs/ntfs/aops.c (MFT_RECORD*)(kaddr + ofs), &tni)) { ofs 1152 fs/ntfs/aops.c err2 = pre_write_mst_fixup((NTFS_RECORD*)(kaddr + ofs), ofs 1161 fs/ntfs/aops.c ni->type, page->index, ofs); ofs 1224 fs/ntfs/aops.c unsigned int ofs; ofs 1236 fs/ntfs/aops.c ofs = bh_offset(tbh); ofs 1238 fs/ntfs/aops.c mft_no = (((s64)page->index << PAGE_SHIFT) + ofs) ofs 1242 fs/ntfs/aops.c (MFT_RECORD*)(kaddr + ofs), ofs 1405 fs/ntfs/aops.c unsigned int ofs = i_size & ~PAGE_MASK; ofs 1406 fs/ntfs/aops.c zero_user_segment(page, ofs, PAGE_SIZE); ofs 1551 fs/ntfs/aops.c s64 ofs, size; ofs 1575 fs/ntfs/aops.c ofs = (s64)block << blocksize_bits; ofs 1585 fs/ntfs/aops.c if (unlikely(ofs >= size || (ofs + blocksize > size && size < i_size))) ofs 1589 fs/ntfs/aops.c lcn = ntfs_attr_vcn_to_lcn_nolock(ni, ofs >> cluster_size_shift, false); ofs 1631 fs/ntfs/aops.c delta = ofs & vol->cluster_size_mask; ofs 1715 fs/ntfs/aops.c void mark_ntfs_record_dirty(struct page *page, const unsigned int ofs) { ofs 1722 fs/ntfs/aops.c end = ofs + ni->itype.index.block_size; ofs 1746 fs/ntfs/aops.c if (bh_ofs + bh_size <= ofs) ofs 89 fs/ntfs/aops.h extern void mark_ntfs_record_dirty(struct page *page, const unsigned int ofs); ofs 2479 fs/ntfs/attrib.c int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt, const u8 val) ofs 2489 fs/ntfs/attrib.c (long long)ofs, (long long)cnt, val); ofs 2490 fs/ntfs/attrib.c BUG_ON(ofs < 0); ofs 2502 fs/ntfs/attrib.c idx = ofs >> PAGE_SHIFT; ofs 2503 fs/ntfs/attrib.c start_ofs = ofs & ~PAGE_MASK; ofs 2505 fs/ntfs/attrib.c end = ofs + cnt; ofs 97 fs/ntfs/attrib.h extern int ntfs_attr_set(ntfs_inode *ni, const s64 ofs, const s64 cnt, ofs 1203 fs/ntfs/file.c int ofs = 0; ofs 1206 fs/ntfs/file.c ofs = initialized_size - bh_pos; ofs 1207 fs/ntfs/file.c zero_user_segment(page, bh_offset(bh) + ofs, ofs 1686 fs/ntfs/file.c unsigned ofs, struct iov_iter *i, size_t bytes) ofs 1694 fs/ntfs/file.c len = PAGE_SIZE - ofs; ofs 1697 fs/ntfs/file.c copied = iov_iter_copy_from_user_atomic(*pages, &data, ofs, ofs 1706 fs/ntfs/file.c ofs = 0; ofs 1781 fs/ntfs/file.c unsigned ofs, do_pages, u; ofs 1785 fs/ntfs/file.c ofs = pos & ~PAGE_MASK; ofs 1786 fs/ntfs/file.c bytes = PAGE_SIZE - ofs; ofs 1865 fs/ntfs/file.c copied = ntfs_copy_from_user_iter(pages + u, do_pages - u, ofs, ofs 43 fs/ntfs/mft.c unsigned ofs; ofs 54 fs/ntfs/mft.c ofs = (ni->mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; ofs 62 fs/ntfs/mft.c if (index > end_index || (i_size & ~PAGE_MASK) < ofs + ofs 77 fs/ntfs/mft.c ofs)))) { ofs 79 fs/ntfs/mft.c ni->page_ofs = ofs; ofs 80 fs/ntfs/mft.c return page_address(page) + ofs; ofs 1129 fs/ntfs/mft.c s64 pass_end, ll, data_pos, pass_start, ofs, bit; ofs 1175 fs/ntfs/mft.c ofs = data_pos >> 3; ofs 1176 fs/ntfs/mft.c page_ofs = ofs & ~PAGE_MASK; ofs 1178 fs/ntfs/mft.c ll = ((pass_end + 7) >> 3) - ofs; ofs 1188 fs/ntfs/mft.c ofs >> PAGE_SHIFT); ofs 2093 fs/ntfs/mft.c unsigned int ofs; ofs 2102 fs/ntfs/mft.c ofs = (mft_no << vol->mft_record_size_bits) & ~PAGE_MASK; ofs 2107 fs/ntfs/mft.c if (unlikely(index > end_index || ofs + vol->mft_record_size >= ofs 2124 fs/ntfs/mft.c m = (MFT_RECORD*)((u8*)page_address(page) + ofs); ofs 2142 fs/ntfs/mft.c mark_ntfs_record_dirty(page, ofs); ofs 2250 fs/ntfs/mft.c unsigned int ofs; ofs 2514 fs/ntfs/mft.c ofs = (bit << vol->mft_record_size_bits) & ~PAGE_MASK; ofs 2526 fs/ntfs/mft.c m = (MFT_RECORD*)((u8*)page_address(page) + ofs); ofs 2598 fs/ntfs/mft.c mark_ntfs_record_dirty(page, ofs); ofs 2611 fs/ntfs/mft.c mark_ntfs_record_dirty(page, ofs); ofs 2632 fs/ntfs/mft.c mark_ntfs_record_dirty(page, ofs); ofs 2701 fs/ntfs/mft.c ni->page_ofs = ofs; ofs 2712 fs/ntfs/mft.c mark_ntfs_record_dirty(page, ofs); ofs 25 fs/omfs/dir.c const char *name, int namelen, int *ofs) ofs 30 fs/omfs/dir.c *ofs = OMFS_DIR_START + bucket * 8; ofs 71 fs/omfs/dir.c int ofs; ofs 74 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); ofs 78 fs/omfs/dir.c block = be64_to_cpu(*((__be64 *) &bh->b_data[ofs])); ofs 120 fs/omfs/dir.c int ofs; ofs 123 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); ofs 127 fs/omfs/dir.c entry = (__be64 *) &bh->b_data[ofs]; ofs 166 fs/omfs/dir.c int ofs; ofs 170 fs/omfs/dir.c bh = omfs_get_bucket(dir, name, namelen, &ofs); ofs 174 fs/omfs/dir.c entry = (__be64 *) &bh->b_data[ofs]; ofs 85 fs/omfs/inode.c int xor, i, ofs = 0, count; ofs 90 fs/omfs/inode.c ofs = sizeof(struct omfs_header); ofs 92 fs/omfs/inode.c crc = crc_itu_t(crc, ptr + ofs, count); ofs 651 fs/overlayfs/copy_up.c struct ovl_fs *ofs = c->dentry->d_sb->s_fs_info; ofs 690 fs/overlayfs/copy_up.c if (S_ISREG(c->stat.mode) && ofs->tmpfile) ofs 723 fs/overlayfs/copy_up.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 725 fs/overlayfs/copy_up.c if (!ofs->config.metacopy) ofs 185 fs/overlayfs/export.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 207 fs/overlayfs/export.c if (d_is_dir(dentry) && ofs->upper_mnt) ofs 435 fs/overlayfs/export.c struct ovl_fs *ofs = sb->s_fs_info; ofs 436 fs/overlayfs/export.c struct ovl_layer upper_layer = { .mnt = ofs->upper_mnt }; ofs 457 fs/overlayfs/export.c if (!this && layer->idx && ofs->indexdir && !WARN_ON(!d_is_dir(real))) { ofs 458 fs/overlayfs/export.c index = ovl_lookup_index(ofs, NULL, real, false); ofs 465 fs/overlayfs/export.c struct dentry *upper = ovl_index_upper(ofs, index); ofs 657 fs/overlayfs/export.c struct ovl_fs *ofs = sb->s_fs_info; ofs 658 fs/overlayfs/export.c struct ovl_layer upper_layer = { .mnt = ofs->upper_mnt }; ofs 683 fs/overlayfs/export.c struct ovl_fs *ofs = sb->s_fs_info; ofs 687 fs/overlayfs/export.c if (!ofs->upper_mnt) ofs 690 fs/overlayfs/export.c upper = ovl_decode_real_fh(fh, ofs->upper_mnt, true); ofs 703 fs/overlayfs/export.c struct ovl_fs *ofs = sb->s_fs_info; ofs 712 fs/overlayfs/export.c err = ovl_check_origin_fh(ofs, fh, false, NULL, &stack); ofs 731 fs/overlayfs/export.c if (ofs->indexdir) { ofs 732 fs/overlayfs/export.c index = ovl_get_index_fh(ofs, fh); ofs 742 fs/overlayfs/export.c struct dentry *upper = ovl_index_upper(ofs, index); ofs 757 fs/overlayfs/export.c err = ovl_check_origin_fh(ofs, fh, true, NULL, &stack); ofs 449 fs/overlayfs/inode.c struct ovl_fs *ofs = inode->i_sb->s_fs_info; ofs 451 fs/overlayfs/inode.c .mnt = ofs->upper_mnt, ofs 838 fs/overlayfs/inode.c struct ovl_fs *ofs = sb->s_fs_info; ofs 849 fs/overlayfs/inode.c if (!ofs->upper_mnt) ofs 321 fs/overlayfs/namei.c int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, ofs 327 fs/overlayfs/namei.c for (i = 0; i < ofs->numlower; i++) { ofs 332 fs/overlayfs/namei.c if (ofs->lower_layers[i].fsid && ofs 333 fs/overlayfs/namei.c ofs->lower_layers[i].fs->bad_uuid) ofs 336 fs/overlayfs/namei.c origin = ovl_decode_real_fh(fh, ofs->lower_layers[i].mnt, ofs 359 fs/overlayfs/namei.c .layer = &ofs->lower_layers[i] ofs 372 fs/overlayfs/namei.c static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, ofs 381 fs/overlayfs/namei.c err = ovl_check_origin_fh(ofs, fh, false, upperdentry, stackp); ofs 461 fs/overlayfs/namei.c struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index) ofs 473 fs/overlayfs/namei.c upper = ovl_decode_real_fh(fh, ofs->upper_mnt, true); ofs 500 fs/overlayfs/namei.c int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index) ofs 547 fs/overlayfs/namei.c if (d_is_dir(index) && !ofs->config.nfs_export) ofs 557 fs/overlayfs/namei.c upper = ovl_index_upper(ofs, index); ofs 580 fs/overlayfs/namei.c err = ovl_check_origin_fh(ofs, fh, false, index, &stack); ofs 652 fs/overlayfs/namei.c struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh) ofs 662 fs/overlayfs/namei.c index = lookup_one_len_unlocked(name.name, ofs->indexdir, name.len); ofs 683 fs/overlayfs/namei.c struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper, ofs 696 fs/overlayfs/namei.c index = lookup_one_len_unlocked(name.name, ofs->indexdir, name.len); ofs 818 fs/overlayfs/namei.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 839 fs/overlayfs/namei.c .last = ofs->config.redirect_follow ? false : !poe->numlower, ofs 844 fs/overlayfs/namei.c if (dentry->d_name.len > ofs->namelen) ofs 872 fs/overlayfs/namei.c err = ovl_check_origin(ofs, upperdentry, &origin_path, ofs 894 fs/overlayfs/namei.c stack = kcalloc(ofs->numlower, sizeof(struct ovl_path), ofs 903 fs/overlayfs/namei.c if (!ofs->config.redirect_follow) ofs 919 fs/overlayfs/namei.c if (upperdentry && !ctr && !ofs->noxattr && d.is_dir) { ofs 938 fs/overlayfs/namei.c (!d.is_dir && ofs->config.index && origin_path))) { ofs 975 fs/overlayfs/namei.c if (d.redirect && !ofs->config.redirect_follow) { ofs 1002 fs/overlayfs/namei.c if (!ofs->config.metacopy) { ofs 1037 fs/overlayfs/namei.c index = ovl_lookup_index(ofs, upperdentry, origin, true); ofs 288 fs/overlayfs/overlayfs.h struct ovl_fs *ofs = sb->s_fs_info; ofs 290 fs/overlayfs/overlayfs.h return ofs->xino_bits; ofs 308 fs/overlayfs/overlayfs.h int ovl_check_origin_fh(struct ovl_fs *ofs, struct ovl_fh *fh, bool connected, ofs 312 fs/overlayfs/overlayfs.h struct dentry *ovl_index_upper(struct ovl_fs *ofs, struct dentry *index); ofs 313 fs/overlayfs/overlayfs.h int ovl_verify_index(struct ovl_fs *ofs, struct dentry *index); ofs 315 fs/overlayfs/overlayfs.h struct dentry *ovl_get_index_fh(struct ovl_fs *ofs, struct ovl_fh *fh); ofs 316 fs/overlayfs/overlayfs.h struct dentry *ovl_lookup_index(struct ovl_fs *ofs, struct dentry *upper, ofs 344 fs/overlayfs/overlayfs.h int ovl_indexdir_cleanup(struct ovl_fs *ofs); ofs 1084 fs/overlayfs/readdir.c int ovl_indexdir_cleanup(struct ovl_fs *ofs) ofs 1087 fs/overlayfs/readdir.c struct dentry *indexdir = ofs->indexdir; ofs 1090 fs/overlayfs/readdir.c struct path path = { .mnt = ofs->upper_mnt, .dentry = indexdir }; ofs 1120 fs/overlayfs/readdir.c err = ovl_verify_index(ofs, index); ofs 1133 fs/overlayfs/readdir.c } else if (ofs->config.nfs_export) { ofs 211 fs/overlayfs/super.c static void ovl_free_fs(struct ovl_fs *ofs) ofs 215 fs/overlayfs/super.c iput(ofs->workbasedir_trap); ofs 216 fs/overlayfs/super.c iput(ofs->indexdir_trap); ofs 217 fs/overlayfs/super.c iput(ofs->workdir_trap); ofs 218 fs/overlayfs/super.c iput(ofs->upperdir_trap); ofs 219 fs/overlayfs/super.c dput(ofs->indexdir); ofs 220 fs/overlayfs/super.c dput(ofs->workdir); ofs 221 fs/overlayfs/super.c if (ofs->workdir_locked) ofs 222 fs/overlayfs/super.c ovl_inuse_unlock(ofs->workbasedir); ofs 223 fs/overlayfs/super.c dput(ofs->workbasedir); ofs 224 fs/overlayfs/super.c if (ofs->upperdir_locked) ofs 225 fs/overlayfs/super.c ovl_inuse_unlock(ofs->upper_mnt->mnt_root); ofs 226 fs/overlayfs/super.c mntput(ofs->upper_mnt); ofs 227 fs/overlayfs/super.c for (i = 0; i < ofs->numlower; i++) { ofs 228 fs/overlayfs/super.c iput(ofs->lower_layers[i].trap); ofs 229 fs/overlayfs/super.c mntput(ofs->lower_layers[i].mnt); ofs 231 fs/overlayfs/super.c for (i = 0; i < ofs->numlowerfs; i++) ofs 232 fs/overlayfs/super.c free_anon_bdev(ofs->lower_fs[i].pseudo_dev); ofs 233 fs/overlayfs/super.c kfree(ofs->lower_layers); ofs 234 fs/overlayfs/super.c kfree(ofs->lower_fs); ofs 236 fs/overlayfs/super.c kfree(ofs->config.lowerdir); ofs 237 fs/overlayfs/super.c kfree(ofs->config.upperdir); ofs 238 fs/overlayfs/super.c kfree(ofs->config.workdir); ofs 239 fs/overlayfs/super.c kfree(ofs->config.redirect_mode); ofs 240 fs/overlayfs/super.c if (ofs->creator_cred) ofs 241 fs/overlayfs/super.c put_cred(ofs->creator_cred); ofs 242 fs/overlayfs/super.c kfree(ofs); ofs 247 fs/overlayfs/super.c struct ovl_fs *ofs = sb->s_fs_info; ofs 249 fs/overlayfs/super.c ovl_free_fs(ofs); ofs 255 fs/overlayfs/super.c struct ovl_fs *ofs = sb->s_fs_info; ofs 259 fs/overlayfs/super.c if (!ofs->upper_mnt) ofs 273 fs/overlayfs/super.c upper_sb = ofs->upper_mnt->mnt_sb; ofs 292 fs/overlayfs/super.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 301 fs/overlayfs/super.c buf->f_namelen = ofs->namelen; ofs 309 fs/overlayfs/super.c static bool ovl_force_readonly(struct ovl_fs *ofs) ofs 311 fs/overlayfs/super.c return (!ofs->upper_mnt || !ofs->workdir); ofs 345 fs/overlayfs/super.c struct ovl_fs *ofs = sb->s_fs_info; ofs 347 fs/overlayfs/super.c seq_show_option(m, "lowerdir", ofs->config.lowerdir); ofs 348 fs/overlayfs/super.c if (ofs->config.upperdir) { ofs 349 fs/overlayfs/super.c seq_show_option(m, "upperdir", ofs->config.upperdir); ofs 350 fs/overlayfs/super.c seq_show_option(m, "workdir", ofs->config.workdir); ofs 352 fs/overlayfs/super.c if (ofs->config.default_permissions) ofs 354 fs/overlayfs/super.c if (strcmp(ofs->config.redirect_mode, ovl_redirect_mode_def()) != 0) ofs 355 fs/overlayfs/super.c seq_printf(m, ",redirect_dir=%s", ofs->config.redirect_mode); ofs 356 fs/overlayfs/super.c if (ofs->config.index != ovl_index_def) ofs 357 fs/overlayfs/super.c seq_printf(m, ",index=%s", ofs->config.index ? "on" : "off"); ofs 358 fs/overlayfs/super.c if (ofs->config.nfs_export != ovl_nfs_export_def) ofs 359 fs/overlayfs/super.c seq_printf(m, ",nfs_export=%s", ofs->config.nfs_export ? ofs 361 fs/overlayfs/super.c if (ofs->config.xino != ovl_xino_def()) ofs 362 fs/overlayfs/super.c seq_printf(m, ",xino=%s", ovl_xino_str[ofs->config.xino]); ofs 363 fs/overlayfs/super.c if (ofs->config.metacopy != ovl_metacopy_def) ofs 365 fs/overlayfs/super.c ofs->config.metacopy ? "on" : "off"); ofs 371 fs/overlayfs/super.c struct ovl_fs *ofs = sb->s_fs_info; ofs 373 fs/overlayfs/super.c if (!(*flags & SB_RDONLY) && ovl_force_readonly(ofs)) ofs 614 fs/overlayfs/super.c static struct dentry *ovl_workdir_create(struct ovl_fs *ofs, ofs 617 fs/overlayfs/super.c struct inode *dir = ofs->workbasedir->d_inode; ofs 618 fs/overlayfs/super.c struct vfsmount *mnt = ofs->upper_mnt; ofs 628 fs/overlayfs/super.c work = lookup_one_len(name, ofs->workbasedir, strlen(name)); ofs 696 fs/overlayfs/super.c ofs->config.workdir, name, -err); ofs 765 fs/overlayfs/super.c static int ovl_check_namelen(struct path *path, struct ovl_fs *ofs, ofs 774 fs/overlayfs/super.c ofs->namelen = max(ofs->namelen, statfs.f_namelen); ofs 780 fs/overlayfs/super.c struct ovl_fs *ofs, int *stack_depth, bool *remote) ofs 789 fs/overlayfs/super.c err = ovl_check_namelen(path, ofs, name); ofs 803 fs/overlayfs/super.c if ((ofs->config.nfs_export || ofs 804 fs/overlayfs/super.c (ofs->config.index && ofs->config.upperdir)) && !fh_type) { ofs 805 fs/overlayfs/super.c ofs->config.index = false; ofs 806 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 813 fs/overlayfs/super.c ofs->xino_bits = 0; ofs 1013 fs/overlayfs/super.c static int ovl_report_in_use(struct ovl_fs *ofs, const char *name) ofs 1015 fs/overlayfs/super.c if (ofs->config.index) { ofs 1026 fs/overlayfs/super.c static int ovl_get_upper(struct super_block *sb, struct ovl_fs *ofs, ofs 1032 fs/overlayfs/super.c err = ovl_mount_dir(ofs->config.upperdir, upperpath); ofs 1043 fs/overlayfs/super.c err = ovl_check_namelen(upperpath, ofs, ofs->config.upperdir); ofs 1047 fs/overlayfs/super.c err = ovl_setup_trap(sb, upperpath->dentry, &ofs->upperdir_trap, ofs 1061 fs/overlayfs/super.c ofs->upper_mnt = upper_mnt; ofs 1063 fs/overlayfs/super.c if (ovl_inuse_trylock(ofs->upper_mnt->mnt_root)) { ofs 1064 fs/overlayfs/super.c ofs->upperdir_locked = true; ofs 1066 fs/overlayfs/super.c err = ovl_report_in_use(ofs, "upperdir"); ofs 1076 fs/overlayfs/super.c static int ovl_make_workdir(struct super_block *sb, struct ovl_fs *ofs, ofs 1079 fs/overlayfs/super.c struct vfsmount *mnt = ofs->upper_mnt; ofs 1088 fs/overlayfs/super.c ofs->workdir = ovl_workdir_create(ofs, OVL_WORKDIR_NAME, false); ofs 1089 fs/overlayfs/super.c if (!ofs->workdir) ofs 1092 fs/overlayfs/super.c err = ovl_setup_trap(sb, ofs->workdir, &ofs->workdir_trap, "workdir"); ofs 1114 fs/overlayfs/super.c temp = ovl_do_tmpfile(ofs->workdir, S_IFREG | 0); ofs 1115 fs/overlayfs/super.c ofs->tmpfile = !IS_ERR(temp); ofs 1116 fs/overlayfs/super.c if (ofs->tmpfile) ofs 1124 fs/overlayfs/super.c err = ovl_do_setxattr(ofs->workdir, OVL_XATTR_OPAQUE, "0", 1, 0); ofs 1126 fs/overlayfs/super.c ofs->noxattr = true; ofs 1127 fs/overlayfs/super.c ofs->config.index = false; ofs 1128 fs/overlayfs/super.c ofs->config.metacopy = false; ofs 1132 fs/overlayfs/super.c vfs_removexattr(ofs->workdir, OVL_XATTR_OPAQUE); ofs 1136 fs/overlayfs/super.c fh_type = ovl_can_decode_fh(ofs->workdir->d_sb); ofs 1137 fs/overlayfs/super.c if (ofs->config.index && !fh_type) { ofs 1138 fs/overlayfs/super.c ofs->config.index = false; ofs 1144 fs/overlayfs/super.c ofs->xino_bits = 0; ofs 1147 fs/overlayfs/super.c if (ofs->config.nfs_export && !ofs->config.index) { ofs 1149 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 1156 fs/overlayfs/super.c static int ovl_get_workdir(struct super_block *sb, struct ovl_fs *ofs, ofs 1162 fs/overlayfs/super.c err = ovl_mount_dir(ofs->config.workdir, &workpath); ofs 1176 fs/overlayfs/super.c ofs->workbasedir = dget(workpath.dentry); ofs 1178 fs/overlayfs/super.c if (ovl_inuse_trylock(ofs->workbasedir)) { ofs 1179 fs/overlayfs/super.c ofs->workdir_locked = true; ofs 1181 fs/overlayfs/super.c err = ovl_report_in_use(ofs, "workdir"); ofs 1186 fs/overlayfs/super.c err = ovl_setup_trap(sb, ofs->workbasedir, &ofs->workbasedir_trap, ofs 1191 fs/overlayfs/super.c err = ovl_make_workdir(sb, ofs, &workpath); ofs 1199 fs/overlayfs/super.c static int ovl_get_indexdir(struct super_block *sb, struct ovl_fs *ofs, ofs 1202 fs/overlayfs/super.c struct vfsmount *mnt = ofs->upper_mnt; ofs 1217 fs/overlayfs/super.c ofs->indexdir = ovl_workdir_create(ofs, OVL_INDEXDIR_NAME, true); ofs 1218 fs/overlayfs/super.c if (ofs->indexdir) { ofs 1219 fs/overlayfs/super.c err = ovl_setup_trap(sb, ofs->indexdir, &ofs->indexdir_trap, ofs 1232 fs/overlayfs/super.c if (ovl_check_origin_xattr(ofs->indexdir)) { ofs 1233 fs/overlayfs/super.c err = ovl_verify_set_fh(ofs->indexdir, OVL_XATTR_ORIGIN, ofs 1238 fs/overlayfs/super.c err = ovl_verify_upper(ofs->indexdir, upperpath->dentry, true); ofs 1244 fs/overlayfs/super.c err = ovl_indexdir_cleanup(ofs); ofs 1246 fs/overlayfs/super.c if (err || !ofs->indexdir) ofs 1254 fs/overlayfs/super.c static bool ovl_lower_uuid_ok(struct ovl_fs *ofs, const uuid_t *uuid) ofs 1258 fs/overlayfs/super.c if (!ofs->config.nfs_export && !ofs->upper_mnt) ofs 1261 fs/overlayfs/super.c for (i = 0; i < ofs->numlowerfs; i++) { ofs 1269 fs/overlayfs/super.c if (uuid_equal(&ofs->lower_fs[i].sb->s_uuid, uuid)) { ofs 1270 fs/overlayfs/super.c ofs->lower_fs[i].bad_uuid = true; ofs 1278 fs/overlayfs/super.c static int ovl_get_fsid(struct ovl_fs *ofs, const struct path *path) ofs 1287 fs/overlayfs/super.c if (ofs->upper_mnt && ofs->upper_mnt->mnt_sb == sb) ofs 1290 fs/overlayfs/super.c for (i = 0; i < ofs->numlowerfs; i++) { ofs 1291 fs/overlayfs/super.c if (ofs->lower_fs[i].sb == sb) ofs 1295 fs/overlayfs/super.c if (!ovl_lower_uuid_ok(ofs, &sb->s_uuid)) { ofs 1297 fs/overlayfs/super.c if (ofs->config.index || ofs->config.nfs_export) { ofs 1298 fs/overlayfs/super.c ofs->config.index = false; ofs 1299 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 1313 fs/overlayfs/super.c ofs->lower_fs[ofs->numlowerfs].sb = sb; ofs 1314 fs/overlayfs/super.c ofs->lower_fs[ofs->numlowerfs].pseudo_dev = dev; ofs 1315 fs/overlayfs/super.c ofs->lower_fs[ofs->numlowerfs].bad_uuid = bad_uuid; ofs 1316 fs/overlayfs/super.c ofs->numlowerfs++; ofs 1318 fs/overlayfs/super.c return ofs->numlowerfs; ofs 1321 fs/overlayfs/super.c static int ovl_get_lower_layers(struct super_block *sb, struct ovl_fs *ofs, ofs 1328 fs/overlayfs/super.c ofs->lower_layers = kcalloc(numlower, sizeof(struct ovl_layer), ofs 1330 fs/overlayfs/super.c if (ofs->lower_layers == NULL) ofs 1333 fs/overlayfs/super.c ofs->lower_fs = kcalloc(numlower, sizeof(struct ovl_sb), ofs 1335 fs/overlayfs/super.c if (ofs->lower_fs == NULL) ofs 1343 fs/overlayfs/super.c err = fsid = ovl_get_fsid(ofs, &stack[i]); ofs 1352 fs/overlayfs/super.c err = ovl_report_in_use(ofs, "lowerdir"); ofs 1371 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].trap = trap; ofs 1372 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].mnt = mnt; ofs 1373 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].idx = i + 1; ofs 1374 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].fsid = fsid; ofs 1376 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].fs = ofs 1377 fs/overlayfs/super.c &ofs->lower_fs[fsid - 1]; ofs 1379 fs/overlayfs/super.c ofs->numlower++; ofs 1390 fs/overlayfs/super.c if (!ofs->numlowerfs || (ofs->numlowerfs == 1 && !ofs->upper_mnt)) { ofs 1391 fs/overlayfs/super.c ofs->xino_bits = 0; ofs 1392 fs/overlayfs/super.c ofs->config.xino = OVL_XINO_OFF; ofs 1393 fs/overlayfs/super.c } else if (ofs->config.xino == OVL_XINO_ON && !ofs->xino_bits) { ofs 1400 fs/overlayfs/super.c ofs->xino_bits = ilog2(ofs->numlowerfs) + 1; ofs 1403 fs/overlayfs/super.c if (ofs->xino_bits) { ofs 1405 fs/overlayfs/super.c ofs->xino_bits); ofs 1414 fs/overlayfs/super.c struct ovl_fs *ofs) ofs 1424 fs/overlayfs/super.c lowertmp = kstrdup(ofs->config.lowerdir, GFP_KERNEL); ofs 1434 fs/overlayfs/super.c } else if (!ofs->config.upperdir && stacklen == 1) { ofs 1437 fs/overlayfs/super.c } else if (!ofs->config.upperdir && ofs->config.nfs_export && ofs 1438 fs/overlayfs/super.c ofs->config.redirect_follow) { ofs 1440 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 1451 fs/overlayfs/super.c err = ovl_lower_dir(lower, &stack[numlower], ofs, ofs 1466 fs/overlayfs/super.c err = ovl_get_lower_layers(sb, ofs, stack, numlower); ofs 1477 fs/overlayfs/super.c oe->lowerstack[i].layer = &ofs->lower_layers[i]; ofs 1503 fs/overlayfs/super.c static int ovl_check_layer(struct super_block *sb, struct ovl_fs *ofs, ofs 1520 fs/overlayfs/super.c err = ovl_report_in_use(ofs, name); ofs 1536 fs/overlayfs/super.c struct ovl_fs *ofs) ofs 1540 fs/overlayfs/super.c if (ofs->upper_mnt) { ofs 1541 fs/overlayfs/super.c err = ovl_check_layer(sb, ofs, ofs->upper_mnt->mnt_root, ofs 1553 fs/overlayfs/super.c err = ovl_check_layer(sb, ofs, ofs->workbasedir, "workdir"); ofs 1558 fs/overlayfs/super.c for (i = 0; i < ofs->numlower; i++) { ofs 1559 fs/overlayfs/super.c err = ovl_check_layer(sb, ofs, ofs 1560 fs/overlayfs/super.c ofs->lower_layers[i].mnt->mnt_root, ofs 1574 fs/overlayfs/super.c struct ovl_fs *ofs; ofs 1579 fs/overlayfs/super.c ofs = kzalloc(sizeof(struct ovl_fs), GFP_KERNEL); ofs 1580 fs/overlayfs/super.c if (!ofs) ofs 1583 fs/overlayfs/super.c ofs->creator_cred = cred = prepare_creds(); ofs 1587 fs/overlayfs/super.c ofs->config.index = ovl_index_def; ofs 1588 fs/overlayfs/super.c ofs->config.nfs_export = ovl_nfs_export_def; ofs 1589 fs/overlayfs/super.c ofs->config.xino = ovl_xino_def(); ofs 1590 fs/overlayfs/super.c ofs->config.metacopy = ovl_metacopy_def; ofs 1591 fs/overlayfs/super.c err = ovl_parse_opt((char *) data, &ofs->config); ofs 1596 fs/overlayfs/super.c if (!ofs->config.lowerdir) { ofs 1605 fs/overlayfs/super.c if (ofs->config.xino != OVL_XINO_OFF) ofs 1606 fs/overlayfs/super.c ofs->xino_bits = BITS_PER_LONG - 32; ofs 1611 fs/overlayfs/super.c if (ofs->config.upperdir) { ofs 1612 fs/overlayfs/super.c if (!ofs->config.workdir) { ofs 1617 fs/overlayfs/super.c err = ovl_get_upper(sb, ofs, &upperpath); ofs 1621 fs/overlayfs/super.c err = ovl_get_workdir(sb, ofs, &upperpath); ofs 1625 fs/overlayfs/super.c if (!ofs->workdir) ofs 1628 fs/overlayfs/super.c sb->s_stack_depth = ofs->upper_mnt->mnt_sb->s_stack_depth; ofs 1629 fs/overlayfs/super.c sb->s_time_gran = ofs->upper_mnt->mnt_sb->s_time_gran; ofs 1632 fs/overlayfs/super.c oe = ovl_get_lowerstack(sb, ofs); ofs 1638 fs/overlayfs/super.c if (!ofs->upper_mnt) ofs 1641 fs/overlayfs/super.c if (!(ovl_force_readonly(ofs)) && ofs->config.index) { ofs 1642 fs/overlayfs/super.c err = ovl_get_indexdir(sb, ofs, oe, &upperpath); ofs 1647 fs/overlayfs/super.c if (!ofs->indexdir) { ofs 1648 fs/overlayfs/super.c dput(ofs->workdir); ofs 1649 fs/overlayfs/super.c ofs->workdir = NULL; ofs 1655 fs/overlayfs/super.c err = ovl_check_overlapping_layers(sb, ofs); ofs 1660 fs/overlayfs/super.c if (!ofs->indexdir) { ofs 1661 fs/overlayfs/super.c ofs->config.index = false; ofs 1662 fs/overlayfs/super.c if (ofs->upper_mnt && ofs->config.nfs_export) { ofs 1664 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 1668 fs/overlayfs/super.c if (ofs->config.metacopy && ofs->config.nfs_export) { ofs 1670 fs/overlayfs/super.c ofs->config.nfs_export = false; ofs 1673 fs/overlayfs/super.c if (ofs->config.nfs_export) ofs 1681 fs/overlayfs/super.c sb->s_fs_info = ofs; ofs 1714 fs/overlayfs/super.c ovl_free_fs(ofs); ofs 20 fs/overlayfs/util.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 21 fs/overlayfs/util.c return mnt_want_write(ofs->upper_mnt); ofs 26 fs/overlayfs/util.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 27 fs/overlayfs/util.c mnt_drop_write(ofs->upper_mnt); ofs 32 fs/overlayfs/util.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 33 fs/overlayfs/util.c return ofs->workdir; ofs 38 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 40 fs/overlayfs/util.c return override_creds(ofs->creator_cred); ofs 45 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 47 fs/overlayfs/util.c if (!ofs->numlowerfs) ofs 48 fs/overlayfs/util.c return ofs->upper_mnt->mnt_sb; ofs 49 fs/overlayfs/util.c else if (ofs->numlowerfs == 1 && !ofs->upper_mnt) ofs 50 fs/overlayfs/util.c return ofs->lower_fs[0].sb; ofs 73 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 75 fs/overlayfs/util.c return ofs->indexdir; ofs 81 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 83 fs/overlayfs/util.c return ofs->config.nfs_export && ofs->config.index; ofs 89 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 91 fs/overlayfs/util.c return ofs->config.nfs_export && ofs->config.index; ofs 147 fs/overlayfs/util.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 149 fs/overlayfs/util.c path->mnt = ofs->upper_mnt; ofs 383 fs/overlayfs/util.c struct ovl_fs *ofs = sb->s_fs_info; ofs 385 fs/overlayfs/util.c return ofs->config.redirect_dir && !ofs->noxattr; ofs 571 fs/overlayfs/util.c struct ovl_fs *ofs = dentry->d_sb->s_fs_info; ofs 573 fs/overlayfs/util.c if (ofs->noxattr) ofs 580 fs/overlayfs/util.c ofs->noxattr = true; ofs 1170 include/linux/libata.h unsigned int ofs, unsigned int len); ofs 1172 include/linux/libata.h unsigned int ofs, unsigned int len); ofs 132 include/linux/mtd/bbm.h int (*isbad_bbt)(struct mtd_info *mtd, loff_t ofs, int allowbbt); ofs 383 include/linux/mtd/cfi.h loff_t ofs, size_t len, void *thunk); ofs 389 include/linux/mtd/map.h static inline map_word inline_map_read(struct map_info *map, unsigned long ofs) ofs 394 include/linux/mtd/map.h r.x[0] = __raw_readb(map->virt + ofs); ofs 396 include/linux/mtd/map.h r.x[0] = __raw_readw(map->virt + ofs); ofs 398 include/linux/mtd/map.h r.x[0] = __raw_readl(map->virt + ofs); ofs 401 include/linux/mtd/map.h r.x[0] = __raw_readq(map->virt + ofs); ofs 404 include/linux/mtd/map.h memcpy_fromio(r.x, map->virt + ofs, map->bankwidth); ofs 411 include/linux/mtd/map.h static inline void inline_map_write(struct map_info *map, const map_word datum, unsigned long ofs) ofs 414 include/linux/mtd/map.h __raw_writeb(datum.x[0], map->virt + ofs); ofs 416 include/linux/mtd/map.h __raw_writew(datum.x[0], map->virt + ofs); ofs 418 include/linux/mtd/map.h __raw_writel(datum.x[0], map->virt + ofs); ofs 421 include/linux/mtd/map.h __raw_writeq(datum.x[0], map->virt + ofs); ofs 424 include/linux/mtd/map.h memcpy_toio(map->virt+ofs, datum.x, map->bankwidth); ofs 444 include/linux/mtd/map.h #define map_read(map, ofs) (map)->read(map, ofs) ofs 446 include/linux/mtd/map.h #define map_write(map, datum, ofs) (map)->write(map, datum, ofs) ofs 453 include/linux/mtd/map.h #define map_read(map, ofs) inline_map_read(map, ofs) ofs 455 include/linux/mtd/map.h #define map_write(map, datum, ofs) inline_map_write(map, datum, ofs) ofs 305 include/linux/mtd/mtd.h int (*_lock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 306 include/linux/mtd/mtd.h int (*_unlock) (struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 307 include/linux/mtd/mtd.h int (*_is_locked) (struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 308 include/linux/mtd/mtd.h int (*_block_isreserved) (struct mtd_info *mtd, loff_t ofs); ofs 309 include/linux/mtd/mtd.h int (*_block_isbad) (struct mtd_info *mtd, loff_t ofs); ofs 310 include/linux/mtd/mtd.h int (*_block_markbad) (struct mtd_info *mtd, loff_t ofs); ofs 311 include/linux/mtd/mtd.h int (*_max_bad_blocks) (struct mtd_info *mtd, loff_t ofs, size_t len); ofs 393 include/linux/mtd/mtd.h loff_t ofs, size_t len) ofs 398 include/linux/mtd/mtd.h if (mtd->size < (len + ofs) || ofs < 0) ofs 401 include/linux/mtd/mtd.h return mtd->_max_bad_blocks(mtd, ofs, len); ofs 446 include/linux/mtd/mtd.h int mtd_lock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 447 include/linux/mtd/mtd.h int mtd_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 448 include/linux/mtd/mtd.h int mtd_is_locked(struct mtd_info *mtd, loff_t ofs, uint64_t len); ofs 449 include/linux/mtd/mtd.h int mtd_block_isreserved(struct mtd_info *mtd, loff_t ofs); ofs 450 include/linux/mtd/mtd.h int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs); ofs 451 include/linux/mtd/mtd.h int mtd_block_markbad(struct mtd_info *mtd, loff_t ofs); ofs 116 include/linux/mtd/onenand.h int (*block_markbad)(struct mtd_info *mtd, loff_t ofs); ofs 1003 include/linux/mtd/rawnand.h int (*block_bad)(struct nand_chip *chip, loff_t ofs); ofs 1004 include/linux/mtd/rawnand.h int (*block_markbad)(struct nand_chip *chip, loff_t ofs); ofs 475 include/linux/mtd/spi-nor.h int (*lock)(struct spi_nor *nor, loff_t ofs, uint64_t len); ofs 476 include/linux/mtd/spi-nor.h int (*unlock)(struct spi_nor *nor, loff_t ofs, uint64_t len); ofs 477 include/linux/mtd/spi-nor.h int (*is_locked)(struct spi_nor *nor, loff_t ofs, uint64_t len); ofs 50 include/linux/rtc/m48t59.h void (*write_byte)(struct device *dev, u32 ofs, u8 val); ofs 51 include/linux/rtc/m48t59.h unsigned char (*read_byte)(struct device *dev, u32 ofs); ofs 75 include/linux/tty.h static inline unsigned char *char_buf_ptr(struct tty_buffer *b, int ofs) ofs 77 include/linux/tty.h return ((unsigned char *)b->data) + ofs; ofs 80 include/linux/tty.h static inline char *flag_buf_ptr(struct tty_buffer *b, int ofs) ofs 82 include/linux/tty.h return (char *)char_buf_ptr(b, ofs) + b->size; ofs 240 include/net/ip_vs.h #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) \ ofs 243 include/net/ip_vs.h pp->debug_packet(af, pp, skb, ofs, msg); \ ofs 245 include/net/ip_vs.h #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) \ ofs 249 include/net/ip_vs.h pp->debug_packet(af, pp, skb, ofs, msg); \ ofs 256 include/net/ip_vs.h #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) do {} while (0) ofs 257 include/net/ip_vs.h #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) do {} while (0) ofs 86 include/pcmcia/cistpl.h u_char ofs[CISTPL_MAX_ALTSTR_STRINGS]; ofs 127 include/pcmcia/cistpl.h u_char ofs[CISTPL_VERS_1_MAX_PROD_STRINGS]; ofs 113 include/sound/memalloc.h unsigned int ofs, unsigned int size); ofs 128 include/sound/memalloc.h #define snd_sgbuf_get_chunk_size(dmab, ofs, size) (size) ofs 1255 include/sound/pcm.h snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs) ofs 1257 include/sound/pcm.h return snd_sgbuf_get_addr(snd_pcm_get_dma_buf(substream), ofs); ofs 1266 include/sound/pcm.h snd_pcm_sgbuf_get_ptr(struct snd_pcm_substream *substream, unsigned int ofs) ofs 1268 include/sound/pcm.h return snd_sgbuf_get_ptr(snd_pcm_get_dma_buf(substream), ofs); ofs 1280 include/sound/pcm.h unsigned int ofs, unsigned int size) ofs 1282 include/sound/pcm.h return snd_sgbuf_get_chunk_size(snd_pcm_get_dma_buf(substream), ofs, size); ofs 63 include/trace/events/erofs.h __field(unsigned int, ofs ) ofs 71 include/trace/events/erofs.h __entry->ofs = erofs_blkoff(iloc(EROFS_I_SB(inode), __entry->nid)); ofs 77 include/trace/events/erofs.h __entry->blkaddr, __entry->ofs, ofs 361 include/trace/events/f2fs.h TP_PROTO(struct inode *inode, nid_t nid, unsigned int ofs, int free), ofs 363 include/trace/events/f2fs.h TP_ARGS(inode, nid, ofs, free), ofs 369 include/trace/events/f2fs.h __field(unsigned int, ofs) ofs 377 include/trace/events/f2fs.h __entry->ofs = ofs; ofs 384 include/trace/events/f2fs.h __entry->ofs, ofs 136 net/ceph/ceph_common.c int ofs = offsetof(struct ceph_options, mon_addr); ofs 147 net/ceph/ceph_common.c ret = memcmp(opt1, opt2, ofs); ofs 775 net/ipv4/netfilter/ipt_CLUSTERIP.c size_t size, loff_t *ofs) ofs 460 net/openvswitch/conntrack.c int ofs; ofs 462 net/openvswitch/conntrack.c ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, ofs 464 net/openvswitch/conntrack.c if (ofs < 0 || (frag_off & htons(~0x7)) != 0) { ofs 468 net/openvswitch/conntrack.c protoff = ofs; ofs 50 security/selinux/ss/ebitmap.h unsigned int ofs; ofs 53 security/selinux/ss/ebitmap.h ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); ofs 54 security/selinux/ss/ebitmap.h if (ofs < EBITMAP_SIZE) ofs 55 security/selinux/ss/ebitmap.h return (*n)->startbit + ofs; ofs 69 security/selinux/ss/ebitmap.h unsigned int ofs; ofs 71 security/selinux/ss/ebitmap.h ofs = find_next_bit((*n)->maps, EBITMAP_SIZE, bit - (*n)->startbit + 1); ofs 72 security/selinux/ss/ebitmap.h if (ofs < EBITMAP_SIZE) ofs 73 security/selinux/ss/ebitmap.h return ofs + (*n)->startbit; ofs 76 security/selinux/ss/ebitmap.h ofs = find_first_bit((*n)->maps, EBITMAP_SIZE); ofs 77 security/selinux/ss/ebitmap.h if (ofs < EBITMAP_SIZE) ofs 78 security/selinux/ss/ebitmap.h return ofs + (*n)->startbit; ofs 92 security/selinux/ss/ebitmap.h unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); ofs 95 security/selinux/ss/ebitmap.h if ((n->maps[index] & (EBITMAP_BIT << ofs))) ofs 104 security/selinux/ss/ebitmap.h unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); ofs 107 security/selinux/ss/ebitmap.h n->maps[index] |= (EBITMAP_BIT << ofs); ofs 114 security/selinux/ss/ebitmap.h unsigned int ofs = EBITMAP_NODE_OFFSET(n, bit); ofs 117 security/selinux/ss/ebitmap.h n->maps[index] &= ~(EBITMAP_BIT << ofs); ofs 48 sound/core/pcm_lib.c snd_pcm_uframes_t frames, ofs, transfer; ofs 82 sound/core/pcm_lib.c ofs = runtime->status->hw_ptr; ofs 83 sound/core/pcm_lib.c frames = new_hw_ptr - ofs; ofs 91 sound/core/pcm_lib.c runtime->silence_start = ofs; ofs 100 sound/core/pcm_lib.c ofs = runtime->silence_start % runtime->buffer_size; ofs 102 sound/core/pcm_lib.c transfer = ofs + frames > runtime->buffer_size ? runtime->buffer_size - ofs : frames; ofs 103 sound/core/pcm_lib.c err = fill_silence_frames(substream, ofs, transfer); ofs 107 sound/core/pcm_lib.c ofs = 0; ofs 3355 sound/core/pcm_native.c snd_pcm_default_page_ops(struct snd_pcm_substream *substream, unsigned long ofs) ofs 3357 sound/core/pcm_native.c void *vaddr = substream->runtime->dma_area + ofs; ofs 141 sound/core/sgbuf.c unsigned int ofs, unsigned int size) ofs 146 sound/core/sgbuf.c start = ofs >> PAGE_SHIFT; ofs 147 sound/core/sgbuf.c end = (ofs + size - 1) >> PAGE_SHIFT; ofs 156 sound/core/sgbuf.c return (start << PAGE_SHIFT) - ofs; ofs 942 sound/drivers/dummy.c #define get_dummy_int_ptr(dummy, ofs) \ ofs 943 sound/drivers/dummy.c (unsigned int *)((char *)&((dummy)->pcm_hw) + (ofs)) ofs 944 sound/drivers/dummy.c #define get_dummy_ll_ptr(dummy, ofs) \ ofs 945 sound/drivers/dummy.c (unsigned long long *)((char *)&((dummy)->pcm_hw) + (ofs)) ofs 362 sound/hda/hdac_stream.c int ofs, int size, int with_ioc) ofs 373 sound/hda/hdac_stream.c addr = snd_sgbuf_get_addr(dmab, ofs); ofs 378 sound/hda/hdac_stream.c chunk = snd_sgbuf_get_chunk_size(dmab, ofs, size); ofs 381 sound/hda/hdac_stream.c u32 remain = 0x1000 - (ofs & 0xfff); ofs 394 sound/hda/hdac_stream.c ofs += chunk; ofs 397 sound/hda/hdac_stream.c return ofs; ofs 413 sound/hda/hdac_stream.c int i, ofs, periods, period_bytes; ofs 425 sound/hda/hdac_stream.c ofs = 0; ofs 443 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), ofs 445 sound/hda/hdac_stream.c &bdl, ofs, pos_adj, true); ofs 446 sound/hda/hdac_stream.c if (ofs < 0) ofs 454 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), ofs 455 sound/hda/hdac_stream.c azx_dev, &bdl, ofs, ofs 458 sound/hda/hdac_stream.c ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream), ofs 459 sound/hda/hdac_stream.c azx_dev, &bdl, ofs, ofs 462 sound/hda/hdac_stream.c if (ofs < 0) ofs 326 sound/pci/emu10k1/memory.c unsigned long ofs = idx << PAGE_SHIFT; ofs 328 sound/pci/emu10k1/memory.c if (ofs >= runtime->dma_bytes) ofs 331 sound/pci/emu10k1/memory.c addr = snd_pcm_sgbuf_get_addr(substream, ofs); ofs 1380 sound/pci/hda/hda_codec.c unsigned int ofs) ofs 1385 sound/pci/hda/hda_codec.c if (ofs < caps) ofs 1386 sound/pci/hda/hda_codec.c caps -= ofs; ofs 1405 sound/pci/hda/hda_codec.c unsigned int ofs = get_amp_offset(kcontrol); ofs 1410 sound/pci/hda/hda_codec.c uinfo->value.integer.max = get_amp_max_value(codec, nid, dir, ofs); ofs 1424 sound/pci/hda/hda_codec.c int ch, int dir, int idx, unsigned int ofs) ofs 1429 sound/pci/hda/hda_codec.c if (val >= ofs) ofs 1430 sound/pci/hda/hda_codec.c val -= ofs; ofs 1438 sound/pci/hda/hda_codec.c int ch, int dir, int idx, unsigned int ofs, ofs 1444 sound/pci/hda/hda_codec.c val += ofs; ofs 1469 sound/pci/hda/hda_codec.c unsigned int ofs = get_amp_offset(kcontrol); ofs 1473 sound/pci/hda/hda_codec.c *valp++ = read_amp_value(codec, nid, 0, dir, idx, ofs); ofs 1475 sound/pci/hda/hda_codec.c *valp = read_amp_value(codec, nid, 1, dir, idx, ofs); ofs 1496 sound/pci/hda/hda_codec.c unsigned int ofs = get_amp_offset(kcontrol); ofs 1501 sound/pci/hda/hda_codec.c change = update_amp_value(codec, nid, 0, dir, idx, ofs, *valp); ofs 1505 sound/pci/hda/hda_codec.c change |= update_amp_value(codec, nid, 1, dir, idx, ofs, *valp); ofs 1516 sound/pci/hda/hda_codec.c unsigned int ofs = get_amp_offset(kcontrol); ofs 1524 sound/pci/hda/hda_codec.c val1 += ofs; ofs 26 sound/pci/hda/hda_local.h #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ ofs 27 sound/pci/hda/hda_local.h ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) ofs 796 sound/pci/ice1712/aureon.c int i, ofs, voices; ofs 799 sound/pci/ice1712/aureon.c ofs = kcontrol->private_value & 0xff; ofs 802 sound/pci/ice1712/aureon.c spec->vol[ofs+i] & ~WM_VOL_MUTE; ofs 810 sound/pci/ice1712/aureon.c int i, idx, ofs, voices; ofs 814 sound/pci/ice1712/aureon.c ofs = kcontrol->private_value & 0xff; ofs 820 sound/pci/ice1712/aureon.c vol |= spec->vol[ofs+i] & WM_VOL_MUTE; ofs 821 sound/pci/ice1712/aureon.c if (vol != spec->vol[ofs+i]) { ofs 822 sound/pci/ice1712/aureon.c spec->vol[ofs+i] = vol; ofs 823 sound/pci/ice1712/aureon.c idx = WM_DAC_ATTEN + ofs + i; ofs 824 sound/pci/ice1712/aureon.c wm_set_vol(ice, idx, spec->vol[ofs + i], ofs 849 sound/pci/ice1712/aureon.c int voices, ofs, i; ofs 852 sound/pci/ice1712/aureon.c ofs = kcontrol->private_value & 0xFF; ofs 856 sound/pci/ice1712/aureon.c (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; ofs 864 sound/pci/ice1712/aureon.c int change = 0, voices, ofs, i; ofs 867 sound/pci/ice1712/aureon.c ofs = kcontrol->private_value & 0xFF; ofs 871 sound/pci/ice1712/aureon.c int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; ofs 873 sound/pci/ice1712/aureon.c spec->vol[ofs + i] &= ~WM_VOL_MUTE; ofs 874 sound/pci/ice1712/aureon.c spec->vol[ofs + i] |= ofs 876 sound/pci/ice1712/aureon.c wm_set_vol(ice, ofs + i, spec->vol[ofs + i], ofs 480 sound/pci/ice1712/phase.c int i, ofs, voices; ofs 483 sound/pci/ice1712/phase.c ofs = kcontrol->private_value & 0xff; ofs 486 sound/pci/ice1712/phase.c spec->vol[ofs+i] & ~WM_VOL_MUTE; ofs 495 sound/pci/ice1712/phase.c int i, idx, ofs, voices; ofs 499 sound/pci/ice1712/phase.c ofs = kcontrol->private_value & 0xff; ofs 506 sound/pci/ice1712/phase.c vol |= spec->vol[ofs+i] & WM_VOL_MUTE; ofs 507 sound/pci/ice1712/phase.c if (vol != spec->vol[ofs+i]) { ofs 508 sound/pci/ice1712/phase.c spec->vol[ofs+i] = vol; ofs 509 sound/pci/ice1712/phase.c idx = WM_DAC_ATTEN + ofs + i; ofs 510 sound/pci/ice1712/phase.c wm_set_vol(ice, idx, spec->vol[ofs+i], ofs 536 sound/pci/ice1712/phase.c int voices, ofs, i; ofs 539 sound/pci/ice1712/phase.c ofs = kcontrol->private_value & 0xFF; ofs 543 sound/pci/ice1712/phase.c (spec->vol[ofs+i] & WM_VOL_MUTE) ? 0 : 1; ofs 552 sound/pci/ice1712/phase.c int change = 0, voices, ofs, i; ofs 555 sound/pci/ice1712/phase.c ofs = kcontrol->private_value & 0xFF; ofs 559 sound/pci/ice1712/phase.c int val = (spec->vol[ofs + i] & WM_VOL_MUTE) ? 0 : 1; ofs 561 sound/pci/ice1712/phase.c spec->vol[ofs + i] &= ~WM_VOL_MUTE; ofs 562 sound/pci/ice1712/phase.c spec->vol[ofs + i] |= ofs 565 sound/pci/ice1712/phase.c wm_set_vol(ice, ofs + i, spec->vol[ofs + i], ofs 413 sound/pci/ice1712/prodigy_hifi.c int i, ofs, voices; ofs 416 sound/pci/ice1712/prodigy_hifi.c ofs = kcontrol->private_value & 0xff; ofs 418 sound/pci/ice1712/prodigy_hifi.c ucontrol->value.integer.value[i] = spec->vol[ofs + i]; ofs 426 sound/pci/ice1712/prodigy_hifi.c int i, idx, ofs, voices; ofs 430 sound/pci/ice1712/prodigy_hifi.c ofs = kcontrol->private_value & 0xff; ofs 433 sound/pci/ice1712/prodigy_hifi.c if (ucontrol->value.integer.value[i] != spec->vol[ofs + i]) { ofs 434 sound/pci/ice1712/prodigy_hifi.c idx = WM8766_LDA1 + ofs + i; ofs 435 sound/pci/ice1712/prodigy_hifi.c spec->vol[ofs + i] &= WM_VOL_MUTE; ofs 436 sound/pci/ice1712/prodigy_hifi.c spec->vol[ofs + i] |= ucontrol->value.integer.value[i]; ofs 438 sound/pci/ice1712/prodigy_hifi.c spec->vol[ofs + i], spec->master[i]); ofs 675 sound/pci/lola/lola_mixer.c unsigned int ofs = kcontrol->private_value & 0xff; ofs 681 sound/pci/lola/lola_mixer.c unsigned int idx = ofs + i; ofs 698 sound/pci/lola/lola_mixer.c unsigned int ofs = kcontrol->private_value & 0xff; ofs 703 sound/pci/lola/lola_mixer.c unsigned int idx = ofs + i; ofs 728 sound/pci/lola/lola_mixer.c int num, int ofs, char *name) ofs 731 sound/pci/lola/lola_mixer.c lola_src_gain_mixer.private_value = ofs + (num << 8); ofs 816 sound/pci/lola/lola_mixer.c int num, int ofs, char *name) ofs 821 sound/pci/lola/lola_mixer.c src_ofs + (src_num << 8) + (ofs << 16) + (num << 24); ofs 307 sound/pci/lola/lola_pcm.c int ofs, int size) ofs 318 sound/pci/lola/lola_pcm.c addr = snd_pcm_sgbuf_get_addr(substream, ofs); ofs 323 sound/pci/lola/lola_pcm.c chunk = snd_pcm_sgbuf_get_chunk_size(substream, ofs, size); ofs 332 sound/pci/lola/lola_pcm.c ofs += chunk; ofs 335 sound/pci/lola/lola_pcm.c return ofs; ofs 346 sound/pci/lola/lola_pcm.c int i, ofs, periods, period_bytes; ofs 353 sound/pci/lola/lola_pcm.c ofs = 0; ofs 356 sound/pci/lola/lola_pcm.c ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes); ofs 357 sound/pci/lola/lola_pcm.c if (ofs < 0) ofs 1493 sound/pci/riptide/riptide.c unsigned int ofs, addr; ofs 1501 sound/pci/riptide/riptide.c ofs = j << PAGE_SHIFT; ofs 1502 sound/pci/riptide/riptide.c addr = snd_pcm_sgbuf_get_addr(substream, ofs) + pt; ofs 4596 sound/pci/rme9652/hdsp.c int i, j, channels, ofs; ofs 4604 sound/pci/rme9652/hdsp.c ofs = HDSP_9652_peakBase - j * 4; ofs 4605 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->input_peaks[i], hdsp->iobase + ofs)) ofs 4607 sound/pci/rme9652/hdsp.c ofs -= channels * 4; ofs 4608 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->playback_peaks[i], hdsp->iobase + ofs)) ofs 4610 sound/pci/rme9652/hdsp.c ofs -= channels * 4; ofs 4611 sound/pci/rme9652/hdsp.c if (copy_u32_le(&peak_rms->output_peaks[i], hdsp->iobase + ofs)) ofs 4613 sound/pci/rme9652/hdsp.c ofs = HDSP_9652_rmsBase + j * 8; ofs 4614 sound/pci/rme9652/hdsp.c if (copy_u48_le(&peak_rms->input_rms[i], hdsp->iobase + ofs, ofs 4615 sound/pci/rme9652/hdsp.c hdsp->iobase + ofs + 4)) ofs 4617 sound/pci/rme9652/hdsp.c ofs += channels * 8; ofs 4618 sound/pci/rme9652/hdsp.c if (copy_u48_le(&peak_rms->playback_rms[i], hdsp->iobase + ofs, ofs 4619 sound/pci/rme9652/hdsp.c hdsp->iobase + ofs + 4)) ofs 4621 sound/pci/rme9652/hdsp.c ofs += channels * 8; ofs 4622 sound/pci/rme9652/hdsp.c if (copy_u48_le(&peak_rms->output_rms[i], hdsp->iobase + ofs, ofs 4623 sound/pci/rme9652/hdsp.c hdsp->iobase + ofs + 4)) ofs 202 sound/pci/trident/trident_memory.c unsigned long ofs = idx << PAGE_SHIFT; ofs 203 sound/pci/trident/trident_memory.c dma_addr_t addr = snd_pcm_sgbuf_get_addr(substream, ofs); ofs 205 sound/pci/trident/trident_memory.c snd_pcm_sgbuf_get_ptr(substream, ofs); ofs 415 sound/pci/via82xx.c unsigned int i, idx, ofs, rest; ofs 437 sound/pci/via82xx.c ofs = 0; ofs 453 sound/pci/via82xx.c addr = snd_pcm_sgbuf_get_addr(substream, ofs); ofs 455 sound/pci/via82xx.c r = snd_pcm_sgbuf_get_chunk_size(substream, ofs, rest); ofs 470 sound/pci/via82xx.c dev->idx_table[idx].offset = ofs; ofs 472 sound/pci/via82xx.c ofs += r; ofs 268 sound/pci/via82xx_modem.c unsigned int i, idx, ofs, rest; ofs 290 sound/pci/via82xx_modem.c ofs = 0; ofs 306 sound/pci/via82xx_modem.c addr = snd_pcm_sgbuf_get_addr(substream, ofs); ofs 308 sound/pci/via82xx_modem.c r = PAGE_SIZE - (ofs % PAGE_SIZE); ofs 325 sound/pci/via82xx_modem.c dev->idx_table[idx].offset = ofs; ofs 327 sound/pci/via82xx_modem.c ofs += r; ofs 816 sound/ppc/tumbler.c #define DEFINE_SNAPPER_MIX(xname,idx,ofs) { \ ofs 823 sound/ppc/tumbler.c .private_value = ofs, \ ofs 43 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 56 sound/soc/fsl/fsl_sai.c regmap_read(sai->regmap, FSL_SAI_TCSR(ofs), &xcsr); ofs 86 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), flags | xcsr); ofs 90 sound/soc/fsl/fsl_sai.c regmap_read(sai->regmap, FSL_SAI_RCSR(ofs), &xcsr); ofs 120 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), flags | xcsr); ofs 154 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 175 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), ofs 208 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 303 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR2(tx, ofs), ofs 305 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx, ofs), ofs 332 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 395 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR2(ofs), ofs 398 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR2(ofs), ofs 402 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR2(ofs), ofs 405 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR2(ofs), ofs 420 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 479 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR4(ofs), ofs 482 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR5(ofs), ofs 488 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR4(ofs), ofs 491 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR5(ofs), ofs 499 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR4(tx, ofs), ofs 502 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR5(tx, ofs), ofs 530 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 540 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR2(ofs), FSL_SAI_CR2_SYNC, ofs 542 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR2(ofs), FSL_SAI_CR2_SYNC, ofs 553 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs), ofs 556 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCSR(ofs), ofs 558 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCSR(ofs), ofs 561 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs), ofs 567 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs), ofs 569 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCSR(tx, ofs), ofs 573 sound/soc/fsl/fsl_sai.c regmap_read(sai->regmap, FSL_SAI_xCSR(!tx, ofs), &xcsr); ofs 576 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCSR(ofs), ofs 578 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCSR(ofs), ofs 585 sound/soc/fsl/fsl_sai.c FSL_SAI_xCSR(tx, ofs), &xcsr); ofs 588 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCSR(ofs), ofs 590 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCSR(ofs), ofs 602 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), ofs 604 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), ofs 607 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), 0); ofs 608 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), 0); ofs 623 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 627 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR3(tx, ofs), ofs 651 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 654 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_xCR3(tx, ofs), ofs 673 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 676 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), FSL_SAI_CSR_SR); ofs 677 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), FSL_SAI_CSR_SR); ofs 679 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), 0); ofs 680 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), 0); ofs 682 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_TCR1(ofs), ofs 685 sound/soc/fsl/fsl_sai.c regmap_update_bits(sai->regmap, FSL_SAI_RCR1(ofs), ofs 772 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 774 sound/soc/fsl/fsl_sai.c if (reg >= FSL_SAI_TCSR(ofs) && reg <= FSL_SAI_TCR5(ofs)) ofs 777 sound/soc/fsl/fsl_sai.c if (reg >= FSL_SAI_RCSR(ofs) && reg <= FSL_SAI_RCR5(ofs)) ofs 816 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 818 sound/soc/fsl/fsl_sai.c if (reg == FSL_SAI_TCSR(ofs) || reg == FSL_SAI_RCSR(ofs)) ofs 855 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 857 sound/soc/fsl/fsl_sai.c if (reg >= FSL_SAI_TCSR(ofs) && reg <= FSL_SAI_TCR5(ofs)) ofs 860 sound/soc/fsl/fsl_sai.c if (reg >= FSL_SAI_RCSR(ofs) && reg <= FSL_SAI_RCR5(ofs)) ofs 1117 sound/soc/fsl/fsl_sai.c unsigned int ofs = sai->soc_data->reg_offset; ofs 1139 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), FSL_SAI_CSR_SR); ofs 1140 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), FSL_SAI_CSR_SR); ofs 1142 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_TCSR(ofs), 0); ofs 1143 sound/soc/fsl/fsl_sai.c regmap_write(sai->regmap, FSL_SAI_RCSR(ofs), 0); ofs 17 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCSR(ofs) (0x00 + ofs) /* SAI Transmit Control */ ofs 18 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCR1(ofs) (0x04 + ofs) /* SAI Transmit Configuration 1 */ ofs 19 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCR2(ofs) (0x08 + ofs) /* SAI Transmit Configuration 2 */ ofs 20 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCR3(ofs) (0x0c + ofs) /* SAI Transmit Configuration 3 */ ofs 21 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCR4(ofs) (0x10 + ofs) /* SAI Transmit Configuration 4 */ ofs 22 sound/soc/fsl/fsl_sai.h #define FSL_SAI_TCR5(ofs) (0x14 + ofs) /* SAI Transmit Configuration 5 */ ofs 40 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCSR(ofs) (0x80 + ofs) /* SAI Receive Control */ ofs 41 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCR1(ofs) (0x84 + ofs)/* SAI Receive Configuration 1 */ ofs 42 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCR2(ofs) (0x88 + ofs) /* SAI Receive Configuration 2 */ ofs 43 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCR3(ofs) (0x8c + ofs) /* SAI Receive Configuration 3 */ ofs 44 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCR4(ofs) (0x90 + ofs) /* SAI Receive Configuration 4 */ ofs 45 sound/soc/fsl/fsl_sai.h #define FSL_SAI_RCR5(ofs) (0x94 + ofs) /* SAI Receive Configuration 5 */ ofs 64 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCSR(tx, ofs) (tx ? FSL_SAI_TCSR(ofs) : FSL_SAI_RCSR(ofs)) ofs 65 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCR1(tx, ofs) (tx ? FSL_SAI_TCR1(ofs) : FSL_SAI_RCR1(ofs)) ofs 66 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCR2(tx, ofs) (tx ? FSL_SAI_TCR2(ofs) : FSL_SAI_RCR2(ofs)) ofs 67 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCR3(tx, ofs) (tx ? FSL_SAI_TCR3(ofs) : FSL_SAI_RCR3(ofs)) ofs 68 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCR4(tx, ofs) (tx ? FSL_SAI_TCR4(ofs) : FSL_SAI_RCR4(ofs)) ofs 69 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xCR5(tx, ofs) (tx ? FSL_SAI_TCR5(ofs) : FSL_SAI_RCR5(ofs)) ofs 70 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xDR(tx, ofs) (tx ? FSL_SAI_TDR(ofs) : FSL_SAI_RDR(ofs)) ofs 71 sound/soc/fsl/fsl_sai.h #define FSL_SAI_xFR(tx, ofs) (tx ? FSL_SAI_TFR(ofs) : FSL_SAI_RFR(ofs)) ofs 873 sound/x86/intel_hdmi_audio.c int ofs = intelhaddata->pcmbuf_filled * intelhaddata->period_bytes; ofs 874 sound/x86/intel_hdmi_audio.c u32 addr = substream->runtime->dma_addr + ofs; ofs 2309 tools/include/nolibc/nolibc.h size_t ofs = 0; ofs 2312 tools/include/nolibc/nolibc.h while (ofs < n && !(c1 = ((char *)s1)[ofs] - ((char *)s2)[ofs])) { ofs 2313 tools/include/nolibc/nolibc.h ofs++; ofs 303 tools/perf/util/unwind-libunwind-local.c u64 ofs = dso->data.debug_frame_offset; ofs 311 tools/perf/util/unwind-libunwind-local.c if (ofs == 0) { ofs 314 tools/perf/util/unwind-libunwind-local.c ofs = elf_section_offset(fd, ".debug_frame"); ofs 318 tools/perf/util/unwind-libunwind-local.c if (ofs <= 0) { ofs 321 tools/perf/util/unwind-libunwind-local.c ofs = elf_section_offset(fd, ".debug_frame"); ofs 326 tools/perf/util/unwind-libunwind-local.c if (ofs <= 0) { ofs 336 tools/perf/util/unwind-libunwind-local.c ofs = elf_section_offset(fd, ofs 341 tools/perf/util/unwind-libunwind-local.c if (ofs > 0) { ofs 356 tools/perf/util/unwind-libunwind-local.c dso->data.debug_frame_offset = ofs; ofs 359 tools/perf/util/unwind-libunwind-local.c *offset = ofs;