off 59 arch/alpha/include/asm/core_marvel.h #define EV7_CSR_PHYS(pe, off) (EV7_IPE(pe) | (0x7FFCUL << 20) | (off)) off 62 arch/alpha/include/asm/core_marvel.h #define EV7_CSR_KERN(pe, off) (EV7_KERN_ADDR(EV7_CSR_PHYS(pe, off))) off 257 arch/alpha/include/asm/core_marvel.h #define IO7_CSR_PHYS(pe, port, off) \ off 258 arch/alpha/include/asm/core_marvel.h (IO7_HOSE(pe, port) | 0xFF800000UL | (off)) off 265 arch/alpha/include/asm/core_marvel.h #define IO7_CSR_KERN(pe, port, off) (IO7_KERN_ADDR(IO7_CSR_PHYS(pe,port,off))) off 52 arch/alpha/include/asm/gct.h #define GCT_NODE_PTR(off) ((gct6_node *)((char *)hwrpb + \ off 54 arch/alpha/include/asm/gct.h (gct6_handle)(off))) \ off 343 arch/alpha/include/asm/pgtable.h #define __swp_entry(type, off) ((swp_entry_t) { pte_val(mk_swap_pte((type), (off))) }) off 179 arch/alpha/kernel/osf_sys.c unsigned long, off) off 188 arch/alpha/kernel/osf_sys.c if ((off + PAGE_ALIGN(len)) < off) off 190 arch/alpha/kernel/osf_sys.c if (off & ~PAGE_MASK) off 192 arch/alpha/kernel/osf_sys.c ret = ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 98 arch/alpha/kernel/pci-noop.c unsigned long, off, unsigned long, len, void __user *, buf) off 107 arch/alpha/kernel/pci-noop.c unsigned long, off, unsigned long, len, void __user *, buf) off 87 arch/alpha/kernel/sys_nautilus.c int off; off 103 arch/alpha/kernel/sys_nautilus.c off = 0x2000; /* SLP_TYPE = 0, SLP_EN = 1 */ off 107 arch/alpha/kernel/sys_nautilus.c off = 0x3400; /* SLP_TYPE = 5, SLP_EN = 1 */ off 112 arch/alpha/kernel/sys_nautilus.c outw(off, pmuport + 4); off 285 arch/arc/include/asm/entry.h .macro GET_CURR_TASK_FIELD_PTR off, reg off 291 arch/arc/include/asm/entry.h .macro GET_CURR_TASK_FIELD_PTR off, reg off 10 arch/arc/include/asm/fb.h unsigned long off) off 13 arch/arc/include/asm/linkage.h .macro ST2 e, o, off off 22 arch/arc/include/asm/linkage.h .macro LD2 e, o, off off 372 arch/arc/include/asm/pgtable.h #define __swp_entry(type, off) ((swp_entry_t) { \ off 373 arch/arc/include/asm/pgtable.h ((type) & 0x1f) | ((off) << 13) }) off 87 arch/arc/include/asm/processor.h #define TSK_K_REG(tsk, off) (*((unsigned long *)(TSK_K_ESP(tsk) + \ off 88 arch/arc/include/asm/processor.h sizeof(struct callee_regs) + off))) off 975 arch/arc/mm/cache.c unsigned int off, sz; off 978 arch/arc/mm/cache.c off = kstart % PAGE_SIZE; off 980 arch/arc/mm/cache.c phy = (pfn << PAGE_SHIFT) + off; off 981 arch/arc/mm/cache.c sz = min_t(unsigned int, tot_sz, PAGE_SIZE - off); off 58 arch/arc/mm/ioremap.c phys_addr_t off, end; off 74 arch/arc/mm/ioremap.c off = paddr & ~PAGE_MASK; off 90 arch/arc/mm/ioremap.c return (void __iomem *)(off + (char __iomem *)vaddr); off 316 arch/arc/plat-axs10x/axs10x.c int off = fdt_path_offset(initial_boot_params, "/cpu_card/core_clk"); off 319 arch/arc/plat-axs10x/axs10x.c prop = fdt_get_property(initial_boot_params, off, off 326 arch/arc/plat-axs10x/axs10x.c fdt_setprop_inplace(initial_boot_params, off, off 369 arch/arm/common/dmabounce.c unsigned long off; off 378 arch/arm/common/dmabounce.c off = addr - buf->safe_dma_addr; off 383 arch/arm/common/dmabounce.c __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, off 390 arch/arm/common/dmabounce.c __func__, buf->safe + off, buf->ptr + off, sz); off 391 arch/arm/common/dmabounce.c memcpy(buf->ptr + off, buf->safe + off, sz); off 409 arch/arm/common/dmabounce.c unsigned long off; off 418 arch/arm/common/dmabounce.c off = addr - buf->safe_dma_addr; off 423 arch/arm/common/dmabounce.c __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, off 430 arch/arm/common/dmabounce.c __func__,buf->ptr + off, buf->safe + off, sz); off 431 arch/arm/common/dmabounce.c memcpy(buf->safe + off, buf->ptr + off, sz); off 373 arch/arm/include/asm/assembler.h .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER() off 201 arch/arm/include/asm/bitops.h #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) off 203 arch/arm/include/asm/bitops.h #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) off 210 arch/arm/include/asm/bitops.h #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) off 212 arch/arm/include/asm/bitops.h #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) off 9 arch/arm/include/asm/fb.h unsigned long off) off 19 arch/arm/include/asm/hardware/ioc.h #define ioc_readb(off) __raw_readb(IOC_BASE + (off)) off 20 arch/arm/include/asm/hardware/ioc.h #define ioc_writeb(val,off) __raw_writeb(val, IOC_BASE + (off)) off 20 arch/arm/include/asm/hardware/iomd.h #define iomd_readb(off) __raw_readb(IOMD_BASE + (off)) off 21 arch/arm/include/asm/hardware/iomd.h #define iomd_readl(off) __raw_readl(IOMD_BASE + (off)) off 22 arch/arm/include/asm/hardware/iomd.h #define iomd_writeb(val,off) __raw_writeb(val, IOMD_BASE + (off)) off 23 arch/arm/include/asm/hardware/iomd.h #define iomd_writel(val,off) __raw_writel(val, IOMD_BASE + (off)) off 13 arch/arm/include/asm/percpu.h static inline void set_my_cpu_offset(unsigned long off) off 16 arch/arm/include/asm/percpu.h asm volatile("mcr p15, 0, %0, c13, c0, 4" : : "r" (off) : "memory"); off 21 arch/arm/include/asm/percpu.h unsigned long off; off 28 arch/arm/include/asm/percpu.h asm("mrc p15, 0, %0, c13, c0, 4" : "=r" (off) off 31 arch/arm/include/asm/percpu.h return off; off 47 arch/arm/include/asm/pgtable-nommu.h #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) off 251 arch/arm/kernel/ptrace.c static int ptrace_read_user(struct task_struct *tsk, unsigned long off, off 256 arch/arm/kernel/ptrace.c if (off & 3) off 260 arch/arm/kernel/ptrace.c if (off == PT_TEXT_ADDR) off 262 arch/arm/kernel/ptrace.c else if (off == PT_DATA_ADDR) off 264 arch/arm/kernel/ptrace.c else if (off == PT_TEXT_END_ADDR) off 266 arch/arm/kernel/ptrace.c else if (off < sizeof(struct pt_regs)) off 267 arch/arm/kernel/ptrace.c tmp = get_user_reg(tsk, off >> 2); off 268 arch/arm/kernel/ptrace.c else if (off >= sizeof(struct user)) off 278 arch/arm/kernel/ptrace.c static int ptrace_write_user(struct task_struct *tsk, unsigned long off, off 281 arch/arm/kernel/ptrace.c if (off & 3 || off >= sizeof(struct user)) off 284 arch/arm/kernel/ptrace.c if (off >= sizeof(struct pt_regs)) off 287 arch/arm/kernel/ptrace.c return put_user_reg(tsk, off >> 2, val); off 47 arch/arm/kvm/guest.c u64 off; off 53 arch/arm/kvm/guest.c off = core_reg_offset_from_id(reg->id); off 54 arch/arm/kvm/guest.c if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) off 57 arch/arm/kvm/guest.c return put_user(((u32 *)regs)[off], uaddr); off 64 arch/arm/kvm/guest.c u64 off, val; off 70 arch/arm/kvm/guest.c off = core_reg_offset_from_id(reg->id); off 71 arch/arm/kvm/guest.c if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) off 77 arch/arm/kvm/guest.c if (off == KVM_REG_ARM_CORE_REG(usr_regs.ARM_cpsr)) { off 92 arch/arm/kvm/guest.c ((u32 *)regs)[off] = val; off 61 arch/arm/mach-bcm/bcm63xx_pmb.c unsigned int addr, u32 off, u32 *val, off 66 arch/arm/mach-bcm/bcm63xx_pmb.c ret = bpcm_wr(master, addr, off, *val); off 71 arch/arm/mach-bcm/bcm63xx_pmb.c ret = bpcm_rd(master, addr, off, val); off 351 arch/arm/mach-ebsa110/io.c u32 off; off 354 arch/arm/mach-ebsa110/io.c off = port << 2; off 356 arch/arm/mach-ebsa110/io.c off = (port & ~1) << 1; off 361 arch/arm/mach-ebsa110/io.c __raw_writesb((void __iomem *)ISAIO_BASE + off, from, len); off 366 arch/arm/mach-ebsa110/io.c u32 off; off 369 arch/arm/mach-ebsa110/io.c off = port << 2; off 371 arch/arm/mach-ebsa110/io.c off = (port & ~1) << 1; off 376 arch/arm/mach-ebsa110/io.c __raw_readsb((void __iomem *)ISAIO_BASE + off, from, len); off 384 arch/arm/mach-ebsa110/io.c u32 off; off 387 arch/arm/mach-ebsa110/io.c off = port << 2; off 389 arch/arm/mach-ebsa110/io.c off = (port & ~1) << 1; off 394 arch/arm/mach-ebsa110/io.c __raw_writesw((void __iomem *)ISAIO_BASE + off, from, len); off 399 arch/arm/mach-ebsa110/io.c u32 off; off 402 arch/arm/mach-ebsa110/io.c off = port << 2; off 404 arch/arm/mach-ebsa110/io.c off = (port & ~1) << 1; off 409 arch/arm/mach-ebsa110/io.c __raw_readsw((void __iomem *)ISAIO_BASE + off, from, len); off 421 arch/arm/mach-ebsa110/io.c u32 off = port << 1; off 426 arch/arm/mach-ebsa110/io.c __raw_writesw((void __iomem *)ISAIO_BASE + off, from, len << 1); off 431 arch/arm/mach-ebsa110/io.c u32 off = port << 1; off 436 arch/arm/mach-ebsa110/io.c __raw_readsw((void __iomem *)ISAIO_BASE + off, from, len << 1); off 363 arch/arm/mach-omap2/vc.c omap3_init_voltsetup1(voltdm, c, voltdm->vc_param->off); off 516 arch/arm/mach-omap2/vc.c voltdm->vc_param->on - voltdm->vc_param->off); off 824 arch/arm/mach-omap2/vc.c off_vsel = omap_vc_calc_vsel(voltdm, voltdm->vc_param->off); off 85 arch/arm/mach-omap2/vc3xxx_data.c .off = OMAP3_OFF_VOLTAGE_UV, off 92 arch/arm/mach-omap2/vc3xxx_data.c .off = OMAP3_OFF_VOLTAGE_UV, off 100 arch/arm/mach-omap2/vc44xx_data.c .off = OMAP4_OFF_VOLTAGE_UV, off 107 arch/arm/mach-omap2/vc44xx_data.c .off = OMAP4_OFF_VOLTAGE_UV, off 114 arch/arm/mach-omap2/vc44xx_data.c .off = OMAP4_OFF_VOLTAGE_UV, off 148 arch/arm/mach-omap2/voltage.h u32 off; off 159 arch/arm/mach-orion5x/ts78xx-setup.c unsigned long off = ((unsigned long)buf & 3); off 162 arch/arm/mach-orion5x/ts78xx-setup.c if (off) { off 163 arch/arm/mach-orion5x/ts78xx-setup.c sz = min_t(int, 4 - off, len); off 185 arch/arm/mach-orion5x/ts78xx-setup.c unsigned long off = ((unsigned long)buf & 3); off 188 arch/arm/mach-orion5x/ts78xx-setup.c if (off) { off 189 arch/arm/mach-orion5x/ts78xx-setup.c sz = min_t(int, 4 - off, len); off 90 arch/arm/mach-rpc/ecard.c ecard_loader_read(int off, unsigned long base, loader_t loader); off 138 arch/arm/mach-rpc/ecard.c unsigned int off = req->address; off 152 arch/arm/mach-rpc/ecard.c page = (off >> 12) * 4; off 156 arch/arm/mach-rpc/ecard.c off &= 4095; off 162 arch/arm/mach-rpc/ecard.c if (off == 0 || index > off) { off 171 arch/arm/mach-rpc/ecard.c while (index < off) { off 187 arch/arm/mach-rpc/ecard.c off *= 4; off 189 arch/arm/mach-rpc/ecard.c *buf++ = readb(pbase + off); off 190 arch/arm/mach-rpc/ecard.c off += 4; off 199 arch/arm/mach-rpc/ecard.c *buf++ = ecard_loader_read(off++, base, off 312 arch/arm/mach-rpc/ecard.c ecard_readbytes(void *addr, ecard_t *ec, int off, int len, int useld) off 318 arch/arm/mach-rpc/ecard.c req.address = off; off 403 arch/arm/mach-vexpress/spc.c uint32_t data = 0, off, ret, idx; off 412 arch/arm/mach-vexpress/spc.c off = cluster_is_a15(cluster) ? A15_PERFVAL_BASE : A7_PERFVAL_BASE; off 413 arch/arm/mach-vexpress/spc.c for (idx = 0; idx < MAX_OPPS; idx++, off += 4, opps++) { off 414 arch/arm/mach-vexpress/spc.c ret = ve_spc_read_sys_cfg(SYSCFG_SCC, off, &data); off 795 arch/arm/mm/dma-mapping.c unsigned long off = vma->vm_pgoff; off 800 arch/arm/mm/dma-mapping.c if (off < nr_pages && nr_vma_pages <= (nr_pages - off)) { off 802 arch/arm/mm/dma-mapping.c pfn + off, off 940 arch/arm/mm/dma-mapping.c static void __dma_page_cpu_to_dev(struct page *page, unsigned long off, off 945 arch/arm/mm/dma-mapping.c dma_cache_maint_page(page, off, size, dir, dmac_map_area); off 947 arch/arm/mm/dma-mapping.c paddr = page_to_phys(page) + off; off 956 arch/arm/mm/dma-mapping.c static void __dma_page_dev_to_cpu(struct page *page, unsigned long off, off 959 arch/arm/mm/dma-mapping.c phys_addr_t paddr = page_to_phys(page) + off; off 966 arch/arm/mm/dma-mapping.c dma_cache_maint_page(page, off, size, dir, dmac_unmap_area); off 976 arch/arm/mm/dma-mapping.c pfn = page_to_pfn(page) + off / PAGE_SIZE; off 977 arch/arm/mm/dma-mapping.c off %= PAGE_SIZE; off 978 arch/arm/mm/dma-mapping.c if (off) { off 980 arch/arm/mm/dma-mapping.c left -= PAGE_SIZE - off; off 319 arch/arm/net/bpf_jit_32.c #define ARM_LDR_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_LDR_I, rt, rn, off) off 320 arch/arm/net/bpf_jit_32.c #define ARM_LDRB_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_LDRB_I, rt, rn, off) off 321 arch/arm/net/bpf_jit_32.c #define ARM_LDRD_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_LDRD_I, rt, rn, off) off 322 arch/arm/net/bpf_jit_32.c #define ARM_LDRH_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_LDRH_I, rt, rn, off) off 324 arch/arm/net/bpf_jit_32.c #define ARM_STR_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_STR_I, rt, rn, off) off 325 arch/arm/net/bpf_jit_32.c #define ARM_STRB_I(rt, rn, off) arm_bpf_ldst_imm12(ARM_INST_STRB_I, rt, rn, off) off 326 arch/arm/net/bpf_jit_32.c #define ARM_STRD_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_STRD_I, rt, rn, off) off 327 arch/arm/net/bpf_jit_32.c #define ARM_STRH_I(rt, rn, off) arm_bpf_ldst_imm8(ARM_INST_STRH_I, rt, rn, off) off 1003 arch/arm/net/bpf_jit_32.c static bool is_ldst_imm(s16 off, const u8 size) off 1020 arch/arm/net/bpf_jit_32.c return -off_max <= off && off <= off_max; off 1025 arch/arm/net/bpf_jit_32.c s16 off, struct jit_ctx *ctx, const u8 sz){ off 1031 arch/arm/net/bpf_jit_32.c if (!is_ldst_imm(off, sz)) { off 1032 arch/arm/net/bpf_jit_32.c emit_a32_mov_i(tmp[0], off, ctx); off 1035 arch/arm/net/bpf_jit_32.c off = 0; off 1040 arch/arm/net/bpf_jit_32.c emit(ARM_STRB_I(src_lo, rd, off), ctx); off 1044 arch/arm/net/bpf_jit_32.c emit(ARM_STRH_I(src_lo, rd, off), ctx); off 1048 arch/arm/net/bpf_jit_32.c emit(ARM_STR_I(src_lo, rd, off), ctx); off 1052 arch/arm/net/bpf_jit_32.c emit(ARM_STR_I(src_lo, rd, off), ctx); off 1053 arch/arm/net/bpf_jit_32.c emit(ARM_STR_I(src_hi, rd, off + 4), ctx); off 1060 arch/arm/net/bpf_jit_32.c s16 off, struct jit_ctx *ctx, const u8 sz){ off 1065 arch/arm/net/bpf_jit_32.c if (!is_ldst_imm(off, sz)) { off 1066 arch/arm/net/bpf_jit_32.c emit_a32_mov_i(tmp[0], off, ctx); off 1069 arch/arm/net/bpf_jit_32.c off = 0; off 1077 arch/arm/net/bpf_jit_32.c emit(ARM_LDRB_I(rd[1], rm, off), ctx); off 1083 arch/arm/net/bpf_jit_32.c emit(ARM_LDRH_I(rd[1], rm, off), ctx); off 1089 arch/arm/net/bpf_jit_32.c emit(ARM_LDR_I(rd[1], rm, off), ctx); off 1095 arch/arm/net/bpf_jit_32.c emit(ARM_LDR_I(rd[1], rm, off), ctx); off 1096 arch/arm/net/bpf_jit_32.c emit(ARM_LDR_I(rd[0], rm, off + 4), ctx); off 1161 arch/arm/net/bpf_jit_32.c int off; off 1168 arch/arm/net/bpf_jit_32.c off = offsetof(struct bpf_array, map.max_entries); off 1173 arch/arm/net/bpf_jit_32.c emit(ARM_LDR_I(tmp[1], r_array, off), ctx); off 1199 arch/arm/net/bpf_jit_32.c off = imm8m(offsetof(struct bpf_array, ptrs)); off 1200 arch/arm/net/bpf_jit_32.c emit(ARM_ADD_I(tmp[1], r_array, off), ctx); off 1208 arch/arm/net/bpf_jit_32.c off = offsetof(struct bpf_prog, bpf_func); off 1209 arch/arm/net/bpf_jit_32.c emit(ARM_LDR_I(tmp[1], tmp[1], off), ctx); off 1352 arch/arm/net/bpf_jit_32.c const s16 off = insn->off; off 1603 arch/arm/net/bpf_jit_32.c emit_ldx_r(dst, rn, off, ctx, BPF_SIZE(code)); off 1621 arch/arm/net/bpf_jit_32.c emit_str_r(dst_lo, tmp2, off, ctx, BPF_SIZE(code)); off 1634 arch/arm/net/bpf_jit_32.c emit_str_r(dst_lo, rs, off, ctx, BPF_SIZE(code)); off 1706 arch/arm/net/bpf_jit_32.c if (off == 0) off 1721 arch/arm/net/bpf_jit_32.c jmp_offset = bpf2a32_offset(i+off, i, ctx); off 1759 arch/arm/net/bpf_jit_32.c if (off == 0) off 1761 arch/arm/net/bpf_jit_32.c jmp_offset = bpf2a32_offset(i+off, i, ctx); off 129 arch/arm/plat-pxa/mfp.c #define mfpr_readl(off) \ off 130 arch/arm/plat-pxa/mfp.c __raw_readl(mfpr_mmio_base + (off)) off 132 arch/arm/plat-pxa/mfp.c #define mfpr_writel(off, val) \ off 133 arch/arm/plat-pxa/mfp.c __raw_writel(val, mfpr_mmio_base + (off)) off 41 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, samsung_gpio_pull_t pull) off 44 arch/arm/plat-samsung/gpio-samsung.c int shift = off * 2; off 56 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 59 arch/arm/plat-samsung/gpio-samsung.c int shift = off * 2; off 69 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, samsung_gpio_pull_t pull) off 82 arch/arm/plat-samsung/gpio-samsung.c return samsung_gpio_setpull_updown(chip, off, pull); off 86 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 90 arch/arm/plat-samsung/gpio-samsung.c pull = samsung_gpio_getpull_updown(chip, off); off 109 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, samsung_gpio_pull_t pull, off 116 arch/arm/plat-samsung/gpio-samsung.c pup &= ~(1 << off); off 118 arch/arm/plat-samsung/gpio-samsung.c pup |= (1 << off); off 127 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, off 133 arch/arm/plat-samsung/gpio-samsung.c pup &= (1 << off); off 138 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 140 arch/arm/plat-samsung/gpio-samsung.c return s3c24xx_gpio_getpull_1(chip, off, S3C_GPIO_PULL_UP); off 144 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, samsung_gpio_pull_t pull) off 146 arch/arm/plat-samsung/gpio-samsung.c return s3c24xx_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_UP); off 150 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 152 arch/arm/plat-samsung/gpio-samsung.c return s3c24xx_gpio_getpull_1(chip, off, S3C_GPIO_PULL_DOWN); off 156 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, samsung_gpio_pull_t pull) off 158 arch/arm/plat-samsung/gpio-samsung.c return s3c24xx_gpio_setpull_1(chip, off, pull, S3C_GPIO_PULL_DOWN); off 176 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, unsigned int cfg) off 179 arch/arm/plat-samsung/gpio-samsung.c unsigned int shift = off * 2; off 209 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 214 arch/arm/plat-samsung/gpio-samsung.c con >>= off * 2; off 239 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, unsigned int cfg) off 242 arch/arm/plat-samsung/gpio-samsung.c unsigned int shift = (off & 7) * 4; off 245 arch/arm/plat-samsung/gpio-samsung.c if (off < 8 && chip->chip.ngpio > 8) off 274 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 277 arch/arm/plat-samsung/gpio-samsung.c unsigned int shift = (off & 7) * 4; off 280 arch/arm/plat-samsung/gpio-samsung.c if (off < 8 && chip->chip.ngpio > 8) off 304 arch/arm/plat-samsung/gpio-samsung.c unsigned int off, unsigned int cfg) off 307 arch/arm/plat-samsung/gpio-samsung.c unsigned int shift = off; off 342 arch/arm/plat-samsung/gpio-samsung.c unsigned int off) off 347 arch/arm/plat-samsung/gpio-samsung.c con >>= off; off 24 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, unsigned int config) off 26 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h return (chip->config->set_config)(chip, off, config); off 30 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off) off 32 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h return (chip->config->get_config)(chip, off); off 36 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, samsung_gpio_pull_t pull) off 38 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h return (chip->config->set_pull)(chip, off, pull); off 42 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off) off 44 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h return chip->config->get_pull(chip, off); off 65 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, samsung_gpio_pull_t pull); off 77 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, samsung_gpio_pull_t pull); off 95 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, samsung_gpio_pull_t pull); off 108 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off); off 119 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off); off 130 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off); off 146 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off, samsung_gpio_pull_t pull); off 157 arch/arm/plat-samsung/include/plat/gpio-cfg-helpers.h unsigned int off); off 13 arch/arm64/include/asm/fb.h unsigned long off) off 14 arch/arm64/include/asm/percpu.h static inline void set_my_cpu_offset(unsigned long off) off 19 arch/arm64/include/asm/percpu.h :: "r" (off) : "memory"); off 24 arch/arm64/include/asm/percpu.h unsigned long off; off 33 arch/arm64/include/asm/percpu.h : "=r" (off) : off 36 arch/arm64/include/asm/percpu.h return off; off 50 arch/arm64/kernel/machine_kexec_file.c int off, ret; off 56 arch/arm64/kernel/machine_kexec_file.c off = ret; off 60 arch/arm64/kernel/machine_kexec_file.c ret = fdt_setprop_string(dtb, off, FDT_PROP_BOOTARGS, cmdline); off 64 arch/arm64/kernel/machine_kexec_file.c ret = fdt_delprop(dtb, off, FDT_PROP_BOOTARGS); off 71 arch/arm64/kernel/machine_kexec_file.c ret = fdt_setprop_u64(dtb, off, FDT_PROP_INITRD_START, off 76 arch/arm64/kernel/machine_kexec_file.c ret = fdt_setprop_u64(dtb, off, FDT_PROP_INITRD_END, off 81 arch/arm64/kernel/machine_kexec_file.c ret = fdt_delprop(dtb, off, FDT_PROP_INITRD_START); off 85 arch/arm64/kernel/machine_kexec_file.c ret = fdt_delprop(dtb, off, FDT_PROP_INITRD_END); off 91 arch/arm64/kernel/machine_kexec_file.c ret = fdt_delprop(dtb, off, FDT_PROP_KASLR_SEED); off 99 arch/arm64/kernel/machine_kexec_file.c ret = fdt_setprop_u64(dtb, off, FDT_PROP_KASLR_SEED, seed); off 111 arch/arm64/kernel/machine_kexec_file.c ret = fdt_setprop(dtb, off, FDT_PROP_RNG_SEED, rng_seed, off 1530 arch/arm64/kernel/ptrace.c static int compat_ptrace_read_user(struct task_struct *tsk, compat_ulong_t off, off 1535 arch/arm64/kernel/ptrace.c if (off & 3) off 1538 arch/arm64/kernel/ptrace.c if (off == COMPAT_PT_TEXT_ADDR) off 1540 arch/arm64/kernel/ptrace.c else if (off == COMPAT_PT_DATA_ADDR) off 1542 arch/arm64/kernel/ptrace.c else if (off == COMPAT_PT_TEXT_END_ADDR) off 1544 arch/arm64/kernel/ptrace.c else if (off < sizeof(compat_elf_gregset_t)) off 1546 arch/arm64/kernel/ptrace.c REGSET_COMPAT_GPR, off, off 1548 arch/arm64/kernel/ptrace.c else if (off >= COMPAT_USER_SZ) off 1556 arch/arm64/kernel/ptrace.c static int compat_ptrace_write_user(struct task_struct *tsk, compat_ulong_t off, off 1562 arch/arm64/kernel/ptrace.c if (off & 3 || off >= COMPAT_USER_SZ) off 1565 arch/arm64/kernel/ptrace.c if (off >= sizeof(compat_elf_gregset_t)) off 1570 arch/arm64/kernel/ptrace.c REGSET_COMPAT_GPR, off, off 23 arch/arm64/kernel/sys.c unsigned long, fd, unsigned long, off) off 25 arch/arm64/kernel/sys.c if (offset_in_page(off) != 0) off 28 arch/arm64/kernel/sys.c return ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 51 arch/arm64/kvm/guest.c static bool core_reg_offset_is_vreg(u64 off) off 53 arch/arm64/kvm/guest.c return off >= KVM_REG_ARM_CORE_REG(fp_regs.vregs) && off 54 arch/arm64/kvm/guest.c off < KVM_REG_ARM_CORE_REG(fp_regs.fpsr); off 62 arch/arm64/kvm/guest.c static int core_reg_size_from_offset(const struct kvm_vcpu *vcpu, u64 off) off 66 arch/arm64/kvm/guest.c switch (off) { off 93 arch/arm64/kvm/guest.c if (!IS_ALIGNED(off, size / sizeof(__u32))) off 101 arch/arm64/kvm/guest.c if (vcpu_has_sve(vcpu) && core_reg_offset_is_vreg(off)) off 110 arch/arm64/kvm/guest.c u64 off = core_reg_offset_from_id(reg->id); off 111 arch/arm64/kvm/guest.c int size = core_reg_size_from_offset(vcpu, off); off 133 arch/arm64/kvm/guest.c u32 off; off 136 arch/arm64/kvm/guest.c off = core_reg_offset_from_id(reg->id); off 137 arch/arm64/kvm/guest.c if (off >= nr_regs || off 138 arch/arm64/kvm/guest.c (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) off 144 arch/arm64/kvm/guest.c if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) off 157 arch/arm64/kvm/guest.c u64 off; off 161 arch/arm64/kvm/guest.c off = core_reg_offset_from_id(reg->id); off 162 arch/arm64/kvm/guest.c if (off >= nr_regs || off 163 arch/arm64/kvm/guest.c (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) off 177 arch/arm64/kvm/guest.c if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { off 204 arch/arm64/kvm/guest.c memcpy((u32 *)regs + off, valp, KVM_REG_SIZE(reg->id)); off 255 arch/arm64/net/bpf_jit_comp.c size_t off; off 260 arch/arm64/net/bpf_jit_comp.c off = offsetof(struct bpf_array, map.max_entries); off 261 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i64(tmp, off, ctx); off 280 arch/arm64/net/bpf_jit_comp.c off = offsetof(struct bpf_array, ptrs); off 281 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i64(tmp, off, ctx); off 288 arch/arm64/net/bpf_jit_comp.c off = offsetof(struct bpf_prog, bpf_func); off 289 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i64(tmp, off, ctx); off 351 arch/arm64/net/bpf_jit_comp.c const s16 off = insn->off; off 535 arch/arm64/net/bpf_jit_comp.c jmp_offset = bpf2a64_offset(i + off, i, ctx); off 562 arch/arm64/net/bpf_jit_comp.c jmp_offset = bpf2a64_offset(i + off, i, ctx); off 684 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i(1, tmp, off, ctx); off 707 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i(1, tmp2, off, ctx); off 730 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i(1, tmp, off, ctx); off 751 arch/arm64/net/bpf_jit_comp.c if (!off) { off 754 arch/arm64/net/bpf_jit_comp.c emit_a64_mov_i(1, tmp, off, ctx); off 46 arch/c6x/include/asm/pgtable.h #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) off 15 arch/h8300/include/asm/pgtable.h #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) off 843 arch/ia64/hp/common/sba_iommu.c int off = PDIR_INDEX(iovp); off 851 arch/ia64/hp/common/sba_iommu.c if (!(ioc->pdir_base[off] >> 60)) { off 858 arch/ia64/hp/common/sba_iommu.c ASSERT(off < ioc->pdir_size); off 869 arch/ia64/hp/common/sba_iommu.c ioc->pdir_base[off] &= ~(0x80000000000000FFULL); off 876 arch/ia64/hp/common/sba_iommu.c ioc->pdir_base[off] = (0x80000000000000FFULL | prefetch_spill_page); off 886 arch/ia64/hp/common/sba_iommu.c ASSERT(ioc->pdir_base[off] >> 63); off 889 arch/ia64/hp/common/sba_iommu.c ioc->pdir_base[off] &= ~(0x80000000000000FFULL); off 891 arch/ia64/hp/common/sba_iommu.c ioc->pdir_base[off] = (0x80000000000000FFULL | prefetch_spill_page); off 893 arch/ia64/hp/common/sba_iommu.c off++; off 1004 arch/ia64/hp/common/sba_iommu.c int off = PDIR_INDEX(iovp); off 1008 arch/ia64/hp/common/sba_iommu.c addr = phys_to_virt(ioc->pdir_base[off] & off 1013 arch/ia64/hp/common/sba_iommu.c addr = phys_to_virt(ioc->pdir_base[off] & off 1016 arch/ia64/hp/common/sba_iommu.c off++; off 11 arch/ia64/include/asm/fb.h unsigned long off) off 131 arch/ia64/include/asm/page.h unsigned long off : 61; /* intra-region offset */ off 148 arch/ia64/include/asm/page.h #define REGION_OFFSET(x) ({ia64_va _v; _v.l = (long) (x); _v.f.off;}) off 29 arch/ia64/include/asm/unistd.h int fd, long off); off 86 arch/ia64/include/asm/unwind.h signed long off : 61; /* NaT word is at loc+nat.off */ off 28 arch/ia64/kernel/entry.h #define PT_REGS_SAVES(off) \ off 30 arch/ia64/kernel/entry.h .fframe IA64_PT_REGS_SIZE+16+(off); \ off 31 arch/ia64/kernel/entry.h .spillsp rp, PT(CR_IIP)+16+(off); \ off 32 arch/ia64/kernel/entry.h .spillsp ar.pfs, PT(CR_IFS)+16+(off); \ off 33 arch/ia64/kernel/entry.h .spillsp ar.unat, PT(AR_UNAT)+16+(off); \ off 34 arch/ia64/kernel/entry.h .spillsp ar.fpsr, PT(AR_FPSR)+16+(off); \ off 35 arch/ia64/kernel/entry.h .spillsp pr, PT(PR)+16+(off); off 37 arch/ia64/kernel/entry.h #define PT_REGS_UNWIND_INFO(off) \ off 39 arch/ia64/kernel/entry.h PT_REGS_SAVES(off); \ off 42 arch/ia64/kernel/entry.h #define SWITCH_STACK_SAVES(off) \ off 43 arch/ia64/kernel/entry.h .savesp ar.unat,SW(CALLER_UNAT)+16+(off); \ off 44 arch/ia64/kernel/entry.h .savesp ar.fpsr,SW(AR_FPSR)+16+(off); \ off 45 arch/ia64/kernel/entry.h .spillsp f2,SW(F2)+16+(off); .spillsp f3,SW(F3)+16+(off); \ off 46 arch/ia64/kernel/entry.h .spillsp f4,SW(F4)+16+(off); .spillsp f5,SW(F5)+16+(off); \ off 47 arch/ia64/kernel/entry.h .spillsp f16,SW(F16)+16+(off); .spillsp f17,SW(F17)+16+(off); \ off 48 arch/ia64/kernel/entry.h .spillsp f18,SW(F18)+16+(off); .spillsp f19,SW(F19)+16+(off); \ off 49 arch/ia64/kernel/entry.h .spillsp f20,SW(F20)+16+(off); .spillsp f21,SW(F21)+16+(off); \ off 50 arch/ia64/kernel/entry.h .spillsp f22,SW(F22)+16+(off); .spillsp f23,SW(F23)+16+(off); \ off 51 arch/ia64/kernel/entry.h .spillsp f24,SW(F24)+16+(off); .spillsp f25,SW(F25)+16+(off); \ off 52 arch/ia64/kernel/entry.h .spillsp f26,SW(F26)+16+(off); .spillsp f27,SW(F27)+16+(off); \ off 53 arch/ia64/kernel/entry.h .spillsp f28,SW(F28)+16+(off); .spillsp f29,SW(F29)+16+(off); \ off 54 arch/ia64/kernel/entry.h .spillsp f30,SW(F30)+16+(off); .spillsp f31,SW(F31)+16+(off); \ off 55 arch/ia64/kernel/entry.h .spillsp r4,SW(R4)+16+(off); .spillsp r5,SW(R5)+16+(off); \ off 56 arch/ia64/kernel/entry.h .spillsp r6,SW(R6)+16+(off); .spillsp r7,SW(R7)+16+(off); \ off 57 arch/ia64/kernel/entry.h .spillsp b0,SW(B0)+16+(off); .spillsp b1,SW(B1)+16+(off); \ off 58 arch/ia64/kernel/entry.h .spillsp b2,SW(B2)+16+(off); .spillsp b3,SW(B3)+16+(off); \ off 59 arch/ia64/kernel/entry.h .spillsp b4,SW(B4)+16+(off); .spillsp b5,SW(B5)+16+(off); \ off 60 arch/ia64/kernel/entry.h .spillsp ar.pfs,SW(AR_PFS)+16+(off); .spillsp ar.lc,SW(AR_LC)+16+(off); \ off 61 arch/ia64/kernel/entry.h .spillsp @priunat,SW(AR_UNAT)+16+(off); \ off 62 arch/ia64/kernel/entry.h .spillsp ar.rnat,SW(AR_RNAT)+16+(off); \ off 63 arch/ia64/kernel/entry.h .spillsp ar.bspstore,SW(AR_BSPSTORE)+16+(off); \ off 64 arch/ia64/kernel/entry.h .spillsp pr,SW(PR)+16+(off) off 248 arch/ia64/kernel/module.c long off; off 251 arch/ia64/kernel/module.c off = ( ((b1 & 0x00fffff000000000UL) >> 36) /* imm20b -> bit 0 */ off 254 arch/ia64/kernel/module.c return (long) plt->bundle[1] + 16*off; off 149 arch/ia64/kernel/sys_ia64.c sys_mmap (unsigned long addr, unsigned long len, int prot, int flags, int fd, long off) off 151 arch/ia64/kernel/sys_ia64.c if (offset_in_page(off) != 0) off 154 arch/ia64/kernel/sys_ia64.c addr = ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 254 arch/ia64/kernel/unwind.c short off = -1; off 257 arch/ia64/kernel/unwind.c off = unw.pt_regs_offsets[reg]; off 259 arch/ia64/kernel/unwind.c if (off < 0) { off 261 arch/ia64/kernel/unwind.c off = 0; off 263 arch/ia64/kernel/unwind.c return (unsigned long) off; off 307 arch/ia64/kernel/unwind.c nat_addr = addr + ireg->nat.off; off 749 arch/ia64/kernel/unwind.c unsigned long off; off 795 arch/ia64/kernel/unwind.c off = sr->spill_offset; off 796 arch/ia64/kernel/unwind.c alloc_spill_area(&off, 16, sr->curr.reg + UNW_REG_F2, sr->curr.reg + UNW_REG_F31); off 797 arch/ia64/kernel/unwind.c alloc_spill_area(&off, 8, sr->curr.reg + UNW_REG_B1, sr->curr.reg + UNW_REG_B5); off 798 arch/ia64/kernel/unwind.c alloc_spill_area(&off, 8, sr->curr.reg + UNW_REG_R4, sr->curr.reg + UNW_REG_R7); off 1723 arch/ia64/kernel/unwind.c unsigned long opc, dst, val, off; off 1821 arch/ia64/kernel/unwind.c off = unw.sw_off[val]; off 1822 arch/ia64/kernel/unwind.c s[val] = (unsigned long) state->sw + off; off 1823 arch/ia64/kernel/unwind.c if (off >= offsetof(struct switch_stack, r4) && off <= offsetof(struct switch_stack, r7)) off 1829 arch/ia64/kernel/unwind.c s[val+1] = (offsetof(struct switch_stack, ar_unat) - off) | UNW_NAT_MEMSTK; off 2248 arch/ia64/kernel/unwind.c long i, off; off 2261 arch/ia64/kernel/unwind.c for (i = UNW_REG_R4, off = SW(R4); i <= UNW_REG_R7; ++i, off += 8) off 2262 arch/ia64/kernel/unwind.c unw.sw_off[unw.preg_index[i]] = off; off 2263 arch/ia64/kernel/unwind.c for (i = UNW_REG_B1, off = SW(B1); i <= UNW_REG_B5; ++i, off += 8) off 2264 arch/ia64/kernel/unwind.c unw.sw_off[unw.preg_index[i]] = off; off 2265 arch/ia64/kernel/unwind.c for (i = UNW_REG_F2, off = SW(F2); i <= UNW_REG_F5; ++i, off += 16) off 2266 arch/ia64/kernel/unwind.c unw.sw_off[unw.preg_index[i]] = off; off 2267 arch/ia64/kernel/unwind.c for (i = UNW_REG_F16, off = SW(F16); i <= UNW_REG_F31; ++i, off += 16) off 2268 arch/ia64/kernel/unwind.c unw.sw_off[unw.preg_index[i]] = off; off 89 arch/ia64/kernel/unwind_decoder.c unw_word t, off; off 93 arch/ia64/kernel/unwind_decoder.c off = unw_decode_uleb128 (&dp); off 96 arch/ia64/kernel/unwind_decoder.c UNW_DEC_SPILL_SPREL(X1, t, abreg, off, arg); off 98 arch/ia64/kernel/unwind_decoder.c UNW_DEC_SPILL_PSPREL(X1, t, abreg, off, arg); off 124 arch/ia64/kernel/unwind_decoder.c unw_word t, off; off 128 arch/ia64/kernel/unwind_decoder.c off = unw_decode_uleb128 (&dp); off 134 arch/ia64/kernel/unwind_decoder.c UNW_DEC_SPILL_SPREL_P(X3, qp, t, abreg, off, arg); off 136 arch/ia64/kernel/unwind_decoder.c UNW_DEC_SPILL_PSPREL_P(X3, qp, t, abreg, off, arg); off 22 arch/m68k/include/asm/blinken.h static __inline__ void blinken_leds(int on, int off) off 27 arch/m68k/include/asm/blinken.h hp300_ledstate &= ~off; off 13 arch/m68k/include/asm/fb.h unsigned long off) off 19 arch/m68k/include/asm/fb.h unsigned long off) off 394 arch/m68k/include/asm/mcf_pgtable.h #define __swp_entry(typ, off) ((swp_entry_t) { (typ) | \ off 395 arch/m68k/include/asm/mcf_pgtable.h (off << 11) }) off 37 arch/m68k/include/asm/pgtable_no.h #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) off 73 arch/m68k/include/asm/processor.h #define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr) off 65 arch/m68k/mm/memory.c unsigned int off; off 90 arch/m68k/mm/memory.c for (tmp = 1, off = 0; (mask & tmp) == 0; tmp <<= 1, off += PTABLE_SIZE) off 97 arch/m68k/mm/memory.c return (pmd_t *) (page_address(PD_PAGE(dp)) + off); off 288 arch/m68k/sun3/sun3dvma.c unsigned long off; off 300 arch/m68k/sun3/sun3dvma.c off = kaddr & ~DVMA_PAGE_MASK; off 302 arch/m68k/sun3/sun3dvma.c len += off; off 314 arch/m68k/sun3/sun3dvma.c return (baddr + off); off 41 arch/microblaze/include/asm/pgtable.h #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) off 119 arch/mips/alchemy/common/gpiolib.c static int alchemy_gpic_get(struct gpio_chip *chip, unsigned int off) off 121 arch/mips/alchemy/common/gpiolib.c return !!au1300_gpio_get_value(off + AU1300_GPIO_BASE); off 124 arch/mips/alchemy/common/gpiolib.c static void alchemy_gpic_set(struct gpio_chip *chip, unsigned int off, int v) off 126 arch/mips/alchemy/common/gpiolib.c au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); off 129 arch/mips/alchemy/common/gpiolib.c static int alchemy_gpic_dir_input(struct gpio_chip *chip, unsigned int off) off 131 arch/mips/alchemy/common/gpiolib.c return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); off 134 arch/mips/alchemy/common/gpiolib.c static int alchemy_gpic_dir_output(struct gpio_chip *chip, unsigned int off, off 137 arch/mips/alchemy/common/gpiolib.c return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); off 140 arch/mips/alchemy/common/gpiolib.c static int alchemy_gpic_gpio_to_irq(struct gpio_chip *chip, unsigned int off) off 142 arch/mips/alchemy/common/gpiolib.c return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); off 145 arch/mips/ar7/platform.c .off = vlynq_off, off 154 arch/mips/ar7/platform.c .off = vlynq_off, off 59 arch/mips/bcm47xx/prom.c unsigned long off; off 76 arch/mips/bcm47xx/prom.c off = CPHYSADDR((unsigned long)prom_init); off 83 arch/mips/bcm47xx/prom.c if (off + mem >= max) { off 139 arch/mips/bcm47xx/prom.c unsigned long off = (unsigned long)prom_init; off 163 arch/mips/bcm47xx/prom.c off = EXTVBASE + __pa(off); off 165 arch/mips/bcm47xx/prom.c if (!memcmp(prom_init, (void *)(off + extmem), 16)) off 137 arch/mips/boot/elf2ecoff.c off_t off; off 138 arch/mips/boot/elf2ecoff.c if ((off = lseek(file, offset, SEEK_SET)) < 0) { off 260 arch/mips/include/asm/asmmacro.h .macro ld_b wd, off, base off 269 arch/mips/include/asm/asmmacro.h .macro ld_h wd, off, base off 278 arch/mips/include/asm/asmmacro.h .macro ld_w wd, off, base off 287 arch/mips/include/asm/asmmacro.h .macro ld_d wd, off, base off 296 arch/mips/include/asm/asmmacro.h .macro st_b wd, off, base off 305 arch/mips/include/asm/asmmacro.h .macro st_h wd, off, base off 314 arch/mips/include/asm/asmmacro.h .macro st_w wd, off, base off 323 arch/mips/include/asm/asmmacro.h .macro st_d wd, off, base off 392 arch/mips/include/asm/asmmacro.h .macro ld_b wd, off, base off 402 arch/mips/include/asm/asmmacro.h .macro ld_h wd, off, base off 412 arch/mips/include/asm/asmmacro.h .macro ld_w wd, off, base off 422 arch/mips/include/asm/asmmacro.h .macro ld_d wd, off, base off 432 arch/mips/include/asm/asmmacro.h .macro st_b wd, off, base off 442 arch/mips/include/asm/asmmacro.h .macro st_h wd, off, base off 452 arch/mips/include/asm/asmmacro.h .macro st_w wd, off, base off 462 arch/mips/include/asm/asmmacro.h .macro st_d wd, off, base off 9 arch/mips/include/asm/fb.h unsigned long off) off 25 arch/mips/include/asm/mach-au1x00/gpio-au1000.h #define MAKE_IRQ(intc, off) (AU1000_INTC##intc##_INT_BASE + (off)) off 40 arch/mips/include/asm/mach-cavium-octeon/kernel-entry-init.h # First clear off CvmCtl[IPPCI] bit and move the performance off 113 arch/mips/include/asm/mips-cm.h #define GCR_ACCESSOR_RO(sz, off, name) \ off 114 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RO(gcr, sz, MIPS_CM_GCB_OFS + off, name) \ off 115 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RO(gcr, sz, MIPS_CM_COCB_OFS + off, redir_##name) off 117 arch/mips/include/asm/mips-cm.h #define GCR_ACCESSOR_RW(sz, off, name) \ off 118 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RW(gcr, sz, MIPS_CM_GCB_OFS + off, name) \ off 119 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RW(gcr, sz, MIPS_CM_COCB_OFS + off, redir_##name) off 121 arch/mips/include/asm/mips-cm.h #define GCR_CX_ACCESSOR_RO(sz, off, name) \ off 122 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RO(gcr, sz, MIPS_CM_CLCB_OFS + off, cl_##name) \ off 123 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RO(gcr, sz, MIPS_CM_COCB_OFS + off, co_##name) off 125 arch/mips/include/asm/mips-cm.h #define GCR_CX_ACCESSOR_RW(sz, off, name) \ off 126 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RW(gcr, sz, MIPS_CM_CLCB_OFS + off, cl_##name) \ off 127 arch/mips/include/asm/mips-cm.h CPS_ACCESSOR_RW(gcr, sz, MIPS_CM_COCB_OFS + off, co_##name) off 64 arch/mips/include/asm/mips-cpc.h #define CPC_ACCESSOR_RO(sz, off, name) \ off 65 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \ off 66 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name) off 68 arch/mips/include/asm/mips-cpc.h #define CPC_ACCESSOR_RW(sz, off, name) \ off 69 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_GCB_OFS + off, name) \ off 70 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_COCB_OFS + off, redir_##name) off 72 arch/mips/include/asm/mips-cpc.h #define CPC_CX_ACCESSOR_RO(sz, off, name) \ off 73 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_CLCB_OFS + off, cl_##name) \ off 74 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RO(cpc, sz, MIPS_CPC_COCB_OFS + off, co_##name) off 76 arch/mips/include/asm/mips-cpc.h #define CPC_CX_ACCESSOR_RW(sz, off, name) \ off 77 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_CLCB_OFS + off, cl_##name) \ off 78 arch/mips/include/asm/mips-cpc.h CPS_ACCESSOR_RW(cpc, sz, MIPS_CPC_COCB_OFS + off, co_##name) off 16 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_A(unit, off, name) \ off 19 arch/mips/include/asm/mips-cps.h return mips_##unit##_base + (off); \ off 90 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_RO(unit, sz, off, name) \ off 91 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ off 94 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_WO(unit, sz, off, name) \ off 95 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ off 98 arch/mips/include/asm/mips-cps.h #define CPS_ACCESSOR_RW(unit, sz, off, name) \ off 99 arch/mips/include/asm/mips-cps.h CPS_ACCESSOR_A(unit, off, name) \ off 30 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RO(sz, off, name) \ off 31 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_SHARED_OFS + off, name) off 34 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RW(sz, off, name) \ off 35 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_SHARED_OFS + off, name) off 38 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RO(sz, off, name) \ off 39 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ off 40 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RO(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) off 43 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RW(sz, off, name) \ off 44 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_LOCAL_OFS + off, vl_##name) \ off 45 arch/mips/include/asm/mips-gic.h CPS_ACCESSOR_RW(gic, sz, MIPS_GIC_REDIR_OFS + off, vo_##name) off 48 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ off 51 arch/mips/include/asm/mips-gic.h return mips_gic_base + (off) + (intr * (stride)); \ off 61 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ off 62 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ off 72 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RO_INTR_REG(sz, off, stride, name) \ off 73 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_REG(sz, MIPS_GIC_LOCAL_OFS + off, \ off 75 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_REG(sz, MIPS_GIC_REDIR_OFS + off, \ off 79 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RW_INTR_REG(sz, off, stride, name) \ off 80 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW_INTR_REG(sz, MIPS_GIC_LOCAL_OFS + off, \ off 82 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW_INTR_REG(sz, MIPS_GIC_REDIR_OFS + off, \ off 86 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RO_INTR_BIT(off, name) \ off 89 arch/mips/include/asm/mips-gic.h return mips_gic_base + (off); \ off 109 arch/mips/include/asm/mips-gic.h #define GIC_ACCESSOR_RW_INTR_BIT(off, name) \ off 110 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_BIT(off, name) \ off 150 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RO_INTR_BIT(sz, off, name) \ off 151 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_BIT(sz, MIPS_GIC_LOCAL_OFS + off, \ off 153 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RO_INTR_BIT(sz, MIPS_GIC_REDIR_OFS + off, \ off 157 arch/mips/include/asm/mips-gic.h #define GIC_VX_ACCESSOR_RW_INTR_BIT(sz, off, name) \ off 158 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW_INTR_BIT(sz, MIPS_GIC_LOCAL_OFS + off, \ off 160 arch/mips/include/asm/mips-gic.h GIC_ACCESSOR_RW_INTR_BIT(sz, MIPS_GIC_REDIR_OFS + off, \ off 37 arch/mips/include/asm/pmon.h #define pmon_lseek(fd, off, whence) debug_vectors->lseek(fd, off, whence) off 213 arch/mips/include/asm/uasm.h # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) off 214 arch/mips/include/asm/uasm.h # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) off 219 arch/mips/include/asm/uasm.h # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) off 225 arch/mips/include/asm/uasm.h # define UASM_i_SW(buf, rs, rt, off) uasm_i_sd(buf, rs, rt, off) off 229 arch/mips/include/asm/uasm.h # define UASM_i_LL(buf, rs, rt, off) uasm_i_ll(buf, rs, rt, off) off 230 arch/mips/include/asm/uasm.h # define UASM_i_LW(buf, rs, rt, off) uasm_i_lw(buf, rs, rt, off) off 235 arch/mips/include/asm/uasm.h # define UASM_i_SC(buf, rs, rt, off) uasm_i_sc(buf, rs, rt, off) off 241 arch/mips/include/asm/uasm.h # define UASM_i_SW(buf, rs, rt, off) uasm_i_sw(buf, rs, rt, off) off 244 arch/mips/include/asm/uasm.h #define uasm_i_b(buf, off) uasm_i_beq(buf, 0, 0, off) off 245 arch/mips/include/asm/uasm.h #define uasm_i_beqz(buf, rs, off) uasm_i_beq(buf, rs, 0, off) off 246 arch/mips/include/asm/uasm.h #define uasm_i_beqzl(buf, rs, off) uasm_i_beql(buf, rs, 0, off) off 247 arch/mips/include/asm/uasm.h #define uasm_i_bnez(buf, rs, off) uasm_i_bne(buf, rs, 0, off) off 248 arch/mips/include/asm/uasm.h #define uasm_i_bnezl(buf, rs, off) uasm_i_bnel(buf, rs, 0, off) off 302 arch/mips/include/asm/uasm.h void uasm_move_relocs(struct uasm_reloc *rel, u32 *first, u32 *end, long off); off 303 arch/mips/include/asm/uasm.h void uasm_move_labels(struct uasm_label *lab, u32 *first, u32 *end, long off); off 105 arch/mips/mm/page.c pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) off 108 arch/mips/mm/page.c if (off > 0x7fff) { off 109 arch/mips/mm/page.c uasm_i_lui(buf, T9, uasm_rel_hi(off)); off 110 arch/mips/mm/page.c uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); off 112 arch/mips/mm/page.c uasm_i_addiu(buf, T9, ZERO, off); off 115 arch/mips/mm/page.c if (off > 0x7fff) { off 116 arch/mips/mm/page.c uasm_i_lui(buf, T9, uasm_rel_hi(off)); off 117 arch/mips/mm/page.c uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); off 120 arch/mips/mm/page.c UASM_i_ADDIU(buf, reg1, reg2, off); off 233 arch/mips/mm/page.c static void build_clear_store(u32 **buf, int off) off 236 arch/mips/mm/page.c uasm_i_sd(buf, ZERO, off, A0); off 238 arch/mips/mm/page.c uasm_i_sw(buf, ZERO, off, A0); off 242 arch/mips/mm/page.c static inline void build_clear_pref(u32 **buf, int off) off 244 arch/mips/mm/page.c if (off & cache_line_mask()) off 248 arch/mips/mm/page.c _uasm_i_pref(buf, pref_dst_mode, pref_bias_clear_store + off, off 252 arch/mips/mm/page.c uasm_i_cache(buf, Create_Dirty_Excl_SD, off, A0); off 264 arch/mips/mm/page.c uasm_i_cache(buf, Create_Dirty_Excl_D, off, A0); off 276 arch/mips/mm/page.c int off; off 300 arch/mips/mm/page.c off = PAGE_SIZE - pref_bias_clear_store; off 301 arch/mips/mm/page.c if (off > 0xffff || !pref_bias_clear_store) off 302 arch/mips/mm/page.c pg_addiu(&buf, A2, A0, off); off 304 arch/mips/mm/page.c uasm_i_ori(&buf, A2, A0, off); off 309 arch/mips/mm/page.c off = cache_line_size ? min(8, pref_bias_clear_store / cache_line_size) off 311 arch/mips/mm/page.c while (off) { off 312 arch/mips/mm/page.c build_clear_pref(&buf, -off); off 313 arch/mips/mm/page.c off -= cache_line_size; off 317 arch/mips/mm/page.c build_clear_pref(&buf, off); off 318 arch/mips/mm/page.c build_clear_store(&buf, off); off 319 arch/mips/mm/page.c off += clear_word_size; off 320 arch/mips/mm/page.c } while (off < half_clear_loop_size); off 321 arch/mips/mm/page.c pg_addiu(&buf, A0, A0, 2 * off); off 322 arch/mips/mm/page.c off = -off; off 324 arch/mips/mm/page.c build_clear_pref(&buf, off); off 325 arch/mips/mm/page.c if (off == -clear_word_size) off 327 arch/mips/mm/page.c build_clear_store(&buf, off); off 328 arch/mips/mm/page.c off += clear_word_size; off 329 arch/mips/mm/page.c } while (off < 0); off 334 arch/mips/mm/page.c off = 0; off 336 arch/mips/mm/page.c build_clear_store(&buf, off); off 337 arch/mips/mm/page.c off += clear_word_size; off 338 arch/mips/mm/page.c } while (off < half_clear_loop_size); off 339 arch/mips/mm/page.c pg_addiu(&buf, A0, A0, 2 * off); off 340 arch/mips/mm/page.c off = -off; off 342 arch/mips/mm/page.c if (off == -clear_word_size) off 345 arch/mips/mm/page.c build_clear_store(&buf, off); off 346 arch/mips/mm/page.c off += clear_word_size; off 347 arch/mips/mm/page.c } while (off < 0); off 367 arch/mips/mm/page.c static void build_copy_load(u32 **buf, int reg, int off) off 370 arch/mips/mm/page.c uasm_i_ld(buf, reg, off, A1); off 372 arch/mips/mm/page.c uasm_i_lw(buf, reg, off, A1); off 376 arch/mips/mm/page.c static void build_copy_store(u32 **buf, int reg, int off) off 379 arch/mips/mm/page.c uasm_i_sd(buf, reg, off, A0); off 381 arch/mips/mm/page.c uasm_i_sw(buf, reg, off, A0); off 385 arch/mips/mm/page.c static inline void build_copy_load_pref(u32 **buf, int off) off 387 arch/mips/mm/page.c if (off & cache_line_mask()) off 391 arch/mips/mm/page.c _uasm_i_pref(buf, pref_src_mode, pref_bias_copy_load + off, A1); off 394 arch/mips/mm/page.c static inline void build_copy_store_pref(u32 **buf, int off) off 396 arch/mips/mm/page.c if (off & cache_line_mask()) off 400 arch/mips/mm/page.c _uasm_i_pref(buf, pref_dst_mode, pref_bias_copy_store + off, off 404 arch/mips/mm/page.c uasm_i_cache(buf, Create_Dirty_Excl_SD, off, A0); off 416 arch/mips/mm/page.c uasm_i_cache(buf, Create_Dirty_Excl_D, off, A0); off 423 arch/mips/mm/page.c int off; off 451 arch/mips/mm/page.c off = PAGE_SIZE - pref_bias_copy_load; off 452 arch/mips/mm/page.c if (off > 0xffff || !pref_bias_copy_load) off 453 arch/mips/mm/page.c pg_addiu(&buf, A2, A0, off); off 455 arch/mips/mm/page.c uasm_i_ori(&buf, A2, A0, off); off 460 arch/mips/mm/page.c off = cache_line_size ? min(8, pref_bias_copy_load / cache_line_size) * off 462 arch/mips/mm/page.c while (off) { off 463 arch/mips/mm/page.c build_copy_load_pref(&buf, -off); off 464 arch/mips/mm/page.c off -= cache_line_size; off 466 arch/mips/mm/page.c off = cache_line_size ? min(8, pref_bias_copy_store / cache_line_size) * off 468 arch/mips/mm/page.c while (off) { off 469 arch/mips/mm/page.c build_copy_store_pref(&buf, -off); off 470 arch/mips/mm/page.c off -= cache_line_size; off 474 arch/mips/mm/page.c build_copy_load_pref(&buf, off); off 475 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 476 arch/mips/mm/page.c build_copy_load_pref(&buf, off + copy_word_size); off 477 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 478 arch/mips/mm/page.c build_copy_load_pref(&buf, off + 2 * copy_word_size); off 479 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 480 arch/mips/mm/page.c build_copy_load_pref(&buf, off + 3 * copy_word_size); off 481 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 482 arch/mips/mm/page.c build_copy_store_pref(&buf, off); off 483 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 484 arch/mips/mm/page.c build_copy_store_pref(&buf, off + copy_word_size); off 485 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 486 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 2 * copy_word_size); off 487 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 488 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 3 * copy_word_size); off 489 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 490 arch/mips/mm/page.c off += 4 * copy_word_size; off 491 arch/mips/mm/page.c } while (off < half_copy_loop_size); off 492 arch/mips/mm/page.c pg_addiu(&buf, A1, A1, 2 * off); off 493 arch/mips/mm/page.c pg_addiu(&buf, A0, A0, 2 * off); off 494 arch/mips/mm/page.c off = -off; off 496 arch/mips/mm/page.c build_copy_load_pref(&buf, off); off 497 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 498 arch/mips/mm/page.c build_copy_load_pref(&buf, off + copy_word_size); off 499 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 500 arch/mips/mm/page.c build_copy_load_pref(&buf, off + 2 * copy_word_size); off 501 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 502 arch/mips/mm/page.c build_copy_load_pref(&buf, off + 3 * copy_word_size); off 503 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 504 arch/mips/mm/page.c build_copy_store_pref(&buf, off); off 505 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 506 arch/mips/mm/page.c build_copy_store_pref(&buf, off + copy_word_size); off 507 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 508 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 2 * copy_word_size); off 509 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 510 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 3 * copy_word_size); off 511 arch/mips/mm/page.c if (off == -(4 * copy_word_size)) off 513 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 514 arch/mips/mm/page.c off += 4 * copy_word_size; off 515 arch/mips/mm/page.c } while (off < 0); off 521 arch/mips/mm/page.c off = 0; off 523 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 524 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 525 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 526 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 527 arch/mips/mm/page.c build_copy_store_pref(&buf, off); off 528 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 529 arch/mips/mm/page.c build_copy_store_pref(&buf, off + copy_word_size); off 530 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 531 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 2 * copy_word_size); off 532 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 533 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 3 * copy_word_size); off 534 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 535 arch/mips/mm/page.c off += 4 * copy_word_size; off 536 arch/mips/mm/page.c } while (off < half_copy_loop_size); off 537 arch/mips/mm/page.c pg_addiu(&buf, A1, A1, 2 * off); off 538 arch/mips/mm/page.c pg_addiu(&buf, A0, A0, 2 * off); off 539 arch/mips/mm/page.c off = -off; off 541 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 542 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 543 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 544 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 545 arch/mips/mm/page.c build_copy_store_pref(&buf, off); off 546 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 547 arch/mips/mm/page.c build_copy_store_pref(&buf, off + copy_word_size); off 548 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 549 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 2 * copy_word_size); off 550 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 551 arch/mips/mm/page.c build_copy_store_pref(&buf, off + 3 * copy_word_size); off 552 arch/mips/mm/page.c if (off == -(4 * copy_word_size)) off 555 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 556 arch/mips/mm/page.c off += 4 * copy_word_size; off 557 arch/mips/mm/page.c } while (off < 0); off 563 arch/mips/mm/page.c off = 0; off 565 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 566 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 567 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 568 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 569 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 570 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 571 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 572 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 573 arch/mips/mm/page.c off += 4 * copy_word_size; off 574 arch/mips/mm/page.c } while (off < half_copy_loop_size); off 575 arch/mips/mm/page.c pg_addiu(&buf, A1, A1, 2 * off); off 576 arch/mips/mm/page.c pg_addiu(&buf, A0, A0, 2 * off); off 577 arch/mips/mm/page.c off = -off; off 579 arch/mips/mm/page.c build_copy_load(&buf, T0, off); off 580 arch/mips/mm/page.c build_copy_load(&buf, T1, off + copy_word_size); off 581 arch/mips/mm/page.c build_copy_load(&buf, T2, off + 2 * copy_word_size); off 582 arch/mips/mm/page.c build_copy_load(&buf, T3, off + 3 * copy_word_size); off 583 arch/mips/mm/page.c build_copy_store(&buf, T0, off); off 584 arch/mips/mm/page.c build_copy_store(&buf, T1, off + copy_word_size); off 585 arch/mips/mm/page.c build_copy_store(&buf, T2, off + 2 * copy_word_size); off 586 arch/mips/mm/page.c if (off == -(4 * copy_word_size)) off 589 arch/mips/mm/page.c build_copy_store(&buf, T3, off + 3 * copy_word_size); off 590 arch/mips/mm/page.c off += 4 * copy_word_size; off 591 arch/mips/mm/page.c } while (off < 0); off 515 arch/mips/mm/uasm.c long off) off 519 arch/mips/mm/uasm.c rel->addr += off; off 524 arch/mips/mm/uasm.c long off) off 528 arch/mips/mm/uasm.c lab->addr += off; off 535 arch/mips/mm/uasm.c long off = (long)(target - first); off 539 arch/mips/mm/uasm.c uasm_move_relocs(rel, first, end, off); off 540 arch/mips/mm/uasm.c uasm_move_labels(lab, first, end, off); off 606 arch/mips/net/ebpf_jit.c int off, b_off; off 614 arch/mips/net/ebpf_jit.c off = offsetof(struct bpf_array, map.max_entries); off 615 arch/mips/net/ebpf_jit.c emit_instr(ctx, lwu, MIPS_R_T5, off, MIPS_R_A1); off 636 arch/mips/net/ebpf_jit.c off = offsetof(struct bpf_array, ptrs); off 637 arch/mips/net/ebpf_jit.c emit_instr(ctx, ld, MIPS_R_AT, off, MIPS_R_T8); off 644 arch/mips/net/ebpf_jit.c off = offsetof(struct bpf_prog, bpf_func); off 645 arch/mips/net/ebpf_jit.c emit_instr(ctx, ld, MIPS_R_T9, off, MIPS_R_AT); off 1045 arch/mips/net/ebpf_jit.c if ((insn + 1)->code == (BPF_JMP | BPF_EXIT) && insn->off == 1) { off 1056 arch/mips/net/ebpf_jit.c b_off = b_imm(this_idx + insn->off + 1, ctx); off 1103 arch/mips/net/ebpf_jit.c if ((insn + 1)->code == (BPF_JMP | BPF_EXIT) && insn->off == 1) { off 1128 arch/mips/net/ebpf_jit.c b_off = b_imm(this_idx + insn->off + 1, ctx); off 1130 arch/mips/net/ebpf_jit.c target = j_target(ctx, this_idx + insn->off + 1); off 1161 arch/mips/net/ebpf_jit.c if ((insn + 1)->code == (BPF_JMP | BPF_EXIT) && insn->off == 1) { off 1182 arch/mips/net/ebpf_jit.c b_off = b_imm(this_idx + insn->off + 1, ctx); off 1259 arch/mips/net/ebpf_jit.c if ((insn + 1)->code == (BPF_JMP | BPF_EXIT) && insn->off == 1) { off 1267 arch/mips/net/ebpf_jit.c b_off = b_imm(this_idx + insn->off + 1, ctx); off 1287 arch/mips/net/ebpf_jit.c b_off = b_imm(this_idx + insn->off + 1, ctx); off 1289 arch/mips/net/ebpf_jit.c target = j_target(ctx, this_idx + insn->off + 1); off 1365 arch/mips/net/ebpf_jit.c mem_off = insn->off + MAX_BPF_STACK; off 1370 arch/mips/net/ebpf_jit.c mem_off = insn->off; off 1396 arch/mips/net/ebpf_jit.c mem_off = insn->off + MAX_BPF_STACK; off 1401 arch/mips/net/ebpf_jit.c mem_off = insn->off; off 1431 arch/mips/net/ebpf_jit.c mem_off = insn->off + MAX_BPF_STACK; off 1436 arch/mips/net/ebpf_jit.c mem_off = insn->off; off 1685 arch/mips/net/ebpf_jit.c idx += insn->off; off 1700 arch/mips/net/ebpf_jit.c idx += insn->off; off 169 arch/mips/netlogic/xlp/ahci-init-xlp2.c static void sata_clear_glue_reg(u64 regbase, u32 off, u32 bit) off 173 arch/mips/netlogic/xlp/ahci-init-xlp2.c reg_val = nlm_read_sata_reg(regbase, off); off 174 arch/mips/netlogic/xlp/ahci-init-xlp2.c nlm_write_sata_reg(regbase, off, (reg_val & ~bit)); off 177 arch/mips/netlogic/xlp/ahci-init-xlp2.c static void sata_set_glue_reg(u64 regbase, u32 off, u32 bit) off 181 arch/mips/netlogic/xlp/ahci-init-xlp2.c reg_val = nlm_read_sata_reg(regbase, off); off 182 arch/mips/netlogic/xlp/ahci-init-xlp2.c nlm_write_sata_reg(regbase, off, (reg_val | bit)); off 95 arch/mips/netlogic/xlp/ahci-init.c static void sata_clear_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) off 99 arch/mips/netlogic/xlp/ahci-init.c reg_val = nlm_read_sata_reg(regbase, off); off 100 arch/mips/netlogic/xlp/ahci-init.c nlm_write_sata_reg(regbase, off, (reg_val & ~bit)); off 103 arch/mips/netlogic/xlp/ahci-init.c static void sata_set_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) off 107 arch/mips/netlogic/xlp/ahci-init.c reg_val = nlm_read_sata_reg(regbase, off); off 108 arch/mips/netlogic/xlp/ahci-init.c nlm_write_sata_reg(regbase, off, (reg_val | bit)); off 41 arch/mips/pci/ops-rc32434.c #define PCI_CFG_SET(bus, slot, func, off) \ off 44 arch/mips/pci/ops-rc32434.c ((func)<<8) | (off))) off 60 arch/mips/pci/pci-xlp.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) off 59 arch/mips/pci/pci-xlr.c #define pci_cfg_addr(bus, devfn, off) (((bus) << 16) | ((devfn) << 8) | (off)) off 285 arch/nios2/include/asm/pgtable.h #define __swp_entry(type, off) ((swp_entry_t) { (((type) & 0x3) << 26) \ off 286 arch/nios2/include/asm/pgtable.h | ((off) & 0xfffff) }) off 62 arch/openrisc/include/asm/cmpxchg.h int off = (unsigned long)ptr % sizeof(u32); off 63 arch/openrisc/include/asm/cmpxchg.h volatile u32 *p = ptr - off; off 65 arch/openrisc/include/asm/cmpxchg.h int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; off 67 arch/openrisc/include/asm/cmpxchg.h int bitoff = off * BITS_PER_BYTE; off 94 arch/openrisc/include/asm/cmpxchg.h int off = (unsigned long)ptr % sizeof(u32); off 95 arch/openrisc/include/asm/cmpxchg.h volatile u32 *p = ptr - off; off 97 arch/openrisc/include/asm/cmpxchg.h int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; off 99 arch/openrisc/include/asm/cmpxchg.h int bitoff = off * BITS_PER_BYTE; off 10 arch/parisc/include/asm/fb.h unsigned long off) off 140 arch/parisc/include/asm/io.h #define ioremap_nocache(off, sz) ioremap((off), (sz)) off 49 arch/parisc/kernel/sys_parisc.c unsigned long off = (SHM_COLOUR-1) & off 52 arch/parisc/kernel/sys_parisc.c return base + off; off 64 arch/powerpc/boot/addnote.c #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) off 65 arch/powerpc/boot/addnote.c #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) off 66 arch/powerpc/boot/addnote.c #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ off 67 arch/powerpc/boot/addnote.c ((unsigned long long)GET_32BE((off)+4ULL))) off 68 arch/powerpc/boot/addnote.c #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ off 69 arch/powerpc/boot/addnote.c buf[(off) + 1] = (v) & 0xff) off 70 arch/powerpc/boot/addnote.c #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) off 71 arch/powerpc/boot/addnote.c #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ off 72 arch/powerpc/boot/addnote.c PUT_32BE((off) + 4, (v)))) off 74 arch/powerpc/boot/addnote.c #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) off 75 arch/powerpc/boot/addnote.c #define GET_32LE(off) (GET_16LE(off) + (GET_16LE((off)+2U) << 16U)) off 76 arch/powerpc/boot/addnote.c #define GET_64LE(off) ((unsigned long long)GET_32LE(off) + \ off 77 arch/powerpc/boot/addnote.c (((unsigned long long)GET_32LE((off)+4ULL)) << 32ULL)) off 78 arch/powerpc/boot/addnote.c #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \ off 79 arch/powerpc/boot/addnote.c buf[(off) + 1] = ((v) >> 8) & 0xff) off 80 arch/powerpc/boot/addnote.c #define PUT_32LE(off, v) (PUT_16LE((off), (v)), PUT_16LE((off) + 2, (v) >> 16L)) off 81 arch/powerpc/boot/addnote.c #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L)) off 83 arch/powerpc/boot/addnote.c #define GET_16(off) (e_data == ELFDATA2MSB ? GET_16BE(off) : GET_16LE(off)) off 84 arch/powerpc/boot/addnote.c #define GET_32(off) (e_data == ELFDATA2MSB ? GET_32BE(off) : GET_32LE(off)) off 85 arch/powerpc/boot/addnote.c #define GET_64(off) (e_data == ELFDATA2MSB ? GET_64BE(off) : GET_64LE(off)) off 86 arch/powerpc/boot/addnote.c #define PUT_16(off, v) (e_data == ELFDATA2MSB ? PUT_16BE(off, v) : \ off 87 arch/powerpc/boot/addnote.c PUT_16LE(off, v)) off 88 arch/powerpc/boot/addnote.c #define PUT_32(off, v) (e_data == ELFDATA2MSB ? PUT_32BE(off, v) : \ off 89 arch/powerpc/boot/addnote.c PUT_32LE(off, v)) off 90 arch/powerpc/boot/addnote.c #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \ off 91 arch/powerpc/boot/addnote.c PUT_64LE(off, v)) off 31 arch/powerpc/boot/libfdt-wrapper.c #define offset_devp(off) \ off 33 arch/powerpc/boot/libfdt-wrapper.c unsigned long _offset = (off); \ off 12 arch/powerpc/include/asm/cmpxchg.h #define BITOFF_CAL(size, off) ((sizeof(u32) - size - off) * BITS_PER_BYTE) off 14 arch/powerpc/include/asm/cmpxchg.h #define BITOFF_CAL(size, off) (off * BITS_PER_BYTE) off 20 arch/powerpc/include/asm/cmpxchg.h unsigned int prev, prev_mask, tmp, bitoff, off; \ off 22 arch/powerpc/include/asm/cmpxchg.h off = (unsigned long)p % sizeof(u32); \ off 23 arch/powerpc/include/asm/cmpxchg.h bitoff = BITOFF_CAL(sizeof(type), off); \ off 24 arch/powerpc/include/asm/cmpxchg.h p -= off; \ off 46 arch/powerpc/include/asm/cmpxchg.h unsigned int prev, prev_mask, tmp, bitoff, off; \ off 48 arch/powerpc/include/asm/cmpxchg.h off = (unsigned long)p % sizeof(u32); \ off 49 arch/powerpc/include/asm/cmpxchg.h bitoff = BITOFF_CAL(sizeof(type), off); \ off 50 arch/powerpc/include/asm/cmpxchg.h p -= off; \ off 10 arch/powerpc/include/asm/fb.h unsigned long off) off 12 arch/powerpc/include/asm/fb.h vma->vm_page_prot = phys_mem_access_prot(file, off >> PAGE_SHIFT, off 19 arch/powerpc/kernel/proc_powerpc.c static loff_t page_map_seek(struct file *file, loff_t off, int whence) off 21 arch/powerpc/kernel/proc_powerpc.c return fixed_size_llseek(file, off, whence, PAGE_SIZE); off 311 arch/powerpc/kernel/rtas_flash.c size_t count, loff_t *off) off 402 arch/powerpc/kernel/rtas_flash.c size_t count, loff_t *off) off 498 arch/powerpc/kernel/rtas_flash.c size_t count, loff_t *off) off 508 arch/powerpc/kernel/rtas_flash.c if ((*off >= VALIDATE_BUF_SIZE) || off 510 arch/powerpc/kernel/rtas_flash.c *off += count; off 515 arch/powerpc/kernel/rtas_flash.c if (*off + count >= VALIDATE_BUF_SIZE) { off 516 arch/powerpc/kernel/rtas_flash.c count = VALIDATE_BUF_SIZE - *off; off 526 arch/powerpc/kernel/rtas_flash.c if (copy_from_user(args_buf->buf + *off, buf, count)) { off 531 arch/powerpc/kernel/rtas_flash.c *off += count; off 42 arch/powerpc/kernel/syscalls.c unsigned long fd, unsigned long off, int shift) off 50 arch/powerpc/kernel/syscalls.c if (off & ((1 << shift) - 1)) off 52 arch/powerpc/kernel/syscalls.c off >>= shift; off 55 arch/powerpc/kernel/syscalls.c ret = ksys_mmap_pgoff(addr, len, prot, flags, fd, off); off 1596 arch/powerpc/mm/numa.c size_t count, loff_t *off) off 307 arch/powerpc/net/bpf_jit_comp64.c s16 off = insn[i].off; off 656 arch/powerpc/net/bpf_jit_comp64.c PPC_STB(src_reg, dst_reg, off); off 664 arch/powerpc/net/bpf_jit_comp64.c PPC_STH(src_reg, dst_reg, off); off 672 arch/powerpc/net/bpf_jit_comp64.c PPC_STW(src_reg, dst_reg, off); off 680 arch/powerpc/net/bpf_jit_comp64.c PPC_BPF_STL(src_reg, dst_reg, off); off 689 arch/powerpc/net/bpf_jit_comp64.c PPC_ADDI(b2p[TMP_REG_1], dst_reg, off); off 702 arch/powerpc/net/bpf_jit_comp64.c PPC_ADDI(b2p[TMP_REG_1], dst_reg, off); off 715 arch/powerpc/net/bpf_jit_comp64.c PPC_LBZ(dst_reg, src_reg, off); off 721 arch/powerpc/net/bpf_jit_comp64.c PPC_LHZ(dst_reg, src_reg, off); off 727 arch/powerpc/net/bpf_jit_comp64.c PPC_LWZ(dst_reg, src_reg, off); off 733 arch/powerpc/net/bpf_jit_comp64.c PPC_BPF_LL(dst_reg, src_reg, off); off 785 arch/powerpc/net/bpf_jit_comp64.c PPC_JMP(addrs[i + 1 + off]); off 984 arch/powerpc/net/bpf_jit_comp64.c PPC_BCC(true_cond, addrs[i + 1 + off]); off 25 arch/powerpc/platforms/cell/spufs/coredump.c size_t size, loff_t *off) off 31 arch/powerpc/platforms/cell/spufs/coredump.c return spufs_coredump_read[num].read(ctx, buffer, size, off); off 34 arch/powerpc/platforms/chrp/pci.c static int gg2_read_config(struct pci_bus *bus, unsigned int devfn, int off, off 46 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); off 61 arch/powerpc/platforms/chrp/pci.c static int gg2_write_config(struct pci_bus *bus, unsigned int devfn, int off, off 73 arch/powerpc/platforms/chrp/pci.c cfg_data = hose->cfg_data + ((bus->number<<16) | (devfn<<8) | off); off 81 arch/powerpc/platforms/maple/pci.c static unsigned long u3_agp_cfa0(u8 devfn, u8 off) off 85 arch/powerpc/platforms/maple/pci.c ((unsigned long)off & 0xFCUL); off 88 arch/powerpc/platforms/maple/pci.c static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) off 92 arch/powerpc/platforms/maple/pci.c ((unsigned long)off & 0xFCUL) | off 185 arch/powerpc/platforms/maple/pci.c static unsigned long u3_ht_cfa0(u8 devfn, u8 off) off 187 arch/powerpc/platforms/maple/pci.c return (devfn << 8) | off; off 190 arch/powerpc/platforms/maple/pci.c static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) off 192 arch/powerpc/platforms/maple/pci.c return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL; off 335 arch/powerpc/platforms/maple/pci.c static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off) off 339 arch/powerpc/platforms/maple/pci.c ((off >> 8) << 28) | off 340 arch/powerpc/platforms/maple/pci.c (off & 0xfcu); off 344 arch/powerpc/platforms/maple/pci.c unsigned int off) off 348 arch/powerpc/platforms/maple/pci.c ((off >> 8) << 28) | off 349 arch/powerpc/platforms/maple/pci.c (off & 0xfcu) | 1u; off 25 arch/powerpc/platforms/pasemi/pci.c #define PA_PXP_CFA(bus, devfn, off) (((bus) << 20) | ((devfn) << 12) | (off)) off 123 arch/powerpc/platforms/powermac/pci.c #define MACRISC_CFA0(devfn, off) \ off 126 arch/powerpc/platforms/powermac/pci.c | (((unsigned int)(off)) & 0xFCUL)) off 128 arch/powerpc/platforms/powermac/pci.c #define MACRISC_CFA1(bus, devfn, off) \ off 131 arch/powerpc/platforms/powermac/pci.c |(((unsigned int)(off)) & 0xFCUL) \ off 262 arch/powerpc/platforms/powermac/pci.c #define U3_HT_CFA0(devfn, off) \ off 264 arch/powerpc/platforms/powermac/pci.c #define U3_HT_CFA1(bus, devfn, off) \ off 265 arch/powerpc/platforms/powermac/pci.c (U3_HT_CFA0(devfn, off) \ off 382 arch/powerpc/platforms/powermac/pci.c #define U4_PCIE_CFA0(devfn, off) \ off 385 arch/powerpc/platforms/powermac/pci.c | ((((unsigned int)(off)) >> 8) << 28) \ off 386 arch/powerpc/platforms/powermac/pci.c | (((unsigned int)(off)) & 0xfcU)) off 388 arch/powerpc/platforms/powermac/pci.c #define U4_PCIE_CFA1(bus, devfn, off) \ off 391 arch/powerpc/platforms/powermac/pci.c | ((((unsigned int)(off)) >> 8) << 28) \ off 392 arch/powerpc/platforms/powermac/pci.c |(((unsigned int)(off)) & 0xfcU) \ off 29 arch/powerpc/platforms/powernv/opal-nvram.c int off; off 33 arch/powerpc/platforms/powernv/opal-nvram.c off = *index; off 34 arch/powerpc/platforms/powernv/opal-nvram.c if ((off + count) > nvram_size) off 35 arch/powerpc/platforms/powernv/opal-nvram.c count = nvram_size - off; off 36 arch/powerpc/platforms/powernv/opal-nvram.c rc = opal_read_nvram(__pa(buf), count, off); off 50 arch/powerpc/platforms/powernv/opal-nvram.c int off; off 54 arch/powerpc/platforms/powernv/opal-nvram.c off = *index; off 55 arch/powerpc/platforms/powernv/opal-nvram.c if ((off + count) > nvram_size) off 56 arch/powerpc/platforms/powernv/opal-nvram.c count = nvram_size - off; off 59 arch/powerpc/platforms/powernv/opal-nvram.c rc = opal_write_nvram(__pa(buf), count, off); off 92 arch/powerpc/platforms/powernv/opal-xscom.c loff_t off = *ppos; off 97 arch/powerpc/platforms/powernv/opal-xscom.c if (off < 0 || (off & 7) || (count & 7)) off 99 arch/powerpc/platforms/powernv/opal-xscom.c reg_base = off >> 3; off 123 arch/powerpc/platforms/powernv/opal-xscom.c loff_t off = *ppos; off 128 arch/powerpc/platforms/powernv/opal-xscom.c if (off < 0 || (off & 7) || (count & 7)) off 130 arch/powerpc/platforms/powernv/opal-xscom.c reg_base = off >> 3; off 713 arch/powerpc/platforms/powernv/opal.c char *buf, loff_t off, size_t count) off 715 arch/powerpc/platforms/powernv/opal.c return memory_read_from_buffer(buf, count, &off, bin_attr->private, off 749 arch/powerpc/platforms/powernv/opal.c loff_t off, size_t count) off 751 arch/powerpc/platforms/powernv/opal.c return memory_read_from_buffer(buf, count, &off, bin_attr->private, off 596 arch/powerpc/platforms/pseries/lparcfg.c size_t count, loff_t * off) off 359 arch/powerpc/platforms/pseries/reconfig.c loff_t *off) off 47 arch/powerpc/platforms/pseries/scanlog.c unsigned long len, off; off 86 arch/powerpc/platforms/pseries/scanlog.c off = data[2]; off 88 arch/powerpc/platforms/pseries/scanlog.c if (copy_to_user(buf, ((char *)data)+off, len)) off 859 arch/powerpc/xmon/xmon.c unsigned long off; off 861 arch/powerpc/xmon/xmon.c off = nip - (unsigned long) bpts; off 862 arch/powerpc/xmon/xmon.c if (off >= sizeof(bpts)) off 864 arch/powerpc/xmon/xmon.c off %= sizeof(struct bpt); off 865 arch/powerpc/xmon/xmon.c if (off != offsetof(struct bpt, instr[0]) off 866 arch/powerpc/xmon/xmon.c && off != offsetof(struct bpt, instr[1])) off 868 arch/powerpc/xmon/xmon.c *offp = off - offsetof(struct bpt, instr[0]); off 869 arch/powerpc/xmon/xmon.c return (struct bpt *) (nip - off); off 484 arch/riscv/net/bpf_jit_comp.c static int is_12b_check(int off, int insn) off 486 arch/riscv/net/bpf_jit_comp.c if (!is_12b_int(off)) { off 488 arch/riscv/net/bpf_jit_comp.c insn, (int)off); off 494 arch/riscv/net/bpf_jit_comp.c static int is_13b_check(int off, int insn) off 496 arch/riscv/net/bpf_jit_comp.c if (!is_13b_int(off)) { off 498 arch/riscv/net/bpf_jit_comp.c insn, (int)off); off 504 arch/riscv/net/bpf_jit_comp.c static int is_21b_check(int off, int insn) off 506 arch/riscv/net/bpf_jit_comp.c if (!is_21b_int(off)) { off 508 arch/riscv/net/bpf_jit_comp.c insn, (int)off); off 617 arch/riscv/net/bpf_jit_comp.c int tc_ninsn, off, start_insn = ctx->ninsns; off 631 arch/riscv/net/bpf_jit_comp.c off = offsetof(struct bpf_array, map.max_entries); off 632 arch/riscv/net/bpf_jit_comp.c if (is_12b_check(off, insn)) off 634 arch/riscv/net/bpf_jit_comp.c emit(rv_lwu(RV_REG_T1, off, RV_REG_A1), ctx); off 635 arch/riscv/net/bpf_jit_comp.c off = (tc_ninsn - (ctx->ninsns - start_insn)) << 2; off 636 arch/riscv/net/bpf_jit_comp.c if (is_13b_check(off, insn)) off 638 arch/riscv/net/bpf_jit_comp.c emit(rv_bgeu(RV_REG_A2, RV_REG_T1, off >> 1), ctx); off 644 arch/riscv/net/bpf_jit_comp.c off = (tc_ninsn - (ctx->ninsns - start_insn)) << 2; off 645 arch/riscv/net/bpf_jit_comp.c if (is_13b_check(off, insn)) off 647 arch/riscv/net/bpf_jit_comp.c emit(rv_blt(tcc, RV_REG_ZERO, off >> 1), ctx); off 655 arch/riscv/net/bpf_jit_comp.c off = offsetof(struct bpf_array, ptrs); off 656 arch/riscv/net/bpf_jit_comp.c if (is_12b_check(off, insn)) off 658 arch/riscv/net/bpf_jit_comp.c emit(rv_ld(RV_REG_T2, off, RV_REG_T2), ctx); off 659 arch/riscv/net/bpf_jit_comp.c off = (tc_ninsn - (ctx->ninsns - start_insn)) << 2; off 660 arch/riscv/net/bpf_jit_comp.c if (is_13b_check(off, insn)) off 662 arch/riscv/net/bpf_jit_comp.c emit(rv_beq(RV_REG_T2, RV_REG_ZERO, off >> 1), ctx); off 665 arch/riscv/net/bpf_jit_comp.c off = offsetof(struct bpf_prog, bpf_func); off 666 arch/riscv/net/bpf_jit_comp.c if (is_12b_check(off, insn)) off 668 arch/riscv/net/bpf_jit_comp.c emit(rv_ld(RV_REG_T3, off, RV_REG_T2), ctx); off 696 arch/riscv/net/bpf_jit_comp.c static int rv_offset_check(int *rvoff, s16 off, int insn, off 699 arch/riscv/net/bpf_jit_comp.c *rvoff = rv_offset(insn + off, insn, ctx); off 743 arch/riscv/net/bpf_jit_comp.c s16 off = insn->off; off 1009 arch/riscv/net/bpf_jit_comp.c rvoff = rv_offset(i + off, i, ctx); off 1022 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1030 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1038 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1046 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1054 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1062 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1070 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1078 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1086 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1094 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1102 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1113 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1122 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1131 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1140 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1149 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1158 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1167 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1176 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1185 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1194 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1203 arch/riscv/net/bpf_jit_comp.c if (rv_offset_check(&rvoff, off, i, ctx)) off 1270 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1271 arch/riscv/net/bpf_jit_comp.c emit(rv_lbu(rd, off, rs), ctx); off 1275 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1282 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1283 arch/riscv/net/bpf_jit_comp.c emit(rv_lhu(rd, off, rs), ctx); off 1287 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1294 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1295 arch/riscv/net/bpf_jit_comp.c emit(rv_lwu(rd, off, rs), ctx); off 1299 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1306 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1307 arch/riscv/net/bpf_jit_comp.c emit(rv_ld(rd, off, rs), ctx); off 1311 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1319 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1320 arch/riscv/net/bpf_jit_comp.c emit(rv_sb(rd, off, RV_REG_T1), ctx); off 1324 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T2, off, ctx); off 1331 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1332 arch/riscv/net/bpf_jit_comp.c emit(rv_sh(rd, off, RV_REG_T1), ctx); off 1336 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T2, off, ctx); off 1342 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1343 arch/riscv/net/bpf_jit_comp.c emit(rv_sw(rd, off, RV_REG_T1), ctx); off 1347 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T2, off, ctx); off 1353 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1354 arch/riscv/net/bpf_jit_comp.c emit(rv_sd(rd, off, RV_REG_T1), ctx); off 1358 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T2, off, ctx); off 1365 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1366 arch/riscv/net/bpf_jit_comp.c emit(rv_sb(rd, off, rs), ctx); off 1370 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1375 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1376 arch/riscv/net/bpf_jit_comp.c emit(rv_sh(rd, off, rs), ctx); off 1380 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1385 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1386 arch/riscv/net/bpf_jit_comp.c emit(rv_sw(rd, off, rs), ctx); off 1390 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1395 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1396 arch/riscv/net/bpf_jit_comp.c emit(rv_sd(rd, off, rs), ctx); off 1400 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 1408 arch/riscv/net/bpf_jit_comp.c if (off) { off 1409 arch/riscv/net/bpf_jit_comp.c if (is_12b_int(off)) { off 1410 arch/riscv/net/bpf_jit_comp.c emit(rv_addi(RV_REG_T1, rd, off), ctx); off 1412 arch/riscv/net/bpf_jit_comp.c emit_imm(RV_REG_T1, off, ctx); off 327 arch/s390/kernel/ipl.c loff_t off, size_t count) off 329 arch/s390/kernel/ipl.c return memory_read_from_buffer(buf, count, &off, &ipl_block, off 338 arch/s390/kernel/ipl.c loff_t off, size_t count) off 343 arch/s390/kernel/ipl.c return memory_read_from_buffer(buf, count, &off, scp_data, size); off 577 arch/s390/kernel/ipl.c char *buf, loff_t off, size_t count) off 582 arch/s390/kernel/ipl.c return memory_read_from_buffer(buf, count, &off, scp_data, size); off 587 arch/s390/kernel/ipl.c char *buf, loff_t off, size_t count) off 593 arch/s390/kernel/ipl.c if (off) off 398 arch/s390/mm/gmap.c unsigned long off; off 409 arch/s390/mm/gmap.c for (off = 0; off < len; off += PMD_SIZE) off 410 arch/s390/mm/gmap.c flush |= __gmap_unmap_by_gaddr(gmap, to + off); off 430 arch/s390/mm/gmap.c unsigned long off; off 442 arch/s390/mm/gmap.c for (off = 0; off < len; off += PMD_SIZE) { off 444 arch/s390/mm/gmap.c flush |= __gmap_unmap_by_gaddr(gmap, to + off); off 447 arch/s390/mm/gmap.c (to + off) >> PMD_SHIFT, off 448 arch/s390/mm/gmap.c (void *) from + off)) off 454 arch/s390/mm/gmap.c if (off >= len) off 245 arch/s390/net/bpf_jit_comp.c #define EMIT6_PCREL(op1, op2, b1, b2, i, off, mask) \ off 248 arch/s390/net/bpf_jit_comp.c int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\ off 323 arch/s390/net/bpf_jit_comp.c u32 off = STK_OFF_R6 + (rs - 6) * 8; off 327 arch/s390/net/bpf_jit_comp.c _EMIT6(0xe300f000 | rs << 20 | off, 0x0024); off 330 arch/s390/net/bpf_jit_comp.c _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0024, off); off 338 arch/s390/net/bpf_jit_comp.c u32 off = STK_OFF_R6 + (rs - 6) * 8; off 341 arch/s390/net/bpf_jit_comp.c off += STK_OFF + stack_depth; off 345 arch/s390/net/bpf_jit_comp.c _EMIT6(0xe300f000 | rs << 20 | off, 0x0004); off 348 arch/s390/net/bpf_jit_comp.c _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0004, off); off 515 arch/s390/net/bpf_jit_comp.c s16 off = insn->off; off 921 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0072, src_reg, dst_reg, REG_0, off); off 926 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0070, src_reg, dst_reg, REG_0, off); off 931 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0050, src_reg, dst_reg, REG_0, off); off 936 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0024, src_reg, dst_reg, REG_0, off); off 943 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0072, REG_W0, dst_reg, REG_0, off); off 950 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0070, REG_W0, dst_reg, REG_0, off); off 957 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0050, REG_W0, dst_reg, REG_0, off); off 964 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0024, REG_W0, dst_reg, REG_0, off); off 973 arch/s390/net/bpf_jit_comp.c dst_reg, off); off 979 arch/s390/net/bpf_jit_comp.c dst_reg, off); off 987 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0090, dst_reg, src_reg, REG_0, off); off 994 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0091, dst_reg, src_reg, REG_0, off); off 1002 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0016, dst_reg, src_reg, REG_0, off); off 1009 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xe3000000, 0x0004, dst_reg, src_reg, REG_0, off); off 1068 arch/s390/net/bpf_jit_comp.c off = STK_OFF_TCCNT + STK_OFF + fp->aux->stack_depth; off 1070 arch/s390/net/bpf_jit_comp.c off = STK_OFF_TCCNT; off 1074 arch/s390/net/bpf_jit_comp.c EMIT6_DISP_LH(0xeb000000, 0x00fa, REG_W1, REG_W0, REG_15, off); off 1254 arch/s390/net/bpf_jit_comp.c dst_reg, REG_W1, i, off, mask); off 1262 arch/s390/net/bpf_jit_comp.c dst_reg, REG_W1, i, off, mask); off 1268 arch/s390/net/bpf_jit_comp.c dst_reg, src_reg, i, off, mask); off 1274 arch/s390/net/bpf_jit_comp.c dst_reg, src_reg, i, off, mask); off 1278 arch/s390/net/bpf_jit_comp.c jmp_off = addrs[i + off + 1] - (addrs[i + 1] - 4); off 132 arch/s390/pci/pci_debug.c size_t count, loff_t *off) off 103 arch/s390/pci/pci_sysfs.c loff_t off, size_t count) off 109 arch/s390/pci/pci_sysfs.c return memory_read_from_buffer(buf, count, &off, zdev->util_str, off 116 arch/s390/pci/pci_sysfs.c loff_t off, size_t count) off 124 arch/s390/pci/pci_sysfs.c if (off || (count < sizeof(*report))) off 20 arch/sh/include/asm/cmpxchg-xchg.h int off = (unsigned long)ptr % sizeof(u32); off 21 arch/sh/include/asm/cmpxchg-xchg.h volatile u32 *p = ptr - off; off 23 arch/sh/include/asm/cmpxchg-xchg.h int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; off 25 arch/sh/include/asm/cmpxchg-xchg.h int bitoff = off * BITS_PER_BYTE; off 10 arch/sh/include/asm/fb.h unsigned long off) off 9 arch/sh/include/asm/syscalls.h int fd, unsigned long off); off 15 arch/sh/kernel/cpu/adc.c int off; off 20 arch/sh/kernel/cpu/adc.c off = (channel & 0x03) << 2; off 33 arch/sh/kernel/cpu/adc.c return (((__raw_readb(ADDRAH + off) << 8) | off 34 arch/sh/kernel/cpu/adc.c __raw_readb(ADDRAL + off)) >> 6); off 34 arch/sh/kernel/sys_sh.c int fd, unsigned long off) off 36 arch/sh/kernel/sys_sh.c if (off & ~PAGE_MASK) off 38 arch/sh/kernel/sys_sh.c return ksys_mmap_pgoff(addr, len, prot, flags, fd, off>>PAGE_SHIFT); off 29 arch/sh/mm/mmap.c unsigned long off = (pgoff << PAGE_SHIFT) & shm_align_mask; off 31 arch/sh/mm/mmap.c return base + off; off 11 arch/sparc/include/asm/fb.h unsigned long off) off 18 arch/sparc/kernel/ftrace.c s32 off; off 20 arch/sparc/kernel/ftrace.c off = ((s32)addr - (s32)ip); off 21 arch/sparc/kernel/ftrace.c call = 0x40000000 | ((u32)off >> 2); off 19 arch/sparc/kernel/jump_label.c s32 off = (s32)entry->target - (s32)entry->code; off 22 arch/sparc/kernel/jump_label.c BUG_ON(off & 3); off 25 arch/sparc/kernel/jump_label.c if (off <= 0xfffff && off >= -0x100000) off 31 arch/sparc/kernel/jump_label.c val = 0x10680000 | (((u32) off >> 2) & 0x7ffff); off 34 arch/sparc/kernel/jump_label.c BUG_ON(off > 0x7fffff); off 35 arch/sparc/kernel/jump_label.c BUG_ON(off < -0x800000); off 37 arch/sparc/kernel/jump_label.c val = 0x10800000 | (((u32) off >> 2) & 0x3fffff); off 201 arch/sparc/kernel/ldc.c static unsigned long __advance(unsigned long off, unsigned long num_entries) off 203 arch/sparc/kernel/ldc.c off += LDC_PACKET_SIZE; off 204 arch/sparc/kernel/ldc.c if (off == (num_entries * LDC_PACKET_SIZE)) off 205 arch/sparc/kernel/ldc.c off = 0; off 207 arch/sparc/kernel/ldc.c return off; off 210 arch/sparc/kernel/ldc.c static unsigned long rx_advance(struct ldc_channel *lp, unsigned long off) off 212 arch/sparc/kernel/ldc.c return __advance(off, lp->rx_num_entries); off 215 arch/sparc/kernel/ldc.c static unsigned long tx_advance(struct ldc_channel *lp, unsigned long off) off 217 arch/sparc/kernel/ldc.c return __advance(off, lp->tx_num_entries); off 2085 arch/sparc/kernel/ldc.c unsigned long off, unsigned long len) off 2094 arch/sparc/kernel/ldc.c if (off) off 2095 arch/sparc/kernel/ldc.c tlen = PAGE_SIZE - off; off 2100 arch/sparc/kernel/ldc.c pagesize_code(), off); off 2102 arch/sparc/kernel/ldc.c off = 0; off 21 arch/sparc/kernel/led.c unsigned char on, off; off 25 arch/sparc/kernel/led.c off = AUXIO_LED; off 28 arch/sparc/kernel/led.c off = 0; off 31 arch/sparc/kernel/led.c set_auxio(on, off); off 265 arch/sparc/kernel/leon_kernel.c u32 rld, val, ctrl, off; off 272 arch/sparc/kernel/leon_kernel.c off = 2 * rld - val; off 274 arch/sparc/kernel/leon_kernel.c off = rld - val; off 277 arch/sparc/kernel/leon_kernel.c return off; off 133 arch/sparc/kernel/psycho_common.c unsigned long off = i * 8UL; off 135 arch/sparc/kernel/psycho_common.c tag[i] = upa_readq(base + PSYCHO_IOMMU_TAG+off); off 136 arch/sparc/kernel/psycho_common.c data[i] = upa_readq(base + PSYCHO_IOMMU_DATA+off); off 139 arch/sparc/kernel/psycho_common.c upa_writeq(0, base + PSYCHO_IOMMU_TAG + off); off 140 arch/sparc/kernel/psycho_common.c upa_writeq(0, base + PSYCHO_IOMMU_DATA + off); off 377 arch/sparc/kernel/psycho_common.c unsigned long off = i * 8; off 379 arch/sparc/kernel/psycho_common.c upa_writeq(0, pbm->controller_regs + PSYCHO_IOMMU_TAG + off); off 380 arch/sparc/kernel/psycho_common.c upa_writeq(0, pbm->controller_regs + PSYCHO_IOMMU_DATA + off); off 113 arch/sparc/kernel/sys_sparc_32.c unsigned long, off) off 116 arch/sparc/kernel/sys_sparc_32.c return ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 85 arch/sparc/kernel/sys_sparc_64.c unsigned long off = (pgoff<<PAGE_SHIFT) & (SHMLBA-1); off 87 arch/sparc/kernel/sys_sparc_64.c return base + off; off 457 arch/sparc/kernel/sys_sparc_64.c unsigned long, off) off 461 arch/sparc/kernel/sys_sparc_64.c if ((off + PAGE_ALIGN(len)) < off) off 463 arch/sparc/kernel/sys_sparc_64.c if (off & ~PAGE_MASK) off 465 arch/sparc/kernel/sys_sparc_64.c retval = ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 19 arch/sparc/kernel/systbls.h unsigned long fd, unsigned long off); off 183 arch/sparc/mm/iommu.c unsigned long off = paddr & ~PAGE_MASK; off 184 arch/sparc/mm/iommu.c unsigned long npages = (off + len + PAGE_SIZE - 1) >> PAGE_SHIFT; off 225 arch/sparc/mm/iommu.c return busa0 + off; off 279 arch/sparc/mm/iommu.c unsigned long off = dma_addr & ~PAGE_MASK; off 280 arch/sparc/mm/iommu.c unsigned int npages = (off + len + PAGE_SIZE-1) >> PAGE_SHIFT; off 91 arch/sparc/net/bpf_jit_comp_64.c static u32 WDISP10(u32 off) off 93 arch/sparc/net/bpf_jit_comp_64.c u32 ret = ((off >> 2) & 0xff) << 5; off 95 arch/sparc/net/bpf_jit_comp_64.c ret |= ((off >> (2 + 8)) & 0x03) << 19; off 248 arch/sparc/net/bpf_jit_comp_64.c unsigned int off; off 250 arch/sparc/net/bpf_jit_comp_64.c off = (void *)func - here; off 251 arch/sparc/net/bpf_jit_comp_64.c ctx->image[ctx->idx] = CALL | ((off >> 2) & 0x3fffffff); off 619 arch/sparc/net/bpf_jit_comp_64.c unsigned int off = to_idx - from_idx; off 622 arch/sparc/net/bpf_jit_comp_64.c emit(br_opc | WDISP19(off << 2), ctx); off 624 arch/sparc/net/bpf_jit_comp_64.c emit(br_opc | WDISP22(off << 2), ctx); off 630 arch/sparc/net/bpf_jit_comp_64.c unsigned int off = to_idx - from_idx; off 632 arch/sparc/net/bpf_jit_comp_64.c emit(cb_opc | WDISP10(off << 2) | RS1(dst) | RS2(src), ctx); off 638 arch/sparc/net/bpf_jit_comp_64.c unsigned int off = to_idx - from_idx; off 640 arch/sparc/net/bpf_jit_comp_64.c emit(cb_opc | IMMED | WDISP10(off << 2) | RS1(dst) | S5(imm), ctx); off 817 arch/sparc/net/bpf_jit_comp_64.c u32 off = BPF_TAILCALL_CNT_SP_OFF; off 819 arch/sparc/net/bpf_jit_comp_64.c emit(ST32 | IMMED | RS1(SP) | S13(off) | RD(G0), ctx); off 855 arch/sparc/net/bpf_jit_comp_64.c u32 off; off 859 arch/sparc/net/bpf_jit_comp_64.c off = offsetof(struct bpf_array, map.max_entries); off 860 arch/sparc/net/bpf_jit_comp_64.c emit(LD32 | IMMED | RS1(bpf_array) | S13(off) | RD(tmp), ctx); off 866 arch/sparc/net/bpf_jit_comp_64.c off = BPF_TAILCALL_CNT_SP_OFF; off 867 arch/sparc/net/bpf_jit_comp_64.c emit(LD32 | IMMED | RS1(SP) | S13(off) | RD(tmp), ctx); off 874 arch/sparc/net/bpf_jit_comp_64.c off = BPF_TAILCALL_CNT_SP_OFF; off 875 arch/sparc/net/bpf_jit_comp_64.c emit(ST32 | IMMED | RS1(SP) | S13(off) | RD(tmp), ctx); off 879 arch/sparc/net/bpf_jit_comp_64.c off = offsetof(struct bpf_array, ptrs); off 880 arch/sparc/net/bpf_jit_comp_64.c emit(LD64 | IMMED | RS1(tmp) | S13(off) | RD(tmp), ctx); off 887 arch/sparc/net/bpf_jit_comp_64.c off = offsetof(struct bpf_prog, bpf_func); off 888 arch/sparc/net/bpf_jit_comp_64.c emit(LD64 | IMMED | RS1(tmp) | S13(off) | RD(tmp), ctx); off 890 arch/sparc/net/bpf_jit_comp_64.c off = BPF_TAILCALL_PROLOGUE_SKIP; off 891 arch/sparc/net/bpf_jit_comp_64.c emit(JMPL | IMMED | RS1(tmp) | S13(off) | RD(G0), ctx); off 901 arch/sparc/net/bpf_jit_comp_64.c const s16 off = insn->off; off 1171 arch/sparc/net/bpf_jit_comp_64.c emit_branch(BA, ctx->idx, ctx->offset[i + off], ctx); off 1188 arch/sparc/net/bpf_jit_comp_64.c err = emit_compare_and_branch(code, dst, src, 0, false, i + off, ctx); off 1207 arch/sparc/net/bpf_jit_comp_64.c err = emit_compare_and_branch(code, dst, 0, imm, true, i + off, ctx); off 1278 arch/sparc/net/bpf_jit_comp_64.c if (is_simm13(off)) { off 1280 arch/sparc/net/bpf_jit_comp_64.c rs2 = S13(off); off 1282 arch/sparc/net/bpf_jit_comp_64.c emit_loadimm(off, tmp, ctx); off 1320 arch/sparc/net/bpf_jit_comp_64.c if (is_simm13(off)) { off 1322 arch/sparc/net/bpf_jit_comp_64.c rs2 = S13(off); off 1325 arch/sparc/net/bpf_jit_comp_64.c emit_loadimm(off, tmp, ctx); off 1357 arch/sparc/net/bpf_jit_comp_64.c if (is_simm13(off)) { off 1359 arch/sparc/net/bpf_jit_comp_64.c rs2 = S13(off); off 1362 arch/sparc/net/bpf_jit_comp_64.c emit_loadimm(off, tmp, ctx); off 1381 arch/sparc/net/bpf_jit_comp_64.c emit_loadimm(off, tmp, ctx); off 1404 arch/sparc/net/bpf_jit_comp_64.c emit_loadimm(off, tmp, ctx); off 78 arch/um/drivers/ubd_kern.c int bits, off; off 82 arch/um/drivers/ubd_kern.c off = bit % bits; off 83 arch/um/drivers/ubd_kern.c return (data[n] & (1 << off)) != 0; off 89 arch/um/drivers/ubd_kern.c int bits, off; off 93 arch/um/drivers/ubd_kern.c off = bit % bits; off 94 arch/um/drivers/ubd_kern.c data[n] |= (1 << off); off 1313 arch/um/drivers/ubd_kern.c u64 off, struct bio_vec *bvec) off 1341 arch/um/drivers/ubd_kern.c io_req->offset = off; off 1364 arch/um/drivers/ubd_kern.c u64 off = (u64)blk_rq_pos(req) << SECTOR_SHIFT; off 1367 arch/um/drivers/ubd_kern.c ret = ubd_queue_one_vec(hctx, req, off, &bvec); off 1370 arch/um/drivers/ubd_kern.c off += bvec.bv_len; off 1505 arch/um/drivers/ubd_kern.c __u64 off; off 1525 arch/um/drivers/ubd_kern.c off = req->offset + req->offsets[bit] + off 1537 arch/um/drivers/ubd_kern.c n = os_pread_file(req->fds[bit], buf, len, off); off 1546 arch/um/drivers/ubd_kern.c n = os_pwrite_file(req->fds[bit], buf, len, off); off 1554 arch/um/drivers/ubd_kern.c n = os_falloc_punch(req->fds[bit], off, len); off 206 arch/um/include/shared/os.h extern int os_map_memory(void *virt, int fd, unsigned long long off, off 138 arch/um/os-Linux/process.c int os_map_memory(void *virt, int fd, unsigned long long off, unsigned long len, off 148 arch/um/os-Linux/process.c fd, off); off 61 arch/unicore32/kernel/ptrace.c static int ptrace_read_user(struct task_struct *tsk, unsigned long off, off 67 arch/unicore32/kernel/ptrace.c if (off < sizeof(struct pt_regs)) off 68 arch/unicore32/kernel/ptrace.c tmp = get_user_reg(tsk, off >> 2); off 76 arch/unicore32/kernel/ptrace.c static int ptrace_write_user(struct task_struct *tsk, unsigned long off, off 79 arch/unicore32/kernel/ptrace.c if (off >= sizeof(struct pt_regs)) off 82 arch/unicore32/kernel/ptrace.c return put_user_reg(tsk, off >> 2, val); off 12 arch/x86/boot/vesa.h u16 off, seg; off 52 arch/x86/boot/video-vesa.c mode_ptr = vginfo.video_mode_ptr.off; off 10 arch/x86/include/asm/fb.h unsigned long off) off 839 arch/x86/include/asm/paravirt.h #define PARA_PATCH(off) ((off) / 8) off 854 arch/x86/include/asm/paravirt.h #define PARA_PATCH(off) ((off) / 4) off 201 arch/x86/kernel/cpu/mce/dev-mcelog.c size_t usize, loff_t *off) off 217 arch/x86/kernel/cpu/mce/dev-mcelog.c if (*off != 0 || usize < MCE_LOG_LEN*sizeof(struct mce)) off 292 arch/x86/kernel/cpu/mce/dev-mcelog.c size_t usize, loff_t *off) off 364 arch/x86/kernel/cpu/resctrl/ctrlmondata.c char *buf, size_t nbytes, loff_t off) off 271 arch/x86/kernel/cpu/resctrl/internal.h char *buf, size_t nbytes, loff_t off); off 560 arch/x86/kernel/cpu/resctrl/internal.h char *buf, size_t nbytes, loff_t off); off 1474 arch/x86/kernel/cpu/resctrl/pseudo_lock.c unsigned long off = vma->vm_pgoff << PAGE_SHIFT; off 1508 arch/x86/kernel/cpu/resctrl/pseudo_lock.c psize = plr->size - off; off 1510 arch/x86/kernel/cpu/resctrl/pseudo_lock.c if (off > plr->size) { off 1529 arch/x86/kernel/cpu/resctrl/pseudo_lock.c memset(plr->kmem + off, 0, vsize); off 233 arch/x86/kernel/cpu/resctrl/rdtgroup.c size_t nbytes, loff_t off) off 238 arch/x86/kernel/cpu/resctrl/rdtgroup.c return rft->write(of, buf, nbytes, off); off 442 arch/x86/kernel/cpu/resctrl/rdtgroup.c char *buf, size_t nbytes, loff_t off) off 669 arch/x86/kernel/cpu/resctrl/rdtgroup.c char *buf, size_t nbytes, loff_t off) off 931 arch/x86/kernel/cpu/resctrl/rdtgroup.c char *buf, size_t nbytes, loff_t off) off 1176 arch/x86/kernel/cpu/resctrl/rdtgroup.c char *buf, size_t nbytes, loff_t off) off 32 arch/x86/kernel/ksysfs.c char *buf, loff_t off, size_t count) off 34 arch/x86/kernel/ksysfs.c memcpy(buf, (void *)&boot_params + off, count); off 142 arch/x86/kernel/ksysfs.c loff_t off, size_t count) off 160 arch/x86/kernel/ksysfs.c if (off > data->len) { off 165 arch/x86/kernel/ksysfs.c if (count > data->len - off) off 166 arch/x86/kernel/ksysfs.c count = data->len - off; off 177 arch/x86/kernel/ksysfs.c memcpy(buf, p + off, count); off 93 arch/x86/kernel/sys_x86_64.c unsigned long, fd, unsigned long, off) off 97 arch/x86/kernel/sys_x86_64.c if (off & ~PAGE_MASK) off 100 arch/x86/kernel/sys_x86_64.c error = ksys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); off 368 arch/x86/kvm/i8259.c off = (s == &s->pics_state->pics[0]) ? 0 : 8; off 374 arch/x86/kvm/i8259.c SELECT_PIC(irq + off), off 375 arch/x86/kvm/i8259.c irq + off, off 4210 arch/x86/kvm/vmx/nested.c gva_t off; off 4238 arch/x86/kvm/vmx/nested.c off = exit_qualification; /* holds the displacement */ off 4240 arch/x86/kvm/vmx/nested.c off = (gva_t)sign_extend64(off, 31); off 4242 arch/x86/kvm/vmx/nested.c off = (gva_t)sign_extend64(off, 15); off 4244 arch/x86/kvm/vmx/nested.c off += kvm_register_read(vcpu, base_reg); off 4246 arch/x86/kvm/vmx/nested.c off += kvm_register_read(vcpu, index_reg)<<scaling; off 4256 arch/x86/kvm/vmx/nested.c off &= 0xffffffff; off 4258 arch/x86/kvm/vmx/nested.c off &= 0xffff; off 4269 arch/x86/kvm/vmx/nested.c *ret = s.base + off; off 4271 arch/x86/kvm/vmx/nested.c *ret = off; off 4284 arch/x86/kvm/vmx/nested.c *ret = (s.base + off) & 0xffffffff; off 4318 arch/x86/kvm/vmx/nested.c exn = exn || ((u64)off + len - 1 > s.limit); off 156 arch/x86/lib/insn-eval.c static int resolve_default_seg(struct insn *insn, struct pt_regs *regs, int off) off 174 arch/x86/lib/insn-eval.c switch (off) { off 37 arch/x86/net/bpf_jit_comp.c #define EMIT1_off32(b1, off) \ off 38 arch/x86/net/bpf_jit_comp.c do { EMIT1(b1); EMIT(off, 4); } while (0) off 39 arch/x86/net/bpf_jit_comp.c #define EMIT2_off32(b1, b2, off) \ off 40 arch/x86/net/bpf_jit_comp.c do { EMIT2(b1, b2); EMIT(off, 4); } while (0) off 41 arch/x86/net/bpf_jit_comp.c #define EMIT3_off32(b1, b2, b3, off) \ off 42 arch/x86/net/bpf_jit_comp.c do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0) off 43 arch/x86/net/bpf_jit_comp.c #define EMIT4_off32(b1, b2, b3, b4, off) \ off 44 arch/x86/net/bpf_jit_comp.c do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0) off 753 arch/x86/net/bpf_jit_comp.c st: if (is_imm8(insn->off)) off 754 arch/x86/net/bpf_jit_comp.c EMIT2(add_1reg(0x40, dst_reg), insn->off); off 756 arch/x86/net/bpf_jit_comp.c EMIT1_off32(add_1reg(0x80, dst_reg), insn->off); off 784 arch/x86/net/bpf_jit_comp.c stx: if (is_imm8(insn->off)) off 785 arch/x86/net/bpf_jit_comp.c EMIT2(add_2reg(0x40, dst_reg, src_reg), insn->off); off 788 arch/x86/net/bpf_jit_comp.c insn->off); off 815 arch/x86/net/bpf_jit_comp.c if (is_imm8(insn->off)) off 816 arch/x86/net/bpf_jit_comp.c EMIT2(add_2reg(0x40, src_reg, dst_reg), insn->off); off 819 arch/x86/net/bpf_jit_comp.c insn->off); off 832 arch/x86/net/bpf_jit_comp.c xadd: if (is_imm8(insn->off)) off 833 arch/x86/net/bpf_jit_comp.c EMIT2(add_2reg(0x40, dst_reg, src_reg), insn->off); off 836 arch/x86/net/bpf_jit_comp.c insn->off); off 979 arch/x86/net/bpf_jit_comp.c jmp_offset = addrs[i + insn->off] - addrs[i]; off 992 arch/x86/net/bpf_jit_comp.c if (insn->off == -1) off 1001 arch/x86/net/bpf_jit_comp.c jmp_offset = addrs[i + insn->off] - addrs[i]; off 72 arch/x86/net/bpf_jit_comp32.c #define EMIT1_off32(b1, off) \ off 73 arch/x86/net/bpf_jit_comp32.c do { EMIT1(b1); EMIT(off, 4); } while (0) off 74 arch/x86/net/bpf_jit_comp32.c #define EMIT2_off32(b1, b2, off) \ off 75 arch/x86/net/bpf_jit_comp32.c do { EMIT2(b1, b2); EMIT(off, 4); } while (0) off 76 arch/x86/net/bpf_jit_comp32.c #define EMIT3_off32(b1, b2, b3, off) \ off 77 arch/x86/net/bpf_jit_comp32.c do { EMIT3(b1, b2, b3); EMIT(off, 4); } while (0) off 78 arch/x86/net/bpf_jit_comp32.c #define EMIT4_off32(b1, b2, b3, b4, off) \ off 79 arch/x86/net/bpf_jit_comp32.c do { EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0) off 185 arch/x86/net/bpf_jit_comp32.c #define STACK_VAR(off) (off) off 1731 arch/x86/net/bpf_jit_comp32.c if (is_imm8(insn->off)) off 1732 arch/x86/net/bpf_jit_comp32.c EMIT2(add_1reg(0x40, IA32_EAX), insn->off); off 1735 arch/x86/net/bpf_jit_comp32.c insn->off); off 1743 arch/x86/net/bpf_jit_comp32.c insn->off + 4); off 1779 arch/x86/net/bpf_jit_comp32.c if (is_imm8(insn->off)) off 1781 arch/x86/net/bpf_jit_comp32.c insn->off); off 1784 arch/x86/net/bpf_jit_comp32.c insn->off); off 1797 arch/x86/net/bpf_jit_comp32.c if (is_imm8(insn->off + 4)) { off 1800 arch/x86/net/bpf_jit_comp32.c insn->off + 4); off 1804 arch/x86/net/bpf_jit_comp32.c EMIT(insn->off + 4, 4); off 1832 arch/x86/net/bpf_jit_comp32.c if (is_imm8(insn->off)) off 1834 arch/x86/net/bpf_jit_comp32.c insn->off); off 1837 arch/x86/net/bpf_jit_comp32.c insn->off); off 1865 arch/x86/net/bpf_jit_comp32.c insn->off + 4); off 2150 arch/x86/net/bpf_jit_comp32.c jmp_offset = addrs[i + insn->off] - addrs[i]; off 2199 arch/x86/net/bpf_jit_comp32.c jmp_offset = addrs[i + insn->off] - addrs[i] + 8; off 2212 arch/x86/net/bpf_jit_comp32.c jmp_offset = addrs[i + insn->off] - addrs[i]; off 2222 arch/x86/net/bpf_jit_comp32.c if (insn->off == -1) off 2231 arch/x86/net/bpf_jit_comp32.c jmp_offset = addrs[i + insn->off] - addrs[i]; off 255 arch/x86/xen/pmu.c int i, off = 0; off 270 arch/x86/xen/pmu.c if (msr == amd_ctrls_base + off) { off 274 arch/x86/xen/pmu.c } else if (msr == amd_counters_base + off) { off 279 arch/x86/xen/pmu.c off += amd_msr_step; off 176 arch/xtensa/include/asm/cmpxchg.h int off = (unsigned long)ptr % sizeof(u32); off 177 arch/xtensa/include/asm/cmpxchg.h volatile u32 *p = ptr - off; off 179 arch/xtensa/include/asm/cmpxchg.h int bitoff = (sizeof(u32) - size - off) * BITS_PER_BYTE; off 181 arch/xtensa/include/asm/cmpxchg.h int bitoff = off * BITS_PER_BYTE; off 167 arch/xtensa/include/asm/page.h unsigned long off = va - PAGE_OFFSET; off 169 arch/xtensa/include/asm/page.h if (off >= XCHAL_KSEG_SIZE) off 170 arch/xtensa/include/asm/page.h off -= XCHAL_KSEG_SIZE; off 172 arch/xtensa/include/asm/page.h return off + PHYS_OFFSET; off 28 arch/xtensa/kernel/pci-dma.c unsigned long off = paddr & (PAGE_SIZE - 1); off 36 arch/xtensa/kernel/pci-dma.c size_t sz = min_t(size_t, size, PAGE_SIZE - off); off 39 arch/xtensa/kernel/pci-dma.c fn((unsigned long)vaddr + off, sz); off 41 arch/xtensa/kernel/pci-dma.c off = 0; off 121 arch/xtensa/platforms/iss/include/platform/simcall.h static inline int simc_lseek(int fd, uint32_t off, int whence) off 123 arch/xtensa/platforms/iss/include/platform/simcall.h return __simc(SYS_lseek, fd, off, whence); off 91 block/bfq-cgroup.c int off) off 93 block/bfq-cgroup.c return __blkg_prfill_u64(sf, pd, bfq_stat_read((void *)pd + off)); off 949 block/bfq-cgroup.c struct blkg_policy_data *pd, int off) off 1030 block/bfq-cgroup.c loff_t off) off 1068 block/bfq-cgroup.c loff_t off) off 1083 block/bfq-cgroup.c return bfq_io_set_device_weight(of, buf, nbytes, off); off 1102 block/bfq-cgroup.c struct blkg_policy_data *pd, int off) off 1118 block/bfq-cgroup.c stat = (void *)blkg_to_pd(pos_blkg, &blkcg_policy_bfq) + off; off 1127 block/bfq-cgroup.c struct blkg_policy_data *pd, int off) off 1131 block/bfq-cgroup.c blkg_rwstat_recursive_sum(pd_to_blkg(pd), &blkcg_policy_bfq, off, &sum); off 1152 block/bfq-cgroup.c int off) off 1167 block/bfq-cgroup.c struct blkg_policy_data *pd, int off) off 1187 block/bfq-cgroup.c struct blkg_policy_data *pd, int off) off 683 block/bio.c struct page *page, unsigned int len, unsigned int off, off 690 block/bio.c if (vec_end_addr + 1 != page_addr + off) off 801 block/bio.c unsigned int len, unsigned int off, bool *same_page) off 809 block/bio.c if (page_is_mergeable(bv, page, len, off, same_page)) { off 832 block/bio.c unsigned int len, unsigned int off) off 840 block/bio.c bv->bv_offset = off; off 609 block/blk-cgroup.c int off) off 613 block/blk-cgroup.c blkg_rwstat_read((void *)pd + off, &rwstat); off 619 block/blk-cgroup.c struct blkg_policy_data *pd, int off) off 623 block/blk-cgroup.c blkg_rwstat_read((void *)pd->blkg + off, &rwstat); off 663 block/blk-cgroup.c int off) off 667 block/blk-cgroup.c blkg_rwstat_recursive_sum(pd->blkg, NULL, off, &rwstat); off 716 block/blk-cgroup.c int off, struct blkg_rwstat_sample *sum) off 732 block/blk-cgroup.c rwstat = (void *)blkg_to_pd(pos_blkg, pol) + off; off 734 block/blk-cgroup.c rwstat = (void *)pos_blkg + off; off 933 block/blk-cgroup.c size_t size = seq_get_buf(sf, &buf), off = 0; off 952 block/blk-cgroup.c off += scnprintf(buf+off, size-off, "%s ", dname); off 968 block/blk-cgroup.c off += scnprintf(buf+off, size-off, off 976 block/blk-cgroup.c off += scnprintf(buf+off, size-off, off 989 block/blk-cgroup.c written = pol->pd_stat_fn(blkg->pd[i], buf+off, size-off); off 992 block/blk-cgroup.c off += written; off 996 block/blk-cgroup.c if (off < size - 1) { off 997 block/blk-cgroup.c off += scnprintf(buf+off, size-off, "\n"); off 998 block/blk-cgroup.c seq_commit(sf, off); off 2073 block/blk-iocost.c int off) off 2096 block/blk-iocost.c size_t nbytes, loff_t off) off 2159 block/blk-iocost.c int off) off 2208 block/blk-iocost.c size_t nbytes, loff_t off) off 2330 block/blk-iocost.c struct blkg_policy_data *pd, int off) off 2374 block/blk-iocost.c size_t nbytes, loff_t off) off 788 block/blk-iolatency.c size_t nbytes, loff_t off) off 868 block/blk-iolatency.c struct blkg_policy_data *pd, int off) off 1036 block/blk-mq.c unsigned off = start ? start->index_hw[hctx->type] : 0; off 1042 block/blk-mq.c __sbitmap_for_each_set(&hctx->ctx_map, off, off 1331 block/blk-throttle.c int off) off 1334 block/blk-throttle.c u64 v = *(u64 *)((void *)tg + off); off 1342 block/blk-throttle.c int off) off 1345 block/blk-throttle.c unsigned int v = *(unsigned int *)((void *)tg + off); off 1423 block/blk-throttle.c char *buf, size_t nbytes, loff_t off, bool is_u64) off 1456 block/blk-throttle.c char *buf, size_t nbytes, loff_t off) off 1458 block/blk-throttle.c return tg_set_conf(of, buf, nbytes, off, true); off 1462 block/blk-throttle.c char *buf, size_t nbytes, loff_t off) off 1464 block/blk-throttle.c return tg_set_conf(of, buf, nbytes, off, false); off 1516 block/blk-throttle.c int off) off 1529 block/blk-throttle.c if (off == LIMIT_LOW) { off 1537 block/blk-throttle.c if (tg->bps_conf[READ][off] == bps_dft && off 1538 block/blk-throttle.c tg->bps_conf[WRITE][off] == bps_dft && off 1539 block/blk-throttle.c tg->iops_conf[READ][off] == iops_dft && off 1540 block/blk-throttle.c tg->iops_conf[WRITE][off] == iops_dft && off 1541 block/blk-throttle.c (off != LIMIT_LOW || off 1546 block/blk-throttle.c if (tg->bps_conf[READ][off] != U64_MAX) off 1548 block/blk-throttle.c tg->bps_conf[READ][off]); off 1549 block/blk-throttle.c if (tg->bps_conf[WRITE][off] != U64_MAX) off 1551 block/blk-throttle.c tg->bps_conf[WRITE][off]); off 1552 block/blk-throttle.c if (tg->iops_conf[READ][off] != UINT_MAX) off 1554 block/blk-throttle.c tg->iops_conf[READ][off]); off 1555 block/blk-throttle.c if (tg->iops_conf[WRITE][off] != UINT_MAX) off 1557 block/blk-throttle.c tg->iops_conf[WRITE][off]); off 1558 block/blk-throttle.c if (off == LIMIT_LOW) { off 1586 block/blk-throttle.c char *buf, size_t nbytes, loff_t off) off 1641 block/blk-throttle.c else if (off == LIMIT_LOW && !strcmp(tok, "idle")) off 1643 block/blk-throttle.c else if (off == LIMIT_LOW && !strcmp(tok, "latency")) off 268 block/partitions/ldm.c static const int off[3] = { OFF_PRIV1, OFF_PRIV2, OFF_PRIV3 }; off 290 block/partitions/ldm.c data = read_part_sector(state, ph[0]->config_start + off[i], off 356 block/partitions/ldm.c static const int off[4] = { OFF_TOCB1, OFF_TOCB2, OFF_TOCB3, OFF_TOCB4}; off 381 block/partitions/ldm.c data = read_part_sector(state, base + off[i], §); off 1588 block/sed-opal.c size_t off = 0; off 1608 block/sed-opal.c while (off < shadow->size) { off 1612 block/sed-opal.c add_token_u64(&err, dev, shadow->offset + off); off 1625 block/sed-opal.c (size_t)(shadow->size - off)); off 1627 block/sed-opal.c off, len, shadow->size); off 1632 block/sed-opal.c if (copy_from_user(dst, src + off, len)) off 1644 block/sed-opal.c off += len; off 395 crypto/af_alg.c size_t off; off 399 crypto/af_alg.c n = iov_iter_get_pages(iter, sgl->pages, len, ALG_MAX_PAGES, &off); off 403 crypto/af_alg.c npages = (off + n + PAGE_SIZE - 1) >> PAGE_SHIFT; off 410 crypto/af_alg.c int plen = min_t(int, len, PAGE_SIZE - off); off 412 crypto/af_alg.c sg_set_page(sgl->sg + i, sgl->pages[i], plen, off); off 414 crypto/af_alg.c off = 0; off 83 drivers/acpi/apei/erst-dbg.c size_t usize, loff_t *off) off 89 drivers/acpi/apei/erst-dbg.c if (*off) off 153 drivers/acpi/apei/erst-dbg.c size_t usize, loff_t *off) off 54 drivers/acpi/bgrt.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) off 56 drivers/acpi/bgrt.c memcpy(buf, attr->private + off, count); off 31 drivers/acpi/ec_sys.c size_t count, loff_t *off) off 37 drivers/acpi/ec_sys.c loff_t init_off = *off; off 40 drivers/acpi/ec_sys.c if (*off >= size) off 42 drivers/acpi/ec_sys.c if (*off + count >= size) { off 43 drivers/acpi/ec_sys.c size -= *off; off 50 drivers/acpi/ec_sys.c err = ec_read(*off, &byte_read); off 53 drivers/acpi/ec_sys.c if (put_user(byte_read, buf + *off - init_off)) { off 54 drivers/acpi/ec_sys.c if (*off - init_off) off 55 drivers/acpi/ec_sys.c return *off - init_off; /* partial read */ off 58 drivers/acpi/ec_sys.c *off += 1; off 65 drivers/acpi/ec_sys.c size_t count, loff_t *off) off 72 drivers/acpi/ec_sys.c loff_t init_off = *off; off 78 drivers/acpi/ec_sys.c if (*off >= EC_SPACE_SIZE) off 80 drivers/acpi/ec_sys.c if (*off + count >= EC_SPACE_SIZE) { off 81 drivers/acpi/ec_sys.c size = EC_SPACE_SIZE - *off; off 87 drivers/acpi/ec_sys.c if (get_user(byte_write, buf + *off - init_off)) { off 88 drivers/acpi/ec_sys.c if (*off - init_off) off 89 drivers/acpi/ec_sys.c return *off - init_off; /* partial write */ off 92 drivers/acpi/ec_sys.c err = ec_write(*off, byte_write); off 96 drivers/acpi/ec_sys.c *off += 1; off 68 drivers/acpi/thermal.c static int off; off 69 drivers/acpi/thermal.c module_param(off, int, 0); off 70 drivers/acpi/thermal.c MODULE_PARM_DESC(off, "Set to disable ACPI thermal support."); off 1239 drivers/acpi/thermal.c if (off) { off 60 drivers/bcma/driver_pci_host.c unsigned int func, unsigned int off) off 78 drivers/bcma/driver_pci_host.c addr |= (off & ~3); off 85 drivers/bcma/driver_pci_host.c unsigned int func, unsigned int off, off 103 drivers/bcma/driver_pci_host.c if (off >= PCI_CONFIG_SPACE_SIZE) { off 105 drivers/bcma/driver_pci_host.c addr |= (off & 0x0FFC); off 110 drivers/bcma/driver_pci_host.c addr |= (off & 0xFC); off 114 drivers/bcma/driver_pci_host.c addr = bcma_get_cfgspace_addr(pc, dev, func, off); off 127 drivers/bcma/driver_pci_host.c val >>= (8 * (off & 3)); off 149 drivers/bcma/driver_pci_host.c unsigned int func, unsigned int off, off 168 drivers/bcma/driver_pci_host.c if (off >= PCI_CONFIG_SPACE_SIZE) { off 170 drivers/bcma/driver_pci_host.c addr |= (off & 0x0FFC); off 175 drivers/bcma/driver_pci_host.c addr |= (off & 0xFC); off 179 drivers/bcma/driver_pci_host.c addr = bcma_get_cfgspace_addr(pc, dev, func, off); off 195 drivers/bcma/driver_pci_host.c val &= ~(0xFF << (8 * (off & 3))); off 196 drivers/bcma/driver_pci_host.c val |= *((const u8 *)buf) << (8 * (off & 3)); off 199 drivers/bcma/driver_pci_host.c val &= ~(0xFFFF << (8 * (off & 3))); off 200 drivers/bcma/driver_pci_host.c val |= *((const u16 *)buf) << (8 * (off & 3)); off 210 drivers/bcma/driver_pci_host.c if (off >= PCI_CONFIG_SPACE_SIZE) off 213 drivers/block/aoe/aoechr.c aoechr_read(struct file *filp, char __user *buf, size_t cnt, loff_t *off) off 259 drivers/block/brd.c unsigned int len, unsigned int off, unsigned int op, off 273 drivers/block/brd.c copy_from_brd(mem + off, brd, sector, len); off 277 drivers/block/brd.c copy_to_brd(brd, mem + off, sector, len); off 932 drivers/block/null_blk_main.c unsigned int off, sector_t sector, size_t n, bool is_fua) off 953 drivers/block/null_blk_main.c memcpy(dst + offset, src + off + count, temp); off 969 drivers/block/null_blk_main.c unsigned int off, sector_t sector, size_t n) off 985 drivers/block/null_blk_main.c memset(dst + off + count, 0, temp); off 989 drivers/block/null_blk_main.c memcpy(dst + off + count, src + offset, temp); off 1037 drivers/block/null_blk_main.c unsigned int len, unsigned int off, bool is_write, sector_t sector, off 1043 drivers/block/null_blk_main.c err = copy_from_nullb(nullb, page, off, sector, len); off 1047 drivers/block/null_blk_main.c err = copy_to_nullb(nullb, page, off, sector, len, is_fua); off 1363 drivers/block/rbd.c static void zero_bios(struct ceph_bio_iter *bio_pos, u32 off, u32 bytes) off 1367 drivers/block/rbd.c ceph_bio_iter_advance(&it, off); off 1373 drivers/block/rbd.c static void zero_bvecs(struct ceph_bvec_iter *bvec_pos, u32 off, u32 bytes) off 1377 drivers/block/rbd.c ceph_bvec_iter_advance(&it, off); off 1389 drivers/block/rbd.c static void rbd_obj_zero_range(struct rbd_obj_request *obj_req, u32 off, off 1392 drivers/block/rbd.c dout("%s %p data buf %u~%u\n", __func__, obj_req, off, bytes); off 1396 drivers/block/rbd.c zero_bios(&obj_req->bio_pos, off, bytes); off 1400 drivers/block/rbd.c zero_bvecs(&obj_req->bvec_pos, off, bytes); off 1792 drivers/block/rbd.c u32 off; off 1795 drivers/block/rbd.c *index = div_u64_rem(objno, OBJS_PER_BYTE, &off); off 1796 drivers/block/rbd.c *shift = (OBJS_PER_BYTE - off - 1) * BITS_PER_OBJ; off 2424 drivers/block/rbd.c u64 off, next_off; off 2437 drivers/block/rbd.c off = round_up(obj_req->ex.oe_off, rbd_dev->opts->alloc_size); off 2440 drivers/block/rbd.c if (off >= next_off) off 2445 drivers/block/rbd.c off, next_off - off); off 2446 drivers/block/rbd.c obj_req->ex.oe_off = off; off 2447 drivers/block/rbd.c obj_req->ex.oe_len = next_off - off; off 2739 drivers/block/rbd.c u64 off, u64 len) off 2741 drivers/block/rbd.c struct ceph_file_extent ex = { off, len }; off 2806 drivers/block/rbd.c u64 off, u64 len, struct bio *bio) off 2808 drivers/block/rbd.c struct ceph_file_extent ex = { off, len }; off 603 drivers/block/rsxx/cregs.c int off; off 606 drivers/block/rsxx/cregs.c off = 0; off 612 drivers/block/rsxx/cregs.c while (off < cmd->cnt8) { off 614 drivers/block/rsxx/cregs.c cnt = min(cmd->cnt8 - off, LOG_BUF_SIZE8 - card->log.buf_len); off 615 drivers/block/rsxx/cregs.c len = substrncpy(log_str, &buf[off], cnt); off 617 drivers/block/rsxx/cregs.c off += len; off 19 drivers/block/rsxx/dma.c u32 off; off 456 drivers/block/rsxx/dma.c (dma->sub_page.off & 0x7); off 615 drivers/block/rsxx/dma.c dma->sub_page.off = 0; off 648 drivers/block/rsxx/dma.c dma->sub_page.off = (dma_off >> 9); off 657 drivers/block/rsxx/dma.c dir ? 'W' : 'R', dma->laddr, dma->sub_page.off, off 121 drivers/char/tpm/tpm-dev-common.c size_t size, loff_t *off) off 138 drivers/char/tpm/tpm-dev-common.c rc = copy_to_user(buf, priv->data_buffer + *off, ret_size); off 144 drivers/char/tpm/tpm-dev-common.c memset(priv->data_buffer + *off, 0, ret_size); off 146 drivers/char/tpm/tpm-dev-common.c *off += ret_size; off 152 drivers/char/tpm/tpm-dev-common.c *off = 0; off 161 drivers/char/tpm/tpm-dev-common.c size_t size, loff_t *off) off 203 drivers/char/tpm/tpm-dev-common.c *off = 0; off 27 drivers/char/tpm/tpm-dev.h size_t size, loff_t *off); off 29 drivers/char/tpm/tpm-dev.h size_t size, loff_t *off); off 73 drivers/char/tpm/tpm_vtpm_proxy.c size_t count, loff_t *off) off 128 drivers/char/tpm/tpm_vtpm_proxy.c size_t count, loff_t *off) off 306 drivers/clk/hisilicon/clk-hi3620.c static u32 mmc_clk_delay(u32 val, u32 para, u32 off, u32 len) off 312 drivers/clk/hisilicon/clk-hi3620.c val |= 1 << (off + i); off 314 drivers/clk/hisilicon/clk-hi3620.c val &= ~(1 << (off + i)); off 77 drivers/clocksource/timer-keystone.c u32 off; off 80 drivers/clocksource/timer-keystone.c off = tcr & ~(TCR_ENAMODE_MASK); off 86 drivers/clocksource/timer-keystone.c keystone_timer_writel(off, TCR); off 91 drivers/cpufreq/cpufreq.c static int off __read_mostly; off 94 drivers/cpufreq/cpufreq.c return off; off 98 drivers/cpufreq/cpufreq.c off = 1; off 2764 drivers/cpufreq/cpufreq.c module_param(off, int, 0444); off 36 drivers/cpuidle/cpuidle.c static int off __read_mostly; off 41 drivers/cpuidle/cpuidle.c return off; off 45 drivers/cpuidle/cpuidle.c off = 1; off 51 drivers/cpuidle/cpuidle.c return off || !initialized || !drv || !dev || !dev->enabled; off 779 drivers/cpuidle/cpuidle.c module_param(off, int, 0444); off 150 drivers/crypto/atmel-tdes.c size_t count, off = 0; off 157 drivers/crypto/atmel-tdes.c return off; off 159 drivers/crypto/atmel-tdes.c scatterwalk_map_and_copy(buf + off, *sg, *offset, count, out); off 161 drivers/crypto/atmel-tdes.c off += count; off 175 drivers/crypto/atmel-tdes.c return off; off 1228 drivers/crypto/cavium/zip/zip_regs.h u64 off : 7; off 1230 drivers/crypto/cavium/zip/zip_regs.h u64 off : 7; off 889 drivers/crypto/chelsio/chtls/chtls_io.c int off, int copy) off 894 drivers/crypto/chelsio/chtls/chtls_io.c off, copy, skb->len); off 1077 drivers/crypto/chelsio/chtls/chtls_io.c int off = TCP_OFF(sk); off 1082 drivers/crypto/chelsio/chtls/chtls_io.c if (off < pg_size && off 1083 drivers/crypto/chelsio/chtls/chtls_io.c skb_can_coalesce(skb, i, page, off)) { off 1092 drivers/crypto/chelsio/chtls/chtls_io.c if (page && off == pg_size) { off 1116 drivers/crypto/chelsio/chtls/chtls_io.c off = 0; off 1119 drivers/crypto/chelsio/chtls/chtls_io.c if (copy > pg_size - off) off 1120 drivers/crypto/chelsio/chtls/chtls_io.c copy = pg_size - off; off 1126 drivers/crypto/chelsio/chtls/chtls_io.c off, copy); off 1140 drivers/crypto/chelsio/chtls/chtls_io.c skb_fill_page_desc(skb, i, page, off, copy); off 1141 drivers/crypto/chelsio/chtls/chtls_io.c if (off + copy < pg_size) { off 1149 drivers/crypto/chelsio/chtls/chtls_io.c TCP_OFF(sk) = off + copy; off 1278 drivers/crypto/hisilicon/qm.c size_t off = 0; off 1282 drivers/crypto/hisilicon/qm.c (qp)->type = ((qp)->qdma.va + (off)); \ off 1283 drivers/crypto/hisilicon/qm.c (qp)->type##_dma = (qp)->qdma.dma + (off); \ off 1284 drivers/crypto/hisilicon/qm.c off += (size); \ off 1624 drivers/crypto/hisilicon/qm.c size_t off = 0; off 1628 drivers/crypto/hisilicon/qm.c (qm)->type = ((qm)->qdma.va + (off)); \ off 1629 drivers/crypto/hisilicon/qm.c (qm)->type##_dma = (qm)->qdma.dma + (off); \ off 1630 drivers/crypto/hisilicon/qm.c off += QMC_ALIGN(sizeof(struct qm_##type) * (num)); \ off 77 drivers/crypto/n2_core.c static unsigned long spu_next_offset(struct spu_queue *q, unsigned long off) off 80 drivers/crypto/n2_core.c off += MAU_ENTRY_SIZE; off 81 drivers/crypto/n2_core.c if (off == (MAU_ENTRY_SIZE * MAU_NUM_ENTRIES)) off 82 drivers/crypto/n2_core.c off = 0; off 84 drivers/crypto/n2_core.c off += CWQ_ENTRY_SIZE; off 85 drivers/crypto/n2_core.c if (off == (CWQ_ENTRY_SIZE * CWQ_NUM_ENTRIES)) off 86 drivers/crypto/n2_core.c off = 0; off 88 drivers/crypto/n2_core.c return off; off 121 drivers/crypto/n2_core.c unsigned long off, new_head, hv_ret; off 134 drivers/crypto/n2_core.c for (off = q->head; off != new_head; off = spu_next_offset(q, off)) { off 333 drivers/dax/device.c unsigned long off, off_end, off_align, len_align, addr_align, align; off 342 drivers/dax/device.c off = pgoff << PAGE_SHIFT; off 343 drivers/dax/device.c off_end = off + len; off 344 drivers/dax/device.c off_align = round_up(off, align); off 350 drivers/dax/device.c if ((off + len_align) < off) off 356 drivers/dax/device.c addr_align += (off - addr_align) & (align - 1); off 712 drivers/dma/bcm-sba-raid.c dma_addr_t off, dma_addr_t dst, dma_addr_t src, off 726 drivers/dma/bcm-sba-raid.c off, len, dst, src); off 740 drivers/dma/bcm-sba-raid.c dma_addr_t off = 0; off 748 drivers/dma/bcm-sba-raid.c req = sba_prep_dma_memcpy_req(sba, off, dst, src, off 761 drivers/dma/bcm-sba-raid.c off += req_len; off 851 drivers/dma/bcm-sba-raid.c dma_addr_t off, dma_addr_t dst, dma_addr_t *src, off 865 drivers/dma/bcm-sba-raid.c off, len, dst, src, src_cnt); off 879 drivers/dma/bcm-sba-raid.c dma_addr_t off = 0; off 891 drivers/dma/bcm-sba-raid.c req = sba_prep_dma_xor_req(sba, off, dst, src, src_cnt, off 904 drivers/dma/bcm-sba-raid.c off += req_len; off 1061 drivers/dma/bcm-sba-raid.c sba_prep_dma_pq_req(struct sba_device *sba, dma_addr_t off, off 1077 drivers/dma/bcm-sba-raid.c off, len, dst_p, dst_q, scf, src, src_cnt); off 1315 drivers/dma/bcm-sba-raid.c sba_prep_dma_pq_single_req(struct sba_device *sba, dma_addr_t off, off 1331 drivers/dma/bcm-sba-raid.c req->cmds, &req->msg, off, len, off 1348 drivers/dma/bcm-sba-raid.c dma_addr_t off = 0; off 1385 drivers/dma/bcm-sba-raid.c off, dst_p, dst_q, src[i], scf[i], off 1403 drivers/dma/bcm-sba-raid.c off, dst_p, dst_q, src[i], scf[i], off 1416 drivers/dma/bcm-sba-raid.c req = sba_prep_dma_pq_req(sba, off, off 1428 drivers/dma/bcm-sba-raid.c off += req_len; off 209 drivers/dma/dmatest.c unsigned int off; off 696 drivers/dma/dmatest.c src->off = 0; off 697 drivers/dma/dmatest.c dst->off = 0; off 699 drivers/dma/dmatest.c src->off = dmatest_random() % (buf_size - len + 1); off 700 drivers/dma/dmatest.c dst->off = dmatest_random() % (buf_size - len + 1); off 702 drivers/dma/dmatest.c src->off = (src->off >> align) << align; off 703 drivers/dma/dmatest.c dst->off = (dst->off >> align) << align; off 708 drivers/dma/dmatest.c dmatest_init_srcs(src->aligned, src->off, len, off 710 drivers/dma/dmatest.c dmatest_init_dsts(dst->aligned, dst->off, len, off 722 drivers/dma/dmatest.c src->off, dst->off, len, ret); off 734 drivers/dma/dmatest.c srcs[i] = um->addr[i] + src->off; off 738 drivers/dma/dmatest.c src->off, dst->off, len, ret); off 755 drivers/dma/dmatest.c src->off, dst->off, len, ret); off 763 drivers/dma/dmatest.c dsts[0] + dst->off, off 767 drivers/dma/dmatest.c dsts[0] + dst->off, off 768 drivers/dma/dmatest.c *(src->aligned[0] + src->off), off 772 drivers/dma/dmatest.c dsts[0] + dst->off, off 777 drivers/dma/dmatest.c dma_pq[i] = dsts[i] + dst->off; off 784 drivers/dma/dmatest.c result("prep error", total_tests, src->off, off 785 drivers/dma/dmatest.c dst->off, len, ret); off 798 drivers/dma/dmatest.c result("submit error", total_tests, src->off, off 799 drivers/dma/dmatest.c dst->off, len, ret); off 821 drivers/dma/dmatest.c result("test timed out", total_tests, src->off, dst->off, off 827 drivers/dma/dmatest.c "completion busy status", total_tests, src->off, off 828 drivers/dma/dmatest.c dst->off, len, ret); off 835 drivers/dma/dmatest.c verbose_result("test passed", total_tests, src->off, off 836 drivers/dma/dmatest.c dst->off, len, 0); off 842 drivers/dma/dmatest.c error_count = dmatest_verify(src->aligned, 0, src->off, off 844 drivers/dma/dmatest.c error_count += dmatest_verify(src->aligned, src->off, off 845 drivers/dma/dmatest.c src->off + len, src->off, off 847 drivers/dma/dmatest.c error_count += dmatest_verify(src->aligned, src->off + len, off 848 drivers/dma/dmatest.c buf_size, src->off + len, off 852 drivers/dma/dmatest.c error_count += dmatest_verify(dst->aligned, 0, dst->off, off 855 drivers/dma/dmatest.c error_count += dmatest_verify(dst->aligned, dst->off, off 856 drivers/dma/dmatest.c dst->off + len, src->off, off 859 drivers/dma/dmatest.c error_count += dmatest_verify(dst->aligned, dst->off + len, off 860 drivers/dma/dmatest.c buf_size, dst->off + len, off 867 drivers/dma/dmatest.c result("data error", total_tests, src->off, dst->off, off 871 drivers/dma/dmatest.c verbose_result("test passed", total_tests, src->off, off 872 drivers/dma/dmatest.c dst->off, len, 0); off 537 drivers/dma/dw-edma/dw-edma-core.c unsigned long off; off 542 drivers/dma/dw-edma/dw-edma-core.c off = 0; off 546 drivers/dma/dw-edma/dw-edma-core.c off = dw->wr_ch_cnt; off 555 drivers/dma/dw-edma/dw-edma-core.c struct dw_edma_chan *chan = &dw->chan[pos + off]; off 565 drivers/dma/dw-edma/dw-edma-core.c struct dw_edma_chan *chan = &dw->chan[pos + off]; off 81 drivers/dma/fsl-edma-common.c u32 off, u32 slot, bool enable) off 90 drivers/dma/fsl-edma-common.c iowrite8(val8, addr + off); off 94 drivers/dma/fsl-edma-common.c u32 off, u32 slot, bool enable) off 103 drivers/dma/fsl-edma-common.c iowrite32(val, addr + off * 4); off 625 drivers/dma/fsl_raid.c struct device_node *np, u8 q, u32 off) off 661 drivers/dma/fsl_raid.c off + ptr); off 752 drivers/dma/fsl_raid.c u32 off; off 828 drivers/dma/fsl_raid.c rc = of_property_read_u32(np, "reg", &off); off 839 drivers/dma/fsl_raid.c fsl_re_chan_probe(ofdev, child, ridx++, off); off 318 drivers/dma/mpc512x_dma.c static void mpc_dma_irq_process(struct mpc_dma *mdma, u32 is, u32 es, int off) off 327 drivers/dma/mpc512x_dma.c mchan = &mdma->channels[ch + off]; off 331 drivers/dma/mpc512x_dma.c out_8(&mdma->regs->dmacint, ch + off); off 332 drivers/dma/mpc512x_dma.c out_8(&mdma->regs->dmacerr, ch + off); off 255 drivers/dma/pl330.c #define PL330_DBGCMD_DUMP(off, x...) do { \ off 258 drivers/dma/pl330.c cmd_line += off; \ off 262 drivers/dma/pl330.c #define PL330_DBGCMD_DUMP(off, x...) do {} while (0) off 1090 drivers/dma/pl330.c int off = 0; off 1096 drivers/dma/pl330.c off += _emit_LD(dry_run, &buf[off], ALWAYS); off 1097 drivers/dma/pl330.c off += _emit_ST(dry_run, &buf[off], ALWAYS); off 1101 drivers/dma/pl330.c off += _emit_LD(dry_run, &buf[off], ALWAYS); off 1102 drivers/dma/pl330.c off += _emit_RMB(dry_run, &buf[off]); off 1103 drivers/dma/pl330.c off += _emit_ST(dry_run, &buf[off], ALWAYS); off 1104 drivers/dma/pl330.c off += _emit_WMB(dry_run, &buf[off]); off 1108 drivers/dma/pl330.c return off; off 1115 drivers/dma/pl330.c int off = 0; off 1121 drivers/dma/pl330.c off += _emit_LD(dry_run, &buf[off], cond); off 1126 drivers/dma/pl330.c off += _emit_LDP(dry_run, &buf[off], SINGLE, off 1128 drivers/dma/pl330.c off += _emit_LDP(dry_run, &buf[off], BURST, off 1131 drivers/dma/pl330.c off += _emit_LDP(dry_run, &buf[off], cond, off 1142 drivers/dma/pl330.c return off; off 1149 drivers/dma/pl330.c int off = 0; off 1155 drivers/dma/pl330.c off += _emit_ST(dry_run, &buf[off], cond); off 1160 drivers/dma/pl330.c off += _emit_STP(dry_run, &buf[off], SINGLE, off 1162 drivers/dma/pl330.c off += _emit_STP(dry_run, &buf[off], BURST, off 1165 drivers/dma/pl330.c off += _emit_STP(dry_run, &buf[off], cond, off 1176 drivers/dma/pl330.c return off; off 1184 drivers/dma/pl330.c int off = 0; off 1194 drivers/dma/pl330.c off += _emit_FLUSHP(dry_run, &buf[off], pxs->desc->peri); off 1196 drivers/dma/pl330.c off += _emit_WFP(dry_run, &buf[off], cond, pxs->desc->peri); off 1197 drivers/dma/pl330.c off += _emit_load(dry_run, &buf[off], cond, pxs->desc->rqtype, off 1199 drivers/dma/pl330.c off += _emit_store(dry_run, &buf[off], cond, pxs->desc->rqtype, off 1203 drivers/dma/pl330.c return off; off 1209 drivers/dma/pl330.c int off = 0; off 1216 drivers/dma/pl330.c off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, cyc, off 1221 drivers/dma/pl330.c off += _ldst_memtomem(dry_run, &buf[off], pxs, cyc); off 1230 drivers/dma/pl330.c return off; off 1240 drivers/dma/pl330.c int off = 0; off 1244 drivers/dma/pl330.c return off; off 1250 drivers/dma/pl330.c off += _ldst_peripheral(pl330, dry_run, &buf[off], pxs, off 1262 drivers/dma/pl330.c off += _emit_MOV(dry_run, &buf[off], CCR, dregs_ccr); off 1263 drivers/dma/pl330.c off += _ldst_memtomem(dry_run, &buf[off], pxs, 1); off 1272 drivers/dma/pl330.c return off; off 1279 drivers/dma/pl330.c int cyc, cycmax, szlp, szlpend, szbrst, off; off 1324 drivers/dma/pl330.c off = 0; off 1327 drivers/dma/pl330.c off += _emit_LP(dry_run, &buf[off], 0, lcnt0); off 1328 drivers/dma/pl330.c ljmp0 = off; off 1331 drivers/dma/pl330.c off += _emit_LP(dry_run, &buf[off], 1, lcnt1); off 1332 drivers/dma/pl330.c ljmp1 = off; off 1334 drivers/dma/pl330.c off += _bursts(pl330, dry_run, &buf[off], pxs, cyc); off 1339 drivers/dma/pl330.c lpend.bjump = off - ljmp1; off 1340 drivers/dma/pl330.c off += _emit_LPEND(dry_run, &buf[off], &lpend); off 1346 drivers/dma/pl330.c lpend.bjump = off - ljmp0; off 1347 drivers/dma/pl330.c off += _emit_LPEND(dry_run, &buf[off], &lpend); off 1354 drivers/dma/pl330.c return off; off 1366 drivers/dma/pl330.c int off = 0; off 1370 drivers/dma/pl330.c off += _loop(pl330, dry_run, &buf[off], &c, pxs); off 1373 drivers/dma/pl330.c off += _dregs(pl330, dry_run, &buf[off], pxs, num_dregs); off 1375 drivers/dma/pl330.c return off; off 1383 drivers/dma/pl330.c int off = 0; off 1386 drivers/dma/pl330.c off += _emit_MOV(dry_run, &buf[off], SAR, x->src_addr); off 1388 drivers/dma/pl330.c off += _emit_MOV(dry_run, &buf[off], DAR, x->dst_addr); off 1391 drivers/dma/pl330.c off += _setup_loops(pl330, dry_run, &buf[off], pxs); off 1393 drivers/dma/pl330.c return off; off 1406 drivers/dma/pl330.c int off = 0; off 1411 drivers/dma/pl330.c off += _emit_MOV(dry_run, &buf[off], CCR, pxs->ccr); off 1413 drivers/dma/pl330.c off += _setup_xfer(pl330, dry_run, &buf[off], pxs); off 1416 drivers/dma/pl330.c off += _emit_SEV(dry_run, &buf[off], thrd->ev); off 1418 drivers/dma/pl330.c off += _emit_END(dry_run, &buf[off]); off 1420 drivers/dma/pl330.c return off; off 2252 drivers/dma/ti/edma.c int i, off; off 2356 drivers/dma/ti/edma.c off = xbar_chans[i][1]; off 1229 drivers/edac/amd64_edac.c int off = range << 3; off 1232 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_BASE_LO + off, &pvt->ranges[range].base.lo); off 1233 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_LO + off, &pvt->ranges[range].lim.lo); off 1241 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_BASE_HI + off, &pvt->ranges[range].base.hi); off 1242 drivers/edac/amd64_edac.c amd64_read_pci_cfg(pvt->F1, DRAM_LIMIT_HI + off, &pvt->ranges[range].lim.hi); off 320 drivers/edac/edac_mc.c int i, j, row, chn, n, len, off; off 430 drivers/edac/edac_mc.c off = EDAC_DIMM_OFF(layer, n_layers, pos[0], pos[1], pos[2]); off 431 drivers/edac/edac_mc.c if (off < 0 || off >= tot_dimms) { off 439 drivers/edac/edac_mc.c mci->dimms[off] = dimm; off 556 drivers/edac/edac_mc_sysfs.c int off; off 558 drivers/edac/edac_mc_sysfs.c off = EDAC_DIMM_OFF(dimm->mci->layers, off 563 drivers/edac/edac_mc_sysfs.c count = dimm->mci->ce_per_layer[dimm->mci->n_layers-1][off]; off 573 drivers/edac/edac_mc_sysfs.c int off; off 575 drivers/edac/edac_mc_sysfs.c off = EDAC_DIMM_OFF(dimm->mci->layers, off 580 drivers/edac/edac_mc_sysfs.c count = dimm->mci->ue_per_layer[dimm->mci->n_layers-1][off]; off 68 drivers/edac/i10nm_base.c u32 reg, off; off 106 drivers/edac/i10nm_base.c off = I10NM_GET_IMC_MMIO_OFFSET(reg); off 109 drivers/edac/i10nm_base.c i, base + off, size, reg); off 111 drivers/edac/i10nm_base.c mbase = ioremap(base + off, size); off 114 drivers/edac/i10nm_base.c base + off); off 240 drivers/edac/i10nm_base.c int rc, i, off[3] = {0xd0, 0xc8, 0xcc}; off 253 drivers/edac/i10nm_base.c rc = skx_get_hi_lo(0x09a2, off, &tolm, &tohm); off 87 drivers/edac/pnd2_edac.c int (*rd_reg)(int port, int off, int op, void *data, size_t sz, char *name); off 142 drivers/edac/pnd2_edac.c #define P2SB_READ(size, off, ptr) \ off 143 drivers/edac/pnd2_edac.c pci_bus_read_config_##size(p2sb_bus, P2SB_DEVFN, off, ptr) off 144 drivers/edac/pnd2_edac.c #define P2SB_WRITE(size, off, val) \ off 145 drivers/edac/pnd2_edac.c pci_bus_write_config_##size(p2sb_bus, P2SB_DEVFN, off, val) off 154 drivers/edac/pnd2_edac.c static int _apl_rd_reg(int port, int off, int op, u32 *data) off 170 drivers/edac/pnd2_edac.c P2SB_WRITE(dword, P2SB_ADDR_OFF, (port << 24) | off); off 193 drivers/edac/pnd2_edac.c static int apl_rd_reg(int port, int off, int op, void *data, size_t sz, char *name) off 197 drivers/edac/pnd2_edac.c edac_dbg(2, "Read %s port=%x off=%x op=%x\n", name, port, off, op); off 200 drivers/edac/pnd2_edac.c ret = _apl_rd_reg(port, off + 4, op, (u32 *)(data + 4)); off 203 drivers/edac/pnd2_edac.c ret |= _apl_rd_reg(port, off, op, (u32 *)data); off 265 drivers/edac/pnd2_edac.c static int dnv_rd_reg(int port, int off, int op, void *data, size_t sz, char *name) off 277 drivers/edac/pnd2_edac.c pci_read_config_dword(pdev, off, data); off 300 drivers/edac/pnd2_edac.c *(u32 *)(data + 4) = *(u32 *)(base + off + 4); off 301 drivers/edac/pnd2_edac.c *(u32 *)data = *(u32 *)(base + off); off 598 drivers/edac/skx_base.c int rc = 0, i, off[3] = {0xd0, 0xd4, 0xd8}; off 612 drivers/edac/skx_base.c rc = skx_get_hi_lo(0x2034, off, &skx_tolm, &skx_tohm); off 139 drivers/edac/skx_common.c int skx_get_src_id(struct skx_dev *d, int off, u8 *id) off 143 drivers/edac/skx_common.c if (pci_read_config_dword(d->util_all, off, ®)) { off 183 drivers/edac/skx_common.c int skx_get_all_bus_mappings(unsigned int did, int off, enum type type, off 203 drivers/edac/skx_common.c if (pci_read_config_dword(pdev, off, ®)) { off 231 drivers/edac/skx_common.c int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm) off 242 drivers/edac/skx_common.c if (pci_read_config_dword(pdev, off[0], ®)) { off 248 drivers/edac/skx_common.c if (pci_read_config_dword(pdev, off[1], ®)) { off 254 drivers/edac/skx_common.c if (pci_read_config_dword(pdev, off[2], ®)) { off 121 drivers/edac/skx_common.h int skx_get_src_id(struct skx_dev *d, int off, u8 *id); off 124 drivers/edac/skx_common.h int skx_get_all_bus_mappings(unsigned int did, int off, enum type, off 127 drivers/edac/skx_common.h int skx_get_hi_lo(unsigned int did, int off[], u64 *tolm, u64 *tohm); off 55 drivers/firmware/broadcom/bcm47xx_nvram.c u32 off; off 64 drivers/firmware/broadcom/bcm47xx_nvram.c off = FLASH_MIN; off 65 drivers/firmware/broadcom/bcm47xx_nvram.c while (off <= lim) { off 67 drivers/firmware/broadcom/bcm47xx_nvram.c size = find_nvram_size(iobase + off); off 69 drivers/firmware/broadcom/bcm47xx_nvram.c header = (struct nvram_header *)(iobase + off - size); off 72 drivers/firmware/broadcom/bcm47xx_nvram.c off <<= 1; off 149 drivers/firmware/xilinx/zynqmp-debug.c loff_t *off) off 163 drivers/firmware/xilinx/zynqmp-debug.c if (*off != 0 || len <= 1 || len > PAGE_SIZE - 1) off 206 drivers/firmware/xilinx/zynqmp-debug.c size_t len, loff_t *off) off 208 drivers/firmware/xilinx/zynqmp-debug.c return simple_read_from_buffer(ptr, len, off, debugfs_buf, off 574 drivers/fsi/fsi-core.c loff_t off, size_t count) off 580 drivers/fsi/fsi-core.c if (off < 0) off 583 drivers/fsi/fsi-core.c if (off > 0xffffffff || count > 0xffffffff || off + count > 0xffffffff) off 587 drivers/fsi/fsi-core.c read_len = aligned_access_size(off, count - total_len); off 589 drivers/fsi/fsi-core.c rc = fsi_slave_read(slave, off, buf + total_len, read_len); off 593 drivers/fsi/fsi-core.c off += read_len; off 601 drivers/fsi/fsi-core.c char *buf, loff_t off, size_t count) off 607 drivers/fsi/fsi-core.c if (off < 0) off 610 drivers/fsi/fsi-core.c if (off > 0xffffffff || count > 0xffffffff || off + count > 0xffffffff) off 614 drivers/fsi/fsi-core.c write_len = aligned_access_size(off, count - total_len); off 616 drivers/fsi/fsi-core.c rc = fsi_slave_write(slave, off, buf + total_len, write_len); off 620 drivers/fsi/fsi-core.c off += write_len; off 693 drivers/fsi/fsi-core.c loff_t off = *offset; off 696 drivers/fsi/fsi-core.c if (off < 0) off 699 drivers/fsi/fsi-core.c if (off > 0xffffffff || count > 0xffffffff || off + count > 0xffffffff) off 706 drivers/fsi/fsi-core.c read_len -= off & 0x3; off 708 drivers/fsi/fsi-core.c rc = fsi_slave_read(slave, off, &data, read_len); off 716 drivers/fsi/fsi-core.c off += read_len; off 720 drivers/fsi/fsi-core.c *offset = off; off 729 drivers/fsi/fsi-core.c loff_t off = *offset; off 733 drivers/fsi/fsi-core.c if (off < 0) off 736 drivers/fsi/fsi-core.c if (off > 0xffffffff || count > 0xffffffff || off + count > 0xffffffff) off 743 drivers/fsi/fsi-core.c write_len -= off & 0x3; off 750 drivers/fsi/fsi-core.c rc = fsi_slave_write(slave, off, &data, write_len); off 753 drivers/fsi/fsi-core.c off += write_len; off 757 drivers/fsi/fsi-core.c *offset = off; off 23 drivers/gpio/gpio-adp5520.c static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) off 35 drivers/gpio/gpio-adp5520.c if (test_bit(off, &dev->output)) off 40 drivers/gpio/gpio-adp5520.c return !!(reg_val & dev->lut[off]); off 44 drivers/gpio/gpio-adp5520.c unsigned off, int val) off 50 drivers/gpio/gpio-adp5520.c adp5520_set_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); off 52 drivers/gpio/gpio-adp5520.c adp5520_clr_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); off 55 drivers/gpio/gpio-adp5520.c static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) off 60 drivers/gpio/gpio-adp5520.c clear_bit(off, &dev->output); off 63 drivers/gpio/gpio-adp5520.c dev->lut[off]); off 67 drivers/gpio/gpio-adp5520.c unsigned off, int val) off 73 drivers/gpio/gpio-adp5520.c set_bit(off, &dev->output); off 77 drivers/gpio/gpio-adp5520.c dev->lut[off]); off 80 drivers/gpio/gpio-adp5520.c dev->lut[off]); off 83 drivers/gpio/gpio-adp5520.c dev->lut[off]); off 65 drivers/gpio/gpio-adp5588.c static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) off 68 drivers/gpio/gpio-adp5588.c unsigned bank = ADP5588_BANK(off); off 69 drivers/gpio/gpio-adp5588.c unsigned bit = ADP5588_BIT(off); off 85 drivers/gpio/gpio-adp5588.c unsigned off, int val) off 90 drivers/gpio/gpio-adp5588.c bank = ADP5588_BANK(off); off 91 drivers/gpio/gpio-adp5588.c bit = ADP5588_BIT(off); off 104 drivers/gpio/gpio-adp5588.c static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) off 110 drivers/gpio/gpio-adp5588.c bank = ADP5588_BANK(off); off 113 drivers/gpio/gpio-adp5588.c dev->dir[bank] &= ~ADP5588_BIT(off); off 121 drivers/gpio/gpio-adp5588.c unsigned off, int val) off 127 drivers/gpio/gpio-adp5588.c bank = ADP5588_BANK(off); off 128 drivers/gpio/gpio-adp5588.c bit = ADP5588_BIT(off); off 36 drivers/gpio/gpio-brcmstb.c #define GIO_BANK_OFF(bank, off) (((bank) * GIO_BANK_SIZE) + (off * sizeof(u32))) off 19 drivers/gpio/gpio-creg-snps.c u8 off[MAX_GPIO]; off 38 drivers/gpio/gpio-creg-snps.c value = val ? hcg->layout->on[offset] : hcg->layout->off[offset]; off 72 drivers/gpio/gpio-creg-snps.c if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i]) off 75 drivers/gpio/gpio-creg-snps.c if (layout->on[i] == layout->off[i]) off 112 drivers/gpio/gpio-creg-snps.c .off = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 }, off 120 drivers/gpio/gpio-creg-snps.c .off = { 1 }, off 189 drivers/gpio/gpio-max732x.c static inline int is_group_a(struct max732x_chip *chip, unsigned off) off 191 drivers/gpio/gpio-max732x.c return (1u << off) & chip->mask_group_a; off 194 drivers/gpio/gpio-max732x.c static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) off 200 drivers/gpio/gpio-max732x.c ret = max732x_readb(chip, is_group_a(chip, off), ®_val); off 204 drivers/gpio/gpio-max732x.c return !!(reg_val & (1u << (off & 0x7))); off 207 drivers/gpio/gpio-max732x.c static void max732x_gpio_set_mask(struct gpio_chip *gc, unsigned off, int mask, off 216 drivers/gpio/gpio-max732x.c reg_out = (off > 7) ? chip->reg_out[1] : chip->reg_out[0]; off 219 drivers/gpio/gpio-max732x.c ret = max732x_writeb(chip, is_group_a(chip, off), reg_out); off 224 drivers/gpio/gpio-max732x.c if (off > 7) off 232 drivers/gpio/gpio-max732x.c static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) off 234 drivers/gpio/gpio-max732x.c unsigned base = off & ~0x7; off 235 drivers/gpio/gpio-max732x.c uint8_t mask = 1u << (off & 0x7); off 237 drivers/gpio/gpio-max732x.c max732x_gpio_set_mask(gc, base, mask, val << (off & 0x7)); off 252 drivers/gpio/gpio-max732x.c static int max732x_gpio_direction_input(struct gpio_chip *gc, unsigned off) off 255 drivers/gpio/gpio-max732x.c unsigned int mask = 1u << off; off 259 drivers/gpio/gpio-max732x.c chip->client->name, off); off 268 drivers/gpio/gpio-max732x.c max732x_gpio_set_value(gc, off, 1); off 274 drivers/gpio/gpio-max732x.c unsigned off, int val) off 277 drivers/gpio/gpio-max732x.c unsigned int mask = 1u << off; off 281 drivers/gpio/gpio-max732x.c chip->client->name, off); off 285 drivers/gpio/gpio-max732x.c max732x_gpio_set_value(gc, off, val); off 396 drivers/gpio/gpio-max732x.c uint16_t off = d->hwirq; off 397 drivers/gpio/gpio-max732x.c uint16_t mask = 1 << off; off 401 drivers/gpio/gpio-max732x.c chip->client->name, off); off 703 drivers/gpio/gpio-mvebu.c unsigned int on, off; off 720 drivers/gpio/gpio-mvebu.c off = val; off 722 drivers/gpio/gpio-mvebu.c off = 1; off 727 drivers/gpio/gpio-mvebu.c writel_relaxed(off, mvebu_pwmreg_blink_off_duration(mvpwm)); off 313 drivers/gpio/gpio-pca953x.c static u8 pca953x_recalc_addr(struct pca953x_chip *chip, int reg, int off, off 319 drivers/gpio/gpio-pca953x.c u8 regaddr = pinctrl | addr | (off / BANK_SZ); off 364 drivers/gpio/gpio-pca953x.c static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) off 367 drivers/gpio/gpio-pca953x.c u8 dirreg = pca953x_recalc_addr(chip, chip->regs->direction, off, off 369 drivers/gpio/gpio-pca953x.c u8 bit = BIT(off % BANK_SZ); off 379 drivers/gpio/gpio-pca953x.c unsigned off, int val) off 382 drivers/gpio/gpio-pca953x.c u8 dirreg = pca953x_recalc_addr(chip, chip->regs->direction, off, off 384 drivers/gpio/gpio-pca953x.c u8 outreg = pca953x_recalc_addr(chip, chip->regs->output, off, off 386 drivers/gpio/gpio-pca953x.c u8 bit = BIT(off % BANK_SZ); off 402 drivers/gpio/gpio-pca953x.c static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off) off 405 drivers/gpio/gpio-pca953x.c u8 inreg = pca953x_recalc_addr(chip, chip->regs->input, off, off 407 drivers/gpio/gpio-pca953x.c u8 bit = BIT(off % BANK_SZ); off 425 drivers/gpio/gpio-pca953x.c static void pca953x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) off 428 drivers/gpio/gpio-pca953x.c u8 outreg = pca953x_recalc_addr(chip, chip->regs->output, off, off 430 drivers/gpio/gpio-pca953x.c u8 bit = BIT(off % BANK_SZ); off 437 drivers/gpio/gpio-pca953x.c static int pca953x_gpio_get_direction(struct gpio_chip *gc, unsigned off) off 440 drivers/gpio/gpio-pca953x.c u8 dirreg = pca953x_recalc_addr(chip, chip->regs->direction, off, off 442 drivers/gpio/gpio-pca953x.c u8 bit = BIT(off % BANK_SZ); off 54 drivers/gpio/gpio-raspberrypi-exp.c static int rpi_exp_gpio_get_polarity(struct gpio_chip *gc, unsigned int off) off 62 drivers/gpio/gpio-raspberrypi-exp.c get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 68 drivers/gpio/gpio-raspberrypi-exp.c off, ret, get.gpio); off 74 drivers/gpio/gpio-raspberrypi-exp.c static int rpi_exp_gpio_dir_in(struct gpio_chip *gc, unsigned int off) off 82 drivers/gpio/gpio-raspberrypi-exp.c set_in.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 88 drivers/gpio/gpio-raspberrypi-exp.c ret = rpi_exp_gpio_get_polarity(gc, off); off 97 drivers/gpio/gpio-raspberrypi-exp.c off, ret, set_in.gpio); off 103 drivers/gpio/gpio-raspberrypi-exp.c static int rpi_exp_gpio_dir_out(struct gpio_chip *gc, unsigned int off, int val) off 111 drivers/gpio/gpio-raspberrypi-exp.c set_out.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 117 drivers/gpio/gpio-raspberrypi-exp.c ret = rpi_exp_gpio_get_polarity(gc, off); off 126 drivers/gpio/gpio-raspberrypi-exp.c off, ret, set_out.gpio); off 132 drivers/gpio/gpio-raspberrypi-exp.c static int rpi_exp_gpio_get_direction(struct gpio_chip *gc, unsigned int off) off 140 drivers/gpio/gpio-raspberrypi-exp.c get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 146 drivers/gpio/gpio-raspberrypi-exp.c "Failed to get GPIO %u config (%d %x)\n", off, ret, off 153 drivers/gpio/gpio-raspberrypi-exp.c static int rpi_exp_gpio_get(struct gpio_chip *gc, unsigned int off) off 161 drivers/gpio/gpio-raspberrypi-exp.c get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 168 drivers/gpio/gpio-raspberrypi-exp.c "Failed to get GPIO %u state (%d %x)\n", off, ret, off 175 drivers/gpio/gpio-raspberrypi-exp.c static void rpi_exp_gpio_set(struct gpio_chip *gc, unsigned int off, int val) off 183 drivers/gpio/gpio-raspberrypi-exp.c set.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ off 190 drivers/gpio/gpio-raspberrypi-exp.c "Failed to set GPIO %u state (%d %x)\n", off, ret, off 11 drivers/gpio/gpio-ucb1400.c static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) off 15 drivers/gpio/gpio-ucb1400.c ucb1400_gpio_set_direction(gpio->ac97, off, 0); off 19 drivers/gpio/gpio-ucb1400.c static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) off 23 drivers/gpio/gpio-ucb1400.c ucb1400_gpio_set_direction(gpio->ac97, off, 1); off 24 drivers/gpio/gpio-ucb1400.c ucb1400_gpio_set_value(gpio->ac97, off, val); off 28 drivers/gpio/gpio-ucb1400.c static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) off 33 drivers/gpio/gpio-ucb1400.c return !!ucb1400_gpio_get_value(gpio->ac97, off); off 36 drivers/gpio/gpio-ucb1400.c static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) off 40 drivers/gpio/gpio-ucb1400.c ucb1400_gpio_set_value(gpio->ac97, off, val); off 2265 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c unsigned off = *pos & ~PAGE_MASK; off 2266 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size_t cur_size = min_t(size_t, size, PAGE_SIZE - off); off 2276 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c ptr += off; off 2323 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c loff_t off = *pos & ~PAGE_MASK; off 2324 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size_t bytes = PAGE_SIZE - off; off 2346 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = copy_to_user(buf, ptr + off, bytes); off 2378 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c loff_t off = *pos & ~PAGE_MASK; off 2379 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c size_t bytes = PAGE_SIZE - off; off 2397 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c r = copy_from_user(ptr + off, buf, bytes); off 52 drivers/gpu/drm/armada/armada_debugfs.c const char __user *ptr, size_t len, loff_t *off) off 60 drivers/gpu/drm/armada/armada_debugfs.c if (*off != 0) off 191 drivers/gpu/drm/drm_sysfs.c struct bin_attribute *attr, char *buf, loff_t off, off 209 drivers/gpu/drm/drm_sysfs.c if (off >= size) off 212 drivers/gpu/drm/drm_sysfs.c if (off + count > size) off 213 drivers/gpu/drm/drm_sysfs.c count = size - off; off 214 drivers/gpu/drm/drm_sysfs.c memcpy(buf, edid + off, count); off 115 drivers/gpu/drm/etnaviv/etnaviv_buffer.c struct etnaviv_cmdbuf *buf, u32 off, u32 len) off 118 drivers/gpu/drm/etnaviv/etnaviv_buffer.c u32 *ptr = buf->vaddr + off; off 123 drivers/gpu/drm/etnaviv/etnaviv_buffer.c off, size - len * 4 - off); off 163 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c unsigned int len, n, off; off 173 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c off = EXTRACT(cmd, VIV_FE_LOAD_STATE_HEADER_OFFSET); off 175 drivers/gpu/drm/etnaviv/etnaviv_cmd_parser.c off, n)) off 459 drivers/gpu/drm/etnaviv/etnaviv_gem.c unsigned long off = drm_vma_node_start(&obj->vma_node); off 464 drivers/gpu/drm/etnaviv/etnaviv_gem.c off, etnaviv_obj->vaddr, obj->size); off 287 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c u32 off; off 301 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c off = r->submit_offset / 4; off 303 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c if ((off >= size ) || off 304 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c (off < last_offset)) { off 305 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c DRM_ERROR("invalid offset %u at reloc %u\n", off, i); off 318 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c ptr[off] = bo->mapping->iova + r->reloc_offset; off 320 drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c last_offset = off; off 68 drivers/gpu/drm/i915/gvt/cfg_space.c static void vgpu_pci_cfg_mem_write(struct intel_vgpu *vgpu, unsigned int off, off 75 drivers/gpu/drm/i915/gvt/cfg_space.c for (; i < bytes && (off + i < sizeof(pci_cfg_space_rw_bmp)); i++) { off 76 drivers/gpu/drm/i915/gvt/cfg_space.c mask = pci_cfg_space_rw_bmp[off + i]; off 77 drivers/gpu/drm/i915/gvt/cfg_space.c old = cfg_base[off + i]; off 85 drivers/gpu/drm/i915/gvt/cfg_space.c if (off + i == PCI_STATUS + 1) off 88 drivers/gpu/drm/i915/gvt/cfg_space.c cfg_base[off + i] = (old & ~mask) | new; off 93 drivers/gpu/drm/i915/gvt/cfg_space.c memcpy(cfg_base + off + i, src + i, bytes - i); off 2143 drivers/gpu/drm/i915/gvt/gtt.c unsigned int off, void *p_data, unsigned int bytes) off 2147 drivers/gpu/drm/i915/gvt/gtt.c unsigned long index = off >> info->gtt_entry_size_shift; off 2163 drivers/gpu/drm/i915/gvt/gtt.c memcpy(p_data, (void *)&e.val64 + (off & (info->gtt_entry_size - 1)), off 2180 drivers/gpu/drm/i915/gvt/gtt.c int intel_vgpu_emulate_ggtt_mmio_read(struct intel_vgpu *vgpu, unsigned int off, off 2189 drivers/gpu/drm/i915/gvt/gtt.c off -= info->gtt_start_offset; off 2190 drivers/gpu/drm/i915/gvt/gtt.c ret = emulate_ggtt_mmio_read(vgpu, off, p_data, bytes); off 2206 drivers/gpu/drm/i915/gvt/gtt.c static int emulate_ggtt_mmio_write(struct intel_vgpu *vgpu, unsigned int off, off 2213 drivers/gpu/drm/i915/gvt/gtt.c unsigned long g_gtt_index = off >> info->gtt_entry_size_shift; off 2232 drivers/gpu/drm/i915/gvt/gtt.c memcpy((void *)&e.val64 + (off & (info->gtt_entry_size - 1)), p_data, off 2246 drivers/gpu/drm/i915/gvt/gtt.c if (off != pos->offset) { off 2273 drivers/gpu/drm/i915/gvt/gtt.c partial_pte->offset = off; off 2334 drivers/gpu/drm/i915/gvt/gtt.c unsigned int off, void *p_data, unsigned int bytes) off 2342 drivers/gpu/drm/i915/gvt/gtt.c off -= info->gtt_start_offset; off 2343 drivers/gpu/drm/i915/gvt/gtt.c ret = emulate_ggtt_mmio_write(vgpu, off, p_data, bytes); off 276 drivers/gpu/drm/i915/gvt/gtt.h unsigned int off, void *p_data, unsigned int bytes); off 279 drivers/gpu/drm/i915/gvt/gtt.h unsigned int off, void *p_data, unsigned int bytes); off 240 drivers/gpu/drm/i915/gvt/handlers.c static int fence_mmio_read(struct intel_vgpu *vgpu, unsigned int off, off 245 drivers/gpu/drm/i915/gvt/handlers.c ret = sanitize_fence_mmio_access(vgpu, offset_to_fence_num(off), off 249 drivers/gpu/drm/i915/gvt/handlers.c read_vreg(vgpu, off, p_data, bytes); off 253 drivers/gpu/drm/i915/gvt/handlers.c static int fence_mmio_write(struct intel_vgpu *vgpu, unsigned int off, off 257 drivers/gpu/drm/i915/gvt/handlers.c unsigned int fence_num = offset_to_fence_num(off); off 263 drivers/gpu/drm/i915/gvt/handlers.c write_vreg(vgpu, off, p_data, bytes); off 56 drivers/gpu/drm/i915/gvt/kvmgt.c #define VFIO_PCI_OFFSET_TO_INDEX(off) (off >> VFIO_PCI_OFFSET_SHIFT) off 884 drivers/gpu/drm/i915/gvt/kvmgt.c static int intel_vgpu_bar_rw(struct intel_vgpu *vgpu, int bar, u64 off, off 892 drivers/gpu/drm/i915/gvt/kvmgt.c bar_start + off, buf, count); off 895 drivers/gpu/drm/i915/gvt/kvmgt.c bar_start + off, buf, count); off 899 drivers/gpu/drm/i915/gvt/kvmgt.c static inline bool intel_vgpu_in_aperture(struct intel_vgpu *vgpu, u64 off) off 901 drivers/gpu/drm/i915/gvt/kvmgt.c return off >= vgpu_aperture_offset(vgpu) && off 902 drivers/gpu/drm/i915/gvt/kvmgt.c off < vgpu_aperture_offset(vgpu) + vgpu_aperture_sz(vgpu); off 905 drivers/gpu/drm/i915/gvt/kvmgt.c static int intel_vgpu_aperture_rw(struct intel_vgpu *vgpu, u64 off, off 910 drivers/gpu/drm/i915/gvt/kvmgt.c if (!intel_vgpu_in_aperture(vgpu, off) || off 911 drivers/gpu/drm/i915/gvt/kvmgt.c !intel_vgpu_in_aperture(vgpu, off + count)) { off 912 drivers/gpu/drm/i915/gvt/kvmgt.c gvt_vgpu_err("Invalid aperture offset %llu\n", off); off 917 drivers/gpu/drm/i915/gvt/kvmgt.c ALIGN_DOWN(off, PAGE_SIZE), off 918 drivers/gpu/drm/i915/gvt/kvmgt.c count + offset_in_page(off)); off 923 drivers/gpu/drm/i915/gvt/kvmgt.c memcpy_toio(aperture_va + offset_in_page(off), buf, count); off 925 drivers/gpu/drm/i915/gvt/kvmgt.c memcpy_fromio(buf, aperture_va + offset_in_page(off), count); off 829 drivers/gpu/drm/i915/i915_gpu_error.c char *buf, loff_t off, size_t rem) off 844 drivers/gpu/drm/i915/i915_gpu_error.c if (!sg || off < sg->dma_address) off 860 drivers/gpu/drm/i915/i915_gpu_error.c if (pos + len <= off) { off 866 drivers/gpu/drm/i915/i915_gpu_error.c if (pos < off) { off 867 drivers/gpu/drm/i915/i915_gpu_error.c GEM_BUG_ON(off - pos > len); off 868 drivers/gpu/drm/i915/i915_gpu_error.c len -= off - pos; off 869 drivers/gpu/drm/i915/i915_gpu_error.c start += off - pos; off 870 drivers/gpu/drm/i915/i915_gpu_error.c pos = off; off 2172 drivers/gpu/drm/i915/i915_reg.h #define _MMIO_FIA(fia, off) _MMIO(_FIA(fia) + (off)) off 513 drivers/gpu/drm/i915/i915_sysfs.c loff_t off, size_t count) off 525 drivers/gpu/drm/i915/i915_sysfs.c ret = i915_gpu_state_copy_to_buffer(gpu, buf, off, count); off 531 drivers/gpu/drm/i915/i915_sysfs.c ret = min_t(size_t, count, len - off); off 532 drivers/gpu/drm/i915/i915_sysfs.c memcpy(buf, str + off, ret); off 540 drivers/gpu/drm/i915/i915_sysfs.c loff_t off, size_t count) off 306 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h #define DPU_REG_WRITE(c, off, val) dpu_reg_write(c, off, val, #off) off 307 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h #define DPU_REG_READ(c, off) dpu_reg_read(c, off) off 43 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c u32 off; off 1011 drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c rd->off, (u8 *)&data[i], (u16)sizeof(data[i])); off 806 drivers/gpu/drm/msm/msm_gem.c uint64_t off = drm_vma_node_start(&obj->vma_node); off 827 drivers/gpu/drm/msm/msm_gem.c off, msm_obj->vaddr); off 332 drivers/gpu/drm/msm/msm_gem_submit.c uint32_t off; off 349 drivers/gpu/drm/msm/msm_gem_submit.c off = submit_reloc.submit_offset / 4; off 351 drivers/gpu/drm/msm/msm_gem_submit.c if ((off >= (obj->base.size / 4)) || off 352 drivers/gpu/drm/msm/msm_gem_submit.c (off < last_offset)) { off 353 drivers/gpu/drm/msm/msm_gem_submit.c DRM_ERROR("invalid offset %u at reloc %u\n", off, i); off 372 drivers/gpu/drm/msm/msm_gem_submit.c ptr[off] = iova | submit_reloc.or; off 374 drivers/gpu/drm/msm/msm_gem_submit.c last_offset = off; off 70 drivers/gpu/drm/nouveau/include/nvkm/subdev/mmu.h u64 off; off 123 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c u16 off = bits / 8; off 125 drivers/gpu/drm/nouveau/nvkm/subdev/bios/M0209.c info->data[i] = nvbios_rd32(bios, data + off); off 97 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h u32 mask, off = 0; off 104 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h nvkm_hwsq_wr32(ram->hwsq, reg->addr+off, reg->data); off 106 drivers/gpu/drm/nouveau/nvkm/subdev/bus/hwsq.h off += reg->stride; off 61 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_peek(struct io_mapping *fb, u32 off) off 63 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); off 64 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h u32 val = ioread32(p + (off & ~PAGE_MASK)); off 70 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_poke(struct io_mapping *fb, u32 off, u32 val) off 72 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); off 73 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h iowrite32(val, p + (off & ~PAGE_MASK)); off 79 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_readback(struct io_mapping *fb, u32 off, u32 val) off 81 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_poke(fb, off, val); off 82 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h return val == fbmem_peek(fb, off); off 78 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c int off = nvkm_rd32(device, 0x10020c) - 0x100000; off 80 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, off, patt); off 88 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c if (fbmem_peek(fb, off) == patt) off 38 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c uint32_t amount, off; off 54 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c for (off = amount; off > 0x2000000; off -= 0x2000000) off 55 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c fbmem_poke(fb, off - 4, off); off 93 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h unsigned int mask, off = 0; off 100 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h nvkm_memx_wr32(ram->memx, reg->addr+off, reg->data); off 101 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h off += reg->stride; off 51 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c u8 seg = 0x00, off = 0x00, tmp; off 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x42, off); off 79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c off = msg->buf[0]; off 1466 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c map->off = map->offset; off 1468 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c for (; map->off; map->mem = map->mem->next) { off 1470 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c if (size > map->off) off 1472 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c map->off -= size; off 1477 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c for (; map->off; map->sgl = sg_next(map->sgl)) { off 1479 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c if (size > map->off) off 1481 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c map->off -= size; off 1486 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c map->off = map->offset & PAGE_MASK; off 291 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h u64 _ptes = ((SIZE) - MAP->off) >> MAP->page->shift; \ off 292 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h u64 _addr = ((BASE) + MAP->off); \ off 295 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h MAP->off += PTEN << MAP->page->shift; \ off 298 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h MAP->off = 0; \ off 173 drivers/gpu/drm/omapdrm/omap_gem.c loff_t off = omap_gem_mmap_offset(obj) + off 182 drivers/gpu/drm/omapdrm/omap_gem.c off, PAGE_SIZE, 1); off 183 drivers/gpu/drm/omapdrm/omap_gem.c off += PAGE_SIZE * m; off 187 drivers/gpu/drm/omapdrm/omap_gem.c off, size, 1); off 430 drivers/gpu/drm/omapdrm/omap_gem.c int off = pgoff % m; off 431 drivers/gpu/drm/omapdrm/omap_gem.c entry->obj_pgoff += off; off 433 drivers/gpu/drm/omapdrm/omap_gem.c slots = min(slots - (off << n_shift), n); off 434 drivers/gpu/drm/omapdrm/omap_gem.c base_pgoff += off << n_shift; off 435 drivers/gpu/drm/omapdrm/omap_gem.c vaddr += off << PAGE_SHIFT; off 1025 drivers/gpu/drm/omapdrm/omap_gem.c u64 off; off 1027 drivers/gpu/drm/omapdrm/omap_gem.c off = drm_vma_node_start(&obj->vma_node); off 1033 drivers/gpu/drm/omapdrm/omap_gem.c off, &omap_obj->dma_addr, omap_obj->dma_addr_cnt, off 1022 drivers/gpu/drm/radeon/radeon_ttm.c unsigned off = *pos & ~PAGE_MASK; off 1023 drivers/gpu/drm/radeon/radeon_ttm.c size_t cur_size = min_t(size_t, size, PAGE_SIZE - off); off 1033 drivers/gpu/drm/radeon/radeon_ttm.c ptr += off; off 40 drivers/gpu/drm/radeon/vce_v1_0.c int32_t off; off 20 drivers/gpu/drm/rockchip/rockchip_vop_reg.c #define _VOP_REG(off, _mask, _shift, _write_mask, _relaxed) \ off 22 drivers/gpu/drm/rockchip/rockchip_vop_reg.c .offset = off, \ off 29 drivers/gpu/drm/rockchip/rockchip_vop_reg.c #define VOP_REG(off, _mask, _shift) \ off 30 drivers/gpu/drm/rockchip/rockchip_vop_reg.c _VOP_REG(off, _mask, _shift, false, true) off 32 drivers/gpu/drm/rockchip/rockchip_vop_reg.c #define VOP_REG_SYNC(off, _mask, _shift) \ off 33 drivers/gpu/drm/rockchip/rockchip_vop_reg.c _VOP_REG(off, _mask, _shift, false, false) off 35 drivers/gpu/drm/rockchip/rockchip_vop_reg.c #define VOP_REG_MASK_SYNC(off, _mask, _shift) \ off 36 drivers/gpu/drm/rockchip/rockchip_vop_reg.c _VOP_REG(off, _mask, _shift, true, false) off 118 drivers/gpu/drm/sun4i/sun4i_hdmi.h #define SUN4I_HDMI_DDC_ADDR_OFFSET(off) (((off) & 0xff) << 8) off 175 drivers/gpu/drm/sun4i/sun4i_hdmi.h #define SUN6I_HDMI_DDC_ADDR_OFFSET(off) (((off) & 0xff) << 8) off 1874 drivers/hid/hid-core.c char *buf, loff_t off, size_t count) off 1879 drivers/hid/hid-core.c if (off >= hdev->rsize) off 1882 drivers/hid/hid-core.c if (off + count > hdev->rsize) off 1883 drivers/hid/hid-core.c count = hdev->rsize - off; off 1885 drivers/hid/hid-core.c memcpy(buf, hdev->rdesc + off, count); off 73 drivers/hid/hid-picolcd_debugfs.c size_t s, loff_t *off) off 82 drivers/hid/hid-picolcd_debugfs.c if (*off > 0x0ff) off 86 drivers/hid/hid-picolcd_debugfs.c raw_data[0] = *off & 0xff; off 87 drivers/hid/hid-picolcd_debugfs.c raw_data[1] = (*off >> 8) & 0xff; off 89 drivers/hid/hid-picolcd_debugfs.c if (*off + raw_data[2] > 0xff) off 90 drivers/hid/hid-picolcd_debugfs.c raw_data[2] = 0x100 - *off; off 104 drivers/hid/hid-picolcd_debugfs.c *off += ret; off 112 drivers/hid/hid-picolcd_debugfs.c size_t s, loff_t *off) off 121 drivers/hid/hid-picolcd_debugfs.c if (*off > 0x0ff) off 125 drivers/hid/hid-picolcd_debugfs.c raw_data[0] = *off & 0xff; off 126 drivers/hid/hid-picolcd_debugfs.c raw_data[1] = (*off >> 8) & 0xff; off 128 drivers/hid/hid-picolcd_debugfs.c if (*off + raw_data[2] > 0xff) off 129 drivers/hid/hid-picolcd_debugfs.c raw_data[2] = 0x100 - *off; off 142 drivers/hid/hid-picolcd_debugfs.c *off += raw_data[2]; off 169 drivers/hid/hid-picolcd_debugfs.c static int _picolcd_flash_setaddr(struct picolcd_data *data, u8 *buf, long off) off 171 drivers/hid/hid-picolcd_debugfs.c buf[0] = off & 0xff; off 172 drivers/hid/hid-picolcd_debugfs.c buf[1] = (off >> 8) & 0xff; off 174 drivers/hid/hid-picolcd_debugfs.c buf[2] = (off >> 16) & 0xff; off 180 drivers/hid/hid-picolcd_debugfs.c char __user *u, size_t s, loff_t *off) off 189 drivers/hid/hid-picolcd_debugfs.c len_off = _picolcd_flash_setaddr(data, raw_data, *off); off 202 drivers/hid/hid-picolcd_debugfs.c *off += raw_data[len_off]; off 216 drivers/hid/hid-picolcd_debugfs.c size_t s, loff_t *off) off 222 drivers/hid/hid-picolcd_debugfs.c if (*off > 0x05fff) off 224 drivers/hid/hid-picolcd_debugfs.c if (*off + s > 0x05fff) off 225 drivers/hid/hid-picolcd_debugfs.c s = 0x06000 - *off; off 228 drivers/hid/hid-picolcd_debugfs.c return _picolcd_flash_read(data, REPORT_BL_READ_MEMORY, u, s, off); off 230 drivers/hid/hid-picolcd_debugfs.c return _picolcd_flash_read(data, REPORT_READ_MEMORY, u, s, off); off 235 drivers/hid/hid-picolcd_debugfs.c loff_t *off) off 242 drivers/hid/hid-picolcd_debugfs.c if (*off & 0x3f) off 245 drivers/hid/hid-picolcd_debugfs.c len_off = _picolcd_flash_setaddr(data, raw_data, *off); off 262 drivers/hid/hid-picolcd_debugfs.c const char __user *u, size_t s, loff_t *off) off 271 drivers/hid/hid-picolcd_debugfs.c len_off = _picolcd_flash_setaddr(data, raw_data, *off); off 285 drivers/hid/hid-picolcd_debugfs.c *off += raw_data[len_off]; off 299 drivers/hid/hid-picolcd_debugfs.c size_t s, loff_t *off) off 307 drivers/hid/hid-picolcd_debugfs.c if (*off > 0x5fff) off 311 drivers/hid/hid-picolcd_debugfs.c if (*off & 0x3f) off 323 drivers/hid/hid-picolcd_debugfs.c err = _picolcd_flash_erase64(data, report_erase, off); off 326 drivers/hid/hid-picolcd_debugfs.c err = _picolcd_flash_write(data, report_write, u, 64, off); off 330 drivers/hid/hid-picolcd_debugfs.c *off += err; off 189 drivers/hid/hid-roccat-arvo.c loff_t off, size_t count, size_t real_size, uint command) off 196 drivers/hid/hid-roccat-arvo.c if (off != 0 || count != real_size) off 207 drivers/hid/hid-roccat-arvo.c struct kobject *kobj, void *buf, loff_t off, off 215 drivers/hid/hid-roccat-arvo.c if (off >= real_size) off 218 drivers/hid/hid-roccat-arvo.c if (off != 0 || count != real_size) off 230 drivers/hid/hid-roccat-arvo.c loff_t off, size_t count) off 232 drivers/hid/hid-roccat-arvo.c return arvo_sysfs_write(fp, kobj, buf, off, count, off 240 drivers/hid/hid-roccat-arvo.c loff_t off, size_t count) off 242 drivers/hid/hid-roccat-arvo.c return arvo_sysfs_read(fp, kobj, buf, off, count, off 131 drivers/hid/hid-roccat-common.c char *buf, loff_t off, size_t count, off 139 drivers/hid/hid-roccat-common.c if (off >= real_size) off 142 drivers/hid/hid-roccat-common.c if (off != 0 || count != real_size) off 154 drivers/hid/hid-roccat-common.c void const *buf, loff_t off, size_t count, off 162 drivers/hid/hid-roccat-common.c if (off != 0 || count != real_size) off 41 drivers/hid/hid-roccat-common.h char *buf, loff_t off, size_t count, off 44 drivers/hid/hid-roccat-common.h void const *buf, loff_t off, size_t count, off 50 drivers/hid/hid-roccat-common.h loff_t off, size_t count) \ off 52 drivers/hid/hid-roccat-common.h return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \ off 59 drivers/hid/hid-roccat-common.h loff_t off, size_t count) \ off 61 drivers/hid/hid-roccat-common.h return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \ off 118 drivers/hid/hid-roccat-isku.c char *buf, loff_t off, size_t count, off 126 drivers/hid/hid-roccat-isku.c if (off >= real_size) off 129 drivers/hid/hid-roccat-isku.c if (off != 0 || count > real_size) off 140 drivers/hid/hid-roccat-isku.c void const *buf, loff_t off, size_t count, off 148 drivers/hid/hid-roccat-isku.c if (off != 0 || count > real_size) off 162 drivers/hid/hid-roccat-isku.c loff_t off, size_t count) \ off 164 drivers/hid/hid-roccat-isku.c return isku_sysfs_write(fp, kobj, buf, off, count, \ off 171 drivers/hid/hid-roccat-isku.c loff_t off, size_t count) \ off 173 drivers/hid/hid-roccat-isku.c return isku_sysfs_read(fp, kobj, buf, off, count, \ off 268 drivers/hid/hid-roccat-kone.c loff_t off, size_t count) { off 272 drivers/hid/hid-roccat-kone.c if (off >= sizeof(struct kone_settings)) off 275 drivers/hid/hid-roccat-kone.c if (off + count > sizeof(struct kone_settings)) off 276 drivers/hid/hid-roccat-kone.c count = sizeof(struct kone_settings) - off; off 279 drivers/hid/hid-roccat-kone.c memcpy(buf, ((char const *)&kone->settings) + off, count); off 292 drivers/hid/hid-roccat-kone.c loff_t off, size_t count) { off 299 drivers/hid/hid-roccat-kone.c if (off != 0 || count != sizeof(struct kone_settings)) off 329 drivers/hid/hid-roccat-kone.c char *buf, loff_t off, size_t count) { off 333 drivers/hid/hid-roccat-kone.c if (off >= sizeof(struct kone_profile)) off 336 drivers/hid/hid-roccat-kone.c if (off + count > sizeof(struct kone_profile)) off 337 drivers/hid/hid-roccat-kone.c count = sizeof(struct kone_profile) - off; off 340 drivers/hid/hid-roccat-kone.c memcpy(buf, ((char const *)&kone->profiles[*(uint *)(attr->private)]) + off, count); off 349 drivers/hid/hid-roccat-kone.c char *buf, loff_t off, size_t count) { off 357 drivers/hid/hid-roccat-kone.c if (off != 0 || count != sizeof(struct kone_profile)) off 84 drivers/hid/hid-roccat-koneplus.c char *buf, loff_t off, size_t count, off 92 drivers/hid/hid-roccat-koneplus.c if (off >= real_size) off 95 drivers/hid/hid-roccat-koneplus.c if (off != 0 || count != real_size) off 109 drivers/hid/hid-roccat-koneplus.c void const *buf, loff_t off, size_t count, off 117 drivers/hid/hid-roccat-koneplus.c if (off != 0 || count != real_size) off 134 drivers/hid/hid-roccat-koneplus.c loff_t off, size_t count) \ off 136 drivers/hid/hid-roccat-koneplus.c return koneplus_sysfs_write(fp, kobj, buf, off, count, \ off 143 drivers/hid/hid-roccat-koneplus.c loff_t off, size_t count) \ off 145 drivers/hid/hid-roccat-koneplus.c return koneplus_sysfs_read(fp, kobj, buf, off, count, \ off 189 drivers/hid/hid-roccat-koneplus.c loff_t off, size_t count) off 200 drivers/hid/hid-roccat-koneplus.c return koneplus_sysfs_read(fp, kobj, buf, off, count, off 207 drivers/hid/hid-roccat-koneplus.c loff_t off, size_t count) off 218 drivers/hid/hid-roccat-koneplus.c return koneplus_sysfs_read(fp, kobj, buf, off, count, off 127 drivers/hid/hid-roccat-kovaplus.c char *buf, loff_t off, size_t count, off 135 drivers/hid/hid-roccat-kovaplus.c if (off >= real_size) off 138 drivers/hid/hid-roccat-kovaplus.c if (off != 0 || count != real_size) off 152 drivers/hid/hid-roccat-kovaplus.c void const *buf, loff_t off, size_t count, off 160 drivers/hid/hid-roccat-kovaplus.c if (off != 0 || count != real_size) off 177 drivers/hid/hid-roccat-kovaplus.c loff_t off, size_t count) \ off 179 drivers/hid/hid-roccat-kovaplus.c return kovaplus_sysfs_write(fp, kobj, buf, off, count, \ off 186 drivers/hid/hid-roccat-kovaplus.c loff_t off, size_t count) \ off 188 drivers/hid/hid-roccat-kovaplus.c return kovaplus_sysfs_read(fp, kobj, buf, off, count, \ off 219 drivers/hid/hid-roccat-kovaplus.c loff_t off, size_t count) off 230 drivers/hid/hid-roccat-kovaplus.c return kovaplus_sysfs_read(fp, kobj, buf, off, count, off 237 drivers/hid/hid-roccat-kovaplus.c loff_t off, size_t count) off 248 drivers/hid/hid-roccat-kovaplus.c return kovaplus_sysfs_read(fp, kobj, buf, off, count, off 27 drivers/hid/hid-roccat-lua.c char *buf, loff_t off, size_t count, off 35 drivers/hid/hid-roccat-lua.c if (off >= real_size) off 38 drivers/hid/hid-roccat-lua.c if (off != 0 || count != real_size) off 49 drivers/hid/hid-roccat-lua.c void const *buf, loff_t off, size_t count, off 57 drivers/hid/hid-roccat-lua.c if (off != 0 || count != real_size) off 70 drivers/hid/hid-roccat-lua.c char *buf, loff_t off, size_t count) \ off 72 drivers/hid/hid-roccat-lua.c return lua_sysfs_write(fp, kobj, buf, off, count, \ off 79 drivers/hid/hid-roccat-lua.c char *buf, loff_t off, size_t count) \ off 81 drivers/hid/hid-roccat-lua.c return lua_sysfs_read(fp, kobj, buf, off, count, \ off 87 drivers/hid/hid-roccat-pyra.c char *buf, loff_t off, size_t count, off 95 drivers/hid/hid-roccat-pyra.c if (off >= real_size) off 98 drivers/hid/hid-roccat-pyra.c if (off != 0 || count != real_size) off 112 drivers/hid/hid-roccat-pyra.c void const *buf, loff_t off, size_t count, off 120 drivers/hid/hid-roccat-pyra.c if (off != 0 || count != real_size) off 136 drivers/hid/hid-roccat-pyra.c loff_t off, size_t count) \ off 138 drivers/hid/hid-roccat-pyra.c return pyra_sysfs_write(fp, kobj, buf, off, count, \ off 145 drivers/hid/hid-roccat-pyra.c loff_t off, size_t count) \ off 147 drivers/hid/hid-roccat-pyra.c return pyra_sysfs_read(fp, kobj, buf, off, count, \ off 187 drivers/hid/hid-roccat-pyra.c loff_t off, size_t count) off 198 drivers/hid/hid-roccat-pyra.c return pyra_sysfs_read(fp, kobj, buf, off, count, off 205 drivers/hid/hid-roccat-pyra.c loff_t off, size_t count) off 216 drivers/hid/hid-roccat-pyra.c return pyra_sysfs_read(fp, kobj, buf, off, count, off 242 drivers/hid/hid-roccat-pyra.c loff_t off, size_t count) off 251 drivers/hid/hid-roccat-pyra.c if (off != 0 || count != PYRA_SIZE_SETTINGS) off 24 drivers/hid/hid-wiimote-debug.c loff_t *off) off 35 drivers/hid/hid-wiimote-debug.c if (*off > 0xffffff) off 47 drivers/hid/hid-wiimote-debug.c wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff); off 48 drivers/hid/hid-wiimote-debug.c wiiproto_req_reeprom(wdata, *off, s); off 69 drivers/hid/hid-wiimote-debug.c *off += size; off 125 drivers/hid/hid-wiimote-debug.c size_t s, loff_t *off) off 740 drivers/hid/intel-ish-hid/ishtp/client.c int off; off 777 drivers/hid/intel-ish-hid/ishtp/client.c off = msg_addr - (unsigned char *)dev->ishtp_host_dma_tx_buf; off 783 drivers/hid/intel-ish-hid/ishtp/client.c dma_xfer.msg_addr = dev->ishtp_host_dma_tx_buf_phys + off; off 458 drivers/hwmon/lm93.c static u8 LM93_TEMP_OFFSET_TO_REG(int off, int mode) off 462 drivers/hwmon/lm93.c off = clamp_val(off, LM93_TEMP_OFFSET_MIN, off 464 drivers/hwmon/lm93.c return (u8)((off + factor/2) / factor); off 484 drivers/hwmon/lm93.c static u8 LM93_TEMP_AUTO_OFFSET_TO_REG(u8 old, int off, int nr, int mode) off 486 drivers/hwmon/lm93.c u8 new = LM93_TEMP_OFFSET_TO_REG(off, mode); off 968 drivers/hwmon/nct6775.c return off; off 974 drivers/hwmon/nct6775.c if (mode == off) off 2651 drivers/hwmon/nct6775.c case off: off 2720 drivers/hwmon/nct6775.c if (val == off) { off 257 drivers/hwtracing/coresight/coresight-etm.h u32 val, u32 off) off 260 drivers/hwtracing/coresight/coresight-etm.h if (etm_writel_cp14(off, val)) { off 262 drivers/hwtracing/coresight/coresight-etm.h "invalid CP14 access to ETM reg: %#x", off); off 265 drivers/hwtracing/coresight/coresight-etm.h writel_relaxed(val, drvdata->base + off); off 269 drivers/hwtracing/coresight/coresight-etm.h static inline unsigned int etm_readl(struct etm_drvdata *drvdata, u32 off) off 274 drivers/hwtracing/coresight/coresight-etm.h if (etm_readl_cp14(off, &val)) { off 276 drivers/hwtracing/coresight/coresight-etm.h "invalid CP14 access to ETM reg: %#x", off); off 279 drivers/hwtracing/coresight/coresight-etm.h val = readl_relaxed(drvdata->base + off); off 157 drivers/hwtracing/coresight/coresight-priv.h extern int etm_readl_cp14(u32 off, unsigned int *val); off 158 drivers/hwtracing/coresight/coresight-priv.h extern int etm_writel_cp14(u32 off, u32 val); off 160 drivers/hwtracing/coresight/coresight-priv.h static inline int etm_readl_cp14(u32 off, unsigned int *val) { return 0; } off 161 drivers/hwtracing/coresight/coresight-priv.h static inline int etm_writel_cp14(u32 off, u32 val) { return 0; } off 957 drivers/hwtracing/intel_th/msu.c unsigned long off; off 963 drivers/hwtracing/intel_th/msu.c for (off = 0; off < msc->nr_pages << PAGE_SHIFT; off += PAGE_SIZE) { off 964 drivers/hwtracing/intel_th/msu.c struct page *page = virt_to_page(msc->base + off); off 1459 drivers/hwtracing/intel_th/msu.c msc_single_to_user(struct msc *msc, char __user *buf, loff_t off, size_t len) off 1462 drivers/hwtracing/intel_th/msu.c unsigned long start = off, tocopy = 0; off 1500 drivers/hwtracing/intel_th/msu.c loff_t off = *ppos; off 1514 drivers/hwtracing/intel_th/msu.c if (off >= size) off 1517 drivers/hwtracing/intel_th/msu.c if (off + len >= size) off 1518 drivers/hwtracing/intel_th/msu.c len = size - off; off 1521 drivers/hwtracing/intel_th/msu.c ret = msc_single_to_user(msc, buf, off, len); off 94 drivers/i2c/i2c-slave-eeprom.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) off 102 drivers/i2c/i2c-slave-eeprom.c memcpy(buf, &eeprom->buffer[off], count); off 109 drivers/i2c/i2c-slave-eeprom.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) off 117 drivers/i2c/i2c-slave-eeprom.c memcpy(&eeprom->buffer[off], buf, count); off 579 drivers/iio/common/ms_sensors/ms_sensors_i2c.c s64 off, sens, t2, off2, sens2; off 632 drivers/iio/common/ms_sensors/ms_sensors_i2c.c off = (((s64)prom[2]) << 17) + ((((s64)prom[4]) * (s64)dt) >> 6); off 633 drivers/iio/common/ms_sensors/ms_sensors_i2c.c off -= off2; off 641 drivers/iio/common/ms_sensors/ms_sensors_i2c.c *pressure = (u32)(((((s64)p_adc * sens) >> 21) - off) >> 15); off 99 drivers/iio/pressure/hp03.c int ab_val, d1_val, d2_val, diff_val, dut, off, sens, x; off 146 drivers/iio/pressure/hp03.c off = (cx_val[1] + (((cx_val[3] - 1024) * dut) >> 14)) * 4; off 148 drivers/iio/pressure/hp03.c x = ((sens * (d1_val - 7168)) >> 14) - off; off 126 drivers/iio/pressure/ms5611_core.c s64 off, sens, dt; off 129 drivers/iio/pressure/ms5611_core.c off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); off 148 drivers/iio/pressure/ms5611_core.c off -= off2; off 153 drivers/iio/pressure/ms5611_core.c *pressure = (((p * sens) >> 21) - off) >> 15; off 162 drivers/iio/pressure/ms5611_core.c s64 off, sens, dt; off 165 drivers/iio/pressure/ms5611_core.c off = ((s64)chip_info->prom[2] << 17) + ((chip_info->prom[4] * dt) >> 6); off 184 drivers/iio/pressure/ms5611_core.c off -= off2; off 189 drivers/iio/pressure/ms5611_core.c *pressure = (((p * sens) >> 21) - off) >> 15; off 594 drivers/infiniband/core/umem_odp.c u64 page_mask, off; off 612 drivers/infiniband/core/umem_odp.c off = user_virt & (~page_mask); off 614 drivers/infiniband/core/umem_odp.c bcnt += off; /* Charge for the first page offset as well. */ off 158 drivers/infiniband/hw/hfi1/chip.c #define LRH_BTH_OFFSET(off) ((LRH_BTH_QW << QW_SHIFT) | (off)) off 167 drivers/infiniband/hw/hfi1/chip.c #define LRH_SC_OFFSET(off) ((LRH_SC_QW << QW_SHIFT) | (off)) off 182 drivers/infiniband/hw/hfi1/chip.c #define L2_TYPE_OFFSET(off) ((L2_TYPE_QW << QW_SHIFT) | (off)) off 190 drivers/infiniband/hw/hfi1/chip.c #define L4_TYPE_OFFSET(off) ((L4_TYPE_QW << QW_SHIFT) | (off)) off 8559 drivers/infiniband/hw/hfi1/chip.c u32 off; off 8576 drivers/infiniband/hw/hfi1/chip.c ret = read_lcb_csr(dd, lcb_cache[i].off, &val); off 8584 drivers/infiniband/hw/hfi1/chip.c static int read_lcb_cache(u32 off, u64 *val) off 8589 drivers/infiniband/hw/hfi1/chip.c if (lcb_cache[i].off == off) { off 8595 drivers/infiniband/hw/hfi1/chip.c pr_warn("%s bad offset 0x%x\n", __func__, off); off 748 drivers/infiniband/hw/hfi1/mad.c u32 off; off 756 drivers/infiniband/hw/hfi1/mad.c static int write_lcb_cache(u32 off, u64 val) off 761 drivers/infiniband/hw/hfi1/mad.c if (lcb_cache[i].off == off) { off 767 drivers/infiniband/hw/hfi1/mad.c pr_warn("%s bad offset 0x%x\n", __func__, off); off 771 drivers/infiniband/hw/hfi1/mad.c static int read_lcb_cache(u32 off, u64 *val) off 776 drivers/infiniband/hw/hfi1/mad.c if (lcb_cache[i].off == off) { off 782 drivers/infiniband/hw/hfi1/mad.c pr_warn("%s bad offset 0x%x\n", __func__, off); off 308 drivers/infiniband/hw/hfi1/sdma.c u64 off = 8 * sde->this_idx; off 316 drivers/infiniband/hw/hfi1/sdma.c reg = read_csr(dd, off + SEND_EGRESS_SEND_DMA_STATUS); off 3864 drivers/infiniband/hw/hns/hns_roce_hw_v1.c unsigned long off = (entry & (eq->entries - 1)) * off 3868 drivers/infiniband/hw/hns/hns_roce_hw_v1.c (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + off 3869 drivers/infiniband/hw/hns/hns_roce_hw_v1.c off % HNS_ROCE_BA_SIZE); off 3972 drivers/infiniband/hw/hns/hns_roce_hw_v1.c unsigned long off = (entry & (eq->entries - 1)) * off 3976 drivers/infiniband/hw/hns/hns_roce_hw_v1.c (eq->buf_list[off / HNS_ROCE_BA_SIZE].buf) + off 3977 drivers/infiniband/hw/hns/hns_roce_hw_v1.c off % HNS_ROCE_BA_SIZE); off 4984 drivers/infiniband/hw/hns/hns_roce_hw_v2.c unsigned long off; off 4987 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off = (entry & (eq->entries - 1)) * HNS_ROCE_AEQ_ENTRY_SIZE; off 4990 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off % buf_chk_sz); off 4996 drivers/infiniband/hw/hns/hns_roce_hw_v2.c unsigned long off; off 5000 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off = (entry & (eq->entries - 1)) * HNS_ROCE_AEQ_ENTRY_SIZE; off 5004 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off % buf_chk_sz); off 5007 drivers/infiniband/hw/hns/hns_roce_hw_v2.c (eq->buf[off / buf_chk_sz]) + off % buf_chk_sz); off 5114 drivers/infiniband/hw/hns/hns_roce_hw_v2.c unsigned long off; off 5117 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off = (entry & (eq->entries - 1)) * HNS_ROCE_CEQ_ENTRY_SIZE; off 5120 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off % buf_chk_sz); off 5126 drivers/infiniband/hw/hns/hns_roce_hw_v2.c unsigned long off; off 5130 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off = (entry & (eq->entries - 1)) * HNS_ROCE_CEQ_ENTRY_SIZE; off 5134 drivers/infiniband/hw/hns/hns_roce_hw_v2.c off % buf_chk_sz); off 5136 drivers/infiniband/hw/hns/hns_roce_hw_v2.c return (struct hns_roce_ceqe *)((u8 *)(eq->buf[off / off 5137 drivers/infiniband/hw/hns/hns_roce_hw_v2.c buf_chk_sz]) + off % buf_chk_sz); off 230 drivers/infiniband/hw/mthca/mthca_eq.c unsigned long off = (entry & (eq->nent - 1)) * MTHCA_EQ_ENTRY_SIZE; off 231 drivers/infiniband/hw/mthca/mthca_eq.c return eq->page_list[off / PAGE_SIZE].buf + off % PAGE_SIZE; off 134 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off); off 136 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off); off 152 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off); off 549 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off) off 760 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off) off 773 drivers/infiniband/hw/qib/qib_diag.c else if ((count % 4) || (*off % 4)) off 776 drivers/infiniband/hw/qib/qib_diag.c else if (dc->state < READY && (*off || count != 8)) off 784 drivers/infiniband/hw/qib/qib_diag.c use_32 = (count % 8) || (*off % 8); off 792 drivers/infiniband/hw/qib/qib_diag.c op = diag_get_observer(dd, *off); off 794 drivers/infiniband/hw/qib/qib_diag.c u32 offset = *off; off 809 drivers/infiniband/hw/qib/qib_diag.c ret = qib_read_umem32(dd, data, (u32) *off, off 812 drivers/infiniband/hw/qib/qib_diag.c ret = qib_read_umem64(dd, data, (u32) *off, off 824 drivers/infiniband/hw/qib/qib_diag.c *off += count; off 834 drivers/infiniband/hw/qib/qib_diag.c size_t count, loff_t *off) off 847 drivers/infiniband/hw/qib/qib_diag.c else if ((count % 4) || (*off % 4)) off 851 drivers/infiniband/hw/qib/qib_diag.c ((*off || count != 8) || dc->state != INIT)) off 857 drivers/infiniband/hw/qib/qib_diag.c int use_32 = (count % 8) || (*off % 8); off 869 drivers/infiniband/hw/qib/qib_diag.c u32 offset = *off; off 877 drivers/infiniband/hw/qib/qib_diag.c op = diag_get_observer(dd, *off); off 890 drivers/infiniband/hw/qib/qib_diag.c ret = qib_write_umem32(dd, (u32) *off, data, off 893 drivers/infiniband/hw/qib/qib_diag.c ret = qib_write_umem64(dd, (u32) *off, data, off 899 drivers/infiniband/hw/qib/qib_diag.c *off += count; off 2034 drivers/infiniband/hw/qib/qib_file_ops.c size_t count, loff_t *off) off 45 drivers/infiniband/hw/qib/qib_qp.c struct rvt_qpn_map *map, unsigned off) off 47 drivers/infiniband/hw/qib/qib_qp.c return (map - qpt->map) * RVT_BITS_PER_PAGE + off; off 51 drivers/infiniband/hw/qib/qib_qp.c struct rvt_qpn_map *map, unsigned off, off 55 drivers/infiniband/hw/qib/qib_qp.c off++; off 56 drivers/infiniband/hw/qib/qib_qp.c if (((off & qpt_mask) >> 1) >= n) off 57 drivers/infiniband/hw/qib/qib_qp.c off = (off | qpt_mask) + 2; off 59 drivers/infiniband/hw/qib/qib_qp.c off = find_next_zero_bit(map->page, RVT_BITS_PER_PAGE, off); off 61 drivers/infiniband/hw/qib/qib_qp.c return off; off 404 drivers/infiniband/hw/qib/qib_verbs.c static inline u32 clear_upper_bytes(u32 data, u32 n, u32 off) off 407 drivers/infiniband/hw/qib/qib_verbs.c data >>= ((sizeof(u32) - n - off) * BITS_PER_BYTE); off 421 drivers/infiniband/hw/qib/qib_verbs.c static inline u32 clear_upper_bytes(u32 data, u32 n, u32 off) off 424 drivers/infiniband/hw/qib/qib_verbs.c data <<= ((sizeof(u32) - n - off) * BITS_PER_BYTE); off 438 drivers/infiniband/hw/qib/qib_verbs.c u32 off; off 441 drivers/infiniband/hw/qib/qib_verbs.c off = (unsigned long)ss->sge.vaddr & (sizeof(u32) - 1); off 442 drivers/infiniband/hw/qib/qib_verbs.c if (off) { off 445 drivers/infiniband/hw/qib/qib_verbs.c u32 v = get_upper_bits(*addr, off * BITS_PER_BYTE); off 448 drivers/infiniband/hw/qib/qib_verbs.c y = sizeof(u32) - off; off 97 drivers/infiniband/hw/usnic/usnic_uiom.c int off; off 154 drivers/infiniband/hw/usnic/usnic_uiom.c off = 0; off 168 drivers/infiniband/hw/usnic/usnic_uiom.c sg_set_page(sg, page_list[i + off], off 176 drivers/infiniband/hw/usnic/usnic_uiom.c off += chunk->nents; off 920 drivers/infiniband/sw/rdmavt/mr.c size_t off; off 962 drivers/infiniband/sw/rdmavt/mr.c off = sge->addr - mr->user_base; off 964 drivers/infiniband/sw/rdmavt/mr.c off + sge->length > mr->length || off 969 drivers/infiniband/sw/rdmavt/mr.c off += mr->offset; off 978 drivers/infiniband/sw/rdmavt/mr.c entries_spanned_by_off = off >> mr->page_shift; off 979 drivers/infiniband/sw/rdmavt/mr.c off -= (entries_spanned_by_off << mr->page_shift); off 985 drivers/infiniband/sw/rdmavt/mr.c while (off >= mr->map[m]->segs[n].length) { off 986 drivers/infiniband/sw/rdmavt/mr.c off -= mr->map[m]->segs[n].length; off 995 drivers/infiniband/sw/rdmavt/mr.c isge->vaddr = mr->map[m]->segs[n].vaddr + off; off 996 drivers/infiniband/sw/rdmavt/mr.c isge->length = mr->map[m]->segs[n].length - off; off 1031 drivers/infiniband/sw/rdmavt/mr.c size_t off; off 1070 drivers/infiniband/sw/rdmavt/mr.c off = vaddr - mr->iova; off 1071 drivers/infiniband/sw/rdmavt/mr.c if (unlikely(vaddr < mr->iova || off + len > mr->length || off 1076 drivers/infiniband/sw/rdmavt/mr.c off += mr->offset; off 1085 drivers/infiniband/sw/rdmavt/mr.c entries_spanned_by_off = off >> mr->page_shift; off 1086 drivers/infiniband/sw/rdmavt/mr.c off -= (entries_spanned_by_off << mr->page_shift); off 1092 drivers/infiniband/sw/rdmavt/mr.c while (off >= mr->map[m]->segs[n].length) { off 1093 drivers/infiniband/sw/rdmavt/mr.c off -= mr->map[m]->segs[n].length; off 1102 drivers/infiniband/sw/rdmavt/mr.c sge->vaddr = mr->map[m]->segs[n].vaddr + off; off 1103 drivers/infiniband/sw/rdmavt/mr.c sge->length = mr->map[m]->segs[n].length - off; off 517 drivers/infiniband/sw/rdmavt/qp.c struct rvt_qpn_map *map, unsigned off) off 519 drivers/infiniband/sw/rdmavt/qp.c return (map - qpt->map) * RVT_BITS_PER_PAGE + off; off 563 drivers/infiniband/sw/siw/siw.h unsigned int off, size_t len); off 223 drivers/infiniband/sw/siw/siw_mem.c enum ib_access_flags perms, u32 off, int len) off 229 drivers/infiniband/sw/siw/siw_mem.c if (len + off > sge->length) { off 248 drivers/infiniband/sw/siw/siw_mem.c rv = siw_check_mem(pd, *mem, sge->laddr + off, perms, len); off 325 drivers/infiniband/sw/siw/siw_mem.c dma_addr_t siw_pbl_get_buffer(struct siw_pbl *pbl, u64 off, int *len, int *idx) off 332 drivers/infiniband/sw/siw/siw_mem.c if (pble->pbl_off + pble->size > off) { off 333 drivers/infiniband/sw/siw/siw_mem.c u64 pble_off = off - pble->pbl_off; off 12 drivers/infiniband/sw/siw/siw_mem.h dma_addr_t siw_pbl_get_buffer(struct siw_pbl *pbl, u64 off, int *len, int *idx); off 20 drivers/infiniband/sw/siw/siw_mem.h u32 off, int len); off 386 drivers/infiniband/sw/siw/siw_qp_rx.c u32 off = (srq->rq_get + srq->limit) % off 388 drivers/infiniband/sw/siw/siw_qp_rx.c struct siw_rqe *rqe2 = &srq->recvq[off]; off 1341 drivers/infiniband/sw/siw/siw_qp_rx.c unsigned int off, size_t len) off 1348 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_new = skb->len - off; off 1349 drivers/infiniband/sw/siw/siw_qp_rx.c srx->skb_offset = off; off 66 drivers/infiniband/sw/siw/siw_qp_tx.c unsigned int off = sge->laddr & ~PAGE_MASK; off 81 drivers/infiniband/sw/siw/siw_qp_tx.c if (likely(PAGE_SIZE - off >= bytes)) { off 82 drivers/infiniband/sw/siw/siw_qp_tx.c memcpy(paddr, buffer + off, bytes); off 84 drivers/infiniband/sw/siw/siw_qp_tx.c unsigned long part = bytes - (PAGE_SIZE - off); off 86 drivers/infiniband/sw/siw/siw_qp_tx.c memcpy(paddr, buffer + off, part); off 59 drivers/infiniband/sw/siw/siw_verbs.c unsigned long off, u32 size) off 61 drivers/infiniband/sw/siw/siw_verbs.c struct siw_uobj *uobj = xa_load(&uctx->xa, off); off 73 drivers/infiniband/sw/siw/siw_verbs.c unsigned long off = vma->vm_pgoff; off 84 drivers/infiniband/sw/siw/siw_verbs.c uobj = siw_get_uobj(uctx, off, size); off 87 drivers/infiniband/sw/siw/siw_verbs.c off, size); off 92 drivers/infiniband/sw/siw/siw_verbs.c pr_warn("remap_vmalloc_range failed: %lu, %u\n", off, size); off 544 drivers/infiniband/ulp/ipoib/ipoib.h int i, off; off 553 drivers/infiniband/ulp/ipoib/ipoib.h off = 1; off 555 drivers/infiniband/ulp/ipoib/ipoib.h off = 0; off 558 drivers/infiniband/ulp/ipoib/ipoib.h priv->tx_sge[i + off].addr = mapping[i + off]; off 559 drivers/infiniband/ulp/ipoib/ipoib.h priv->tx_sge[i + off].length = skb_frag_size(&frags[i]); off 561 drivers/infiniband/ulp/ipoib/ipoib.h priv->tx_wr.wr.num_sge = nr_frags + off; off 280 drivers/infiniband/ulp/ipoib/ipoib_ib.c int off; off 288 drivers/infiniband/ulp/ipoib/ipoib_ib.c off = 1; off 290 drivers/infiniband/ulp/ipoib/ipoib_ib.c off = 0; off 294 drivers/infiniband/ulp/ipoib/ipoib_ib.c mapping[i + off] = ib_dma_map_page(ca, off 299 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (unlikely(ib_dma_mapping_error(ca, mapping[i + off]))) off 308 drivers/infiniband/ulp/ipoib/ipoib_ib.c ib_dma_unmap_page(ca, mapping[i - !off], skb_frag_size(frag), DMA_TO_DEVICE); off 311 drivers/infiniband/ulp/ipoib/ipoib_ib.c if (off) off 323 drivers/infiniband/ulp/ipoib/ipoib_ib.c int off; off 328 drivers/infiniband/ulp/ipoib/ipoib_ib.c off = 1; off 330 drivers/infiniband/ulp/ipoib/ipoib_ib.c off = 0; off 335 drivers/infiniband/ulp/ipoib/ipoib_ib.c ib_dma_unmap_page(priv->ca, mapping[i + off], off 74 drivers/input/keyboard/adp5588-keys.c static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) off 77 drivers/input/keyboard/adp5588-keys.c unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); off 78 drivers/input/keyboard/adp5588-keys.c unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); off 94 drivers/input/keyboard/adp5588-keys.c unsigned off, int val) off 97 drivers/input/keyboard/adp5588-keys.c unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); off 98 drivers/input/keyboard/adp5588-keys.c unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); off 113 drivers/input/keyboard/adp5588-keys.c static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) off 116 drivers/input/keyboard/adp5588-keys.c unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); off 117 drivers/input/keyboard/adp5588-keys.c unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); off 131 drivers/input/keyboard/adp5588-keys.c unsigned off, int val) off 134 drivers/input/keyboard/adp5588-keys.c unsigned int bank = ADP5588_BANK(kpad->gpiomap[off]); off 135 drivers/input/keyboard/adp5588-keys.c unsigned int bit = ADP5588_BIT(kpad->gpiomap[off]); off 388 drivers/input/keyboard/adp5589-keys.c static int adp5589_gpio_get_value(struct gpio_chip *chip, unsigned off) off 391 drivers/input/keyboard/adp5589-keys.c unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); off 392 drivers/input/keyboard/adp5589-keys.c unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); off 400 drivers/input/keyboard/adp5589-keys.c unsigned off, int val) off 403 drivers/input/keyboard/adp5589-keys.c unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); off 404 drivers/input/keyboard/adp5589-keys.c unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); off 419 drivers/input/keyboard/adp5589-keys.c static int adp5589_gpio_direction_input(struct gpio_chip *chip, unsigned off) off 422 drivers/input/keyboard/adp5589-keys.c unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); off 423 drivers/input/keyboard/adp5589-keys.c unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); off 439 drivers/input/keyboard/adp5589-keys.c unsigned off, int val) off 442 drivers/input/keyboard/adp5589-keys.c unsigned int bank = kpad->var->bank(kpad->gpiomap[off]); off 443 drivers/input/keyboard/adp5589-keys.c unsigned int bit = kpad->var->bit(kpad->gpiomap[off]); off 974 drivers/input/keyboard/applespi.c size_t len, loff_t *off) off 978 drivers/input/keyboard/applespi.c return simple_read_from_buffer(buf, len, off, applespi->tp_dim_val, off 1400 drivers/input/keyboard/applespi.c unsigned int off; off 1427 drivers/input/keyboard/applespi.c off = le16_to_cpu(packet->offset); off 1439 drivers/input/keyboard/applespi.c if (rem > 0 || off > 0) { off 1440 drivers/input/keyboard/applespi.c if (off != applespi->saved_msg_len) { off 1443 drivers/input/keyboard/applespi.c off, applespi->saved_msg_len); off 1447 drivers/input/keyboard/applespi.c if (off + rem > MAX_PKTS_PER_MSG * APPLESPI_PACKET_SIZE) { off 1450 drivers/input/keyboard/applespi.c off + rem); off 1454 drivers/input/keyboard/applespi.c if (off + len > MAX_PKTS_PER_MSG * APPLESPI_PACKET_SIZE) { off 1457 drivers/input/keyboard/applespi.c off + len); off 1461 drivers/input/keyboard/applespi.c memcpy(applespi->msg_buf + off, &packet->data, len); off 90 drivers/input/keyboard/pxa27x_keypad.c #define keypad_readl(off) __raw_readl(keypad->mmio_base + (off)) off 91 drivers/input/keyboard/pxa27x_keypad.c #define keypad_writel(off, v) __raw_writel((v), keypad->mmio_base + (off)) off 48 drivers/input/misc/mma8450.c static int mma8450_read(struct mma8450 *m, unsigned off) off 53 drivers/input/misc/mma8450.c ret = i2c_smbus_read_byte_data(c, off); off 57 drivers/input/misc/mma8450.c off, ret); off 62 drivers/input/misc/mma8450.c static int mma8450_write(struct mma8450 *m, unsigned off, u8 v) off 67 drivers/input/misc/mma8450.c error = i2c_smbus_write_byte_data(c, off, v); off 71 drivers/input/misc/mma8450.c off, error); off 78 drivers/input/misc/mma8450.c static int mma8450_read_block(struct mma8450 *m, unsigned off, off 84 drivers/input/misc/mma8450.c err = i2c_smbus_read_i2c_block_data(c, off, size, buf); off 118 drivers/input/rmi4/rmi_f34.c f34->v7.off.flash_status, off 281 drivers/input/rmi4/rmi_f34.h struct register_offset off; off 28 drivers/input/rmi4/rmi_f34v7.c f34->fn->fd.data_base_addr + f34->v7.off.flash_status, off 46 drivers/input/rmi4/rmi_f34v7.c f34->fn->fd.data_base_addr + f34->v7.off.flash_cmd, off 125 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.partition_id, off 198 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.flash_cmd, off 265 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.partition_id, off 293 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.block_number, off 304 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.transfer_length, off 333 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.payload, off 507 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.flash_status = V7_FLASH_STATUS_OFFSET; off 508 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.partition_id = V7_PARTITION_ID_OFFSET; off 509 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.block_number = V7_BLOCK_NUMBER_OFFSET; off 510 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.transfer_length = V7_TRANSFER_LENGTH_OFFSET; off 511 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.flash_cmd = V7_COMMAND_OFFSET; off 512 drivers/input/rmi4/rmi_f34v7.c f34->v7.off.payload = V7_PAYLOAD_OFFSET; off 759 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.block_number, off 775 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.transfer_length, off 795 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.payload, off 831 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.block_number, off 851 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.transfer_length, off 865 drivers/input/rmi4/rmi_f34v7.c base + f34->v7.off.payload, off 680 drivers/input/touchscreen/edt-ft5x06.c char __user *buf, size_t count, loff_t *off) off 691 drivers/input/touchscreen/edt-ft5x06.c if (*off < 0 || *off >= tsdata->raw_bufsize) off 745 drivers/input/touchscreen/edt-ft5x06.c read = min_t(size_t, count, tsdata->raw_bufsize - *off); off 746 drivers/input/touchscreen/edt-ft5x06.c if (copy_to_user(buf, tsdata->raw_buffer + *off, read)) { off 751 drivers/input/touchscreen/edt-ft5x06.c *off += read; off 1033 drivers/iommu/dma-iommu.c unsigned long pfn, off = vma->vm_pgoff; off 1041 drivers/iommu/dma-iommu.c if (off >= nr_pages || vma_pages(vma) > nr_pages - off) off 1054 drivers/iommu/dma-iommu.c return remap_pfn_range(vma, vma->vm_start, pfn + off, off 88 drivers/irqchip/irq-sunxi-nmi.c static inline void sunxi_sc_nmi_write(struct irq_chip_generic *gc, u32 off, off 91 drivers/irqchip/irq-sunxi-nmi.c irq_reg_writel(gc, val, off); off 94 drivers/irqchip/irq-sunxi-nmi.c static inline u32 sunxi_sc_nmi_read(struct irq_chip_generic *gc, u32 off) off 96 drivers/irqchip/irq-sunxi-nmi.c return irq_reg_readl(gc, off); off 344 drivers/irqchip/irq-vic.c unsigned int off = d->hwirq; off 345 drivers/irqchip/irq-vic.c u32 bit = 1 << off; off 27 drivers/isdn/capi/capiutil.c size_t off; off 230 drivers/isdn/capi/capiutil.c #define OFF (((u8 *)cmsg) + cdef[cmsg->par[cmsg->p]].off) off 190 drivers/isdn/hardware/mISDN/avmfritz.c ReadFiFoISAC_V1(void *p, u8 off, u8 *data, int size) off 199 drivers/isdn/hardware/mISDN/avmfritz.c WriteFiFoISAC_V1(void *p, u8 off, u8 *data, int size) off 226 drivers/isdn/hardware/mISDN/avmfritz.c ReadFiFoISAC_V2(void *p, u8 off, u8 *data, int size) off 231 drivers/isdn/hardware/mISDN/avmfritz.c outl(off, fc->addr + AVM_ISACX_INDEX); off 237 drivers/isdn/hardware/mISDN/avmfritz.c WriteFiFoISAC_V2(void *p, u8 off, u8 *data, int size) off 242 drivers/isdn/hardware/mISDN/avmfritz.c outl(off, fc->addr + AVM_ISACX_INDEX); off 26 drivers/isdn/hardware/mISDN/iohelper.h static u8 Read##name##_IO(void *p, u8 off) { \ off 28 drivers/isdn/hardware/mISDN/iohelper.h return inb(hw->ap.port + off); \ off 30 drivers/isdn/hardware/mISDN/iohelper.h static void Write##name##_IO(void *p, u8 off, u8 val) { \ off 32 drivers/isdn/hardware/mISDN/iohelper.h outb(val, hw->ap.port + off); \ off 34 drivers/isdn/hardware/mISDN/iohelper.h static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ off 36 drivers/isdn/hardware/mISDN/iohelper.h insb(hw->ap.port + off, dp, size); \ off 38 drivers/isdn/hardware/mISDN/iohelper.h static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ off 40 drivers/isdn/hardware/mISDN/iohelper.h outsb(hw->ap.port + off, dp, size); \ off 44 drivers/isdn/hardware/mISDN/iohelper.h static u8 Read##name##_IND(void *p, u8 off) { \ off 46 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ off 49 drivers/isdn/hardware/mISDN/iohelper.h static void Write##name##_IND(void *p, u8 off, u8 val) { \ off 51 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ off 54 drivers/isdn/hardware/mISDN/iohelper.h static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ off 56 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ off 59 drivers/isdn/hardware/mISDN/iohelper.h static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \ off 61 drivers/isdn/hardware/mISDN/iohelper.h outb(off, hw->ap.ale); \ off 66 drivers/isdn/hardware/mISDN/iohelper.h static u8 Read##name##_MIO(void *p, u8 off) { \ off 68 drivers/isdn/hardware/mISDN/iohelper.h return readb(((typ *)hw->adr) + off); \ off 70 drivers/isdn/hardware/mISDN/iohelper.h static void Write##name##_MIO(void *p, u8 off, u8 val) { \ off 72 drivers/isdn/hardware/mISDN/iohelper.h writeb(val, ((typ *)hw->adr) + off); \ off 74 drivers/isdn/hardware/mISDN/iohelper.h static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \ off 77 drivers/isdn/hardware/mISDN/iohelper.h *dp++ = readb(((typ *)hw->adr) + off); \ off 79 drivers/isdn/hardware/mISDN/iohelper.h static void WriteFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \ off 82 drivers/isdn/hardware/mISDN/iohelper.h writeb(*dp++, ((typ *)hw->adr) + off); \ off 17 drivers/isdn/hardware/mISDN/ipac.h u32 off; /* offset to isac regs */ off 50 drivers/isdn/hardware/mISDN/ipac.h u8 off; /* offset to ICA or ICB */ off 726 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 742 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 758 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 777 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 787 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 797 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 807 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 817 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 825 drivers/isdn/hardware/mISDN/mISDNinfineon.c hw->ipac.isac.off = 0x80; off 26 drivers/isdn/hardware/mISDN/mISDNipac.c #define ReadISAC(is, o) (is->read_reg(is->dch.hw, o + is->off)) off 27 drivers/isdn/hardware/mISDN/mISDNipac.c #define WriteISAC(is, o, v) (is->write_reg(is->dch.hw, o + is->off, v)) off 28 drivers/isdn/hardware/mISDN/mISDNipac.c #define ReadHSCX(h, o) (h->ip->read_reg(h->ip->hw, h->off + o)) off 29 drivers/isdn/hardware/mISDN/mISDNipac.c #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v)) off 125 drivers/isdn/hardware/mISDN/mISDNipac.c isac->read_fifo(isac->dch.hw, isac->off, ptr, count); off 156 drivers/isdn/hardware/mISDN/mISDNipac.c isac->write_fifo(isac->dch.hw, isac->off, ptr, count); off 947 drivers/isdn/hardware/mISDN/mISDNipac.c hscx->off + IPACX_RFIFOB, p, count); off 950 drivers/isdn/hardware/mISDN/mISDNipac.c hscx->off, p, count); off 991 drivers/isdn/hardware/mISDN/mISDNipac.c hscx->off + IPACX_XFIFOB, p, count); off 995 drivers/isdn/hardware/mISDN/mISDNipac.c hscx->off, p, count); off 1187 drivers/isdn/hardware/mISDN/mISDNipac.c ista = ReadIPAC(ipac, IPAC_ISTAB + ipac->hscx[1].off); off 1573 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[0].off = 0; off 1574 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[1].off = 0x40; off 1579 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[0].off = 0; off 1580 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[1].off = 0x40; off 1585 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[0].off = IPACX_OFF_ICA; off 1586 drivers/isdn/hardware/mISDN/mISDNipac.c ipac->hscx[1].off = IPACX_OFF_ICB; off 93 drivers/isdn/mISDN/timerdev.c mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off) off 102 drivers/isdn/mISDN/timerdev.c filep, buf, (int)count, off); off 133 drivers/leds/leds-an30259a.c unsigned long off = *delay_off, on = *delay_on; off 141 drivers/leds/leds-an30259a.c if (off % AN30259A_SLOPE_RESOLUTION || on % AN30259A_SLOPE_RESOLUTION) { off 147 drivers/leds/leds-an30259a.c if (off > AN30259A_BLINK_MAX_TIME || on > AN30259A_BLINK_MAX_TIME) { off 153 drivers/leds/leds-an30259a.c if (!off && !on) { off 154 drivers/leds/leds-an30259a.c *delay_off = off = 500; off 159 drivers/leds/leds-an30259a.c off /= AN30259A_SLOPE_RESOLUTION; off 180 drivers/leds/leds-an30259a.c AN30259A_LED_SLOPETIME1(off) | off 62 drivers/leds/leds-asic3.c u32 off; off 71 drivers/leds/leds-asic3.c off = MS_TO_CLK(500); off 74 drivers/leds/leds-asic3.c off = MS_TO_CLK(*delay_off); off 75 drivers/leds/leds-asic3.c if ((on + off) > MAX_CLK) off 80 drivers/leds/leds-asic3.c asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), (on + off)); off 86 drivers/leds/leds-asic3.c *delay_off = CLK_TO_MS(off); off 58 drivers/leds/leds-mc13783.c unsigned int reg, bank, off, shift; off 76 drivers/leds/leds-mc13783.c off = led->id - MC13783_LED_R1; off 77 drivers/leds/leds-mc13783.c bank = off / 3; off 79 drivers/leds/leds-mc13783.c shift = (off - bank * 3) * 5 + 6; off 84 drivers/leds/leds-mc13783.c off = led->id - MC13892_LED_MD; off 85 drivers/leds/leds-mc13783.c reg = off / 2; off 86 drivers/leds/leds-mc13783.c shift = 3 + (off - reg * 2) * 12; off 91 drivers/leds/leds-mc13783.c off = led->id - MC13892_LED_R; off 92 drivers/leds/leds-mc13783.c bank = off / 2; off 94 drivers/leds/leds-mc13783.c shift = (off - bank * 2) * 12 + 3; off 258 drivers/leds/leds-mlxcpld.c static void mlxcpld_led_store_hw(u8 mask, u8 off, u8 vset) off 273 drivers/leds/leds-mlxcpld.c mlxcpld_led_bus_access_func(MLXPLAT_CPLD_LPC_REG_BASE_ADRR, off, 1, off 277 drivers/leds/leds-mlxcpld.c mlxcpld_led_bus_access_func(MLXPLAT_CPLD_LPC_REG_BASE_ADRR, off, 0, off 323 drivers/lightnvm/pblk-core.c void pblk_bio_free_pages(struct pblk *pblk, struct bio *bio, int off, off 334 drivers/lightnvm/pblk-core.c if (nbv >= off) off 1066 drivers/lightnvm/pblk-core.c u64 off; off 1075 drivers/lightnvm/pblk-core.c off = bit * geo->ws_opt; off 1076 drivers/lightnvm/pblk-core.c bitmap_shift_left(l_mg->bb_aux, l_mg->bb_template, off, off 1085 drivers/lightnvm/pblk-core.c off = bit * geo->ws_opt; off 1086 drivers/lightnvm/pblk-core.c bitmap_set(line->map_bitmap, off, lm->smeta_sec); off 1088 drivers/lightnvm/pblk-core.c line->cur_sec = off + lm->smeta_sec; off 1090 drivers/lightnvm/pblk-core.c if (init && pblk_line_smeta_write(pblk, line, off)) { off 1101 drivers/lightnvm/pblk-core.c off = lm->sec_per_line; off 1103 drivers/lightnvm/pblk-core.c off -= geo->ws_opt; off 1104 drivers/lightnvm/pblk-core.c if (!test_bit(off, line->invalid_bitmap)) { off 1105 drivers/lightnvm/pblk-core.c bitmap_set(line->invalid_bitmap, off, geo->ws_opt); off 1110 drivers/lightnvm/pblk-core.c line->emeta_ssec = off; off 98 drivers/lightnvm/pblk-map.c unsigned int off) off 108 drivers/lightnvm/pblk-map.c for (i = off; i < rqd->nr_ppas; i += min) { off 824 drivers/lightnvm/pblk.h void pblk_bio_free_pages(struct pblk *pblk, struct bio *bio, int off, off 858 drivers/lightnvm/pblk.h unsigned int off); off 24 drivers/macintosh/via-pmu-backlight.c static void pmu_backlight_init_curve(u8 off, u8 min, u8 max) off 28 drivers/macintosh/via-pmu-backlight.c bl_curve[0] = off; off 1236 drivers/mailbox/bcm-flexrm-mailbox.c u32 val, off; off 1253 drivers/mailbox/bcm-flexrm-mailbox.c for (off = 0; off < RING_BD_SIZE; off += RING_DESC_SIZE) { off 1254 drivers/mailbox/bcm-flexrm-mailbox.c next_addr = off + RING_DESC_SIZE; off 1259 drivers/mailbox/bcm-flexrm-mailbox.c d = flexrm_next_table_desc(RING_BD_TOGGLE_VALID(off), off 1262 drivers/mailbox/bcm-flexrm-mailbox.c d = flexrm_null_desc(RING_BD_TOGGLE_INVALID(off)); off 1263 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_write_desc(ring->bd_base + off, d); off 307 drivers/media/common/videobuf2/videobuf2-core.c unsigned long off = 0; off 313 drivers/media/common/videobuf2/videobuf2-core.c off = PAGE_ALIGN(p->m.offset + p->length); off 317 drivers/media/common/videobuf2/videobuf2-core.c vb->planes[plane].m.offset = off; off 320 drivers/media/common/videobuf2/videobuf2-core.c vb->index, plane, off); off 322 drivers/media/common/videobuf2/videobuf2-core.c off += vb->planes[plane].length; off 323 drivers/media/common/videobuf2/videobuf2-core.c off = PAGE_ALIGN(off); off 2050 drivers/media/common/videobuf2/videobuf2-core.c static int __find_plane_by_offset(struct vb2_queue *q, unsigned long off, off 2065 drivers/media/common/videobuf2/videobuf2-core.c if (vb->planes[plane].m.offset == off) { off 2149 drivers/media/common/videobuf2/videobuf2-core.c unsigned long off = vma->vm_pgoff << PAGE_SHIFT; off 2190 drivers/media/common/videobuf2/videobuf2-core.c ret = __find_plane_by_offset(q, off, &buffer, &plane); off 2235 drivers/media/common/videobuf2/videobuf2-core.c unsigned long off = pgoff << PAGE_SHIFT; off 2249 drivers/media/common/videobuf2/videobuf2-core.c ret = __find_plane_by_offset(q, off, &buffer, &plane); off 1897 drivers/media/dvb-frontends/drxd_hard.c static int DRX_Start(struct drxd_state *state, s32 off) off 1922 drivers/media/dvb-frontends/drxd_hard.c if (off < 0) off 1923 drivers/media/dvb-frontends/drxd_hard.c off = (off - 500) / 1000; off 1925 drivers/media/dvb-frontends/drxd_hard.c off = (off + 500) / 1000; off 2385 drivers/media/dvb-frontends/drxd_hard.c SetFrequencyShift(state, off, mirrorFreqSpect); off 2862 drivers/media/dvb-frontends/drxd_hard.c s32 off = 0; off 2875 drivers/media/dvb-frontends/drxd_hard.c return DRX_Start(state, off); off 71 drivers/media/mc/mc-devnode.c size_t sz, loff_t *off) off 79 drivers/media/mc/mc-devnode.c return devnode->fops->read(filp, buf, sz, off); off 83 drivers/media/mc/mc-devnode.c size_t sz, loff_t *off) off 91 drivers/media/mc/mc-devnode.c return devnode->fops->write(filp, buf, sz, off); off 428 drivers/media/pci/bt8xx/bttv-risc.c int off = odd ? 0x80 : 0x00; off 431 drivers/media/pci/bt8xx/bttv-risc.c btor(BT848_VSCALE_COMB, BT848_E_VSCALE_HI+off); off 433 drivers/media/pci/bt8xx/bttv-risc.c btand(~BT848_VSCALE_COMB, BT848_E_VSCALE_HI+off); off 435 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vtc, BT848_E_VTC+off); off 436 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); off 437 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); off 438 drivers/media/pci/bt8xx/bttv-risc.c btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); off 439 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); off 440 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off); off 441 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hdelay & 0xff, BT848_E_HDELAY_LO+off); off 442 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->sheight & 0xff, BT848_E_VACTIVE_LO+off); off 443 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vdelay & 0xff, BT848_E_VDELAY_LO+off); off 444 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->crop, BT848_E_CROP+off); off 146 drivers/media/pci/cx88/cx88-video.c u32 off; off 161 drivers/media/pci/cx88/cx88-video.c .off = 128, off 171 drivers/media/pci/cx88/cx88-video.c .off = 0, off 181 drivers/media/pci/cx88/cx88-video.c .off = 128, off 194 drivers/media/pci/cx88/cx88-video.c .off = 0, off 204 drivers/media/pci/cx88/cx88-video.c .off = 0, off 234 drivers/media/pci/cx88/cx88-video.c .off = 0, off 619 drivers/media/pci/cx88/cx88-video.c value = ((ctrl->val - cc->off) << cc->shift) & cc->mask; off 637 drivers/media/pci/cx88/cx88-video.c value = ((ctrl->val - cc->off) << cc->shift) & cc->mask; off 640 drivers/media/pci/cx88/cx88-video.c value = ((ctrl->val - cc->off) << cc->shift) & cc->mask; off 689 drivers/media/pci/cx88/cx88-video.c value = ((ctrl->val - cc->off) << cc->shift) & cc->mask; off 49 drivers/media/pci/ddbridge/ddbridge-ci.c u32 val, off = (address >> 1) & (CI_BUFFER_SIZE - 1); off 56 drivers/media/pci/ddbridge/ddbridge-ci.c val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off); off 581 drivers/media/pci/ddbridge/ddbridge-core.c u32 idx, off, stat = output->dma->stat; off 585 drivers/media/pci/ddbridge/ddbridge-core.c off = (stat & 0x7ff) << 7; off 593 drivers/media/pci/ddbridge/ddbridge-core.c diff = off - output->dma->coff; off 603 drivers/media/pci/ddbridge/ddbridge-core.c u32 idx, off, stat = output->dma->stat; off 607 drivers/media/pci/ddbridge/ddbridge-core.c off = (stat & 0x7ff) << 7; off 612 drivers/media/pci/ddbridge/ddbridge-core.c off == 0) { off 618 drivers/media/pci/ddbridge/ddbridge-core.c if (off > output->dma->coff) { off 619 drivers/media/pci/ddbridge/ddbridge-core.c len = off - output->dma->coff; off 656 drivers/media/pci/ddbridge/ddbridge-core.c u32 idx, off, stat = input->dma->stat; off 660 drivers/media/pci/ddbridge/ddbridge-core.c off = (stat & 0x7ff) << 7; off 663 drivers/media/pci/ddbridge/ddbridge-core.c dev_err(dev->dev, "IA %d %d %08x\n", idx, off, ctrl); off 198 drivers/media/pci/dm1105/dm1105.c u32 mask, off, v13, v18; off 214 drivers/media/pci/dm1105/dm1105.c .off = DM1105_LNB_OFF, off 223 drivers/media/pci/dm1105/dm1105.c .off = DM1105_LNB_OFF, off 232 drivers/media/pci/dm1105/dm1105.c .off = DM1105_LNB_OFF, off 241 drivers/media/pci/dm1105/dm1105.c .off = DM05_LNB_OFF, off 250 drivers/media/pci/dm1105/dm1105.c .off = UNBR_LNB_OFF, off 596 drivers/media/pci/dm1105/dm1105.c dm1105_boards[dev->boardnr].lnb.off); off 166 drivers/media/pci/saa7134/saa7134-dvb.c u8 off[] = { 0x00, 0xf1}; off 168 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg = {.addr=0x43, .flags=0, .buf=off, .len = sizeof(off)}; off 369 drivers/media/pci/solo6x10/solo6x10-core.c loff_t off, size_t count) off 376 drivers/media/pci/solo6x10/solo6x10-core.c if (off >= size) off 379 drivers/media/pci/solo6x10/solo6x10-core.c if (off + count > size) off 380 drivers/media/pci/solo6x10/solo6x10-core.c count = size - off; off 382 drivers/media/pci/solo6x10/solo6x10-core.c if (solo_p2m_dma(solo_dev, 0, buf, off, count, 0, 0)) off 163 drivers/media/pci/solo6x10/solo6x10-disp.c static int solo_dma_vin_region(struct solo_dev *solo_dev, u32 off, off 179 drivers/media/pci/solo6x10/solo6x10-disp.c SOLO_MOTION_EXT_ADDR(solo_dev) + off + i, off 204 drivers/media/pci/solo6x10/solo6x10-disp.c u32 off = SOLO_MOT_FLAG_AREA + ch * SOLO_MOT_THRESH_SIZE * 2; off 216 drivers/media/pci/solo6x10/solo6x10-disp.c SOLO_MOTION_EXT_ADDR(solo_dev) + off + y * size, off 25 drivers/media/pci/solo6x10/solo6x10-i2c.c u8 solo_i2c_readbyte(struct solo_dev *solo_dev, int id, u8 addr, u8 off) off 33 drivers/media/pci/solo6x10/solo6x10-i2c.c msgs[0].buf = &off; off 46 drivers/media/pci/solo6x10/solo6x10-i2c.c u8 off, u8 data) off 51 drivers/media/pci/solo6x10/solo6x10-i2c.c buf[0] = off; off 197 drivers/media/pci/solo6x10/solo6x10-tw28.c static void tw_write_and_verify(struct solo_dev *solo_dev, u8 addr, u8 off, off 203 drivers/media/pci/solo6x10/solo6x10-tw28.c u8 rval = solo_i2c_readbyte(solo_dev, SOLO_I2C_TW, addr, off); off 208 drivers/media/pci/solo6x10/solo6x10-tw28.c solo_i2c_writebyte(solo_dev, SOLO_I2C_TW, addr, off, val); off 277 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c unsigned int off, unsigned int size) off 281 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (off > SOLO_MP4E_EXT_SIZE(solo_dev)) off 285 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (off + size <= SOLO_MP4E_EXT_SIZE(solo_dev)) { off 287 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c SOLO_MP4E_EXT_ADDR(solo_dev) + off, size, off 293 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c SOLO_MP4E_EXT_ADDR(solo_dev) + off, off 294 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c SOLO_MP4E_EXT_SIZE(solo_dev) - off, 0, 0); off 298 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c dma + SOLO_MP4E_EXT_SIZE(solo_dev) - off, off 300 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c size + off - SOLO_MP4E_EXT_SIZE(solo_dev), 0, 0); off 309 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct sg_table *vbuf, int off, int size, off 326 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c int left = base_size - off; off 345 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c solo_p2m_fill_desc(desc, 0, dma, base + off, off 354 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c ret = solo_p2m_dma_t(solo_dev, 0, dma, base + off, off 371 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c off += len; off 372 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (off >= base_size) off 373 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c off -= base_size; off 583 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c u32 mpeg_current, off; off 597 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c off = mpeg_current & 0x00ffffff; off 613 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c if (enc_get_mpeg_dma(solo_dev, solo_dev->vh_dma, off, off 621 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c SOLO_MP4E_EXT_ADDR(solo_dev) + off) off 336 drivers/media/pci/solo6x10/solo6x10.h u8 solo_i2c_readbyte(struct solo_dev *solo_dev, int id, u8 addr, u8 off); off 337 drivers/media/pci/solo6x10/solo6x10.h void solo_i2c_writebyte(struct solo_dev *solo_dev, int id, u8 addr, u8 off, off 47 drivers/media/pci/ttpci/av7110_ipack.c int off; off 62 drivers/media/pci/ttpci/av7110_ipack.c off = 9 + p->buf[8]; off 63 drivers/media/pci/ttpci/av7110_ipack.c streamid = p->buf[off]; off 65 drivers/media/pci/ttpci/av7110_ipack.c ai.off = 0; off 66 drivers/media/pci/ttpci/av7110_ipack.c ac3_off = ((p->buf[off + 2] << 8)| off 67 drivers/media/pci/ttpci/av7110_ipack.c p->buf[off + 3]); off 69 drivers/media/pci/ttpci/av7110_ipack.c f = dvb_filter_get_ac3info(p->buf + off + 3 + ac3_off, off 72 drivers/media/pci/ttpci/av7110_ipack.c nframes = (p->count - off - 3 - ac3_off) / off 74 drivers/media/pci/ttpci/av7110_ipack.c p->buf[off + 2] = (ac3_off >> 8) & 0xff; off 75 drivers/media/pci/ttpci/av7110_ipack.c p->buf[off + 3] = (ac3_off) & 0xff; off 76 drivers/media/pci/ttpci/av7110_ipack.c p->buf[off + 1] = nframes; off 43 drivers/media/pci/ttpci/dvb_filter.c ai->off = c; off 163 drivers/media/pci/ttpci/dvb_filter.h u32 off; off 236 drivers/media/pci/ttpci/dvb_filter.h u32 off; off 124 drivers/media/rc/bpf-lirc.c static bool lirc_mode2_is_valid_access(int off, int size, off 130 drivers/media/rc/bpf-lirc.c return type == BPF_READ && off == 0 && size == sizeof(u32); off 33 drivers/media/rc/serial_ir.c u8 off; off 72 drivers/media/rc/serial_ir.c .off = (UART_MCR_RTS | UART_MCR_OUT2), off 86 drivers/media/rc/serial_ir.c .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2), off 97 drivers/media/rc/serial_ir.c .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2), off 108 drivers/media/rc/serial_ir.c .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2), off 116 drivers/media/rc/serial_ir.c .off = (UART_MCR_RTS | UART_MCR_OUT2), off 163 drivers/media/rc/serial_ir.c soutp(UART_MCR, hardware[type].off); off 173 drivers/media/rc/serial_ir.c soutp(UART_MCR, hardware[type].off); off 240 drivers/media/rc/serial_ir.c off(); off 260 drivers/media/rc/serial_ir.c off(); off 435 drivers/media/rc/serial_ir.c off(); off 665 drivers/media/rc/serial_ir.c off(); off 717 drivers/media/rc/serial_ir.c off(); off 141 drivers/media/usb/cpia2/cpia2_v4l.c loff_t *off) off 370 drivers/media/usb/go7007/go7007-fw.c int size = 0, i, off = 0, chunk; off 385 drivers/media/usb/go7007/go7007-fw.c if (space - off < 32) { off 386 drivers/media/usb/go7007/go7007-fw.c off = -1; off 390 drivers/media/usb/go7007/go7007-fw.c code[off + 1] = __cpu_to_le16(0x8000 | mem); off 399 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x4000 | chunk); off 400 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = __cpu_to_le16(addr++); off 403 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x1000 | 28); off 404 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = 0; off 408 drivers/media/usb/go7007/go7007-fw.c memcpy(&code[off + 2], buf + i, chunk * 2); off 409 drivers/media/usb/go7007/go7007-fw.c off += 32; off 413 drivers/media/usb/go7007/go7007-fw.c return off; off 637 drivers/media/usb/go7007/go7007-fw.c int i, off = 0, chunk; off 674 drivers/media/usb/go7007/go7007-fw.c if (space - off < 32) { off 675 drivers/media/usb/go7007/go7007-fw.c off = -1; off 679 drivers/media/usb/go7007/go7007-fw.c code[off + 1] = __cpu_to_le16(0x8000 | mem); off 688 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x4000 | chunk); off 689 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = __cpu_to_le16(addr); off 695 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x1000 | 28); off 696 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = 0; off 700 drivers/media/usb/go7007/go7007-fw.c memcpy(&code[off + 2], buf + i, chunk * 2); off 701 drivers/media/usb/go7007/go7007-fw.c off += 32; off 705 drivers/media/usb/go7007/go7007-fw.c return off; off 823 drivers/media/usb/go7007/go7007-fw.c int i, off = 0, chunk; off 842 drivers/media/usb/go7007/go7007-fw.c if (space - off < 32) { off 843 drivers/media/usb/go7007/go7007-fw.c off = -1; off 847 drivers/media/usb/go7007/go7007-fw.c code[off + 1] = __cpu_to_le16(0x8000 | mem); off 856 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x4000 | chunk); off 857 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = __cpu_to_le16(addr); off 863 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x1000 | 28); off 864 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = 0; off 868 drivers/media/usb/go7007/go7007-fw.c memcpy(&code[off + 2], buf + i, chunk * 2); off 869 drivers/media/usb/go7007/go7007-fw.c off += 32; off 885 drivers/media/usb/go7007/go7007-fw.c if (space - off < 32) { off 886 drivers/media/usb/go7007/go7007-fw.c off = -1; off 890 drivers/media/usb/go7007/go7007-fw.c code[off + 1] = __cpu_to_le16(0x8000 | mem); off 899 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x4000 | chunk); off 900 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = __cpu_to_le16(addr); off 906 drivers/media/usb/go7007/go7007-fw.c code[off] = __cpu_to_le16(0x1000 | 28); off 907 drivers/media/usb/go7007/go7007-fw.c code[off + 31] = 0; off 911 drivers/media/usb/go7007/go7007-fw.c memcpy(&code[off + 2], buf + i, chunk * 2); off 912 drivers/media/usb/go7007/go7007-fw.c off += 32; off 916 drivers/media/usb/go7007/go7007-fw.c return off; off 305 drivers/media/v4l2-core/v4l2-dev.c size_t sz, loff_t *off) off 313 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->read(filp, buf, sz, off); off 322 drivers/media/v4l2-core/v4l2-dev.c size_t sz, loff_t *off) off 330 drivers/media/v4l2-core/v4l2-dev.c ret = vdev->fops->write(filp, buf, sz, off); off 157 drivers/memstick/host/jmb38x_ms.c unsigned int off = 0; off 160 drivers/memstick/host/jmb38x_ms.c buf[off++] = host->io_word[0] & 0xff; off 167 drivers/memstick/host/jmb38x_ms.c return off; off 172 drivers/memstick/host/jmb38x_ms.c *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); off 174 drivers/memstick/host/jmb38x_ms.c off += 4; off 181 drivers/memstick/host/jmb38x_ms.c buf[off++] = host->io_word[0] & 0xff; off 189 drivers/memstick/host/jmb38x_ms.c return off; off 196 drivers/memstick/host/jmb38x_ms.c unsigned int off = 0; off 199 drivers/memstick/host/jmb38x_ms.c buf[off++] = host->io_word[0] & 0xff; off 206 drivers/memstick/host/jmb38x_ms.c return off; off 209 drivers/memstick/host/jmb38x_ms.c buf[off++] = host->io_word[1] & 0xff; off 215 drivers/memstick/host/jmb38x_ms.c return off; off 222 drivers/memstick/host/jmb38x_ms.c unsigned int off = 0; off 226 drivers/memstick/host/jmb38x_ms.c host->io_word[0] |= buf[off++] << (host->io_pos * 8); off 238 drivers/memstick/host/jmb38x_ms.c return off; off 242 drivers/memstick/host/jmb38x_ms.c return off; off 248 drivers/memstick/host/jmb38x_ms.c __raw_writel(*(unsigned int *)(buf + off), off 251 drivers/memstick/host/jmb38x_ms.c off += 4; off 256 drivers/memstick/host/jmb38x_ms.c host->io_word[0] |= buf[off + 2] << 16; off 260 drivers/memstick/host/jmb38x_ms.c host->io_word[0] |= buf[off + 1] << 8; off 264 drivers/memstick/host/jmb38x_ms.c host->io_word[0] |= buf[off]; off 268 drivers/memstick/host/jmb38x_ms.c off += host->io_pos; off 270 drivers/memstick/host/jmb38x_ms.c return off; off 277 drivers/memstick/host/jmb38x_ms.c unsigned int off = 0; off 281 drivers/memstick/host/jmb38x_ms.c host->io_word[0] |= buf[off++] << (host->io_pos * 8); off 287 drivers/memstick/host/jmb38x_ms.c return off; off 291 drivers/memstick/host/jmb38x_ms.c host->io_word[1] |= buf[off++] << (host->io_pos * 8); off 296 drivers/memstick/host/jmb38x_ms.c return off; off 302 drivers/memstick/host/jmb38x_ms.c unsigned int off; off 310 drivers/memstick/host/jmb38x_ms.c off = host->req->sg.offset + host->block_pos; off 313 drivers/memstick/host/jmb38x_ms.c off = 0; off 321 drivers/memstick/host/jmb38x_ms.c off >> PAGE_SHIFT); off 322 drivers/memstick/host/jmb38x_ms.c p_off = offset_in_page(off); off 351 drivers/memstick/host/jmb38x_ms.c off += t_size; off 86 drivers/memstick/host/tifm_ms.c unsigned int off = 0; off 89 drivers/memstick/host/tifm_ms.c buf[off++] = host->io_word & 0xff; off 96 drivers/memstick/host/tifm_ms.c return off; off 101 drivers/memstick/host/tifm_ms.c *(unsigned int *)(buf + off) = __raw_readl(sock->addr off 104 drivers/memstick/host/tifm_ms.c off += 4; off 111 drivers/memstick/host/tifm_ms.c buf[off++] = host->io_word & 0xff; off 119 drivers/memstick/host/tifm_ms.c return off; off 126 drivers/memstick/host/tifm_ms.c unsigned int off = 0; off 130 drivers/memstick/host/tifm_ms.c host->io_word |= buf[off++] << (host->io_pos * 8); off 144 drivers/memstick/host/tifm_ms.c return off; off 148 drivers/memstick/host/tifm_ms.c return off; off 155 drivers/memstick/host/tifm_ms.c __raw_writel(*(unsigned int *)(buf + off), off 158 drivers/memstick/host/tifm_ms.c off += 4; off 163 drivers/memstick/host/tifm_ms.c host->io_word |= buf[off + 2] << 16; off 167 drivers/memstick/host/tifm_ms.c host->io_word |= buf[off + 1] << 8; off 171 drivers/memstick/host/tifm_ms.c host->io_word |= buf[off]; off 175 drivers/memstick/host/tifm_ms.c off += host->io_pos; off 177 drivers/memstick/host/tifm_ms.c return off; off 184 drivers/memstick/host/tifm_ms.c unsigned int off; off 192 drivers/memstick/host/tifm_ms.c off = host->req->sg.offset + host->block_pos; off 195 drivers/memstick/host/tifm_ms.c off = 0; off 205 drivers/memstick/host/tifm_ms.c off >> PAGE_SHIFT); off 206 drivers/memstick/host/tifm_ms.c p_off = offset_in_page(off); off 230 drivers/memstick/host/tifm_ms.c off += t_size; off 522 drivers/mfd/twl4030-irq.c int off = (i & 0x3) * 2; off 525 drivers/mfd/twl4030-irq.c bytes[byte] &= ~(0x03 << off); off 529 drivers/mfd/twl4030-irq.c bytes[byte] |= BIT(off + 1); off 531 drivers/mfd/twl4030-irq.c bytes[byte] |= BIT(off + 0); off 378 drivers/misc/cxl/api.c loff_t *off) off 380 drivers/misc/cxl/api.c return afu_read(file, buf, count, off); off 850 drivers/misc/cxl/cxl.h loff_t off, size_t count); off 1045 drivers/misc/cxl/cxl.h ssize_t afu_read(struct file *file, char __user *buf, size_t count, loff_t *off); off 1087 drivers/misc/cxl/cxl.h loff_t off, size_t count); off 425 drivers/misc/cxl/file.c loff_t *off) off 497 drivers/misc/cxl/guest.c static int guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) off 503 drivers/misc/cxl/guest.c static int guest_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) off 509 drivers/misc/cxl/guest.c static int guest_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) off 675 drivers/misc/cxl/guest.c loff_t off, size_t count) off 685 drivers/misc/cxl/guest.c off & 0x7, off 692 drivers/misc/cxl/guest.c count = ERR_BUFF_MAX_COPY_SIZE - (off & 0x7); off 1473 drivers/misc/cxl/native.c static int native_afu_cr_read64(struct cxl_afu *afu, int cr, u64 off, u64 *out) off 1477 drivers/misc/cxl/native.c if (unlikely(off >= afu->crs_len)) off 1480 drivers/misc/cxl/native.c (cr * afu->crs_len) + off); off 1484 drivers/misc/cxl/native.c static int native_afu_cr_read32(struct cxl_afu *afu, int cr, u64 off, u32 *out) off 1488 drivers/misc/cxl/native.c if (unlikely(off >= afu->crs_len)) off 1491 drivers/misc/cxl/native.c (cr * afu->crs_len) + off); off 1495 drivers/misc/cxl/native.c static int native_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off, u16 *out) off 1497 drivers/misc/cxl/native.c u64 aligned_off = off & ~0x3L; off 1503 drivers/misc/cxl/native.c *out = (val >> ((off & 0x3) * 8)) & 0xffff; off 1507 drivers/misc/cxl/native.c static int native_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off, u8 *out) off 1509 drivers/misc/cxl/native.c u64 aligned_off = off & ~0x3L; off 1515 drivers/misc/cxl/native.c *out = (val >> ((off & 0x3) * 8)) & 0xff; off 1519 drivers/misc/cxl/native.c static int native_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) off 1523 drivers/misc/cxl/native.c if (unlikely(off >= afu->crs_len)) off 1526 drivers/misc/cxl/native.c (cr * afu->crs_len) + off, in); off 1530 drivers/misc/cxl/native.c static int native_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) off 1532 drivers/misc/cxl/native.c u64 aligned_off = off & ~0x3L; off 1539 drivers/misc/cxl/native.c shift = (off & 0x3) * 8; off 1548 drivers/misc/cxl/native.c static int native_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) off 1550 drivers/misc/cxl/native.c u64 aligned_off = off & ~0x3L; off 1557 drivers/misc/cxl/native.c shift = (off & 0x3) * 8; off 89 drivers/misc/cxl/pci.c #define AFUD_READ(afu, off) in_be64(afu->native->afu_desc_mmio + off) off 90 drivers/misc/cxl/pci.c #define AFUD_READ_LE(afu, off) in_le64(afu->native->afu_desc_mmio + off) off 1036 drivers/misc/cxl/pci.c loff_t off, size_t count) off 1043 drivers/misc/cxl/pci.c if (count == 0 || off < 0 || (size_t)off >= afu->eb_len) off 1047 drivers/misc/cxl/pci.c count = min((size_t)(afu->eb_len - off), count); off 1048 drivers/misc/cxl/pci.c aligned_start = round_down(off, 8); off 1049 drivers/misc/cxl/pci.c aligned_end = round_up(off + count, 8); off 1055 drivers/misc/cxl/pci.c count = ERR_BUFF_MAX_COPY_SIZE - (off & 0x7); off 1065 drivers/misc/cxl/pci.c memcpy(buf, tbuf + (off & 0x7), count); off 448 drivers/misc/cxl/sysfs.c loff_t off, size_t count) off 452 drivers/misc/cxl/sysfs.c return cxl_ops->afu_read_err_buffer(afu, buf, off, count); off 542 drivers/misc/cxl/sysfs.c loff_t off, size_t count) off 550 drivers/misc/cxl/sysfs.c rc = cxl_ops->afu_cr_read64(afu, cr->cr, off & ~0x7, &val); off 553 drivers/misc/cxl/sysfs.c for (j = off & 0x7; j < 8 && i < count; i++, j++, off++) off 157 drivers/misc/ds1682.c char *buf, loff_t off, size_t count) off 163 drivers/misc/ds1682.c buf, off, count); off 165 drivers/misc/ds1682.c rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off, off 175 drivers/misc/ds1682.c char *buf, loff_t off, size_t count) off 180 drivers/misc/ds1682.c buf, off, count); off 183 drivers/misc/ds1682.c if (i2c_smbus_write_i2c_block_data(client, DS1682_REG_EEPROM + off, off 386 drivers/misc/eeprom/at24.c static int at24_read(void *priv, unsigned int off, void *val, size_t count) off 399 drivers/misc/eeprom/at24.c if (off + count > at24->byte_len) off 415 drivers/misc/eeprom/at24.c ret = at24_regmap_read(at24, buf, off, count); off 422 drivers/misc/eeprom/at24.c off += ret; off 433 drivers/misc/eeprom/at24.c static int at24_write(void *priv, unsigned int off, void *val, size_t count) off 446 drivers/misc/eeprom/at24.c if (off + count > at24->byte_len) off 463 drivers/misc/eeprom/at24.c ret = at24_regmap_write(at24, buf, off, count); off 471 drivers/misc/eeprom/at24.c off += ret; off 129 drivers/misc/eeprom/at25.c static int at25_ee_write(void *priv, unsigned int off, void *val, size_t count) off 137 drivers/misc/eeprom/at25.c if (unlikely(off >= at25->chip.byte_len)) off 139 drivers/misc/eeprom/at25.c if ((off + count) > at25->chip.byte_len) off 140 drivers/misc/eeprom/at25.c count = at25->chip.byte_len - off; off 159 drivers/misc/eeprom/at25.c unsigned offset = (unsigned) off; off 233 drivers/misc/eeprom/at25.c off += segment; off 94 drivers/misc/eeprom/ee1004.c char *buf, loff_t off, size_t count) off 104 drivers/misc/eeprom/ee1004.c page = off >> EE1004_PAGE_SHIFT; off 107 drivers/misc/eeprom/ee1004.c off &= (1 << EE1004_PAGE_SHIFT) - 1; off 143 drivers/misc/eeprom/ee1004.c status = ee1004_eeprom_read(client, buf, off, count); off 149 drivers/misc/eeprom/ee1004.c off += status; off 152 drivers/misc/eeprom/ee1004.c if (off == EE1004_PAGE_SIZE) { off 154 drivers/misc/eeprom/ee1004.c off = 0; off 77 drivers/misc/eeprom/eeprom.c char *buf, loff_t off, size_t count) off 84 drivers/misc/eeprom/eeprom.c for (slice = off >> 5; slice <= (off + count - 1) >> 5; slice++) off 95 drivers/misc/eeprom/eeprom.c if ((off + i <= 0x1f) || off 96 drivers/misc/eeprom/eeprom.c (off + i >= 0xc0 && off + i <= 0xdf)) off 99 drivers/misc/eeprom/eeprom.c buf[i] = data->data[off + i]; off 102 drivers/misc/eeprom/eeprom.c memcpy(buf, &data->data[off], count); off 58 drivers/misc/eeprom/eeprom_93xx46.c static int eeprom_93xx46_read(void *priv, unsigned int off, off 65 drivers/misc/eeprom/eeprom_93xx46.c if (unlikely(off >= edev->size)) off 67 drivers/misc/eeprom/eeprom_93xx46.c if ((off + count) > edev->size) off 68 drivers/misc/eeprom/eeprom_93xx46.c count = edev->size - off; off 85 drivers/misc/eeprom/eeprom_93xx46.c cmd_addr |= off & 0x7f; off 90 drivers/misc/eeprom/eeprom_93xx46.c cmd_addr |= (off >> 1) & 0x3f; off 117 drivers/misc/eeprom/eeprom_93xx46.c nbytes, (int)off, err); off 122 drivers/misc/eeprom/eeprom_93xx46.c off += nbytes; off 187 drivers/misc/eeprom/eeprom_93xx46.c const char *buf, unsigned off) off 197 drivers/misc/eeprom/eeprom_93xx46.c cmd_addr |= off & 0x7f; off 201 drivers/misc/eeprom/eeprom_93xx46.c cmd_addr |= (off >> 1) & 0x3f; off 227 drivers/misc/eeprom/eeprom_93xx46.c static int eeprom_93xx46_write(void *priv, unsigned int off, off 234 drivers/misc/eeprom/eeprom_93xx46.c if (unlikely(off >= edev->size)) off 236 drivers/misc/eeprom/eeprom_93xx46.c if ((off + count) > edev->size) off 237 drivers/misc/eeprom/eeprom_93xx46.c count = edev->size - off; off 258 drivers/misc/eeprom/eeprom_93xx46.c ret = eeprom_93xx46_write_word(edev, &buf[i], off + i); off 261 drivers/misc/eeprom/eeprom_93xx46.c (int)off + i, ret); off 882 drivers/misc/eeprom/idt_89hpesx.c char *buf, loff_t off, size_t count) off 891 drivers/misc/eeprom/idt_89hpesx.c ret = idt_eeprom_write(pdev, (u16)off, (u16)count, (u8 *)buf); off 906 drivers/misc/eeprom/idt_89hpesx.c char *buf, loff_t off, size_t count) off 915 drivers/misc/eeprom/idt_89hpesx.c ret = idt_eeprom_read(pdev, (u16)off, (u16)count, (u8 *)buf); off 108 drivers/misc/eeprom/max6875.c char *buf, loff_t off, size_t count) off 115 drivers/misc/eeprom/max6875.c max_slice = (off + count - 1) >> SLICE_BITS; off 116 drivers/misc/eeprom/max6875.c for (slice = (off >> SLICE_BITS); slice <= max_slice; slice++) off 119 drivers/misc/eeprom/max6875.c memcpy(buf, &data->data[off], count); off 4747 drivers/misc/habanalabs/goya/goya.c s64 off, cpu_off; off 4753 drivers/misc/habanalabs/goya/goya.c for (off = 0 ; off < CPU_FW_IMAGE_SIZE ; off += PAGE_SIZE_2MB) { off 4754 drivers/misc/habanalabs/goya/goya.c rc = hl_mmu_map(hdev->kernel_ctx, prop->dram_base_address + off, off 4755 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off, PAGE_SIZE_2MB); off 4758 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off); off 4770 drivers/misc/habanalabs/goya/goya.c off -= PAGE_SIZE_2MB; off 4809 drivers/misc/habanalabs/goya/goya.c for (; off >= 0 ; off -= PAGE_SIZE_2MB) off 4811 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off, PAGE_SIZE_2MB)) off 4814 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off); off 4823 drivers/misc/habanalabs/goya/goya.c u32 off, cpu_off; off 4849 drivers/misc/habanalabs/goya/goya.c for (off = 0 ; off < CPU_FW_IMAGE_SIZE ; off += PAGE_SIZE_2MB) off 4851 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off, PAGE_SIZE_2MB)) off 4854 drivers/misc/habanalabs/goya/goya.c prop->dram_base_address + off); off 440 drivers/misc/hpilo.c size_t len, loff_t *off) off 490 drivers/misc/hpilo.c size_t len, loff_t *off) off 696 drivers/misc/hpilo.c unsigned long off; off 709 drivers/misc/hpilo.c off = pci_resource_len(pdev, bar) - 0x2000; off 712 drivers/misc/hpilo.c off = 0; off 714 drivers/misc/hpilo.c hw->ram_vaddr = pci_iomap_range(pdev, bar, off, max_ccb * ILOHW_CCB_SZ); off 34 drivers/misc/lkdtm/core.c size_t count, loff_t *off); off 36 drivers/misc/lkdtm/core.c size_t count, loff_t *off); off 42 drivers/misc/lkdtm/core.c size_t count, loff_t *off); off 288 drivers/misc/lkdtm/core.c size_t count, loff_t *off) off 319 drivers/misc/lkdtm/core.c *off += count; off 327 drivers/misc/lkdtm/core.c size_t count, loff_t *off) off 343 drivers/misc/lkdtm/core.c out = simple_read_from_buffer(user_buf, count, off, off 357 drivers/misc/lkdtm/core.c size_t count, loff_t *off) off 385 drivers/misc/lkdtm/core.c *off += count; off 965 drivers/misc/mei/hw-me.c goto off; off 972 drivers/misc/mei/hw-me.c goto off; off 989 drivers/misc/mei/hw-me.c off: off 646 drivers/misc/mic/scif/scif_dma.c void *_get_local_va(off_t off, struct scif_window *window, size_t len) off 648 drivers/misc/mic/scif/scif_dma.c int page_nr = (off - window->offset) >> PAGE_SHIFT; off 649 drivers/misc/mic/scif/scif_dma.c off_t page_off = off & ~PAGE_MASK; off 661 drivers/misc/mic/scif/scif_dma.c void *ioremap_remote(off_t off, struct scif_window *window, off 665 drivers/misc/mic/scif/scif_dma.c dma_addr_t phys = scif_off_to_dma_addr(window, off, NULL, iter); off 747 drivers/misc/mic/scif/scif_dma.c dma_addr_t scif_off_to_dma_addr(struct scif_window *window, s64 off, off 755 drivers/misc/mic/scif/scif_dma.c page_nr = (off - window->offset) >> PAGE_SHIFT; off 756 drivers/misc/mic/scif/scif_dma.c page_off = off & ~PAGE_MASK; off 771 drivers/misc/mic/scif/scif_dma.c if (off >= start && off < end) { off 777 drivers/misc/mic/scif/scif_dma.c *nr_bytes = end - off; off 778 drivers/misc/mic/scif/scif_dma.c return (window->dma_addr[i] + (off - start)); off 784 drivers/misc/mic/scif/scif_dma.c __func__, __LINE__, window, off); off 178 drivers/misc/mic/scif/scif_fence.c static inline void *scif_get_local_va(off_t off, struct scif_window *window) off 181 drivers/misc/mic/scif/scif_fence.c int page_nr = (off - window->offset) >> PAGE_SHIFT; off 182 drivers/misc/mic/scif/scif_fence.c off_t page_off = off & ~PAGE_MASK; off 388 drivers/misc/mic/scif/scif_rma.h dma_addr_t scif_off_to_dma_addr(struct scif_window *window, s64 off, off 392 drivers/misc/mic/scif/scif_rma.h dma_addr_t __scif_off_to_dma_addr(struct scif_window *window, s64 off) off 394 drivers/misc/mic/scif/scif_rma.h return scif_off_to_dma_addr(window, off, NULL, NULL); off 396 drivers/misc/ocxl/file.c loff_t *off) off 407 drivers/misc/ocxl/file.c if (*off != 0) off 63 drivers/misc/ocxl/sysfs.c loff_t off, size_t count) off 67 drivers/misc/ocxl/sysfs.c if (count == 0 || off < 0 || off 68 drivers/misc/ocxl/sysfs.c off >= afu->config.global_mmio_size) off 70 drivers/misc/ocxl/sysfs.c memcpy_fromio(buf, afu->global_mmio_ptr + off, count); off 484 drivers/misc/pch_phub.c loff_t off, size_t count) off 521 drivers/misc/pch_phub.c if (orom_size < off) { off 532 drivers/misc/pch_phub.c chip->pch_opt_rom_start_address + addr_offset + off, off 554 drivers/misc/pch_phub.c char *buf, loff_t off, size_t count) off 566 drivers/misc/pch_phub.c if (off > PCH_PHUB_OROM_SIZE) { off 582 drivers/misc/pch_phub.c if (PCH_PHUB_OROM_SIZE < off + addr_offset) off 586 drivers/misc/pch_phub.c chip->pch_opt_rom_start_address + addr_offset + off, off 391 drivers/misc/sgi-gru/grukservices.c unsigned long off; off 405 drivers/misc/sgi-gru/grukservices.c off = cb - kgts->ts_gru->gs_gru_base_vaddr; off 406 drivers/misc/sgi-gru/grukservices.c if (off < GRU_SIZE) off 111 drivers/mmc/host/tifm_sd.c unsigned int off, unsigned int cnt) off 117 drivers/mmc/host/tifm_sd.c buf = kmap_atomic(pg) + off; off 133 drivers/mmc/host/tifm_sd.c kunmap_atomic(buf - off); off 137 drivers/mmc/host/tifm_sd.c unsigned int off, unsigned int cnt) off 143 drivers/mmc/host/tifm_sd.c buf = kmap_atomic(pg) + off; off 160 drivers/mmc/host/tifm_sd.c kunmap_atomic(buf - off); off 167 drivers/mmc/host/tifm_sd.c unsigned int off, cnt, t_size = TIFM_MMCSD_FIFO_SIZE * 2; off 189 drivers/mmc/host/tifm_sd.c off = sg[host->sg_pos].offset + host->block_pos; off 191 drivers/mmc/host/tifm_sd.c pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); off 192 drivers/mmc/host/tifm_sd.c p_off = offset_in_page(off); off 224 drivers/mmc/host/tifm_sd.c unsigned int off, cnt; off 238 drivers/mmc/host/tifm_sd.c off = sg[host->sg_pos].offset + host->block_pos; off 240 drivers/mmc/host/tifm_sd.c pg = nth_page(sg_page(&sg[host->sg_pos]), off >> PAGE_SHIFT); off 241 drivers/mmc/host/tifm_sd.c p_off = offset_in_page(off); off 451 drivers/mtd/devices/mtd_dataflash.c u8 *buf, loff_t off, size_t len) off 459 drivers/mtd/devices/mtd_dataflash.c if (off > 64) off 462 drivers/mtd/devices/mtd_dataflash.c if ((off + len) > 64) off 463 drivers/mtd/devices/mtd_dataflash.c len = 64 - off; off 467 drivers/mtd/devices/mtd_dataflash.c l = 4 + base + off + len; off 487 drivers/mtd/devices/mtd_dataflash.c memcpy(buf, scratch + 4 + base + off, len); off 681 drivers/mtd/nand/raw/fsmc_nand.c int off, len, ret, group = 0; off 705 drivers/mtd/nand/raw/fsmc_nand.c off = oobregion.offset; off 716 drivers/mtd/nand/raw/fsmc_nand.c nand_read_oob_op(chip, page, off, oob + j, len); off 1007 drivers/mtd/nand/raw/mtk_nand.c static int mtk_nfc_read_subpage_hwecc(struct nand_chip *chip, u32 off, off 1010 drivers/mtd/nand/raw/mtk_nand.c return mtk_nfc_read_subpage(nand_to_mtd(chip), chip, off, len, p, pg, off 339 drivers/mtd/nand/raw/nandsim.c uint off; /* fixed page offset */ off 1158 drivers/mtd/nand/raw/nandsim.c ns->regs.off = 0; off 1374 drivers/mtd/nand/raw/nandsim.c return NS_GET_PAGE(ns)->byte + ns->regs.column + ns->regs.off; off 1400 drivers/mtd/nand/raw/nandsim.c pos, ns->regs.row, ns->regs.column + ns->regs.off, off 1422 drivers/mtd/nand/raw/nandsim.c ns->regs.row, ns->regs.column + ns->regs.off); off 1425 drivers/mtd/nand/raw/nandsim.c pos = (loff_t)NS_RAW_OFFSET(ns) + ns->regs.off; off 1442 drivers/mtd/nand/raw/nandsim.c ns->regs.row, ns->regs.column + ns->regs.off); off 1488 drivers/mtd/nand/raw/nandsim.c loff_t off; off 1493 drivers/mtd/nand/raw/nandsim.c pg_off = ns->file_buf + ns->regs.column + ns->regs.off; off 1494 drivers/mtd/nand/raw/nandsim.c off = (loff_t)NS_RAW_OFFSET(ns) + ns->regs.off; off 1500 drivers/mtd/nand/raw/nandsim.c tx = read_file(ns, ns->cfile, pg_off, num, off); off 1517 drivers/mtd/nand/raw/nandsim.c tx = write_file(ns, ns->cfile, pg_off, num, off); off 1577 drivers/mtd/nand/raw/nandsim.c if (ns->regs.column >= (ns->geom.pgszoob - ns->regs.off)) { off 1581 drivers/mtd/nand/raw/nandsim.c num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; off 1585 drivers/mtd/nand/raw/nandsim.c num, NS_RAW_OFFSET(ns) + ns->regs.off); off 1587 drivers/mtd/nand/raw/nandsim.c if (ns->regs.off == 0) off 1589 drivers/mtd/nand/raw/nandsim.c else if (ns->regs.off < ns->geom.pgsz) off 1649 drivers/mtd/nand/raw/nandsim.c num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; off 1662 drivers/mtd/nand/raw/nandsim.c num, ns->regs.row, ns->regs.column, NS_RAW_OFFSET(ns) + ns->regs.off); off 1677 drivers/mtd/nand/raw/nandsim.c ns->regs.off = 0; off 1687 drivers/mtd/nand/raw/nandsim.c ns->regs.off = ns->geom.pgsz/2; off 1692 drivers/mtd/nand/raw/nandsim.c ns->regs.off = ns->geom.pgsz; off 1796 drivers/mtd/nand/raw/nandsim.c ns->regs.num = ns->geom.pgszoob - ns->regs.off - ns->regs.column; off 1821 drivers/mtd/nand/raw/omap2.c int off = BADBLOCK_MARKER_LENGTH; off 1825 drivers/mtd/nand/raw/omap2.c off = 1; off 1830 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; off 1841 drivers/mtd/nand/raw/omap2.c int off = BADBLOCK_MARKER_LENGTH; off 1845 drivers/mtd/nand/raw/omap2.c off = 1; off 1850 drivers/mtd/nand/raw/omap2.c off += chip->ecc.total; off 1851 drivers/mtd/nand/raw/omap2.c if (off >= mtd->oobsize) off 1854 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; off 1855 drivers/mtd/nand/raw/omap2.c oobregion->length = mtd->oobsize - off; off 1869 drivers/mtd/nand/raw/omap2.c int off = BADBLOCK_MARKER_LENGTH; off 1878 drivers/mtd/nand/raw/omap2.c oobregion->offset = off + (section * (chip->ecc.bytes + 1)); off 1888 drivers/mtd/nand/raw/omap2.c int off = BADBLOCK_MARKER_LENGTH; off 1897 drivers/mtd/nand/raw/omap2.c off += ((chip->ecc.bytes + 1) * chip->ecc.steps); off 1898 drivers/mtd/nand/raw/omap2.c if (off >= mtd->oobsize) off 1901 drivers/mtd/nand/raw/omap2.c oobregion->offset = off; off 1902 drivers/mtd/nand/raw/omap2.c oobregion->length = mtd->oobsize - off; off 153 drivers/mtd/nand/raw/tegra_nand.c #define OFFSET(val, off) ((val) < (off) ? 0 : (val) - (off)) off 78 drivers/mtd/parsers/afs.c static bool afs_is_v1(struct mtd_info *mtd, u_int off) off 81 drivers/mtd/parsers/afs.c u_int ptr = off + mtd->erasesize - 12; off 98 drivers/mtd/parsers/afs.c static bool afs_is_v2(struct mtd_info *mtd, u_int off) off 101 drivers/mtd/parsers/afs.c u_int ptr = off + mtd->erasesize - 8; off 120 drivers/mtd/parsers/afs.c u_int off, struct mtd_partition *part) off 142 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(fs); off 177 drivers/mtd/parsers/afs.c if (img_ptr > off) off 217 drivers/mtd/parsers/afs.c u_int off, struct mtd_partition *part) off 236 drivers/mtd/parsers/afs.c off, off + mtd->erasesize); off 239 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(footer); off 248 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(footer) - footer[8]; off 303 drivers/mtd/parsers/afs.c region_start = off + region_offset; off 328 drivers/mtd/parsers/afs.c u_int off, sz; off 333 drivers/mtd/parsers/afs.c for (i = off = sz = 0; off < mtd->size; off += mtd->erasesize) { off 334 drivers/mtd/parsers/afs.c if (afs_is_v1(mtd, off)) { off 338 drivers/mtd/parsers/afs.c if (afs_is_v2(mtd, off)) { off 354 drivers/mtd/parsers/afs.c for (i = off = 0; off < mtd->size; off += mtd->erasesize) { off 355 drivers/mtd/parsers/afs.c if (afs_is_v1(mtd, off)) { off 356 drivers/mtd/parsers/afs.c ret = afs_parse_v1_partition(mtd, off, &parts[i]); off 361 drivers/mtd/parsers/afs.c if (afs_is_v2(mtd, off)) { off 362 drivers/mtd/parsers/afs.c ret = afs_parse_v2_partition(mtd, off, &parts[i]); off 177 drivers/mtd/ubi/cdev.c int err, lnum, off, len, tbuf_size; off 209 drivers/mtd/ubi/cdev.c lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); off 214 drivers/mtd/ubi/cdev.c if (off + len >= vol->usable_leb_size) off 215 drivers/mtd/ubi/cdev.c len = vol->usable_leb_size - off; off 217 drivers/mtd/ubi/cdev.c err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0); off 221 drivers/mtd/ubi/cdev.c off += len; off 222 drivers/mtd/ubi/cdev.c if (off == vol->usable_leb_size) { off 224 drivers/mtd/ubi/cdev.c off -= vol->usable_leb_size; off 254 drivers/mtd/ubi/cdev.c int lnum, off, len, tbuf_size, err = 0; off 267 drivers/mtd/ubi/cdev.c lnum = div_u64_rem(*offp, vol->usable_leb_size, &off); off 268 drivers/mtd/ubi/cdev.c if (off & (ubi->min_io_size - 1)) { off 294 drivers/mtd/ubi/cdev.c if (off + len >= vol->usable_leb_size) off 295 drivers/mtd/ubi/cdev.c len = vol->usable_leb_size - off; off 303 drivers/mtd/ubi/cdev.c err = ubi_eba_write_leb(ubi, vol, lnum, tbuf, off, len); off 307 drivers/mtd/ubi/cdev.c off += len; off 308 drivers/mtd/ubi/cdev.c if (off == vol->usable_leb_size) { off 310 drivers/mtd/ubi/cdev.c off -= vol->usable_leb_size; off 16 drivers/net/bonding/bond_procfs.c loff_t off = 0; off 24 drivers/net/bonding/bond_procfs.c if (++off == *pos) off 337 drivers/net/can/m_can/m_can.c u32 addr_offset = cdev->mcfg[MRAM_RXF0].off + fgi * RXF0_ELEMENT_SIZE + off 346 drivers/net/can/m_can/m_can.c u32 addr_offset = cdev->mcfg[MRAM_TXB].off + fpi * TXB_ELEMENT_SIZE + off 360 drivers/net/can/m_can/m_can.c u32 addr_offset = cdev->mcfg[MRAM_TXE].off + fgi * TXE_ELEMENT_SIZE + off 1100 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXB].off); off 1105 drivers/net/can/m_can/m_can.c (cdev->mcfg[MRAM_TXB].off)); off 1114 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXE].off); off 1120 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXE].off); off 1126 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF0].off); off 1130 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF1].off); off 1655 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_SIDF].off = mram_config_vals[0]; off 1657 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_XIDF].off = cdev->mcfg[MRAM_SIDF].off + off 1660 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF0].off = cdev->mcfg[MRAM_XIDF].off + off 1664 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF1].off = cdev->mcfg[MRAM_RXF0].off + off 1668 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXB].off = cdev->mcfg[MRAM_RXF1].off + off 1671 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXE].off = cdev->mcfg[MRAM_RXB].off + off 1674 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXB].off = cdev->mcfg[MRAM_TXE].off + off 1681 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_SIDF].off, cdev->mcfg[MRAM_SIDF].num, off 1682 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_XIDF].off, cdev->mcfg[MRAM_XIDF].num, off 1683 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF0].off, cdev->mcfg[MRAM_RXF0].num, off 1684 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXF1].off, cdev->mcfg[MRAM_RXF1].num, off 1685 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_RXB].off, cdev->mcfg[MRAM_RXB].num, off 1686 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXE].off, cdev->mcfg[MRAM_TXE].num, off 1687 drivers/net/can/m_can/m_can.c cdev->mcfg[MRAM_TXB].off, cdev->mcfg[MRAM_TXB].num); off 1697 drivers/net/can/m_can/m_can.c start = cdev->mcfg[MRAM_SIDF].off; off 1698 drivers/net/can/m_can/m_can.c end = cdev->mcfg[MRAM_TXB].off + off 56 drivers/net/can/m_can/m_can.h u16 off; off 594 drivers/net/can/rcar/rcar_canfd.c struct canfd_frame *cf, u32 off) off 601 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_read(priv->base, off + (i * sizeof(u32))); off 605 drivers/net/can/rcar/rcar_canfd.c struct canfd_frame *cf, u32 off) off 611 drivers/net/can/rcar/rcar_canfd.c rcar_canfd_write(priv->base, off + (i * sizeof(u32)), off 996 drivers/net/dsa/b53/b53_common.c u8 reg, val, off; off 1000 drivers/net/dsa/b53/b53_common.c off = B53_PORT_OVERRIDE_CTRL; off 1003 drivers/net/dsa/b53/b53_common.c off = B53_GMII_PORT_OVERRIDE_CTRL(port); off 1007 drivers/net/dsa/b53/b53_common.c b53_read8(dev, B53_CTRL_PAGE, off, ®); off 1013 drivers/net/dsa/b53/b53_common.c b53_write8(dev, B53_CTRL_PAGE, off, reg); off 1019 drivers/net/dsa/b53/b53_common.c u8 reg, val, off; off 1023 drivers/net/dsa/b53/b53_common.c off = B53_PORT_OVERRIDE_CTRL; off 1026 drivers/net/dsa/b53/b53_common.c off = B53_GMII_PORT_OVERRIDE_CTRL(port); off 1030 drivers/net/dsa/b53/b53_common.c b53_read8(dev, B53_CTRL_PAGE, off, ®); off 1060 drivers/net/dsa/b53/b53_common.c b53_write8(dev, B53_CTRL_PAGE, off, reg); off 1068 drivers/net/dsa/b53/b53_common.c u8 rgmii_ctrl = 0, reg = 0, off; off 1089 drivers/net/dsa/b53/b53_common.c off = B53_RGMII_CTRL_IMP; off 1091 drivers/net/dsa/b53/b53_common.c off = B53_RGMII_CTRL_P(port); off 1096 drivers/net/dsa/b53/b53_common.c b53_read8(dev, B53_CTRL_PAGE, off, &rgmii_ctrl); off 1119 drivers/net/dsa/b53/b53_common.c b53_write8(dev, B53_CTRL_PAGE, off, rgmii_ctrl); off 540 drivers/net/dsa/b53/b53_srab.c u32 reg, off = 0; off 553 drivers/net/dsa/b53/b53_srab.c for (port = 5; port > 3; port--, off += 4) { off 556 drivers/net/dsa/b53/b53_srab.c reg = readl(priv->mux_config + B53_MUX_CONFIG_P5 + off); off 119 drivers/net/dsa/bcm_sf2.c unsigned int off; off 123 drivers/net/dsa/bcm_sf2.c off = P7_IRQ_OFF; off 130 drivers/net/dsa/bcm_sf2.c off = P_IRQ_OFF(port); off 134 drivers/net/dsa/bcm_sf2.c intrl2_1_mask_clear(priv, P_IRQ_MASK(off)); off 140 drivers/net/dsa/bcm_sf2.c unsigned int off; off 144 drivers/net/dsa/bcm_sf2.c off = P7_IRQ_OFF; off 152 drivers/net/dsa/bcm_sf2.c off = P_IRQ_OFF(port); off 156 drivers/net/dsa/bcm_sf2.c intrl2_1_mask_set(priv, P_IRQ_MASK(off)); off 157 drivers/net/dsa/bcm_sf2.c intrl2_1_writel(priv, P_IRQ_MASK(off), INTRL2_CPU_CLEAR); off 119 drivers/net/dsa/bcm_sf2.h static inline u32 bcm_sf2_mangle_addr(struct bcm_sf2_priv *priv, u32 off) off 121 drivers/net/dsa/bcm_sf2.h return off << priv->core_reg_align; off 125 drivers/net/dsa/bcm_sf2.h static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \ off 127 drivers/net/dsa/bcm_sf2.h return readl_relaxed(priv->name + off); \ off 130 drivers/net/dsa/bcm_sf2.h u32 val, u32 off) \ off 132 drivers/net/dsa/bcm_sf2.h writel_relaxed(val, priv->name + off); \ off 141 drivers/net/dsa/bcm_sf2.h static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \ off 145 drivers/net/dsa/bcm_sf2.h dir = name##_readl(priv, off); \ off 151 drivers/net/dsa/bcm_sf2.h u32 off) \ off 155 drivers/net/dsa/bcm_sf2.h name##_writel(priv, lower_32_bits(val), off); \ off 173 drivers/net/dsa/bcm_sf2.h static inline u32 core_readl(struct bcm_sf2_priv *priv, u32 off) off 175 drivers/net/dsa/bcm_sf2.h u32 tmp = bcm_sf2_mangle_addr(priv, off); off 179 drivers/net/dsa/bcm_sf2.h static inline void core_writel(struct bcm_sf2_priv *priv, u32 val, u32 off) off 181 drivers/net/dsa/bcm_sf2.h u32 tmp = bcm_sf2_mangle_addr(priv, off); off 185 drivers/net/dsa/bcm_sf2.h static inline u32 reg_readl(struct bcm_sf2_priv *priv, u16 off) off 187 drivers/net/dsa/bcm_sf2.h return readl_relaxed(priv->reg + priv->reg_offsets[off]); off 190 drivers/net/dsa/bcm_sf2.h static inline void reg_writel(struct bcm_sf2_priv *priv, u32 val, u16 off) off 192 drivers/net/dsa/bcm_sf2.h writel_relaxed(val, priv->reg + priv->reg_offsets[off]); off 87 drivers/net/ethernet/amd/am79c961a.c #define am_writeword(dev,off,val) __raw_writew(val, ISAMEM_BASE + ((off) << 1)) off 88 drivers/net/ethernet/amd/am79c961a.c #define am_readword(dev,off) __raw_readw(ISAMEM_BASE + ((off) << 1)) off 229 drivers/net/ethernet/amd/declance.c #define shift_off(off, type) \ off 230 drivers/net/ethernet/amd/declance.c (type == ASIC_LANCE || type == PMAX_LANCE ? off << 1 : off) off 37 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u32 enet_readl(struct bcm_enet_priv *priv, u32 off) off 39 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readl(priv->base + off); off 43 drivers/net/ethernet/broadcom/bcm63xx_enet.c u32 val, u32 off) off 45 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writel(val, priv->base + off); off 51 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u32 enetsw_readl(struct bcm_enet_priv *priv, u32 off) off 53 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readl(priv->base + off); off 57 drivers/net/ethernet/broadcom/bcm63xx_enet.c u32 val, u32 off) off 59 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writel(val, priv->base + off); off 62 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u16 enetsw_readw(struct bcm_enet_priv *priv, u32 off) off 64 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readw(priv->base + off); off 68 drivers/net/ethernet/broadcom/bcm63xx_enet.c u16 val, u32 off) off 70 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writew(val, priv->base + off); off 73 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u8 enetsw_readb(struct bcm_enet_priv *priv, u32 off) off 75 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readb(priv->base + off); off 79 drivers/net/ethernet/broadcom/bcm63xx_enet.c u8 val, u32 off) off 81 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writeb(val, priv->base + off); off 86 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u32 enet_dma_readl(struct bcm_enet_priv *priv, u32 off) off 88 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readl(bcm_enet_shared_base[0] + off); off 92 drivers/net/ethernet/broadcom/bcm63xx_enet.c u32 val, u32 off) off 94 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writel(val, bcm_enet_shared_base[0] + off); off 97 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u32 enet_dmac_readl(struct bcm_enet_priv *priv, u32 off, int chan) off 100 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm63xx_enetdmacreg(off) + chan * priv->dma_chan_width); off 104 drivers/net/ethernet/broadcom/bcm63xx_enet.c u32 val, u32 off, int chan) off 107 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm63xx_enetdmacreg(off) + chan * priv->dma_chan_width); off 110 drivers/net/ethernet/broadcom/bcm63xx_enet.c static inline u32 enet_dmas_readl(struct bcm_enet_priv *priv, u32 off, int chan) off 112 drivers/net/ethernet/broadcom/bcm63xx_enet.c return bcm_readl(bcm_enet_shared_base[2] + off + chan * priv->dma_chan_width); off 116 drivers/net/ethernet/broadcom/bcm63xx_enet.c u32 val, u32 off, int chan) off 118 drivers/net/ethernet/broadcom/bcm63xx_enet.c bcm_writel(val, bcm_enet_shared_base[2] + off + chan * priv->dma_chan_width); off 30 drivers/net/ethernet/broadcom/bcmsysport.c static inline u32 name##_readl(struct bcm_sysport_priv *priv, u32 off) \ off 32 drivers/net/ethernet/broadcom/bcmsysport.c u32 reg = readl_relaxed(priv->base + offset + off); \ off 36 drivers/net/ethernet/broadcom/bcmsysport.c u32 val, u32 off) \ off 38 drivers/net/ethernet/broadcom/bcmsysport.c writel_relaxed(val, priv->base + offset + off); \ off 55 drivers/net/ethernet/broadcom/bcmsysport.c static inline u32 rdma_readl(struct bcm_sysport_priv *priv, u32 off) off 57 drivers/net/ethernet/broadcom/bcmsysport.c if (priv->is_lite && off >= RDMA_STATUS) off 58 drivers/net/ethernet/broadcom/bcmsysport.c off += 4; off 59 drivers/net/ethernet/broadcom/bcmsysport.c return readl_relaxed(priv->base + SYS_PORT_RDMA_OFFSET + off); off 62 drivers/net/ethernet/broadcom/bcmsysport.c static inline void rdma_writel(struct bcm_sysport_priv *priv, u32 val, u32 off) off 64 drivers/net/ethernet/broadcom/bcmsysport.c if (priv->is_lite && off >= RDMA_STATUS) off 65 drivers/net/ethernet/broadcom/bcmsysport.c off += 4; off 66 drivers/net/ethernet/broadcom/bcmsysport.c writel_relaxed(val, priv->base + SYS_PORT_RDMA_OFFSET + off); off 6494 drivers/net/ethernet/broadcom/bnx2.c u32 off; off 6515 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_rd_ind(bp, ftq_arr[i].off)); off 8267 drivers/net/ethernet/broadcom/bnx2.c u32 off = bp->func << 2; off 8269 drivers/net/ethernet/broadcom/bnx2.c bp->shmem_base = bnx2_reg_rd_ind(bp, BNX2_SHM_HDR_ADDR_0 + off); off 935 drivers/net/ethernet/broadcom/bnxt/bnxt.c int off, err; off 956 drivers/net/ethernet/broadcom/bnxt/bnxt.c off = (void *)data_ptr - page_address(page); off 957 drivers/net/ethernet/broadcom/bnxt/bnxt.c skb_add_rx_frag(skb, 0, page, off, len, PAGE_SIZE); off 7886 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, off, count; off 7890 drivers/net/ethernet/broadcom/bnxt/bnxt.c off = i * count; off 7891 drivers/net/ethernet/broadcom/bnxt/bnxt.c netdev_set_tc_queue(dev, i, count, off); off 9522 drivers/net/ethernet/broadcom/bnxt/bnxt.c int off = 0; off 9531 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!ether_addr_equal(haddr, vnic->mc_list + off)) { off 9532 drivers/net/ethernet/broadcom/bnxt/bnxt.c memcpy(vnic->mc_list + off, haddr, ETH_ALEN); off 9535 drivers/net/ethernet/broadcom/bnxt/bnxt.c off += ETH_ALEN; off 9553 drivers/net/ethernet/broadcom/bnxt/bnxt.c int off = 0; off 9559 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (!ether_addr_equal(ha->addr, vnic->uc_list + off)) off 9562 drivers/net/ethernet/broadcom/bnxt/bnxt.c off += ETH_ALEN; off 9612 drivers/net/ethernet/broadcom/bnxt/bnxt.c int i, off = 0, rc; off 9643 drivers/net/ethernet/broadcom/bnxt/bnxt.c memcpy(vnic->uc_list + off, ha->addr, ETH_ALEN); off 9644 drivers/net/ethernet/broadcom/bnxt/bnxt.c off += ETH_ALEN; off 9650 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (i = 1, off = 0; i < vnic->uc_filter_count; i++, off += ETH_ALEN) { off 9651 drivers/net/ethernet/broadcom/bnxt/bnxt.c rc = bnxt_hwrm_set_vnic_filter(bp, 0, i, vnic->uc_list + off); off 11046 drivers/net/ethernet/broadcom/bnxt/bnxt.c int off = 0, j; off 11049 drivers/net/ethernet/broadcom/bnxt/bnxt.c for (j = 0; j < vnic->uc_filter_count; j++, off += ETH_ALEN) { off 11051 drivers/net/ethernet/broadcom/bnxt/bnxt.c vnic->uc_list + off)) { off 3026 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c int rc, off = 0; off 3066 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if ((info->seg_start + off + len) <= off 3068 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c memcpy(info->dest_buf + off, dma_buf, len); off 3083 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c off += len; off 188 drivers/net/ethernet/broadcom/cnic.c static void cnic_ctx_wr(struct cnic_dev *dev, u32 cid_addr, u32 off, u32 val) off 198 drivers/net/ethernet/broadcom/cnic.c io->offset = off; off 203 drivers/net/ethernet/broadcom/cnic.c static void cnic_ctx_tbl_wr(struct cnic_dev *dev, u32 off, dma_addr_t addr) off 212 drivers/net/ethernet/broadcom/cnic.c io->offset = off; off 235 drivers/net/ethernet/broadcom/cnic.c static void cnic_reg_wr_ind(struct cnic_dev *dev, u32 off, u32 val) off 244 drivers/net/ethernet/broadcom/cnic.c io->offset = off; off 249 drivers/net/ethernet/broadcom/cnic.c static u32 cnic_reg_rd_ind(struct cnic_dev *dev, u32 off) off 258 drivers/net/ethernet/broadcom/cnic.c io->offset = off; off 925 drivers/net/ethernet/broadcom/cnic.c u32 j, reg, off, lo, hi; off 928 drivers/net/ethernet/broadcom/cnic.c off = BNX2_PG_CTX_MAP; off 930 drivers/net/ethernet/broadcom/cnic.c off = BNX2_ISCSI_CTX_MAP; off 932 drivers/net/ethernet/broadcom/cnic.c reg = cnic_reg_rd_ind(dev, off); off 1285 drivers/net/ethernet/broadcom/cnic.c long off = CNIC_KWQ16_DATA_SIZE * (i % n); off 1287 drivers/net/ethernet/broadcom/cnic.c cp->ctx_tbl[i].kwqe_data = kwq_16_dma->pg_arr[j] + off; off 1289 drivers/net/ethernet/broadcom/cnic.c off; off 1661 drivers/net/ethernet/broadcom/cnic.c int off = (cid - ethdev->starting_cid) % cp->cids_per_blk; off 1674 drivers/net/ethernet/broadcom/cnic.c (off * BNX2X_CONTEXT_MEM_SIZE); off 1676 drivers/net/ethernet/broadcom/cnic.c (off * BNX2X_CONTEXT_MEM_SIZE); off 5185 drivers/net/ethernet/broadcom/cnic.c u32 off, i, *cid_ptr; off 5193 drivers/net/ethernet/broadcom/cnic.c off = BAR_USTRORM_INTMEM + off 5199 drivers/net/ethernet/broadcom/cnic.c CNIC_WR(dev, off + i * 4, ((u32 *) &rx_prods)[i]); off 353 drivers/net/ethernet/broadcom/cnic_if.h #define CNIC_WR(dev, off, val) writel(val, dev->regview + off) off 354 drivers/net/ethernet/broadcom/cnic_if.h #define CNIC_WR16(dev, off, val) writew(val, dev->regview + off) off 355 drivers/net/ethernet/broadcom/cnic_if.h #define CNIC_WR8(dev, off, val) writeb(val, dev->regview + off) off 356 drivers/net/ethernet/broadcom/cnic_if.h #define CNIC_RD(dev, off) readl(dev->regview + off) off 357 drivers/net/ethernet/broadcom/cnic_if.h #define CNIC_RD16(dev, off) readw(dev->regview + off) off 1021 drivers/net/ethernet/broadcom/genet/bcmgenet.c u32 off = priv->hw_params->tbuf_offset + TBUF_ENERGY_CTRL; off 1037 drivers/net/ethernet/broadcom/genet/bcmgenet.c reg = bcmgenet_readl(priv->base + off); off 1042 drivers/net/ethernet/broadcom/genet/bcmgenet.c bcmgenet_writel(reg, priv->base + off); off 685 drivers/net/ethernet/broadcom/genet/bcmgenet.h u32 off) \ off 691 drivers/net/ethernet/broadcom/genet/bcmgenet.h return __raw_readl(priv->base + offset + off); \ off 693 drivers/net/ethernet/broadcom/genet/bcmgenet.h return readl_relaxed(priv->base + offset + off); \ off 696 drivers/net/ethernet/broadcom/genet/bcmgenet.h u32 val, u32 off) \ off 699 drivers/net/ethernet/broadcom/genet/bcmgenet.h __raw_writel(val, priv->base + offset + off); \ off 701 drivers/net/ethernet/broadcom/genet/bcmgenet.h writel_relaxed(val, priv->base + offset + off); \ off 474 drivers/net/ethernet/broadcom/tg3.c static void tg3_write32(struct tg3 *tp, u32 off, u32 val) off 476 drivers/net/ethernet/broadcom/tg3.c writel(val, tp->regs + off); off 479 drivers/net/ethernet/broadcom/tg3.c static u32 tg3_read32(struct tg3 *tp, u32 off) off 481 drivers/net/ethernet/broadcom/tg3.c return readl(tp->regs + off); off 484 drivers/net/ethernet/broadcom/tg3.c static void tg3_ape_write32(struct tg3 *tp, u32 off, u32 val) off 486 drivers/net/ethernet/broadcom/tg3.c writel(val, tp->aperegs + off); off 489 drivers/net/ethernet/broadcom/tg3.c static u32 tg3_ape_read32(struct tg3 *tp, u32 off) off 491 drivers/net/ethernet/broadcom/tg3.c return readl(tp->aperegs + off); off 494 drivers/net/ethernet/broadcom/tg3.c static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val) off 499 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); off 504 drivers/net/ethernet/broadcom/tg3.c static void tg3_write_flush_reg32(struct tg3 *tp, u32 off, u32 val) off 506 drivers/net/ethernet/broadcom/tg3.c writel(val, tp->regs + off); off 507 drivers/net/ethernet/broadcom/tg3.c readl(tp->regs + off); off 510 drivers/net/ethernet/broadcom/tg3.c static u32 tg3_read_indirect_reg32(struct tg3 *tp, u32 off) off 516 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off); off 522 drivers/net/ethernet/broadcom/tg3.c static void tg3_write_indirect_mbox(struct tg3 *tp, u32 off, u32 val) off 526 drivers/net/ethernet/broadcom/tg3.c if (off == (MAILBOX_RCVRET_CON_IDX_0 + TG3_64BIT_REG_LOW)) { off 531 drivers/net/ethernet/broadcom/tg3.c if (off == TG3_RX_STD_PROD_IDX_REG) { off 538 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off + 0x5600); off 545 drivers/net/ethernet/broadcom/tg3.c if ((off == (MAILBOX_INTERRUPT_0 + TG3_64BIT_REG_LOW)) && off 552 drivers/net/ethernet/broadcom/tg3.c static u32 tg3_read_indirect_mbox(struct tg3 *tp, u32 off) off 558 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_REG_BASE_ADDR, off + 0x5600); off 569 drivers/net/ethernet/broadcom/tg3.c static void _tw32_flush(struct tg3 *tp, u32 off, u32 val, u32 usec_wait) off 573 drivers/net/ethernet/broadcom/tg3.c tp->write32(tp, off, val); off 576 drivers/net/ethernet/broadcom/tg3.c tg3_write32(tp, off, val); off 579 drivers/net/ethernet/broadcom/tg3.c tp->read32(tp, off); off 588 drivers/net/ethernet/broadcom/tg3.c static inline void tw32_mailbox_flush(struct tg3 *tp, u32 off, u32 val) off 590 drivers/net/ethernet/broadcom/tg3.c tp->write32_mbox(tp, off, val); off 594 drivers/net/ethernet/broadcom/tg3.c tp->read32_mbox(tp, off); off 597 drivers/net/ethernet/broadcom/tg3.c static void tg3_write32_tx_mbox(struct tg3 *tp, u32 off, u32 val) off 599 drivers/net/ethernet/broadcom/tg3.c void __iomem *mbox = tp->regs + off; off 608 drivers/net/ethernet/broadcom/tg3.c static u32 tg3_read32_mbox_5906(struct tg3 *tp, u32 off) off 610 drivers/net/ethernet/broadcom/tg3.c return readl(tp->regs + off + GRCMBOX_BASE); off 613 drivers/net/ethernet/broadcom/tg3.c static void tg3_write32_mbox_5906(struct tg3 *tp, u32 off, u32 val) off 615 drivers/net/ethernet/broadcom/tg3.c writel(val, tp->regs + off + GRCMBOX_BASE); off 629 drivers/net/ethernet/broadcom/tg3.c static void tg3_write_mem(struct tg3 *tp, u32 off, u32 val) off 634 drivers/net/ethernet/broadcom/tg3.c (off >= NIC_SRAM_STATS_BLK) && (off < NIC_SRAM_TX_BUFFER_DESC)) off 639 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); off 645 drivers/net/ethernet/broadcom/tg3.c tw32_f(TG3PCI_MEM_WIN_BASE_ADDR, off); off 654 drivers/net/ethernet/broadcom/tg3.c static void tg3_read_mem(struct tg3 *tp, u32 off, u32 *val) off 659 drivers/net/ethernet/broadcom/tg3.c (off >= NIC_SRAM_STATS_BLK) && (off < NIC_SRAM_TX_BUFFER_DESC)) { off 666 drivers/net/ethernet/broadcom/tg3.c pci_write_config_dword(tp->pdev, TG3PCI_MEM_WIN_BASE_ADDR, off); off 672 drivers/net/ethernet/broadcom/tg3.c tw32_f(TG3PCI_MEM_WIN_BASE_ADDR, off); off 713 drivers/net/ethernet/broadcom/tg3.c int i, off; off 750 drivers/net/ethernet/broadcom/tg3.c off = 4 * locknum; off 752 drivers/net/ethernet/broadcom/tg3.c tg3_ape_write32(tp, req + off, bit); off 756 drivers/net/ethernet/broadcom/tg3.c status = tg3_ape_read32(tp, gnt + off); off 767 drivers/net/ethernet/broadcom/tg3.c tg3_ape_write32(tp, gnt + off, bit); off 6398 drivers/net/ethernet/broadcom/tg3.c static inline void tg3_rd32_loop(struct tg3 *tp, u32 *dst, u32 off, u32 len) off 6402 drivers/net/ethernet/broadcom/tg3.c dst = (u32 *)((u8 *)dst + off); off 6404 drivers/net/ethernet/broadcom/tg3.c *dst++ = tr32(off + i); off 10811 drivers/net/ethernet/broadcom/tg3.c u32 off = i * TG3_OCIR_LEN, len = TG3_OCIR_LEN; off 10813 drivers/net/ethernet/broadcom/tg3.c tg3_ape_scratchpad_read(tp, (u32 *) ocir, off, len); off 10814 drivers/net/ethernet/broadcom/tg3.c off += len; off 15369 drivers/net/ethernet/broadcom/tg3.c u32 val2, off = offset * 8; off 15375 drivers/net/ethernet/broadcom/tg3.c tg3_ape_write32(tp, TG3_APE_OTP_ADDR, off | APE_OTP_ADDR_CPU_ENABLE); off 1697 drivers/net/ethernet/brocade/bna/bfa_ioc.c u32 off, l, s, residue, fifo_sz; off 1700 drivers/net/ethernet/brocade/bna/bfa_ioc.c off = 0; off 1707 drivers/net/ethernet/brocade/bna/bfa_ioc.c s = offset + off; off 1713 drivers/net/ethernet/brocade/bna/bfa_ioc.c status = bfa_flash_read_start(pci_bar, offset + off, l, off 1714 drivers/net/ethernet/brocade/bna/bfa_ioc.c &buf[off]); off 1728 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_flash_read_end(pci_bar, l, &buf[off]); off 1731 drivers/net/ethernet/brocade/bna/bfa_ioc.c off += l; off 1741 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_nw_ioc_flash_img_get_chnk(struct bfa_ioc *ioc, u32 off, off 1745 drivers/net/ethernet/brocade/bna/bfa_ioc.c BFA_FLASH_PART_FWIMG_ADDR + (off * sizeof(u32)), off 239 drivers/net/ethernet/brocade/bna/bfa_ioc.h #define BFA_IOC_FLASH_CHUNK_NO(off) (off / BFI_FLASH_CHUNK_SZ_WORDS) off 240 drivers/net/ethernet/brocade/bna/bfa_ioc.h #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) off 307 drivers/net/ethernet/brocade/bna/bfa_ioc.h u32 *bfa_cb_image_get_chunk(enum bfi_asic_gen asic_gen, u32 off); off 66 drivers/net/ethernet/brocade/bna/cna_fwimg.c bfa_cb_image_get_chunk(enum bfi_asic_gen asic_gen, u32 off) off 70 drivers/net/ethernet/brocade/bna/cna_fwimg.c return (bfi_image_ct_cna + off); off 72 drivers/net/ethernet/brocade/bna/cna_fwimg.c return (bfi_image_ct2_cna + off); off 120 drivers/net/ethernet/chelsio/cxgb3/aq100x.c static int aq100x_power_down(struct cphy *phy, int off) off 124 drivers/net/ethernet/chelsio/cxgb3/aq100x.c MDIO_CTRL1_LPOWER, off); off 1617 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h void t4_memory_rw_residual(struct adapter *adap, u32 off, u32 addr, u8 *buf, off 51 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c int off, err; off 55 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c off = cls->knode.sel->keys[i].off; off 72 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (off == entry[j].off) { off 220 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c int off; off 236 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c next[i].offset != cls->knode.sel->off) off 244 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c off = cls->knode.sel->keys[j].off; off 248 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c if (next[i].match_off == off && off 39 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h int off; /* Offset from the beginning of the header to match */ off 104 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 0, .val = cxgb4_fill_ipv4_tos }, off 105 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 4, .val = cxgb4_fill_ipv4_frag }, off 106 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 8, .val = cxgb4_fill_ipv4_proto }, off 107 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 12, .val = cxgb4_fill_ipv4_src_ip }, off 108 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 16, .val = cxgb4_fill_ipv4_dst_ip }, off 204 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 0, .val = cxgb4_fill_ipv6_tos }, off 205 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 4, .val = cxgb4_fill_ipv6_proto }, off 206 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 8, .val = cxgb4_fill_ipv6_src_ip0 }, off 207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 12, .val = cxgb4_fill_ipv6_src_ip1 }, off 208 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 16, .val = cxgb4_fill_ipv6_src_ip2 }, off 209 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 20, .val = cxgb4_fill_ipv6_src_ip3 }, off 210 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 24, .val = cxgb4_fill_ipv6_dst_ip0 }, off 211 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 28, .val = cxgb4_fill_ipv6_dst_ip1 }, off 212 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 32, .val = cxgb4_fill_ipv6_dst_ip2 }, off 213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 36, .val = cxgb4_fill_ipv6_dst_ip3 }, off 230 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 0, .val = cxgb4_fill_l4_ports }, off 235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h { .off = 0, .val = cxgb4_fill_l4_ports }, off 573 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c void t4_memory_rw_residual(struct adapter *adap, u32 off, u32 addr, u8 *buf, off 586 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (bp = (unsigned char *)buf, i = off; i < 4; i++) off 590 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (i = off; i < 4; i++) off 256 drivers/net/ethernet/cirrus/cs89x0.c get_eeprom_data(struct net_device *dev, int off, int len, int *buffer) off 260 drivers/net/ethernet/cirrus/cs89x0.c cs89_dbg(3, info, "EEPROM data from %x for %x:", off, len); off 265 drivers/net/ethernet/cirrus/cs89x0.c writereg(dev, PP_EECMD, (off + i) | EEPROM_READ_CMD); off 276 drivers/net/ethernet/cirrus/cs89x0.c get_eeprom_cksum(int off, int len, int *buffer) off 178 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdb(ep, off) __raw_readb((ep)->base_addr + (off)) off 179 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdw(ep, off) __raw_readw((ep)->base_addr + (off)) off 180 drivers/net/ethernet/cirrus/ep93xx_eth.c #define rdl(ep, off) __raw_readl((ep)->base_addr + (off)) off 181 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrb(ep, off, val) __raw_writeb((val), (ep)->base_addr + (off)) off 182 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrw(ep, off, val) __raw_writew((val), (ep)->base_addr + (off)) off 183 drivers/net/ethernet/cirrus/ep93xx_eth.c #define wrl(ep, off, val) __raw_writel((val), (ep)->base_addr + (off)) off 2920 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int i, off = 0; off 2925 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c return off; off 2926 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c off += dist_fields[i].size; off 2938 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c int off = 0, new_off = 0; off 2944 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c memcpy(key_mem + new_off, key_mem + off, size); off 2947 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c off += size; off 277 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int off; off 280 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_TYPE); off 281 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = eth_value->h_proto; off 282 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = eth_mask->h_proto; off 287 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_SA); off 288 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, eth_value->h_source); off 289 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(mask + off, eth_mask->h_source); off 294 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_DA); off 295 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, eth_value->h_dest); off 296 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(mask + off, eth_mask->h_dest); off 307 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int off; off 314 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_SRC); off 315 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = uip_value->ip4src; off 316 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(mask + off) = uip_mask->ip4src; off 321 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_DST); off 322 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = uip_value->ip4dst; off 323 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(mask + off) = uip_mask->ip4dst; off 328 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_PROTO); off 329 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(key + off) = uip_value->proto; off 330 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(mask + off) = uip_mask->proto; off 338 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_UDP, NH_FLD_UDP_PORT_SRC); off 339 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value >> 16); off 340 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(tmp_mask >> 16); off 343 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_UDP, NH_FLD_UDP_PORT_DST); off 344 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(tmp_value & 0xFFFF); off 345 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(tmp_mask & 0xFFFF); off 350 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_TYPE); off 351 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); off 352 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(0xFFFF); off 362 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int off; off 368 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_SRC); off 369 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = l4_value->ip4src; off 370 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(mask + off) = l4_mask->ip4src; off 375 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_DST); off 376 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(key + off) = l4_value->ip4dst; off 377 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be32 *)(mask + off) = l4_mask->ip4dst; off 382 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_UDP, NH_FLD_UDP_PORT_SRC); off 383 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = l4_value->psrc; off 384 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = l4_mask->psrc; off 389 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_UDP, NH_FLD_UDP_PORT_DST); off 390 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = l4_value->pdst; off 391 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = l4_mask->pdst; off 396 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_TYPE); off 397 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = htons(ETH_P_IP); off 398 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = htons(0xFFFF); off 401 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_IP, NH_FLD_IP_PROTO); off 402 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(key + off) = l4_proto; off 403 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(u8 *)(mask + off) = 0xFF; off 413 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int off; off 419 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_VLAN, NH_FLD_VLAN_TCI); off 420 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(key + off) = ext_value->vlan_tci; off 421 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c *(__be16 *)(mask + off) = ext_mask->vlan_tci; off 432 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c int off; off 435 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c off = dpaa2_eth_cls_fld_off(NET_PROT_ETH, NH_FLD_ETH_DA); off 436 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(key + off, ext_value->h_dest); off 437 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c ether_addr_copy(mask + off, ext_mask->h_dest); off 320 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_rd(hw, off) enetc_rd_reg((hw)->reg + (off)) off 321 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_wr(hw, off, val) enetc_wr_reg((hw)->reg + (off), val) off 322 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_rd64(hw, off) enetc_rd_reg64((hw)->reg + (off)) off 324 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_port_rd(hw, off) enetc_rd_reg((hw)->port + (off)) off 325 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_port_wr(hw, off, val) enetc_wr_reg((hw)->port + (off), val) off 327 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_global_rd(hw, off) enetc_rd_reg((hw)->global + (off)) off 328 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_global_wr(hw, off, val) enetc_wr_reg((hw)->global + (off), val) off 330 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_bdr_rd(hw, t, n, off) \ off 331 drivers/net/ethernet/freescale/enetc/enetc_hw.h enetc_rd(hw, ENETC_BDR(t, n, off)) off 332 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_bdr_wr(hw, t, n, off, val) \ off 333 drivers/net/ethernet/freescale/enetc/enetc_hw.h enetc_wr(hw, ENETC_BDR(t, n, off), val) off 334 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_txbdr_rd(hw, n, off) enetc_bdr_rd(hw, TX, n, off) off 335 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_rxbdr_rd(hw, n, off) enetc_bdr_rd(hw, RX, n, off) off 336 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_txbdr_wr(hw, n, off, val) \ off 337 drivers/net/ethernet/freescale/enetc/enetc_hw.h enetc_bdr_wr(hw, TX, n, off, val) off 338 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define enetc_rxbdr_wr(hw, n, off, val) \ off 339 drivers/net/ethernet/freescale/enetc/enetc_hw.h enetc_bdr_wr(hw, RX, n, off, val) off 17 drivers/net/ethernet/freescale/enetc/enetc_mdio.c #define enetc_mdio_rd(hw, off) \ off 18 drivers/net/ethernet/freescale/enetc/enetc_mdio.c enetc_port_rd(hw, ENETC_##off + ENETC_MDIO_REG_OFFSET) off 19 drivers/net/ethernet/freescale/enetc/enetc_mdio.c #define enetc_mdio_wr(hw, off, val) \ off 20 drivers/net/ethernet/freescale/enetc/enetc_mdio.c enetc_port_wr(hw, ENETC_##off + ENETC_MDIO_REG_OFFSET, val) off 21 drivers/net/ethernet/freescale/enetc/enetc_mdio.c #define enetc_mdio_rd_reg(off) enetc_mdio_rd(hw, off) off 1364 drivers/net/ethernet/freescale/fec_main.c int off; off 1366 drivers/net/ethernet/freescale/fec_main.c off = ((unsigned long)skb->data) & fep->rx_align; off 1367 drivers/net/ethernet/freescale/fec_main.c if (off) off 1368 drivers/net/ethernet/freescale/fec_main.c skb_reserve(skb, fep->rx_align + 1 - off); off 2257 drivers/net/ethernet/freescale/fec_main.c u32 i, off; off 2269 drivers/net/ethernet/freescale/fec_main.c off = fec_enet_register_offset[i]; off 2271 drivers/net/ethernet/freescale/fec_main.c if ((off == FEC_R_BOUND || off == FEC_R_FSTART) && off 2275 drivers/net/ethernet/freescale/fec_main.c off >>= 2; off 2276 drivers/net/ethernet/freescale/fec_main.c buf[off] = readl(&theregs[off]); off 79 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c int off = ((unsigned long)skb->data) & (align - 1); off 81 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c if (off) off 82 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c skb_reserve(skb, align - off); off 82 drivers/net/ethernet/ibm/ibmveth.c #define IBMVETH_GET_STAT(a, off) *((u64 *)(((unsigned long)(a)) + off)) off 121 drivers/net/ethernet/ibm/ibmvnic.c #define IBMVNIC_GET_STAT(a, off) (*((u64 *)(((unsigned long)(a)) + off))) off 203 drivers/net/ethernet/intel/i40e/i40e_txrx.c u16 off = fd_data->flex_offset; off 205 drivers/net/ethernet/intel/i40e/i40e_txrx.c *((__force __be16 *)(payload + off)) = pattern; off 277 drivers/net/ethernet/intel/i40e/i40e_txrx.c u16 off = fd_data->flex_offset; off 279 drivers/net/ethernet/intel/i40e/i40e_txrx.c *((__force __be16 *)(payload + off)) = pattern; off 355 drivers/net/ethernet/intel/i40e/i40e_txrx.c u16 off = fd_data->flex_offset; off 357 drivers/net/ethernet/intel/i40e/i40e_txrx.c *((__force __be16 *)(payload + off)) = pattern; off 426 drivers/net/ethernet/intel/i40e/i40e_txrx.c u16 off = fd_data->flex_offset; off 428 drivers/net/ethernet/intel/i40e/i40e_txrx.c *((__force __be16 *)(payload + off)) = pattern; off 563 drivers/net/ethernet/intel/ice/ice_flex_pipe.c u32 off = le32_to_cpu(pkg->seg_offset[i]); off 567 drivers/net/ethernet/intel/ice/ice_flex_pipe.c if (len < off + sizeof(*seg)) off 570 drivers/net/ethernet/intel/ice/ice_flex_pipe.c seg = (struct ice_generic_seg_hdr *)((u8 *)pkg + off); off 573 drivers/net/ethernet/intel/ice/ice_flex_pipe.c if (len < off + le32_to_cpu(seg->seg_size)) off 9 drivers/net/ethernet/intel/ice/ice_flex_type.h u16 off; /* Offset within the protocol header */ off 724 drivers/net/ethernet/intel/ice/ice_switch.c __be16 *off; off 802 drivers/net/ethernet/intel/ice/ice_switch.c off = (__force __be16 *)(eth_hdr + ICE_ETH_ETHTYPE_OFFSET); off 803 drivers/net/ethernet/intel/ice/ice_switch.c *off = cpu_to_be16(f_info->l_data.ethertype_mac.ethertype); off 832 drivers/net/ethernet/intel/ice/ice_switch.c off = (__force __be16 *)(eth_hdr + ICE_ETH_VLAN_TCI_OFFSET); off 833 drivers/net/ethernet/intel/ice/ice_switch.c *off = cpu_to_be16(vlan_id); off 1591 drivers/net/ethernet/intel/ice/ice_txrx.c struct ice_tx_offload_params *off) off 1602 drivers/net/ethernet/intel/ice/ice_txrx.c td_tag = off->td_l2tag1; off 1603 drivers/net/ethernet/intel/ice/ice_txrx.c td_cmd = off->td_cmd; off 1604 drivers/net/ethernet/intel/ice/ice_txrx.c td_offset = off->td_offset; off 1741 drivers/net/ethernet/intel/ice/ice_txrx.c int ice_tx_csum(struct ice_tx_buf *first, struct ice_tx_offload_params *off) off 1827 drivers/net/ethernet/intel/ice/ice_txrx.c off->td_cmd |= cmd; off 1828 drivers/net/ethernet/intel/ice/ice_txrx.c off->td_offset |= offset; off 1892 drivers/net/ethernet/intel/ice/ice_txrx.c int ice_tso(struct ice_tx_buf *first, struct ice_tx_offload_params *off) off 1938 drivers/net/ethernet/intel/ice/ice_txrx.c off->header_len = (l4.tcp->doff * 4) + l4_start; off 1942 drivers/net/ethernet/intel/ice/ice_txrx.c first->bytecount += (first->gso_segs - 1) * off->header_len; off 1944 drivers/net/ethernet/intel/ice/ice_txrx.c cd_tso_len = skb->len - off->header_len; off 1948 drivers/net/ethernet/intel/ice/ice_txrx.c off->cd_qw1 |= (u64)(ICE_TX_DESC_DTYPE_CTX | off 9358 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, j, off; off 9363 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c off = cls->knode.sel->keys[i].off; off 9368 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (field_ptr[j].off == off) { off 9378 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (nexthdr->off == cls->knode.sel->keys[i].off && off 11 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h unsigned int off; off 47 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h { .off = 12, .val = ixgbe_mat_prgm_sip, off 49 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h { .off = 16, .val = ixgbe_mat_prgm_dip, off 67 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h {.off = 0, .val = ixgbe_mat_prgm_ports, off 73 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h {.off = 0, .val = ixgbe_mat_prgm_ports, off 84 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h unsigned int off; off 93 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h .off = 8, .val = 0x600, .mask = 0xff00, .jump = ixgbe_tcp_fields}, off 95 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h .off = 8, .val = 0x1100, .mask = 0xff00, .jump = ixgbe_udp_fields}, off 1189 drivers/net/ethernet/marvell/mv643xx_eth.c int off; off 1195 drivers/net/ethernet/marvell/mv643xx_eth.c off = 0; off 1198 drivers/net/ethernet/marvell/mv643xx_eth.c off = TXQ_FIX_PRIO_CONF; off 1201 drivers/net/ethernet/marvell/mv643xx_eth.c off = TXQ_FIX_PRIO_CONF_MOVED; off 1205 drivers/net/ethernet/marvell/mv643xx_eth.c if (off) { off 1206 drivers/net/ethernet/marvell/mv643xx_eth.c val = rdlp(mp, off); off 1208 drivers/net/ethernet/marvell/mv643xx_eth.c wrlp(mp, off, val); off 1818 drivers/net/ethernet/marvell/mv643xx_eth.c int off = UNICAST_TABLE(mp->port_num) + i; off 1832 drivers/net/ethernet/marvell/mv643xx_eth.c wrl(mp, off, v); off 2906 drivers/net/ethernet/mellanox/mlx4/main.c int off = 0; off 2913 drivers/net/ethernet/mellanox/mlx4/main.c off += mlx4_get_eqs_per_port(dev, i); off 2915 drivers/net/ethernet/mellanox/mlx4/main.c requested_cpu = eqn - off - !!(eqn > MLX4_EQ_ASYNC); off 143 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c u64 off = xdp.data - xdp.data_hard_start; off 145 drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c xdp.handle = xsk_umem_adjust_offset(umem, xdp.handle, off); off 2252 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c #define OFFLOAD(fw_field, size, field, off, match_field) \ off 2254 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c offsetof(struct pedit_headers, field) + (off), \ off 426 drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c off_t off, size_t size, u8 *buf) off 446 drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c dec_buf.out_size = min_t(size_t, size, off - curr_off); off 459 drivers/net/ethernet/mellanox/mlxfw/mlxfw_mfa2.c } while (curr_off != off); off 87 drivers/net/ethernet/mellanox/mlxsw/core_env.c int off, int *temp) off 128 drivers/net/ethernet/mellanox/mlxsw/core_env.c MLXSW_REG_MCIA_TH_PAGE_OFF + off, off 134 drivers/net/ethernet/mellanox/mlxsw/core_env.c off, MLXSW_REG_MCIA_TH_ITEM_SIZE, off 8 drivers/net/ethernet/mellanox/mlxsw/core_env.h int off, int *temp); off 127 drivers/net/ethernet/mellanox/mlxsw/i2c.c static inline void mlxsw_i2c_set_slave_addr(u8 *buf, u32 off) off 131 drivers/net/ethernet/mellanox/mlxsw/i2c.c *val = htonl(off); off 319 drivers/net/ethernet/mellanox/mlxsw/i2c.c int off = mlxsw_i2c->cmd.mb_off_in, chunk_size, i, j; off 336 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_i2c_set_slave_addr(tran_buf, off); off 358 drivers/net/ethernet/mellanox/mlxsw/i2c.c off += chunk_size; off 399 drivers/net/ethernet/mellanox/mlxsw/i2c.c int off = mlxsw_i2c->cmd.mb_off_out; off 449 drivers/net/ethernet/mellanox/mlxsw/i2c.c mlxsw_i2c_set_slave_addr(tran_buf, off); off 470 drivers/net/ethernet/mellanox/mlxsw/i2c.c off += chunk_size; off 2446 drivers/net/ethernet/neterion/s2io.c int off, size, block_no, block_no1; off 2463 drivers/net/ethernet/neterion/s2io.c off = ring->rx_curr_put_info.offset; off 2465 drivers/net/ethernet/neterion/s2io.c rxdp = ring->rx_blocks[block_no].rxds[off].virt_addr; off 2468 drivers/net/ethernet/neterion/s2io.c (off == ring->rx_curr_get_info.offset) && off 2474 drivers/net/ethernet/neterion/s2io.c if (off && (off == ring->rxd_count)) { off 2480 drivers/net/ethernet/neterion/s2io.c off = 0; off 2481 drivers/net/ethernet/neterion/s2io.c ring->rx_curr_put_info.offset = off; off 2491 drivers/net/ethernet/neterion/s2io.c ring->rx_curr_put_info.offset = off; off 2550 drivers/net/ethernet/neterion/s2io.c ba = &ring->ba[block_no][off]; off 2615 drivers/net/ethernet/neterion/s2io.c off++; off 2616 drivers/net/ethernet/neterion/s2io.c if (off == (ring->rxd_count + 1)) off 2617 drivers/net/ethernet/neterion/s2io.c off = 0; off 2618 drivers/net/ethernet/neterion/s2io.c ring->rx_curr_put_info.offset = off; off 5110 drivers/net/ethernet/neterion/s2io.c static int do_s2io_add_mac(struct s2io_nic *sp, u64 addr, int off) off 5119 drivers/net/ethernet/neterion/s2io.c RMAC_ADDR_CMD_MEM_OFFSET(off); off 5553 drivers/net/ethernet/neterion/s2io.c static int read_eeprom(struct s2io_nic *sp, int off, u64 *data) off 5562 drivers/net/ethernet/neterion/s2io.c I2C_CONTROL_ADDR(off) | off 5583 drivers/net/ethernet/neterion/s2io.c SPI_CONTROL_CMD(0x3) | SPI_CONTROL_ADDR(off); off 5620 drivers/net/ethernet/neterion/s2io.c static int write_eeprom(struct s2io_nic *sp, int off, u64 data, int cnt) off 5628 drivers/net/ethernet/neterion/s2io.c I2C_CONTROL_ADDR(off) | off 5652 drivers/net/ethernet/neterion/s2io.c SPI_CONTROL_CMD(0x2) | SPI_CONTROL_ADDR(off); off 7030 drivers/net/ethernet/neterion/s2io.c int off = 0; off 7032 drivers/net/ethernet/neterion/s2io.c for (; off < sp->config.rx_ring_num; off++) off 7033 drivers/net/ethernet/neterion/s2io.c napi_disable(&sp->mac_control.rings[off].napi); off 40 drivers/net/ethernet/netronome/nfp/abm/cls.c if (knode->sel->off || knode->sel->offshift || knode->sel->offmask || off 84 drivers/net/ethernet/netronome/nfp/abm/cls.c if (k->off) { off 175 drivers/net/ethernet/netronome/nfp/abm/ctrl.c unsigned int queue, unsigned int off, u64 *val) off 182 drivers/net/ethernet/netronome/nfp/abm/ctrl.c NFP_NET_CFG_RXR_STATS(id) + off); off 190 drivers/net/ethernet/netronome/nfp/abm/ctrl.c NFP_Q_STAT_STRIDE, off, band, queue, off 66 drivers/net/ethernet/netronome/nfp/bpf/jit.c nfp_prog_confirm_current_offset(struct nfp_prog *nfp_prog, unsigned int off) off 74 drivers/net/ethernet/netronome/nfp/bpf/jit.c return !WARN_ON_ONCE(nfp_prog_current_offset(nfp_prog) != off); off 737 drivers/net/ethernet/netronome/nfp/bpf/jit.c swreg src_base, off; off 742 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 748 drivers/net/ethernet/netronome/nfp/bpf/jit.c addr40_offset(nfp_prog, meta->insn.src_reg * 2, off, &src_base, off 749 drivers/net/ethernet/netronome/nfp/bpf/jit.c &off); off 759 drivers/net/ethernet/netronome/nfp/bpf/jit.c src_base, off, xfer_num - 1, CMD_CTX_SWAP, len > 32); off 765 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = re_load_imm_any(nfp_prog, meta->paired_st->off, imm_b(nfp_prog)); off 770 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, len - 1, off 775 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, xfer_num - 1, off 782 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, off 789 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, off 796 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, 7, off 799 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = re_load_imm_any(nfp_prog, meta->paired_st->off + 32, off 802 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, len - 33, off 813 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(meta->paired_st->dst_reg * 2), off, off 815 drivers/net/ethernet/netronome/nfp/bpf/jit.c new_off = meta->paired_st->off + (xfer_num - 1) * 4; off 816 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = re_load_imm_any(nfp_prog, new_off, imm_b(nfp_prog)); off 818 drivers/net/ethernet/netronome/nfp/bpf/jit.c xfer_num - 1, reg_a(meta->paired_st->dst_reg * 2), off, off 1015 drivers/net/ethernet/netronome/nfp/bpf/jit.c (*lmem_step)(struct nfp_prog *nfp_prog, u8 gpr, u8 gpr_byte, s32 off, off 1020 drivers/net/ethernet/netronome/nfp/bpf/jit.c wrp_lmem_load(struct nfp_prog *nfp_prog, u8 dst, u8 dst_byte, s32 off, off 1031 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (WARN_ON_ONCE(dst_byte + size > 4 || off % 4 + size > 4)) off 1034 drivers/net/ethernet/netronome/nfp/bpf/jit.c idx = off / 4; off 1046 drivers/net/ethernet/netronome/nfp/bpf/jit.c src_byte = off % 4; off 1089 drivers/net/ethernet/netronome/nfp/bpf/jit.c wrp_lmem_store(struct nfp_prog *nfp_prog, u8 src, u8 src_byte, s32 off, off 1100 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (WARN_ON_ONCE(src_byte + size > 4 || off % 4 + size > 4)) off 1103 drivers/net/ethernet/netronome/nfp/bpf/jit.c idx = off / 4; off 1116 drivers/net/ethernet/netronome/nfp/bpf/jit.c dst_byte = off % 4; off 1165 drivers/net/ethernet/netronome/nfp/bpf/jit.c s32 off = nfp_prog->stack_frame_depth + meta->insn.off + ptr_off; off 1180 drivers/net/ethernet/netronome/nfp/bpf/jit.c stack_off_reg = ur_load_imm_any(nfp_prog, meta->insn.off, off 1187 drivers/net/ethernet/netronome/nfp/bpf/jit.c } else if (off + size <= 64) { off 1190 drivers/net/ethernet/netronome/nfp/bpf/jit.c } else if (round_down(off, 32) == round_down(off + size - 1, 32)) { off 1197 drivers/net/ethernet/netronome/nfp/bpf/jit.c stack_off_reg = ur_load_imm_any(nfp_prog, round_down(off, 32), off 1202 drivers/net/ethernet/netronome/nfp/bpf/jit.c off %= 32; off 1204 drivers/net/ethernet/netronome/nfp/bpf/jit.c stack_off_reg = ur_load_imm_any(nfp_prog, round_down(off, 4), off 1235 drivers/net/ethernet/netronome/nfp/bpf/jit.c slice_end = min(off + slice_size, round_up(off + 1, 4)); off 1236 drivers/net/ethernet/netronome/nfp/bpf/jit.c slice_size = slice_end - off; off 1241 drivers/net/ethernet/netronome/nfp/bpf/jit.c off %= 4; off 1243 drivers/net/ethernet/netronome/nfp/bpf/jit.c ret = step(nfp_prog, gpr, gpr_byte, off, slice_size, off 1258 drivers/net/ethernet/netronome/nfp/bpf/jit.c off += slice_size; off 1351 drivers/net/ethernet/netronome/nfp/bpf/jit.c enum br_mask br_mask, u16 off) off 1354 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, br_mask, off, 0); off 1364 drivers/net/ethernet/netronome/nfp/bpf/jit.c insn->src_reg * 2, br_mask, insn->off); off 1367 drivers/net/ethernet/netronome/nfp/bpf/jit.c insn->src_reg * 2 + 1, br_mask, insn->off); off 1432 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, code->br_mask, insn->off, 0); off 1460 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, code->br_mask, insn->off, 0); off 1734 drivers/net/ethernet/netronome/nfp/bpf/jit.c lm_off += meta->arg2.reg.var_off.value + meta->arg2.reg.off; off 2653 drivers/net/ethernet/netronome/nfp/bpf/jit.c switch (meta->insn.off) { off 2684 drivers/net/ethernet/netronome/nfp/bpf/jit.c switch (meta->insn.off) { off 2711 drivers/net/ethernet/netronome/nfp/bpf/jit.c tmp_reg = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 2723 drivers/net/ethernet/netronome/nfp/bpf/jit.c tmp_reg = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 2735 drivers/net/ethernet/netronome/nfp/bpf/jit.c swreg src_base, off; off 2739 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = re_load_imm_any(nfp_prog, range_start, imm_b(nfp_prog)); off 2752 drivers/net/ethernet/netronome/nfp/bpf/jit.c off, xfer_num - 1, CMD_CTX_SWAP, indir); off 2761 drivers/net/ethernet/netronome/nfp/bpf/jit.c s16 insn_off = meta->insn.off - range_start; off 2766 drivers/net/ethernet/netronome/nfp/bpf/jit.c u8 off = insn_off % REG_WIDTH; off 2773 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (size > REG_WIDTH - off) { off 2775 drivers/net/ethernet/netronome/nfp/bpf/jit.c len_lo = REG_WIDTH - off; off 2779 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (size > 2 * REG_WIDTH - off) off 2783 drivers/net/ethernet/netronome/nfp/bpf/jit.c wrp_reg_subpart(nfp_prog, dst_lo, src_lo, len_lo, off); off 2817 drivers/net/ethernet/netronome/nfp/bpf/jit.c idx = (meta->insn.off - meta->pkt_cache.range_start) / REG_WIDTH; off 2843 drivers/net/ethernet/netronome/nfp/bpf/jit.c u8 off = meta->insn.off - meta->pkt_cache.range_start; off 2845 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (IS_ALIGNED(off, REG_WIDTH)) off 2878 drivers/net/ethernet/netronome/nfp/bpf/jit.c meta->ptr.off + meta->ptr.var_off.value); off 2913 drivers/net/ethernet/netronome/nfp/bpf/jit.c off_reg = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 2954 drivers/net/ethernet/netronome/nfp/bpf/jit.c off_reg = re_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 2971 drivers/net/ethernet/netronome/nfp/bpf/jit.c switch (meta->insn.off) { off 2989 drivers/net/ethernet/netronome/nfp/bpf/jit.c meta->ptr.off + meta->ptr.var_off.value); off 3023 drivers/net/ethernet/netronome/nfp/bpf/jit.c swreg addra, addrb, off; off 3025 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = ur_load_imm_any(nfp_prog, meta->insn.off, imm_b(nfp_prog)); off 3035 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (meta->insn.off) { off 3059 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BLO, full_add, meta->insn.off ? 2 : 0); off 3064 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (!meta->insn.off) { off 3069 drivers/net/ethernet/netronome/nfp/bpf/jit.c reg_a(dst_gpr), ALU_OP_ADD, off); off 3124 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_UNC, meta->insn.off, 0); off 3153 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BEQ, insn->off, 0); off 3166 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BEQ, insn->off, 0); off 3188 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BNE, insn->off, 0); off 3207 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BNE, insn->off, 0); off 3214 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BNE, insn->off, 0); off 3222 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BNE, insn->off, 0); off 3240 drivers/net/ethernet/netronome/nfp/bpf/jit.c emit_br(nfp_prog, BR_BEQ, insn->off, 0); off 3543 drivers/net/ethernet/netronome/nfp/bpf/jit.c immed_set_value(&nfp_prog->prog[br_idx + 1], jmp_dst->off); off 3568 drivers/net/ethernet/netronome/nfp/bpf/jit.c br_idx = list_next_entry(meta, l)->off - 1; off 3616 drivers/net/ethernet/netronome/nfp/bpf/jit.c for (idx = meta->off; idx <= br_idx; idx++) { off 3619 drivers/net/ethernet/netronome/nfp/bpf/jit.c br_set_offset(&nfp_prog->prog[idx], jmp_dst->off); off 3841 drivers/net/ethernet/netronome/nfp/bpf/jit.c meta->off = nfp_prog_current_offset(nfp_prog); off 4099 drivers/net/ethernet/netronome/nfp/bpf/jit.c prev_ld_off = prev_ld->off; off 4100 drivers/net/ethernet/netronome/nfp/bpf/jit.c prev_st_off = prev_st->off; off 4116 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (prev_ld_off + prev_size == ld->off && off 4117 drivers/net/ethernet/netronome/nfp/bpf/jit.c prev_st_off + prev_size == st->off) off 4121 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (ld->off + curr_size == prev_ld_off && off 4122 drivers/net/ethernet/netronome/nfp/bpf/jit.c st->off + curr_size == prev_st_off) off 4150 drivers/net/ethernet/netronome/nfp/bpf/jit.c head_ld_off = head_ld_meta->insn.off + head_ld_meta->ptr.off; off 4151 drivers/net/ethernet/netronome/nfp/bpf/jit.c head_st_off = head_st_meta->insn.off + head_st_meta->ptr.off; off 4152 drivers/net/ethernet/netronome/nfp/bpf/jit.c ld_off = ld->off + head_ld_meta->ptr.off; off 4211 drivers/net/ethernet/netronome/nfp/bpf/jit.c s16 prev_ld_off = prev_ld->off; off 4212 drivers/net/ethernet/netronome/nfp/bpf/jit.c s16 prev_st_off = prev_st->off; off 4213 drivers/net/ethernet/netronome/nfp/bpf/jit.c s16 head_ld_off = head_ld_meta->insn.off; off 4216 drivers/net/ethernet/netronome/nfp/bpf/jit.c head_ld_meta->insn.off = prev_ld_off; off 4217 drivers/net/ethernet/netronome/nfp/bpf/jit.c head_st_meta->insn.off = prev_st_off; off 4323 drivers/net/ethernet/netronome/nfp/bpf/jit.c meta->ptr.off == range_ptr_off) { off 4325 drivers/net/ethernet/netronome/nfp/bpf/jit.c s16 end, off = insn->off; off 4329 drivers/net/ethernet/netronome/nfp/bpf/jit.c if (off < range_start) { off 4330 drivers/net/ethernet/netronome/nfp/bpf/jit.c new_start = off; off 4334 drivers/net/ethernet/netronome/nfp/bpf/jit.c end = off + BPF_LDST_BYTES(insn); off 4358 drivers/net/ethernet/netronome/nfp/bpf/jit.c range_ptr_off = range_node->ptr.off; off 4359 drivers/net/ethernet/netronome/nfp/bpf/jit.c range_start = insn->off; off 4360 drivers/net/ethernet/netronome/nfp/bpf/jit.c range_end = insn->off + BPF_LDST_BYTES(insn); off 4511 drivers/net/ethernet/netronome/nfp/bpf/jit.c dst_idx = meta->n + 1 + meta->insn.off; off 4542 drivers/net/ethernet/netronome/nfp/bpf/jit.c u16 off; off 4565 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = nfp_prog->tgt_call_push_regs + bv->start_off; off 4566 drivers/net/ethernet/netronome/nfp/bpf/jit.c br_set_offset(&prog[i], off); off 4574 drivers/net/ethernet/netronome/nfp/bpf/jit.c off = nfp_prog->tgt_call_pop_regs + bv->start_off; off 4575 drivers/net/ethernet/netronome/nfp/bpf/jit.c br_set_offset(&prog[i], off); off 340 drivers/net/ethernet/netronome/nfp/bpf/main.h unsigned int off; off 568 drivers/net/ethernet/netronome/nfp/bpf/main.h int nfp_bpf_opt_replace_insn(struct bpf_verifier_env *env, u32 off, off 570 drivers/net/ethernet/netronome/nfp/bpf/main.h int nfp_bpf_opt_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt); off 435 drivers/net/ethernet/netronome/nfp/bpf/offload.c unsigned long off, unsigned long len) off 437 drivers/net/ethernet/netronome/nfp/bpf/offload.c memcpy(dst, src + off, len); off 90 drivers/net/ethernet/netronome/nfp/bpf/verifier.c int off, i; off 101 drivers/net/ethernet/netronome/nfp/bpf/verifier.c off = reg3->off + reg3->var_off.value; off 107 drivers/net/ethernet/netronome/nfp/bpf/verifier.c soff = -(off + i) - 1; off 128 drivers/net/ethernet/netronome/nfp/bpf/verifier.c s64 off, old_off; off 140 drivers/net/ethernet/netronome/nfp/bpf/verifier.c off = reg->var_off.value + reg->off; off 141 drivers/net/ethernet/netronome/nfp/bpf/verifier.c if (-off % 4) { off 142 drivers/net/ethernet/netronome/nfp/bpf/verifier.c pr_vlog(env, "%s: unaligned stack pointer %lld\n", fname, -off); off 150 drivers/net/ethernet/netronome/nfp/bpf/verifier.c old_off = old_arg->reg.var_off.value + old_arg->reg.off; off 151 drivers/net/ethernet/netronome/nfp/bpf/verifier.c old_arg->var_off |= off != old_off; off 361 drivers/net/ethernet/netronome/nfp/bpf/verifier.c old_off = meta->ptr.off + meta->ptr.var_off.value; off 362 drivers/net/ethernet/netronome/nfp/bpf/verifier.c new_off = reg->off + reg->var_off.value; off 394 drivers/net/ethernet/netronome/nfp/bpf/verifier.c unsigned int off, enum nfp_bpf_map_use use) off 396 drivers/net/ethernet/netronome/nfp/bpf/verifier.c if (nfp_map->use_map[off / 4].type != NFP_MAP_UNUSED && off 397 drivers/net/ethernet/netronome/nfp/bpf/verifier.c nfp_map->use_map[off / 4].type != use) { off 399 drivers/net/ethernet/netronome/nfp/bpf/verifier.c nfp_bpf_map_use_name(nfp_map->use_map[off / 4].type), off 400 drivers/net/ethernet/netronome/nfp/bpf/verifier.c nfp_bpf_map_use_name(use), off); off 404 drivers/net/ethernet/netronome/nfp/bpf/verifier.c if (nfp_map->use_map[off / 4].non_zero_update && off 407 drivers/net/ethernet/netronome/nfp/bpf/verifier.c off); off 411 drivers/net/ethernet/netronome/nfp/bpf/verifier.c nfp_map->use_map[off / 4].type = use; off 423 drivers/net/ethernet/netronome/nfp/bpf/verifier.c unsigned int size, off; off 431 drivers/net/ethernet/netronome/nfp/bpf/verifier.c off = reg->var_off.value + meta->insn.off + reg->off; off 436 drivers/net/ethernet/netronome/nfp/bpf/verifier.c if (off + size > offmap->map.value_size) { off 441 drivers/net/ethernet/netronome/nfp/bpf/verifier.c for (i = 0; i < size; i += 4 - (off + i) % 4) { off 442 drivers/net/ethernet/netronome/nfp/bpf/verifier.c err = nfp_bpf_map_mark_used_one(env, nfp_map, off + i, use); off 510 drivers/net/ethernet/netronome/nfp/bpf/verifier.c switch (meta->insn.off) { off 802 drivers/net/ethernet/netronome/nfp/bpf/verifier.c int nfp_bpf_opt_replace_insn(struct bpf_verifier_env *env, u32 off, off 809 drivers/net/ethernet/netronome/nfp/bpf/verifier.c meta = nfp_bpf_goto_meta(nfp_prog, meta, aux_data[off].orig_idx); off 817 drivers/net/ethernet/netronome/nfp/bpf/verifier.c tgt_off = off + insn->off + 1; off 819 drivers/net/ethernet/netronome/nfp/bpf/verifier.c if (!insn->off) { off 824 drivers/net/ethernet/netronome/nfp/bpf/verifier.c off, meta->jmp_dst->n, off 836 drivers/net/ethernet/netronome/nfp/bpf/verifier.c int nfp_bpf_opt_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) off 843 drivers/net/ethernet/netronome/nfp/bpf/verifier.c meta = nfp_bpf_goto_meta(nfp_prog, meta, aux_data[off].orig_idx); off 144 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nfp_ccm_mbox_write_tlv(struct nfp_net *nn, u32 off, u32 type, u32 len) off 146 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nn_writel(nn, off, off 156 drivers/net/ethernet/netronome/nfp/ccm_mbox.c u32 off, len; off 158 drivers/net/ethernet/netronome/nfp/ccm_mbox.c off = nn->tlv_caps.mbox_off + NFP_NET_CFG_MBOX_SIMPLE_VAL; off 161 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nfp_ccm_mbox_write_tlv(nn, off, NFP_NET_MBOX_TLV_TYPE_MSG, off 163 drivers/net/ethernet/netronome/nfp/ccm_mbox.c off += 4; off 169 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nn_writel(nn, off, be32_to_cpu(data[i])); off 170 drivers/net/ethernet/netronome/nfp/ccm_mbox.c off += 4; off 176 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nn_writel(nn, off, be32_to_cpu(tmp)); off 177 drivers/net/ethernet/netronome/nfp/ccm_mbox.c off += 4; off 184 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nfp_ccm_mbox_write_tlv(nn, off, off 187 drivers/net/ethernet/netronome/nfp/ccm_mbox.c off += 4 + reserve; off 195 drivers/net/ethernet/netronome/nfp/ccm_mbox.c nfp_ccm_mbox_write_tlv(nn, off, NFP_NET_MBOX_TLV_TYPE_END, 0); off 32 drivers/net/ethernet/netronome/nfp/crypto/tls.c u32 off, val; off 34 drivers/net/ethernet/netronome/nfp/crypto/tls.c off = nn->tlv_caps.crypto_enable_off + round_down(opcode / 8, 4); off 36 drivers/net/ethernet/netronome/nfp/crypto/tls.c val = nn_readl(nn, off); off 41 drivers/net/ethernet/netronome/nfp/crypto/tls.c nn_writel(nn, off, val); off 488 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_eth(const struct flow_action_entry *act, u32 off, off 493 drivers/net/ethernet/netronome/nfp/flower/action.c if (off + 4 > ETH_ALEN * 2) { off 506 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_helper32(exact, mask, &set_eth->eth_addr_val[off], off 507 drivers/net/ethernet/netronome/nfp/flower/action.c &set_eth->eth_addr_mask[off]); off 523 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_ip4(const struct flow_action_entry *act, u32 off, off 543 drivers/net/ethernet/netronome/nfp/flower/action.c switch (off) { off 623 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_ip6_hop_limit_flow_label(u32 off, __be32 exact, __be32 mask, off 630 drivers/net/ethernet/netronome/nfp/flower/action.c switch (off) { off 665 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_ip6(const struct flow_action_entry *act, u32 off, off 684 drivers/net/ethernet/netronome/nfp/flower/action.c if (off < offsetof(struct ipv6hdr, saddr)) { off 685 drivers/net/ethernet/netronome/nfp/flower/action.c err = nfp_fl_set_ip6_hop_limit_flow_label(off, exact, mask, off 687 drivers/net/ethernet/netronome/nfp/flower/action.c } else if (off < offsetof(struct ipv6hdr, daddr)) { off 688 drivers/net/ethernet/netronome/nfp/flower/action.c word = (off - offsetof(struct ipv6hdr, saddr)) / sizeof(exact); off 691 drivers/net/ethernet/netronome/nfp/flower/action.c } else if (off < offsetof(struct ipv6hdr, daddr) + off 693 drivers/net/ethernet/netronome/nfp/flower/action.c word = (off - offsetof(struct ipv6hdr, daddr)) / sizeof(exact); off 705 drivers/net/ethernet/netronome/nfp/flower/action.c nfp_fl_set_tport(const struct flow_action_entry *act, u32 off, off 711 drivers/net/ethernet/netronome/nfp/flower/action.c if (off) { off 317 drivers/net/ethernet/netronome/nfp/nfp_asm.h #define reg_lm(x, off) __enc_swreg_lm((x), NN_LM_MOD_NONE, (off)) off 320 drivers/net/ethernet/netronome/nfp/nfp_asm.h #define __reg_lm(x, mod, off) __enc_swreg_lm((x), (mod), (off)) off 329 drivers/net/ethernet/netronome/nfp/nfp_asm.h static inline swreg __enc_swreg_lm(u8 id, enum nfp_bpf_lm_mode mode, u8 off) off 331 drivers/net/ethernet/netronome/nfp/nfp_asm.h WARN_ON(id > 3 || (off && mode != NN_LM_MOD_NONE)); off 336 drivers/net/ethernet/netronome/nfp/nfp_asm.h off); off 704 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline u16 nn_readb(struct nfp_net *nn, int off) off 706 drivers/net/ethernet/netronome/nfp/nfp_net.h return readb(nn->dp.ctrl_bar + off); off 709 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline void nn_writeb(struct nfp_net *nn, int off, u8 val) off 711 drivers/net/ethernet/netronome/nfp/nfp_net.h writeb(val, nn->dp.ctrl_bar + off); off 714 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline u16 nn_readw(struct nfp_net *nn, int off) off 716 drivers/net/ethernet/netronome/nfp/nfp_net.h return readw(nn->dp.ctrl_bar + off); off 719 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline void nn_writew(struct nfp_net *nn, int off, u16 val) off 721 drivers/net/ethernet/netronome/nfp/nfp_net.h writew(val, nn->dp.ctrl_bar + off); off 724 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline u32 nn_readl(struct nfp_net *nn, int off) off 726 drivers/net/ethernet/netronome/nfp/nfp_net.h return readl(nn->dp.ctrl_bar + off); off 729 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline void nn_writel(struct nfp_net *nn, int off, u32 val) off 731 drivers/net/ethernet/netronome/nfp/nfp_net.h writel(val, nn->dp.ctrl_bar + off); off 734 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline u64 nn_readq(struct nfp_net *nn, int off) off 736 drivers/net/ethernet/netronome/nfp/nfp_net.h return readq(nn->dp.ctrl_bar + off); off 739 drivers/net/ethernet/netronome/nfp/nfp_net.h static inline void nn_writeq(struct nfp_net *nn, int off, u64 val) off 741 drivers/net/ethernet/netronome/nfp/nfp_net.h writeq(val, nn->dp.ctrl_bar + off); off 787 drivers/net/ethernet/netronome/nfp/nfp_net.h u32 off; off 790 drivers/net/ethernet/netronome/nfp/nfp_net.h off = NFP_QCP_QUEUE_ADD_RPTR; off 792 drivers/net/ethernet/netronome/nfp/nfp_net.h off = NFP_QCP_QUEUE_ADD_WPTR; off 795 drivers/net/ethernet/netronome/nfp/nfp_net.h writel(NFP_QCP_MAX_ADD, q + off); off 799 drivers/net/ethernet/netronome/nfp/nfp_net.h writel(val, q + off); off 830 drivers/net/ethernet/netronome/nfp/nfp_net.h u32 off; off 834 drivers/net/ethernet/netronome/nfp/nfp_net.h off = NFP_QCP_QUEUE_STS_LO; off 836 drivers/net/ethernet/netronome/nfp/nfp_net.h off = NFP_QCP_QUEUE_STS_HI; off 838 drivers/net/ethernet/netronome/nfp/nfp_net.h val = readl(q + off); off 33 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c int off; off 551 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c *data++ = readq(mem + nfp_net_et_stats[i].off); off 599 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c *data++ = readq(port->eth_stats + nfp_mac_et_stats[i].off); off 242 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, u32 *cpp_id, u64 *off) off 251 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *off = nffw_fwinfo_mip_offset_get(fwinfo); off 256 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *off &= ~(NFP_MU_ADDR_ACCESS_TYPE_MASK << locality_off); off 257 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.c *off |= NFP_MU_ADDR_ACCESS_TYPE_DIRECT << locality_off; off 19 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, u32 *cpp_id, u64 *off); off 75 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, void *buf, size_t len); off 76 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 79 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, u32 *value); off 80 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 83 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, u64 *value); off 84 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 87 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, void *buf, size_t len); off 88 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_write(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 91 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, u32 value); off 92 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_writel(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 95 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h u8 action, u8 token, u64 off, u64 value); off 96 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nffw.h int nfp_rtsym_writeq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 508 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c unsigned long off; off 520 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c off = 0; off 530 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c chunks[i].len = min_t(u64, chunk_size, max_size - off); off 533 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (arg->in_size > off) { off 534 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c coff = min_t(u64, arg->in_size - off, chunk_size); off 535 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c memcpy(chunks[i].chunk, arg->in_buf + off, coff); off 539 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c off += chunks[i].len; off 590 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c off = 0; off 591 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c while (off < arg->out_size) { off 594 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c len = min_t(u64, chunks[i].len, arg->out_size - off); off 595 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c memcpy(arg->out_buf + off, chunks[i].chunk, len); off 596 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c off += len; off 227 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, u32 *cpp_id, u64 *addr) off 235 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c *addr = sym->addr + off; off 258 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, void *buf, size_t len) off 265 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off > sym_size) { off 267 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, len, sym_size); off 270 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c len = min_t(size_t, len, sym_size - off); off 276 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c memcpy(buf, &tmp[off], len); off 281 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 288 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 291 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_read(cpp, sym, NFP_CPP_ACTION_RW, 0, off, buf, len); off 295 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, u32 *value) off 301 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off + 4 > nfp_rtsym_size(sym)) { off 303 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, nfp_rtsym_size(sym)); off 307 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 314 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 317 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_readl(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); off 321 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, u64 *value) off 327 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off + 8 > nfp_rtsym_size(sym)) { off 329 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, nfp_rtsym_size(sym)); off 338 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 345 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 348 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_readq(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); off 352 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, void *buf, size_t len) off 359 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off > sym_size) { off 361 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, len, sym_size); off 364 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c len = min_t(size_t, len, sym_size - off); off 366 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 373 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_write(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 376 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_write(cpp, sym, NFP_CPP_ACTION_RW, 0, off, buf, len); off 380 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, u32 value) off 386 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off + 4 > nfp_rtsym_size(sym)) { off 388 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, nfp_rtsym_size(sym)); off 392 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 399 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_writel(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 402 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_writel(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); off 406 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c u8 action, u8 token, u64 off, u64 value) off 412 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c if (off + 8 > nfp_rtsym_size(sym)) { off 414 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c sym->name, off, nfp_rtsym_size(sym)); off 418 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); off 425 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c int nfp_rtsym_writeq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, off 428 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_rtsym.c return __nfp_rtsym_writeq(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); off 128 drivers/net/ethernet/pasemi/pasemi_mac.c int nintf, off, i, j; off 133 drivers/net/ethernet/pasemi/pasemi_mac.c off = (tmp & PAS_DMA_CAP_IFI_IOFF_M) >> PAS_DMA_CAP_IFI_IOFF_S; off 143 drivers/net/ethernet/pasemi/pasemi_mac.c tmp = read_dma_reg(off+4*i); off 77 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define ADDR_IN_WINDOW1(off) \ off 78 drivers/net/ethernet/qlogic/netxen/netxen_nic.h ((off > NETXEN_CRB_PCIX_HOST2) && (off < NETXEN_CRB_MAX)) ? 1 : 0 off 93 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define DB_NORMALIZE(adapter, off) \ off 94 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (adapter->ahw.db_base + (off)) off 1690 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define NXRD32(adapter, off) \ off 1691 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (adapter->crb_read(adapter, off)) off 1692 drivers/net/ethernet/qlogic/netxen/netxen_nic.h #define NXWR32(adapter, off, val) \ off 1693 drivers/net/ethernet/qlogic/netxen/netxen_nic.h (adapter->crb_write(adapter, off, val)) off 670 drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h #define MIU_TEST_AGT_UPPER_ADDR(off) (0) off 687 drivers/net/ethernet/qlogic/netxen/netxen_nic_hdr.h #define SIU_TEST_AGT_UPPER_ADDR(off) ((off)>>22) off 22 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define CRB_BLK(off) ((off >> 20) & 0x3f) off 23 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define CRB_SUBBLK(off) ((off >> 16) & 0xf) off 25 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) off 33 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define PCI_OFFSET_FIRST_RANGE(adapter, off) \ off 34 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ((adapter)->ahw.pci_base0 + (off)) off 35 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define PCI_OFFSET_SECOND_RANGE(adapter, off) \ off 36 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START) off 37 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c #define PCI_OFFSET_THIRD_RANGE(adapter, off) \ off 38 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START) off 41 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c unsigned long off) off 43 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, FIRST_PAGE_GROUP_START, FIRST_PAGE_GROUP_END)) off 44 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return PCI_OFFSET_FIRST_RANGE(adapter, off); off 46 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, SECOND_PAGE_GROUP_START, SECOND_PAGE_GROUP_END)) off 47 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return PCI_OFFSET_SECOND_RANGE(adapter, off); off 49 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, THIRD_PAGE_GROUP_START, THIRD_PAGE_GROUP_END)) off 50 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return PCI_OFFSET_THIRD_RANGE(adapter, off); off 1085 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ulong off, void __iomem **addr) off 1090 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if ((off >= NETXEN_CRB_MAX) || (off < NETXEN_PCI_CRBSPACE)) off 1093 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off -= NETXEN_PCI_CRBSPACE; off 1098 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c m = &crb_128M_2M_map[CRB_BLK(off)].sub_block[CRB_SUBBLK(off)]; off 1100 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (m->valid && (m->start_128M <= off) && (m->end_128M > off)) { off 1102 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c (off - m->start_128M); off 1110 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c (off & MASK(16)); off 1120 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_pci_set_crbwindow_2M(struct netxen_adapter *adapter, ulong off) off 1125 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off -= NETXEN_PCI_CRBSPACE; off 1127 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c window = CRB_HI(off); off 1134 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c window, off); off 1142 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ulong off = win_off; off 1147 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off = NETXEN_CRB_NORMAL(win_off); off 1149 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c addr = pci_base_offset(adapter, off); off 1154 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off -= NETXEN_PCI_CRBSPACE; off 1157 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c *mem_ptr = ioremap(mem_base + (off & PAGE_MASK), PAGE_SIZE); off 1159 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c addr = *mem_ptr + (off & (PAGE_SIZE - 1)); off 1165 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_hw_write_wx_128M(struct netxen_adapter *adapter, ulong off, u32 data) off 1170 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c addr = netxen_nic_map_indirect_address_128M(adapter, off, &mem_ptr); off 1174 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_WINDOW1(off)) { /* Window 1 */ off 1192 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_hw_read_wx_128M(struct netxen_adapter *adapter, ulong off) off 1198 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c addr = netxen_nic_map_indirect_address_128M(adapter, off, &mem_ptr); off 1202 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_WINDOW1(off)) { /* Window 1 */ off 1220 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_hw_write_wx_2M(struct netxen_adapter *adapter, ulong off, u32 data) off 1226 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); off 1237 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_pci_set_crbwindow_2M(adapter, off); off 1245 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c "%s: invalid offset: 0x%016lx\n", __func__, off); off 1251 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_hw_read_wx_2M(struct netxen_adapter *adapter, ulong off) off 1258 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rv = netxen_nic_pci_get_crb_addr_2M(adapter, off, &addr); off 1267 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_pci_set_crbwindow_2M(adapter, off); off 1275 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c "%s: invalid offset: 0x%016lx\n", __func__, off); off 1366 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_nic_pci_mem_access_direct(struct netxen_adapter *adapter, u64 off, off 1376 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ret = adapter->pci_set_window(adapter, off, &start); off 1412 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_pci_camqm_read_2M(struct netxen_adapter *adapter, u64 off, u64 *data) off 1415 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c NETXEN_PCI_CAMQM_2M_BASE + (off - NETXEN_PCI_CAMQM); off 1423 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netxen_pci_camqm_write_2M(struct netxen_adapter *adapter, u64 off, u64 data) off 1426 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c NETXEN_PCI_CAMQM_2M_BASE + (off - NETXEN_PCI_CAMQM); off 1437 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c u64 off, u64 data) off 1444 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (off & 7) off 1448 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, off 1455 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_lo = off & SIU_TEST_AGT_ADDR_MASK; off 1456 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_hi = SIU_TEST_AGT_UPPER_ADDR(off); off 1460 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { off 1466 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_lo = off & MIU_TEST_AGT_ADDR_MASK; off 1471 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX) || off 1472 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ADDR_IN_RANGE(off, NETXEN_ADDR_OCM1, NETXEN_ADDR_OCM1_MAX)) { off 1475 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off, &data, 1); off 1514 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c u64 off, u64 *data) off 1522 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (off & 7) off 1526 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, off 1533 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_lo = off & SIU_TEST_AGT_ADDR_MASK; off 1534 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_hi = SIU_TEST_AGT_UPPER_ADDR(off); off 1538 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { off 1544 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off_lo = off & MIU_TEST_AGT_ADDR_MASK; off 1549 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX) || off 1550 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c ADDR_IN_RANGE(off, NETXEN_ADDR_OCM1, NETXEN_ADDR_OCM1_MAX)) { off 1553 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off, data, 0); off 1596 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c u64 off, u64 data) off 1603 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (off & 7) off 1607 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, off 1614 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { off 1620 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX)) off 1621 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c return netxen_nic_pci_mem_access_direct(adapter, off, &data, 1); off 1626 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off8 = off & 0xfffffff8; off 1663 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c u64 off, u64 *data) off 1671 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (off & 7) off 1675 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_QDR_NET, off 1682 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_DDR_NET, NETXEN_ADDR_DDR_NET_MAX)) { off 1688 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c if (ADDR_IN_RANGE(off, NETXEN_ADDR_OCM0, NETXEN_ADDR_OCM0_MAX)) { off 1690 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off, data, 0); off 1696 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c off8 = off & 0xfffffff8; off 422 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c u32 off; off 474 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c off = netxen_decode_crb_addr(buf[i].addr); off 475 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == NETXEN_ADDR_ERROR) { off 480 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c off += NETXEN_PCI_CRBSPACE; off 482 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off & 1) off 486 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == NETXEN_CAM_RAM(0x1fc)) off 490 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (NETXEN_CRB_I2C0 + 0x1c)) off 493 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (ROMUSB_GLB + 0xbc)) off 495 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (ROMUSB_GLB + 0xa8)) off 497 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (ROMUSB_GLB + 0xc8)) /* core clock */ off 499 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (ROMUSB_GLB + 0x24)) /* MN clock */ off 501 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (ROMUSB_GLB + 0x1c)) /* MS clock */ off 503 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if ((off & 0x0ff00000) == NETXEN_CRB_DDR_NET) off 505 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == (NETXEN_CRB_PEG_NET_1 + 0x18) && off 509 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == NETXEN_PCIE_REG(PCIE_SETUP_FUNCTION)) off 511 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == NETXEN_PCIE_REG(PCIE_SETUP_FUNCTION2)) off 513 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if ((off & 0x0ff00000) == NETXEN_CRB_SMB) off 520 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c if (off == NETXEN_ROMUSB_GLB_SW_RESET) { off 529 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c NXWR32(adapter, off, buf[i].data); off 1544 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h int qlcnic_pci_mem_write_2M(struct qlcnic_adapter *, u64 off, u64 data); off 1545 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h int qlcnic_pci_mem_read_2M(struct qlcnic_adapter *, u64 off, u64 *data); off 1550 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h #define QLCRD32(adapter, off, err) \ off 1551 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h (adapter->ahw->hw_ops->read_reg)(adapter, off, err) off 1553 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h #define QLCWR32(adapter, off, val) \ off 1554 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h adapter->ahw->hw_ops->write_reg(adapter, off, val) off 1884 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h ulong off, u32 data) off 1886 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h return adapter->ahw->hw_ops->write_reg(adapter, off, data); off 20 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c #define CRB_BLK(off) ((off >> 20) & 0x3f) off 21 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c #define CRB_SUBBLK(off) ((off >> 16) & 0xf) off 23 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) off 33 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c u64 off; off 1120 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ulong off, void __iomem **addr) off 1124 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if ((off >= QLCNIC_CRB_MAX) || (off < QLCNIC_PCI_CRBSPACE)) off 1127 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c off -= QLCNIC_PCI_CRBSPACE; off 1132 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c m = &crb_128M_2M_map[CRB_BLK(off)].sub_block[CRB_SUBBLK(off)]; off 1134 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (m->valid && (m->start_128M <= off) && (m->end_128M > off)) { off 1136 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c (off - m->start_128M); off 1143 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c *addr = ahw->pci_base0 + CRB_INDIRECT_2M + (off & MASK(16)); off 1153 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_pci_set_crbwindow_2M(struct qlcnic_adapter *adapter, ulong off) off 1158 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c off -= QLCNIC_PCI_CRBSPACE; off 1160 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c window = CRB_HI(off); off 1162 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c dev_err(&adapter->pdev->dev, "Invalid offset 0x%lx\n", off); off 1171 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c window, off); off 1177 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_hw_write_wx_2M(struct qlcnic_adapter *adapter, ulong off, off 1184 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); off 1195 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_set_crbwindow_2M(adapter, off); off 1204 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c "%s: invalid offset: 0x%016lx\n", __func__, off); off 1209 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_82xx_hw_read_wx_2M(struct qlcnic_adapter *adapter, ulong off, off 1217 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rv = qlcnic_pci_get_crb_addr_2M(adapter->ahw, off, &addr); off 1226 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (!qlcnic_pci_set_crbwindow_2M(adapter, off)) off 1234 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c "%s: invalid offset: 0x%016lx\n", __func__, off); off 1250 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c u32 window, u64 off, u64 *data, int op) off 1260 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c start = QLCNIC_PCI_OCM0_2M + off; off 1278 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_pci_camqm_read_2M(struct qlcnic_adapter *adapter, u64 off, u64 *data) off 1281 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c QLCNIC_PCI_CAMQM_2M_BASE + (off - QLCNIC_PCI_CAMQM); off 1289 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_pci_camqm_write_2M(struct qlcnic_adapter *adapter, u64 off, u64 data) off 1292 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c QLCNIC_PCI_CAMQM_2M_BASE + (off - QLCNIC_PCI_CAMQM); off 1302 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c static void qlcnic_set_ms_controls(struct qlcnic_adapter *adapter, u64 off, off 1308 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (off & 0xf) { off 1328 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->ocm_window = OCM_WIN_P3P(off); off 1329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms->off = GET_MEM_OFFS_2M(off); off 1332 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_pci_mem_write_2M(struct qlcnic_adapter *adapter, u64 off, u64 data) off 1339 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (off & 7) off 1343 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (!(ADDR_IN_RANGE(off, QLCNIC_ADDR_QDR_NET, off 1345 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ADDR_IN_RANGE(off, QLCNIC_ADDR_DDR_NET, off 1349 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_set_ms_controls(adapter, off, &ms); off 1351 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (ADDR_IN_RANGE(off, QLCNIC_ADDR_OCM0, QLCNIC_ADDR_OCM0_MAX)) off 1353 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms.off, &data, 1); off 1355 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c off8 = off & ~0xf; off 1406 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_pci_mem_read_2M(struct qlcnic_adapter *adapter, u64 off, u64 *data) off 1414 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (off & 7) off 1416 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (!(ADDR_IN_RANGE(off, QLCNIC_ADDR_QDR_NET, off 1418 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ADDR_IN_RANGE(off, QLCNIC_ADDR_DDR_NET, off 1423 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c qlcnic_set_ms_controls(adapter, off, &ms); off 1425 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c if (ADDR_IN_RANGE(off, QLCNIC_ADDR_OCM0, QLCNIC_ADDR_OCM0_MAX)) off 1427 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c ms.off, data, 0); off 1431 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c off8 = off & ~0xf; off 391 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c u32 off, val; off 478 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c off = qlcnic_decode_crb_addr(buf[i].addr); off 479 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == QLCNIC_ADDR_ERROR) { off 484 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c off += QLCNIC_PCI_CRBSPACE; off 486 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off & 1) off 490 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == QLCNIC_CAM_RAM(0x1fc)) off 492 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (QLCNIC_CRB_I2C0 + 0x1c)) off 494 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (ROMUSB_GLB + 0xbc)) /* do not reset PCI */ off 496 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (ROMUSB_GLB + 0xa8)) off 498 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (ROMUSB_GLB + 0xc8)) /* core clock */ off 500 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (ROMUSB_GLB + 0x24)) /* MN clock */ off 502 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == (ROMUSB_GLB + 0x1c)) /* MS clock */ off 504 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if ((off & 0x0ff00000) == QLCNIC_CRB_DDR_NET) off 507 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == QLCNIC_PCIE_REG(PCIE_SETUP_FUNCTION)) off 509 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == QLCNIC_PCIE_REG(PCIE_SETUP_FUNCTION2)) off 511 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if ((off & 0x0ff00000) == QLCNIC_CRB_SMB) off 517 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c if (off == QLCNIC_ROMUSB_GLB_SW_RESET) off 520 drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c QLCWR32(adapter, off, buf[i].data); off 1097 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c sel->keys[0].off = 6; off 96 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c u32 off, data, mask, real_off, rem; off 104 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c off = sel->keys[0].off << sel->offshift; off 112 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c off += ETH_HLEN; off 118 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c if (off > priv->tc_off_max) off 121 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c real_off = off / 4; off 122 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c rem = off % 4; off 1834 drivers/net/ethernet/sun/cassini.c unsigned long off = addr + len; off 1838 drivers/net/ethernet/sun/cassini.c if ((CAS_ROUND_PAGE(off) - off) > TX_TARGET_ABORT_LEN) off 1946 drivers/net/ethernet/sun/cassini.c int off, swivel = RX_SWIVEL_OFF_VAL; off 1974 drivers/net/ethernet/sun/cassini.c off = CAS_VAL(RX_COMP2_HDR_OFF, words[1]) * 0x100 + off 1980 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_cpu(cp->pdev, page->dma_addr + off, i, off 1983 drivers/net/ethernet/sun/cassini.c memcpy(p, addr + off, i); off 1984 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_device(cp->pdev, page->dma_addr + off, i, off 1999 drivers/net/ethernet/sun/cassini.c off = CAS_VAL(RX_COMP1_DATA_OFF, words[0]) + swivel; off 2001 drivers/net/ethernet/sun/cassini.c hlen = min(cp->page_size - off, dlen); off 2011 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_cpu(cp->pdev, page->dma_addr + off, i, off 2018 drivers/net/ethernet/sun/cassini.c memcpy(p, addr + off, RX_COPY_MIN); off 2019 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_device(cp->pdev, page->dma_addr + off, i, off 2022 drivers/net/ethernet/sun/cassini.c off += RX_COPY_MIN; off 2037 drivers/net/ethernet/sun/cassini.c skb_frag_off_set(frag, off); off 2043 drivers/net/ethernet/sun/cassini.c off = 0; off 2068 drivers/net/ethernet/sun/cassini.c crcaddr = addr + off + hlen; off 2078 drivers/net/ethernet/sun/cassini.c off = CAS_VAL(RX_COMP1_DATA_OFF, words[0]) + swivel; off 2079 drivers/net/ethernet/sun/cassini.c hlen = min(cp->page_size - off, dlen); off 2089 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_cpu(cp->pdev, page->dma_addr + off, i, off 2092 drivers/net/ethernet/sun/cassini.c memcpy(p, addr + off, i); off 2093 drivers/net/ethernet/sun/cassini.c pci_dma_sync_single_for_device(cp->pdev, page->dma_addr + off, i, off 2877 drivers/net/ethernet/sun/cassini.c unsigned long off; off 2883 drivers/net/ethernet/sun/cassini.c off = offsetof(struct cas_init_block, tx_compwb); off 2884 drivers/net/ethernet/sun/cassini.c writel((desc_dma + off) >> 32, cp->regs + REG_TX_COMPWB_DB_HI); off 2885 drivers/net/ethernet/sun/cassini.c writel((desc_dma + off) & 0xffffffff, cp->regs + REG_TX_COMPWB_DB_LOW); off 2898 drivers/net/ethernet/sun/cassini.c off = (unsigned long) cp->init_txds[i] - off 2902 drivers/net/ethernet/sun/cassini.c writel((desc_dma + off) >> 32, cp->regs + REG_TX_DBN_HI(i)); off 2903 drivers/net/ethernet/sun/cassini.c writel((desc_dma + off) & 0xffffffff, cp->regs + off 3144 drivers/net/ethernet/sun/cassini.c int off = (cp->rx_fifo_size - (max_frame * 2)); off 3145 drivers/net/ethernet/sun/cassini.c int on = off - max_frame; off 3146 drivers/net/ethernet/sun/cassini.c cp->rx_pause_off = off; off 2210 drivers/net/ethernet/sun/niu.c unsigned long off; off 2218 drivers/net/ethernet/sun/niu.c off = 5 * HZ; off 2220 drivers/net/ethernet/sun/niu.c off = 1 * HZ; off 2221 drivers/net/ethernet/sun/niu.c np->timer.expires = jiffies + off; off 3420 drivers/net/ethernet/sun/niu.c u64 addr, val, off; off 3437 drivers/net/ethernet/sun/niu.c off = addr & ~PAGE_MASK; off 3452 drivers/net/ethernet/sun/niu.c niu_rx_skb_append(skb, page, off, append_size, rcr_size); off 7991 drivers/net/ethernet/sun/niu.c static int niu_pci_eeprom_read16(struct niu *np, u32 off) off 7993 drivers/net/ethernet/sun/niu.c int err = niu_pci_eeprom_read(np, off); off 7999 drivers/net/ethernet/sun/niu.c err = niu_pci_eeprom_read(np, off + 1); off 8007 drivers/net/ethernet/sun/niu.c static int niu_pci_eeprom_read16_swp(struct niu *np, u32 off) off 8009 drivers/net/ethernet/sun/niu.c int err = niu_pci_eeprom_read(np, off); off 8016 drivers/net/ethernet/sun/niu.c err = niu_pci_eeprom_read(np, off + 1); off 8025 drivers/net/ethernet/sun/niu.c static int niu_pci_vpd_get_propname(struct niu *np, u32 off, char *namebuf, off 8031 drivers/net/ethernet/sun/niu.c int err = niu_pci_eeprom_read(np, off + i); off 8142 drivers/net/ethernet/sun/niu.c u32 off = start + 5 + err; off 8149 drivers/net/ethernet/sun/niu.c err = niu_pci_eeprom_read(np, off + i); off 1915 drivers/net/ethernet/sun/sungem.c int off = (gp->rx_fifo_sz - (max_frame * 2)); off 1916 drivers/net/ethernet/sun/sungem.c int on = off - max_frame; off 1918 drivers/net/ethernet/sun/sungem.c gp->rx_pause_off = off; off 343 drivers/net/ethernet/sun/sunhme.h #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE32|((14/2)<<16)) off 346 drivers/net/ethernet/sun/sunhme.h #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE64|((14/2)<<16)) off 349 drivers/net/ethernet/sun/sunhme.h #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE128|((14/2)<<16)) off 352 drivers/net/ethernet/sun/sunhme.h #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE256|((14/2)<<16)) off 293 drivers/net/ethernet/sun/sunvnet_common.c unsigned long addr, off; off 300 drivers/net/ethernet/sun/sunvnet_common.c off = ((addr + 7UL) & ~7UL) - addr; off 301 drivers/net/ethernet/sun/sunvnet_common.c if (off) off 302 drivers/net/ethernet/sun/sunvnet_common.c skb_reserve(skb, off); off 990 drivers/net/ethernet/toshiba/spider_net.c int off = start - chain->ring; off 996 drivers/net/ethernet/toshiba/spider_net.c off, cstat); off 1005 drivers/net/ethernet/toshiba/spider_net.c off = descr - chain->ring; off 1010 drivers/net/ethernet/toshiba/spider_net.c off, status); off 1014 drivers/net/ethernet/toshiba/spider_net.c off, status); off 1018 drivers/net/ethernet/toshiba/spider_net.c off, status); off 1021 drivers/net/ethernet/toshiba/spider_net.c dev_info(dev, "chain is cut at %d\n", off); off 1024 drivers/net/ethernet/toshiba/spider_net.c int from = (chain->num_desc + off - cnt) % chain->num_desc; off 1025 drivers/net/ethernet/toshiba/spider_net.c int to = (chain->num_desc + off - 1) % chain->num_desc; off 394 drivers/net/fddi/skfp/fplustm.c unsigned int off, int len) off 404 drivers/net/fddi/skfp/fplustm.c MARW(off) ; /* set memory address reg for writes */ off 2489 drivers/net/ieee802154/ca8210.c loff_t *off off 60 drivers/net/phy/nxp-tja11xx.c u8 off; off 268 drivers/net/phy/nxp-tja11xx.c data[i] >>= tja11xx_hw_stats[i].off; off 298 drivers/net/phy/spi_ks8995.c struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) off 306 drivers/net/phy/spi_ks8995.c return ks8995_read(ks8995, buf, off, count); off 310 drivers/net/phy/spi_ks8995.c struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) off 318 drivers/net/phy/spi_ks8995.c return ks8995_write(ks8995, buf, off, count); off 189 drivers/net/ppp/ppp_deflate.c int r, proto, off, olen, oavail; off 220 drivers/net/ppp/ppp_deflate.c off = (proto > 0xff) ? 2 : 3; /* skip 1st proto byte if 0 */ off 221 drivers/net/ppp/ppp_deflate.c rptr += off; off 223 drivers/net/ppp/ppp_deflate.c state->strm.avail_in = (isize - off); off 238 drivers/net/usb/rndis_host.c u32 off, len; off 256 drivers/net/usb/rndis_host.c off = le32_to_cpu(u.get_c->offset); off 258 drivers/net/usb/rndis_host.c if (unlikely((8 + off + len) > CONTROL_BUFFER_SIZE)) off 264 drivers/net/usb/rndis_host.c *reply = (unsigned char *) &u.get_c->request_id + off; off 272 drivers/net/usb/rndis_host.c oid, off, len); off 600 drivers/net/veth.c int mac_len, delta, off; off 699 drivers/net/veth.c off = mac_len + delta; off 700 drivers/net/veth.c if (off > 0) off 701 drivers/net/veth.c __skb_push(skb, off); off 702 drivers/net/veth.c else if (off < 0) off 703 drivers/net/veth.c __skb_pull(skb, -off); off 705 drivers/net/veth.c off = xdp.data_end - orig_data_end; off 706 drivers/net/veth.c if (off != 0) off 707 drivers/net/veth.c __skb_put(skb, off); off 597 drivers/net/virtio_net.c int off; off 604 drivers/net/virtio_net.c off = buf - page_address(p); off 615 drivers/net/virtio_net.c page_address(p) + off, buflen); off 702 drivers/net/vxlan.c unsigned int off, off 719 drivers/net/vxlan.c vh = skb_gro_remcsum_process(skb, (void *)vh, off, hdrlen, off 36 drivers/net/wireless/ath/ath5k/ahb.c ath5k_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) off 46 drivers/net/wireless/ath/ath5k/ahb.c eeprom += off; off 1466 drivers/net/wireless/ath/ath5k/ath5k.h bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data); off 1700 drivers/net/wireless/ath/ath5k/ath5k.h static inline bool ath5k_hw_nvram_read(struct ath5k_hw *ah, u32 off, u16 *data) off 1703 drivers/net/wireless/ath/ath5k/ath5k.h return common->bus_ops->eeprom_read(common, off, data); off 59 drivers/net/wireless/ath/ath9k/ahb.c static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data) off 138 drivers/net/wireless/ath/ath9k/eeprom.c bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 off, u16 *data) off 145 drivers/net/wireless/ath/ath9k/eeprom.c ret = ath9k_hw_nvram_read_firmware(ah->eeprom_blob, off, data); off 147 drivers/net/wireless/ath/ath9k/eeprom.c ret = ath9k_hw_nvram_read_pdata(pdata, off, data); off 149 drivers/net/wireless/ath/ath9k/eeprom.c ret = common->bus_ops->eeprom_read(common, off, data); off 153 drivers/net/wireless/ath/ath9k/eeprom.c "unable to read eeprom region at offset %u\n", off); off 679 drivers/net/wireless/ath/ath9k/eeprom.h bool ath9k_hw_nvram_read(struct ath_hw *ah, u32 off, u16 *data); off 519 drivers/net/wireless/ath/ath9k/htc_drv_init.c static bool ath_usb_eeprom_read(struct ath_common *common, u32 off, u16 *data) off 523 drivers/net/wireless/ath/ath9k/htc_drv_init.c (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); off 991 drivers/net/wireless/ath/ath9k/hw.h bool (*eeprom_read)(struct ath_common *common, u32 off, u16 *data); off 800 drivers/net/wireless/ath/ath9k/pci.c static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data) off 804 drivers/net/wireless/ath/ath9k/pci.c common->ops->read(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); off 47 drivers/net/wireless/ath/carl9170/debug.c #define ADD(buf, off, max, fmt, args...) \ off 48 drivers/net/wireless/ath/carl9170/debug.c off += snprintf(&buf[off], max - off, fmt, ##args); off 285 drivers/net/wireless/ath/carl9170/debug.c ssize_t *off, ssize_t bufsize) off 292 drivers/net/wireless/ath/carl9170/debug.c ADD(buf, *off, bufsize, "%s %p, c:%2x, DA:%pM, sq:%4d, mc:%.4x, " off 1553 drivers/net/wireless/ath/carl9170/main.c unsigned int i, off = 0, transfer, count; off 1571 drivers/net/wireless/ath/carl9170/main.c ar->rng.cache[off + i] = buf[i]; off 1573 drivers/net/wireless/ath/carl9170/main.c off += transfer; off 349 drivers/net/wireless/ath/carl9170/tx.c u16 off; off 351 drivers/net/wireless/ath/carl9170/tx.c off = SEQ_DIFF(seq, tid_info->bsn); off 353 drivers/net/wireless/ath/carl9170/tx.c if (WARN_ON_ONCE(off >= CARL9170_BAW_BITS)) off 362 drivers/net/wireless/ath/carl9170/tx.c WARN_ON_ONCE(!test_and_clear_bit(off, tid_info->bitmap)); off 364 drivers/net/wireless/ath/carl9170/tx.c off = SEQ_DIFF(tid_info->snx, tid_info->bsn); off 365 drivers/net/wireless/ath/carl9170/tx.c if (WARN_ON_ONCE(off >= CARL9170_BAW_BITS)) off 368 drivers/net/wireless/ath/carl9170/tx.c if (!bitmap_empty(tid_info->bitmap, off)) off 369 drivers/net/wireless/ath/carl9170/tx.c off = find_first_bit(tid_info->bitmap, off); off 371 drivers/net/wireless/ath/carl9170/tx.c tid_info->bsn += off; off 375 drivers/net/wireless/ath/carl9170/tx.c off, CARL9170_BAW_BITS); off 1401 drivers/net/wireless/ath/carl9170/tx.c u16 tid, seq, qseq, off; off 1425 drivers/net/wireless/ath/carl9170/tx.c off = SEQ_DIFF(seq, agg->bsn); off 1426 drivers/net/wireless/ath/carl9170/tx.c if (WARN_ON_ONCE(test_and_set_bit(off, agg->bitmap))) off 1616 drivers/net/wireless/ath/carl9170/tx.c u32 word, ht1, plcp, off, addr, len; off 1638 drivers/net/wireless/ath/carl9170/tx.c off = cvif->id * AR9170_MAC_BCN_LENGTH_MAX; off 1639 drivers/net/wireless/ath/carl9170/tx.c addr = ar->fw.beacon_addr + off; off 1642 drivers/net/wireless/ath/carl9170/tx.c if ((off + len) > ar->fw.beacon_max_len) { off 34 drivers/net/wireless/ath/main.c u32 off; off 51 drivers/net/wireless/ath/main.c off = ((unsigned long) skb->data) % common->cachelsz; off 52 drivers/net/wireless/ath/main.c if (off != 0) off 53 drivers/net/wireless/ath/main.c skb_reserve(skb, common->cachelsz - off); off 49 drivers/net/wireless/ath/wil6210/debugfs.c ulong off; off 282 drivers/net/wireless/ath/wil6210/debugfs.c void __iomem *off) off 296 drivers/net/wireless/ath/wil6210/debugfs.c wil_memcpy_fromio_32(&r, off, sizeof(r)); off 474 drivers/net/wireless/ath/wil6210/debugfs.c base + tbl[i].off); off 478 drivers/net/wireless/ath/wil6210/debugfs.c base + tbl[i].off); off 482 drivers/net/wireless/ath/wil6210/debugfs.c dbg, base + tbl[i].off, off 487 drivers/net/wireless/ath/wil6210/debugfs.c dbg, base + tbl[i].off, off 492 drivers/net/wireless/ath/wil6210/debugfs.c base + tbl[i].off); off 511 drivers/net/wireless/ath/wil6210/debugfs.c u32 off) off 515 drivers/net/wireless/ath/wil6210/debugfs.c wil6210_debugfs_init_offset(wil, d, (void * __force)wil->csr + off, off 385 drivers/net/wireless/ath/wil6210/pmc.c loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence) off 405 drivers/net/wireless/ath/wil6210/pmc.c newpos = off; off 409 drivers/net/wireless/ath/wil6210/pmc.c newpos = filp->f_pos + off; off 27 drivers/net/wireless/ath/wil6210/pmc.h loff_t wil_pmc_llseek(struct file *filp, loff_t off, int whence); off 290 drivers/net/wireless/ath/wil6210/wmi.c u32 off; off 300 drivers/net/wireless/ath/wil6210/wmi.c off = HOSTADDR(ptr); off 301 drivers/net/wireless/ath/wil6210/wmi.c if (off > wil->bar_size - 4) off 303 drivers/net/wireless/ath/wil6210/wmi.c if (size && ((off + size > wil->bar_size) || (off + size < off))) off 306 drivers/net/wireless/ath/wil6210/wmi.c return wil->csr + off; off 319 drivers/net/wireless/ath/wil6210/wmi.c u32 off; off 327 drivers/net/wireless/ath/wil6210/wmi.c off = HOSTADDR(ptr); off 328 drivers/net/wireless/ath/wil6210/wmi.c if (off > wil->bar_size - 4) off 331 drivers/net/wireless/ath/wil6210/wmi.c return wil->csr + off; off 2476 drivers/net/wireless/atmel/atmel.c static const u8 off[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; off 2483 drivers/net/wireless/atmel/atmel.c !memcmp(off, awrq->sa_data, 6)) { off 143 drivers/net/wireless/broadcom/b43/phy_n.c u16 value, u8 core, bool off, off 151 drivers/net/wireless/broadcom/b43/phy_n.c u16 value, u8 core, bool off, off 182 drivers/net/wireless/broadcom/b43/phy_n.c if (off) { off 199 drivers/net/wireless/broadcom/b43/phy_n.c u16 value, u8 core, bool off) off 208 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x20, value, core, off, 1); off 209 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x10, value, core, off, 1); off 210 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x08, value, core, off, 1); off 213 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x4, value, core, off, 1); off 214 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 1); off 215 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x1, value, core, off, 1); off 216 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 2); off 217 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x0800, 0, core, off, 1); off 220 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x4, value, core, off, 0); off 221 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x2, value, core, off, 1); off 222 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x1, value, core, off, 2); off 223 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x0800, 1, core, off, 1); off 227 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x0800, tmp, core, off, 0); off 229 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x6000, tmp, core, off, 0); off 233 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x1000, tmp, core, off, 0); off 235 drivers/net/wireless/broadcom/b43/phy_n.c b43_nphy_rf_ctl_override_rev7(dev, 0x4000, tmp, core, off, 0); off 242 drivers/net/wireless/broadcom/b43/phy_n.c u16 value, u8 core, bool off) off 265 drivers/net/wireless/broadcom/b43/phy_n.c if (off) { off 280 drivers/net/wireless/broadcom/b43/phy_n.c if (off) { off 4777 drivers/net/wireless/broadcom/b43/phy_n.c int core, off; off 4782 drivers/net/wireless/broadcom/b43/phy_n.c off = core * 11; off 4784 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 0] = b43_radio_read(dev, r + R2057_TX0_TX_SSI_MASTER); off 4785 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 1] = b43_radio_read(dev, r + R2057_TX0_IQCAL_VCM_HG); off 4786 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 2] = b43_radio_read(dev, r + R2057_TX0_IQCAL_IDAC); off 4787 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 3] = b43_radio_read(dev, r + R2057_TX0_TSSI_VCM); off 4788 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 4] = 0; off 4789 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 5] = b43_radio_read(dev, r + R2057_TX0_TX_SSI_MUX); off 4791 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 6] = b43_radio_read(dev, r + R2057_TX0_TSSIA); off 4792 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 7] = b43_radio_read(dev, r + R2057_TX0_TSSIG); off 4793 drivers/net/wireless/broadcom/b43/phy_n.c save[off + 8] = b43_radio_read(dev, r + R2057_TX0_TSSI_MISC1); off 74 drivers/net/wireless/broadcom/b43/ppr.c u8 maxpwr, off; off 120 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2; off 121 drivers/net/wireless/broadcom/b43/ppr.c rates->cck[i] = maxpwr - off; off 127 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_ofdm_po >> (i * 4)) & 0xf) * 2; off 128 drivers/net/wireless/broadcom/b43/ppr.c rates->ofdm[i] = maxpwr - off; off 143 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; off 144 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_cdd[i] = maxpwr - off; off 149 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; off 150 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_cdd[4 + i] = maxpwr - off; off 167 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; off 168 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_stbc[i] = maxpwr - off; off 173 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; off 174 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_stbc[4 + i] = maxpwr - off; off 181 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[2] >> (i * 4)) & 0xf) * 2; off 182 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_sdm[i] = maxpwr - off; off 185 drivers/net/wireless/broadcom/b43/ppr.c off = ((sprom_mcs_po[3] >> (i * 4)) & 0xf) * 2; off 186 drivers/net/wireless/broadcom/b43/ppr.c rates->mcs_20_sdm[4 + i] = maxpwr - off; off 1042 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h #define wlc_nphy_table_addr(pi, id, off) \ off 1043 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h wlc_phy_table_addr((pi), (id), (off), 0x72, 0x74, 0x73) off 14811 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 core_mask, u8 off, u8 override_id) off 15060 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (off) { off 17168 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 core_mask, u8 off) off 17279 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (off) { off 17298 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c if (off) { off 21375 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c u8 core_mask, u8 off) off 21386 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c value, core_mask, off, off 21390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21400 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c value, core_mask, off, off 21404 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21408 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21412 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21416 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21422 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c value, core_mask, off, off 21426 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21430 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21434 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21438 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c core_mask, off, off 21449 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c off, off 21454 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c off, off 21464 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c tgain, core_mask, off, off 21469 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c off, off 3645 drivers/net/wireless/cisco/airo.c int off = 0; off 3670 drivers/net/wireless/cisco/airo.c off = sizeof(micbuf); off 3671 drivers/net/wireless/cisco/airo.c skb_trim (skb, len - off); off 3675 drivers/net/wireless/cisco/airo.c ai->rxfids[0].virtual_host_addr + ETH_ALEN * 2 + off, off 3676 drivers/net/wireless/cisco/airo.c len - ETH_ALEN * 2 - off); off 3677 drivers/net/wireless/cisco/airo.c if (decapsulate (ai, &micbuf, (etherHead*)buffer, len - off - ETH_ALEN * 2)) { off 3320 drivers/net/wireless/intel/iwlegacy/commands.h u8 off; /* # intervals off while blinking; off 475 drivers/net/wireless/intel/iwlegacy/common.c il_led_cmd(struct il_priv *il, unsigned long on, unsigned long off) off 486 drivers/net/wireless/intel/iwlegacy/common.c if (il->blink_on == on && il->blink_off == off) off 489 drivers/net/wireless/intel/iwlegacy/common.c if (off == 0) { off 499 drivers/net/wireless/intel/iwlegacy/common.c led_cmd.off = off 500 drivers/net/wireless/intel/iwlegacy/common.c il_blink_compensation(il, off, off 506 drivers/net/wireless/intel/iwlegacy/common.c il->blink_off = off; off 3246 drivers/net/wireless/intel/iwlwifi/dvm/commands.h u8 off; /* # intervals off while blinking; off 104 drivers/net/wireless/intel/iwlwifi/dvm/led.c unsigned long off) off 115 drivers/net/wireless/intel/iwlwifi/dvm/led.c if (priv->blink_on == on && priv->blink_off == off) off 118 drivers/net/wireless/intel/iwlwifi/dvm/led.c if (off == 0) { off 125 drivers/net/wireless/intel/iwlwifi/dvm/led.c led_cmd.off = iwl_blink_compensation(priv, off, off 131 drivers/net/wireless/intel/iwlwifi/dvm/led.c priv->blink_off = off; off 141 drivers/net/wireless/intel/iwlwifi/dvm/led.c unsigned long off = 0; off 146 drivers/net/wireless/intel/iwlwifi/dvm/led.c off = IWL_LED_SOLID; off 148 drivers/net/wireless/intel/iwlwifi/dvm/led.c iwl_led_cmd(priv, on, off); off 96 drivers/net/wireless/intel/iwlwifi/mvm/tx.c #define OPT_HDR(type, skb, off) \ off 97 drivers/net/wireless/intel/iwlwifi/mvm/tx.c (type *)(skb_network_header(skb) + (off)) off 130 drivers/net/wireless/intel/iwlwifi/mvm/tx.c unsigned int off = sizeof(*ipv6h); off 144 drivers/net/wireless/intel/iwlwifi/mvm/tx.c hp = OPT_HDR(struct ipv6_opt_hdr, skb, off); off 146 drivers/net/wireless/intel/iwlwifi/mvm/tx.c off += ipv6_optlen(hp); off 200 drivers/net/wireless/intersil/hostap/hostap_proc.c size_t off; off 205 drivers/net/wireless/intersil/hostap/hostap_proc.c off = *_pos; off 206 drivers/net/wireless/intersil/hostap/hostap_proc.c if (count > PRISM2_PDA_SIZE - off) off 207 drivers/net/wireless/intersil/hostap/hostap_proc.c count = PRISM2_PDA_SIZE - off; off 208 drivers/net/wireless/intersil/hostap/hostap_proc.c if (copy_to_user(buf, local->pda + off, count) != 0) off 232 drivers/net/wireless/intersil/hostap/hostap_proc.c static int prism2_io_debug_proc_read(char *page, char **start, off_t off, off 239 drivers/net/wireless/intersil/hostap/hostap_proc.c if (off + count > PRISM2_IO_DEBUG_SIZE * 4) { off 241 drivers/net/wireless/intersil/hostap/hostap_proc.c if (off >= PRISM2_IO_DEBUG_SIZE * 4) off 243 drivers/net/wireless/intersil/hostap/hostap_proc.c count = PRISM2_IO_DEBUG_SIZE * 4 - off; off 249 drivers/net/wireless/intersil/hostap/hostap_proc.c if (off < start_bytes) { off 250 drivers/net/wireless/intersil/hostap/hostap_proc.c copy = start_bytes - off; off 253 drivers/net/wireless/intersil/hostap/hostap_proc.c memcpy(page, ((u8 *) &local->io_debug[head]) + off, copy); off 258 drivers/net/wireless/intersil/hostap/hostap_proc.c memcpy(page, ((u8 *) local->io_debug) + (off - start_bytes), off 420 drivers/net/wireless/intersil/orinoco/hermes.h #define hermes_read_reg(hw, off) \ off 421 drivers/net/wireless/intersil/orinoco/hermes.h (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing))) off 422 drivers/net/wireless/intersil/orinoco/hermes.h #define hermes_write_reg(hw, off, val) \ off 423 drivers/net/wireless/intersil/orinoco/hermes.h (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing))) off 468 drivers/net/wireless/intersil/orinoco/hermes.h static inline void hermes_read_words(struct hermes *hw, int off, off 471 drivers/net/wireless/intersil/orinoco/hermes.h off = off << hw->reg_spacing; off 472 drivers/net/wireless/intersil/orinoco/hermes.h ioread16_rep(hw->iobase + off, buf, count); off 475 drivers/net/wireless/intersil/orinoco/hermes.h static inline void hermes_write_bytes(struct hermes *hw, int off, off 478 drivers/net/wireless/intersil/orinoco/hermes.h off = off << hw->reg_spacing; off 479 drivers/net/wireless/intersil/orinoco/hermes.h iowrite16_rep(hw->iobase + off, buf, count >> 1); off 481 drivers/net/wireless/intersil/orinoco/hermes.h iowrite8(buf[count - 1], hw->iobase + off); off 484 drivers/net/wireless/intersil/orinoco/hermes.h static inline void hermes_clear_words(struct hermes *hw, int off, off 489 drivers/net/wireless/intersil/orinoco/hermes.h off = off << hw->reg_spacing; off 492 drivers/net/wireless/intersil/orinoco/hermes.h iowrite16(0, hw->iobase + off); off 2539 drivers/net/wireless/marvell/mwl8k.c int off; off 2566 drivers/net/wireless/marvell/mwl8k.c off = le32_to_cpu(cmd->rxwrptr) & 0xffff; off 2567 drivers/net/wireless/marvell/mwl8k.c iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); off 2569 drivers/net/wireless/marvell/mwl8k.c off = le32_to_cpu(cmd->rxrdptr) & 0xffff; off 2570 drivers/net/wireless/marvell/mwl8k.c iowrite32(priv->rxq[0].rxd_dma, priv->sram + off); off 38 drivers/net/wireless/mediatek/mt7601u/debugfs.c #define stat_printf(grp, off, name) \ off 39 drivers/net/wireless/mediatek/mt7601u/debugfs.c seq_printf(file, #name ":\t%llu\n", dev->stats.grp[off]) off 1293 drivers/net/wireless/ralink/rt2x00/rt2800lib.c u64 off, reg = 0; off 1303 drivers/net/wireless/ralink/rt2x00/rt2800lib.c off = rt2800_get_beacon_offset(rt2x00dev, entry->entry_idx); off 1304 drivers/net/wireless/ralink/rt2x00/rt2800lib.c reg |= off << (8 * bcn_num); off 118 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c u16 off, len, bsize; off 123 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c off = offset; off 128 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c requesttype, off, tb, off 133 drivers/net/wireless/ralink/rt2x00/rt2x00usb.c off += bsize; off 266 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h static inline void set_txbuffer_desc_add_high_with_offset(__le32 *pbd, u8 off, off 270 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h *(pbd + 4 * off + 2) = cpu_to_le32(val); off 272 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h *(pbd + 4 * off + 2) = 0; off 280 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h static inline u32 get_txbuffer_desc_addr_high(__le32 *pbd, u32 off, bool dma64) off 283 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.h return le32_to_cpu(*((pbd + 4 * off + 2))); off 173 drivers/net/wireless/st/cw1200/txrx.c register unsigned rateid, off, shift, retries; off 176 drivers/net/wireless/st/cw1200/txrx.c off = rateid >> 3; /* eq. rateid / 8 */ off 184 drivers/net/wireless/st/cw1200/txrx.c policy->tbl[off] |= __cpu_to_le32(retries << shift); off 426 drivers/net/xen-netback/common.h u32 off); off 334 drivers/net/xen-netback/hash.c u32 off) off 346 drivers/net/xen-netback/hash.c if ((off + len < off) || (off + len > vif->hash.size) || off 350 drivers/net/xen-netback/hash.c copy_op[0].dest.u.gmfn = virt_to_gfn(mapping + off); off 351 drivers/net/xen-netback/hash.c copy_op[0].dest.offset = xen_offset_in_page(mapping + off); off 355 drivers/net/xen-netback/hash.c copy_op[1].dest.u.gmfn = virt_to_gfn(mapping + off + len); off 374 drivers/net/xen-netback/hash.c if (mapping[off++] >= vif->num_queues) off 422 drivers/nfc/s3fwrn5/firmware.c u32 image_size, off; off 467 drivers/nfc/s3fwrn5/firmware.c for (off = 0; off < image_size; off += fw_info->sector_size) { off 469 drivers/nfc/s3fwrn5/firmware.c fw_info->base_addr + off, fw->image + off); off 718 drivers/ntb/hw/amd/ntb_hw_amd.c ssize_t ret, off; off 730 drivers/ntb/hw/amd/ntb_hw_amd.c off = 0; off 732 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 735 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 739 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 743 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 746 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 748 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 751 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 756 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 758 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 760 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 762 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 765 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 769 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 773 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 776 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 780 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 784 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 788 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 792 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 796 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 800 drivers/ntb/hw/amd/ntb_hw_amd.c off += scnprintf(buf + off, buf_size - off, off 803 drivers/ntb/hw/amd/ntb_hw_amd.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); off 2340 drivers/ntb/hw/idt/ntb_hw_idt.c ssize_t ret = 0, off = 0; off 2356 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2360 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2364 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "Peers:\n"); off 2366 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2373 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2375 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "PCIe Gen %d x%d lanes\n", off 2379 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "NTB Mapping Table:\n"); off 2388 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2394 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "\n"); off 2397 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2405 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2408 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2411 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "%s BAR%hhu, ", off 2414 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2417 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2424 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2434 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2437 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2440 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2444 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2448 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2454 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "\n"); off 2458 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2461 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2464 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2466 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "\n"); off 2469 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2472 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2475 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2477 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2482 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2486 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, "\n"); off 2490 drivers/ntb/hw/idt/ntb_hw_idt.c off += scnprintf(strbuf + off, size - off, off 2495 drivers/ntb/hw/idt/ntb_hw_idt.c ret = simple_read_from_buffer(ubuf, count, offp, strbuf, off); off 498 drivers/ntb/hw/intel/ntb_hw_gen1.c ssize_t ret, off; off 511 drivers/ntb/hw/intel/ntb_hw_gen1.c off = 0; off 513 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 516 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 521 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 523 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 527 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 531 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 533 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 537 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 540 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 542 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 545 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 550 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 552 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 554 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 556 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 558 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 561 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 563 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 565 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 569 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 573 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 576 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 580 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 584 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 588 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 591 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 596 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 600 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 604 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 607 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 611 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 615 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 620 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 624 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 628 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 633 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 638 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 641 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 645 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 651 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 655 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 660 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 664 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 669 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 675 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 680 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 684 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 689 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 694 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 698 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 702 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 707 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 710 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 714 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 720 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 724 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 727 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 732 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 737 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 742 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 747 drivers/ntb/hw/intel/ntb_hw_gen1.c off += scnprintf(buf + off, buf_size - off, off 751 drivers/ntb/hw/intel/ntb_hw_gen1.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); off 262 drivers/ntb/hw/intel/ntb_hw_gen3.c ssize_t ret, off; off 274 drivers/ntb/hw/intel/ntb_hw_gen3.c off = 0; off 276 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 279 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 283 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 285 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 289 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 292 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 294 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 297 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 302 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 304 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 306 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 308 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 310 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 313 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 315 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 317 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 321 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 325 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 328 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 332 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 336 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 340 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 344 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 348 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 352 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 356 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 360 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 364 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 367 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 371 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 375 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 379 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 383 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 387 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 390 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 395 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 400 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 405 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 410 drivers/ntb/hw/intel/ntb_hw_gen3.c off += scnprintf(buf + off, buf_size - off, off 413 drivers/ntb/hw/intel/ntb_hw_gen3.c ret = simple_read_from_buffer(ubuf, count, offp, buf, off); off 649 drivers/ntb/test/ntb_tool.c ssize_t ret, off = 0; off 664 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 668 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 673 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 676 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 680 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 684 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 688 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 692 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 696 drivers/ntb/test/ntb_tool.c ret = simple_read_from_buffer(ubuf, size, offp, buf, off); off 877 drivers/ntb/test/ntb_tool.c ssize_t off = 0; off 893 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 897 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 902 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 906 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 909 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 912 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 915 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 918 drivers/ntb/test/ntb_tool.c off += scnprintf(buf + off, buf_size - off, off 921 drivers/ntb/test/ntb_tool.c ret = simple_read_from_buffer(ubuf, size, offp, buf, off); off 118 drivers/nvdimm/blk.c unsigned int len, unsigned int off, int rw, sector_t sector) off 147 drivers/nvdimm/blk.c err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); off 158 drivers/nvdimm/blk.c off += cur_len; off 1107 drivers/nvdimm/btt.c unsigned int off, u32 lba, u32 len) off 1113 drivers/nvdimm/btt.c ret = arena_read_bytes(arena, nsoff, mem + off, len, NVDIMM_IO_ATOMIC); off 1120 drivers/nvdimm/btt.c struct page *page, unsigned int off, u32 len) off 1126 drivers/nvdimm/btt.c ret = arena_write_bytes(arena, nsoff, mem + off, len, NVDIMM_IO_ATOMIC); off 1132 drivers/nvdimm/btt.c static void zero_fill_data(struct page *page, unsigned int off, u32 len) off 1136 drivers/nvdimm/btt.c memset(mem + off, 0, len); off 1198 drivers/nvdimm/btt.c struct page *page, unsigned int off, sector_t sector, off 1232 drivers/nvdimm/btt.c zero_fill_data(page, off, cur_len); off 1262 drivers/nvdimm/btt.c ret = btt_data_read(arena, page, off, postmap, cur_len); off 1282 drivers/nvdimm/btt.c off += cur_len; off 1311 drivers/nvdimm/btt.c sector_t sector, struct page *page, unsigned int off, off 1365 drivers/nvdimm/btt.c ret = btt_data_write(arena, new_postmap, page, off, cur_len); off 1412 drivers/nvdimm/btt.c off += cur_len; off 1426 drivers/nvdimm/btt.c struct page *page, unsigned int len, unsigned int off, off 1432 drivers/nvdimm/btt.c ret = btt_read_pg(btt, bip, page, off, sector, len); off 1436 drivers/nvdimm/btt.c ret = btt_write_pg(btt, bip, sector, page, off, len); off 101 drivers/nvdimm/pmem.c unsigned int off, unsigned int len) off 108 drivers/nvdimm/pmem.c chunk = min_t(unsigned int, len, PAGE_SIZE - off); off 109 drivers/nvdimm/pmem.c memcpy_flushcache(pmem_addr, mem + off, chunk); off 112 drivers/nvdimm/pmem.c off = 0; off 118 drivers/nvdimm/pmem.c static blk_status_t read_pmem(struct page *page, unsigned int off, off 127 drivers/nvdimm/pmem.c chunk = min_t(unsigned int, len, PAGE_SIZE - off); off 128 drivers/nvdimm/pmem.c rem = memcpy_mcsafe(mem + off, pmem_addr, chunk); off 133 drivers/nvdimm/pmem.c off = 0; off 141 drivers/nvdimm/pmem.c unsigned int len, unsigned int off, unsigned int op, off 156 drivers/nvdimm/pmem.c rc = read_pmem(page, off, pmem_addr, len); off 175 drivers/nvdimm/pmem.c write_pmem(pmem_addr, page, off, len); off 178 drivers/nvdimm/pmem.c write_pmem(pmem_addr, page, off, len); off 2462 drivers/nvme/host/core.c int off; off 2476 drivers/nvme/host/core.c off = snprintf(subsys->subnqn, NVMF_NQN_SIZE, off 2479 drivers/nvme/host/core.c memcpy(subsys->subnqn + off, id->sn, sizeof(id->sn)); off 2480 drivers/nvme/host/core.c off += sizeof(id->sn); off 2481 drivers/nvme/host/core.c memcpy(subsys->subnqn + off, id->mn, sizeof(id->mn)); off 2482 drivers/nvme/host/core.c off += sizeof(id->mn); off 2483 drivers/nvme/host/core.c memset(subsys->subnqn + off, 0, sizeof(subsys->subnqn) - off); off 142 drivers/nvme/host/fabrics.c int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) off 151 drivers/nvme/host/fabrics.c cmd.prop_get.offset = cpu_to_le32(off); off 161 drivers/nvme/host/fabrics.c ret > 0 ? ret & ~NVME_SC_DNR : ret, off); off 188 drivers/nvme/host/fabrics.c int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) off 198 drivers/nvme/host/fabrics.c cmd.prop_get.offset = cpu_to_le32(off); off 208 drivers/nvme/host/fabrics.c ret > 0 ? ret & ~NVME_SC_DNR : ret, off); off 234 drivers/nvme/host/fabrics.c int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) off 243 drivers/nvme/host/fabrics.c cmd.prop_set.offset = cpu_to_le32(off); off 251 drivers/nvme/host/fabrics.c ret > 0 ? ret & ~NVME_SC_DNR : ret, off); off 165 drivers/nvme/host/fabrics.h int nvmf_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val); off 166 drivers/nvme/host/fabrics.h int nvmf_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val); off 167 drivers/nvme/host/fabrics.h int nvmf_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val); off 390 drivers/nvme/host/nvme.h int (*reg_read32)(struct nvme_ctrl *ctrl, u32 off, u32 *val); off 391 drivers/nvme/host/nvme.h int (*reg_write32)(struct nvme_ctrl *ctrl, u32 off, u32 val); off 392 drivers/nvme/host/nvme.h int (*reg_read64)(struct nvme_ctrl *ctrl, u32 off, u64 *val); off 2676 drivers/nvme/host/pci.c static int nvme_pci_reg_read32(struct nvme_ctrl *ctrl, u32 off, u32 *val) off 2678 drivers/nvme/host/pci.c *val = readl(to_nvme_dev(ctrl)->bar + off); off 2682 drivers/nvme/host/pci.c static int nvme_pci_reg_write32(struct nvme_ctrl *ctrl, u32 off, u32 val) off 2684 drivers/nvme/host/pci.c writel(val, to_nvme_dev(ctrl)->bar + off); off 2688 drivers/nvme/host/pci.c static int nvme_pci_reg_read64(struct nvme_ctrl *ctrl, u32 off, u64 *val) off 2690 drivers/nvme/host/pci.c *val = lo_hi_readq(to_nvme_dev(ctrl)->bar + off); off 284 drivers/nvme/host/tcp.c struct page *page, off_t off, size_t len) off 289 drivers/nvme/host/tcp.c sg_set_page(&sg, page, len, off); off 717 drivers/nvme/host/tcp.c off_t off = NVME_TCP_DIGEST_LENGTH - queue->ddgst_remaining; off 720 drivers/nvme/host/tcp.c ret = skb_copy_bits(skb, *offset, &ddgst[off], recv_len); off 510 drivers/nvme/target/admin-cmd.c void *id, off_t *off) off 518 drivers/nvme/target/admin-cmd.c status = nvmet_copy_to_sgl(req, *off, &desc, sizeof(desc)); off 521 drivers/nvme/target/admin-cmd.c *off += sizeof(desc); off 523 drivers/nvme/target/admin-cmd.c status = nvmet_copy_to_sgl(req, *off, id, len); off 526 drivers/nvme/target/admin-cmd.c *off += len; off 535 drivers/nvme/target/admin-cmd.c off_t off = 0; off 547 drivers/nvme/target/admin-cmd.c &ns->uuid, &off); off 554 drivers/nvme/target/admin-cmd.c &ns->nguid, &off); off 559 drivers/nvme/target/admin-cmd.c if (sg_zero_buffer(req->sg, req->sg_cnt, NVME_IDENTIFY_DATA_SIZE - off, off 560 drivers/nvme/target/admin-cmd.c off) != NVME_IDENTIFY_DATA_SIZE - off) off 88 drivers/nvme/target/core.c u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf, off 91 drivers/nvme/target/core.c if (sg_pcopy_from_buffer(req->sg, req->sg_cnt, buf, len, off) != len) { off 98 drivers/nvme/target/core.c u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf, size_t len) off 100 drivers/nvme/target/core.c if (sg_pcopy_to_buffer(req->sg, req->sg_cnt, buf, len, off) != len) { off 107 drivers/nvme/target/core.c u16 nvmet_zero_sgl(struct nvmet_req *req, off_t off, size_t len) off 109 drivers/nvme/target/core.c if (sg_zero_buffer(req->sg, req->sg_cnt, len, off) != len) { off 430 drivers/nvme/target/nvmet.h u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf, off 432 drivers/nvme/target/nvmet.h u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf, off 434 drivers/nvme/target/nvmet.h u16 nvmet_zero_sgl(struct nvmet_req *req, off_t off, size_t len); off 610 drivers/nvme/target/rdma.c u64 off) off 622 drivers/nvme/target/rdma.c sg->offset = off; off 623 drivers/nvme/target/rdma.c sg->length = min_t(int, len, PAGE_SIZE - off); off 626 drivers/nvme/target/rdma.c off = 0; off 636 drivers/nvme/target/rdma.c u64 off = le64_to_cpu(sgl->addr); off 645 drivers/nvme/target/rdma.c if (off + len > rsp->queue->dev->inline_data_size) { off 654 drivers/nvme/target/rdma.c nvmet_rdma_use_inline_sg(rsp, len, off); off 1271 drivers/of/fdt.c char *buf, loff_t off, size_t count) off 1273 drivers/of/fdt.c memcpy(buf, initial_boot_params + off, count); off 165 drivers/of/resolver.c unsigned int off; off 191 drivers/of/resolver.c off = be32_to_cpu(((__be32 *)prop_fix->value)[i]); off 192 drivers/of/resolver.c if ((off + 4) > prop->length) off 195 drivers/of/resolver.c be32_add_cpu(prop->value + off, phandle_delta); off 79 drivers/parisc/led.c unsigned char off; /* value for turning LED off */ off 333 drivers/parisc/led.c blockp[i]->off, LCD_DATA_REG ); off 167 drivers/parport/probe.c int off = 2; off 170 drivers/parport/probe.c off = 0; off 171 drivers/parport/probe.c idlens[off] = max(belen, lelen); off 172 drivers/parport/probe.c idlens[off+1] = idlens[off]+2; off 173 drivers/parport/probe.c numidlens = off+2; off 127 drivers/pci/controller/pcie-mobiveil.c #define OFFSET_TO_PAGE_ADDR(off) \ off 128 drivers/pci/controller/pcie-mobiveil.c ((off & PAGE_LO_MASK) | PAGED_ADDR_BNDRY) off 129 drivers/pci/controller/pcie-mobiveil.c #define OFFSET_TO_PAGE_IDX(off) \ off 130 drivers/pci/controller/pcie-mobiveil.c ((off >> PAGE_SEL_OFFSET_SHIFT) & PAGE_SEL_MASK) off 179 drivers/pci/controller/pcie-mobiveil.c static void *mobiveil_pcie_comp_addr(struct mobiveil_pcie *pcie, u32 off) off 181 drivers/pci/controller/pcie-mobiveil.c if (off < PAGED_ADDR_BNDRY) { off 184 drivers/pci/controller/pcie-mobiveil.c return pcie->csr_axi_slave_base + off; off 187 drivers/pci/controller/pcie-mobiveil.c mobiveil_pcie_sel_page(pcie, OFFSET_TO_PAGE_IDX(off)); off 188 drivers/pci/controller/pcie-mobiveil.c return pcie->csr_axi_slave_base + OFFSET_TO_PAGE_ADDR(off); off 238 drivers/pci/controller/pcie-mobiveil.c static u32 mobiveil_csr_read(struct mobiveil_pcie *pcie, u32 off, size_t size) off 244 drivers/pci/controller/pcie-mobiveil.c addr = mobiveil_pcie_comp_addr(pcie, off); off 253 drivers/pci/controller/pcie-mobiveil.c static void mobiveil_csr_write(struct mobiveil_pcie *pcie, u32 val, u32 off, off 259 drivers/pci/controller/pcie-mobiveil.c addr = mobiveil_pcie_comp_addr(pcie, off); off 266 drivers/pci/controller/pcie-mobiveil.c static u32 mobiveil_csr_readl(struct mobiveil_pcie *pcie, u32 off) off 268 drivers/pci/controller/pcie-mobiveil.c return mobiveil_csr_read(pcie, off, 0x4); off 271 drivers/pci/controller/pcie-mobiveil.c static void mobiveil_csr_writel(struct mobiveil_pcie *pcie, u32 val, u32 off) off 273 drivers/pci/controller/pcie-mobiveil.c mobiveil_csr_write(pcie, val, off, 0x4); off 175 drivers/pci/controller/pcie-xilinx-nwl.c static inline u32 nwl_bridge_readl(struct nwl_pcie *pcie, u32 off) off 177 drivers/pci/controller/pcie-xilinx-nwl.c return readl(pcie->breg_base + off); off 180 drivers/pci/controller/pcie-xilinx-nwl.c static inline void nwl_bridge_writel(struct nwl_pcie *pcie, u32 val, u32 off) off 182 drivers/pci/controller/pcie-xilinx-nwl.c writel(val, pcie->breg_base + off); off 154 drivers/pci/hotplug/cpqphp_sysfs.c static loff_t lseek(struct file *file, loff_t off, int whence) off 157 drivers/pci/hotplug/cpqphp_sysfs.c return fixed_size_llseek(file, off, whence, dbg->size); off 678 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 682 drivers/pci/pci-sysfs.c loff_t init_off = off; off 691 drivers/pci/pci-sysfs.c if (off > size) off 693 drivers/pci/pci-sysfs.c if (off + count > size) { off 694 drivers/pci/pci-sysfs.c size -= off; off 702 drivers/pci/pci-sysfs.c if ((off & 1) && size) { off 704 drivers/pci/pci-sysfs.c pci_user_read_config_byte(dev, off, &val); off 705 drivers/pci/pci-sysfs.c data[off - init_off] = val; off 706 drivers/pci/pci-sysfs.c off++; off 710 drivers/pci/pci-sysfs.c if ((off & 3) && size > 2) { off 712 drivers/pci/pci-sysfs.c pci_user_read_config_word(dev, off, &val); off 713 drivers/pci/pci-sysfs.c data[off - init_off] = val & 0xff; off 714 drivers/pci/pci-sysfs.c data[off - init_off + 1] = (val >> 8) & 0xff; off 715 drivers/pci/pci-sysfs.c off += 2; off 721 drivers/pci/pci-sysfs.c pci_user_read_config_dword(dev, off, &val); off 722 drivers/pci/pci-sysfs.c data[off - init_off] = val & 0xff; off 723 drivers/pci/pci-sysfs.c data[off - init_off + 1] = (val >> 8) & 0xff; off 724 drivers/pci/pci-sysfs.c data[off - init_off + 2] = (val >> 16) & 0xff; off 725 drivers/pci/pci-sysfs.c data[off - init_off + 3] = (val >> 24) & 0xff; off 726 drivers/pci/pci-sysfs.c off += 4; off 732 drivers/pci/pci-sysfs.c pci_user_read_config_word(dev, off, &val); off 733 drivers/pci/pci-sysfs.c data[off - init_off] = val & 0xff; off 734 drivers/pci/pci-sysfs.c data[off - init_off + 1] = (val >> 8) & 0xff; off 735 drivers/pci/pci-sysfs.c off += 2; off 741 drivers/pci/pci-sysfs.c pci_user_read_config_byte(dev, off, &val); off 742 drivers/pci/pci-sysfs.c data[off - init_off] = val; off 743 drivers/pci/pci-sysfs.c off++; off 754 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 758 drivers/pci/pci-sysfs.c loff_t init_off = off; off 766 drivers/pci/pci-sysfs.c if (off > dev->cfg_size) off 768 drivers/pci/pci-sysfs.c if (off + count > dev->cfg_size) { off 769 drivers/pci/pci-sysfs.c size = dev->cfg_size - off; off 775 drivers/pci/pci-sysfs.c if ((off & 1) && size) { off 776 drivers/pci/pci-sysfs.c pci_user_write_config_byte(dev, off, data[off - init_off]); off 777 drivers/pci/pci-sysfs.c off++; off 781 drivers/pci/pci-sysfs.c if ((off & 3) && size > 2) { off 782 drivers/pci/pci-sysfs.c u16 val = data[off - init_off]; off 783 drivers/pci/pci-sysfs.c val |= (u16) data[off - init_off + 1] << 8; off 784 drivers/pci/pci-sysfs.c pci_user_write_config_word(dev, off, val); off 785 drivers/pci/pci-sysfs.c off += 2; off 790 drivers/pci/pci-sysfs.c u32 val = data[off - init_off]; off 791 drivers/pci/pci-sysfs.c val |= (u32) data[off - init_off + 1] << 8; off 792 drivers/pci/pci-sysfs.c val |= (u32) data[off - init_off + 2] << 16; off 793 drivers/pci/pci-sysfs.c val |= (u32) data[off - init_off + 3] << 24; off 794 drivers/pci/pci-sysfs.c pci_user_write_config_dword(dev, off, val); off 795 drivers/pci/pci-sysfs.c off += 4; off 800 drivers/pci/pci-sysfs.c u16 val = data[off - init_off]; off 801 drivers/pci/pci-sysfs.c val |= (u16) data[off - init_off + 1] << 8; off 802 drivers/pci/pci-sysfs.c pci_user_write_config_word(dev, off, val); off 803 drivers/pci/pci-sysfs.c off += 2; off 808 drivers/pci/pci-sysfs.c pci_user_write_config_byte(dev, off, data[off - init_off]); off 809 drivers/pci/pci-sysfs.c off++; off 833 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 841 drivers/pci/pci-sysfs.c return pci_legacy_read(bus, off, (u32 *)buf, count); off 858 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 866 drivers/pci/pci-sysfs.c return pci_legacy_write(bus, off, *(u32 *)buf, count); off 1059 drivers/pci/pci-sysfs.c loff_t off, size_t count, bool write) off 1063 drivers/pci/pci-sysfs.c unsigned long port = off; off 1098 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 1100 drivers/pci/pci-sysfs.c return pci_resource_io(filp, kobj, attr, buf, off, count, false); off 1105 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 1113 drivers/pci/pci-sysfs.c return pci_resource_io(filp, kobj, attr, buf, off, count, true); off 1234 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 1238 drivers/pci/pci-sysfs.c if ((off == 0) && (*buf == '0') && (count == 2)) off 1260 drivers/pci/pci-sysfs.c loff_t off, size_t count) off 1273 drivers/pci/pci-sysfs.c if (off >= size) off 1276 drivers/pci/pci-sysfs.c if (off + count > size) off 1277 drivers/pci/pci-sysfs.c count = size - off; off 1279 drivers/pci/pci-sysfs.c memcpy_fromio(buf, rom + off, count); off 486 drivers/pci/pcie/aer_inject.c size_t usize, loff_t *off) off 387 drivers/pci/pcie/portdrv_core.c size_t off = offsetof(struct pcie_port_service_driver, suspend); off 388 drivers/pci/pcie/portdrv_core.c return device_for_each_child(dev, &off, pm_iter); off 393 drivers/pci/pcie/portdrv_core.c size_t off = offsetof(struct pcie_port_service_driver, resume_noirq); off 394 drivers/pci/pcie/portdrv_core.c return device_for_each_child(dev, &off, pm_iter); off 403 drivers/pci/pcie/portdrv_core.c size_t off = offsetof(struct pcie_port_service_driver, resume); off 404 drivers/pci/pcie/portdrv_core.c return device_for_each_child(dev, &off, pm_iter); off 413 drivers/pci/pcie/portdrv_core.c size_t off = offsetof(struct pcie_port_service_driver, runtime_suspend); off 414 drivers/pci/pcie/portdrv_core.c return device_for_each_child(dev, &off, pm_iter); off 423 drivers/pci/pcie/portdrv_core.c size_t off = offsetof(struct pcie_port_service_driver, runtime_resume); off 424 drivers/pci/pcie/portdrv_core.c return device_for_each_child(dev, &off, pm_iter); off 22 drivers/pci/proc.c static loff_t proc_bus_pci_lseek(struct file *file, loff_t off, int whence) off 25 drivers/pci/proc.c return fixed_size_llseek(file, off, whence, dev->cfg_size); off 427 drivers/pci/switch/switchtec.c size_t size, loff_t *off) off 473 drivers/pci/switch/switchtec.c size_t size, loff_t *off) off 771 drivers/pci/switch/switchtec.c size_t off; off 776 drivers/pci/switch/switchtec.c off = event_regs[event_id].offset; off 788 drivers/pci/switch/switchtec.c return event_regs[event_id].map_reg(stdev, off, index); off 1174 drivers/pci/switch/switchtec.c size_t off = event_regs[eid].offset; off 1178 drivers/pci/switch/switchtec.c hdr_reg = event_regs[eid].map_reg(stdev, off, idx); off 16 drivers/pci/syscall.c unsigned long, off, unsigned long, len, void __user *, buf) off 35 drivers/pci/syscall.c cfg_ret = pci_user_read_config_byte(dev, off, &byte); off 38 drivers/pci/syscall.c cfg_ret = pci_user_read_config_word(dev, off, &word); off 41 drivers/pci/syscall.c cfg_ret = pci_user_read_config_dword(dev, off, &dword); off 86 drivers/pci/syscall.c unsigned long, off, unsigned long, len, void __user *, buf) off 107 drivers/pci/syscall.c err = pci_user_write_config_byte(dev, off, byte); off 116 drivers/pci/syscall.c err = pci_user_write_config_word(dev, off, word); off 125 drivers/pci/syscall.c err = pci_user_write_config_dword(dev, off, dword); off 85 drivers/pci/vpd.c size_t off = 0; off 88 drivers/pci/vpd.c while (off < old_size && off 89 drivers/pci/vpd.c pci_read_vpd(dev, off, 1, header) == 1) { off 99 drivers/pci/vpd.c if (pci_read_vpd(dev, off+1, 2, off 102 drivers/pci/vpd.c tag, off + 1); off 105 drivers/pci/vpd.c off += PCI_VPD_LRDT_TAG_SIZE + off 110 drivers/pci/vpd.c off += PCI_VPD_SRDT_TAG_SIZE + off 116 drivers/pci/vpd.c return off; off 123 drivers/pci/vpd.c tag, off); off 402 drivers/pci/vpd.c loff_t off, size_t count) off 407 drivers/pci/vpd.c if (off > bin_attr->size) off 409 drivers/pci/vpd.c else if (count > bin_attr->size - off) off 410 drivers/pci/vpd.c count = bin_attr->size - off; off 413 drivers/pci/vpd.c return pci_read_vpd(dev, off, count, buf); off 418 drivers/pci/vpd.c loff_t off, size_t count) off 423 drivers/pci/vpd.c if (off > bin_attr->size) off 425 drivers/pci/vpd.c else if (count > bin_attr->size - off) off 426 drivers/pci/vpd.c count = bin_attr->size - off; off 429 drivers/pci/vpd.c return pci_write_vpd(dev, off, count, buf); off 467 drivers/pci/vpd.c int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt) off 471 drivers/pci/vpd.c for (i = off; i < len; ) { off 502 drivers/pci/vpd.c int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, off 507 drivers/pci/vpd.c for (i = off; i + PCI_VPD_INFO_FLD_HDR_SIZE <= off + len;) { off 34 drivers/pcmcia/bcm63xx_pcmcia.c static inline u32 pcmcia_readl(struct bcm63xx_pcmcia_socket *skt, u32 off) off 36 drivers/pcmcia/bcm63xx_pcmcia.c return bcm_readl(skt->base + off); off 40 drivers/pcmcia/bcm63xx_pcmcia.c u32 val, u32 off) off 42 drivers/pcmcia/bcm63xx_pcmcia.c bcm_writel(val, skt->base + off); off 1473 drivers/pcmcia/cistpl.c loff_t off, size_t count) off 1508 drivers/pcmcia/cistpl.c if (off < (pointer + 2 + tuple.TupleDataLen)) { off 1515 drivers/pcmcia/cistpl.c if (((i + pointer) >= off) && off 1516 drivers/pcmcia/cistpl.c (i + pointer) < (off + count)) { off 1525 drivers/pcmcia/cistpl.c if (pointer >= (off + count)) off 1543 drivers/pcmcia/cistpl.c char *buf, loff_t off, size_t count) off 1547 drivers/pcmcia/cistpl.c if (off >= size) off 1553 drivers/pcmcia/cistpl.c if (off + count > size) off 1554 drivers/pcmcia/cistpl.c count = size - off; off 1565 drivers/pcmcia/cistpl.c count = pccard_extract_cis(s, buf, off, count); off 1574 drivers/pcmcia/cistpl.c char *buf, loff_t off, size_t count) off 1585 drivers/pcmcia/cistpl.c if (off) off 78 drivers/phy/cadence/phy-cadence-sierra.c u32 off; off 121 drivers/phy/cadence/phy-cadence-sierra.c vals[j].off + (i + ins->mlane) * 0x800); off 917 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 off, bit; off 919 drivers/pinctrl/bcm/pinctrl-bcm2835.c off = GPIO_REG_OFFSET(pin); off 930 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPPUDCLK0 + (off * 4), BIT(bit)); off 932 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GPPUDCLK0 + (off * 4), 0); off 991 drivers/pinctrl/bcm/pinctrl-bcm2835.c u32 off; off 993 drivers/pinctrl/bcm/pinctrl-bcm2835.c off = PUD_2711_REG_OFFSET(pin); off 996 drivers/pinctrl/bcm/pinctrl-bcm2835.c value = bcm2835_gpio_rd(pc, GP_GPIO_PUP_PDN_CNTRL_REG0 + (off * 4)); off 999 drivers/pinctrl/bcm/pinctrl-bcm2835.c bcm2835_gpio_wr(pc, GP_GPIO_PUP_PDN_CNTRL_REG0 + (off * 4), value); off 484 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c #define CYGNUS_PIN_GROUP(group_name, off, sh, al) \ off 490 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c .offset = off, \ off 372 drivers/pinctrl/bcm/pinctrl-ns2-mux.c #define NS2_PIN_GROUP(group_name, ba, off, sh, ma, al) \ off 379 drivers/pinctrl/bcm/pinctrl-ns2-mux.c .offset = off, \ off 66 drivers/pinctrl/mvebu/pinctrl-dove.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 74 drivers/pinctrl/mvebu/pinctrl-dove.c func = readl(pmu_base + PMU_SIGNAL_SELECT_0 + off); off 84 drivers/pinctrl/mvebu/pinctrl-dove.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 95 drivers/pinctrl/mvebu/pinctrl-dove.c func = readl(pmu_base + PMU_SIGNAL_SELECT_0 + off); off 98 drivers/pinctrl/mvebu/pinctrl-dove.c writel(func, pmu_base + PMU_SIGNAL_SELECT_0 + off); off 61 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 64 drivers/pinctrl/mvebu/pinctrl-mvebu.c *config = (readl(data->base + off) >> shift) & MVEBU_MPP_MASK; off 72 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 76 drivers/pinctrl/mvebu/pinctrl-mvebu.c reg = readl(data->base + off) & ~(MVEBU_MPP_MASK << shift); off 77 drivers/pinctrl/mvebu/pinctrl-mvebu.c writel(reg | (config << shift), data->base + off); off 787 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 792 drivers/pinctrl/mvebu/pinctrl-mvebu.c err = regmap_read(data->regmap.map, data->regmap.offset + off, &val); off 804 drivers/pinctrl/mvebu/pinctrl-mvebu.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 807 drivers/pinctrl/mvebu/pinctrl-mvebu.c return regmap_update_bits(data->regmap.map, data->regmap.offset + off, off 36 drivers/pinctrl/mvebu/pinctrl-orion.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 37 drivers/pinctrl/mvebu/pinctrl-orion.c *config = (readl(mpp_base + off) >> shift) & MVEBU_MPP_MASK; off 52 drivers/pinctrl/mvebu/pinctrl-orion.c unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; off 53 drivers/pinctrl/mvebu/pinctrl-orion.c u32 reg = readl(mpp_base + off) & ~(MVEBU_MPP_MASK << shift); off 54 drivers/pinctrl/mvebu/pinctrl-orion.c writel(reg | (config << shift), mpp_base + off); off 223 drivers/pinctrl/pinctrl-lpc18xx.c #define LPC_N(pname, off, f0, f1, f2, f3, f4, f5, f6, f7, a, t) \ off 225 drivers/pinctrl/pinctrl-lpc18xx.c .offset = off, \ off 618 drivers/pinctrl/spear/pinctrl-plgpio.c void __iomem *off; off 621 drivers/pinctrl/spear/pinctrl-plgpio.c off = plgpio->base + i * sizeof(int *); off 625 drivers/pinctrl/spear/pinctrl-plgpio.c readl_relaxed(plgpio->regs.enb + off); off 628 drivers/pinctrl/spear/pinctrl-plgpio.c readl_relaxed(plgpio->regs.eit + off); off 630 drivers/pinctrl/spear/pinctrl-plgpio.c off); off 632 drivers/pinctrl/spear/pinctrl-plgpio.c off); off 633 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->csave_regs[i].ie = readl_relaxed(plgpio->regs.ie + off); off 657 drivers/pinctrl/spear/pinctrl-plgpio.c void __iomem *off; off 661 drivers/pinctrl/spear/pinctrl-plgpio.c off = plgpio->base + i * sizeof(int *); off 668 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(enb, off, mask, tmp); off 671 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(eit, off, mask, tmp); off 673 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(wdata, off, mask, tmp); off 674 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(dir, off, mask, tmp); off 675 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio_prepare_reg(ie, off, mask, tmp); off 679 drivers/pinctrl/spear/pinctrl-plgpio.c off); off 681 drivers/pinctrl/spear/pinctrl-plgpio.c off); off 685 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->regs.eit + off); off 687 drivers/pinctrl/spear/pinctrl-plgpio.c writel_relaxed(plgpio->csave_regs[i].ie, plgpio->regs.ie + off); off 691 drivers/pinctrl/spear/pinctrl-plgpio.c plgpio->regs.enb + off); off 51 drivers/pinctrl/zte/pinctrl-zx.h #define TOP_PIN(pin, off, bp, wd, coff, cbp, ...) { \ off 56 drivers/pinctrl/zte/pinctrl-zx.h .offset = off, \ off 66 drivers/pinctrl/zte/pinctrl-zx.h #define AON_PIN(pin, off, bp, wd, coff, cbp, ...) { \ off 71 drivers/pinctrl/zte/pinctrl-zx.h .offset = off, \ off 19 drivers/platform/x86/asus-wireless.c u8 off; off 35 drivers/platform/x86/asus-wireless.c .off = 0x1, off 41 drivers/platform/x86/asus-wireless.c .off = 0x4, off 106 drivers/platform/x86/asus-wireless.c data->led_state = value == LED_OFF ? data->hswc_params->off : off 228 drivers/platform/x86/intel_ips.c #define thm_readb(off) readb(ips->regmap + (off)) off 229 drivers/platform/x86/intel_ips.c #define thm_readw(off) readw(ips->regmap + (off)) off 230 drivers/platform/x86/intel_ips.c #define thm_readl(off) readl(ips->regmap + (off)) off 231 drivers/platform/x86/intel_ips.c #define thm_readq(off) readq(ips->regmap + (off)) off 233 drivers/platform/x86/intel_ips.c #define thm_writeb(off, val) writeb((val), ips->regmap + (off)) off 234 drivers/platform/x86/intel_ips.c #define thm_writew(off, val) writew((val), ips->regmap + (off)) off 235 drivers/platform/x86/intel_ips.c #define thm_writel(off, val) writel((val), ips->regmap + (off)) off 31 drivers/platform/x86/wmi-bmof.c char *buf, loff_t off, size_t count) off 36 drivers/platform/x86/wmi-bmof.c if (off < 0) off 39 drivers/platform/x86/wmi-bmof.c if (off >= priv->bmofdata->buffer.length) off 42 drivers/platform/x86/wmi-bmof.c if (count > priv->bmofdata->buffer.length - off) off 43 drivers/platform/x86/wmi-bmof.c count = priv->bmofdata->buffer.length - off; off 45 drivers/platform/x86/wmi-bmof.c memcpy(buf, priv->bmofdata->buffer.pointer + off, count); off 17 drivers/pnp/isapnp/proc.c static loff_t isapnp_proc_bus_lseek(struct file *file, loff_t off, int whence) off 19 drivers/pnp/isapnp/proc.c return fixed_size_llseek(file, off, whence, 256); off 199 drivers/power/supply/ds2760_battery.c loff_t off, size_t count) off 202 drivers/power/supply/ds2760_battery.c return w1_ds2760_read(dev, buf, off, count); off 625 drivers/power/supply/ds2780_battery.c char *buf, loff_t off, size_t count) off 632 drivers/power/supply/ds2780_battery.c DS2780_EEPROM_BLOCK1_START + off, count); off 638 drivers/power/supply/ds2780_battery.c char *buf, loff_t off, size_t count) off 646 drivers/power/supply/ds2780_battery.c DS2780_EEPROM_BLOCK1_START + off, count); off 670 drivers/power/supply/ds2780_battery.c char *buf, loff_t off, size_t count) off 677 drivers/power/supply/ds2780_battery.c DS2780_EEPROM_BLOCK0_START + off, count); off 683 drivers/power/supply/ds2780_battery.c char *buf, loff_t off, size_t count) off 691 drivers/power/supply/ds2780_battery.c DS2780_EEPROM_BLOCK0_START + off, count); off 627 drivers/power/supply/ds2781_battery.c char *buf, loff_t off, size_t count) off 634 drivers/power/supply/ds2781_battery.c DS2781_EEPROM_BLOCK1_START + off, count); off 640 drivers/power/supply/ds2781_battery.c char *buf, loff_t off, size_t count) off 648 drivers/power/supply/ds2781_battery.c DS2781_EEPROM_BLOCK1_START + off, count); off 672 drivers/power/supply/ds2781_battery.c char *buf, loff_t off, size_t count) off 679 drivers/power/supply/ds2781_battery.c DS2781_EEPROM_BLOCK0_START + off, count); off 686 drivers/power/supply/ds2781_battery.c char *buf, loff_t off, size_t count) off 694 drivers/power/supply/ds2781_battery.c DS2781_EEPROM_BLOCK0_START + off, count); off 826 drivers/power/supply/max17042_battery.c static void max17042_set_soc_threshold(struct max17042_chip *chip, u16 off) off 836 drivers/power/supply/max17042_battery.c soc_tr = (soc + off) << 8; off 837 drivers/power/supply/max17042_battery.c soc_tr |= (soc - off); off 530 drivers/power/supply/olpc_battery.c struct bin_attribute *attr, char *buf, loff_t off, size_t count) off 537 drivers/power/supply/olpc_battery.c ec_byte = EEPROM_START + off + i; off 193 drivers/power/supply/sbs-manager.c static int sbsm_gpio_get_value(struct gpio_chip *gc, unsigned int off) off 202 drivers/power/supply/sbs-manager.c return ret & BIT(off); off 209 drivers/power/supply/sbs-manager.c static int sbsm_gpio_direction_input(struct gpio_chip *gc, unsigned int off) off 118 drivers/rapidio/rio-sysfs.c char *buf, loff_t off, size_t count) off 122 drivers/rapidio/rio-sysfs.c loff_t init_off = off; off 129 drivers/rapidio/rio-sysfs.c if (off >= size) off 131 drivers/rapidio/rio-sysfs.c if (off + count > size) { off 132 drivers/rapidio/rio-sysfs.c size -= off; off 138 drivers/rapidio/rio-sysfs.c if ((off & 1) && size) { off 140 drivers/rapidio/rio-sysfs.c rio_read_config_8(dev, off, &val); off 141 drivers/rapidio/rio-sysfs.c data[off - init_off] = val; off 142 drivers/rapidio/rio-sysfs.c off++; off 146 drivers/rapidio/rio-sysfs.c if ((off & 3) && size > 2) { off 148 drivers/rapidio/rio-sysfs.c rio_read_config_16(dev, off, &val); off 149 drivers/rapidio/rio-sysfs.c data[off - init_off] = (val >> 8) & 0xff; off 150 drivers/rapidio/rio-sysfs.c data[off - init_off + 1] = val & 0xff; off 151 drivers/rapidio/rio-sysfs.c off += 2; off 157 drivers/rapidio/rio-sysfs.c rio_read_config_32(dev, off, &val); off 158 drivers/rapidio/rio-sysfs.c data[off - init_off] = (val >> 24) & 0xff; off 159 drivers/rapidio/rio-sysfs.c data[off - init_off + 1] = (val >> 16) & 0xff; off 160 drivers/rapidio/rio-sysfs.c data[off - init_off + 2] = (val >> 8) & 0xff; off 161 drivers/rapidio/rio-sysfs.c data[off - init_off + 3] = val & 0xff; off 162 drivers/rapidio/rio-sysfs.c off += 4; off 168 drivers/rapidio/rio-sysfs.c rio_read_config_16(dev, off, &val); off 169 drivers/rapidio/rio-sysfs.c data[off - init_off] = (val >> 8) & 0xff; off 170 drivers/rapidio/rio-sysfs.c data[off - init_off + 1] = val & 0xff; off 171 drivers/rapidio/rio-sysfs.c off += 2; off 177 drivers/rapidio/rio-sysfs.c rio_read_config_8(dev, off, &val); off 178 drivers/rapidio/rio-sysfs.c data[off - init_off] = val; off 179 drivers/rapidio/rio-sysfs.c off++; off 189 drivers/rapidio/rio-sysfs.c char *buf, loff_t off, size_t count) off 193 drivers/rapidio/rio-sysfs.c loff_t init_off = off; off 196 drivers/rapidio/rio-sysfs.c if (off >= RIO_MAINT_SPACE_SZ) off 198 drivers/rapidio/rio-sysfs.c if (off + count > RIO_MAINT_SPACE_SZ) { off 199 drivers/rapidio/rio-sysfs.c size = RIO_MAINT_SPACE_SZ - off; off 203 drivers/rapidio/rio-sysfs.c if ((off & 1) && size) { off 204 drivers/rapidio/rio-sysfs.c rio_write_config_8(dev, off, data[off - init_off]); off 205 drivers/rapidio/rio-sysfs.c off++; off 209 drivers/rapidio/rio-sysfs.c if ((off & 3) && (size > 2)) { off 210 drivers/rapidio/rio-sysfs.c u16 val = data[off - init_off + 1]; off 211 drivers/rapidio/rio-sysfs.c val |= (u16) data[off - init_off] << 8; off 212 drivers/rapidio/rio-sysfs.c rio_write_config_16(dev, off, val); off 213 drivers/rapidio/rio-sysfs.c off += 2; off 218 drivers/rapidio/rio-sysfs.c u32 val = data[off - init_off + 3]; off 219 drivers/rapidio/rio-sysfs.c val |= (u32) data[off - init_off + 2] << 8; off 220 drivers/rapidio/rio-sysfs.c val |= (u32) data[off - init_off + 1] << 16; off 221 drivers/rapidio/rio-sysfs.c val |= (u32) data[off - init_off] << 24; off 222 drivers/rapidio/rio-sysfs.c rio_write_config_32(dev, off, val); off 223 drivers/rapidio/rio-sysfs.c off += 4; off 228 drivers/rapidio/rio-sysfs.c u16 val = data[off - init_off + 1]; off 229 drivers/rapidio/rio-sysfs.c val |= (u16) data[off - init_off] << 8; off 230 drivers/rapidio/rio-sysfs.c rio_write_config_16(dev, off, val); off 231 drivers/rapidio/rio-sysfs.c off += 2; off 236 drivers/rapidio/rio-sysfs.c rio_write_config_8(dev, off, data[off - init_off]); off 237 drivers/rapidio/rio-sysfs.c off++; off 43 drivers/reset/reset-brcmstb.c unsigned int off = SW_INIT_BANK(id) * SW_INIT_BANK_SIZE; off 46 drivers/reset/reset-brcmstb.c writel_relaxed(SW_INIT_BIT(id), priv->base + off + SW_INIT_SET); off 54 drivers/reset/reset-brcmstb.c unsigned int off = SW_INIT_BANK(id) * SW_INIT_BANK_SIZE; off 57 drivers/reset/reset-brcmstb.c writel_relaxed(SW_INIT_BIT(id), priv->base + off + SW_INIT_CLEAR); off 70 drivers/reset/reset-brcmstb.c unsigned int off = SW_INIT_BANK(id) * SW_INIT_BANK_SIZE; off 73 drivers/reset/reset-brcmstb.c return readl_relaxed(priv->base + off + SW_INIT_STATUS) & off 24 drivers/rtc/nvmem.c char *buf, loff_t off, size_t count) off 28 drivers/rtc/nvmem.c return nvmem_device_read(attr->private, off, count, buf); off 34 drivers/rtc/nvmem.c char *buf, loff_t off, size_t count) off 38 drivers/rtc/nvmem.c return nvmem_device_write(attr->private, off, count, buf); off 419 drivers/rtc/rtc-armada38x.c long ppb_cor, off; off 435 drivers/rtc/rtc-armada38x.c off = DIV_ROUND_CLOSEST(ppb_cor, 954); off 436 drivers/rtc/rtc-armada38x.c if (off > 127 || off < -128) { off 438 drivers/rtc/rtc-armada38x.c off = DIV_ROUND_CLOSEST(ppb_cor, 3815); off 445 drivers/rtc/rtc-armada38x.c ccr |= (off & 0x3fff) ^ 0x2000; off 52 drivers/rtc/rtc-bq32k.c static int bq32k_read(struct device *dev, void *data, uint8_t off, uint8_t len) off 60 drivers/rtc/rtc-bq32k.c .buf = &off, off 75 drivers/rtc/rtc-bq32k.c static int bq32k_write(struct device *dev, void *data, uint8_t off, uint8_t len) off 80 drivers/rtc/rtc-bq32k.c buffer[0] = off; off 30 drivers/rtc/rtc-bq4802.c static u8 bq4802_read_io(struct bq4802 *p, int off) off 32 drivers/rtc/rtc-bq4802.c return inb(p->ioport + off); off 35 drivers/rtc/rtc-bq4802.c static void bq4802_write_io(struct bq4802 *p, int off, u8 val) off 37 drivers/rtc/rtc-bq4802.c outb(val, p->ioport + off); off 40 drivers/rtc/rtc-bq4802.c static u8 bq4802_read_mem(struct bq4802 *p, int off) off 42 drivers/rtc/rtc-bq4802.c return readb(p->regs + off); off 45 drivers/rtc/rtc-bq4802.c static void bq4802_write_mem(struct bq4802 *p, int off, u8 val) off 47 drivers/rtc/rtc-bq4802.c writeb(val, p->regs + off); off 593 drivers/rtc/rtc-cmos.c static int cmos_nvram_read(void *priv, unsigned int off, void *val, off 599 drivers/rtc/rtc-cmos.c off += NVRAM_OFFSET; off 601 drivers/rtc/rtc-cmos.c for (retval = 0; count; count--, off++, retval++) { off 602 drivers/rtc/rtc-cmos.c if (off < 128) off 603 drivers/rtc/rtc-cmos.c *buf++ = CMOS_READ(off); off 605 drivers/rtc/rtc-cmos.c *buf++ = cmos_read_bank2(off); off 614 drivers/rtc/rtc-cmos.c static int cmos_nvram_write(void *priv, unsigned int off, void *val, off 626 drivers/rtc/rtc-cmos.c off += NVRAM_OFFSET; off 628 drivers/rtc/rtc-cmos.c for (retval = 0; count; count--, off++, retval++) { off 630 drivers/rtc/rtc-cmos.c if (off == cmos->day_alrm off 631 drivers/rtc/rtc-cmos.c || off == cmos->mon_alrm off 632 drivers/rtc/rtc-cmos.c || off == cmos->century) off 634 drivers/rtc/rtc-cmos.c else if (off < 128) off 635 drivers/rtc/rtc-cmos.c CMOS_WRITE(*buf++, off); off 637 drivers/rtc/rtc-cmos.c cmos_write_bank2(*buf++, off); off 512 drivers/rtc/rtc-ds1305.c static int ds1305_nvram_read(void *priv, unsigned int off, void *buf, off 521 drivers/rtc/rtc-ds1305.c addr = DS1305_NVRAM + off; off 527 drivers/rtc/rtc-ds1305.c static int ds1305_nvram_write(void *priv, unsigned int off, void *buf, off 536 drivers/rtc/rtc-ds1305.c addr = (DS1305_WRITE | DS1305_NVRAM) + off; off 152 drivers/rtc/rtc-ds1343.c static int ds1343_nvram_write(void *priv, unsigned int off, void *val, off 157 drivers/rtc/rtc-ds1343.c return regmap_bulk_write(ds1343->map, DS1343_NVRAM + off, val, bytes); off 160 drivers/rtc/rtc-ds1343.c static int ds1343_nvram_read(void *priv, unsigned int off, void *val, off 165 drivers/rtc/rtc-ds1343.c return regmap_bulk_read(ds1343->map, DS1343_NVRAM + off, val, bytes); off 741 drivers/rtc/rtc-isl1208.c static int isl1208_nvmem_read(void *priv, unsigned int off, void *buf, off 751 drivers/rtc/rtc-isl1208.c ret = isl1208_i2c_read_regs(client, ISL1208_REG_USR1 + off, buf, off 756 drivers/rtc/rtc-isl1208.c static int isl1208_nvmem_write(void *priv, unsigned int off, void *buf, off 766 drivers/rtc/rtc-isl1208.c ret = isl1208_i2c_set_regs(client, ISL1208_REG_USR1 + off, buf, off 163 drivers/rtc/rtc-m48t86.c static int m48t86_nvram_read(void *priv, unsigned int off, void *buf, off 170 drivers/rtc/rtc-m48t86.c ((u8 *)buf)[i] = m48t86_readb(dev, M48T86_NVRAM(off + i)); off 175 drivers/rtc/rtc-m48t86.c static int m48t86_nvram_write(void *priv, unsigned int off, void *buf, off 182 drivers/rtc/rtc-m48t86.c m48t86_writeb(dev, ((u8 *)buf)[i], M48T86_NVRAM(off + i)); off 511 drivers/s390/block/dasd_diag.c unsigned int blksize, off; off 550 drivers/s390/block/dasd_diag.c for (off = 0; off < bv.bv_len; off += blksize) { off 3159 drivers/s390/block/dasd_eckd.c unsigned int blksize, off; off 3211 drivers/s390/block/dasd_eckd.c for (off = 0; off < bv.bv_len; off += blksize) { off 3217 drivers/s390/block/dasd_eckd.c dst += off; off 3847 drivers/s390/block/dasd_eckd.c unsigned int off; off 3951 drivers/s390/block/dasd_eckd.c for (off = 0; off < bv.bv_len; off += blksize) { off 4766 drivers/s390/block/dasd_eckd.c unsigned int blksize, blk_per_trk, off; off 4783 drivers/s390/block/dasd_eckd.c for (off = 0; off < bv.bv_len; off += blksize) { off 452 drivers/s390/block/dasd_fba.c unsigned int blksize, off; off 521 drivers/s390/block/dasd_fba.c for (off = 0; off < bv.bv_len; off += blksize) { off 582 drivers/s390/block/dasd_fba.c unsigned int blksize, off; off 595 drivers/s390/block/dasd_fba.c for (off = 0; off < bv.bv_len; off += blksize) { off 243 drivers/s390/char/fs3270.c fs3270_read(struct file *filp, char __user *data, size_t count, loff_t *off) off 288 drivers/s390/char/fs3270.c fs3270_write(struct file *filp, const char __user *data, size_t count, loff_t *off) off 133 drivers/s390/char/sclp_config.c char *buf, loff_t off, size_t count) off 456 drivers/s390/char/sclp_sd.c loff_t off, size_t size) off 466 drivers/s390/char/sclp_sd.c if (!data || off >= data_size) { off 469 drivers/s390/char/sclp_sd.c if (off + size > data_size) off 470 drivers/s390/char/sclp_sd.c size = data_size - off; off 471 drivers/s390/char/sclp_sd.c memcpy(buffer, data + off, size); off 140 drivers/s390/char/tty3270.c unsigned int off; off 155 drivers/s390/char/tty3270.c off = tp->view.cols * tp->view.rows - 9; off 156 drivers/s390/char/tty3270.c raw3270_buffer_address(tp->view.dev, line->string+count+8, off); off 133 drivers/s390/cio/chp.c char *buf, loff_t off, size_t count) off 143 drivers/s390/cio/chp.c return memory_read_from_buffer(buf, count, &off, &chp->cmg_chars, off 180 drivers/s390/cio/chp.c char *buf, loff_t off, size_t count) off 194 drivers/s390/cio/chp.c if (off || count < size) off 389 drivers/s390/cio/chp.c loff_t off, size_t count) off 395 drivers/s390/cio/chp.c rc = memory_read_from_buffer(buf, count, &off, chp->desc_fmt3.util_str, off 242 drivers/s390/cio/qdio_debug.c size_t count, loff_t *off) off 26 drivers/s390/cio/vfio_ccw_private.h #define VFIO_CCW_OFFSET_TO_INDEX(off) (off >> VFIO_CCW_OFFSET_SHIFT) off 1151 drivers/s390/crypto/pkey_api.c loff_t off, size_t count) off 1157 drivers/s390/crypto/pkey_api.c if (off != 0 || count < sizeof(protkeytoken)) off 1197 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1201 drivers/s390/crypto/pkey_api.c off, count); off 1207 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1211 drivers/s390/crypto/pkey_api.c off, count); off 1217 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1221 drivers/s390/crypto/pkey_api.c off, count); off 1227 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1231 drivers/s390/crypto/pkey_api.c off, count); off 1237 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1241 drivers/s390/crypto/pkey_api.c off, count); off 1271 drivers/s390/crypto/pkey_api.c loff_t off, size_t count) off 1276 drivers/s390/crypto/pkey_api.c if (off != 0 || count < sizeof(struct secaeskeytoken)) off 1301 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1305 drivers/s390/crypto/pkey_api.c off, count); off 1311 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1315 drivers/s390/crypto/pkey_api.c off, count); off 1321 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1325 drivers/s390/crypto/pkey_api.c off, count); off 1331 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1335 drivers/s390/crypto/pkey_api.c off, count); off 1341 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1345 drivers/s390/crypto/pkey_api.c off, count); off 1377 drivers/s390/crypto/pkey_api.c bool is_xts, char *buf, loff_t off, off 1383 drivers/s390/crypto/pkey_api.c if (off != 0 || count < CCACIPHERTOKENSIZE) off 1413 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1417 drivers/s390/crypto/pkey_api.c off, count); off 1423 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1427 drivers/s390/crypto/pkey_api.c off, count); off 1433 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1437 drivers/s390/crypto/pkey_api.c off, count); off 1443 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1447 drivers/s390/crypto/pkey_api.c off, count); off 1453 drivers/s390/crypto/pkey_api.c char *buf, loff_t off, off 1457 drivers/s390/crypto/pkey_api.c off, count); off 150 drivers/sbus/char/bbc_i2c.c int bbc_i2c_writeb(struct bbc_i2c_client *client, unsigned char val, int off) off 165 drivers/sbus/char/bbc_i2c.c writeb(off, bp->i2c_control_regs + 0x1); off 181 drivers/sbus/char/bbc_i2c.c int bbc_i2c_readb(struct bbc_i2c_client *client, unsigned char *byte, int off) off 195 drivers/sbus/char/bbc_i2c.c writeb(off, bp->i2c_control_regs + 0x1); off 231 drivers/sbus/char/bbc_i2c.c char *buf, int len, int off) off 236 drivers/sbus/char/bbc_i2c.c ret = bbc_i2c_writeb(client, *buf, off); off 241 drivers/sbus/char/bbc_i2c.c off++; off 247 drivers/sbus/char/bbc_i2c.c char *buf, int len, int off) off 252 drivers/sbus/char/bbc_i2c.c ret = bbc_i2c_readb(client, buf, off); off 257 drivers/sbus/char/bbc_i2c.c off++; off 81 drivers/sbus/char/bbc_i2c.h extern int bbc_i2c_writeb(struct bbc_i2c_client *, unsigned char val, int off); off 82 drivers/sbus/char/bbc_i2c.h extern int bbc_i2c_readb(struct bbc_i2c_client *, unsigned char *byte, int off); off 83 drivers/sbus/char/bbc_i2c.h extern int bbc_i2c_write_buf(struct bbc_i2c_client *, char *buf, int len, int off); off 84 drivers/sbus/char/bbc_i2c.h extern int bbc_i2c_read_buf(struct bbc_i2c_client *, char *buf, int len, int off); off 4180 drivers/scsi/advansys.c unsigned int off = buf[i] * 2; off 4181 drivers/scsi/advansys.c unsigned short word = (buf[off + 1] << 8) | buf[off]; off 66 drivers/scsi/arcmsr/arcmsr_attr.c char *buf, loff_t off, off 113 drivers/scsi/arcmsr/arcmsr_attr.c char *buf, loff_t off, off 161 drivers/scsi/arcmsr/arcmsr_attr.c char *buf, loff_t off, off 143 drivers/scsi/arm/fas216.c unsigned int off = reg << info->scsi.io_shift; off 144 drivers/scsi/arm/fas216.c return readb(info->scsi.io_base + off); off 149 drivers/scsi/arm/fas216.c unsigned int off = reg << info->scsi.io_shift; off 150 drivers/scsi/arm/fas216.c writeb(val, info->scsi.io_base + off); off 1630 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_flash_img_get_chnk(struct bfa_ioc_s *ioc, u32 off, off 1634 drivers/scsi/bfa/bfa_ioc.c BFA_FLASH_PART_FWIMG_ADDR + (off * sizeof(u32)), off 6998 drivers/scsi/bfa/bfa_ioc.c u32 off, l, s, residue, fifo_sz; off 7001 drivers/scsi/bfa/bfa_ioc.c off = 0; off 7008 drivers/scsi/bfa/bfa_ioc.c s = offset + off; off 7014 drivers/scsi/bfa/bfa_ioc.c status = bfa_flash_read_start(pci_bar, offset + off, l, off 7015 drivers/scsi/bfa/bfa_ioc.c &buf[off]); off 7029 drivers/scsi/bfa/bfa_ioc.c bfa_flash_read_end(pci_bar, l, &buf[off]); off 7032 drivers/scsi/bfa/bfa_ioc.c off += l; off 832 drivers/scsi/bfa/bfa_ioc.h #define BFA_IOC_FLASH_CHUNK_NO(off) (off / BFI_FLASH_CHUNK_SZ_WORDS) off 833 drivers/scsi/bfa/bfa_ioc.h #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) off 959 drivers/scsi/bfa/bfa_ioc.h bfa_status_t bfa_ioc_flash_img_get_chnk(struct bfa_ioc_s *ioc, u32 off, off 978 drivers/scsi/bfa/bfa_ioc.h bfi_image_cb_get_chunk(u32 off) off 980 drivers/scsi/bfa/bfa_ioc.h return (u32 *)(bfi_image_cb + off); off 984 drivers/scsi/bfa/bfa_ioc.h bfi_image_ct_get_chunk(u32 off) off 986 drivers/scsi/bfa/bfa_ioc.h return (u32 *)(bfi_image_ct + off); off 990 drivers/scsi/bfa/bfa_ioc.h bfi_image_ct2_get_chunk(u32 off) off 992 drivers/scsi/bfa/bfa_ioc.h return (u32 *)(bfi_image_ct2 + off); off 996 drivers/scsi/bfa/bfa_ioc.h bfa_cb_image_get_chunk(enum bfi_asic_gen asic_gen, u32 off) off 1000 drivers/scsi/bfa/bfa_ioc.h return bfi_image_cb_get_chunk(off); off 1003 drivers/scsi/bfa/bfa_ioc.h return bfi_image_ct_get_chunk(off); off 1006 drivers/scsi/bfa/bfa_ioc.h return bfi_image_ct2_get_chunk(off); off 3821 drivers/scsi/csiostor/csio_hw.c uint32_t off = 0; off 3854 drivers/scsi/csiostor/csio_hw.c for (n = 0; (n < CSIO_MAX_FLBUF_PER_IQWR && off < len); n++) { off 3855 drivers/scsi/csiostor/csio_hw.c memcpy((void *)((uintptr_t)evt_entry->data + off), off 3858 drivers/scsi/csiostor/csio_hw.c off += fl_sg->flbufs[n].len; off 1819 drivers/scsi/cxgbi/libcxgbi.c unsigned int offset, unsigned int *off, off 1827 drivers/scsi/cxgbi/libcxgbi.c *off = offset; off 1014 drivers/scsi/cxlflash/ocxl_hw.c loff_t *off) off 1025 drivers/scsi/cxlflash/ocxl_hw.c if (*off != 0) { off 1027 drivers/scsi/cxlflash/ocxl_hw.c __func__, *off); off 509 drivers/scsi/device_handler/scsi_dh_alua.c int len, k, off, bufflen = ALUA_RTPG_SIZE; off 643 drivers/scsi/device_handler/scsi_dh_alua.c k += off, desc += off) { off 673 drivers/scsi/device_handler/scsi_dh_alua.c off = 8 + (desc[7] * 4); off 986 drivers/scsi/esas2r/esas2r.h int esas2r_read_fw(struct esas2r_adapter *a, char *buf, long off, int count); off 987 drivers/scsi/esas2r/esas2r.h int esas2r_write_fw(struct esas2r_adapter *a, const char *buf, long off, off 989 drivers/scsi/esas2r/esas2r.h int esas2r_read_vda(struct esas2r_adapter *a, char *buf, long off, int count); off 990 drivers/scsi/esas2r/esas2r.h int esas2r_write_vda(struct esas2r_adapter *a, const char *buf, long off, off 992 drivers/scsi/esas2r/esas2r.h int esas2r_read_fs(struct esas2r_adapter *a, char *buf, long off, int count); off 993 drivers/scsi/esas2r/esas2r.h int esas2r_write_fs(struct esas2r_adapter *a, const char *buf, long off, off 1566 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_read_fw(struct esas2r_adapter *a, char *buf, long off, int count) off 1589 drivers/scsi/esas2r/esas2r_ioctl.c off); off 1591 drivers/scsi/esas2r/esas2r_ioctl.c if (off == 0) { off 1620 drivers/scsi/esas2r/esas2r_ioctl.c if (count + off > length) off 1621 drivers/scsi/esas2r/esas2r_ioctl.c count = length - off; off 1632 drivers/scsi/esas2r/esas2r_ioctl.c esas2r_debug("esas2r_read_fw: off %d count %d length %d ", off, off 1636 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(buf, &a->firmware.data[off], count); off 1640 drivers/scsi/esas2r/esas2r_ioctl.c if (length <= off + count) { off 1657 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_write_fw(struct esas2r_adapter *a, const char *buf, long off, off 1662 drivers/scsi/esas2r/esas2r_ioctl.c if (off == 0) { off 1753 drivers/scsi/esas2r/esas2r_ioctl.c if (off + count > length) off 1754 drivers/scsi/esas2r/esas2r_ioctl.c count = length - off; off 1757 drivers/scsi/esas2r/esas2r_ioctl.c esas2r_debug("esas2r_write_fw: off %d count %d length %d", off, off 1775 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(&a->firmware.data[off], buf, count); off 1777 drivers/scsi/esas2r/esas2r_ioctl.c if (length == off + count) { off 1825 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_read_vda(struct esas2r_adapter *a, char *buf, long off, int count) off 1830 drivers/scsi/esas2r/esas2r_ioctl.c if (off == 0) { off 1873 drivers/scsi/esas2r/esas2r_ioctl.c if (off > VDA_MAX_BUFFER_SIZE) off 1876 drivers/scsi/esas2r/esas2r_ioctl.c if (count + off > VDA_MAX_BUFFER_SIZE) off 1877 drivers/scsi/esas2r/esas2r_ioctl.c count = VDA_MAX_BUFFER_SIZE - off; off 1882 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(buf, a->vda_buffer + off, count); off 1888 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_write_vda(struct esas2r_adapter *a, const char *buf, long off, off 1910 drivers/scsi/esas2r/esas2r_ioctl.c if (off > VDA_MAX_BUFFER_SIZE) off 1913 drivers/scsi/esas2r/esas2r_ioctl.c if (count + off > VDA_MAX_BUFFER_SIZE) off 1914 drivers/scsi/esas2r/esas2r_ioctl.c count = VDA_MAX_BUFFER_SIZE - off; off 1919 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(a->vda_buffer + off, buf, count); off 1947 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_read_fs(struct esas2r_adapter *a, char *buf, long off, int count) off 1952 drivers/scsi/esas2r/esas2r_ioctl.c if (off == 0) { off 2011 drivers/scsi/esas2r/esas2r_ioctl.c if (off > a->fs_api_buffer_size) off 2014 drivers/scsi/esas2r/esas2r_ioctl.c if (count + off > a->fs_api_buffer_size) off 2015 drivers/scsi/esas2r/esas2r_ioctl.c count = a->fs_api_buffer_size - off; off 2020 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(buf, a->fs_api_buffer + off, count); off 2026 drivers/scsi/esas2r/esas2r_ioctl.c int esas2r_write_fs(struct esas2r_adapter *a, const char *buf, long off, off 2029 drivers/scsi/esas2r/esas2r_ioctl.c if (off == 0) { off 2078 drivers/scsi/esas2r/esas2r_ioctl.c if (off > a->fs_api_buffer_size) off 2081 drivers/scsi/esas2r/esas2r_ioctl.c if (count + off > a->fs_api_buffer_size) off 2082 drivers/scsi/esas2r/esas2r_ioctl.c count = a->fs_api_buffer_size - off; off 2087 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(a->fs_api_buffer + off, buf, count); off 70 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 74 drivers/scsi/esas2r/esas2r_main.c return esas2r_read_fw(a, buf, off, count); off 79 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 83 drivers/scsi/esas2r/esas2r_main.c return esas2r_write_fw(a, buf, off, count); off 88 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 92 drivers/scsi/esas2r/esas2r_main.c return esas2r_read_fs(a, buf, off, count); off 97 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 103 drivers/scsi/esas2r/esas2r_main.c result = esas2r_write_fs(a, buf, off, count); off 113 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 117 drivers/scsi/esas2r/esas2r_main.c return esas2r_read_vda(a, buf, off, count); off 122 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 126 drivers/scsi/esas2r/esas2r_main.c return esas2r_write_vda(a, buf, off, count); off 131 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 142 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 162 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 173 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 191 drivers/scsi/esas2r/esas2r_main.c char *buf, loff_t off, size_t count) off 506 drivers/scsi/esp_scsi.c u8 off = esp->target[tgt].esp_offset; off 509 drivers/scsi/esp_scsi.c if (off != esp->prev_soff) { off 510 drivers/scsi/esp_scsi.c esp->prev_soff = off; off 511 drivers/scsi/esp_scsi.c esp_write8(off, ESP_SOFF); off 313 drivers/scsi/fcoe/fcoe_transport.c unsigned long off, len, clen; off 321 drivers/scsi/fcoe/fcoe_transport.c off = skb_frag_off(frag); off 324 drivers/scsi/fcoe/fcoe_transport.c clen = min(len, PAGE_SIZE - (off & ~PAGE_MASK)); off 326 drivers/scsi/fcoe/fcoe_transport.c skb_frag_page(frag) + (off >> PAGE_SHIFT)); off 327 drivers/scsi/fcoe/fcoe_transport.c crc = crc32(crc, data + (off & ~PAGE_MASK), clen); off 329 drivers/scsi/fcoe/fcoe_transport.c off += clen; off 243 drivers/scsi/hisi_sas/hisi_sas.h int off; off 251 drivers/scsi/hisi_sas/hisi_sas.h u32 (*read_global_reg)(struct hisi_hba *hisi_hba, u32 off); off 253 drivers/scsi/hisi_sas/hisi_sas.h u32 off); off 2818 drivers/scsi/hisi_sas/hisi_sas_main.c hisi_sas_debugfs_to_reg_name(int off, int base_off, off 2822 drivers/scsi/hisi_sas/hisi_sas_main.c if (off == lu->off - base_off) off 2836 drivers/scsi/hisi_sas/hisi_sas_main.c int off = i * 4; off 2839 drivers/scsi/hisi_sas/hisi_sas_main.c name = hisi_sas_debugfs_to_reg_name(off, reg->base_off, off 2843 drivers/scsi/hisi_sas/hisi_sas_main.c seq_printf(s, "0x%08x 0x%08x %s\n", off, off 2846 drivers/scsi/hisi_sas/hisi_sas_main.c seq_printf(s, "0x%08x 0x%08x\n", off, off 412 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) off 414 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c void __iomem *regs = hisi_hba->regs + off; off 420 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c u32 off, u32 val) off 422 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c void __iomem *regs = hisi_hba->regs + off; off 428 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c int phy_no, u32 off, u32 val) off 430 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 436 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c int phy_no, u32 off) off 438 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 729 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) off 731 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c void __iomem *regs = hisi_hba->regs + off; off 736 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c static u32 hisi_sas_read32_relaxed(struct hisi_hba *hisi_hba, u32 off) off 738 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c void __iomem *regs = hisi_hba->regs + off; off 743 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) off 745 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c void __iomem *regs = hisi_hba->regs + off; off 751 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c u32 off, u32 val) off 753 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 759 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c int phy_no, u32 off) off 761 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 515 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c static u32 hisi_sas_read32(struct hisi_hba *hisi_hba, u32 off) off 517 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + off; off 522 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c static void hisi_sas_write32(struct hisi_hba *hisi_hba, u32 off, u32 val) off 524 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + off; off 530 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c u32 off, u32 val) off 532 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 538 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c int phy_no, u32 off) off 540 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + (0x400 * phy_no) + off; off 545 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c #define hisi_sas_read32_poll_timeout(off, val, cond, delay_us, \ off 548 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + off; \ off 552 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c #define hisi_sas_read32_poll_timeout_atomic(off, val, cond, delay_us, \ off 555 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c void __iomem *regs = hisi_hba->regs + off; \ off 3031 drivers/scsi/ibmvscsi/ibmvfc.c char *buf, loff_t off, size_t count) off 3040 drivers/scsi/ibmvscsi/ibmvfc.c if (off > size) off 3042 drivers/scsi/ibmvscsi/ibmvfc.c if (off + count > size) { off 3043 drivers/scsi/ibmvscsi/ibmvfc.c size -= off; off 3048 drivers/scsi/ibmvscsi/ibmvfc.c memcpy(buf, &src[off], count); off 3458 drivers/scsi/ipr.c char *buf, loff_t off, size_t count) off 3467 drivers/scsi/ipr.c ret = memory_read_from_buffer(buf, count, &off, ioa_cfg->trace, off 4171 drivers/scsi/ipr.c loff_t off, size_t count) off 4187 drivers/scsi/ipr.c ret = memory_read_from_buffer(buf, count, &off, &hostrcb->hcam, off 4195 drivers/scsi/ipr.c loff_t off, size_t count) off 4254 drivers/scsi/ipr.c char *buf, loff_t off, size_t count) off 4278 drivers/scsi/ipr.c if (off > dump->driver_dump.hdr.len) { off 4283 drivers/scsi/ipr.c if (off + count > dump->driver_dump.hdr.len) { off 4284 drivers/scsi/ipr.c count = dump->driver_dump.hdr.len - off; off 4288 drivers/scsi/ipr.c if (count && off < sizeof(dump->driver_dump)) { off 4289 drivers/scsi/ipr.c if (off + count > sizeof(dump->driver_dump)) off 4290 drivers/scsi/ipr.c len = sizeof(dump->driver_dump) - off; off 4293 drivers/scsi/ipr.c src = (u8 *)&dump->driver_dump + off; off 4296 drivers/scsi/ipr.c off += len; off 4300 drivers/scsi/ipr.c off -= sizeof(dump->driver_dump); off 4310 drivers/scsi/ipr.c if (count && off < sdt_end) { off 4311 drivers/scsi/ipr.c if (off + count > sdt_end) off 4312 drivers/scsi/ipr.c len = sdt_end - off; off 4315 drivers/scsi/ipr.c src = (u8 *)&dump->ioa_dump + off; off 4318 drivers/scsi/ipr.c off += len; off 4322 drivers/scsi/ipr.c off -= sdt_end; off 4325 drivers/scsi/ipr.c if ((off & PAGE_MASK) != ((off + count) & PAGE_MASK)) off 4326 drivers/scsi/ipr.c len = PAGE_ALIGN(off) - off; off 4329 drivers/scsi/ipr.c src = (u8 *)dump->ioa_dump.ioa_data[(off & PAGE_MASK) >> PAGE_SHIFT]; off 4330 drivers/scsi/ipr.c src += off & ~PAGE_MASK; off 4333 drivers/scsi/ipr.c off += len; off 4443 drivers/scsi/ipr.c char *buf, loff_t off, size_t count) off 607 drivers/scsi/libfc/fc_fcp.c size_t off; off 677 drivers/scsi/libfc/fc_fcp.c off = offset + sg->offset; off 680 drivers/scsi/libfc/fc_fcp.c (size_t) (PAGE_SIZE - (off & ~PAGE_MASK))); off 681 drivers/scsi/libfc/fc_fcp.c page = sg_page(sg) + (off >> PAGE_SHIFT); off 686 drivers/scsi/libfc/fc_fcp.c page, off & ~PAGE_MASK, sg_bytes); off 696 drivers/scsi/libfc/fc_fcp.c memcpy(data, (char *)page_addr + (off & ~PAGE_MASK), off 108 drivers/scsi/libfc/fc_libfc.c size_t off, sg_bytes; off 129 drivers/scsi/libfc/fc_libfc.c off = *offset + sg->offset; off 131 drivers/scsi/libfc/fc_libfc.c (size_t)(PAGE_SIZE - (off & ~PAGE_MASK))); off 132 drivers/scsi/libfc/fc_libfc.c page_addr = kmap_atomic(sg_page(sg) + (off >> PAGE_SHIFT)); off 135 drivers/scsi/libfc/fc_libfc.c memcpy((char *)page_addr + (off & ~PAGE_MASK), buf, sg_bytes); off 4418 drivers/scsi/lpfc/lpfc_attr.c char *buf, loff_t off, size_t count) off 4428 drivers/scsi/lpfc/lpfc_attr.c nport_index = (unsigned long)off / off 6143 drivers/scsi/lpfc/lpfc_attr.c char *buf, loff_t off, size_t count) off 6154 drivers/scsi/lpfc/lpfc_attr.c if ((off + count) > FF_REG_AREA_SIZE) off 6160 drivers/scsi/lpfc/lpfc_attr.c if (off % 4 || count % 4 || (unsigned long)buf % 4) off 6174 drivers/scsi/lpfc/lpfc_attr.c phba->ctrl_regs_memmap_p + off + buf_off); off 6202 drivers/scsi/lpfc/lpfc_attr.c char *buf, loff_t off, size_t count) off 6214 drivers/scsi/lpfc/lpfc_attr.c if (off > FF_REG_AREA_SIZE) off 6217 drivers/scsi/lpfc/lpfc_attr.c if ((off + count) > FF_REG_AREA_SIZE) off 6218 drivers/scsi/lpfc/lpfc_attr.c count = FF_REG_AREA_SIZE - off; off 6222 drivers/scsi/lpfc/lpfc_attr.c if (off % 4 || count % 4 || (unsigned long)buf % 4) off 6229 drivers/scsi/lpfc/lpfc_attr.c *tmp_ptr = readl(phba->ctrl_regs_memmap_p + off + buf_off); off 6266 drivers/scsi/lpfc/lpfc_attr.c char *buf, loff_t off, size_t count) off 6290 drivers/scsi/lpfc/lpfc_attr.c char *buf, loff_t off, size_t count) off 668 drivers/scsi/lpfc/lpfc_debugfs.c int i, off; off 676 drivers/scsi/lpfc/lpfc_debugfs.c off = 0; off 684 drivers/scsi/lpfc/lpfc_debugfs.c off = lpfc_debugfs_last_hba_slim_off; off 695 drivers/scsi/lpfc/lpfc_debugfs.c off, *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), off 699 drivers/scsi/lpfc/lpfc_debugfs.c off += (8 * sizeof(uint32_t)); off 727 drivers/scsi/lpfc/lpfc_debugfs.c int i, off; off 734 drivers/scsi/lpfc/lpfc_debugfs.c off = 0; off 743 drivers/scsi/lpfc/lpfc_debugfs.c off, *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), off 747 drivers/scsi/lpfc/lpfc_debugfs.c off += (8 * sizeof(uint32_t)); off 756 drivers/scsi/lpfc/lpfc_debugfs.c off, *ptr, *(ptr+1), *(ptr+2), *(ptr+3), *(ptr+4), off 760 drivers/scsi/lpfc/lpfc_debugfs.c off += (8 * sizeof(uint32_t)); off 2322 drivers/scsi/lpfc/lpfc_debugfs.c lpfc_debugfs_lseek(struct file *file, loff_t off, int whence) off 2325 drivers/scsi/lpfc/lpfc_debugfs.c return fixed_size_llseek(file, off, whence, debug->len); off 1260 drivers/scsi/mesh.c int i, dma_cmd, total, off, dtot; off 1278 drivers/scsi/mesh.c off = ms->data_ptr; off 1285 drivers/scsi/mesh.c if (off >= dma_len) { off 1286 drivers/scsi/mesh.c off -= dma_len; off 1291 drivers/scsi/mesh.c dcmds->req_count = cpu_to_le16(dma_len - off); off 1293 drivers/scsi/mesh.c dcmds->phy_addr = cpu_to_le32(dma_addr + off); off 1296 drivers/scsi/mesh.c dtot += dma_len - off; off 1297 drivers/scsi/mesh.c off = 0; off 58 drivers/scsi/mvsas/mv_chips.h static inline u32 mvs_read_port(struct mvs_info *mvi, u32 off, off 61 drivers/scsi/mvsas/mv_chips.h void __iomem *regs = mvi->regs + off; off 67 drivers/scsi/mvsas/mv_chips.h static inline void mvs_write_port(struct mvs_info *mvi, u32 off, u32 off2, off 70 drivers/scsi/mvsas/mv_chips.h void __iomem *regs = mvi->regs + off; off 100 drivers/scsi/qedf/qedf_attr.c struct bin_attribute *ba, char *buf, loff_t off, off 109 drivers/scsi/qedf/qedf_attr.c ret = memory_read_from_buffer(buf, count, &off, off 120 drivers/scsi/qedf/qedf_attr.c struct bin_attribute *ba, char *buf, loff_t off, off 129 drivers/scsi/qedf/qedf_attr.c if (off != 0) off 22 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 34 drivers/scsi/qla2xxx/qla_attr.c if (off < ha->md_template_size) { off 36 drivers/scsi/qla2xxx/qla_attr.c &off, ha->md_tmplt_hdr, ha->md_template_size); off 38 drivers/scsi/qla2xxx/qla_attr.c off -= ha->md_template_size; off 40 drivers/scsi/qla2xxx/qla_attr.c &off, ha->md_dump, ha->md_dump_size); off 43 drivers/scsi/qla2xxx/qla_attr.c rval = memory_read_from_buffer(buf, count, &off, ha->mctp_dump, off 46 drivers/scsi/qla2xxx/qla_attr.c rval = memory_read_from_buffer(buf, count, &off, ha->fw_dump, off 58 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 65 drivers/scsi/qla2xxx/qla_attr.c if (off != 0) off 155 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 188 drivers/scsi/qla2xxx/qla_attr.c return memory_read_from_buffer(buf, count, &off, ha->nvram, off 195 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 202 drivers/scsi/qla2xxx/qla_attr.c if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->nvram_size || off 270 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 282 drivers/scsi/qla2xxx/qla_attr.c rval = memory_read_from_buffer(buf, count, &off, ha->optrom_buffer, off 294 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 306 drivers/scsi/qla2xxx/qla_attr.c if (off > ha->optrom_region_size) { off 310 drivers/scsi/qla2xxx/qla_attr.c if (off + count > ha->optrom_region_size) off 311 drivers/scsi/qla2xxx/qla_attr.c count = ha->optrom_region_size - off; off 313 drivers/scsi/qla2xxx/qla_attr.c memcpy(&ha->optrom_buffer[off], buf, count); off 332 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 342 drivers/scsi/qla2xxx/qla_attr.c if (off) off 516 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 557 drivers/scsi/qla2xxx/qla_attr.c return memory_read_from_buffer(buf, count, &off, ha->vpd, ha->vpd_size); off 563 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 576 drivers/scsi/qla2xxx/qla_attr.c if (!capable(CAP_SYS_ADMIN) || off != 0 || count != ha->vpd_size || off 630 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 636 drivers/scsi/qla2xxx/qla_attr.c if (!capable(CAP_SYS_ADMIN) || off != 0 || count < SFP_DEV_SIZE) off 666 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 676 drivers/scsi/qla2xxx/qla_attr.c if (off != 0) off 802 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 845 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 853 drivers/scsi/qla2xxx/qla_attr.c if (!capable(CAP_SYS_ADMIN) || off != 0 || count > XGMAC_DATA_SIZE) off 908 drivers/scsi/qla2xxx/qla_attr.c char *buf, loff_t off, size_t count) off 915 drivers/scsi/qla2xxx/qla_attr.c if (!capable(CAP_SYS_ADMIN) || off != 0 || count > DCBX_TLV_DATA_SIZE) off 4864 drivers/scsi/qla2xxx/qla_mbx.c uint16_t dev, uint16_t off, uint16_t len, uint16_t opt) off 4887 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = off; off 4915 drivers/scsi/qla2xxx/qla_mbx.c uint16_t dev, uint16_t off, uint16_t len, uint16_t opt) off 4941 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[9] = off; off 376 drivers/scsi/qla2xxx/qla_mr.h #define QLAFX00_SET_HBA_SOC_REG(ha, off, val)\ off 377 drivers/scsi/qla2xxx/qla_mr.h WRT_REG_DWORD((ha)->cregbase + off, val) off 379 drivers/scsi/qla2xxx/qla_mr.h #define QLAFX00_GET_HBA_SOC_REG(ha, off)\ off 380 drivers/scsi/qla2xxx/qla_mr.h RD_REG_DWORD((ha)->cregbase + off) off 398 drivers/scsi/qla2xxx/qla_mr.h #define QLAFX00_RD_REG(ha, off) \ off 399 drivers/scsi/qla2xxx/qla_mr.h RD_REG_DWORD((ha)->cregbase + off) off 401 drivers/scsi/qla2xxx/qla_mr.h #define QLAFX00_WR_REG(ha, off, val) \ off 402 drivers/scsi/qla2xxx/qla_mr.h WRT_REG_DWORD((ha)->cregbase + off, val) off 29 drivers/scsi/qla2xxx/qla_nx.c #define CRB_BLK(off) ((off >> 20) & 0x3f) off 30 drivers/scsi/qla2xxx/qla_nx.c #define CRB_SUBBLK(off) ((off >> 16) & 0xf) off 33 drivers/scsi/qla2xxx/qla_nx.c #define CRB_HI(off) ((qla82xx_crb_hub_agt[CRB_BLK(off)] << 20) | \ off 34 drivers/scsi/qla2xxx/qla_nx.c ((off) & 0xf0000)) off 384 drivers/scsi/qla2xxx/qla_nx.c qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off) off 388 drivers/scsi/qla2xxx/qla_nx.c if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) { off 392 drivers/scsi/qla2xxx/qla_nx.c return off; off 395 drivers/scsi/qla2xxx/qla_nx.c if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_PCIX_HOST2)) { off 399 drivers/scsi/qla2xxx/qla_nx.c return off; off 402 drivers/scsi/qla2xxx/qla_nx.c if ((off > QLA82XX_CRB_PCIX_HOST2) && (off < QLA82XX_CRB_MAX)) { off 404 drivers/scsi/qla2xxx/qla_nx.c off = off - QLA82XX_CRB_PCIX_HOST2 + QLA82XX_CRB_PCIX_HOST; off 407 drivers/scsi/qla2xxx/qla_nx.c return off; off 412 drivers/scsi/qla2xxx/qla_nx.c if ((off >= QLA82XX_PCI_DIRECT_CRB) && off 413 drivers/scsi/qla2xxx/qla_nx.c (off < QLA82XX_PCI_CAMQM_MAX)) off 414 drivers/scsi/qla2xxx/qla_nx.c return off; off 420 drivers/scsi/qla2xxx/qla_nx.c QLA2XXX_DRIVER_NAME, off); off 421 drivers/scsi/qla2xxx/qla_nx.c return off; off 477 drivers/scsi/qla2xxx/qla_nx.c void __iomem *off; off 481 drivers/scsi/qla2xxx/qla_nx.c rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); off 490 drivers/scsi/qla2xxx/qla_nx.c qla82xx_pci_set_crbwindow_2M(ha, off_in, &off); off 493 drivers/scsi/qla2xxx/qla_nx.c writel(data, (void __iomem *)off); off 507 drivers/scsi/qla2xxx/qla_nx.c void __iomem *off; off 512 drivers/scsi/qla2xxx/qla_nx.c rv = qla82xx_pci_get_crb_addr_2M(ha, off_in, &off); off 521 drivers/scsi/qla2xxx/qla_nx.c qla82xx_pci_set_crbwindow_2M(ha, off_in, &off); off 523 drivers/scsi/qla2xxx/qla_nx.c data = RD_REG_DWORD(off); off 693 drivers/scsi/qla2xxx/qla_nx.c u64 off, void *data, int size) off 710 drivers/scsi/qla2xxx/qla_nx.c start = qla82xx_pci_set_window(ha, off); off 712 drivers/scsi/qla2xxx/qla_nx.c (qla82xx_pci_is_same_window(ha, off + size - 1) == 0)) { off 717 drivers/scsi/qla2xxx/qla_nx.c QLA2XXX_DRIVER_NAME, off); off 765 drivers/scsi/qla2xxx/qla_nx.c u64 off, void *data, int size) off 782 drivers/scsi/qla2xxx/qla_nx.c start = qla82xx_pci_set_window(ha, off); off 784 drivers/scsi/qla2xxx/qla_nx.c (qla82xx_pci_is_same_window(ha, off + size - 1) == 0)) { off 789 drivers/scsi/qla2xxx/qla_nx.c QLA2XXX_DRIVER_NAME, off); off 936 drivers/scsi/qla2xxx/qla_nx.c qla82xx_md_rw_32(struct qla_hw_data *ha, uint32_t off, u32 data, uint8_t flag) off 940 drivers/scsi/qla2xxx/qla_nx.c WRT_REG_DWORD(CRB_WINDOW_2M + ha->nx_pcibase, off & 0xFFFF0000); off 944 drivers/scsi/qla2xxx/qla_nx.c off_value = (off & 0x0000FFFF); off 1147 drivers/scsi/qla2xxx/qla_nx.c unsigned long off; off 1261 drivers/scsi/qla2xxx/qla_nx.c off = qla82xx_decode_crb_addr((unsigned long)buf[i].addr) + off 1268 drivers/scsi/qla2xxx/qla_nx.c if (off == QLA82XX_CAM_RAM(0x1fc)) off 1272 drivers/scsi/qla2xxx/qla_nx.c if (off == (ROMUSB_GLB + 0xbc)) off 1276 drivers/scsi/qla2xxx/qla_nx.c if (off == (ROMUSB_GLB + 0xc8)) off 1280 drivers/scsi/qla2xxx/qla_nx.c if (off == QLA82XX_PCIE_REG(PCIE_SETUP_FUNCTION)) off 1283 drivers/scsi/qla2xxx/qla_nx.c if (off == QLA82XX_PCIE_REG(PCIE_SETUP_FUNCTION2)) off 1286 drivers/scsi/qla2xxx/qla_nx.c if ((off & 0x0ff00000) == QLA82XX_CRB_SMB) off 1289 drivers/scsi/qla2xxx/qla_nx.c if ((off & 0x0ff00000) == QLA82XX_CRB_DDR_NET) off 1292 drivers/scsi/qla2xxx/qla_nx.c if (off == ADDR_ERROR) { off 1298 drivers/scsi/qla2xxx/qla_nx.c qla82xx_wr_32(ha, off, buf[i].data); off 1303 drivers/scsi/qla2xxx/qla_nx.c if (off == QLA82XX_ROMUSB_GLB_SW_RESET) off 1333 drivers/scsi/qla2xxx/qla_nx.c u64 off, void *data, int size) off 1343 drivers/scsi/qla2xxx/qla_nx.c if (off >= QLA82XX_ADDR_QDR_NET && off <= QLA82XX_P3_ADDR_QDR_NET_MAX) off 1347 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_pci_mem_bound_check(ha, off, size) == 0) off 1349 drivers/scsi/qla2xxx/qla_nx.c off, data, size); off 1352 drivers/scsi/qla2xxx/qla_nx.c off0 = off & 0x7; off 1356 drivers/scsi/qla2xxx/qla_nx.c off8 = off & 0xfffffff0; off 1357 drivers/scsi/qla2xxx/qla_nx.c loop = (((off & 0xf) + size - 1) >> 4) + 1; off 1360 drivers/scsi/qla2xxx/qla_nx.c startword = (off & 0xf)/8; off 1470 drivers/scsi/qla2xxx/qla_nx.c u64 off, void *data, int size) off 1481 drivers/scsi/qla2xxx/qla_nx.c if (off >= QLA82XX_ADDR_QDR_NET && off <= QLA82XX_P3_ADDR_QDR_NET_MAX) off 1485 drivers/scsi/qla2xxx/qla_nx.c if (qla82xx_pci_mem_bound_check(ha, off, size) == 0) off 1487 drivers/scsi/qla2xxx/qla_nx.c off, data, size); off 1490 drivers/scsi/qla2xxx/qla_nx.c off8 = off & 0xfffffff0; off 1491 drivers/scsi/qla2xxx/qla_nx.c off0[0] = off & 0xf; off 512 drivers/scsi/qla2xxx/qla_nx.h #define MIU_TEST_AGT_UPPER_ADDR(off) (0) off 14 drivers/scsi/qla4xxx/ql4_attr.c struct bin_attribute *ba, char *buf, loff_t off, off 26 drivers/scsi/qla4xxx/ql4_attr.c return memory_read_from_buffer(buf, count, &off, ha->fw_dump, off 32 drivers/scsi/qla4xxx/ql4_attr.c struct bin_attribute *ba, char *buf, loff_t off, off 44 drivers/scsi/qla4xxx/ql4_attr.c if (off != 0) off 212 drivers/scsi/qla4xxx/ql4_glbl.h int qla4_82xx_md_rd_32(struct scsi_qla_host *ha, uint32_t off, uint32_t *data); off 213 drivers/scsi/qla4xxx/ql4_glbl.h int qla4_82xx_md_wr_32(struct scsi_qla_host *ha, uint32_t off, uint32_t data); off 29 drivers/scsi/qla4xxx/ql4_nx.c #define CRB_BLK(off) ((off >> 20) & 0x3f) off 30 drivers/scsi/qla4xxx/ql4_nx.c #define CRB_SUBBLK(off) ((off >> 16) & 0xf) off 32 drivers/scsi/qla4xxx/ql4_nx.c #define CRB_HI(off) ((qla4_82xx_crb_hub_agt[CRB_BLK(off)] << 20) | \ off 33 drivers/scsi/qla4xxx/ql4_nx.c ((off) & 0xf0000)) off 39 drivers/scsi/qla4xxx/ql4_nx.c qla4_8xxx_pci_base_offsetfset(struct scsi_qla_host *ha, unsigned long off) off 41 drivers/scsi/qla4xxx/ql4_nx.c if ((off < ha->first_page_group_end) && off 42 drivers/scsi/qla4xxx/ql4_nx.c (off >= ha->first_page_group_start)) off 43 drivers/scsi/qla4xxx/ql4_nx.c return (void __iomem *)(ha->nx_pcibase + off); off 360 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_pci_set_crbwindow_2M(struct scsi_qla_host *ha, ulong *off) off 364 drivers/scsi/qla4xxx/ql4_nx.c ha->crb_win = CRB_HI(*off); off 374 drivers/scsi/qla4xxx/ql4_nx.c " off=0x%lx\n", __func__, ha->crb_win, win_read, *off)); off 376 drivers/scsi/qla4xxx/ql4_nx.c *off = (*off & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase; off 380 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_wr_32(struct scsi_qla_host *ha, ulong off, u32 data) off 385 drivers/scsi/qla4xxx/ql4_nx.c rv = qla4_82xx_pci_get_crb_addr_2M(ha, &off); off 392 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_pci_set_crbwindow_2M(ha, &off); off 395 drivers/scsi/qla4xxx/ql4_nx.c writel(data, (void __iomem *)off); off 403 drivers/scsi/qla4xxx/ql4_nx.c uint32_t qla4_82xx_rd_32(struct scsi_qla_host *ha, ulong off) off 409 drivers/scsi/qla4xxx/ql4_nx.c rv = qla4_82xx_pci_get_crb_addr_2M(ha, &off); off 416 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_pci_set_crbwindow_2M(ha, &off); off 418 drivers/scsi/qla4xxx/ql4_nx.c data = readl((void __iomem *)off); off 428 drivers/scsi/qla4xxx/ql4_nx.c int qla4_82xx_md_rd_32(struct scsi_qla_host *ha, uint32_t off, uint32_t *data) off 433 drivers/scsi/qla4xxx/ql4_nx.c off_value = off & 0xFFFF0000; off 444 drivers/scsi/qla4xxx/ql4_nx.c __func__, off_value, win_read, off)); off 447 drivers/scsi/qla4xxx/ql4_nx.c off_value = off & 0x0000FFFF; off 454 drivers/scsi/qla4xxx/ql4_nx.c int qla4_82xx_md_wr_32(struct scsi_qla_host *ha, uint32_t off, uint32_t data) off 459 drivers/scsi/qla4xxx/ql4_nx.c off_value = off & 0xFFFF0000; off 469 drivers/scsi/qla4xxx/ql4_nx.c __func__, off_value, win_read, off)); off 472 drivers/scsi/qla4xxx/ql4_nx.c off_value = off & 0x0000FFFF; off 554 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_pci_get_crb_addr_2M(struct scsi_qla_host *ha, ulong *off) off 558 drivers/scsi/qla4xxx/ql4_nx.c if (*off >= QLA82XX_CRB_MAX) off 561 drivers/scsi/qla4xxx/ql4_nx.c if (*off >= QLA82XX_PCI_CAMQM && (*off < QLA82XX_PCI_CAMQM_2M_END)) { off 562 drivers/scsi/qla4xxx/ql4_nx.c *off = (*off - QLA82XX_PCI_CAMQM) + off 567 drivers/scsi/qla4xxx/ql4_nx.c if (*off < QLA82XX_PCI_CRBSPACE) off 570 drivers/scsi/qla4xxx/ql4_nx.c *off -= QLA82XX_PCI_CRBSPACE; off 575 drivers/scsi/qla4xxx/ql4_nx.c m = &crb_128M_2M_map[CRB_BLK(*off)].sub_block[CRB_SUBBLK(*off)]; off 577 drivers/scsi/qla4xxx/ql4_nx.c if (m->valid && (m->start_128M <= *off) && (m->end_128M > *off)) { off 578 drivers/scsi/qla4xxx/ql4_nx.c *off = *off + m->start_2M - m->start_128M + ha->nx_pcibase; off 713 drivers/scsi/qla4xxx/ql4_nx.c u64 off, void *data, int size) off 729 drivers/scsi/qla4xxx/ql4_nx.c start = qla4_82xx_pci_set_window(ha, off); off 731 drivers/scsi/qla4xxx/ql4_nx.c (qla4_82xx_pci_is_same_window(ha, off + size - 1) == 0)) { off 734 drivers/scsi/qla4xxx/ql4_nx.c "offset is 0x%llx\n", DRIVER_NAME, off); off 785 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_pci_mem_write_direct(struct scsi_qla_host *ha, u64 off, off 802 drivers/scsi/qla4xxx/ql4_nx.c start = qla4_82xx_pci_set_window(ha, off); off 804 drivers/scsi/qla4xxx/ql4_nx.c (qla4_82xx_pci_is_same_window(ha, off + size - 1) == 0)) { off 807 drivers/scsi/qla4xxx/ql4_nx.c "offset is 0x%llx\n", DRIVER_NAME, off); off 987 drivers/scsi/qla4xxx/ql4_nx.c unsigned long off; off 1103 drivers/scsi/qla4xxx/ql4_nx.c off = qla4_82xx_decode_crb_addr((unsigned long)buf[i].addr) + off 1110 drivers/scsi/qla4xxx/ql4_nx.c if (off & 0x1) { off 1112 drivers/scsi/qla4xxx/ql4_nx.c "Skip CRB init replay for offset = 0x%lx\n", off)); off 1117 drivers/scsi/qla4xxx/ql4_nx.c if (off == QLA82XX_CAM_RAM(0x1fc)) off 1121 drivers/scsi/qla4xxx/ql4_nx.c if (off == (ROMUSB_GLB + 0xbc)) off 1125 drivers/scsi/qla4xxx/ql4_nx.c if (off == (ROMUSB_GLB + 0xc8)) off 1129 drivers/scsi/qla4xxx/ql4_nx.c if (off == QLA82XX_PCIE_REG(PCIE_SETUP_FUNCTION)) off 1132 drivers/scsi/qla4xxx/ql4_nx.c if (off == QLA82XX_PCIE_REG(PCIE_SETUP_FUNCTION2)) off 1135 drivers/scsi/qla4xxx/ql4_nx.c if ((off & 0x0ff00000) == QLA82XX_CRB_SMB) off 1138 drivers/scsi/qla4xxx/ql4_nx.c if ((off & 0x0ff00000) == QLA82XX_CRB_DDR_NET) off 1141 drivers/scsi/qla4xxx/ql4_nx.c if (off == ADDR_ERROR) { off 1148 drivers/scsi/qla4xxx/ql4_nx.c qla4_82xx_wr_32(ha, off, buf[i].data); off 1153 drivers/scsi/qla4xxx/ql4_nx.c if (off == QLA82XX_ROMUSB_GLB_SW_RESET) off 1367 drivers/scsi/qla4xxx/ql4_nx.c u64 off, void *data, int size) off 1378 drivers/scsi/qla4xxx/ql4_nx.c if (off >= QLA8XXX_ADDR_QDR_NET && off <= QLA82XX_P3_ADDR_QDR_NET_MAX) off 1382 drivers/scsi/qla4xxx/ql4_nx.c if (qla4_82xx_pci_mem_bound_check(ha, off, size) == 0) off 1384 drivers/scsi/qla4xxx/ql4_nx.c off, data, size); off 1388 drivers/scsi/qla4xxx/ql4_nx.c off8 = off & 0xfffffff0; off 1389 drivers/scsi/qla4xxx/ql4_nx.c off0[0] = off & 0xf; off 1458 drivers/scsi/qla4xxx/ql4_nx.c u64 off, void *data, int size) off 1468 drivers/scsi/qla4xxx/ql4_nx.c if (off >= QLA8XXX_ADDR_QDR_NET && off <= QLA82XX_P3_ADDR_QDR_NET_MAX) off 1472 drivers/scsi/qla4xxx/ql4_nx.c if (qla4_82xx_pci_mem_bound_check(ha, off, size) == 0) off 1474 drivers/scsi/qla4xxx/ql4_nx.c off, data, size); off 1477 drivers/scsi/qla4xxx/ql4_nx.c off0 = off & 0x7; off 1481 drivers/scsi/qla4xxx/ql4_nx.c off8 = off & 0xfffffff0; off 1482 drivers/scsi/qla4xxx/ql4_nx.c loop = (((off & 0xf) + size - 1) >> 4) + 1; off 1485 drivers/scsi/qla4xxx/ql4_nx.c startword = (off & 0xf)/8; off 542 drivers/scsi/qla4xxx/ql4_nx.h #define MIU_TEST_AGT_UPPER_ADDR(off) (0) off 2276 drivers/scsi/scsi_debug.c int pf, sp, ps, md_len, bd_len, off, spf, pg_len; off 2303 drivers/scsi/scsi_debug.c off = bd_len + (mselect6 ? 4 : 8); off 2304 drivers/scsi/scsi_debug.c mpage = arr[off] & 0x3f; off 2305 drivers/scsi/scsi_debug.c ps = !!(arr[off] & 0x80); off 2307 drivers/scsi/scsi_debug.c mk_sense_invalid_fld(scp, SDEB_IN_DATA, off, 7); off 2310 drivers/scsi/scsi_debug.c spf = !!(arr[off] & 0x40); off 2311 drivers/scsi/scsi_debug.c pg_len = spf ? (get_unaligned_be16(arr + off + 2) + 4) : off 2312 drivers/scsi/scsi_debug.c (arr[off + 1] + 2); off 2313 drivers/scsi/scsi_debug.c if ((pg_len + off) > param_len) { off 2320 drivers/scsi/scsi_debug.c if (caching_pg[1] == arr[off + 1]) { off 2321 drivers/scsi/scsi_debug.c memcpy(caching_pg + 2, arr + off + 2, off 2327 drivers/scsi/scsi_debug.c if (ctrl_m_pg[1] == arr[off + 1]) { off 2328 drivers/scsi/scsi_debug.c memcpy(ctrl_m_pg + 2, arr + off + 2, off 2339 drivers/scsi/scsi_debug.c if (iec_m_pg[1] == arr[off + 1]) { off 2340 drivers/scsi/scsi_debug.c memcpy(iec_m_pg + 2, arr + off + 2, off 2348 drivers/scsi/scsi_debug.c mk_sense_invalid_fld(scp, SDEB_IN_DATA, off, 5); off 38 drivers/scsi/scsi_logging.c size_t off = 0; off 41 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 44 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 45 drivers/scsi/scsi_logging.c return off; off 48 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 50 drivers/scsi/scsi_logging.c return off; off 58 drivers/scsi/scsi_logging.c size_t off = 0, logbuf_len; off 68 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 70 drivers/scsi/scsi_logging.c if (!WARN_ON(off >= logbuf_len)) { off 72 drivers/scsi/scsi_logging.c off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); off 85 drivers/scsi/scsi_logging.c size_t off = 0, logbuf_len; off 93 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, scmd_name(scmd), off 95 drivers/scsi/scsi_logging.c if (off < logbuf_len) { off 97 drivers/scsi/scsi_logging.c off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); off 110 drivers/scsi/scsi_logging.c size_t off; off 117 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, off 120 drivers/scsi/scsi_logging.c return off; off 128 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "%s", cdb_name); off 130 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "opcode=0x%x", cdb0); off 131 drivers/scsi/scsi_logging.c if (WARN_ON(off >= buf_len)) off 132 drivers/scsi/scsi_logging.c return off; off 134 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 137 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 142 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "%s", sa_name); off 144 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "%s, sa=0x%x", off 147 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, off 150 drivers/scsi/scsi_logging.c WARN_ON(off >= buf_len); off 151 drivers/scsi/scsi_logging.c return off; off 158 drivers/scsi/scsi_logging.c size_t off; off 160 drivers/scsi/scsi_logging.c off = scsi_format_opcode_name(logbuf, logbuf_len, cdb); off 161 drivers/scsi/scsi_logging.c if (off >= logbuf_len) off 162 drivers/scsi/scsi_logging.c return off; off 168 drivers/scsi/scsi_logging.c if (off > logbuf_len - 3) off 170 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 173 drivers/scsi/scsi_logging.c return off; off 181 drivers/scsi/scsi_logging.c size_t off, logbuf_len; off 190 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, off 192 drivers/scsi/scsi_logging.c if (off >= logbuf_len) off 194 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, "CDB: "); off 195 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 198 drivers/scsi/scsi_logging.c off += scsi_format_opcode_name(logbuf + off, logbuf_len - off, off 200 drivers/scsi/scsi_logging.c if (off >= logbuf_len) off 206 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, "\n"); off 215 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, off 218 drivers/scsi/scsi_logging.c if (!WARN_ON(off > logbuf_len - 58)) { off 219 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 222 drivers/scsi/scsi_logging.c 16, 1, logbuf + off, off 223 drivers/scsi/scsi_logging.c logbuf_len - off, false); off 231 drivers/scsi/scsi_logging.c if (!WARN_ON(off > logbuf_len - 49)) { off 232 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, " "); off 234 drivers/scsi/scsi_logging.c logbuf + off, logbuf_len - off, off 247 drivers/scsi/scsi_logging.c size_t off = 0; off 253 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "Add. Sense: %s", off 256 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 260 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "<<vendor>>"); off 261 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 264 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 266 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 269 drivers/scsi/scsi_logging.c return off; off 277 drivers/scsi/scsi_logging.c size_t off; off 279 drivers/scsi/scsi_logging.c off = scnprintf(buffer, buf_len, "Sense Key : "); off 282 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 285 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 287 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, off 291 drivers/scsi/scsi_logging.c off += scnprintf(buffer + off, buf_len - off, "[descriptor] "); off 292 drivers/scsi/scsi_logging.c return off; off 309 drivers/scsi/scsi_logging.c size_t off; off 311 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, off 314 drivers/scsi/scsi_logging.c logbuf + off, logbuf_len - off, off 326 drivers/scsi/scsi_logging.c size_t off, logbuf_len; off 331 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, name, tag); off 332 drivers/scsi/scsi_logging.c off += scsi_format_sense_hdr(logbuf + off, logbuf_len - off, sshdr); off 339 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, name, tag); off 340 drivers/scsi/scsi_logging.c off += scsi_format_extd_sense(logbuf + off, logbuf_len - off, off 389 drivers/scsi/scsi_logging.c size_t off, logbuf_len; off 398 drivers/scsi/scsi_logging.c off = sdev_format_header(logbuf, logbuf_len, off 401 drivers/scsi/scsi_logging.c if (off >= logbuf_len) off 405 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 407 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 411 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 414 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 416 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 419 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, "Result: "); off 420 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 424 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 427 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 429 drivers/scsi/scsi_logging.c if (WARN_ON(off >= logbuf_len)) off 433 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 436 drivers/scsi/scsi_logging.c off += scnprintf(logbuf + off, logbuf_len - off, off 848 drivers/scsi/scsi_sysfs.c char *buf, loff_t off, size_t count) \ off 858 drivers/scsi/scsi_sysfs.c ret = memory_read_from_buffer(buf, count, &off, \ off 874 drivers/scsi/scsi_sysfs.c char *buf, loff_t off, size_t count) off 882 drivers/scsi/scsi_sysfs.c return memory_read_from_buffer(buf, count, &off, sdev->inquiry, off 1253 drivers/scsi/scsi_transport_spi.c static void print_nego(const unsigned char *msg, int per, int off, int width) off 1261 drivers/scsi/scsi_transport_spi.c if (off) off 1262 drivers/scsi/scsi_transport_spi.c printk("offset = %d ", msg[off]); off 2302 drivers/scsi/sg.c size_t count, loff_t *off); off 2314 drivers/scsi/sg.c const char __user *buffer, size_t count, loff_t *off); off 2386 drivers/scsi/sg.c size_t count, loff_t *off) off 2407 drivers/scsi/sg.c size_t count, loff_t *off) off 321 drivers/scsi/ufs/ufshcd.c int off = (int)tag - hba->nutrs; off 322 drivers/scsi/ufs/ufshcd.c struct utp_task_req_desc *descp = &hba->utmrdl_base_addr[off]; off 400 drivers/scsi/xen-scsifront.c unsigned int i, off, len, bytes; off 437 drivers/scsi/xen-scsifront.c off = offset_in_page(seg); off 440 drivers/scsi/xen-scsifront.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); off 450 drivers/scsi/xen-scsifront.c shadow->seg[ref_cnt].offset = (uint16_t)off; off 455 drivers/scsi/xen-scsifront.c off = 0; off 464 drivers/scsi/xen-scsifront.c off = sg->offset; off 473 drivers/scsi/xen-scsifront.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); off 486 drivers/scsi/xen-scsifront.c seg->offset = (uint16_t)off; off 493 drivers/scsi/xen-scsifront.c off = 0; off 75 drivers/soc/fsl/qbman/qman_test_api.c unsigned int len, off; off 84 drivers/soc/fsl/qbman/qman_test_api.c off = qm_fd_get_offset(fd); off 87 drivers/soc/fsl/qbman/qman_test_api.c qm_fd_set_param(fd, fmt, off, len); off 953 drivers/soc/tegra/pmc.c struct device_node *np, bool off) off 971 drivers/soc/tegra/pmc.c if (off) { off 995 drivers/soc/tegra/pmc.c bool off; off 1020 drivers/soc/tegra/pmc.c off = !tegra_powergate_is_powered(pmc, pg->id); off 1028 drivers/soc/tegra/pmc.c err = tegra_powergate_of_get_resets(pg, np, off); off 1035 drivers/soc/tegra/pmc.c if (off) off 1041 drivers/soc/tegra/pmc.c err = pm_genpd_init(&pg->genpd, NULL, off); off 173 drivers/soc/tegra/powergate-bpmp.c bool off; off 176 drivers/soc/tegra/powergate-bpmp.c off = !tegra_bpmp_powergate_is_powered(bpmp, info->id); off 189 drivers/soc/tegra/powergate-bpmp.c err = pm_genpd_init(&powergate->genpd, NULL, off); off 836 drivers/soundwire/intel.c u32 num, u32 off, u32 max_ch, bool pcm) off 844 drivers/soundwire/intel.c for (i = off; i < (off + num); i++) { off 897 drivers/soundwire/intel.c int num_dai, ret, off = 0; off 910 drivers/soundwire/intel.c off, stream->num_ch_in, true); off 914 drivers/soundwire/intel.c off += cdns->pcm.num_in; off 916 drivers/soundwire/intel.c off, stream->num_ch_out, true); off 920 drivers/soundwire/intel.c off += cdns->pcm.num_out; off 922 drivers/soundwire/intel.c off, stream->num_ch_bd, true); off 928 drivers/soundwire/intel.c off += cdns->pcm.num_bd; off 930 drivers/soundwire/intel.c off, stream->num_ch_in, false); off 934 drivers/soundwire/intel.c off += cdns->pdm.num_in; off 936 drivers/soundwire/intel.c off, stream->num_ch_out, false); off 940 drivers/soundwire/intel.c off += cdns->pdm.num_out; off 942 drivers/soundwire/intel.c off, stream->num_ch_bd, false); off 624 drivers/spi/spi-loopback-test.c size_t off; off 640 drivers/spi/spi-loopback-test.c off = *ptr - RX(0); off 641 drivers/spi/spi-loopback-test.c *ptr = rx + off; off 648 drivers/spi/spi-loopback-test.c off = *ptr - TX(0); off 649 drivers/spi/spi-loopback-test.c *ptr = tx + off; off 21 drivers/spi/spi-test.h #define RX(off) ((void *)(RX_START + off)) off 22 drivers/spi/spi-test.h #define TX(off) ((void *)(TX_START + off)) off 72 drivers/ssb/driver_pcicore.c unsigned int func, unsigned int off) off 93 drivers/ssb/driver_pcicore.c addr |= (off & ~3); off 103 drivers/ssb/driver_pcicore.c addr |= (off & ~3); off 111 drivers/ssb/driver_pcicore.c unsigned int func, unsigned int off, off 121 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); off 135 drivers/ssb/driver_pcicore.c val >>= (8 * (off & 3)); off 157 drivers/ssb/driver_pcicore.c unsigned int func, unsigned int off, off 167 drivers/ssb/driver_pcicore.c addr = get_cfgspace_addr(pc, bus, dev, func, off); off 183 drivers/ssb/driver_pcicore.c val &= ~(0xFF << (8 * (off & 3))); off 184 drivers/ssb/driver_pcicore.c val |= *((const u8 *)buf) << (8 * (off & 3)); off 188 drivers/ssb/driver_pcicore.c val &= ~(0xFFFF << (8 * (off & 3))); off 189 drivers/ssb/driver_pcicore.c val |= *((const u16 *)buf) << (8 * (off & 3)); off 1093 drivers/staging/android/vsoc.c __u32 off = 0; off 1099 drivers/staging/android/vsoc.c off = region_p->region_begin_offset; off 1103 drivers/staging/android/vsoc.c off += perm->begin_offset; off 1115 drivers/staging/android/vsoc.c *area_offset = off; off 342 drivers/staging/axis-fifo/axis-fifo.c size_t len, loff_t *off) off 438 drivers/staging/axis-fifo/axis-fifo.c size_t len, loff_t *off) off 20 drivers/staging/exfat/exfat_cache.c s32 off; off 24 drivers/staging/exfat/exfat_cache.c off = (sec + off 27 drivers/staging/exfat/exfat_cache.c hp = &p_fs->FAT_cache_hash_list[off]; off 84 drivers/staging/exfat/exfat_cache.c s32 off; off 89 drivers/staging/exfat/exfat_cache.c off = (bp->sec + off 93 drivers/staging/exfat/exfat_cache.c hp = &p_fs->FAT_cache_hash_list[off]; off 109 drivers/staging/exfat/exfat_cache.c s32 off; off 114 drivers/staging/exfat/exfat_cache.c off = (bp->sec + off 118 drivers/staging/exfat/exfat_cache.c hp = &p_fs->buf_cache_hash_list[off]; off 198 drivers/staging/exfat/exfat_cache.c s32 off; off 208 drivers/staging/exfat/exfat_cache.c off = (loc + (loc >> 1)) & p_bd->sector_size_mask; off 210 drivers/staging/exfat/exfat_cache.c if (off == (p_bd->sector_size - 1)) { off 215 drivers/staging/exfat/exfat_cache.c _content = (u32)fat_sector[off]; off 227 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 245 drivers/staging/exfat/exfat_cache.c off = (loc << 1) & p_bd->sector_size_mask; off 251 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 266 drivers/staging/exfat/exfat_cache.c off = (loc << 2) & p_bd->sector_size_mask; off 272 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 287 drivers/staging/exfat/exfat_cache.c off = (loc << 2) & p_bd->sector_size_mask; off 293 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 327 drivers/staging/exfat/exfat_cache.c s32 off; off 338 drivers/staging/exfat/exfat_cache.c off = (loc + (loc >> 1)) & p_bd->sector_size_mask; off 347 drivers/staging/exfat/exfat_cache.c if (off == (p_bd->sector_size - 1)) { off 348 drivers/staging/exfat/exfat_cache.c fat_sector[off] = (u8)(content | off 349 drivers/staging/exfat/exfat_cache.c (fat_sector[off] & off 359 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 365 drivers/staging/exfat/exfat_cache.c fat_sector[off] = (u8)(content); off 367 drivers/staging/exfat/exfat_cache.c if (off == (p_bd->sector_size - 1)) { off 368 drivers/staging/exfat/exfat_cache.c fat_sector[off] = (u8)(content); off 377 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 390 drivers/staging/exfat/exfat_cache.c off = (loc << 1) & p_bd->sector_size_mask; off 396 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 404 drivers/staging/exfat/exfat_cache.c off = (loc << 2) & p_bd->sector_size_mask; off 410 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 418 drivers/staging/exfat/exfat_cache.c off = (loc << 2) & p_bd->sector_size_mask; off 424 drivers/staging/exfat/exfat_cache.c fat_entry = &fat_sector[off]; off 534 drivers/staging/exfat/exfat_cache.c s32 off; off 538 drivers/staging/exfat/exfat_cache.c off = (sec + (sec >> p_fs->sectors_per_clu_bits)) & off 541 drivers/staging/exfat/exfat_cache.c hp = &p_fs->buf_cache_hash_list[off]; off 1607 drivers/staging/exfat/exfat_core.c s32 off, ret; off 1612 drivers/staging/exfat/exfat_core.c off = entry << DENTRY_SIZE_BITS; off 1615 drivers/staging/exfat/exfat_core.c *offset = off & p_bd->sector_size_mask; off 1616 drivers/staging/exfat/exfat_core.c *sector = off >> p_bd->sector_size_bits; off 1619 drivers/staging/exfat/exfat_core.c ret = _walk_fat_chain(sb, p_dir, off, &clu); off 1624 drivers/staging/exfat/exfat_core.c off &= p_fs->cluster_size - 1; off 1627 drivers/staging/exfat/exfat_core.c *offset = off & p_bd->sector_size_mask; off 1630 drivers/staging/exfat/exfat_core.c *sector = off >> p_bd->sector_size_bits; off 1652 drivers/staging/exfat/exfat_core.c s32 off; off 1656 drivers/staging/exfat/exfat_core.c if (find_location(sb, p_dir, entry, &sec, &off) != FFS_SUCCESS) off 1666 drivers/staging/exfat/exfat_core.c return (struct dentry_t *)(buf + off); off 1692 drivers/staging/exfat/exfat_core.c s32 off, ret, byte_offset; off 1717 drivers/staging/exfat/exfat_core.c off = byte_offset & p_bd->sector_size_mask; off 1727 drivers/staging/exfat/exfat_core.c ep = (struct dentry_t *)(buf + off); off 1749 drivers/staging/exfat/exfat_core.c es->offset = off; off 1808 drivers/staging/exfat/exfat_core.c if (((off + DENTRY_SIZE) & p_bd->sector_size_mask) < off 1809 drivers/staging/exfat/exfat_core.c (off & p_bd->sector_size_mask)) { off 1825 drivers/staging/exfat/exfat_core.c off = 0; off 1829 drivers/staging/exfat/exfat_core.c off += DENTRY_SIZE; off 1855 drivers/staging/exfat/exfat_core.c sector_t sec, s32 off, u32 count) off 1857 drivers/staging/exfat/exfat_core.c s32 num_entries, buf_off = (off - es->offset); off 1865 drivers/staging/exfat/exfat_core.c __func__, es, (unsigned long long)sec, off, count); off 1870 drivers/staging/exfat/exfat_core.c remaining_byte_in_sector = (1 << p_bd->sector_size_bits) - off; off 1881 drivers/staging/exfat/exfat_core.c memcpy(buf + off, esbuf + buf_off, off 1900 drivers/staging/exfat/exfat_core.c off = 0; off 1924 drivers/staging/exfat/exfat_core.c s32 ret, byte_offset, off; off 1951 drivers/staging/exfat/exfat_core.c off = byte_offset & p_bd->sector_size_mask; off 1956 drivers/staging/exfat/exfat_core.c return __write_partial_entries_in_entry_set(sb, es, sec, off, count); off 481 drivers/staging/gasket/gasket_page_table.c u64 off = off 487 drivers/staging/gasket/gasket_page_table.c off + i * PAGE_SIZE; off 86 drivers/staging/isdn/avm/b1dma.c static inline void b1dma_writel(avmcard *card, u32 value, int off) off 88 drivers/staging/isdn/avm/b1dma.c writel(value, card->mbase + off); off 91 drivers/staging/isdn/avm/b1dma.c static inline u32 b1dma_readl(avmcard *card, int off) off 93 drivers/staging/isdn/avm/b1dma.c return readl(card->mbase + off); off 159 drivers/staging/isdn/avm/c4.c static int c4_poke(avmcard *card, unsigned long off, unsigned long value) off 165 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_PEEK_POKE, off); off 177 drivers/staging/isdn/avm/c4.c static int c4_peek(avmcard *card, unsigned long off, unsigned long *valuep) off 182 drivers/staging/isdn/avm/c4.c c4outmeml(card->mbase + MBOX_PEEK_POKE, off); off 94 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_conf_write(struct file *file, const char __user *buf, size_t count, loff_t *off) off 212 drivers/staging/isdn/hysdn/hysdn_procconf.c hysdn_conf_read(struct file *file, char __user *buf, size_t count, loff_t *off) off 222 drivers/staging/isdn/hysdn/hysdn_procconf.c return simple_read_from_buffer(buf, count, off, cp, strlen(cp)); off 154 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_log_write(struct file *file, const char __user *buf, size_t count, loff_t *off) off 170 drivers/staging/isdn/hysdn/hysdn_proclog.c hysdn_log_read(struct file *file, char __user *buf, size_t count, loff_t *off) off 192 drivers/staging/isdn/hysdn/hysdn_proclog.c *off += len; off 44 drivers/staging/media/sunxi/cedrus/cedrus_h264.c enum cedrus_h264_sram_off off, off 50 drivers/staging/media/sunxi/cedrus/cedrus_h264.c cedrus_write(dev, VE_AVC_SRAM_PORT_OFFSET, off << 2); off 45 drivers/staging/netlogic/xlr_net.c static inline void xlr_reg_update(u32 *base_addr, u32 off, u32 val, u32 mask) off 49 drivers/staging/netlogic/xlr_net.c tmp = xlr_nae_rdreg(base_addr, off); off 50 drivers/staging/netlogic/xlr_net.c xlr_nae_wreg(base_addr, off, (tmp & ~mask) | (val & mask)); off 57 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCXREG2(reg, bid, off) \ off 59 drivers/staging/octeon-usb/octeon-hcd.h (((off) & 7) + ((bid) & 1) * 0x8000000000ull) * 32) off 74 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCX_HCCHARX(off, bid) CVMX_USBCXREG2(0x500, bid, off) off 76 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCX_HCINTMSKX(off, bid) CVMX_USBCXREG2(0x50c, bid, off) off 77 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCX_HCINTX(off, bid) CVMX_USBCXREG2(0x508, bid, off) off 78 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCX_HCSPLTX(off, bid) CVMX_USBCXREG2(0x504, bid, off) off 79 drivers/staging/octeon-usb/octeon-hcd.h #define CVMX_USBCX_HCTSIZX(off, bid) CVMX_USBCXREG2(0x510, bid, off) off 349 drivers/staging/rtl8188eu/include/sta_info.h struct sta_info *rtw_get_stainfo_by_offset(struct sta_priv *stapriv, int off); off 12 drivers/staging/sm750fb/ddk750_power.h #define set_DAC(off) { \ off 14 drivers/staging/sm750fb/ddk750_power.h (peek32(MISC_CTRL) & ~MISC_CTRL_DAC_POWER_OFF) | (off)); \ off 1197 drivers/staging/unisys/visornic/visornic_main.c int cc, currsize, off; off 1273 drivers/staging/unisys/visornic/visornic_main.c off = skb_tail_pointer(skb) - skb->data; off 1307 drivers/staging/unisys/visornic/visornic_main.c currsize = min(skb->len - off, off 1312 drivers/staging/unisys/visornic/visornic_main.c off += currsize; off 1315 drivers/staging/unisys/visornic/visornic_main.c if (skb->len != off) { off 1318 drivers/staging/unisys/visornic/visornic_main.c skb->len, off); off 148 drivers/staging/uwb/uwb-debug.c size_t len, loff_t *off) off 422 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c unsigned int off = offset; off 428 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c size_t bytes = PAGE_SIZE - off; off 439 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c off = 0; off 261 drivers/staging/vme/devices/vme_user.c static loff_t vme_user_llseek(struct file *file, loff_t off, int whence) off 272 drivers/staging/vme/devices/vme_user.c res = fixed_size_llseek(file, off, whence, image_size); off 399 drivers/target/iscsi/iscsi_target_login.c unsigned long mrdsl, off; off 422 drivers/target/iscsi/iscsi_target_login.c off = mrdsl % PAGE_SIZE; off 423 drivers/target/iscsi/iscsi_target_login.c if (!off) off 429 drivers/target/iscsi/iscsi_target_login.c mrdsl -= off; off 1035 drivers/target/loopback/tcm_loop.c int ret, off = 0; off 1053 drivers/target/loopback/tcm_loop.c off = 3; /* Skip over "fc." */ off 1072 drivers/target/loopback/tcm_loop.c snprintf(&tl_hba->tl_wwn_address[0], TL_WWN_ADDR_LEN, "%s", &name[off]); off 62 drivers/target/target_core_alua.c u32 rd_len = 0, off; off 74 drivers/target/target_core_alua.c off = 4; off 85 drivers/target/target_core_alua.c int desc_num = off + 3; off 88 drivers/target/target_core_alua.c off += 4; off 89 drivers/target/target_core_alua.c if (cmd->data_length > off) off 90 drivers/target/target_core_alua.c put_unaligned_be64(map->lba_map_first_lba, &buf[off]); off 91 drivers/target/target_core_alua.c off += 8; off 92 drivers/target/target_core_alua.c if (cmd->data_length > off) off 93 drivers/target/target_core_alua.c put_unaligned_be64(map->lba_map_last_lba, &buf[off]); off 94 drivers/target/target_core_alua.c off += 8; off 102 drivers/target/target_core_alua.c if (cmd->data_length > off) off 103 drivers/target/target_core_alua.c buf[off] = alua_state & 0x0f; off 104 drivers/target/target_core_alua.c off += 2; off 105 drivers/target/target_core_alua.c if (cmd->data_length > off) off 106 drivers/target/target_core_alua.c buf[off] = (alua_pg_id >> 8) & 0xff; off 107 drivers/target/target_core_alua.c off++; off 108 drivers/target/target_core_alua.c if (cmd->data_length > off) off 109 drivers/target/target_core_alua.c buf[off] = (alua_pg_id & 0xff); off 110 drivers/target/target_core_alua.c off++; off 142 drivers/target/target_core_alua.c u32 rd_len = 0, off; off 150 drivers/target/target_core_alua.c off = 8; off 152 drivers/target/target_core_alua.c off = 4; off 154 drivers/target/target_core_alua.c if (cmd->data_length < off) { off 173 drivers/target/target_core_alua.c if ((off + 8 + (tg_pt_gp->tg_pt_gp_members * 4)) > off 183 drivers/target/target_core_alua.c buf[off] = 0x80; off 187 drivers/target/target_core_alua.c buf[off++] |= tg_pt_gp->tg_pt_gp_alua_access_state & 0xff; off 191 drivers/target/target_core_alua.c buf[off++] |= tg_pt_gp->tg_pt_gp_alua_supported_states; off 195 drivers/target/target_core_alua.c put_unaligned_be16(tg_pt_gp->tg_pt_gp_id, &buf[off]); off 196 drivers/target/target_core_alua.c off += 2; off 198 drivers/target/target_core_alua.c off++; /* Skip over Reserved */ off 202 drivers/target/target_core_alua.c buf[off++] = (tg_pt_gp->tg_pt_gp_alua_access_status & 0xff); off 206 drivers/target/target_core_alua.c buf[off++] = 0x00; off 210 drivers/target/target_core_alua.c buf[off++] = (tg_pt_gp->tg_pt_gp_members & 0xff); off 221 drivers/target/target_core_alua.c off += 2; /* Skip over Obsolete */ off 225 drivers/target/target_core_alua.c put_unaligned_be16(lun->lun_rtpi, &buf[off]); off 226 drivers/target/target_core_alua.c off += 2; off 59 drivers/target/target_core_fabric_lib.c u32 off = 8; off 71 drivers/target/target_core_fabric_lib.c ret = hex2bin(&buf[off++], &ptr[i], 1); off 134 drivers/target/target_core_fabric_lib.c u32 off = 4, padding = 0; off 149 drivers/target/target_core_fabric_lib.c len = sprintf(&buf[off], "%s", se_nacl->initiatorname); off 182 drivers/target/target_core_fabric_lib.c buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ off 183 drivers/target/target_core_fabric_lib.c buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ off 184 drivers/target/target_core_fabric_lib.c buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ off 185 drivers/target/target_core_fabric_lib.c buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ off 186 drivers/target/target_core_fabric_lib.c buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ off 188 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[0]; off++; off 189 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[1]; off++; off 190 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[2]; off++; off 191 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[3]; off++; off 192 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[4]; off++; off 193 drivers/target/target_core_fabric_lib.c buf[off+len] = pr_reg->pr_reg_isid[5]; off++; off 194 drivers/target/target_core_fabric_lib.c buf[off+len] = '\0'; off++; off 3698 drivers/target/target_core_pr.c u32 add_len = 0, off = 8; off 3719 drivers/target/target_core_pr.c if (off + 8 <= cmd->data_length) { off 3720 drivers/target/target_core_pr.c put_unaligned_be64(pr_reg->pr_res_key, &buf[off]); off 3721 drivers/target/target_core_pr.c off += 8; off 3886 drivers/target/target_core_pr.c u32 off = 8; /* off into first Full Status descriptor */ off 3943 drivers/target/target_core_pr.c put_unaligned_be64(pr_reg->pr_res_key, &buf[off]); off 3944 drivers/target/target_core_pr.c off += 8; off 3945 drivers/target/target_core_pr.c off += 4; /* Skip Over Reserved area */ off 3951 drivers/target/target_core_pr.c buf[off] = 0x02; off 3961 drivers/target/target_core_pr.c buf[off++] |= 0x01; off 3962 drivers/target/target_core_pr.c buf[off++] = (pr_reg->pr_res_scope & 0xf0) | off 3965 drivers/target/target_core_pr.c buf[off++] |= 0x01; off 3966 drivers/target/target_core_pr.c buf[off++] = (pr_res_scope & 0xf0) | off 3969 drivers/target/target_core_pr.c off += 2; off 3972 drivers/target/target_core_pr.c off += 4; /* Skip over reserved area */ off 3986 drivers/target/target_core_pr.c put_unaligned_be16(sep_rtpi, &buf[off]); off 3987 drivers/target/target_core_pr.c off += 2; off 3989 drivers/target/target_core_pr.c off += 2; /* Skip over RELATIVE TARGET PORT IDENTIFIER */ off 3991 drivers/target/target_core_pr.c buf[off+4] = se_tpg->proto_id; off 3997 drivers/target/target_core_pr.c &format_code, &buf[off+4]); off 4007 drivers/target/target_core_pr.c put_unaligned_be32(desc_len, &buf[off]); off 4008 drivers/target/target_core_pr.c off += 4; off 4018 drivers/target/target_core_pr.c off += desc_len; off 223 drivers/target/target_core_pscsi.c int ident_len, page_len, off = 4, ret; off 245 drivers/target/target_core_pscsi.c page_83 = &buf[off]; off 266 drivers/target/target_core_pscsi.c off += (ident_len + 4); off 272 drivers/target/target_core_pscsi.c off += (ident_len + 4); off 279 drivers/target/target_core_pscsi.c off += (ident_len + 4); off 853 drivers/target/target_core_pscsi.c u32 data_len = cmd->data_length, i, len, bytes, off; off 865 drivers/target/target_core_pscsi.c off = sg->offset; off 869 drivers/target/target_core_pscsi.c page, len, off); off 875 drivers/target/target_core_pscsi.c if (off + len > PAGE_SIZE) off 879 drivers/target/target_core_pscsi.c bytes = min_t(unsigned int, len, PAGE_SIZE - off); off 903 drivers/target/target_core_pscsi.c page, len, off); off 906 drivers/target/target_core_pscsi.c bio, page, bytes, off); off 177 drivers/target/target_core_spc.c u32 unit_serial_len, off = 0; off 180 drivers/target/target_core_spc.c off = 4; off 194 drivers/target/target_core_spc.c buf[off++] = 0x1; off 197 drivers/target/target_core_spc.c buf[off] = 0x00; off 200 drivers/target/target_core_spc.c buf[off++] |= 0x3; off 201 drivers/target/target_core_spc.c off++; off 204 drivers/target/target_core_spc.c buf[off++] = 0x10; off 209 drivers/target/target_core_spc.c buf[off++] = (0x6 << 4); off 214 drivers/target/target_core_spc.c buf[off++] = 0x01; off 215 drivers/target/target_core_spc.c buf[off++] = 0x40; off 216 drivers/target/target_core_spc.c buf[off] = (0x5 << 4); off 223 drivers/target/target_core_spc.c spc_parse_naa_6h_vendor_specific(dev, &buf[off]); off 226 drivers/target/target_core_spc.c off = (len + 4); off 242 drivers/target/target_core_spc.c id_len += sprintf(&buf[off+12], "%s:%s", prod, off 245 drivers/target/target_core_spc.c buf[off] = 0x2; /* ASCII */ off 246 drivers/target/target_core_spc.c buf[off+1] = 0x1; /* T10 Vendor ID */ off 247 drivers/target/target_core_spc.c buf[off+2] = 0x0; off 249 drivers/target/target_core_spc.c memset(&buf[off+4], 0x20, INQUIRY_VENDOR_LEN); off 250 drivers/target/target_core_spc.c memcpy(&buf[off+4], dev->t10_wwn.vendor, off 255 drivers/target/target_core_spc.c buf[off+3] = id_len; off 258 drivers/target/target_core_spc.c off += (id_len + 4); off 275 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; off 276 drivers/target/target_core_spc.c buf[off++] |= 0x1; /* CODE SET == Binary */ off 277 drivers/target/target_core_spc.c buf[off] = 0x80; /* Set PIV=1 */ off 279 drivers/target/target_core_spc.c buf[off] |= 0x10; off 281 drivers/target/target_core_spc.c buf[off++] |= 0x4; off 282 drivers/target/target_core_spc.c off++; /* Skip over Reserved */ off 283 drivers/target/target_core_spc.c buf[off++] = 4; /* DESIGNATOR LENGTH */ off 286 drivers/target/target_core_spc.c off += 2; off 287 drivers/target/target_core_spc.c put_unaligned_be16(lun->lun_rtpi, &buf[off]); off 288 drivers/target/target_core_spc.c off += 2; off 306 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; off 307 drivers/target/target_core_spc.c buf[off++] |= 0x1; /* CODE SET == Binary */ off 308 drivers/target/target_core_spc.c buf[off] = 0x80; /* Set PIV=1 */ off 310 drivers/target/target_core_spc.c buf[off] |= 0x10; off 312 drivers/target/target_core_spc.c buf[off++] |= 0x5; off 313 drivers/target/target_core_spc.c off++; /* Skip over Reserved */ off 314 drivers/target/target_core_spc.c buf[off++] = 4; /* DESIGNATOR LENGTH */ off 315 drivers/target/target_core_spc.c off += 2; /* Skip over Reserved Field */ off 316 drivers/target/target_core_spc.c put_unaligned_be16(tg_pt_gp_id, &buf[off]); off 317 drivers/target/target_core_spc.c off += 2; off 337 drivers/target/target_core_spc.c buf[off++] |= 0x1; /* CODE SET == Binary */ off 339 drivers/target/target_core_spc.c buf[off++] |= 0x6; off 340 drivers/target/target_core_spc.c off++; /* Skip over Reserved */ off 341 drivers/target/target_core_spc.c buf[off++] = 4; /* DESIGNATOR LENGTH */ off 342 drivers/target/target_core_spc.c off += 2; /* Skip over Reserved Field */ off 343 drivers/target/target_core_spc.c put_unaligned_be16(lu_gp_id, &buf[off]); off 344 drivers/target/target_core_spc.c off += 2; off 354 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; off 355 drivers/target/target_core_spc.c buf[off++] |= 0x3; /* CODE SET == UTF-8 */ off 356 drivers/target/target_core_spc.c buf[off] = 0x80; /* Set PIV=1 */ off 358 drivers/target/target_core_spc.c buf[off] |= 0x10; off 360 drivers/target/target_core_spc.c buf[off++] |= 0x8; off 361 drivers/target/target_core_spc.c off += 2; /* Skip over Reserved and length */ off 369 drivers/target/target_core_spc.c scsi_name_len = sprintf(&buf[off], "%s,t,0x%04x", off 386 drivers/target/target_core_spc.c buf[off-1] = scsi_name_len; off 387 drivers/target/target_core_spc.c off += scsi_name_len; off 394 drivers/target/target_core_spc.c buf[off] = tpg->proto_id << 4; off 395 drivers/target/target_core_spc.c buf[off++] |= 0x3; /* CODE SET == UTF-8 */ off 396 drivers/target/target_core_spc.c buf[off] = 0x80; /* Set PIV=1 */ off 398 drivers/target/target_core_spc.c buf[off] |= 0x20; off 400 drivers/target/target_core_spc.c buf[off++] |= 0x8; off 401 drivers/target/target_core_spc.c off += 2; /* Skip over Reserved and length */ off 408 drivers/target/target_core_spc.c scsi_target_len = sprintf(&buf[off], "%s", off 425 drivers/target/target_core_spc.c buf[off-1] = scsi_target_len; off 426 drivers/target/target_core_spc.c off += scsi_target_len; off 1110 drivers/target/target_core_spc.c int off = ten ? 8 : 4; off 1124 drivers/target/target_core_spc.c if (cmd->data_length < off + 2) off 1136 drivers/target/target_core_spc.c page = buf[off] & 0x3f; off 1137 drivers/target/target_core_spc.c subpage = buf[off] & 0x40 ? buf[off + 1] : 0; off 1151 drivers/target/target_core_spc.c if (cmd->data_length < off + length) { off 1156 drivers/target/target_core_spc.c if (memcmp(buf + off, tbuf, length)) off 2638 drivers/target/target_core_user.c loff_t off; off 2681 drivers/target/target_core_user.c off = udev->data_off + start * DATA_BLOCK_SIZE; off 2682 drivers/target/target_core_user.c unmap_mapping_range(udev->inode->i_mapping, off, 0, 1); off 38 drivers/target/target_core_xcopy.c int off = 0; off 40 drivers/target/target_core_xcopy.c buf[off++] = (0x6 << 4); off 41 drivers/target/target_core_xcopy.c buf[off++] = 0x01; off 42 drivers/target/target_core_xcopy.c buf[off++] = 0x40; off 43 drivers/target/target_core_xcopy.c buf[off] = (0x5 << 4); off 45 drivers/target/target_core_xcopy.c spc_parse_naa_6h_vendor_specific(dev, &buf[off]); off 1373 drivers/thermal/tegra/soctherm.c u16 off = ttgs[i]->thermctl_lvl0_offset; off 1375 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); off 1432 drivers/thermal/tegra/soctherm.c u16 off; off 1434 drivers/thermal/tegra/soctherm.c off = THERMCTL_LVL0_UP_STATS; off 1435 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); off 1438 drivers/thermal/tegra/soctherm.c off = THERMCTL_LVL0_DN_STATS; off 1439 drivers/thermal/tegra/soctherm.c r = readl(ts->regs + THERMCTL_LVL_REG(off, level)); off 621 drivers/tty/hvc/hvc_xen.c unsigned int linelen, off = 0; off 635 drivers/tty/hvc/hvc_xen.c while (off < len && NULL != (pos = strchr(string+off, '\n'))) { off 636 drivers/tty/hvc/hvc_xen.c linelen = pos-string+off; off 637 drivers/tty/hvc/hvc_xen.c if (off + linelen > len) off 639 drivers/tty/hvc/hvc_xen.c domU_write_console(0, string+off, linelen); off 641 drivers/tty/hvc/hvc_xen.c off += linelen + 1; off 643 drivers/tty/hvc/hvc_xen.c if (off < len) off 644 drivers/tty/hvc/hvc_xen.c domU_write_console(0, string+off, len-off); off 319 drivers/tty/serial/fsl_lpuart.c static inline u32 lpuart32_read(struct uart_port *port, u32 off) off 323 drivers/tty/serial/fsl_lpuart.c return readl(port->membase + off); off 325 drivers/tty/serial/fsl_lpuart.c return ioread32be(port->membase + off); off 332 drivers/tty/serial/fsl_lpuart.c u32 off) off 336 drivers/tty/serial/fsl_lpuart.c writel(val, port->membase + off); off 339 drivers/tty/serial/fsl_lpuart.c iowrite32be(val, port->membase + off); off 84 drivers/tty/serial/mps2-uart.c static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) off 88 drivers/tty/serial/mps2-uart.c writeb(val, mps_port->port.membase + off); off 91 drivers/tty/serial/mps2-uart.c static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) off 95 drivers/tty/serial/mps2-uart.c return readb(mps_port->port.membase + off); off 98 drivers/tty/serial/mps2-uart.c static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) off 102 drivers/tty/serial/mps2-uart.c writel_relaxed(val, mps_port->port.membase + off); off 190 drivers/tty/serial/msm_serial.c void msm_write(struct uart_port *port, unsigned int val, unsigned int off) off 192 drivers/tty/serial/msm_serial.c writel_relaxed(val, port->membase + off); off 196 drivers/tty/serial/msm_serial.c unsigned int msm_read(struct uart_port *port, unsigned int off) off 198 drivers/tty/serial/msm_serial.c return readl_relaxed(port->membase + off); off 80 drivers/tty/serial/owl-uart.c static inline void owl_uart_write(struct uart_port *port, u32 val, unsigned int off) off 82 drivers/tty/serial/owl-uart.c writel(val, port->membase + off); off 85 drivers/tty/serial/owl-uart.c static inline u32 owl_uart_read(struct uart_port *port, unsigned int off) off 87 drivers/tty/serial/owl-uart.c return readl(port->membase + off); off 126 drivers/tty/serial/rda-uart.c unsigned int off) off 128 drivers/tty/serial/rda-uart.c writel(val, port->membase + off); off 131 drivers/tty/serial/rda-uart.c static inline u32 rda_uart_read(struct uart_port *port, unsigned int off) off 133 drivers/tty/serial/rda-uart.c return readl(port->membase + off); off 67 drivers/tty/serial/suncore.c int off = 0; off 71 drivers/tty/serial/suncore.c off = 1; off 73 drivers/tty/serial/suncore.c if ((line & 1) != off) off 116 drivers/tty/serial/vt8500_serial.c unsigned int off) off 118 drivers/tty/serial/vt8500_serial.c writel(val, port->membase + off); off 121 drivers/tty/serial/vt8500_serial.c static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) off 123 drivers/tty/serial/vt8500_serial.c return readl(port->membase + off); off 884 drivers/usb/core/sysfs.c char *buf, loff_t off, size_t count) off 907 drivers/usb/core/sysfs.c if (off < srclen) { off 908 drivers/usb/core/sysfs.c n = min(nleft, srclen - (size_t) off); off 909 drivers/usb/core/sysfs.c memcpy(buf, src + off, n); off 912 drivers/usb/core/sysfs.c off = 0; off 914 drivers/usb/core/sysfs.c off -= srclen; off 60 drivers/usb/gadget/u_os_desc.h static inline u8 *usb_ext_prop_data_len_ptr(u8 *buf, size_t off) off 63 drivers/usb/gadget/u_os_desc.h USB_EXT_PROP_DW_PROPERTY_DATA_LENGTH + off); off 66 drivers/usb/gadget/u_os_desc.h static inline u8 *usb_ext_prop_data_ptr(u8 *buf, size_t off) off 68 drivers/usb/gadget/u_os_desc.h return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_DATA + off); off 354 drivers/usb/gadget/udc/bcm63xx_udc.c static inline u32 usbd_readl(struct bcm63xx_udc *udc, u32 off) off 356 drivers/usb/gadget/udc/bcm63xx_udc.c return bcm_readl(udc->usbd_regs + off); off 359 drivers/usb/gadget/udc/bcm63xx_udc.c static inline void usbd_writel(struct bcm63xx_udc *udc, u32 val, u32 off) off 361 drivers/usb/gadget/udc/bcm63xx_udc.c bcm_writel(val, udc->usbd_regs + off); off 364 drivers/usb/gadget/udc/bcm63xx_udc.c static inline u32 usb_dma_readl(struct bcm63xx_udc *udc, u32 off) off 366 drivers/usb/gadget/udc/bcm63xx_udc.c return bcm_readl(udc->iudma_regs + off); off 369 drivers/usb/gadget/udc/bcm63xx_udc.c static inline void usb_dma_writel(struct bcm63xx_udc *udc, u32 val, u32 off) off 371 drivers/usb/gadget/udc/bcm63xx_udc.c bcm_writel(val, udc->iudma_regs + off); off 374 drivers/usb/gadget/udc/bcm63xx_udc.c static inline u32 usb_dmac_readl(struct bcm63xx_udc *udc, u32 off, int chan) off 376 drivers/usb/gadget/udc/bcm63xx_udc.c return bcm_readl(udc->iudma_regs + IUDMA_DMAC_OFFSET + off + off 380 drivers/usb/gadget/udc/bcm63xx_udc.c static inline void usb_dmac_writel(struct bcm63xx_udc *udc, u32 val, u32 off, off 383 drivers/usb/gadget/udc/bcm63xx_udc.c bcm_writel(val, udc->iudma_regs + IUDMA_DMAC_OFFSET + off + off 387 drivers/usb/gadget/udc/bcm63xx_udc.c static inline u32 usb_dmas_readl(struct bcm63xx_udc *udc, u32 off, int chan) off 389 drivers/usb/gadget/udc/bcm63xx_udc.c return bcm_readl(udc->iudma_regs + IUDMA_DMAS_OFFSET + off + off 393 drivers/usb/gadget/udc/bcm63xx_udc.c static inline void usb_dmas_writel(struct bcm63xx_udc *udc, u32 val, u32 off, off 396 drivers/usb/gadget/udc/bcm63xx_udc.c bcm_writel(val, udc->iudma_regs + IUDMA_DMAS_OFFSET + off + off 25 drivers/usb/host/ehci-orion.c #define rdl(off) readl_relaxed(hcd->regs + (off)) off 26 drivers/usb/host/ehci-orion.c #define wrl(off, val) writel_relaxed((val), hcd->regs + (off)) off 586 drivers/usb/host/uhci-debug.c static loff_t uhci_debug_lseek(struct file *file, loff_t off, int whence) off 589 drivers/usb/host/uhci-debug.c return no_seek_end_llseek_size(file, off, whence, up->size); off 228 drivers/usb/misc/legousbtower.c static loff_t tower_llseek (struct file *file, loff_t off, int whence); off 526 drivers/usb/misc/legousbtower.c static loff_t tower_llseek (struct file *file, loff_t off, int whence) off 230 drivers/usb/mon/mon_bin.c unsigned int off, const unsigned char *from, unsigned int length) off 241 drivers/usb/mon/mon_bin.c in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); off 248 drivers/usb/mon/mon_bin.c buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; off 250 drivers/usb/mon/mon_bin.c if ((off += step_len) >= this->b_size) off = 0; off 254 drivers/usb/mon/mon_bin.c return off; off 261 drivers/usb/mon/mon_bin.c static int copy_from_buf(const struct mon_reader_bin *this, unsigned int off, off 273 drivers/usb/mon/mon_bin.c in_page = CHUNK_SIZE - (off & (CHUNK_SIZE-1)); off 280 drivers/usb/mon/mon_bin.c buf = this->b_vec[off / CHUNK_SIZE].ptr + off % CHUNK_SIZE; off 283 drivers/usb/mon/mon_bin.c if ((off += step_len) >= this->b_size) off = 0; off 71 drivers/usb/usbip/vudc_sysfs.c loff_t off, size_t count) off 85 drivers/usb/usbip/vudc_sysfs.c memcpy(out, desc_ptr + off, count); off 378 drivers/vfio/pci/vfio_pci_config.c static inline void p_setb(struct perm_bits *p, int off, u8 virt, u8 write) off 380 drivers/vfio/pci/vfio_pci_config.c p->virt[off] = virt; off 381 drivers/vfio/pci/vfio_pci_config.c p->write[off] = write; off 385 drivers/vfio/pci/vfio_pci_config.c static inline void p_setw(struct perm_bits *p, int off, u16 virt, u16 write) off 387 drivers/vfio/pci/vfio_pci_config.c *(__le16 *)(&p->virt[off]) = cpu_to_le16(virt); off 388 drivers/vfio/pci/vfio_pci_config.c *(__le16 *)(&p->write[off]) = cpu_to_le16(write); off 392 drivers/vfio/pci/vfio_pci_config.c static inline void p_setd(struct perm_bits *p, int off, u32 virt, u32 write) off 394 drivers/vfio/pci/vfio_pci_config.c *(__le32 *)(&p->virt[off]) = cpu_to_le32(virt); off 395 drivers/vfio/pci/vfio_pci_config.c *(__le32 *)(&p->write[off]) = cpu_to_le32(write); off 21 drivers/vfio/pci/vfio_pci_private.h #define VFIO_PCI_OFFSET_TO_INDEX(off) (off >> VFIO_PCI_OFFSET_SHIFT) off 47 drivers/vfio/pci/vfio_pci_rdwr.c loff_t off, size_t count, size_t x_start, off 55 drivers/vfio/pci/vfio_pci_rdwr.c if (off < x_start) off 56 drivers/vfio/pci/vfio_pci_rdwr.c fillable = min(count, (size_t)(x_start - off)); off 57 drivers/vfio/pci/vfio_pci_rdwr.c else if (off >= x_end) off 62 drivers/vfio/pci/vfio_pci_rdwr.c if (fillable >= 4 && !(off % 4)) { off 69 drivers/vfio/pci/vfio_pci_rdwr.c vfio_iowrite32(val, io + off); off 71 drivers/vfio/pci/vfio_pci_rdwr.c val = vfio_ioread32(io + off); off 78 drivers/vfio/pci/vfio_pci_rdwr.c } else if (fillable >= 2 && !(off % 2)) { off 85 drivers/vfio/pci/vfio_pci_rdwr.c vfio_iowrite16(val, io + off); off 87 drivers/vfio/pci/vfio_pci_rdwr.c val = vfio_ioread16(io + off); off 101 drivers/vfio/pci/vfio_pci_rdwr.c vfio_iowrite8(val, io + off); off 103 drivers/vfio/pci/vfio_pci_rdwr.c val = vfio_ioread8(io + off); off 112 drivers/vfio/pci/vfio_pci_rdwr.c filled = min(count, (size_t)(x_end - off)); off 125 drivers/vfio/pci/vfio_pci_rdwr.c off += filled; off 218 drivers/vfio/pci/vfio_pci_rdwr.c loff_t off, pos = *ppos & VFIO_PCI_OFFSET_MASK; off 234 drivers/vfio/pci/vfio_pci_rdwr.c off = pos - 0xa0000; off 241 drivers/vfio/pci/vfio_pci_rdwr.c off = pos - 0x3b0; off 248 drivers/vfio/pci/vfio_pci_rdwr.c off = pos - 0x3c0; off 265 drivers/vfio/pci/vfio_pci_rdwr.c done = do_io_rw(iomem, buf, off, count, 0, 0, iswrite); off 406 drivers/vfio/platform/vfio_platform_common.c loff_t off) off 421 drivers/vfio/platform/vfio_platform_common.c if (count >= 4 && !(off % 4)) { off 424 drivers/vfio/platform/vfio_platform_common.c val = ioread32(reg->ioaddr + off); off 429 drivers/vfio/platform/vfio_platform_common.c } else if (count >= 2 && !(off % 2)) { off 432 drivers/vfio/platform/vfio_platform_common.c val = ioread16(reg->ioaddr + off); off 440 drivers/vfio/platform/vfio_platform_common.c val = ioread8(reg->ioaddr + off); off 450 drivers/vfio/platform/vfio_platform_common.c off += filled; off 464 drivers/vfio/platform/vfio_platform_common.c loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; off 474 drivers/vfio/platform/vfio_platform_common.c buf, count, off); off 483 drivers/vfio/platform/vfio_platform_common.c loff_t off) off 498 drivers/vfio/platform/vfio_platform_common.c if (count >= 4 && !(off % 4)) { off 503 drivers/vfio/platform/vfio_platform_common.c iowrite32(val, reg->ioaddr + off); off 506 drivers/vfio/platform/vfio_platform_common.c } else if (count >= 2 && !(off % 2)) { off 511 drivers/vfio/platform/vfio_platform_common.c iowrite16(val, reg->ioaddr + off); off 519 drivers/vfio/platform/vfio_platform_common.c iowrite8(val, reg->ioaddr + off); off 526 drivers/vfio/platform/vfio_platform_common.c off += filled; off 540 drivers/vfio/platform/vfio_platform_common.c loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; off 550 drivers/vfio/platform/vfio_platform_common.c buf, count, off); off 16 drivers/vfio/platform/vfio_platform_private.h #define VFIO_PLATFORM_OFFSET_TO_INDEX(off) \ off 17 drivers/vfio/platform/vfio_platform_private.h (off >> VFIO_PLATFORM_OFFSET_SHIFT) off 2210 drivers/vhost/scsi.c int off = 0; off 2233 drivers/vhost/scsi.c off = 3; /* Skip over "fc." */ off 2255 drivers/vhost/scsi.c snprintf(&tport->tport_name[0], VHOST_SCSI_NAMELEN, "%s", &name[off]); off 413 drivers/vhost/vringh.c u16 used_idx, off; off 418 drivers/vhost/vringh.c off = used_idx % vrh->vring.num; off 421 drivers/vhost/vringh.c if (num_used > 1 && unlikely(off + num_used >= vrh->vring.num)) { off 422 drivers/vhost/vringh.c u16 part = vrh->vring.num - off; off 423 drivers/vhost/vringh.c err = putused(&used_ring->ring[off], used, part); off 428 drivers/vhost/vringh.c err = putused(&used_ring->ring[off], used, num_used); off 432 drivers/vhost/vringh.c num_used, off, &used_ring->ring[off]); off 158 drivers/vhost/vsock.c payload_len = pkt->len - pkt->off; off 176 drivers/vhost/vsock.c nbytes = copy_to_iter(pkt->buf + pkt->off, payload_len, off 192 drivers/vhost/vsock.c pkt->off += payload_len; off 198 drivers/vhost/vsock.c if (pkt->off < pkt->len) { off 438 drivers/video/fbdev/acornfb.c u_int off = var->yoffset * info->fix.line_length; off 441 drivers/video/fbdev/acornfb.c memc_write(VDMA_INIT, off >> 2); off 443 drivers/video/fbdev/acornfb.c iomd_writel(info->fix.smem_start + off, IOMD_VIDINIT); off 414 drivers/video/fbdev/amba-clcd.c unsigned long len, off = vma->vm_pgoff << PAGE_SHIFT; off 419 drivers/video/fbdev/amba-clcd.c if (off <= len && vma->vm_end - vma->vm_start <= len - off && off 789 drivers/video/fbdev/amba-clcd.c unsigned long off, user_size, kernel_size; off 792 drivers/video/fbdev/amba-clcd.c off = vma->vm_pgoff << PAGE_SHIFT; off 796 drivers/video/fbdev/amba-clcd.c if (off >= kernel_size || user_size > (kernel_size - off)) off 217 drivers/video/fbdev/atafb_iplan2p2.c u32 off = next_line - rows * BPL * 2; off 220 drivers/video/fbdev/atafb_iplan2p2.c d = (u32 *)((long)d + off); off 231 drivers/video/fbdev/atafb_iplan2p4.c u32 off = next_line - rows * BPL * 2; off 234 drivers/video/fbdev/atafb_iplan2p4.c d = (u32 *)((long)d + off); off 266 drivers/video/fbdev/atafb_iplan2p8.c u32 off = next_line - rows * BPL * 2; off 269 drivers/video/fbdev/atafb_iplan2p8.c d = (u32 *)((long)d + off); off 1922 drivers/video/fbdev/aty/atyfb_base.c unsigned long off; off 1931 drivers/video/fbdev/aty/atyfb_base.c off = vma->vm_pgoff << PAGE_SHIFT; off 1937 drivers/video/fbdev/aty/atyfb_base.c ((off == info->fix.smem_len) && (size == PAGE_SIZE))) off 1938 drivers/video/fbdev/aty/atyfb_base.c off += 0x8000000000000000UL; off 1940 drivers/video/fbdev/aty/atyfb_base.c vma->vm_pgoff = off >> PAGE_SHIFT; /* propagate off changes */ off 1948 drivers/video/fbdev/aty/atyfb_base.c unsigned long offset = off + page; off 2209 drivers/video/fbdev/aty/radeon_base.c static ssize_t radeon_show_one_edid(char *buf, loff_t off, size_t count, const u8 *edid) off 2211 drivers/video/fbdev/aty/radeon_base.c return memory_read_from_buffer(buf, count, &off, edid, EDID_LENGTH); off 2217 drivers/video/fbdev/aty/radeon_base.c char *buf, loff_t off, size_t count) off 2223 drivers/video/fbdev/aty/radeon_base.c return radeon_show_one_edid(buf, off, count, rinfo->mon1_EDID); off 2229 drivers/video/fbdev/aty/radeon_base.c char *buf, loff_t off, size_t count) off 2235 drivers/video/fbdev/aty/radeon_base.c return radeon_show_one_edid(buf, off, count, rinfo->mon2_EDID); off 553 drivers/video/fbdev/core/fbsysfs.c void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max) off 559 drivers/video/fbdev/core/fbsysfs.c fb_info->bl_curve[0] = off; off 123 drivers/video/fbdev/ep93xx-fb.c unsigned int off) off 125 drivers/video/fbdev/ep93xx-fb.c return __raw_readl(fbi->mmio_base + off); off 129 drivers/video/fbdev/ep93xx-fb.c unsigned int val, unsigned int off) off 131 drivers/video/fbdev/ep93xx-fb.c __raw_writel(val, fbi->mmio_base + off); off 748 drivers/video/fbdev/imsttfb.c __u32 off = var->yoffset * (info->fix.line_length >> 3) off 750 drivers/video/fbdev/imsttfb.c write_reg_le32(par->dc_regs, SSR, off); off 112 drivers/video/fbdev/mb862xx/mb862xxfb.h #define inreg(type, off) \ off 113 drivers/video/fbdev/mb862xx/mb862xxfb.h gdc_read((par->type + (off))) off 115 drivers/video/fbdev/mb862xx/mb862xxfb.h #define outreg(type, off, val) \ off 116 drivers/video/fbdev/mb862xx/mb862xxfb.h gdc_write((val), (par->type + (off))) off 144 drivers/video/fbdev/pm2fb.c static inline u32 pm2_RD(struct pm2fb_par *p, s32 off) off 146 drivers/video/fbdev/pm2fb.c return fb_readl(p->v_regs + off); off 149 drivers/video/fbdev/pm2fb.c static inline void pm2_WR(struct pm2fb_par *p, s32 off, u32 v) off 151 drivers/video/fbdev/pm2fb.c fb_writel(v, p->v_regs + off); off 94 drivers/video/fbdev/pm3fb.c static inline u32 PM3_READ_REG(struct pm3_par *par, s32 off) off 96 drivers/video/fbdev/pm3fb.c return fb_readl(par->v_regs + off); off 99 drivers/video/fbdev/pm3fb.c static inline void PM3_WRITE_REG(struct pm3_par *par, s32 off, u32 v) off 101 drivers/video/fbdev/pm3fb.c fb_writel(v, par->v_regs + off); off 105 drivers/video/fbdev/pxa3xx-gcu.c gc_readl(struct pxa3xx_gcu_priv *priv, unsigned int off) off 107 drivers/video/fbdev/pxa3xx-gcu.c return __raw_readl(priv->mmio_base + off); off 111 drivers/video/fbdev/pxa3xx-gcu.c gc_writel(struct pxa3xx_gcu_priv *priv, unsigned int off, unsigned long val) off 113 drivers/video/fbdev/pxa3xx-gcu.c __raw_writel(val, priv->mmio_base + off); off 96 drivers/video/fbdev/pxafb.c lcd_readl(struct pxafb_info *fbi, unsigned int off) off 98 drivers/video/fbdev/pxafb.c return __raw_readl(fbi->mmio_base + off); off 102 drivers/video/fbdev/pxafb.c lcd_writel(struct pxafb_info *fbi, unsigned int off, unsigned long val) off 104 drivers/video/fbdev/pxafb.c __raw_writel(val, fbi->mmio_base + off); off 564 drivers/video/fbdev/sa1100fb.c unsigned long off = vma->vm_pgoff << PAGE_SHIFT; off 566 drivers/video/fbdev/sa1100fb.c if (off < info->fix.smem_len) { off 49 drivers/video/fbdev/sbuslib.c unsigned long off; off 59 drivers/video/fbdev/sbuslib.c off = vma->vm_pgoff << PAGE_SHIFT; off 69 drivers/video/fbdev/sbuslib.c if (map[i].voff == off+page) { off 8282 drivers/video/fbdev/sis/init301.c SiS_SetCH70xxANDOR(SiS_Pr,0x21,0x00,0xFE); * ACIV off, need to set FSCI */ off 1460 drivers/video/fbdev/udlfb.c char *buf, loff_t off, size_t count) { off 1468 drivers/video/fbdev/udlfb.c if ((off >= dlfb->edid_size) || (count > dlfb->edid_size)) off 1471 drivers/video/fbdev/udlfb.c if (off + count > dlfb->edid_size) off 1472 drivers/video/fbdev/udlfb.c count = dlfb->edid_size - off; off 478 drivers/video/fbdev/uvesafb.c int off = 0, err; off 506 drivers/video/fbdev/uvesafb.c task->buf = par->vbe_modes + off; off 527 drivers/video/fbdev/uvesafb.c off++; off 204 drivers/video/fbdev/vt8500lcdfb.c unsigned off = pixlen * var->xoffset off 210 drivers/video/fbdev/vt8500lcdfb.c | (off >> 2), fbi->regbase + 0x20); off 595 drivers/virt/fsl_hypervisor.c loff_t *off) off 65 drivers/virtio/virtio_pci_modern.c static void __iomem *map_capability(struct pci_dev *dev, int off, off 75 drivers/virtio/virtio_pci_modern.c pci_read_config_byte(dev, off + offsetof(struct virtio_pci_cap, off 78 drivers/virtio/virtio_pci_modern.c pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, offset), off 80 drivers/virtio/virtio_pci_modern.c pci_read_config_dword(dev, off + offsetof(struct virtio_pci_cap, length), off 316 drivers/virtio/virtio_pci_modern.c u16 num, off; off 336 drivers/virtio/virtio_pci_modern.c off = vp_ioread16(&cfg->queue_notify_off); off 359 drivers/virtio/virtio_pci_modern.c if ((u64)off * vp_dev->notify_offset_multiplier + 2 off 364 drivers/virtio/virtio_pci_modern.c off, vp_dev->notify_offset_multiplier, off 370 drivers/virtio/virtio_pci_modern.c off * vp_dev->notify_offset_multiplier; off 374 drivers/virtio/virtio_pci_modern.c off * vp_dev->notify_offset_multiplier, 2, off 442 drivers/visorbus/visorbus_main.c unsigned long off; off 463 drivers/visorbus/visorbus_main.c off = offsetof(struct visor_vbus_channel, dev_info); off 464 drivers/visorbus/visorbus_main.c while (off + sizeof(dev_info) <= visorchannel_get_nbytes(channel)) { off 465 drivers/visorbus/visorbus_main.c if (visorchannel_read(channel, off, &dev_info, off 468 drivers/visorbus/visorbus_main.c off += sizeof(dev_info); off 756 drivers/visorbus/visorbus_main.c int off; off 761 drivers/visorbus/visorbus_main.c off = sizeof(struct channel_header) + hdr_info->chp_info_offset; off 762 drivers/visorbus/visorbus_main.c visorchannel_write(chan, off, info, sizeof(*info)); off 782 drivers/visorbus/visorbus_main.c int off; off 787 drivers/visorbus/visorbus_main.c off = sizeof(struct channel_header) + hdr_info->bus_info_offset; off 788 drivers/visorbus/visorbus_main.c visorchannel_write(chan, off, info, sizeof(*info)); off 810 drivers/visorbus/visorbus_main.c int off; off 814 drivers/visorbus/visorbus_main.c off = (sizeof(struct channel_header) + hdr_info->dev_info_offset) + off 816 drivers/visorbus/visorbus_main.c visorchannel_write(chan, off, info, sizeof(*info)); off 552 drivers/vlynq/vlynq.c ops->off(dev); off 567 drivers/vlynq/vlynq.c ops->off(dev); off 581 drivers/vlynq/vlynq.c ops->off(dev); off 730 drivers/vlynq/vlynq.c ((struct plat_vlynq_ops *)(dev->dev.platform_data))->off(dev); off 213 drivers/w1/masters/ds2490.c static inline void ds_print_msg(unsigned char *buf, unsigned char *str, int off) off 215 drivers/w1/masters/ds2490.c pr_info("%45s: %8x\n", str, buf[off]); off 28 drivers/w1/slaves/w1_ds2406.c char *buf, loff_t off, size_t count) off 36 drivers/w1/slaves/w1_ds2406.c if (off != 0) off 65 drivers/w1/slaves/w1_ds2406.c char *buf, loff_t off, size_t count) off 73 drivers/w1/slaves/w1_ds2406.c if (count != 1 || off != 0) off 68 drivers/w1/slaves/w1_ds2408.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 73 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); off 74 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 81 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 85 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); off 86 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 94 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 98 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); off 99 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 107 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 111 drivers/w1/slaves/w1_ds2408.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); off 112 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 121 drivers/w1/slaves/w1_ds2408.c char *buf, loff_t off, size_t count) off 123 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 131 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 133 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 164 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 171 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 214 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 219 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 244 drivers/w1/slaves/w1_ds2408.c loff_t off, size_t count) off 250 drivers/w1/slaves/w1_ds2408.c if (count != 1 || off != 0) off 28 drivers/w1/slaves/w1_ds2413.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 38 drivers/w1/slaves/w1_ds2413.c bin_attr->attr.name, kobj, (unsigned int)off, count, buf); off 40 drivers/w1/slaves/w1_ds2413.c if (off != 0) off 85 drivers/w1/slaves/w1_ds2413.c loff_t off, size_t count) off 92 drivers/w1/slaves/w1_ds2413.c if (count != 1 || off != 0) off 46 drivers/w1/slaves/w1_ds2431.c static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) off 48 drivers/w1/slaves/w1_ds2431.c if (off > size) off 51 drivers/w1/slaves/w1_ds2431.c if ((off + count) > size) off 52 drivers/w1/slaves/w1_ds2431.c return size - off; off 64 drivers/w1/slaves/w1_ds2431.c static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) off 72 drivers/w1/slaves/w1_ds2431.c wrbuf[1] = off & 0xff; off 73 drivers/w1/slaves/w1_ds2431.c wrbuf[2] = off >> 8; off 99 drivers/w1/slaves/w1_ds2431.c loff_t off, size_t count) off 104 drivers/w1/slaves/w1_ds2431.c count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); off 119 drivers/w1/slaves/w1_ds2431.c if (w1_f2d_readblock(sl, off, block_read, buf) < 0) off 124 drivers/w1/slaves/w1_ds2431.c off += W1_F2D_READ_MAXLEN; off 205 drivers/w1/slaves/w1_ds2431.c loff_t off, size_t count) off 211 drivers/w1/slaves/w1_ds2431.c count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); off 218 drivers/w1/slaves/w1_ds2431.c addr = off; off 49 drivers/w1/slaves/w1_ds2433.c static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) off 51 drivers/w1/slaves/w1_ds2433.c if (off > size) off 54 drivers/w1/slaves/w1_ds2433.c if ((off + count) > size) off 55 drivers/w1/slaves/w1_ds2433.c return (size - off); off 65 drivers/w1/slaves/w1_ds2433.c int off = block * W1_PAGE_SIZE; off 76 drivers/w1/slaves/w1_ds2433.c wrbuf[1] = off & 0xff; off 77 drivers/w1/slaves/w1_ds2433.c wrbuf[2] = off >> 8; off 79 drivers/w1/slaves/w1_ds2433.c w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); off 82 drivers/w1/slaves/w1_ds2433.c if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) off 91 drivers/w1/slaves/w1_ds2433.c loff_t off, size_t count) off 101 drivers/w1/slaves/w1_ds2433.c if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) off 108 drivers/w1/slaves/w1_ds2433.c min_page = (off >> W1_PAGE_BITS); off 109 drivers/w1/slaves/w1_ds2433.c max_page = (off + count - 1) >> W1_PAGE_BITS; off 116 drivers/w1/slaves/w1_ds2433.c memcpy(buf, &data->memory[off], count); off 127 drivers/w1/slaves/w1_ds2433.c wrbuf[1] = off & 0xff; off 128 drivers/w1/slaves/w1_ds2433.c wrbuf[2] = off >> 8; off 205 drivers/w1/slaves/w1_ds2433.c loff_t off, size_t count) off 210 drivers/w1/slaves/w1_ds2433.c if ((count = w1_f23_fix_count(off, count, W1_EEPROM_SIZE)) == 0) off 215 drivers/w1/slaves/w1_ds2433.c if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { off 217 drivers/w1/slaves/w1_ds2433.c (int)off, count); off 224 drivers/w1/slaves/w1_ds2433.c dev_err(&sl->dev, "bad CRC at offset %d\n", (int)off); off 235 drivers/w1/slaves/w1_ds2433.c addr = off + idx; off 257 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 262 drivers/w1/slaves/w1_ds2438.c if (count != 1 || off != 0) off 279 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 285 drivers/w1/slaves/w1_ds2438.c if (off != 0) off 300 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 306 drivers/w1/slaves/w1_ds2438.c if (off != 0) off 330 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 336 drivers/w1/slaves/w1_ds2438.c if (off != 0) off 351 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 357 drivers/w1/slaves/w1_ds2438.c if (off != 0) off 372 drivers/w1/slaves/w1_ds2438.c loff_t off, size_t count) off 378 drivers/w1/slaves/w1_ds2438.c if (off != 0) off 33 drivers/w1/slaves/w1_ds250x.c #define OFF2PG(off) ((off) / W1_PAGE_SIZE) off 140 drivers/w1/slaves/w1_ds250x.c static int w1_nvmem_read(void *priv, unsigned int off, void *buf, size_t count) off 148 drivers/w1/slaves/w1_ds250x.c if (off > eprom_size) off 151 drivers/w1/slaves/w1_ds250x.c if ((off + count) > eprom_size) off 152 drivers/w1/slaves/w1_ds250x.c count = eprom_size - off; off 154 drivers/w1/slaves/w1_ds250x.c i = OFF2PG(off); off 159 drivers/w1/slaves/w1_ds250x.c } while (i < OFF2PG(off + count)); off 161 drivers/w1/slaves/w1_ds250x.c memcpy(buf, &data->eprom[off], count); off 91 drivers/w1/slaves/w1_ds2780.c loff_t off, size_t count) off 94 drivers/w1/slaves/w1_ds2780.c return w1_ds2780_io(dev, buf, off, count, 0); off 88 drivers/w1/slaves/w1_ds2781.c loff_t off, size_t count) off 91 drivers/w1/slaves/w1_ds2781.c return w1_ds2781_io(dev, buf, off, count, 0); off 43 drivers/w1/slaves/w1_ds2805.c static inline size_t w1_f0d_fix_count(loff_t off, size_t count, size_t size) off 45 drivers/w1/slaves/w1_ds2805.c if (off > size) off 48 drivers/w1/slaves/w1_ds2805.c if ((off + count) > size) off 49 drivers/w1/slaves/w1_ds2805.c return size - off; off 61 drivers/w1/slaves/w1_ds2805.c static int w1_f0d_readblock(struct w1_slave *sl, int off, int count, char *buf) off 69 drivers/w1/slaves/w1_ds2805.c wrbuf[1] = off & 0x7f; off 96 drivers/w1/slaves/w1_ds2805.c char *buf, loff_t off, size_t count) off 101 drivers/w1/slaves/w1_ds2805.c count = w1_f0d_fix_count(off, count, W1_F0D_EEPROM_SIZE); off 116 drivers/w1/slaves/w1_ds2805.c if (w1_f0d_readblock(sl, off, block_read, buf) < 0) { off 123 drivers/w1/slaves/w1_ds2805.c off += W1_F0D_READ_MAXLEN; off 204 drivers/w1/slaves/w1_ds2805.c char *buf, loff_t off, size_t count) off 210 drivers/w1/slaves/w1_ds2805.c count = w1_f0d_fix_count(off, count, W1_F0D_EEPROM_SIZE); off 217 drivers/w1/slaves/w1_ds2805.c addr = off; off 60 drivers/w1/slaves/w1_ds28e04.c static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) off 62 drivers/w1/slaves/w1_ds28e04.c if (off > size) off 65 drivers/w1/slaves/w1_ds28e04.c if ((off + count) > size) off 66 drivers/w1/slaves/w1_ds28e04.c return size - off; off 75 drivers/w1/slaves/w1_ds28e04.c int off = block * W1_PAGE_SIZE; off 86 drivers/w1/slaves/w1_ds28e04.c wrbuf[1] = off & 0xff; off 87 drivers/w1/slaves/w1_ds28e04.c wrbuf[2] = off >> 8; off 89 drivers/w1/slaves/w1_ds28e04.c w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); off 92 drivers/w1/slaves/w1_ds28e04.c if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) off 116 drivers/w1/slaves/w1_ds28e04.c loff_t off, size_t count) off 122 drivers/w1/slaves/w1_ds28e04.c count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); off 129 drivers/w1/slaves/w1_ds28e04.c min_page = (off >> W1_PAGE_BITS); off 130 drivers/w1/slaves/w1_ds28e04.c max_page = (off + count - 1) >> W1_PAGE_BITS; off 137 drivers/w1/slaves/w1_ds28e04.c memcpy(buf, &data->memory[off], count); off 139 drivers/w1/slaves/w1_ds28e04.c count = w1_f1C_read(sl, off, count, buf); off 224 drivers/w1/slaves/w1_ds28e04.c loff_t off, size_t count) off 230 drivers/w1/slaves/w1_ds28e04.c count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); off 236 drivers/w1/slaves/w1_ds28e04.c if ((off & W1_PAGE_MASK) || (count & W1_PAGE_MASK)) { off 238 drivers/w1/slaves/w1_ds28e04.c (int)off, count); off 247 drivers/w1/slaves/w1_ds28e04.c (int)off); off 258 drivers/w1/slaves/w1_ds28e04.c addr = off + idx; off 279 drivers/w1/slaves/w1_ds28e04.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 287 drivers/w1/slaves/w1_ds28e04.c if (off != 0 || count != 1 || buf == NULL) off 298 drivers/w1/slaves/w1_ds28e04.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 307 drivers/w1/slaves/w1_ds28e04.c if (off != 0 || count != 1 || buf == NULL) off 117 drivers/w1/w1.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 136 drivers/w1/w1.c struct bin_attribute *bin_attr, char *buf, loff_t off, off 927 drivers/xen/gntdev.c size_t len, off; off 949 drivers/xen/gntdev.c off = (unsigned long)virt & ~XEN_PAGE_MASK; off 950 drivers/xen/gntdev.c len = min(len, (size_t)XEN_PAGE_SIZE - off); off 958 drivers/xen/gntdev.c op->source.offset = off; off 968 drivers/xen/gntdev.c off = (unsigned long)virt & ~XEN_PAGE_MASK; off 969 drivers/xen/gntdev.c len = min(len, (size_t)XEN_PAGE_SIZE - off); off 977 drivers/xen/gntdev.c op->dest.offset = off; off 107 drivers/xen/mcelog.c size_t usize, loff_t *off) off 119 drivers/xen/mcelog.c if (*off != 0 || usize < XEN_MCE_LOG_LEN*sizeof(struct xen_mce)) off 29 drivers/xen/xen-acpi-processor.c MODULE_PARM_DESC(off, "Inhibit the hypercall."); off 30 drivers/xen/xen-acpi-processor.c module_param_named(off, no_hypercall, int, 0400); off 1321 drivers/xen/xen-scsiback.c int off = 0; off 1340 drivers/xen/xen-scsiback.c off = 3; /* Skip over "fc." */ off 1360 drivers/xen/xen-scsiback.c snprintf(&tport->tport_name[0], VSCSI_NAMELEN, "%s", &name[off]); off 32 drivers/xen/xenfs/super.c size_t size, loff_t *off) off 39 drivers/xen/xenfs/super.c return simple_read_from_buffer(buf, size, off, tmp, strlen(tmp)); off 13 drivers/xen/xenfs/xenstored.c size_t size, loff_t *off) off 16 drivers/xen/xenfs/xenstored.c return simple_read_from_buffer(buf, size, off, str, strlen(str)); off 25 drivers/zorro/proc.c proc_bus_zorro_lseek(struct file *file, loff_t off, int whence) off 27 drivers/zorro/proc.c return fixed_size_llseek(file, off, whence, sizeof(struct ConfigDev)); off 85 drivers/zorro/zorro-sysfs.c char *buf, loff_t off, size_t count) off 98 drivers/zorro/zorro-sysfs.c return memory_read_from_buffer(buf, count, &off, &cd, sizeof(cd)); off 197 fs/adfs/adfs.h unsigned int off; off 199 fs/adfs/adfs.h off = (indaddr & 255) - 1; off 200 fs/adfs/adfs.h block += off << ADFS_SB(sb)->s_log2sharesize; off 66 fs/affs/file.c u32 lc_shift, lc_mask, tmp, off; off 80 fs/affs/file.c off = 1 << (lc_shift - AFFS_I(inode)->i_lc_shift); off 81 fs/affs/file.c for (i = 1, j = off; j < AFFS_LC_SIZE; i++, j += off) off 114 fs/afs/dir.c loff_t latter, off; off 120 fs/afs/dir.c off = page_offset(page); off 121 fs/afs/dir.c if (i_size <= off) off 124 fs/afs/dir.c latter = i_size - off; off 138 fs/afs/dir.c trace_afs_dir_check_failed(dvnode, off, i_size); off 194 fs/befs/btree.c uint off = 0; off 201 fs/befs/btree.c node->bh = befs_read_datastream(sb, ds, node_off, &off); off 210 fs/befs/btree.c (befs_btree_nodehead *) ((void *) node->bh->b_data + off); off 625 fs/befs/btree.c unsigned long int off = off 627 fs/befs/btree.c ulong tmp = off % keylen_align; off 630 fs/befs/btree.c off += keylen_align - tmp; off 632 fs/befs/btree.c return (fs16 *) ((void *) node->od_node + off); off 50 fs/befs/datastream.c befs_off_t pos, uint *off) off 58 fs/befs/datastream.c if (off) off 59 fs/befs/datastream.c *off = pos - (block << BEFS_SB(sb)->block_shift); off 9 fs/befs/datastream.h befs_off_t pos, uint *off); off 273 fs/bfs/dir.c int block, sblock, eblock, off, pos; off 289 fs/bfs/dir.c for (off = 0; off < BFS_BSIZE; off += BFS_DIRENT_SIZE) { off 290 fs/bfs/dir.c de = (struct bfs_dirent *)(bh->b_data + off); off 292 fs/bfs/dir.c pos = (block - sblock) * BFS_BSIZE + off; off 39 fs/bfs/inode.c int block, off; off 60 fs/bfs/inode.c off = (ino - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; off 61 fs/bfs/inode.c di = (struct bfs_inode *)bh->b_data + off; off 392 fs/bfs/inode.c int off = (i - BFS_ROOT_INO) % BFS_INODES_PER_BLOCK; off 395 fs/bfs/inode.c if (!off) { off 403 fs/bfs/inode.c di = (struct bfs_inode *)bh->b_data + off; off 354 fs/binfmt_elf.c unsigned long off = eppnt->p_offset - ELF_PAGEOFFSET(eppnt->p_vaddr); off 373 fs/binfmt_elf.c map_addr = vm_mmap(filep, addr, total_size, prot, type, off); off 377 fs/binfmt_elf.c map_addr = vm_mmap(filep, addr, size, prot, type, off); off 1327 fs/btrfs/ctree.h const void *ptr, unsigned long off, \ off 1330 fs/btrfs/ctree.h unsigned long off, u##bits val, \ off 1333 fs/btrfs/ctree.h const void *ptr, unsigned long off); \ off 1335 fs/btrfs/ctree.h unsigned long off, u##bits val); off 2809 fs/btrfs/extent_io.c unsigned off; off 2812 fs/btrfs/extent_io.c off = offset_in_page(i_size); off 2813 fs/btrfs/extent_io.c if (page->index == end_index && off) off 2814 fs/btrfs/extent_io.c zero_user_segment(page, off, PAGE_SIZE); off 4640 fs/btrfs/extent_io.c u64 off = start; off 4739 fs/btrfs/extent_io.c if (em->start >= max || extent_map_end(em) < off) off 4748 fs/btrfs/extent_io.c em_start = max(em->start, off); off 4769 fs/btrfs/extent_io.c off = extent_map_end(em); off 4770 fs/btrfs/extent_io.c if (off >= max) off 4816 fs/btrfs/extent_io.c em = get_extent_skip_holes(inode, off, last_for_get_extent); off 90 fs/btrfs/ioctl.c u64 off, u64 olen, u64 olen_aligned, u64 destoff, off 1053 fs/btrfs/ioctl.c u64 *off, u32 thresh) off 1069 fs/btrfs/ioctl.c min_key.offset = *off; off 1089 fs/btrfs/ioctl.c *off = min_key.offset; off 3496 fs/btrfs/ioctl.c const u64 off, const u64 olen, const u64 olen_aligned, off 3527 fs/btrfs/ioctl.c key.offset = off; off 3554 fs/btrfs/ioctl.c if (key.offset == off && ret > 0 && path->slots[0] > 0) { off 3601 fs/btrfs/ioctl.c if (key.offset + datal <= off) { off 3604 fs/btrfs/ioctl.c } else if (key.offset >= off + len) { off 3617 fs/btrfs/ioctl.c if (off <= key.offset) off 3618 fs/btrfs/ioctl.c new_key.offset = key.offset + destoff - off; off 3643 fs/btrfs/ioctl.c if (key.offset + datal > off + len) off 3644 fs/btrfs/ioctl.c datal = off + len - key.offset; off 3647 fs/btrfs/ioctl.c if (off > key.offset) { off 3648 fs/btrfs/ioctl.c datao += off - key.offset; off 3649 fs/btrfs/ioctl.c datal -= off - key.offset; off 3669 fs/btrfs/ioctl.c if (off > key.offset) { off 3670 fs/btrfs/ioctl.c skip = off - key.offset; off 3674 fs/btrfs/ioctl.c if (key.offset + datal > off + len) off 3675 fs/btrfs/ioctl.c trim = key.offset + datal - (off + len); off 3757 fs/btrfs/ioctl.c u64 off, u64 olen, u64 destoff) off 3783 fs/btrfs/ioctl.c if (off + len == src->i_size) off 3784 fs/btrfs/ioctl.c len = ALIGN(src->i_size, bs) - off; off 3811 fs/btrfs/ioctl.c btrfs_double_extent_lock(src, off, inode, destoff, len); off 3812 fs/btrfs/ioctl.c ret = btrfs_clone(src, inode, off, olen, len, destoff, 0); off 3813 fs/btrfs/ioctl.c btrfs_double_extent_unlock(src, off, inode, destoff, len); off 3915 fs/btrfs/ioctl.c loff_t btrfs_remap_file_range(struct file *src_file, loff_t off, off 3932 fs/btrfs/ioctl.c ret = btrfs_remap_file_range_prep(src_file, off, dst_file, destoff, off 3938 fs/btrfs/ioctl.c ret = btrfs_extent_same(src_inode, off, len, dst_inode, destoff); off 3940 fs/btrfs/ioctl.c ret = btrfs_clone_files(dst_file, src_file, off, len, destoff); off 497 fs/btrfs/send.c unsigned long off, int len) off 506 fs/btrfs/send.c read_extent_buffer(eb, prepared, off, len); off 554 fs/btrfs/send.c static int write_buf(struct file *filp, const void *buf, u32 len, loff_t *off) off 560 fs/btrfs/send.c ret = kernel_write(filp, buf + pos, len - pos, off); off 1487 fs/btrfs/send.c unsigned long off; off 1523 fs/btrfs/send.c off = btrfs_file_extent_inline_start(ei); off 1526 fs/btrfs/send.c ret = fs_path_add_from_extent_buffer(dest, path->nodes[0], off, len); off 42 fs/btrfs/struct-funcs.c const void *ptr, unsigned long off, \ off 46 fs/btrfs/struct-funcs.c unsigned long offset = part_offset + off; \ off 62 fs/btrfs/struct-funcs.c res = get_unaligned_le##bits(p + off); \ off 74 fs/btrfs/struct-funcs.c res = get_unaligned_le##bits(p + off); \ off 80 fs/btrfs/struct-funcs.c const void *ptr, unsigned long off) \ off 83 fs/btrfs/struct-funcs.c unsigned long offset = part_offset + off; \ off 101 fs/btrfs/struct-funcs.c res = get_unaligned_le##bits(p + off); \ off 105 fs/btrfs/struct-funcs.c const void *ptr, unsigned long off, \ off 110 fs/btrfs/struct-funcs.c unsigned long offset = part_offset + off; \ off 125 fs/btrfs/struct-funcs.c put_unaligned_le##bits(val, p + off); \ off 138 fs/btrfs/struct-funcs.c put_unaligned_le##bits(val, p + off); \ off 143 fs/btrfs/struct-funcs.c unsigned long off, u##bits val) \ off 146 fs/btrfs/struct-funcs.c unsigned long offset = part_offset + off; \ off 164 fs/btrfs/struct-funcs.c put_unaligned_le##bits(val, p + off); \ off 194 fs/ceph/addr.c u64 off = page_offset(page); off 197 fs/ceph/addr.c if (off >= i_size_read(inode)) { off 208 fs/ceph/addr.c if (off == 0) off 222 fs/ceph/addr.c &ci->i_layout, off, &len, off 316 fs/ceph/addr.c u64 off; off 349 fs/ceph/addr.c off = (u64) page_offset(page); off 363 fs/ceph/addr.c off, len); off 365 fs/ceph/addr.c req = ceph_osdc_new_request(osdc, &ci->i_layout, vino, off, &len, off 409 fs/ceph/addr.c dout("start_read %p starting %p %lld~%lld\n", inode, req, off, len); off 1430 fs/ceph/addr.c loff_t off = vmf->pgoff << PAGE_SHIFT; off 1438 fs/ceph/addr.c inode, ceph_vinop(inode), off, (size_t)PAGE_SIZE); off 1451 fs/ceph/addr.c inode, off, (size_t)PAGE_SIZE, ceph_cap_string(got)); off 1460 fs/ceph/addr.c inode, off, (size_t)PAGE_SIZE, off 1473 fs/ceph/addr.c if (off >= PAGE_SIZE) { off 1487 fs/ceph/addr.c if (err < 0 || off >= i_size_read(inode)) { off 1502 fs/ceph/addr.c inode, off, (size_t)PAGE_SIZE, ret); off 1523 fs/ceph/addr.c loff_t off = page_offset(page); off 1539 fs/ceph/addr.c if (off == 0) { off 1550 fs/ceph/addr.c if (off + PAGE_SIZE <= size) off 1556 fs/ceph/addr.c inode, ceph_vinop(inode), off, len, size); off 1563 fs/ceph/addr.c err = ceph_get_caps(vma->vm_file, CEPH_CAP_FILE_WR, want, off + len, off 1569 fs/ceph/addr.c inode, off, len, ceph_cap_string(got)); off 1578 fs/ceph/addr.c if ((off > size) || (page->mapping != inode->i_mapping)) { off 1584 fs/ceph/addr.c err = ceph_update_writeable_page(vma->vm_file, off, len, page); off 1605 fs/ceph/addr.c inode, off, len, ceph_cap_string(got), ret); off 65 fs/ceph/dir.c loff_t ceph_make_fpos(unsigned high, unsigned off, bool hash_order) off 67 fs/ceph/dir.c loff_t fpos = ((loff_t)high << 28) | (loff_t)off; off 591 fs/ceph/file.c u64 off = iocb->ki_pos; off 594 fs/ceph/file.c dout("sync_read on file %p %llu~%u %s\n", file, off, (unsigned)len, off 606 fs/ceph/file.c off, off + len - 1); off 620 fs/ceph/file.c ci->i_vino, off, &len, 0, 1, off 646 fs/ceph/file.c num_pages = calc_pages_for(off, len); off 647 fs/ceph/file.c page_off = off & ~PAGE_MASK; off 665 fs/ceph/file.c off, len, ret, i_size, (more ? " MORE" : "")); off 669 fs/ceph/file.c if (ret >= 0 && ret < len && (off + ret < i_size)) { off 670 fs/ceph/file.c int zlen = min(len - ret, i_size - off - ret); off 673 fs/ceph/file.c off + ret, off + ret + zlen); off 681 fs/ceph/file.c off += ret; off 691 fs/ceph/file.c page_off = off & ~PAGE_MASK; off 695 fs/ceph/file.c off += copied; off 711 fs/ceph/file.c if (off >= i_size || !more) off 715 fs/ceph/file.c if (off > iocb->ki_pos) { off 717 fs/ceph/file.c iov_iter_count(to) > 0 && off >= i_size_read(inode)) off 719 fs/ceph/file.c ret = off - iocb->ki_pos; off 720 fs/ceph/file.c iocb->ki_pos = off; off 1110 fs/ceph/super.h extern loff_t ceph_make_fpos(unsigned high, unsigned off, bool hash_order); off 148 fs/cifs/cifs_dfs_ref.c int off, noff; off 197 fs/cifs/cifs_dfs_ref.c off = 0; off 201 fs/cifs/cifs_dfs_ref.c off += 5; off 205 fs/cifs/cifs_dfs_ref.c tkn_e = strchr(sb_mountdata + off, sep); off 207 fs/cifs/cifs_dfs_ref.c noff = strlen(sb_mountdata + off); off 209 fs/cifs/cifs_dfs_ref.c noff = tkn_e - (sb_mountdata + off) + 1; off 211 fs/cifs/cifs_dfs_ref.c if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { off 212 fs/cifs/cifs_dfs_ref.c off += noff; off 215 fs/cifs/cifs_dfs_ref.c if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { off 216 fs/cifs/cifs_dfs_ref.c off += noff; off 219 fs/cifs/cifs_dfs_ref.c if (strncasecmp(sb_mountdata + off, "prefixpath=", 11) == 0) { off 220 fs/cifs/cifs_dfs_ref.c off += noff; off 223 fs/cifs/cifs_dfs_ref.c strncat(mountdata, sb_mountdata + off, noff); off 224 fs/cifs/cifs_dfs_ref.c off += noff; off 226 fs/cifs/cifs_dfs_ref.c strcat(mountdata, sb_mountdata + off); off 284 fs/cifs/cifsfs.c static long cifs_fallocate(struct file *file, int mode, loff_t off, loff_t len) off 291 fs/cifs/cifsfs.c return server->ops->fallocate(file, tcon, mode, off, len); off 1067 fs/cifs/cifsfs.c static loff_t cifs_remap_file_range(struct file *src_file, loff_t off, off 1103 fs/cifs/cifsfs.c len = src_inode->i_size - off; off 1112 fs/cifs/cifsfs.c smb_file_src, smb_file_target, off, len, destoff); off 1128 fs/cifs/cifsfs.c struct file *src_file, loff_t off, off 1177 fs/cifs/cifsfs.c smb_file_src, smb_file_target, off, len, destoff); off 1206 fs/cifs/cifsfs.c static ssize_t cifs_copy_file_range(struct file *src_file, loff_t off, off 1213 fs/cifs/cifsfs.c rc = cifs_file_copychunk_range(xid, src_file, off, dst_file, destoff, off 1218 fs/cifs/cifsfs.c rc = generic_copy_file_range(src_file, off, dst_file, off 146 fs/cifs/cifsfs.h struct file *src_file, loff_t off, off 303 fs/cifs/smb2misc.c smb2_get_data_area_len(int *off, int *len, struct smb2_sync_hdr *shdr) off 305 fs/cifs/smb2misc.c *off = 0; off 321 fs/cifs/smb2misc.c *off = le16_to_cpu( off 327 fs/cifs/smb2misc.c *off = le16_to_cpu( off 333 fs/cifs/smb2misc.c *off = le32_to_cpu( off 339 fs/cifs/smb2misc.c *off = le16_to_cpu( off 346 fs/cifs/smb2misc.c *off = ((struct smb2_read_rsp *)shdr)->DataOffset; off 350 fs/cifs/smb2misc.c *off = le16_to_cpu( off 356 fs/cifs/smb2misc.c *off = le32_to_cpu( off 372 fs/cifs/smb2misc.c if (*off > 4096) { off 373 fs/cifs/smb2misc.c cifs_dbg(VFS, "offset %d too large, data area ignored\n", *off); off 375 fs/cifs/smb2misc.c *off = 0; off 376 fs/cifs/smb2misc.c } else if (*off < 0) { off 378 fs/cifs/smb2misc.c *off); off 379 fs/cifs/smb2misc.c *off = 0; off 391 fs/cifs/smb2misc.c if ((*off != 0) && (*len != 0)) off 392 fs/cifs/smb2misc.c return (char *)shdr + *off; off 3053 fs/cifs/smb2ops.c loff_t off, loff_t len, bool keep_size) off 3068 fs/cifs/smb2ops.c tcon->ses->Suid, off, len); off 3073 fs/cifs/smb2ops.c tcon->tid, tcon->ses->Suid, off, len, rc); off 3087 fs/cifs/smb2ops.c else if (i_size_read(inode) >= off + len) off 3095 fs/cifs/smb2ops.c tcon->tid, tcon->ses->Suid, off, len, rc); off 3098 fs/cifs/smb2ops.c tcon->tid, tcon->ses->Suid, off, len); off 3103 fs/cifs/smb2ops.c if ((keep_size == true) || (i_size_read(inode) >= off + len)) { off 3112 fs/cifs/smb2ops.c if ((off > 8192) || (off + len + 8192 < i_size_read(inode))) { off 3115 fs/cifs/smb2ops.c tcon->tid, tcon->ses->Suid, off, len, rc); off 3125 fs/cifs/smb2ops.c if (i_size_read(inode) < off + len) { off 3126 fs/cifs/smb2ops.c eof = cpu_to_le64(off + len); off 3135 fs/cifs/smb2ops.c tcon->ses->Suid, off, len, rc); off 3138 fs/cifs/smb2ops.c tcon->ses->Suid, off, len); off 3303 fs/cifs/smb2ops.c loff_t off, loff_t len) off 3307 fs/cifs/smb2ops.c return smb3_punch_hole(file, tcon, off, len); off 3310 fs/cifs/smb2ops.c return smb3_zero_range(file, tcon, off, len, true); off 3311 fs/cifs/smb2ops.c return smb3_zero_range(file, tcon, off, len, false); off 3313 fs/cifs/smb2ops.c return smb3_simple_falloc(file, tcon, off, len, true); off 3315 fs/cifs/smb2ops.c return smb3_simple_falloc(file, tcon, off, len, false); off 40 fs/cifs/smb2proto.h extern char *smb2_get_data_area_len(int *off, int *len, off 92 fs/coda/psdev.c size_t nbytes, loff_t *off) off 209 fs/coda/psdev.c size_t nbytes, loff_t *off) off 424 fs/cramfs/inode.c unsigned long off = i * PAGE_SIZE; off 425 fs/cramfs/inode.c pfn_t pfn = phys_to_pfn_t(address + off, PFN_DEV); off 426 fs/cramfs/inode.c vmf = vmf_insert_mixed(vma, vma->vm_start + off, pfn); off 44 fs/erofs/namei.c #define nameoff_from_disk(off, sz) (le16_to_cpu(off) & ((sz) - 1)) off 325 fs/ext2/super.c static ssize_t ext2_quota_read(struct super_block *sb, int type, char *data, size_t len, loff_t off); off 326 fs/ext2/super.c static ssize_t ext2_quota_write(struct super_block *sb, int type, const char *data, size_t len, loff_t off); off 1493 fs/ext2/super.c size_t len, loff_t off) off 1496 fs/ext2/super.c sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb); off 1498 fs/ext2/super.c int offset = off & (sb->s_blocksize - 1); off 1505 fs/ext2/super.c if (off > i_size) off 1507 fs/ext2/super.c if (off+len > i_size) off 1508 fs/ext2/super.c len = i_size-off; off 1538 fs/ext2/super.c const char *data, size_t len, loff_t off) off 1541 fs/ext2/super.c sector_t blk = off >> EXT2_BLOCK_SIZE_BITS(sb); off 1543 fs/ext2/super.c int offset = off & (sb->s_blocksize - 1); off 1581 fs/ext2/super.c if (inode->i_size < off+len-towrite) off 1582 fs/ext2/super.c i_size_write(inode, off+len-towrite); off 1382 fs/ext4/super.c size_t len, loff_t off); off 1384 fs/ext4/super.c const char *data, size_t len, loff_t off); off 5977 fs/ext4/super.c size_t len, loff_t off) off 5980 fs/ext4/super.c ext4_lblk_t blk = off >> EXT4_BLOCK_SIZE_BITS(sb); off 5981 fs/ext4/super.c int offset = off & (sb->s_blocksize - 1); off 5987 fs/ext4/super.c if (off > i_size) off 5989 fs/ext4/super.c if (off+len > i_size) off 5990 fs/ext4/super.c len = i_size-off; off 6014 fs/ext4/super.c const char *data, size_t len, loff_t off) off 6017 fs/ext4/super.c ext4_lblk_t blk = off >> EXT4_BLOCK_SIZE_BITS(sb); off 6018 fs/ext4/super.c int err, offset = off & (sb->s_blocksize - 1); off 6026 fs/ext4/super.c (unsigned long long)off, (unsigned long long)len); off 6036 fs/ext4/super.c (unsigned long long)off, (unsigned long long)len); off 6063 fs/ext4/super.c if (inode->i_size < off + len) { off 6064 fs/ext4/super.c i_size_write(inode, off + len); off 1007 fs/f2fs/file.c int *do_replace, pgoff_t off, pgoff_t len) off 1015 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, off, LOOKUP_NODE_RA); off 1056 fs/f2fs/file.c off += done; off 1063 fs/f2fs/file.c int *do_replace, pgoff_t off, int len) off 1074 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, off + i, LOOKUP_NODE_RA); off 511 fs/f2fs/gc.c int off; off 524 fs/f2fs/gc.c for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { off 534 fs/f2fs/gc.c if (check_valid_map(sbi, segno, off) == 0) off 554 fs/f2fs/gc.c if (check_valid_map(sbi, segno, off) == 0) { off 564 fs/f2fs/gc.c if (ni.blk_addr != start_addr + off) { off 746 fs/f2fs/gc.c int gc_type, unsigned int segno, int off) off 772 fs/f2fs/gc.c if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { off 908 fs/f2fs/gc.c unsigned int segno, int off) off 917 fs/f2fs/gc.c if (!check_valid_map(F2FS_I_SB(inode), segno, off)) { off 998 fs/f2fs/gc.c int off; off 1007 fs/f2fs/gc.c for (off = 0; off < sbi->blocks_per_seg; off++, entry++) { off 1019 fs/f2fs/gc.c if (check_valid_map(sbi, segno, off) == 0) off 1034 fs/f2fs/gc.c if (!is_alive(sbi, entry, &dni, start_addr + off, &nofs)) off 1110 fs/f2fs/gc.c gc_type, segno, off); off 1113 fs/f2fs/gc.c segno, off); off 360 fs/f2fs/node.h static inline int set_nid(struct page *p, int off, nid_t nid, bool i) off 367 fs/f2fs/node.h rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); off 369 fs/f2fs/node.h rn->in.nid[off] = cpu_to_le32(nid); off 373 fs/f2fs/node.h static inline nid_t get_nid(struct page *p, int off, bool i) off 378 fs/f2fs/node.h return le32_to_cpu(rn->i.i_nid[off - NODE_DIR1_BLOCK]); off 379 fs/f2fs/node.h return le32_to_cpu(rn->in.nid[off]); off 1763 fs/f2fs/super.c size_t len, loff_t off) off 1767 fs/f2fs/super.c block_t blkidx = F2FS_BYTES_TO_BLK(off); off 1768 fs/f2fs/super.c int offset = off & (sb->s_blocksize - 1); off 1775 fs/f2fs/super.c if (off > i_size) off 1778 fs/f2fs/super.c if (off + len > i_size) off 1779 fs/f2fs/super.c len = i_size - off; off 1821 fs/f2fs/super.c const char *data, size_t len, loff_t off) off 1826 fs/f2fs/super.c int offset = off & (sb->s_blocksize - 1); off 1838 fs/f2fs/super.c err = a_ops->write_begin(NULL, mapping, off, tocopy, 0, off 1854 fs/f2fs/super.c a_ops->write_end(NULL, mapping, off, tocopy, tocopy, off 1858 fs/f2fs/super.c off += tocopy; off 140 fs/freevxfs/vxfs_bmap.c int64_t off; off 149 fs/freevxfs/vxfs_bmap.c off = fs64_to_cpu(sbi, typ->vt_hdr) & VXFS_TYPED_OFFSETMASK; off 151 fs/freevxfs/vxfs_bmap.c if (block < off) { off 162 fs/freevxfs/vxfs_bmap.c block - off); off 167 fs/freevxfs/vxfs_bmap.c if ((block - off) >= fs32_to_cpu(sbi, typ->vt_size)) off 169 fs/freevxfs/vxfs_bmap.c pblock = fs32_to_cpu(sbi, typ->vt_block) + block - off; off 220 fs/freevxfs/vxfs_bmap.c int64_t off = (hdr & VXFS_TYPED_OFFSETMASK); off 225 fs/freevxfs/vxfs_bmap.c if (iblock < off) off 232 fs/freevxfs/vxfs_bmap.c iblock - off); off 237 fs/freevxfs/vxfs_bmap.c if ((iblock - off) < fs32_to_cpu(sbi, typ->vt_size)) off 239 fs/freevxfs/vxfs_bmap.c iblock - off); off 727 fs/fuse/dev.c size_t off; off 728 fs/fuse/dev.c err = iov_iter_get_pages(cs->iter, &page, PAGE_SIZE, 1, &off); off 733 fs/fuse/dev.c cs->offset = off; off 1423 fs/fuse/dev.c outarg.off, outarg.len); off 769 fs/fuse/file.c size_t off = num_read & (PAGE_SIZE - 1); off 772 fs/fuse/file.c zero_user_segment(ap->pages[i], off, PAGE_SIZE); off 773 fs/fuse/file.c off = 0; off 2193 fs/fuse/file.c size_t off = pos & ~PAGE_MASK; off 2194 fs/fuse/file.c if (off) off 2195 fs/fuse/file.c zero_user_segment(page, 0, off); off 3056 fs/fuse/file.c static inline loff_t fuse_round_up(struct fuse_conn *fc, loff_t off) off 3058 fs/fuse/file.c return round_up(off, fc->max_pages << PAGE_SHIFT); off 85 fs/fuse/readdir.c fi->rdc.pos = dirent->off; off 142 fs/fuse/readdir.c ctx->pos = dirent->off; off 303 fs/fuse/readdir.c ctx->pos = dirent->off; off 408 fs/fuse/readdir.c ctx->pos = dirent->off; off 410 fs/fuse/readdir.c ff->readdir.pos = dirent->off; off 1273 fs/gfs2/dir.c u64 off, off_next; off 1286 fs/gfs2/dir.c off = off_next; off 1292 fs/gfs2/dir.c if (off < ctx->pos) off 1294 fs/gfs2/dir.c ctx->pos = off; off 1296 fs/gfs2/dir.c if (off_next == off) { off 1303 fs/gfs2/dir.c if (off < ctx->pos) off 1305 fs/gfs2/dir.c ctx->pos = off; off 504 fs/gfs2/lops.c unsigned int bsize = sdp->sd_sb.sb_bsize, off; off 532 fs/gfs2/lops.c off = 0; off 535 fs/gfs2/lops.c if (bio && (off || block < blocks_submitted + max_blocks)) { off 539 fs/gfs2/lops.c sz = bio_add_page(bio, page, bsize, off); off 543 fs/gfs2/lops.c if (off) { off 545 fs/gfs2/lops.c (PAGE_SIZE - off) >> bsize_shift; off 560 fs/gfs2/lops.c sz = bio_add_page(bio, page, bsize, off); off 563 fs/gfs2/lops.c off += bsize; off 564 fs/gfs2/lops.c if (off == PAGE_SIZE) off 688 fs/gfs2/quota.c unsigned off, void *buf, unsigned bytes) off 698 fs/gfs2/quota.c unsigned to_write = bytes, pg_off = off; off 702 fs/gfs2/quota.c boff = off % bsize; off 752 fs/gfs2/quota.c memcpy(kaddr + off, buf, bytes); off 46 fs/hfs/bfind.c u16 off, len, keylen; off 56 fs/hfs/bfind.c len = hfs_brec_lenoff(bnode, rec, &off); off 62 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 75 fs/hfs/bfind.c len = hfs_brec_lenoff(bnode, e, &off); off 81 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 85 fs/hfs/bfind.c fd->keyoffset = off; off 87 fs/hfs/bfind.c fd->entryoffset = off + keylen; off 167 fs/hfs/bfind.c u16 off, len, keylen; off 211 fs/hfs/bfind.c len = hfs_brec_lenoff(bnode, fd->record, &off); off 217 fs/hfs/bfind.c fd->keyoffset = off; off 219 fs/hfs/bfind.c fd->entryoffset = off + keylen; off 221 fs/hfs/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 19 fs/hfs/bnode.c int off, int len) off 23 fs/hfs/bnode.c off += node->page_offset; off 26 fs/hfs/bnode.c memcpy(buf, kmap(page) + off, len); off 30 fs/hfs/bnode.c u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) off 34 fs/hfs/bnode.c hfs_bnode_read(node, &data, off, 2); off 38 fs/hfs/bnode.c u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) off 42 fs/hfs/bnode.c hfs_bnode_read(node, &data, off, 1); off 46 fs/hfs/bnode.c void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) off 54 fs/hfs/bnode.c key_len = hfs_bnode_read_u8(node, off) + 1; off 58 fs/hfs/bnode.c hfs_bnode_read(node, key, off, key_len); off 61 fs/hfs/bnode.c void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) off 65 fs/hfs/bnode.c off += node->page_offset; off 68 fs/hfs/bnode.c memcpy(kmap(page) + off, buf, len); off 73 fs/hfs/bnode.c void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) off 77 fs/hfs/bnode.c hfs_bnode_write(node, &v, off, 2); off 80 fs/hfs/bnode.c void hfs_bnode_write_u8(struct hfs_bnode *node, int off, u8 data) off 83 fs/hfs/bnode.c hfs_bnode_write(node, &data, off, 1); off 86 fs/hfs/bnode.c void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) off 90 fs/hfs/bnode.c off += node->page_offset; off 93 fs/hfs/bnode.c memset(kmap(page) + off, 0, len); off 138 fs/hfs/bnode.c int i, off, key_off; off 146 fs/hfs/bnode.c off = node->tree->node_size - 2; off 147 fs/hfs/bnode.c for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { off 148 fs/hfs/bnode.c key_off = hfs_bnode_read_u16(node, off); off 242 fs/hfs/bnode.c loff_t off; off 277 fs/hfs/bnode.c off = (loff_t)cnid * tree->node_size; off 278 fs/hfs/bnode.c block = off >> PAGE_SHIFT; off 279 fs/hfs/bnode.c node->page_offset = off & ~PAGE_MASK; off 316 fs/hfs/bnode.c int i, rec_off, off, next_off; off 365 fs/hfs/bnode.c off = hfs_bnode_read_u16(node, rec_off); off 366 fs/hfs/bnode.c if (off != sizeof(struct hfs_bnode_desc)) off 368 fs/hfs/bnode.c for (i = 1; i <= node->num_recs; off = next_off, i++) { off 371 fs/hfs/bnode.c if (next_off <= off || off 375 fs/hfs/bnode.c entry_size = next_off - off; off 379 fs/hfs/bnode.c key_size = hfs_bnode_read_u8(node, off) + 1; off 19 fs/hfs/brec.c u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) off 26 fs/hfs/brec.c *off = be16_to_cpu(retval[1]); off 27 fs/hfs/brec.c return be16_to_cpu(retval[0]) - *off; off 252 fs/hfs/btree.c unsigned off; off 267 fs/hfs/btree.c off = off16; off 269 fs/hfs/btree.c off += node->page_offset; off 270 fs/hfs/btree.c pagep = node->page + (off >> PAGE_SHIFT); off 272 fs/hfs/btree.c off &= ~PAGE_MASK; off 277 fs/hfs/btree.c byte = data[off]; off 282 fs/hfs/btree.c data[off] |= m; off 292 fs/hfs/btree.c if (++off >= PAGE_SIZE) { off 295 fs/hfs/btree.c off = 0; off 313 fs/hfs/btree.c off = off16; off 314 fs/hfs/btree.c off += node->page_offset; off 315 fs/hfs/btree.c pagep = node->page + (off >> PAGE_SHIFT); off 317 fs/hfs/btree.c off &= ~PAGE_MASK; off 325 fs/hfs/btree.c u16 off, len; off 335 fs/hfs/btree.c len = hfs_brec_lenoff(node, 2, &off); off 359 fs/hfs/btree.c len = hfs_brec_lenoff(node, 0, &off); off 361 fs/hfs/btree.c off += node->page_offset + nidx / 8; off 362 fs/hfs/btree.c page = node->page[off >> PAGE_SHIFT]; off 364 fs/hfs/btree.c off &= ~PAGE_MASK; off 366 fs/hfs/btree.c byte = data[off]; off 374 fs/hfs/btree.c data[off] = byte & ~m; off 74 fs/hfs/extent.c static u16 hfs_ext_find_block(struct hfs_extent *ext, u16 off) off 81 fs/hfs/extent.c if (off < count) off 82 fs/hfs/extent.c return be16_to_cpu(ext->block) + off; off 83 fs/hfs/extent.c off -= count; off 75 fs/hfs/mdb.c loff_t off; off 175 fs/hfs/mdb.c off = (loff_t)block << HFS_SECTOR_SIZE_BITS; off 179 fs/hfs/mdb.c bh = sb_bread(sb, off >> sb->s_blocksize_bits); off 184 fs/hfs/mdb.c off2 = off & (sb->s_blocksize - 1); off 189 fs/hfs/mdb.c off += len; off 304 fs/hfs/mdb.c int off, size, len; off 307 fs/hfs/mdb.c off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); off 317 fs/hfs/mdb.c len = min((int)sb->s_blocksize - off, size); off 320 fs/hfs/mdb.c memcpy(bh->b_data + off, ptr, len); off 326 fs/hfs/mdb.c off = 0; off 117 fs/hfsplus/bfind.c u16 off, len, keylen; off 128 fs/hfsplus/bfind.c len = hfs_brec_lenoff(bnode, rec, &off); off 134 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 142 fs/hfsplus/bfind.c len = hfs_brec_lenoff(bnode, e, &off); off 148 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 153 fs/hfsplus/bfind.c fd->keyoffset = off; off 155 fs/hfsplus/bfind.c fd->entryoffset = off + keylen; off 236 fs/hfsplus/bfind.c u16 off, len, keylen; off 280 fs/hfsplus/bfind.c len = hfs_brec_lenoff(bnode, fd->record, &off); off 286 fs/hfsplus/bfind.c fd->keyoffset = off; off 288 fs/hfsplus/bfind.c fd->entryoffset = off + keylen; off 290 fs/hfsplus/bfind.c hfs_bnode_read(bnode, fd->key, off, keylen); off 22 fs/hfsplus/bnode.c void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) off 27 fs/hfsplus/bnode.c off += node->page_offset; off 28 fs/hfsplus/bnode.c pagep = node->page + (off >> PAGE_SHIFT); off 29 fs/hfsplus/bnode.c off &= ~PAGE_MASK; off 31 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); off 32 fs/hfsplus/bnode.c memcpy(buf, kmap(*pagep) + off, l); off 43 fs/hfsplus/bnode.c u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) off 47 fs/hfsplus/bnode.c hfs_bnode_read(node, &data, off, 2); off 51 fs/hfsplus/bnode.c u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) off 55 fs/hfsplus/bnode.c hfs_bnode_read(node, &data, off, 1); off 59 fs/hfsplus/bnode.c void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) off 68 fs/hfsplus/bnode.c key_len = hfs_bnode_read_u16(node, off) + 2; off 72 fs/hfsplus/bnode.c hfs_bnode_read(node, key, off, key_len); off 75 fs/hfsplus/bnode.c void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len) off 80 fs/hfsplus/bnode.c off += node->page_offset; off 81 fs/hfsplus/bnode.c pagep = node->page + (off >> PAGE_SHIFT); off 82 fs/hfsplus/bnode.c off &= ~PAGE_MASK; off 84 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); off 85 fs/hfsplus/bnode.c memcpy(kmap(*pagep) + off, buf, l); off 98 fs/hfsplus/bnode.c void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data) off 102 fs/hfsplus/bnode.c hfs_bnode_write(node, &v, off, 2); off 105 fs/hfsplus/bnode.c void hfs_bnode_clear(struct hfs_bnode *node, int off, int len) off 110 fs/hfsplus/bnode.c off += node->page_offset; off 111 fs/hfsplus/bnode.c pagep = node->page + (off >> PAGE_SHIFT); off 112 fs/hfsplus/bnode.c off &= ~PAGE_MASK; off 114 fs/hfsplus/bnode.c l = min_t(int, len, PAGE_SIZE - off); off 115 fs/hfsplus/bnode.c memset(kmap(*pagep) + off, 0, l); off 302 fs/hfsplus/bnode.c int i, off, key_off; off 310 fs/hfsplus/bnode.c off = node->tree->node_size - 2; off 311 fs/hfsplus/bnode.c for (i = be16_to_cpu(desc.num_recs); i >= 0; off -= 2, i--) { off 312 fs/hfsplus/bnode.c key_off = hfs_bnode_read_u16(node, off); off 406 fs/hfsplus/bnode.c loff_t off; off 443 fs/hfsplus/bnode.c off = (loff_t)cnid << tree->node_size_shift; off 444 fs/hfsplus/bnode.c block = off >> PAGE_SHIFT; off 445 fs/hfsplus/bnode.c node->page_offset = off & ~PAGE_MASK; off 482 fs/hfsplus/bnode.c int i, rec_off, off, next_off; off 533 fs/hfsplus/bnode.c off = hfs_bnode_read_u16(node, rec_off); off 534 fs/hfsplus/bnode.c if (off != sizeof(struct hfs_bnode_desc)) off 536 fs/hfsplus/bnode.c for (i = 1; i <= node->num_recs; off = next_off, i++) { off 539 fs/hfsplus/bnode.c if (next_off <= off || off 543 fs/hfsplus/bnode.c entry_size = next_off - off; off 547 fs/hfsplus/bnode.c key_size = hfs_bnode_read_u16(node, off) + 2; off 20 fs/hfsplus/brec.c u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off) off 27 fs/hfsplus/brec.c *off = be16_to_cpu(retval[1]); off 28 fs/hfsplus/brec.c return be16_to_cpu(retval[0]) - *off; off 378 fs/hfsplus/btree.c unsigned off; off 393 fs/hfsplus/btree.c off = off16; off 395 fs/hfsplus/btree.c off += node->page_offset; off 396 fs/hfsplus/btree.c pagep = node->page + (off >> PAGE_SHIFT); off 398 fs/hfsplus/btree.c off &= ~PAGE_MASK; off 403 fs/hfsplus/btree.c byte = data[off]; off 408 fs/hfsplus/btree.c data[off] |= m; off 419 fs/hfsplus/btree.c if (++off >= PAGE_SIZE) { off 422 fs/hfsplus/btree.c off = 0; off 440 fs/hfsplus/btree.c off = off16; off 441 fs/hfsplus/btree.c off += node->page_offset; off 442 fs/hfsplus/btree.c pagep = node->page + (off >> PAGE_SHIFT); off 444 fs/hfsplus/btree.c off &= ~PAGE_MASK; off 452 fs/hfsplus/btree.c u16 off, len; off 463 fs/hfsplus/btree.c len = hfs_brec_lenoff(node, 2, &off); off 489 fs/hfsplus/btree.c len = hfs_brec_lenoff(node, 0, &off); off 491 fs/hfsplus/btree.c off += node->page_offset + nidx / 8; off 492 fs/hfsplus/btree.c page = node->page[off >> PAGE_SHIFT]; off 494 fs/hfsplus/btree.c off &= ~PAGE_MASK; off 496 fs/hfsplus/btree.c byte = data[off]; off 505 fs/hfsplus/btree.c data[off] = byte & ~m; off 336 fs/hfsplus/catalog.c int err, off; off 360 fs/hfsplus/catalog.c off = fd.entryoffset + off 364 fs/hfsplus/catalog.c &fd.search_key->cat.name.length, off, 2); off 368 fs/hfsplus/catalog.c off + 2, len); off 383 fs/hfsplus/catalog.c off = fd.entryoffset + offsetof(hfsplus_cat_file, data_fork); off 384 fs/hfsplus/catalog.c hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); off 388 fs/hfsplus/catalog.c off = fd.entryoffset + off 390 fs/hfsplus/catalog.c hfs_bnode_read(fd.bnode, &fork, off, sizeof(fork)); off 51 fs/hfsplus/extents.c static u32 hfsplus_ext_find_block(struct hfsplus_extent *ext, u32 off) off 58 fs/hfsplus/extents.c if (off < count) off 59 fs/hfsplus/extents.c return be32_to_cpu(ext->start_block) + off; off 60 fs/hfsplus/extents.c off -= count; off 404 fs/hfsplus/hfsplus_fs.h void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len); off 405 fs/hfsplus/hfsplus_fs.h u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off); off 406 fs/hfsplus/hfsplus_fs.h u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off); off 407 fs/hfsplus/hfsplus_fs.h void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off); off 408 fs/hfsplus/hfsplus_fs.h void hfs_bnode_write(struct hfs_bnode *node, void *buf, int off, int len); off 409 fs/hfsplus/hfsplus_fs.h void hfs_bnode_write_u16(struct hfs_bnode *node, int off, u16 data); off 410 fs/hfsplus/hfsplus_fs.h void hfs_bnode_clear(struct hfs_bnode *node, int off, int len); off 426 fs/hfsplus/hfsplus_fs.h u16 hfs_brec_lenoff(struct hfs_bnode *node, u16 rec, u16 *off); off 278 fs/hfsplus/unicode.c int off; off 280 fs/hfsplus/unicode.c off = hfsplus_decompose_table[(uc >> 12) & 0xf]; off 281 fs/hfsplus/unicode.c if (off == 0 || off == 0xffff) off 284 fs/hfsplus/unicode.c off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; off 285 fs/hfsplus/unicode.c if (!off) off 288 fs/hfsplus/unicode.c off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; off 289 fs/hfsplus/unicode.c if (!off) off 292 fs/hfsplus/unicode.c off = hfsplus_decompose_table[off + (uc & 0xf)]; off 293 fs/hfsplus/unicode.c *size = off & 3; off 296 fs/hfsplus/unicode.c return hfsplus_decompose_table + (off / 4); off 24 fs/hpfs/dir.c static loff_t hpfs_dir_lseek(struct file *filp, loff_t off, int whence) off 26 fs/hpfs/dir.c loff_t new_off = off + (whence == 1 ? filp->f_pos : 0); off 1102 fs/io_uring.c kiocb->ki_pos = READ_ONCE(sqe->off); off 1574 fs/io_uring.c loff_t sqe_off = READ_ONCE(sqe->off); off 1636 fs/io_uring.c sqe_off = READ_ONCE(sqe->off); off 1762 fs/io_uring.c if (sqe->ioprio || sqe->off || sqe->len || sqe->buf_index || off 1888 fs/io_uring.c if (sqe->addr || sqe->ioprio || sqe->off || sqe->len || sqe->buf_index) off 2001 fs/io_uring.c count = READ_ONCE(sqe->off); off 3359 fs/io_uring.c size_t off, sq_array_size; off 3361 fs/io_uring.c off = struct_size(rings, cqes, cq_entries); off 3362 fs/io_uring.c if (off == SIZE_MAX) off 3366 fs/io_uring.c off = ALIGN(off, SMP_CACHE_BYTES); off 3367 fs/io_uring.c if (off == 0) off 3375 fs/io_uring.c if (check_add_overflow(off, sq_array_size, &off)) off 3379 fs/io_uring.c *sq_offset = off; off 3381 fs/io_uring.c return off; off 3466 fs/io_uring.c unsigned long off, start, end, ubuf; off 3559 fs/io_uring.c off = ubuf & ~PAGE_MASK; off 3564 fs/io_uring.c vec_len = min_t(size_t, size, PAGE_SIZE - off); off 3567 fs/io_uring.c imu->bvec[j].bv_offset = off; off 3568 fs/io_uring.c off = 0; off 224 fs/ioctl.c u64 off, u64 olen, u64 destoff) off 235 fs/ioctl.c cloned = vfs_clone_file_range(src_file.file, off, dst_file, destoff, off 121 fs/iomap/buffered-io.c iomap_set_range_uptodate(struct page *page, unsigned off, unsigned len) off 125 fs/iomap/buffered-io.c unsigned first = off >> inode->i_blkbits; off 126 fs/iomap/buffered-io.c unsigned last = (off + len - 1) >> inode->i_blkbits; off 1003 fs/iomap/buffered-io.c unsigned int off = pos & (blocksize - 1); off 1006 fs/iomap/buffered-io.c if (!off) off 1008 fs/iomap/buffered-io.c return iomap_zero_range(inode, pos, blocksize - off, did_zero, ops); off 22 fs/iomap/seek.c unsigned int bsize = i_blocksize(inode), off; off 49 fs/iomap/seek.c for (off = 0; off < PAGE_SIZE; off += bsize) { off 50 fs/iomap/seek.c if (offset_in_page(*lastoff) >= off + bsize) off 52 fs/iomap/seek.c if (ops->is_partially_uptodate(page, off, bsize) == seek_data) { off 56 fs/iomap/seek.c *lastoff = poff + off + bsize; off 1332 fs/jfs/jfs_dtree.c int skip, nextindex, half, left, nxt, off, si; off 1504 fs/jfs/jfs_dtree.c for (nxt = off = 0; nxt < nextindex; ++off) { off 1505 fs/jfs/jfs_dtree.c if (off == skip) off 1586 fs/jfs/jfs_dtree.c if (skip <= off) { off 82 fs/jfs/jfs_xtree.c s64 off; off 600 fs/jfs/jfs_xtree.c split.off = xoff; off 724 fs/jfs/jfs_xtree.c XT_PUTENTRY(xad, split->flag, split->off, split->len, off 845 fs/jfs/jfs_xtree.c split->off = offsetXAD(&rcp->xad[XTENTRYSTART]); off 1051 fs/jfs/jfs_xtree.c XT_PUTENTRY(xad, split->flag, split->off, split->len, off 1122 fs/jfs/jfs_xtree.c XT_PUTENTRY(xad, split->flag, split->off, split->len, off 1147 fs/jfs/jfs_xtree.c XT_PUTENTRY(xad, split->flag, split->off, split->len, off 1287 fs/jfs/jfs_xtree.c XT_PUTENTRY(xad, split->flag, split->off, split->len, split->addr); off 1423 fs/jfs/jfs_xtree.c split.off = xoff; /* split offset */ off 1588 fs/jfs/jfs_xtree.c split.off = xoff; /* split offset */ off 1921 fs/jfs/jfs_xtree.c split.off = nxoff; off 2074 fs/jfs/jfs_xtree.c split.off = xoff; off 2254 fs/jfs/jfs_xtree.c split.off = xoff; off 736 fs/jfs/super.c size_t len, loff_t off) off 739 fs/jfs/super.c sector_t blk = off >> sb->s_blocksize_bits; off 741 fs/jfs/super.c int offset = off & (sb->s_blocksize - 1); off 748 fs/jfs/super.c if (off > i_size) off 750 fs/jfs/super.c if (off+len > i_size) off 751 fs/jfs/super.c len = i_size-off; off 781 fs/jfs/super.c const char *data, size_t len, loff_t off) off 784 fs/jfs/super.c sector_t blk = off >> sb->s_blocksize_bits; off 786 fs/jfs/super.c int offset = off & (sb->s_blocksize - 1); off 827 fs/jfs/super.c if (inode->i_size < off+len-towrite) off 828 fs/jfs/super.c i_size_write(inode, off+len-towrite); off 41 fs/ocfs2/buffer_head_io.h static inline int ocfs2_read_block(struct ocfs2_caching_info *ci, u64 off, off 54 fs/ocfs2/buffer_head_io.h status = ocfs2_read_blocks(ci, off, 1, bh, 0, validate); off 3041 fs/ocfs2/dir.c unsigned int off; off 3048 fs/ocfs2/dir.c off = ocfs2_dx_dir_hash_idx(osb, off 3050 fs/ocfs2/dir.c get_bh(dx_leaves[off]); off 3051 fs/ocfs2/dir.c lookup->dl_dx_leaf_bh = dx_leaves[off]; off 95 fs/ocfs2/quota.h size_t len, loff_t off); off 97 fs/ocfs2/quota.h const char *data, size_t len, loff_t off); off 168 fs/ocfs2/quota_global.c size_t len, loff_t off) off 173 fs/ocfs2/quota_global.c int offset = off & (sb->s_blocksize - 1); off 174 fs/ocfs2/quota_global.c sector_t blk = off >> sb->s_blocksize_bits; off 180 fs/ocfs2/quota_global.c if (off > i_size) off 182 fs/ocfs2/quota_global.c if (off + len > i_size) off 183 fs/ocfs2/quota_global.c len = i_size - off; off 217 fs/ocfs2/quota_global.c const char *data, size_t len, loff_t off) off 222 fs/ocfs2/quota_global.c int offset = off & (sb->s_blocksize - 1); off 223 fs/ocfs2/quota_global.c sector_t blk = off >> sb->s_blocksize_bits; off 232 fs/ocfs2/quota_global.c (unsigned long long)off, (unsigned long long)len); off 240 fs/ocfs2/quota_global.c if (i_size_read(gqinode) < off + len) { off 242 fs/ocfs2/quota_global.c ocfs2_align_bytes_to_blocks(sb, off + len); off 56 fs/ocfs2/quota_local.c static unsigned int ol_dqblk_block(struct super_block *sb, int c, int off) off 60 fs/ocfs2/quota_local.c return ol_quota_chunk_block(sb, c) + 1 + off / epb; off 63 fs/ocfs2/quota_local.c static unsigned int ol_dqblk_block_off(struct super_block *sb, int c, int off) off 67 fs/ocfs2/quota_local.c return (off % epb) * sizeof(struct ocfs2_local_disk_dqblk); off 71 fs/ocfs2/quota_local.c static loff_t ol_dqblk_off(struct super_block *sb, int c, int off) off 73 fs/ocfs2/quota_local.c return (ol_dqblk_block(sb, c, off) << sb->s_blocksize_bits) + off 74 fs/ocfs2/quota_local.c ol_dqblk_block_off(sb, c, off); off 77 fs/ocfs2/quota_local.c static inline unsigned int ol_dqblk_block_offset(struct super_block *sb, loff_t off) off 79 fs/ocfs2/quota_local.c return off & ((1 << sb->s_blocksize_bits) - 1); off 83 fs/ocfs2/quota_local.c static int ol_dqblk_chunk_off(struct super_block *sb, int c, loff_t off) off 87 fs/ocfs2/quota_local.c return ((off >> sb->s_blocksize_bits) - off 89 fs/ocfs2/quota_local.c + ((unsigned int)(off & ((1 << sb->s_blocksize_bits) - 1))) / off 138 fs/ocfs2/reservations.c unsigned int off = 0; off 147 fs/ocfs2/reservations.c if (i > 0 && resv->r_start <= off) { off 174 fs/ocfs2/reservations.c off = ocfs2_resv_end(resv); off 27 fs/orangefs/inode.c loff_t off; off 35 fs/orangefs/inode.c off = wr->pos; off 36 fs/orangefs/inode.c if (off + wr->len > len) off 37 fs/orangefs/inode.c wlen = len - off; off 42 fs/orangefs/inode.c off = page_offset(page); off 43 fs/orangefs/inode.c if (off + PAGE_SIZE > len) off 44 fs/orangefs/inode.c wlen = len - off; off 49 fs/orangefs/inode.c WARN_ON(off == len || off + wlen > len); off 53 fs/orangefs/inode.c bv.bv_offset = off % PAGE_SIZE; off 57 fs/orangefs/inode.c ret = wait_for_direct_io(ORANGEFS_IO_WRITE, inode, &off, &iter, wlen, off 84 fs/orangefs/inode.c loff_t off; off 102 fs/orangefs/inode.c loff_t off; off 111 fs/orangefs/inode.c ow->off + ow->len) - off 112 fs/orangefs/inode.c max(ow->off, page_offset(ow->pages[i])); off 114 fs/orangefs/inode.c ow->bv[i].bv_offset = ow->off - off 121 fs/orangefs/inode.c WARN_ON(ow->off >= len); off 122 fs/orangefs/inode.c if (ow->off + ow->len > len) off 123 fs/orangefs/inode.c ow->len = len - ow->off; off 125 fs/orangefs/inode.c off = ow->off; off 128 fs/orangefs/inode.c ret = wait_for_direct_io(ORANGEFS_IO_WRITE, inode, &off, &iter, ow->len, off 179 fs/orangefs/inode.c ow->off = wr->pos; off 193 fs/orangefs/inode.c if (ow->off + ow->len == wr->pos) { off 258 fs/orangefs/inode.c loff_t off; /* offset into this page */ off 306 fs/orangefs/inode.c off = page_offset(page); off 307 fs/orangefs/inode.c index = off >> PAGE_SHIFT; off 313 fs/orangefs/inode.c ret = wait_for_direct_io(ORANGEFS_IO_READ, inode, &off, &iter, off 394 fs/overlayfs/readdir.c loff_t off = 0; off 397 fs/overlayfs/readdir.c if (off >= pos) off 399 fs/overlayfs/readdir.c off++; off 64 fs/proc/consoles.c loff_t off = 0; off 68 fs/proc/consoles.c if (off++ == *pos) off 43 fs/pstore/inode.c size_t off; off 69 fs/pstore/inode.c data->off = ps->total_size % REC_SIZE; off 70 fs/pstore/inode.c data->off += *pos * REC_SIZE; off 71 fs/pstore/inode.c if (data->off + REC_SIZE > ps->total_size) { off 91 fs/pstore/inode.c data->off += REC_SIZE; off 92 fs/pstore/inode.c if (data->off + REC_SIZE > ps->total_size) off 107 fs/pstore/inode.c rec = (struct pstore_ftrace_record *)(ps->record->buf + data->off); off 157 fs/pstore/inode.c static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) off 162 fs/pstore/inode.c return seq_lseek(file, off, whence); off 163 fs/pstore/inode.c return default_llseek(file, off, whence); off 131 fs/quota/quota_v1.c size_t off; off 141 fs/quota/quota_v1.c off = isize & (BLOCK_SIZE - 1); off 142 fs/quota/quota_v1.c if ((blocks % sizeof(struct v1_disk_dqblk) * BLOCK_SIZE + off) % off 1495 fs/read_write.c off_t off; off 1499 fs/read_write.c if (unlikely(get_user(off, offset))) off 1501 fs/read_write.c pos = off; off 1533 fs/read_write.c off_t off; off 1537 fs/read_write.c if (unlikely(get_user(off, offset))) off 1539 fs/read_write.c pos = off; off 2149 fs/read_write.c u64 off; off 2162 fs/read_write.c off = same->src_offset; off 2174 fs/read_write.c ret = remap_verify_area(file, off, len, false); off 2179 fs/read_write.c if (off + len > i_size_read(src)) off 2205 fs/read_write.c deduped = vfs_dedupe_file_range_one(file, off, dst_file, off 121 fs/reiserfs/bitmap.c int off, int *next) off 125 fs/reiserfs/bitmap.c if (reiserfs_in_journal(s, bmap, off, 1, &tmp)) { off 130 fs/reiserfs/bitmap.c (*next) = off + 1; /* inc offset to avoid looping. */ off 353 fs/reiserfs/bitmap.c unsigned int bm, off; off 364 fs/reiserfs/bitmap.c get_bit_address(s, *start, &bm, &off); off 386 fs/reiserfs/bitmap.c for (; bm < end_bm; bm++, off = 0) { off 387 fs/reiserfs/bitmap.c if ((off && (!unfm || (file_block != 0))) off 391 fs/reiserfs/bitmap.c scan_bitmap_block(th, bm, &off, off_max, off 397 fs/reiserfs/bitmap.c get_bit_address(s, *start, &bm, &off); off 400 fs/reiserfs/bitmap.c for (; bm < end_bm; bm++, off = 0) { off 402 fs/reiserfs/bitmap.c scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); off 408 fs/reiserfs/bitmap.c scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm); off 411 fs/reiserfs/bitmap.c *start = bm * off_max + off; off 29 fs/reiserfs/namei.c static int bin_search_in_dir_item(struct reiserfs_dir_entry *de, loff_t off) off 40 fs/reiserfs/namei.c if (off < deh_offset(deh + j)) { off 44 fs/reiserfs/namei.c if (off > deh_offset(deh + j)) { off 1314 fs/reiserfs/stree.c int off; off 1342 fs/reiserfs/stree.c off = ((le_ih_k_offset(&s_ih) - 1) & (PAGE_SIZE - 1)); off 1343 fs/reiserfs/stree.c memcpy(data + off, off 2492 fs/reiserfs/super.c size_t len, loff_t off) off 2495 fs/reiserfs/super.c unsigned long blk = off >> sb->s_blocksize_bits; off 2496 fs/reiserfs/super.c int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; off 2501 fs/reiserfs/super.c if (off > i_size) off 2503 fs/reiserfs/super.c if (off + len > i_size) off 2504 fs/reiserfs/super.c len = i_size - off; off 2542 fs/reiserfs/super.c const char *data, size_t len, loff_t off) off 2545 fs/reiserfs/super.c unsigned long blk = off >> sb->s_blocksize_bits; off 2546 fs/reiserfs/super.c int err = 0, offset = off & (sb->s_blocksize - 1), tocopy; off 2553 fs/reiserfs/super.c (unsigned long long)off, (unsigned long long)len); off 2593 fs/reiserfs/super.c if (inode->i_size < off + len - towrite) off 2594 fs/reiserfs/super.c i_size_write(inode, off + len - towrite); off 200 fs/squashfs/namei.c unsigned int blk, off, ino_num; off 203 fs/squashfs/namei.c off = le16_to_cpu(dire->offset); off 206 fs/squashfs/namei.c ino = SQUASHFS_MKINODE(blk, off); off 210 fs/squashfs/namei.c blk, off, ino_num); off 3918 fs/xfs/libxfs/xfs_bmap.c xfs_fileoff_t off, off 3930 fs/xfs/libxfs/xfs_bmap.c xfs_fileoff_t aoff = off; off 3998 fs/xfs/libxfs/xfs_bmap.c if (whichfork == XFS_COW_FORK && (prealloc || aoff < off || alen > len)) off 5785 fs/xfs/libxfs/xfs_bmap.c xfs_fileoff_t off, off 5799 fs/xfs/libxfs/xfs_bmap.c if (!error && !is_empty && got.br_startoff >= off && off 220 fs/xfs/libxfs/xfs_bmap.h int xfs_bmap_can_insert_extents(struct xfs_inode *ip, xfs_fileoff_t off, off 227 fs/xfs/libxfs/xfs_bmap.h xfs_fileoff_t off, xfs_filblks_t len, xfs_filblks_t prealloc, off 2444 fs/xfs/libxfs/xfs_da_btree.c xfs_fileoff_t off; off 2446 fs/xfs/libxfs/xfs_da_btree.c for (i = 0, off = bno; i < nmap; i++) { off 2451 fs/xfs/libxfs/xfs_da_btree.c if (off != mapp[i].br_startoff) { off 2454 fs/xfs/libxfs/xfs_da_btree.c off += mapp[i].br_blockcount; off 2456 fs/xfs/libxfs/xfs_da_btree.c return off == bno + count; off 248 fs/xfs/libxfs/xfs_da_format.h xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off) off 250 fs/xfs/libxfs/xfs_da_format.h put_unaligned_be16(off, sfep->offset); off 391 fs/xfs/libxfs/xfs_dir2_data.c xfs_dir2_data_aoff_t off; off 396 fs/xfs/libxfs/xfs_dir2_data.c off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr); off 412 fs/xfs/libxfs/xfs_dir2_data.c if (be16_to_cpu(dfp->offset) == off) { off 416 fs/xfs/libxfs/xfs_dir2_data.c } else if (be16_to_cpu(dfp->offset) > off) { off 417 fs/xfs/libxfs/xfs_dir2_data.c if (off + be16_to_cpu(dup->length) > off 422 fs/xfs/libxfs/xfs_dir2_data.c be16_to_cpu(dfp->length) > off) off 449 fs/xfs/libxfs/xfs_dir2_data.c xfs_dir2_data_aoff_t off; /* offset value needed */ off 451 fs/xfs/libxfs/xfs_dir2_data.c off = (xfs_dir2_data_aoff_t)((char *)dup - (char *)hdr); off 466 fs/xfs/libxfs/xfs_dir2_data.c if (be16_to_cpu(dfp->offset) == off) off 348 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_data_off_t off; /* freespace entry value */ off 386 fs/xfs/libxfs/xfs_dir2_node.c if ((off = be16_to_cpu(*from)) != NULLDATAOFF) off 388 fs/xfs/libxfs/xfs_dir2_node.c *to = cpu_to_be16(off); off 1212 fs/xfs/libxfs/xfs_dir2_node.c int off; /* data block entry offset */ off 1238 fs/xfs/libxfs/xfs_dir2_node.c off = xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address)); off 1239 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(dblk->index == off); off 1258 fs/xfs/libxfs/xfs_dir2_node.c dep = (xfs_dir2_data_entry_t *)((char *)hdr + off); off 1262 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_data_make_free(args, dbp, off, off 1409 fs/xfs/libxfs/xfs_format.h #define XFS_RMAP_OFF(off) ((off) & XFS_RMAP_OFF_MASK) off 1411 fs/xfs/libxfs/xfs_format.h #define XFS_RMAP_IS_BMBT_BLOCK(off) (!!((off) & XFS_RMAP_OFF_BMBT_BLOCK)) off 1412 fs/xfs/libxfs/xfs_format.h #define XFS_RMAP_IS_ATTR_FORK(off) (!!((off) & XFS_RMAP_OFF_ATTR_FORK)) off 1413 fs/xfs/libxfs/xfs_format.h #define XFS_RMAP_IS_UNWRITTEN(len) (!!((off) & XFS_RMAP_OFF_UNWRITTEN)) off 1914 fs/xfs/libxfs/xfs_ialloc.c int off; off 1947 fs/xfs/libxfs/xfs_ialloc.c off = agino - rec.ir_startino; off 1948 fs/xfs/libxfs/xfs_ialloc.c ASSERT(off >= 0 && off < XFS_INODES_PER_CHUNK); off 1949 fs/xfs/libxfs/xfs_ialloc.c ASSERT(!(rec.ir_free & XFS_INOBT_MASK(off))); off 1953 fs/xfs/libxfs/xfs_ialloc.c rec.ir_free |= XFS_INOBT_MASK(off); off 184 fs/xfs/libxfs/xfs_rmap_btree.c uint64_t off; off 196 fs/xfs/libxfs/xfs_rmap_btree.c off = be64_to_cpu(key->rmap.rm_offset); off 197 fs/xfs/libxfs/xfs_rmap_btree.c off = (XFS_RMAP_OFF(off) + adj) | (off & ~XFS_RMAP_OFF_MASK); off 198 fs/xfs/libxfs/xfs_rmap_btree.c key->rmap.rm_offset = cpu_to_be64(off); off 201 fs/xfs/libxfs/xfs_types.h bool xfs_verify_dablk(struct xfs_mount *mp, xfs_fileoff_t off); off 316 fs/xfs/scrub/attr.c size_t off; off 372 fs/xfs/scrub/attr.c off = (char *)ent - (char *)leaf; off 373 fs/xfs/scrub/attr.c if (!xchk_xattr_set_map(ds->sc, usedmap, off, off 280 fs/xfs/scrub/bmap.c xfs_fileoff_t off; off 289 fs/xfs/scrub/bmap.c off = irec->br_startoff + irec->br_blockcount - 1; off 290 fs/xfs/scrub/bmap.c if (!xfs_verify_dablk(mp, off)) off 291 fs/xfs/scrub/bmap.c xchk_fblock_set_corrupt(info->sc, info->whichfork, off); off 194 fs/xfs/scrub/dir.c xfs_dir2_data_aoff_t off; off 213 fs/xfs/scrub/dir.c off = xfs_dir2_dataptr_to_off(mp->m_dir_geo, ptr); off 233 fs/xfs/scrub/dir.c dent = (struct xfs_dir2_data_entry *)(((char *)bp->b_addr) + off); off 265 fs/xfs/scrub/dir.c if (!xfs_verify_dir_ino(mp, ino) || tag != off) off 36 fs/xfs/xfs_bio_io.c unsigned int off = offset_in_page(data); off 37 fs/xfs/xfs_bio_io.c unsigned int len = min_t(unsigned, left, PAGE_SIZE - off); off 39 fs/xfs/xfs_bio_io.c while (bio_add_page(bio, page, len, off) != len) { off 50 fs/xfs/xfs_dir2_readdir.c xfs_dir2_dataptr_t off; /* current entry's offset */ off 107 fs/xfs/xfs_dir2_readdir.c off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, off 110 fs/xfs/xfs_dir2_readdir.c if (ctx->pos > off) { off 117 fs/xfs/xfs_dir2_readdir.c ctx->pos = off & 0x7fffffff; off 32 fs/xfs/xfs_iomap.c #define XFS_WRITEIO_ALIGN(mp,off) (((off) >> mp->m_writeio_log) \ off 1703 fs/xfs/xfs_log.c unsigned int off = offset_in_page(data); off 1704 fs/xfs/xfs_log.c size_t len = min_t(size_t, count, PAGE_SIZE - off); off 1706 fs/xfs/xfs_log.c WARN_ON_ONCE(bio_add_page(bio, page, len, off) != len); off 439 fs/xfs/xfs_log_priv.h xlog_write_adv_cnt(void **ptr, int *len, int *off, size_t bytes) off 443 fs/xfs/xfs_log_priv.h *off += bytes; off 13 fs/xfs/xfs_ondisk.h #define XFS_CHECK_OFFSET(structname, member, off) \ off 14 fs/xfs/xfs_ondisk.h BUILD_BUG_ON_MSG(offsetof(structname, member) != (off), \ off 16 fs/xfs/xfs_ondisk.h "expected " #off) off 180 fs/xfs/xfs_stats.h #define XFS_STATS_INC_OFF(mp, off) \ off 182 fs/xfs/xfs_stats.h per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]++; \ off 183 fs/xfs/xfs_stats.h per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]++; \ off 186 fs/xfs/xfs_stats.h #define XFS_STATS_DEC_OFF(mp, off) \ off 188 fs/xfs/xfs_stats.h per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off]; \ off 189 fs/xfs/xfs_stats.h per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off]; \ off 192 fs/xfs/xfs_stats.h #define XFS_STATS_ADD_OFF(mp, off, inc) \ off 194 fs/xfs/xfs_stats.h per_cpu_ptr(xfsstats.xs_stats, current_cpu())->a[off] += (inc); \ off 195 fs/xfs/xfs_stats.h per_cpu_ptr(mp->m_stats.xs_stats, current_cpu())->a[off] += (inc); \ off 1162 fs/xfs/xfs_trace.h TP_PROTO(struct inode *inode, struct page *page, unsigned long off, off 1164 fs/xfs/xfs_trace.h TP_ARGS(inode, page, off, len), off 1178 fs/xfs/xfs_trace.h __entry->offset = off; off 1193 fs/xfs/xfs_trace.h TP_PROTO(struct inode *inode, struct page *page, unsigned long off, \ off 1195 fs/xfs/xfs_trace.h TP_ARGS(inode, page, off, len)) off 379 include/crypto/algapi.h static inline int crypto_requires_off(u32 type, u32 mask, u32 off) off 381 include/crypto/algapi.h return (type ^ off) & mask & off; off 439 include/linux/bio.h unsigned int len, unsigned int off, bool *same_page); off 441 include/linux/bio.h unsigned int len, unsigned int off); off 222 include/linux/blk-cgroup.h int off); off 229 include/linux/blk-cgroup.h int off, struct blkg_rwstat_sample *sum); off 64 include/linux/bpf.h u64 *imm, u32 off); off 66 include/linux/bpf.h u64 imm, u32 *off); off 125 include/linux/bpf.h u32 off = map->spin_lock_off; off 127 include/linux/bpf.h memcpy(dst, src, off); off 128 include/linux/bpf.h memcpy(dst + off + sizeof(struct bpf_spin_lock), off 129 include/linux/bpf.h src + off + sizeof(struct bpf_spin_lock), off 130 include/linux/bpf.h map->value_size - off - sizeof(struct bpf_spin_lock)); off 314 include/linux/bpf.h bool (*is_valid_access)(int off, int size, enum bpf_access_type type, off 333 include/linux/bpf.h int (*replace_insn)(struct bpf_verifier_env *env, u32 off, off 335 include/linux/bpf.h int (*remove_insns)(struct bpf_verifier_env *env, u32 off, u32 cnt); off 489 include/linux/bpf.h unsigned long off, unsigned long len); off 1064 include/linux/bpf.h bool bpf_sock_common_is_valid_access(int off, int size, off 1067 include/linux/bpf.h bool bpf_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 1075 include/linux/bpf.h static inline bool bpf_sock_common_is_valid_access(int off, int size, off 1081 include/linux/bpf.h static inline bool bpf_sock_is_valid_access(int off, int size, off 1098 include/linux/bpf.h bool bpf_tcp_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 1107 include/linux/bpf.h bool bpf_xdp_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 1116 include/linux/bpf.h static inline bool bpf_tcp_sock_is_valid_access(int off, int size, off 1131 include/linux/bpf.h static inline bool bpf_xdp_sock_is_valid_access(int off, int size, off 59 include/linux/bpf_verifier.h s32 off; off 418 include/linux/bpf_verifier.h bpf_prog_offload_replace_insn(struct bpf_verifier_env *env, u32 off, off 421 include/linux/bpf_verifier.h bpf_prog_offload_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt); off 180 include/linux/ceph/libceph.h static inline int calc_pages_for(u64 off, u64 len) off 182 include/linux/ceph/libceph.h return ((off+len+PAGE_SIZE-1) >> PAGE_SHIFT) - off 183 include/linux/ceph/libceph.h (off >> PAGE_SHIFT); off 310 include/linux/ceph/libceph.h loff_t off, size_t len); off 313 include/linux/ceph/libceph.h loff_t off, size_t len); off 316 include/linux/ceph/libceph.h loff_t off, size_t len); off 317 include/linux/ceph/libceph.h extern void ceph_zero_page_vector_range(int off, int len, struct page **pages); off 515 include/linux/ceph/osd_client.h u64 off, u64 *plen, off 524 include/linux/ceph/osd_client.h u64 off, u64 len, off 11 include/linux/ceph/striper.h u64 off, u64 len, off 36 include/linux/ceph/striper.h int ceph_file_to_extents(struct ceph_file_layout *l, u64 off, u64 len, off 42 include/linux/ceph/striper.h int ceph_iterate_extents(struct ceph_file_layout *l, u64 off, u64 len, off 615 include/linux/cgroup-defs.h char *buf, size_t nbytes, loff_t off); off 54 include/linux/compiler-gcc.h #define RELOC_HIDE(ptr, off) \ off 58 include/linux/compiler-gcc.h (typeof(ptr)) (__ptr + (off)); \ off 19 include/linux/compiler-intel.h #define RELOC_HIDE(ptr, off) \ off 22 include/linux/compiler-intel.h (typeof(ptr)) (__ptr + (off)); }) off 163 include/linux/compiler.h # define RELOC_HIDE(ptr, off) \ off 166 include/linux/compiler.h (typeof(ptr)) (__ptr + (off)); }) off 308 include/linux/compiler.h static inline void *offset_to_ptr(const int *off) off 310 include/linux/compiler.h return (void *)((unsigned long)off + *off); off 694 include/linux/fb.h extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max); off 89 include/linux/filter.h .off = 0, \ off 97 include/linux/filter.h .off = 0, \ off 107 include/linux/filter.h .off = 0, \ off 115 include/linux/filter.h .off = 0, \ off 125 include/linux/filter.h .off = 0, \ off 135 include/linux/filter.h .off = 0, \ off 143 include/linux/filter.h .off = 0, \ off 153 include/linux/filter.h .off = 0, \ off 161 include/linux/filter.h .off = 0, \ off 170 include/linux/filter.h .off = 0, \ off 187 include/linux/filter.h .off = 0, \ off 193 include/linux/filter.h .off = 0, \ off 207 include/linux/filter.h .off = 0, \ off 215 include/linux/filter.h .off = 0, \ off 225 include/linux/filter.h .off = 0, \ off 235 include/linux/filter.h .off = 0, \ off 245 include/linux/filter.h .off = OFF, \ off 255 include/linux/filter.h .off = OFF, \ off 265 include/linux/filter.h .off = OFF, \ off 275 include/linux/filter.h .off = OFF, \ off 285 include/linux/filter.h .off = OFF, \ off 295 include/linux/filter.h .off = OFF, \ off 305 include/linux/filter.h .off = OFF, \ off 315 include/linux/filter.h .off = OFF, \ off 325 include/linux/filter.h .off = OFF, \ off 335 include/linux/filter.h .off = 0, \ off 348 include/linux/filter.h .off = 0, \ off 358 include/linux/filter.h .off = OFF, \ off 368 include/linux/filter.h .off = 0, \ off 746 include/linux/filter.h bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default) off 752 include/linux/filter.h bpf_ctx_narrow_access_offset(u32 off, u32 size, u32 size_default) off 754 include/linux/filter.h u8 access_off = off & (size_default - 1); off 763 include/linux/filter.h #define bpf_ctx_wide_access_ok(off, size, type, field) \ off 765 include/linux/filter.h off >= offsetof(type, field) && \ off 766 include/linux/filter.h off + sizeof(__u64) <= offsetofend(type, field) && \ off 767 include/linux/filter.h off % sizeof(__u64) == 0) off 864 include/linux/filter.h struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, off 866 include/linux/filter.h int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt); off 1024 include/linux/filter.h unsigned long *off, char *sym); off 1031 include/linux/filter.h unsigned long *off, char **modname, char *sym) off 1033 include/linux/filter.h const char *ret = __bpf_address_lookup(addr, size, off, sym); off 1068 include/linux/filter.h unsigned long *off, char *sym) off 1086 include/linux/filter.h unsigned long *off, char **modname, char *sym) off 59 include/linux/ftrace.h unsigned long *off, char **modname, char *sym); off 66 include/linux/ftrace.h unsigned long *off, char **modname, char *sym) off 19 include/linux/isdn/capiutil.h #define CAPIMSG_U8(m, off) (m[off]) off 20 include/linux/isdn/capiutil.h #define CAPIMSG_U16(m, off) (m[off]|(m[(off)+1]<<8)) off 21 include/linux/isdn/capiutil.h #define CAPIMSG_U32(m, off) (m[off]|(m[(off)+1]<<8)|(m[(off)+2]<<16)|(m[(off)+3]<<24)) off 33 include/linux/isdn/capiutil.h static inline void capimsg_setu8(void *m, int off, __u8 val) off 35 include/linux/isdn/capiutil.h ((__u8 *)m)[off] = val; off 38 include/linux/isdn/capiutil.h static inline void capimsg_setu16(void *m, int off, __u16 val) off 40 include/linux/isdn/capiutil.h ((__u8 *)m)[off] = val & 0xff; off 41 include/linux/isdn/capiutil.h ((__u8 *)m)[off+1] = (val >> 8) & 0xff; off 44 include/linux/isdn/capiutil.h static inline void capimsg_setu32(void *m, int off, __u32 val) off 46 include/linux/isdn/capiutil.h ((__u8 *)m)[off] = val & 0xff; off 47 include/linux/isdn/capiutil.h ((__u8 *)m)[off+1] = (val >> 8) & 0xff; off 48 include/linux/isdn/capiutil.h ((__u8 *)m)[off+2] = (val >> 16) & 0xff; off 49 include/linux/isdn/capiutil.h ((__u8 *)m)[off+3] = (val >> 24) & 0xff; off 246 include/linux/kernfs.h loff_t off); off 264 include/linux/kernfs.h loff_t off); off 2821 include/linux/netdevice.h unsigned int off, size_t hdrlen, off 2832 include/linux/netdevice.h NAPI_GRO_CB(skb)->gro_remcsum_start = off + hdrlen + start; off 2836 include/linux/netdevice.h ptr = skb_gro_header_fast(skb, off); off 2837 include/linux/netdevice.h if (skb_gro_header_hard(skb, off + plen)) { off 2838 include/linux/netdevice.h ptr = skb_gro_header_slow(skb, off + plen, off); off 2849 include/linux/netdevice.h grc->offset = off + hdrlen + offset; off 467 include/linux/netfilter.h enum ip_conntrack_info ctinfo, s32 off); off 118 include/linux/netfilter/nf_conntrack_sip.h unsigned int protoff, s16 off); off 188 include/linux/netfilter/nf_conntrack_sip.h unsigned int off, unsigned int datalen, off 423 include/linux/netfilter/x_tables.h unsigned int off; off 2259 include/linux/pci.h int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt); off 2271 include/linux/pci.h int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, off 75 include/linux/perf_event.h unsigned long off, unsigned long len); off 42 include/linux/reset/bcm63xx_pmb.h u32 off, u32 op) off 47 include/linux/reset/bcm63xx_pmb.h cmd = (PMC_PMBM_START | op | (addr & 0xff) << 12 | off); off 67 include/linux/reset/bcm63xx_pmb.h u32 off, u32 *val) off 71 include/linux/reset/bcm63xx_pmb.h ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_READ); off 78 include/linux/reset/bcm63xx_pmb.h u32 off, u32 val) off 83 include/linux/reset/bcm63xx_pmb.h ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_WRITE); off 1105 include/linux/skbuff.h void skb_headers_offset_update(struct sk_buff *skb, int off); off 2105 include/linux/skbuff.h struct page *page, int off, int size) off 2115 include/linux/skbuff.h frag->bv_offset = off; off 2138 include/linux/skbuff.h struct page *page, int off, int size) off 2140 include/linux/skbuff.h __skb_fill_page_desc(skb, i, page, off, size); off 2144 include/linux/skbuff.h void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, off 3220 include/linux/skbuff.h const int off = skb->len; off 3226 include/linux/skbuff.h skb->csum = csum_block_add(skb->csum, csum, off); off 3232 include/linux/skbuff.h __skb_trim(skb, off); off 3237 include/linux/skbuff.h const struct page *page, int off) off 3245 include/linux/skbuff.h off == skb_frag_off(frag) + skb_frag_size(frag); off 3295 include/linux/skbuff.h unsigned int off) off 3299 include/linux/skbuff.h csum_partial(start, len, 0), off); off 3323 include/linux/skbuff.h unsigned int off) off 3327 include/linux/skbuff.h csum_partial(start, len, 0), off); off 3471 include/linux/skbuff.h int *off, int *err, off 3476 include/linux/skbuff.h int *off, int *err, off 3481 include/linux/skbuff.h int *off, int *err); off 3539 include/linux/skbuff.h struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy, off 4473 include/linux/skbuff.h bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off); off 81 include/linux/skmsg.h u32 off; off 114 include/linux/skmsg.h u32 off, u32 len); off 1013 include/linux/syscalls.h unsigned long off, unsigned long len, off 1016 include/linux/syscalls.h unsigned long off, unsigned long len, off 41 include/linux/thermal.h #define DECI_KELVIN_TO_MILLICELSIUS_WITH_OFFSET(t, off) (((t) - (off)) * 100) off 43 include/linux/thermal.h #define MILLICELSIUS_TO_DECI_KELVIN_WITH_OFFSET(t, off) (((t) / 100) + (off)) off 67 include/linux/virtio_net.h u16 off = __virtio16_to_cpu(little_endian, hdr->csum_offset); off 69 include/linux/virtio_net.h if (!skb_partial_csum_set(skb, start, off)) off 57 include/linux/virtio_vsock.h u32 off; off 74 include/linux/vlynq.h void (*off)(struct vlynq_device *dev); off 200 include/misc/cxl.h loff_t *off); off 166 include/net/dn_nsp.h static __inline__ void seq_add(__u16 *seq, __u16 off) off 168 include/net/dn_nsp.h (*seq) += off; off 49 include/net/ip_vs.h __u32 off; /* Where IP or IPv4 header starts */ off 74 include/net/ip_vs.h iphdr->off = offset; off 35 include/net/netfilter/nf_conntrack_seqadj.h s32 off); off 37 include/net/netfilter/nf_conntrack_seqadj.h __be32 seq, s32 off); off 39 include/net/netfilter/nf_conntrack_seqadj.h enum ip_conntrack_info ctinfo, s32 off); off 551 include/net/sock.h s32 off = READ_ONCE(sk->sk_peek_off); off 553 include/net/sock.h if (unlikely(off >= 0)) { off 554 include/net/sock.h off = max_t(s32, off - val, 0); off 555 include/net/sock.h WRITE_ONCE(sk->sk_peek_off, off); off 2015 include/net/sock.h int off, int copy) off 2019 include/net/sock.h err = skb_do_copy_data_nocache(sk, skb, from, page_address(page) + off, off 65 include/net/tc_act/tc_pedit.h return to_pedit(a)->tcfp_keys[index].off; off 179 include/net/udp.h unsigned int hlen, off; off 181 include/net/udp.h off = skb_gro_offset(skb); off 182 include/net/udp.h hlen = off + sizeof(*uh); off 183 include/net/udp.h uh = skb_gro_header_fast(skb, off); off 185 include/net/udp.h uh = skb_gro_header_slow(skb, hlen, off); off 268 include/net/udp.h int noblock, int *off, int *err); off 272 include/net/udp.h int off = 0; off 274 include/net/udp.h return __skb_recv_udp(sk, flags, noblock, &off, err); off 383 include/net/udp.h static inline int copy_linear_skb(struct sk_buff *skb, int len, int off, off 388 include/net/udp.h n = copy_to_iter(skb->data + off, len, to); off 105 include/net/udplite.h const int off = skb_transport_offset(skb); off 106 include/net/udplite.h const int len = skb->len - off; off 108 include/net/udplite.h csum = skb_checksum(skb, off, (cscov > len)? len : cscov, csum); off 120 include/net/udplite.h const int off = skb_transport_offset(skb); off 121 include/net/udplite.h int len = skb->len - off; off 130 include/net/udplite.h return skb_checksum(skb, off, len, 0); off 159 include/soc/fsl/qman.h int off, int len) off 162 include/soc/fsl/qman.h ((off << QM_FD_OFF_SHIFT) & QM_FD_OFF_MASK)); off 165 include/soc/fsl/qman.h #define qm_fd_set_contig(fd, off, len) \ off 166 include/soc/fsl/qman.h qm_fd_set_param(fd, qm_fd_contig, off, len) off 167 include/soc/fsl/qman.h #define qm_fd_set_sg(fd, off, len) qm_fd_set_param(fd, qm_fd_sg, off, len) off 827 include/trace/events/afs.h TP_PROTO(struct afs_vnode *vnode, loff_t off, loff_t i_size), off 829 include/trace/events/afs.h TP_ARGS(vnode, off, i_size), off 833 include/trace/events/afs.h __field(loff_t, off ) off 839 include/trace/events/afs.h __entry->off = off; off 844 include/trace/events/afs.h __entry->vnode, __entry->off, __entry->i_size) off 13 include/trace/events/percpu.h size_t align, void *base_addr, int off, void __percpu *ptr), off 15 include/trace/events/percpu.h TP_ARGS(reserved, is_atomic, size, align, base_addr, off, ptr), off 23 include/trace/events/percpu.h __field( int, off ) off 33 include/trace/events/percpu.h __entry->off = off; off 40 include/trace/events/percpu.h __entry->base_addr, __entry->off, __entry->ptr) off 45 include/trace/events/percpu.h TP_PROTO(void *base_addr, int off, void __percpu *ptr), off 47 include/trace/events/percpu.h TP_ARGS(base_addr, off, ptr), off 51 include/trace/events/percpu.h __field( int, off ) off 57 include/trace/events/percpu.h __entry->off = off; off 62 include/trace/events/percpu.h __entry->base_addr, __entry->off, __entry->ptr) off 69 include/uapi/linux/bpf.h __s16 off; /* signed offset */ off 805 include/uapi/linux/fuse.h uint64_t off; off 829 include/uapi/linux/fuse.h int64_t off; off 22 include/uapi/linux/io_uring.h __u64 off; /* offset into file */ off 210 include/uapi/linux/pkt_cls.h int off; off 220 include/uapi/linux/pkt_cls.h __u16 off; off 60 include/uapi/linux/ptrace.h __u64 off; /* from which siginfo to start */ off 55 include/uapi/linux/tc_act/tc_pedit.h __u32 off; /*offset */ off 11 include/uapi/linux/tc_ematch/tc_em_cmp.h __u16 off; off 9 include/uapi/linux/tc_ematch/tc_em_nbyte.h __u16 off; off 70 include/video/pm3fb.h #define PM3ByApertureMode_PATCH_OFFSET_X(off) (((off) & 0x7f) << 9) off 71 include/video/pm3fb.h #define PM3ByApertureMode_PATCH_OFFSET_Y(off) (((off) & 0x7f) << 16) off 147 include/video/pm3fb.h #define PM3VideoControl_PATCH_OFFSET_X(off) (((off) & 0x3f) << 22) off 148 include/video/pm3fb.h #define PM3VideoControl_PATCH_OFFSET_Y(off) (((off) & 0x3f) << 28) off 563 ipc/mqueue.c size_t count, loff_t *off) off 581 ipc/mqueue.c ret = simple_read_from_buffer(u_data, count, off, buffer, off 155 kernel/bpf/arraymap.c u32 off) off 161 kernel/bpf/arraymap.c if (off >= map->value_size) off 169 kernel/bpf/arraymap.c u32 *off) off 180 kernel/bpf/arraymap.c *off = imm - base; off 231 kernel/bpf/arraymap.c int cpu, off = 0; off 245 kernel/bpf/arraymap.c bpf_long_memcpy(value + off, per_cpu_ptr(pptr, cpu), size); off 246 kernel/bpf/arraymap.c off += size; off 315 kernel/bpf/arraymap.c int cpu, off = 0; off 340 kernel/bpf/arraymap.c bpf_long_memcpy(per_cpu_ptr(pptr, cpu), value + off, size); off 341 kernel/bpf/arraymap.c off += size; off 245 kernel/bpf/btf.c u32 off; off 2221 kernel/bpf/btf.c u32 i, off = -ENOENT; off 2236 kernel/bpf/btf.c if (off != -ENOENT) off 2239 kernel/bpf/btf.c off = btf_member_bit_offset(t, member); off 2240 kernel/bpf/btf.c if (off % 8) off 2243 kernel/bpf/btf.c off /= 8; off 2244 kernel/bpf/btf.c if (off % __alignof__(struct bpf_spin_lock)) off 2248 kernel/bpf/btf.c return off; off 3160 kernel/bpf/btf.c return (int)(x->off - y->off) ? : (int)(x->len - y->len); off 3186 kernel/bpf/btf.c if (expected_total < secs[i].off) { off 3190 kernel/bpf/btf.c if (total < secs[i].off) { off 3195 kernel/bpf/btf.c if (total > secs[i].off) { off 822 kernel/bpf/cgroup.c static bool cgroup_dev_is_valid_access(int off, int size, off 832 kernel/bpf/cgroup.c if (off < 0 || off + size > sizeof(struct bpf_cgroup_dev_ctx)) off 835 kernel/bpf/cgroup.c if (off % size != 0) off 838 kernel/bpf/cgroup.c switch (off) { off 841 kernel/bpf/cgroup.c if (!bpf_ctx_narrow_access_ok(off, size, size_default)) off 1314 kernel/bpf/cgroup.c static bool sysctl_is_valid_access(int off, int size, enum bpf_access_type type, off 1320 kernel/bpf/cgroup.c if (off < 0 || off + size > sizeof(struct bpf_sysctl) || off % size) off 1323 kernel/bpf/cgroup.c switch (off) { off 1328 kernel/bpf/cgroup.c return bpf_ctx_narrow_access_ok(off, size, size_default); off 1332 kernel/bpf/cgroup.c return bpf_ctx_narrow_access_ok(off, size, size_default); off 1349 kernel/bpf/cgroup.c switch (si->off) { off 1431 kernel/bpf/cgroup.c static bool cg_sockopt_is_valid_access(int off, int size, off 1438 kernel/bpf/cgroup.c if (off < 0 || off >= sizeof(struct bpf_sockopt)) off 1441 kernel/bpf/cgroup.c if (off % size != 0) off 1445 kernel/bpf/cgroup.c switch (off) { off 1465 kernel/bpf/cgroup.c switch (off) { off 1506 kernel/bpf/cgroup.c switch (si->off) { off 299 kernel/bpf/core.c dst[i].off == 0) { off 359 kernel/bpf/core.c s32 off = insn->off; off 361 kernel/bpf/core.c if (curr < pos && curr + off + 1 >= end_old) off 362 kernel/bpf/core.c off += delta; off 363 kernel/bpf/core.c else if (curr >= end_new && curr + off + 1 < end_new) off 364 kernel/bpf/core.c off -= delta; off 365 kernel/bpf/core.c if (off < off_min || off > off_max) off 368 kernel/bpf/core.c insn->off = off; off 412 kernel/bpf/core.c static void bpf_adj_linfo(struct bpf_prog *prog, u32 off, u32 delta) off 424 kernel/bpf/core.c if (off < linfo[i].insn_off) off 432 kernel/bpf/core.c struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, off 442 kernel/bpf/core.c memcpy(prog->insnsi + off, patch, sizeof(*patch)); off 454 kernel/bpf/core.c (err = bpf_adj_branches(prog, off, off + 1, off + len, true))) off 476 kernel/bpf/core.c insn_rest = insn_adj_cnt - off - len; off 478 kernel/bpf/core.c memmove(prog_adj->insnsi + off + len, prog_adj->insnsi + off + 1, off 480 kernel/bpf/core.c memcpy(prog_adj->insnsi + off, patch, sizeof(*patch) * len); off 486 kernel/bpf/core.c BUG_ON(bpf_adj_branches(prog_adj, off, off + 1, off + len, false)); off 488 kernel/bpf/core.c bpf_adj_linfo(prog_adj, off, insn_delta); off 493 kernel/bpf/core.c int bpf_remove_insns(struct bpf_prog *prog, u32 off, u32 cnt) off 498 kernel/bpf/core.c memmove(prog->insnsi + off, prog->insnsi + off + cnt, off 499 kernel/bpf/core.c sizeof(struct bpf_insn) * (prog->len - off - cnt)); off 502 kernel/bpf/core.c return WARN_ON_ONCE(bpf_adj_branches(prog, off, off + cnt, off, false)); off 681 kernel/bpf/core.c unsigned long *off, char *sym) off 696 kernel/bpf/core.c if (off) off 697 kernel/bpf/core.c *off = addr - symbol_start; off 861 kernel/bpf/core.c s16 off = insn->off; off 874 kernel/bpf/core.c off >= 0 && off < prog->aux->func_cnt) off 875 kernel/bpf/core.c addr = (u8 *)prog->aux->func[off]->bpf_func; off 898 kernel/bpf/core.c s16 off; off 971 kernel/bpf/core.c off = from->off; off 972 kernel/bpf/core.c if (off < 0) off 973 kernel/bpf/core.c off -= 2; off 976 kernel/bpf/core.c *to++ = BPF_JMP_REG(from->code, from->dst_reg, BPF_REG_AX, off); off 991 kernel/bpf/core.c off = from->off; off 992 kernel/bpf/core.c if (off < 0) off 993 kernel/bpf/core.c off -= 2; off 997 kernel/bpf/core.c off); off 1020 kernel/bpf/core.c *to++ = BPF_STX_MEM(from->code, from->dst_reg, BPF_REG_AX, from->off); off 1455 kernel/bpf/core.c insn + insn->off + 1); off 1486 kernel/bpf/core.c insn += insn->off; off 1494 kernel/bpf/core.c insn += insn->off; \ off 1500 kernel/bpf/core.c insn += insn->off; \ off 1506 kernel/bpf/core.c insn += insn->off; \ off 1512 kernel/bpf/core.c insn += insn->off; \ off 1531 kernel/bpf/core.c *(SIZE *)(unsigned long) (DST + insn->off) = SRC; \ off 1534 kernel/bpf/core.c *(SIZE *)(unsigned long) (DST + insn->off) = IMM; \ off 1537 kernel/bpf/core.c DST = *(SIZE *)(unsigned long) (SRC + insn->off); \ off 1547 kernel/bpf/core.c (DST + insn->off)); off 1551 kernel/bpf/core.c (DST + insn->off)); off 1631 kernel/bpf/core.c insn->off = (s16) insn->imm; off 155 kernel/bpf/disasm.c insn->off, insn->src_reg); off 160 kernel/bpf/disasm.c insn->dst_reg, insn->off, off 173 kernel/bpf/disasm.c insn->off, insn->imm); off 182 kernel/bpf/disasm.c insn->src_reg, insn->off); off 235 kernel/bpf/disasm.c insn->code, insn->off); off 245 kernel/bpf/disasm.c insn->src_reg, insn->off); off 252 kernel/bpf/disasm.c insn->imm, insn->off); off 705 kernel/bpf/hashtab.c int off = 0, cpu; off 709 kernel/bpf/hashtab.c value + off, size); off 710 kernel/bpf/hashtab.c off += size; off 1288 kernel/bpf/hashtab.c int cpu, off = 0; off 1305 kernel/bpf/hashtab.c bpf_long_memcpy(value + off, off 1307 kernel/bpf/hashtab.c off += size; off 176 kernel/bpf/local_storage.c int cpu, off = 0; off 192 kernel/bpf/local_storage.c bpf_long_memcpy(value + off, off 194 kernel/bpf/local_storage.c off += size; off 206 kernel/bpf/local_storage.c int cpu, off = 0; off 228 kernel/bpf/local_storage.c value + off, size); off 229 kernel/bpf/local_storage.c off += size; off 178 kernel/bpf/offload.c bpf_prog_offload_replace_insn(struct bpf_verifier_env *env, u32 off, off 190 kernel/bpf/offload.c ret = ops->replace_insn(env, off, insn); off 197 kernel/bpf/offload.c bpf_prog_offload_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) off 206 kernel/bpf/offload.c ret = offload->offdev->ops->remove_insns(env, off, cnt); off 2227 kernel/bpf/syscall.c unsigned long addr, u32 *off, off 2233 kernel/bpf/syscall.c for (i = 0, *off = 0; i < prog->aux->used_map_cnt; i++) { off 2241 kernel/bpf/syscall.c if (!map->ops->map_direct_value_meta(map, addr, off)) { off 2254 kernel/bpf/syscall.c u32 off, type; off 2282 kernel/bpf/syscall.c map = bpf_map_from_imm(prog, imm, &off, &type); off 2286 kernel/bpf/syscall.c insns[i + 1].imm = off; off 18 kernel/bpf/sysfs_btf.c char *buf, loff_t off, size_t len) off 20 kernel/bpf/sysfs_btf.c memcpy(buf, __start_BTF + off, len); off 454 kernel/bpf/verifier.c verbose(env, "%lld", reg->var_off.value + reg->off); off 460 kernel/bpf/verifier.c verbose(env, ",off=%d", reg->off); off 523 kernel/bpf/verifier.c verbose(env, "%lld", reg->var_off.value + reg->off); off 920 kernel/bpf/verifier.c reg->off == 0 && off 1087 kernel/bpf/verifier.c static int find_subprog(struct bpf_verifier_env *env, int off) off 1091 kernel/bpf/verifier.c p = bsearch(&off, env->subprog_info, env->subprog_cnt, off 1099 kernel/bpf/verifier.c static int add_subprog(struct bpf_verifier_env *env, int off) off 1104 kernel/bpf/verifier.c if (off >= insn_cnt || off < 0) { off 1108 kernel/bpf/verifier.c ret = find_subprog(env, off); off 1115 kernel/bpf/verifier.c env->subprog_info[env->subprog_cnt++].start = off; off 1123 kernel/bpf/verifier.c int i, ret, subprog_start, subprog_end, off, cur_subprog = 0; off 1167 kernel/bpf/verifier.c off = i + insn[i].off + 1; off 1168 kernel/bpf/verifier.c if (off < subprog_start || off >= subprog_end) { off 1169 kernel/bpf/verifier.c verbose(env, "jump out of range from insn %d to %d\n", i, off); off 1209 kernel/bpf/verifier.c parent->var_off.value, parent->off); off 1516 kernel/bpf/verifier.c spi = (-insn->off - 1) / BPF_REG_SIZE; off 1535 kernel/bpf/verifier.c spi = (-insn->off - 1) / BPF_REG_SIZE; off 1895 kernel/bpf/verifier.c int off, int size, int value_regno, int insn_idx) off 1898 kernel/bpf/verifier.c int i, slot = -off - 1, spi = slot / BPF_REG_SIZE, err; off 2023 kernel/bpf/verifier.c int off, int size, int value_regno) off 2027 kernel/bpf/verifier.c int i, slot = -off - 1, spi = slot / BPF_REG_SIZE; off 2033 kernel/bpf/verifier.c off, size); off 2076 kernel/bpf/verifier.c off); off 2091 kernel/bpf/verifier.c off, i, size); off 2124 kernel/bpf/verifier.c int off, int size) off 2135 kernel/bpf/verifier.c tn_buf, off, size); off 2139 kernel/bpf/verifier.c if (off >= 0 || off < -MAX_BPF_STACK) { off 2140 kernel/bpf/verifier.c verbose(env, "invalid stack off=%d size=%d\n", off, size); off 2148 kernel/bpf/verifier.c int off, int size, enum bpf_access_type type) off 2156 kernel/bpf/verifier.c map->value_size, off, size); off 2162 kernel/bpf/verifier.c map->value_size, off, size); off 2170 kernel/bpf/verifier.c static int __check_map_access(struct bpf_verifier_env *env, u32 regno, int off, off 2176 kernel/bpf/verifier.c if (off < 0 || size < 0 || (size == 0 && !zero_size_allowed) || off 2177 kernel/bpf/verifier.c off + size > map->value_size) { off 2179 kernel/bpf/verifier.c map->value_size, off, size); off 2187 kernel/bpf/verifier.c int off, int size, bool zero_size_allowed) off 2209 kernel/bpf/verifier.c (off + reg->smin_value != (s64)(s32)(off + reg->smin_value)) || off 2210 kernel/bpf/verifier.c reg->smin_value + off < 0)) { off 2215 kernel/bpf/verifier.c err = __check_map_access(env, regno, reg->smin_value + off, size, off 2232 kernel/bpf/verifier.c err = __check_map_access(env, regno, reg->umax_value + off, size, off 2246 kernel/bpf/verifier.c if (reg->smin_value + off < lock + sizeof(struct bpf_spin_lock) && off 2247 kernel/bpf/verifier.c lock < reg->umax_value + off + size) { off 2298 kernel/bpf/verifier.c int off, int size, bool zero_size_allowed) off 2303 kernel/bpf/verifier.c if (off < 0 || size < 0 || (size == 0 && !zero_size_allowed) || off 2304 kernel/bpf/verifier.c (u64)off + size > reg->range) { off 2306 kernel/bpf/verifier.c off, size, regno, reg->id, reg->off, reg->range); off 2312 kernel/bpf/verifier.c static int check_packet_access(struct bpf_verifier_env *env, u32 regno, int off, off 2332 kernel/bpf/verifier.c err = __check_packet_access(env, regno, off, size, zero_size_allowed); off 2346 kernel/bpf/verifier.c off + reg->umax_value + size - 1); off 2352 kernel/bpf/verifier.c static int check_ctx_access(struct bpf_verifier_env *env, int insn_idx, int off, int size, off 2360 kernel/bpf/verifier.c env->ops->is_valid_access(off, size, t, env->prog, &info)) { off 2372 kernel/bpf/verifier.c if (env->prog->aux->max_ctx_offset < off + size) off 2373 kernel/bpf/verifier.c env->prog->aux->max_ctx_offset = off + size; off 2377 kernel/bpf/verifier.c verbose(env, "invalid bpf_context access off=%d size=%d\n", off, size); off 2381 kernel/bpf/verifier.c static int check_flow_keys_access(struct bpf_verifier_env *env, int off, off 2384 kernel/bpf/verifier.c if (size < 0 || off < 0 || off 2385 kernel/bpf/verifier.c (u64)off + size > sizeof(struct bpf_flow_keys)) { off 2387 kernel/bpf/verifier.c off, size); off 2394 kernel/bpf/verifier.c u32 regno, int off, int size, off 2410 kernel/bpf/verifier.c valid = bpf_sock_common_is_valid_access(off, size, t, &info); off 2413 kernel/bpf/verifier.c valid = bpf_sock_is_valid_access(off, size, t, &info); off 2416 kernel/bpf/verifier.c valid = bpf_tcp_sock_is_valid_access(off, size, t, &info); off 2419 kernel/bpf/verifier.c valid = bpf_xdp_sock_is_valid_access(off, size, t, &info); off 2433 kernel/bpf/verifier.c regno, reg_type_str[reg->type], off, size); off 2479 kernel/bpf/verifier.c int off, int size, bool strict) off 2498 kernel/bpf/verifier.c reg_off = tnum_add(reg->var_off, tnum_const(ip_align + reg->off + off)); off 2505 kernel/bpf/verifier.c ip_align, tn_buf, reg->off, off, size); off 2515 kernel/bpf/verifier.c int off, int size, bool strict) off 2523 kernel/bpf/verifier.c reg_off = tnum_add(reg->var_off, tnum_const(reg->off + off)); off 2529 kernel/bpf/verifier.c pointer_desc, tn_buf, reg->off, off, size); off 2537 kernel/bpf/verifier.c const struct bpf_reg_state *reg, int off, off 2549 kernel/bpf/verifier.c return check_pkt_ptr_alignment(env, reg, off, size, strict); off 2582 kernel/bpf/verifier.c return check_generic_ptr_alignment(env, reg, pointer_desc, off, size, off 2588 kernel/bpf/verifier.c int off) off 2592 kernel/bpf/verifier.c if (stack >= -off) off 2596 kernel/bpf/verifier.c env->subprog_info[func->subprogno].stack_depth = -off; off 2686 kernel/bpf/verifier.c if (reg->off) { off 2688 kernel/bpf/verifier.c regno, reg->off); off 2705 kernel/bpf/verifier.c int regno, int off, int size) off 2707 kernel/bpf/verifier.c if (off < 0) { off 2710 kernel/bpf/verifier.c regno, off, size); off 2719 kernel/bpf/verifier.c regno, off, tn_buf); off 2722 kernel/bpf/verifier.c if (off + size > env->prog->aux->max_tp_access) off 2723 kernel/bpf/verifier.c env->prog->aux->max_tp_access = off + size; off 2759 kernel/bpf/verifier.c int off, int bpf_size, enum bpf_access_type t, off 2772 kernel/bpf/verifier.c err = check_ptr_alignment(env, reg, off, size, strict_alignment_once); off 2777 kernel/bpf/verifier.c off += reg->off; off 2785 kernel/bpf/verifier.c err = check_map_access_type(env, regno, off, size, t); off 2788 kernel/bpf/verifier.c err = check_map_access(env, regno, off, size, false); off 2805 kernel/bpf/verifier.c err = check_ctx_access(env, insn_idx, off, size, t, ®_type); off 2829 kernel/bpf/verifier.c off += reg->var_off.value; off 2830 kernel/bpf/verifier.c err = check_stack_access(env, reg, off, size); off 2835 kernel/bpf/verifier.c err = update_stack_depth(env, state, off); off 2840 kernel/bpf/verifier.c err = check_stack_write(env, state, off, size, off 2843 kernel/bpf/verifier.c err = check_stack_read(env, state, off, size, off 2856 kernel/bpf/verifier.c err = check_packet_access(env, regno, off, size, false); off 2867 kernel/bpf/verifier.c err = check_flow_keys_access(env, off, size); off 2876 kernel/bpf/verifier.c err = check_sock_access(env, insn_idx, regno, off, size, t); off 2880 kernel/bpf/verifier.c err = check_tp_buffer_access(env, reg, regno, off, size); off 2933 kernel/bpf/verifier.c err = check_mem_access(env, insn_idx, insn->dst_reg, insn->off, off 2939 kernel/bpf/verifier.c return check_mem_access(env, insn_idx, insn->dst_reg, insn->off, off 2944 kernel/bpf/verifier.c int off, int access_size, off 2949 kernel/bpf/verifier.c if (off >= 0 || off < -MAX_BPF_STACK || off + access_size > 0 || off 2953 kernel/bpf/verifier.c regno, off, access_size); off 2993 kernel/bpf/verifier.c min_off = max_off = reg->var_off.value + reg->off; off 3027 kernel/bpf/verifier.c min_off = reg->smin_value + reg->off; off 3028 kernel/bpf/verifier.c max_off = reg->smax_value + reg->off; off 3106 kernel/bpf/verifier.c return check_packet_access(env, regno, reg->off, access_size, off 3109 kernel/bpf/verifier.c if (check_map_access_type(env, regno, reg->off, access_size, off 3113 kernel/bpf/verifier.c return check_map_access(env, regno, reg->off, access_size, off 3180 kernel/bpf/verifier.c if (map->spin_lock_off != val + reg->off) { off 3182 kernel/bpf/verifier.c val + reg->off); off 4211 kernel/bpf/verifier.c if (reg->off >= BPF_MAX_VAR_OFF || reg->off <= -BPF_MAX_VAR_OFF) { off 4213 kernel/bpf/verifier.c reg_type_str[type], reg->off); off 4242 kernel/bpf/verifier.c u32 off; off 4249 kernel/bpf/verifier.c off = ptr_reg->off + ptr_reg->var_off.value; off 4251 kernel/bpf/verifier.c *ptr_limit = MAX_BPF_STACK + off; off 4253 kernel/bpf/verifier.c *ptr_limit = -off; off 4257 kernel/bpf/verifier.c *ptr_limit = ptr_reg->umax_value + ptr_reg->off; off 4259 kernel/bpf/verifier.c off = ptr_reg->smin_value + ptr_reg->off; off 4260 kernel/bpf/verifier.c *ptr_limit = ptr_reg->map_ptr->value_size - off; off 4443 kernel/bpf/verifier.c if (known && (ptr_reg->off + smin_val == off 4444 kernel/bpf/verifier.c (s64)(s32)(ptr_reg->off + smin_val))) { off 4451 kernel/bpf/verifier.c dst_reg->off = ptr_reg->off + smin_val; off 4481 kernel/bpf/verifier.c dst_reg->off = ptr_reg->off; off 4510 kernel/bpf/verifier.c if (known && (ptr_reg->off - smin_val == off 4511 kernel/bpf/verifier.c (s64)(s32)(ptr_reg->off - smin_val))) { off 4519 kernel/bpf/verifier.c dst_reg->off = ptr_reg->off - smin_val; off 4545 kernel/bpf/verifier.c dst_reg->off = ptr_reg->off; off 4580 kernel/bpf/verifier.c check_map_access(env, dst, dst_reg->off, 1, false)) { off 4585 kernel/bpf/verifier.c check_stack_access(env, dst_reg, dst_reg->off + off 4971 kernel/bpf/verifier.c insn->off != 0 || insn->imm != 0) { off 4976 kernel/bpf/verifier.c if (insn->src_reg != BPF_REG_0 || insn->off != 0 || off 5003 kernel/bpf/verifier.c if (insn->imm != 0 || insn->off != 0) { off 5013 kernel/bpf/verifier.c if (insn->src_reg != BPF_REG_0 || insn->off != 0) { off 5075 kernel/bpf/verifier.c if (insn->imm != 0 || insn->off != 0) { off 5084 kernel/bpf/verifier.c if (insn->src_reg != BPF_REG_0 || insn->off != 0) { off 5152 kernel/bpf/verifier.c if (dst_reg->off < 0 || off 5153 kernel/bpf/verifier.c (dst_reg->off == 0 && range_right_open)) off 5158 kernel/bpf/verifier.c dst_reg->umax_value + dst_reg->off > MAX_PACKET_OFF) off 5164 kernel/bpf/verifier.c new_range = dst_reg->off; off 5688 kernel/bpf/verifier.c reg->off)) { off 5690 kernel/bpf/verifier.c reg->off = 0; off 5932 kernel/bpf/verifier.c *insn_idx += insn->off; off 5941 kernel/bpf/verifier.c other_branch = push_stack(env, *insn_idx + insn->off + 1, *insn_idx, off 6033 kernel/bpf/verifier.c if (insn->off != 0) { off 6056 kernel/bpf/verifier.c regs[insn->dst_reg].off = aux->map_off; off 6125 kernel/bpf/verifier.c if (insn->dst_reg != BPF_REG_0 || insn->off != 0 || off 6412 kernel/bpf/verifier.c ret = push_insn(t, t + insns[t].off + 1, off 6422 kernel/bpf/verifier.c init_explored_state(env, t + insns[t].off + 1); off 6437 kernel/bpf/verifier.c ret = push_insn(t, t + insns[t].off + 1, BRANCH, env, true); off 6979 kernel/bpf/verifier.c if (rold->off != rcur->off) off 7682 kernel/bpf/verifier.c insn->off, BPF_SIZE(insn->code), off 7732 kernel/bpf/verifier.c insn->off, BPF_SIZE(insn->code), off 7766 kernel/bpf/verifier.c insn->off, BPF_SIZE(insn->code), off 7777 kernel/bpf/verifier.c insn->off != 0 || off 7809 kernel/bpf/verifier.c env->insn_idx += insn->off + 1; off 8006 kernel/bpf/verifier.c insn[1].off != 0) { off 8045 kernel/bpf/verifier.c u32 off = insn[1].imm; off 8047 kernel/bpf/verifier.c if (off >= BPF_MAX_VAR_OFF) { off 8048 kernel/bpf/verifier.c verbose(env, "direct value offset of %u is not allowed\n", off); off 8059 kernel/bpf/verifier.c err = map->ops->map_direct_value_addr(map, &addr, off); off 8062 kernel/bpf/verifier.c map->value_size, off); off 8067 kernel/bpf/verifier.c aux->map_off = off; off 8068 kernel/bpf/verifier.c addr += off; off 8164 kernel/bpf/verifier.c struct bpf_prog *new_prog, u32 off, u32 cnt) off 8175 kernel/bpf/verifier.c old_data[off].zext_dst = insn_has_def32(env, insn + off + cnt - 1); off 8184 kernel/bpf/verifier.c memcpy(new_data, old_data, sizeof(struct bpf_insn_aux_data) * off); off 8185 kernel/bpf/verifier.c memcpy(new_data + off + cnt - 1, old_data + off, off 8186 kernel/bpf/verifier.c sizeof(struct bpf_insn_aux_data) * (prog_len - off - cnt + 1)); off 8187 kernel/bpf/verifier.c for (i = off; i < off + cnt - 1; i++) { off 8196 kernel/bpf/verifier.c static void adjust_subprog_starts(struct bpf_verifier_env *env, u32 off, u32 len) off 8204 kernel/bpf/verifier.c if (env->subprog_info[i].start <= off) off 8210 kernel/bpf/verifier.c static struct bpf_prog *bpf_patch_insn_data(struct bpf_verifier_env *env, u32 off, off 8215 kernel/bpf/verifier.c new_prog = bpf_patch_insn_single(env->prog, off, patch, len); off 8220 kernel/bpf/verifier.c env->insn_aux_data[off].orig_idx); off 8223 kernel/bpf/verifier.c if (adjust_insn_aux_data(env, new_prog, off, len)) off 8225 kernel/bpf/verifier.c adjust_subprog_starts(env, off, len); off 8230 kernel/bpf/verifier.c u32 off, u32 cnt) off 8236 kernel/bpf/verifier.c if (env->subprog_info[i].start >= off) off 8240 kernel/bpf/verifier.c if (env->subprog_info[j].start >= off + cnt) off 8245 kernel/bpf/verifier.c if (env->subprog_info[j].start != off + cnt) off 8274 kernel/bpf/verifier.c if (env->subprog_info[i].start == off) off 8285 kernel/bpf/verifier.c static int bpf_adj_linfo_after_remove(struct bpf_verifier_env *env, u32 off, off 8300 kernel/bpf/verifier.c if (linfo[i].insn_off >= off) off 8306 kernel/bpf/verifier.c if (linfo[i].insn_off < off + cnt) off 8315 kernel/bpf/verifier.c if (prog->len != off && l_cnt && off 8316 kernel/bpf/verifier.c (i == nr_linfo || linfo[i].insn_off != off + cnt)) { off 8318 kernel/bpf/verifier.c linfo[--i].insn_off = off + cnt; off 8349 kernel/bpf/verifier.c static int verifier_remove_insns(struct bpf_verifier_env *env, u32 off, u32 cnt) off 8356 kernel/bpf/verifier.c bpf_prog_offload_remove_insns(env, off, cnt); off 8358 kernel/bpf/verifier.c err = bpf_remove_insns(env->prog, off, cnt); off 8362 kernel/bpf/verifier.c err = adjust_subprog_starts_after_remove(env, off, cnt); off 8366 kernel/bpf/verifier.c err = bpf_adj_linfo_after_remove(env, off, cnt); off 8370 kernel/bpf/verifier.c memmove(aux_data + off, aux_data + off + cnt, off 8371 kernel/bpf/verifier.c sizeof(*aux_data) * (orig_prog_len - off - cnt)); off 8429 kernel/bpf/verifier.c ja.off = insn->off; off 8430 kernel/bpf/verifier.c else if (!aux_data[i + 1 + insn->off].seen) off 8431 kernel/bpf/verifier.c ja.off = 0; off 8576 kernel/bpf/verifier.c u32 target_size, size_default, off; off 8680 kernel/bpf/verifier.c off = insn->off; off 8695 kernel/bpf/verifier.c insn->off = off & ~(size_default - 1); off 8710 kernel/bpf/verifier.c off, size, size_default) * 8; off 8770 kernel/bpf/verifier.c insn->off = subprog; off 8840 kernel/bpf/verifier.c subprog = insn->off; off 8886 kernel/bpf/verifier.c insn->off = env->insn_aux_data[i].call_imm; off 8887 kernel/bpf/verifier.c subprog = find_subprog(env, i + insn->off + 1); off 8909 kernel/bpf/verifier.c insn->off = 0; off 492 kernel/cgroup/cgroup-v1.c char *buf, size_t nbytes, loff_t off, off 534 kernel/cgroup/cgroup-v1.c char *buf, size_t nbytes, loff_t off) off 536 kernel/cgroup/cgroup-v1.c return __cgroup1_procs_write(of, buf, nbytes, off, true); off 540 kernel/cgroup/cgroup-v1.c char *buf, size_t nbytes, loff_t off) off 542 kernel/cgroup/cgroup-v1.c return __cgroup1_procs_write(of, buf, nbytes, off, false); off 546 kernel/cgroup/cgroup-v1.c char *buf, size_t nbytes, loff_t off) off 3276 kernel/cgroup/cgroup.c loff_t off) off 3442 kernel/cgroup/cgroup.c size_t nbytes, loff_t off) off 3477 kernel/cgroup/cgroup.c char *buf, size_t nbytes, loff_t off) off 3520 kernel/cgroup/cgroup.c char *buf, size_t nbytes, loff_t off) off 3653 kernel/cgroup/cgroup.c loff_t off) off 3660 kernel/cgroup/cgroup.c loff_t off) off 3667 kernel/cgroup/cgroup.c loff_t off) off 3694 kernel/cgroup/cgroup.c char *buf, size_t nbytes, loff_t off) off 3736 kernel/cgroup/cgroup.c size_t nbytes, loff_t off) off 3756 kernel/cgroup/cgroup.c return cft->write(of, buf, nbytes, off); off 4767 kernel/cgroup/cgroup.c char *buf, size_t nbytes, loff_t off) off 4808 kernel/cgroup/cgroup.c char *buf, size_t nbytes, loff_t off) off 2332 kernel/cgroup/cpuset.c char *buf, size_t nbytes, loff_t off) off 2501 kernel/cgroup/cpuset.c size_t nbytes, loff_t off) off 420 kernel/cgroup/legacy_freezer.c char *buf, size_t nbytes, loff_t off) off 256 kernel/cgroup/pids.c size_t nbytes, loff_t off) off 426 kernel/cgroup/rdma.c char *buf, size_t nbytes, loff_t off) off 499 kernel/debug/kdb/kdb_main.c unsigned long off = 0; off 612 kernel/debug/kdb/kdb_main.c diag = kdbgetularg(cp, &off); off 617 kernel/debug/kdb/kdb_main.c off = -off; off 620 kernel/debug/kdb/kdb_main.c *offset += off; off 623 kernel/debug/kdb/kdb_main.c *value += off; off 243 kernel/dma/coherent.c unsigned long off = vma->vm_pgoff; off 249 kernel/dma/coherent.c if (off < count && user_count <= count - off) { off 250 kernel/dma/coherent.c unsigned long pfn = mem->pfn_base + start + off; off 196 kernel/dma/mapping.c unsigned long off = vma->vm_pgoff; off 205 kernel/dma/mapping.c if (off >= count || user_count > count - off) off 7589 kernel/events/core.c unsigned long off = vma->vm_pgoff << PAGE_SHIFT; off 7592 kernel/events/core.c if (!perf_addr_filter_match(filter, file, off, vma_size)) off 7595 kernel/events/core.c if (filter->offset < off) { off 7597 kernel/events/core.c fr->size = min(vma_size, filter->size - (off - filter->offset)); off 7599 kernel/events/core.c fr->start = vma->vm_start + filter->offset - off; off 9096 kernel/events/core.c int off = trace_event_get_offsets(event->tp_event); off 9098 kernel/events/core.c if (prog->aux->max_ctx_offset > off) { off 406 kernel/gcov/clang.c static size_t store_gcov_u32(void *buffer, size_t off, u32 v) off 411 kernel/gcov/clang.c data = buffer + off; off 430 kernel/gcov/clang.c static size_t store_gcov_u64(void *buffer, size_t off, u64 v) off 435 kernel/gcov/clang.c data = buffer + off; off 393 kernel/gcov/gcc_4_7.c static size_t store_gcov_u32(void *buffer, size_t off, u32 v) off 398 kernel/gcov/gcc_4_7.c data = buffer + off; off 417 kernel/gcov/gcc_4_7.c static size_t store_gcov_u64(void *buffer, size_t off, u64 v) off 422 kernel/gcov/gcc_4_7.c data = buffer + off; off 57 kernel/kallsyms.c static unsigned int kallsyms_expand_symbol(unsigned int off, off 64 kernel/kallsyms.c data = &kallsyms_names[off]; off 72 kernel/kallsyms.c off += len + 1; off 101 kernel/kallsyms.c return off; off 108 kernel/kallsyms.c static char kallsyms_get_symbol_type(unsigned int off) off 114 kernel/kallsyms.c return kallsyms_token_table[kallsyms_token_index[kallsyms_names[off + 1]]]; off 167 kernel/kallsyms.c unsigned int off; off 169 kernel/kallsyms.c for (i = 0, off = 0; i < kallsyms_num_syms; i++) { off 170 kernel/kallsyms.c off = kallsyms_expand_symbol(off, namebuf, ARRAY_SIZE(namebuf)); off 185 kernel/kallsyms.c unsigned int off; off 188 kernel/kallsyms.c for (i = 0, off = 0; i < kallsyms_num_syms; i++) { off 189 kernel/kallsyms.c off = kallsyms_expand_symbol(off, namebuf, ARRAY_SIZE(namebuf)); off 510 kernel/kallsyms.c unsigned off = iter->nameoff; off 515 kernel/kallsyms.c iter->type = kallsyms_get_symbol_type(off); off 517 kernel/kallsyms.c off = kallsyms_expand_symbol(off, iter->name, ARRAY_SIZE(iter->name)); off 519 kernel/kallsyms.c return off - iter->nameoff; off 277 kernel/kcov.c unsigned long size, off; off 295 kernel/kcov.c for (off = 0; off < size; off += PAGE_SIZE) { off 296 kernel/kcov.c page = vmalloc_to_page(kcov->area + off); off 297 kernel/kcov.c if (vm_insert_page(vma, vma->vm_start + off, page)) off 35 kernel/kheaders.c char *buf, loff_t off, size_t len) off 37 kernel/kheaders.c memcpy(buf, &kernel_headers_data + off, len); off 194 kernel/ksysfs.c char *buf, loff_t off, size_t count) off 196 kernel/ksysfs.c memcpy(buf, &__start_notes + off, count); off 455 kernel/params.c int i, off, ret; off 459 kernel/params.c for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { off 462 kernel/params.c buffer[off - 1] = ','; off 465 kernel/params.c ret = arr->ops->get(buffer + off, &p); off 468 kernel/params.c off += ret; off 470 kernel/params.c buffer[off] = '\0'; off 471 kernel/params.c return off; off 677 kernel/power/swap.c size_t off; off 771 kernel/power/swap.c for (off = 0; off < LZO_UNC_SIZE; off += PAGE_SIZE) { off 779 kernel/power/swap.c memcpy(data[thr].unc + off, off 787 kernel/power/swap.c if (!off) off 790 kernel/power/swap.c data[thr].unc_len = off; off 833 kernel/power/swap.c for (off = 0; off 834 kernel/power/swap.c off < LZO_HEADER + data[thr].cmp_len; off 835 kernel/power/swap.c off += PAGE_SIZE) { off 836 kernel/power/swap.c memcpy(page, data[thr].cmp + off, PAGE_SIZE); off 1165 kernel/power/swap.c size_t off; off 1355 kernel/power/swap.c for (off = 0; off 1356 kernel/power/swap.c off < LZO_HEADER + data[thr].cmp_len; off 1357 kernel/power/swap.c off += PAGE_SIZE) { off 1358 kernel/power/swap.c memcpy(data[thr].cmp + off, off 1403 kernel/power/swap.c for (off = 0; off 1404 kernel/power/swap.c off < data[thr].unc_len; off += PAGE_SIZE) { off 1406 kernel/power/swap.c data[thr].unc + off, PAGE_SIZE); off 727 kernel/ptrace.c if (arg.off > ULONG_MAX) off 737 kernel/ptrace.c unsigned long off = arg.off + i; off 742 kernel/ptrace.c if (!off--) { off 7272 kernel/sched/core.c size_t nbytes, loff_t off, off 7306 kernel/sched/core.c loff_t off) off 7308 kernel/sched/core.c return cpu_uclamp_write(of, buf, nbytes, off, UCLAMP_MIN); off 7313 kernel/sched/core.c loff_t off) off 7315 kernel/sched/core.c return cpu_uclamp_write(of, buf, nbytes, off, UCLAMP_MAX); off 7843 kernel/sched/core.c char *buf, size_t nbytes, loff_t off) off 763 kernel/trace/bpf_trace.c static bool kprobe_prog_is_valid_access(int off, int size, enum bpf_access_type type, off 767 kernel/trace/bpf_trace.c if (off < 0 || off >= sizeof(struct pt_regs)) off 771 kernel/trace/bpf_trace.c if (off % size != 0) off 777 kernel/trace/bpf_trace.c if (off + size > sizeof(struct pt_regs)) off 872 kernel/trace/bpf_trace.c static bool tp_prog_is_valid_access(int off, int size, enum bpf_access_type type, off 876 kernel/trace/bpf_trace.c if (off < sizeof(void *) || off >= PERF_MAX_TRACE_SIZE) off 880 kernel/trace/bpf_trace.c if (off % size != 0) off 1063 kernel/trace/bpf_trace.c static bool raw_tp_prog_is_valid_access(int off, int size, off 1069 kernel/trace/bpf_trace.c if (off < 0 || off >= sizeof(__u64) * 12) off 1073 kernel/trace/bpf_trace.c if (off % size != 0) off 1086 kernel/trace/bpf_trace.c static bool raw_tp_writable_prog_is_valid_access(int off, int size, off 1091 kernel/trace/bpf_trace.c if (off == 0) { off 1096 kernel/trace/bpf_trace.c return raw_tp_prog_is_valid_access(off, size, type, prog, info); off 1107 kernel/trace/bpf_trace.c static bool pe_prog_is_valid_access(int off, int size, enum bpf_access_type type, off 1113 kernel/trace/bpf_trace.c if (off < 0 || off >= sizeof(struct bpf_perf_event_data)) off 1117 kernel/trace/bpf_trace.c if (off % size != 0) { off 1122 kernel/trace/bpf_trace.c if (off % size != 4) off 1126 kernel/trace/bpf_trace.c switch (off) { off 1129 kernel/trace/bpf_trace.c if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) off 1134 kernel/trace/bpf_trace.c if (!bpf_ctx_narrow_access_ok(off, size, size_u64)) off 1152 kernel/trace/bpf_trace.c switch (si->off) { off 1174 kernel/trace/bpf_trace.c si->off); off 5969 kernel/trace/ftrace.c unsigned long *off, char *sym) off 5985 kernel/trace/ftrace.c if (off) off 5986 kernel/trace/ftrace.c *off = addr - found_func->ip; off 5998 kernel/trace/ftrace.c unsigned long *off, char **modname, char *sym) off 6006 kernel/trace/ftrace.c ret = ftrace_func_address_lookup(mod_map, addr, size, off, sym); off 4810 kernel/workqueue.c int off; off 4813 kernel/workqueue.c off = strscpy(buf, task->comm, size); off 4814 kernel/workqueue.c if (off < 0) off 4833 kernel/workqueue.c scnprintf(buf + off, size - off, "+%s", off 4836 kernel/workqueue.c scnprintf(buf + off, size - off, "-%s", off 105 lib/bitmap.c unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; off 107 lib/bitmap.c for (k = 0; off + k < lim; ++k) { off 114 lib/bitmap.c if (!rem || off + k + 1 >= lim) off 117 lib/bitmap.c upper = src[off + k + 1]; off 118 lib/bitmap.c if (off + k + 1 == lim - 1) off 122 lib/bitmap.c lower = src[off + k]; off 123 lib/bitmap.c if (off + k == lim - 1) off 128 lib/bitmap.c if (off) off 129 lib/bitmap.c memset(&dst[lim - off], 0, off*sizeof(unsigned long)); off 151 lib/bitmap.c unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; off 152 lib/bitmap.c for (k = lim - off - 1; k >= 0; --k) { off 164 lib/bitmap.c dst[k + off] = lower | upper; off 166 lib/bitmap.c if (off) off 167 lib/bitmap.c memset(dst, 0, off*sizeof(unsigned long)); off 509 lib/bitmap.c unsigned int off; off 523 lib/bitmap.c bitmap_set(bitmap, start, min(r->end - start + 1, r->off)); off 530 lib/bitmap.c if (r->start > r->end || r->group_len == 0 || r->off > r->group_len) off 600 lib/bitmap.c str = bitmap_getnum(str + 1, &r->off); off 612 lib/bitmap.c r->off = r->end + 1; off 372 lib/iov_iter.c size_t off; off 384 lib/iov_iter.c off = i->iov_offset; off 387 lib/iov_iter.c if (off) { off 388 lib/iov_iter.c if (offset == off && buf->page == page) { off 485 lib/iov_iter.c size_t off = i->iov_offset; off 487 lib/iov_iter.c if (off && (!allocated(&i->pipe->bufs[idx]) || off == PAGE_SIZE)) { off 489 lib/iov_iter.c off = 0; off 492 lib/iov_iter.c *offp = off; off 499 lib/iov_iter.c size_t off; off 509 lib/iov_iter.c data_start(i, &idx, &off); off 511 lib/iov_iter.c *offp = off; off 512 lib/iov_iter.c if (off) { off 513 lib/iov_iter.c left -= PAGE_SIZE - off; off 544 lib/iov_iter.c size_t n, off; off 550 lib/iov_iter.c bytes = n = push_pipe(i, bytes, &idx, &off); off 553 lib/iov_iter.c for ( ; n; idx = next_idx(idx, pipe), off = 0) { off 554 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); off 555 lib/iov_iter.c memcpy_to_page(pipe->bufs[idx].page, off, addr, chunk); off 557 lib/iov_iter.c i->iov_offset = off + chunk; off 566 lib/iov_iter.c __wsum sum, size_t off) off 569 lib/iov_iter.c return csum_block_add(sum, next, off); off 577 lib/iov_iter.c size_t off = 0; off 590 lib/iov_iter.c sum = csum_and_memcpy(p + r, addr, chunk, sum, off); off 595 lib/iov_iter.c off += chunk; off 648 lib/iov_iter.c size_t n, off, xfer = 0; off 654 lib/iov_iter.c bytes = n = push_pipe(i, bytes, &idx, &off); off 657 lib/iov_iter.c for ( ; n; idx = next_idx(idx, pipe), off = 0) { off 658 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); off 661 lib/iov_iter.c rem = memcpy_mcsafe_to_page(pipe->bufs[idx].page, off, addr, off 664 lib/iov_iter.c i->iov_offset = off + chunk - rem; off 928 lib/iov_iter.c size_t n, off; off 934 lib/iov_iter.c bytes = n = push_pipe(i, bytes, &idx, &off); off 938 lib/iov_iter.c for ( ; n; idx = next_idx(idx, pipe), off = 0) { off 939 lib/iov_iter.c size_t chunk = min_t(size_t, n, PAGE_SIZE - off); off 940 lib/iov_iter.c memzero_page(pipe->bufs[idx].page, off, chunk); off 942 lib/iov_iter.c i->iov_offset = off + chunk; off 991 lib/iov_iter.c size_t off = i->iov_offset; off 994 lib/iov_iter.c if (off) { off 995 lib/iov_iter.c pipe->bufs[idx].len = off - pipe->bufs[idx].offset; off 1014 lib/iov_iter.c size_t off = i->iov_offset, left = size; off 1016 lib/iov_iter.c if (off) /* make it relative to the beginning of buffer */ off 1017 lib/iov_iter.c left += off - pipe->bufs[idx].offset; off 1057 lib/iov_iter.c size_t off = i->iov_offset; off 1059 lib/iov_iter.c size_t n = off - pipe->bufs[idx].offset; off 1061 lib/iov_iter.c off -= unroll; off 1066 lib/iov_iter.c off = 0; off 1071 lib/iov_iter.c off = pipe->bufs[idx].offset + pipe->bufs[idx].len; off 1073 lib/iov_iter.c i->iov_offset = off; off 1409 lib/iov_iter.c size_t off = 0; off 1421 lib/iov_iter.c sum = csum_block_add(sum, next, off); off 1422 lib/iov_iter.c off += v.iov_len; off 1429 lib/iov_iter.c sum, off); off 1431 lib/iov_iter.c off += v.bv_len; off 1435 lib/iov_iter.c sum, off); off 1436 lib/iov_iter.c off += v.iov_len; off 1449 lib/iov_iter.c size_t off = 0; off 1464 lib/iov_iter.c sum = csum_block_add(sum, next, off); off 1465 lib/iov_iter.c off += v.iov_len; off 1471 lib/iov_iter.c sum, off); off 1473 lib/iov_iter.c off += v.bv_len; off 1477 lib/iov_iter.c sum, off); off 1478 lib/iov_iter.c off += v.iov_len; off 1493 lib/iov_iter.c size_t off = 0; off 1509 lib/iov_iter.c sum = csum_block_add(sum, next, off); off 1510 lib/iov_iter.c off += v.iov_len; off 1517 lib/iov_iter.c v.bv_len, sum, off); off 1519 lib/iov_iter.c off += v.bv_len; off 1523 lib/iov_iter.c v.iov_len, sum, off); off 1524 lib/iov_iter.c off += v.iov_len; off 1563 lib/iov_iter.c size_t off; off 1569 lib/iov_iter.c data_start(i, &idx, &off); off 90 lib/kfifo.c unsigned int len, unsigned int off) off 96 lib/kfifo.c off &= fifo->mask; off 98 lib/kfifo.c off *= esize; off 102 lib/kfifo.c l = min(len, size - off); off 104 lib/kfifo.c memcpy(fifo->data + off, src, l); off 129 lib/kfifo.c unsigned int len, unsigned int off) off 135 lib/kfifo.c off &= fifo->mask; off 137 lib/kfifo.c off *= esize; off 141 lib/kfifo.c l = min(len, size - off); off 143 lib/kfifo.c memcpy(dst, fifo->data + off, l); off 176 lib/kfifo.c const void __user *from, unsigned int len, unsigned int off, off 184 lib/kfifo.c off &= fifo->mask; off 186 lib/kfifo.c off *= esize; off 190 lib/kfifo.c l = min(len, size - off); off 192 lib/kfifo.c ret = copy_from_user(fifo->data + off, from, l); off 237 lib/kfifo.c unsigned int len, unsigned int off, unsigned int *copied) off 244 lib/kfifo.c off &= fifo->mask; off 246 lib/kfifo.c off *= esize; off 250 lib/kfifo.c l = min(len, size - off); off 252 lib/kfifo.c ret = copy_to_user(to, fifo->data + off, l); off 300 lib/kfifo.c unsigned int off; off 311 lib/kfifo.c off = offset_in_page(buf); off 314 lib/kfifo.c while (len >= l + PAGE_SIZE - off) { off 321 lib/kfifo.c sg_set_page(sgl, page, l - off, off); off 326 lib/kfifo.c len -= l - off; off 327 lib/kfifo.c l = off = 0; off 330 lib/kfifo.c sg_set_page(sgl, page, len, off); off 335 lib/kfifo.c int nents, unsigned int len, unsigned int off) off 342 lib/kfifo.c off &= fifo->mask; off 344 lib/kfifo.c off *= esize; off 348 lib/kfifo.c l = min(len, size - off); off 350 lib/kfifo.c n = setup_sgl_buf(sgl, fifo->data + off, nents, l); off 1431 lib/vsprintf.c u8 off = 0; off 1453 lib/vsprintf.c off = 1; off 1457 lib/vsprintf.c p = ip6_compressed_string(ip6_addr + off, addr); off 1459 lib/vsprintf.c p = ip6_string(ip6_addr + off, addr, fmt6); off 160 lib/zstd/zstd_internal.h U32 off; off 166 lib/zstd/zstd_internal.h U32 off; off 207 lib/zstd/zstd_opt.h opt[pos].off = offset_; \ off 282 lib/zstd/zstd_opt.h matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex3; off 316 lib/zstd/zstd_opt.h matches[mnum].off = ZSTD_REP_MOVE_OPT + curr - matchIndex; off 481 lib/zstd/zstd_opt.h best_off = matches[match_num - 1].off; off 493 lib/zstd/zstd_opt.h price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); off 495 lib/zstd/zstd_opt.h SET_PRICE(mlen, mlen, matches[u].off, litlen, price); /* note : macro modifies last_pos */ off 539 lib/zstd/zstd_opt.h if (opt[cur].off > ZSTD_REP_MOVE_OPT) { off 542 lib/zstd/zstd_opt.h opt[cur].rep[0] = opt[cur].off - ZSTD_REP_MOVE_OPT; off 544 lib/zstd/zstd_opt.h opt[cur].rep[2] = (opt[cur].off > 1) ? opt[cur - mlen].rep[1] : opt[cur - mlen].rep[2]; off 545 lib/zstd/zstd_opt.h opt[cur].rep[1] = (opt[cur].off > 0) ? opt[cur - mlen].rep[0] : opt[cur - mlen].rep[1]; off 547 lib/zstd/zstd_opt.h ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); off 595 lib/zstd/zstd_opt.h best_off = matches[match_num - 1].off; off 610 lib/zstd/zstd_opt.h matches[u].off - 1, mlen - MINMATCH, ultra); off 612 lib/zstd/zstd_opt.h price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); off 615 lib/zstd/zstd_opt.h price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, ultra); off 619 lib/zstd/zstd_opt.h SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); off 627 lib/zstd/zstd_opt.h best_off = opt[last_pos].off; off 636 lib/zstd/zstd_opt.h offset = opt[cur].off; off 638 lib/zstd/zstd_opt.h opt[cur].off = best_off; off 657 lib/zstd/zstd_opt.h offset = opt[cur].off; off 796 lib/zstd/zstd_opt.h best_off = matches[match_num - 1].off; off 810 lib/zstd/zstd_opt.h price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); off 812 lib/zstd/zstd_opt.h SET_PRICE(mlen, mlen, matches[u].off, litlen, price); off 847 lib/zstd/zstd_opt.h if (opt[cur].off > ZSTD_REP_MOVE_OPT) { off 850 lib/zstd/zstd_opt.h opt[cur].rep[0] = opt[cur].off - ZSTD_REP_MOVE_OPT; off 852 lib/zstd/zstd_opt.h opt[cur].rep[2] = (opt[cur].off > 1) ? opt[cur - mlen].rep[1] : opt[cur - mlen].rep[2]; off 853 lib/zstd/zstd_opt.h opt[cur].rep[1] = (opt[cur].off > 0) ? opt[cur - mlen].rep[0] : opt[cur - mlen].rep[1]; off 855 lib/zstd/zstd_opt.h ((opt[cur].off == ZSTD_REP_MOVE_OPT) && (mlen != 1)) ? (opt[cur - mlen].rep[0] - 1) : (opt[cur - mlen].rep[opt[cur].off]); off 909 lib/zstd/zstd_opt.h best_off = matches[match_num - 1].off; off 924 lib/zstd/zstd_opt.h matches[u].off - 1, mlen - MINMATCH, ultra); off 926 lib/zstd/zstd_opt.h price = ZSTD_getPrice(seqStorePtr, litlen, anchor, matches[u].off - 1, mlen - MINMATCH, ultra); off 929 lib/zstd/zstd_opt.h price = opt[cur].price + ZSTD_getPrice(seqStorePtr, 0, NULL, matches[u].off - 1, mlen - MINMATCH, ultra); off 933 lib/zstd/zstd_opt.h SET_PRICE(cur + mlen, mlen, matches[u].off, litlen, price); off 941 lib/zstd/zstd_opt.h best_off = opt[last_pos].off; off 950 lib/zstd/zstd_opt.h offset = opt[cur].off; off 952 lib/zstd/zstd_opt.h opt[cur].off = best_off; off 971 lib/zstd/zstd_opt.h offset = opt[cur].off; off 524 mm/huge_memory.c loff_t off, unsigned long flags, unsigned long size) off 526 mm/huge_memory.c loff_t off_end = off + len; off 527 mm/huge_memory.c loff_t off_align = round_up(off, size); off 534 mm/huge_memory.c if (len_pad < len || (off + len_pad) < off) off 538 mm/huge_memory.c off >> PAGE_SHIFT, flags); off 554 mm/huge_memory.c ret += (off - ret) & (size - 1); off 562 mm/huge_memory.c loff_t off = (loff_t)pgoff << PAGE_SHIFT; off 567 mm/huge_memory.c ret = __thp_get_unmapped_area(filp, addr, len, off, flags, PMD_SIZE); off 289 mm/hugetlb_cgroup.c char *buf, size_t nbytes, loff_t off) off 320 mm/hugetlb_cgroup.c char *buf, size_t nbytes, loff_t off) off 3359 mm/memcontrol.c loff_t off) off 3679 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 3723 mm/memcontrol.c size_t nbytes, loff_t off) off 4696 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 6089 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 6112 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 6134 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 6164 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 6261 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 7237 mm/memcontrol.c char *buf, size_t nbytes, loff_t off) off 603 mm/memory.c unsigned long off; off 604 mm/memory.c off = (addr - vma->vm_start) >> PAGE_SHIFT; off 605 mm/memory.c if (pfn == vma->vm_pgoff + off) off 646 mm/memory.c unsigned long off; off 647 mm/memory.c off = (addr - vma->vm_start) >> PAGE_SHIFT; off 648 mm/memory.c if (pfn == vma->vm_pgoff + off) off 3439 mm/memory.c int off; off 3446 mm/memory.c off = ((address - vmf->address) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); off 3447 mm/memory.c start_pgoff -= off; off 1909 mm/mempolicy.c unsigned long off; off 1919 mm/mempolicy.c off = vma->vm_pgoff >> (shift - PAGE_SHIFT); off 1920 mm/mempolicy.c off += (addr - vma->vm_start) >> shift; off 1921 mm/mempolicy.c return offset_il_node(pol, off); off 310 mm/percpu.c static unsigned long pcpu_off_to_block_index(int off) off 312 mm/percpu.c return off / PCPU_BITMAP_BLOCK_BITS; off 315 mm/percpu.c static unsigned long pcpu_off_to_block_off(int off) off 317 mm/percpu.c return off & (PCPU_BITMAP_BLOCK_BITS - 1); off 320 mm/percpu.c static unsigned long pcpu_block_off_to_off(int index, int off) off 322 mm/percpu.c return index * PCPU_BITMAP_BLOCK_BITS + off; off 1243 mm/percpu.c static void pcpu_free_area(struct pcpu_chunk *chunk, int off) off 1253 mm/percpu.c bit_off = off / PCPU_MIN_ALLOC_SIZE; off 1596 mm/percpu.c int slot, off, cpu, ret; off 1639 mm/percpu.c off = pcpu_find_block_fit(chunk, bits, bit_align, is_atomic); off 1640 mm/percpu.c if (off < 0) { off 1645 mm/percpu.c off = pcpu_alloc_area(chunk, bits, bit_align, off); off 1646 mm/percpu.c if (off >= 0) off 1657 mm/percpu.c off = pcpu_find_block_fit(chunk, bits, bit_align, off 1659 mm/percpu.c if (off < 0) { off 1665 mm/percpu.c off = pcpu_alloc_area(chunk, bits, bit_align, off); off 1666 mm/percpu.c if (off >= 0) off 1707 mm/percpu.c page_start = PFN_DOWN(off); off 1708 mm/percpu.c page_end = PFN_UP(off + size); off 1718 mm/percpu.c pcpu_free_area(chunk, off); off 1734 mm/percpu.c memset((void *)pcpu_chunk_addr(chunk, cpu, 0) + off, 0, size); off 1736 mm/percpu.c ptr = __addr_to_pcpu_ptr(chunk->base_addr + off); off 1740 mm/percpu.c chunk->base_addr, off, ptr); off 1960 mm/percpu.c int off; off 1973 mm/percpu.c off = addr - chunk->base_addr; off 1975 mm/percpu.c pcpu_free_area(chunk, off); off 1988 mm/percpu.c trace_percpu_free_percpu(chunk->base_addr, off, ptr); off 1816 mm/shmem.c pgoff_t off; off 1820 mm/shmem.c off = round_up(index, HPAGE_PMD_NR); off 1823 mm/shmem.c i_size >> PAGE_SHIFT >= off) off 3995 mm/shmem.c pgoff_t off; off 4010 mm/shmem.c off = round_up(vma->vm_pgoff, HPAGE_PMD_NR); off 4013 mm/shmem.c i_size >> PAGE_SHIFT >= off) off 649 mm/slub.c unsigned int off; /* Offset of last byte */ off 672 mm/slub.c off = s->offset + sizeof(void *); off 674 mm/slub.c off = s->inuse; off 677 mm/slub.c off += 2 * sizeof(struct track); off 679 mm/slub.c off += kasan_metadata_size(s); off 681 mm/slub.c if (off != size_from_object(s)) off 683 mm/slub.c print_section(KERN_ERR, "Padding ", p + off, off 684 mm/slub.c size_from_object(s) - off); off 799 mm/slub.c unsigned long off = s->inuse; /* The end of info */ off 803 mm/slub.c off += sizeof(void *); off 807 mm/slub.c off += 2 * sizeof(struct track); off 809 mm/slub.c off += kasan_metadata_size(s); off 811 mm/slub.c if (size_from_object(s) == off) off 815 mm/slub.c p + off, POISON_INUSE, size_from_object(s) - off); off 2997 mm/vmalloc.c unsigned long off; off 3000 mm/vmalloc.c if (check_shl_overflow(pgoff, PAGE_SHIFT, &off)) off 3015 mm/vmalloc.c if (check_add_overflow(size, off, &end_index) || off 3018 mm/vmalloc.c kaddr += off; off 1726 mm/vmstat.c unsigned long off = l - (unsigned long *)m->private; off 1728 mm/vmstat.c seq_puts(m, vmstat_text[off]); off 986 mm/zsmalloc.c unsigned long off = 0; off 994 mm/zsmalloc.c set_first_obj_offset(page, off); off 997 mm/zsmalloc.c link = (struct link_free *)vaddr + off / sizeof(*link); off 999 mm/zsmalloc.c while ((off += class->size) < PAGE_SIZE) { off 1021 mm/zsmalloc.c off %= PAGE_SIZE; off 1139 mm/zsmalloc.c struct page *pages[2], int off, int size) off 1143 mm/zsmalloc.c return area->vm_addr + off; off 1147 mm/zsmalloc.c struct page *pages[2], int off, int size) off 1177 mm/zsmalloc.c struct page *pages[2], int off, int size) off 1190 mm/zsmalloc.c sizes[0] = PAGE_SIZE - off; off 1195 mm/zsmalloc.c memcpy(buf, addr + off, sizes[0]); off 1205 mm/zsmalloc.c struct page *pages[2], int off, int size) off 1218 mm/zsmalloc.c off += ZS_HANDLE_SIZE; off 1220 mm/zsmalloc.c sizes[0] = PAGE_SIZE - off; off 1225 mm/zsmalloc.c memcpy(addr + off, buf, sizes[0]); off 1296 mm/zsmalloc.c unsigned long obj, off; off 1325 mm/zsmalloc.c off = (class->size * obj_idx) & ~PAGE_MASK; off 1329 mm/zsmalloc.c if (off + class->size <= PAGE_SIZE) { off 1332 mm/zsmalloc.c ret = area->vm_addr + off; off 1341 mm/zsmalloc.c ret = __zs_map_object(area, pages, off, class->size); off 1354 mm/zsmalloc.c unsigned long obj, off; off 1367 mm/zsmalloc.c off = (class->size * obj_idx) & ~PAGE_MASK; off 1370 mm/zsmalloc.c if (off + class->size <= PAGE_SIZE) off 1379 mm/zsmalloc.c __zs_unmap_object(area, pages, off, class->size); off 923 net/appletalk/aarp.c loff_t off = 0; off 929 net/appletalk/aarp.c if (!pos || ++off == *pos) { off 742 net/atm/clip.c int svc, llc, off; off 759 net/atm/clip.c off = scnprintf(buf, sizeof(buf) - 1, "%pI4", n->primary_key); off 760 net/atm/clip.c while (off < 16) off 761 net/atm/clip.c buf[off++] = ' '; off 762 net/atm/clip.c buf[off] = '\0'; off 168 net/batman-adv/icmp_socket.c size_t len, loff_t *off) off 51 net/bridge/br_netfilter_ipv6.c int off = raw - nh; off 57 net/bridge/br_netfilter_ipv6.c off += 2; off 61 net/bridge/br_netfilter_ipv6.c int optlen = nh[off + 1] + 2; off 63 net/bridge/br_netfilter_ipv6.c switch (nh[off]) { off 72 net/bridge/br_netfilter_ipv6.c if (nh[off + 1] != 4 || (off & 3) != 2) off 74 net/bridge/br_netfilter_ipv6.c pkt_len = ntohl(*(__be32 *)(nh + off + 2)); off 90 net/bridge/br_netfilter_ipv6.c off += optlen; off 565 net/bridge/br_private.h unsigned long off); off 917 net/bridge/br_sysfs_br.c char *buf, loff_t off, size_t count) off 924 net/bridge/br_sysfs_br.c if (off % sizeof(struct __fdb_entry) != 0) off 929 net/bridge/br_sysfs_br.c off / sizeof(struct __fdb_entry)); off 181 net/bridge/netfilter/ebt_among.c static bool wormhash_offset_invalid(int off, unsigned int len) off 183 net/bridge/netfilter/ebt_among.c if (off == 0) /* not present */ off 186 net/bridge/netfilter/ebt_among.c if (off < (int)sizeof(struct ebt_among_info) || off 187 net/bridge/netfilter/ebt_among.c off % __alignof__(struct ebt_mac_wormhash)) off 190 net/bridge/netfilter/ebt_among.c off += sizeof(struct ebt_mac_wormhash); off 192 net/bridge/netfilter/ebt_among.c return off > len; off 1594 net/bridge/netfilter/ebtables.c int off = ebt_compat_match_offset(match, m->match_size); off 1595 net/bridge/netfilter/ebtables.c compat_uint_t msize = m->match_size - off; off 1597 net/bridge/netfilter/ebtables.c if (WARN_ON(off >= m->match_size)) off 1614 net/bridge/netfilter/ebtables.c *size -= ebt_compat_entry_padsize() + off; off 1626 net/bridge/netfilter/ebtables.c int off = xt_compat_target_offset(target); off 1627 net/bridge/netfilter/ebtables.c compat_uint_t tsize = t->target_size - off; off 1629 net/bridge/netfilter/ebtables.c if (WARN_ON(off >= t->target_size)) off 1646 net/bridge/netfilter/ebtables.c *size -= ebt_compat_entry_padsize() + off; off 1716 net/bridge/netfilter/ebtables.c static int compat_calc_match(struct ebt_entry_match *m, int *off) off 1718 net/bridge/netfilter/ebtables.c *off += ebt_compat_match_offset(m->u.match, m->match_size); off 1719 net/bridge/netfilter/ebtables.c *off += ebt_compat_entry_padsize(); off 1723 net/bridge/netfilter/ebtables.c static int compat_calc_watcher(struct ebt_entry_watcher *w, int *off) off 1725 net/bridge/netfilter/ebtables.c *off += xt_compat_target_offset(w->u.watcher); off 1726 net/bridge/netfilter/ebtables.c *off += ebt_compat_entry_padsize(); off 1737 net/bridge/netfilter/ebtables.c int off, ret, i; off 1742 net/bridge/netfilter/ebtables.c off = 0; off 1745 net/bridge/netfilter/ebtables.c EBT_MATCH_ITERATE(e, compat_calc_match, &off); off 1746 net/bridge/netfilter/ebtables.c EBT_WATCHER_ITERATE(e, compat_calc_watcher, &off); off 1750 net/bridge/netfilter/ebtables.c off += xt_compat_target_offset(t->u.target); off 1751 net/bridge/netfilter/ebtables.c off += ebt_compat_entry_padsize(); off 1753 net/bridge/netfilter/ebtables.c newinfo->entries_size -= off; off 1755 net/bridge/netfilter/ebtables.c ret = xt_compat_add_offset(NFPROTO_BRIDGE, entry_offset, off); off 1763 net/bridge/netfilter/ebtables.c newinfo->hook_entry[i] -= off; off 1765 net/bridge/netfilter/ebtables.c newinfo->hook_entry[i] + off, off 1913 net/bridge/netfilter/ebtables.c int off, pad = 0; off 1929 net/bridge/netfilter/ebtables.c off = ebt_compat_match_offset(match, match_size); off 1948 net/bridge/netfilter/ebtables.c off = xt_compat_target_offset(wt); off 1965 net/bridge/netfilter/ebtables.c state->buf_kern_offset += match_size + off; off 1972 net/bridge/netfilter/ebtables.c if (WARN_ON(state->buf_kern_offset - (match_size + off) + size_kern > state->buf_kern_len - pad)) off 1976 net/bridge/netfilter/ebtables.c return off + match_size; off 165 net/ceph/crypto.c unsigned int off = offset_in_page(buf); off 167 net/ceph/crypto.c unsigned int chunk_len = PAGE_ALIGN(off + buf_len); off 194 net/ceph/crypto.c unsigned int len = min(chunk_len - off, buf_len); off 201 net/ceph/crypto.c sg_set_page(sg, page, len, off); off 203 net/ceph/crypto.c off = 0; off 793 net/ceph/messenger.c int off = con->out_kvec_cur - con->out_kvec; off 797 net/ceph/messenger.c skip = con->out_kvec[off + con->out_kvec_left - 1].iov_len; off 103 net/ceph/osd_client.c static int calc_layout(struct ceph_file_layout *layout, u64 off, u64 *plen, off 110 net/ceph/osd_client.c ceph_calc_file_object_mapping(layout, off, orig_len, objnum, off 116 net/ceph/osd_client.c orig_len - *plen, off, *plen); off 1066 net/ceph/osd_client.c u64 off, u64 *plen, off 1092 net/ceph/osd_client.c r = calc_layout(layout, off, plen, &objnum, &objoff, &objlen); off 1100 net/ceph/osd_client.c u32 object_base = off - objoff; off 1121 net/ceph/osd_client.c req->r_data_offset = off; off 5239 net/ceph/osd_client.c u64 off, u64 *plen, off 5247 net/ceph/osd_client.c vino.snap, off, *plen); off 5248 net/ceph/osd_client.c req = ceph_osdc_new_request(osdc, layout, vino, off, plen, 0, 1, off 5260 net/ceph/osd_client.c off, *plen, *plen, page_align); off 5278 net/ceph/osd_client.c u64 off, u64 len, off 5285 net/ceph/osd_client.c int page_align = off & ~PAGE_MASK; off 5287 net/ceph/osd_client.c req = ceph_osdc_new_request(osdc, layout, vino, off, &len, 0, 1, off 5297 net/ceph/osd_client.c dout("writepages %llu~%llu (%llu bytes)\n", off, len, len); off 63 net/ceph/pagevec.c loff_t off, size_t len) off 66 net/ceph/pagevec.c int po = off & ~PAGE_MASK; off 89 net/ceph/pagevec.c loff_t off, size_t len) off 92 net/ceph/pagevec.c size_t po = off & ~PAGE_MASK; off 112 net/ceph/pagevec.c loff_t off, size_t len) off 115 net/ceph/pagevec.c size_t po = off & ~PAGE_MASK; off 137 net/ceph/pagevec.c void ceph_zero_page_vector_range(int off, int len, struct page **pages) off 139 net/ceph/pagevec.c int i = off >> PAGE_SHIFT; off 141 net/ceph/pagevec.c off &= ~PAGE_MASK; off 143 net/ceph/pagevec.c dout("zero_page_vector_page %u~%u\n", off, len); off 146 net/ceph/pagevec.c if (off) { off 147 net/ceph/pagevec.c int end = min((int)PAGE_SIZE, off + len); off 149 net/ceph/pagevec.c (int)off); off 150 net/ceph/pagevec.c zero_user_segment(pages[i], off, end); off 151 net/ceph/pagevec.c len -= (end - off); off 25 net/ceph/striper.c u64 off, u64 len, off 37 net/ceph/striper.c blockno = div_u64_rem(off, l->stripe_unit, &blockoff); off 110 net/ceph/striper.c int ceph_file_to_extents(struct ceph_file_layout *l, u64 off, u64 len, off 124 net/ceph/striper.c ceph_calc_file_object_mapping(l, off, len, &objno, &objoff, off 149 net/ceph/striper.c off += xlen; off 174 net/ceph/striper.c int ceph_iterate_extents(struct ceph_file_layout *l, u64 off, u64 len, off 184 net/ceph/striper.c ceph_calc_file_object_mapping(l, off, len, &objno, &objoff, off 196 net/ceph/striper.c off += xlen; off 240 net/ceph/striper.c u64 off, len; off 246 net/ceph/striper.c off = blockno * l->stripe_unit + blockoff; off 249 net/ceph/striper.c (*file_extents)[i].fe_off = off; off 171 net/core/datagram.c int *off, int *err, off 178 net/core/datagram.c if (unlikely(flags & MSG_PEEK && *off >= 0)) { off 180 net/core/datagram.c _off = *off; off 204 net/core/datagram.c *off = _off; off 248 net/core/datagram.c int *off, int *err, off 271 net/core/datagram.c off, &error, last); off 295 net/core/datagram.c int *off, int *err) off 303 net/core/datagram.c skb = __skb_try_recv_datagram(sk, flags, destructor, off, err, off 320 net/core/datagram.c int off = 0; off 323 net/core/datagram.c NULL, &off, err); off 4237 net/core/dev.c int hlen, off; off 4287 net/core/dev.c off = xdp->data - orig_data; off 4288 net/core/dev.c if (off) { off 4289 net/core/dev.c if (off > 0) off 4290 net/core/dev.c __skb_pull(skb, off); off 4291 net/core/dev.c else if (off < 0) off 4292 net/core/dev.c __skb_push(skb, -off); off 4294 net/core/dev.c skb->mac_header += off; off 4301 net/core/dev.c off = orig_data_end - xdp->data_end; off 4302 net/core/dev.c if (off != 0) { off 4304 net/core/dev.c skb->len -= off; off 669 net/core/filter.c s32 off; \ off 673 net/core/filter.c off = addrs ? addrs[target] - addrs[i] - 1 : 0; \ off 675 net/core/filter.c off -= insn - tmp_insns; \ off 677 net/core/filter.c if (off < off_min || off > off_max) \ off 679 net/core/filter.c insn->off = off; \ off 2765 net/core/filter.c static int bpf_skb_generic_push(struct sk_buff *skb, u32 off, u32 len) off 2771 net/core/filter.c memmove(skb->data, skb->data + len, off); off 2772 net/core/filter.c memset(skb->data + off, 0, len); off 2782 net/core/filter.c static int bpf_skb_generic_pop(struct sk_buff *skb, u32 off, u32 len) off 2787 net/core/filter.c if (unlikely(!pskb_may_pull(skb, off + len))) off 2790 net/core/filter.c skb_postpull_rcsum(skb, skb->data + off, len); off 2791 net/core/filter.c memmove(skb->data + len, skb->data, off); off 2797 net/core/filter.c static int bpf_skb_net_hdr_push(struct sk_buff *skb, u32 off, u32 len) off 2806 net/core/filter.c ret = bpf_skb_generic_push(skb, off, len); off 2817 net/core/filter.c static int bpf_skb_net_hdr_pop(struct sk_buff *skb, u32 off, u32 len) off 2823 net/core/filter.c ret = bpf_skb_generic_pop(skb, off, len); off 2837 net/core/filter.c u32 off = skb_mac_header_len(skb); off 2847 net/core/filter.c ret = bpf_skb_net_hdr_push(skb, off, len_diff); off 2878 net/core/filter.c u32 off = skb_mac_header_len(skb); off 2888 net/core/filter.c ret = bpf_skb_net_hdr_pop(skb, off, len_diff); off 3011 net/core/filter.c static int bpf_skb_net_grow(struct sk_buff *skb, u32 off, u32 len_diff, off 3054 net/core/filter.c ret = bpf_skb_net_hdr_push(skb, off, len_diff); off 3109 net/core/filter.c static int bpf_skb_net_shrink(struct sk_buff *skb, u32 off, u32 len_diff, off 3128 net/core/filter.c ret = bpf_skb_net_hdr_pop(skb, off, len_diff); off 3161 net/core/filter.c u32 off; off 3172 net/core/filter.c off = skb_mac_header_len(skb); off 3175 net/core/filter.c off += bpf_skb_net_base_len(skb); off 3190 net/core/filter.c ret = shrink ? bpf_skb_net_shrink(skb, off, len_diff_abs, flags) : off 3191 net/core/filter.c bpf_skb_net_grow(skb, off, len_diff_abs, flags); off 3784 net/core/filter.c unsigned long off, unsigned long len) off 3786 net/core/filter.c void *ptr = skb_header_pointer(skb, off, len, dst_buff); off 4132 net/core/filter.c unsigned long off, unsigned long len) off 4134 net/core/filter.c memcpy(dst_buff, src_buff + off, len); off 5552 net/core/filter.c bool bpf_tcp_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 5555 net/core/filter.c if (off < 0 || off >= offsetofend(struct bpf_tcp_sock, off 5559 net/core/filter.c if (off % size != 0) off 5562 net/core/filter.c switch (off) { off 5604 net/core/filter.c switch (si->off) { off 5747 net/core/filter.c bool bpf_xdp_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 5750 net/core/filter.c if (off < 0 || off >= offsetofend(struct bpf_xdp_sock, queue_id)) off 5753 net/core/filter.c if (off % size != 0) off 5756 net/core/filter.c switch (off) { off 5778 net/core/filter.c switch (si->off) { off 6475 net/core/filter.c static bool bpf_skb_is_valid_access(int off, int size, enum bpf_access_type type, off 6481 net/core/filter.c if (off < 0 || off >= sizeof(struct __sk_buff)) off 6485 net/core/filter.c if (off % size != 0) off 6488 net/core/filter.c switch (off) { off 6490 net/core/filter.c if (off + size > offsetofend(struct __sk_buff, cb[4])) off 6521 net/core/filter.c if (!bpf_ctx_narrow_access_ok(off, size, size_default)) off 6529 net/core/filter.c static bool sk_filter_is_valid_access(int off, int size, off 6534 net/core/filter.c switch (off) { off 6546 net/core/filter.c switch (off) { off 6554 net/core/filter.c return bpf_skb_is_valid_access(off, size, type, prog, info); off 6557 net/core/filter.c static bool cg_skb_is_valid_access(int off, int size, off 6562 net/core/filter.c switch (off) { off 6575 net/core/filter.c switch (off) { off 6589 net/core/filter.c switch (off) { off 6598 net/core/filter.c return bpf_skb_is_valid_access(off, size, type, prog, info); off 6601 net/core/filter.c static bool lwt_is_valid_access(int off, int size, off 6606 net/core/filter.c switch (off) { off 6616 net/core/filter.c switch (off) { off 6626 net/core/filter.c switch (off) { off 6635 net/core/filter.c return bpf_skb_is_valid_access(off, size, type, prog, info); off 6639 net/core/filter.c static bool __sock_filter_check_attach_type(int off, off 6643 net/core/filter.c switch (off) { off 6682 net/core/filter.c bool bpf_sock_common_is_valid_access(int off, int size, off 6686 net/core/filter.c switch (off) { off 6690 net/core/filter.c return bpf_sock_is_valid_access(off, size, type, info); off 6694 net/core/filter.c bool bpf_sock_is_valid_access(int off, int size, enum bpf_access_type type, off 6699 net/core/filter.c if (off < 0 || off >= sizeof(struct bpf_sock)) off 6701 net/core/filter.c if (off % size != 0) off 6704 net/core/filter.c switch (off) { off 6716 net/core/filter.c return bpf_ctx_narrow_access_ok(off, size, size_default); off 6722 net/core/filter.c static bool sock_filter_is_valid_access(int off, int size, off 6727 net/core/filter.c if (!bpf_sock_is_valid_access(off, size, type, info)) off 6729 net/core/filter.c return __sock_filter_check_attach_type(off, type, off 6822 net/core/filter.c static bool tc_cls_act_is_valid_access(int off, int size, off 6828 net/core/filter.c switch (off) { off 6842 net/core/filter.c switch (off) { off 6856 net/core/filter.c return bpf_skb_is_valid_access(off, size, type, prog, info); off 6859 net/core/filter.c static bool __is_valid_xdp_access(int off, int size) off 6861 net/core/filter.c if (off < 0 || off >= sizeof(struct xdp_md)) off 6863 net/core/filter.c if (off % size != 0) off 6871 net/core/filter.c static bool xdp_is_valid_access(int off, int size, off 6878 net/core/filter.c switch (off) { off 6880 net/core/filter.c return __is_valid_xdp_access(off, size); off 6886 net/core/filter.c switch (off) { off 6898 net/core/filter.c return __is_valid_xdp_access(off, size); off 6911 net/core/filter.c static bool sock_addr_is_valid_access(int off, int size, off 6918 net/core/filter.c if (off < 0 || off >= sizeof(struct bpf_sock_addr)) off 6920 net/core/filter.c if (off % size != 0) off 6926 net/core/filter.c switch (off) { off 6968 net/core/filter.c switch (off) { off 6977 net/core/filter.c if (bpf_ctx_wide_access_ok(off, size, off 6982 net/core/filter.c if (bpf_ctx_wide_access_ok(off, size, off 6987 net/core/filter.c if (!bpf_ctx_narrow_access_ok(off, size, size_default)) off 6990 net/core/filter.c if (bpf_ctx_wide_access_ok(off, size, off 6995 net/core/filter.c if (bpf_ctx_wide_access_ok(off, size, off 7027 net/core/filter.c static bool sock_ops_is_valid_access(int off, int size, off 7034 net/core/filter.c if (off < 0 || off >= sizeof(struct bpf_sock_ops)) off 7038 net/core/filter.c if (off % size != 0) off 7042 net/core/filter.c switch (off) { off 7052 net/core/filter.c switch (off) { off 7079 net/core/filter.c static bool sk_skb_is_valid_access(int off, int size, off 7084 net/core/filter.c switch (off) { off 7093 net/core/filter.c switch (off) { off 7102 net/core/filter.c switch (off) { off 7113 net/core/filter.c return bpf_skb_is_valid_access(off, size, type, prog, info); off 7116 net/core/filter.c static bool sk_msg_is_valid_access(int off, int size, off 7124 net/core/filter.c if (off % size != 0) off 7127 net/core/filter.c switch (off) { off 7155 net/core/filter.c static bool flow_dissector_is_valid_access(int off, int size, off 7162 net/core/filter.c if (off < 0 || off >= sizeof(struct __sk_buff)) off 7168 net/core/filter.c switch (off) { off 7198 net/core/filter.c switch (si->off) { off 7227 net/core/filter.c int off; off 7229 net/core/filter.c switch (si->off) { off 7341 net/core/filter.c off = si->off; off 7342 net/core/filter.c off -= offsetof(struct __sk_buff, cb[0]); off 7343 net/core/filter.c off += offsetof(struct sk_buff, cb); off 7344 net/core/filter.c off += offsetof(struct qdisc_skb_cb, data); off 7347 net/core/filter.c si->src_reg, off); off 7350 net/core/filter.c si->src_reg, off); off 7356 net/core/filter.c off = si->off; off 7357 net/core/filter.c off -= offsetof(struct __sk_buff, tc_classid); off 7358 net/core/filter.c off += offsetof(struct sk_buff, cb); off 7359 net/core/filter.c off += offsetof(struct qdisc_skb_cb, tc_classid); off 7363 net/core/filter.c si->src_reg, off); off 7366 net/core/filter.c si->src_reg, off); off 7376 net/core/filter.c off = si->off; off 7377 net/core/filter.c off -= offsetof(struct __sk_buff, data_meta); off 7378 net/core/filter.c off += offsetof(struct sk_buff, cb); off 7379 net/core/filter.c off += offsetof(struct bpf_skb_data_end, data_meta); off 7381 net/core/filter.c si->src_reg, off); off 7385 net/core/filter.c off = si->off; off 7386 net/core/filter.c off -= offsetof(struct __sk_buff, data_end); off 7387 net/core/filter.c off += offsetof(struct sk_buff, cb); off 7388 net/core/filter.c off += offsetof(struct bpf_skb_data_end, data_end); off 7390 net/core/filter.c si->src_reg, off); off 7464 net/core/filter.c off = si->off; off 7465 net/core/filter.c off -= offsetof(struct __sk_buff, remote_ip6[0]); off 7473 net/core/filter.c off); off 7484 net/core/filter.c off = si->off; off 7485 net/core/filter.c off -= offsetof(struct __sk_buff, local_ip6[0]); off 7493 net/core/filter.c off); off 7566 net/core/filter.c off = si->off; off 7567 net/core/filter.c off -= offsetof(struct __sk_buff, wire_len); off 7568 net/core/filter.c off += offsetof(struct sk_buff, cb); off 7569 net/core/filter.c off += offsetof(struct qdisc_skb_cb, pkt_len); off 7571 net/core/filter.c *insn++ = BPF_LDX_MEM(BPF_W, si->dst_reg, si->src_reg, off); off 7590 net/core/filter.c int off; off 7592 net/core/filter.c switch (si->off) { off 7675 net/core/filter.c off = si->off; off 7676 net/core/filter.c off -= offsetof(struct bpf_sock, src_ip6[0]); off 7684 net/core/filter.c target_size) + off); off 7686 net/core/filter.c (void)off; off 7693 net/core/filter.c off = si->off; off 7694 net/core/filter.c off -= offsetof(struct bpf_sock, dst_ip6[0]); off 7701 net/core/filter.c target_size) + off); off 7749 net/core/filter.c switch (si->off) { off 7773 net/core/filter.c switch (si->off) { off 7888 net/core/filter.c int off; off 7890 net/core/filter.c switch (si->off) { off 7903 net/core/filter.c off = si->off; off 7904 net/core/filter.c off -= offsetof(struct bpf_sock_addr, user_ip6[0]); off 7907 net/core/filter.c sin6_addr.s6_addr32[0], BPF_SIZE(si->code), off, off 7959 net/core/filter.c off = si->off; off 7960 net/core/filter.c off -= offsetof(struct bpf_sock_addr, msg_src_ip6[0]); off 7964 net/core/filter.c s6_addr32[0], BPF_SIZE(si->code), off, tmp_reg); off 7983 net/core/filter.c int off; off 8061 net/core/filter.c switch (si->off) { off 8070 net/core/filter.c off = si->off; off 8071 net/core/filter.c off -= offsetof(struct bpf_sock_ops, op); off 8072 net/core/filter.c off += offsetof(struct bpf_sock_ops_kern, op); off 8075 net/core/filter.c off); off 8078 net/core/filter.c off); off 8122 net/core/filter.c off = si->off; off 8123 net/core/filter.c off -= offsetof(struct bpf_sock_ops, remote_ip6[0]); off 8131 net/core/filter.c off); off 8143 net/core/filter.c off = si->off; off 8144 net/core/filter.c off -= offsetof(struct bpf_sock_ops, local_ip6[0]); off 8152 net/core/filter.c off); off 8313 net/core/filter.c int off; off 8315 net/core/filter.c switch (si->off) { off 8317 net/core/filter.c off = si->off; off 8318 net/core/filter.c off -= offsetof(struct __sk_buff, data_end); off 8319 net/core/filter.c off += offsetof(struct sk_buff, cb); off 8320 net/core/filter.c off += offsetof(struct tcp_skb_cb, bpf.data_end); off 8322 net/core/filter.c si->src_reg, off); off 8339 net/core/filter.c int off; off 8345 net/core/filter.c switch (si->off) { off 8397 net/core/filter.c off = si->off; off 8398 net/core/filter.c off -= offsetof(struct sk_msg_md, remote_ip6[0]); off 8406 net/core/filter.c off); off 8418 net/core/filter.c off = si->off; off 8419 net/core/filter.c off -= offsetof(struct sk_msg_md, local_ip6[0]); off 8427 net/core/filter.c off); off 8823 net/core/filter.c sk_reuseport_is_valid_access(int off, int size, off 8830 net/core/filter.c if (off < 0 || off >= sizeof(struct sk_reuseport_md) || off 8831 net/core/filter.c off % size || type != BPF_READ) off 8834 net/core/filter.c switch (off) { off 8855 net/core/filter.c return bpf_ctx_narrow_access_ok(off, size, size_default); off 8890 net/core/filter.c switch (si->off) { off 196 net/core/netprio_cgroup.c char *buf, size_t nbytes, loff_t off) off 543 net/core/skbuff.c void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, off 546 net/core/skbuff.c skb_fill_page_desc(skb, i, page, off, size); off 1459 net/core/skbuff.c void skb_headers_offset_update(struct sk_buff *skb, int off) off 1463 net/core/skbuff.c skb->csum_start += off; off 1465 net/core/skbuff.c skb->transport_header += off; off 1466 net/core/skbuff.c skb->network_header += off; off 1468 net/core/skbuff.c skb->mac_header += off; off 1469 net/core/skbuff.c skb->inner_transport_header += off; off 1470 net/core/skbuff.c skb->inner_network_header += off; off 1471 net/core/skbuff.c skb->inner_mac_header += off; off 1617 net/core/skbuff.c long off; off 1663 net/core/skbuff.c off = (data + nhead) - skb->head; off 1667 net/core/skbuff.c skb->data += off; off 1670 net/core/skbuff.c off = nhead; off 1674 net/core/skbuff.c skb->tail += off; off 2335 net/core/skbuff.c unsigned int plen, unsigned int *off, off 2345 net/core/skbuff.c if (*off >= plen) { off 2346 net/core/skbuff.c *off -= plen; off 2351 net/core/skbuff.c poff += *off; off 2352 net/core/skbuff.c plen -= *off; off 2353 net/core/skbuff.c *off = 0; off 4665 net/core/skbuff.c bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off) off 4667 net/core/skbuff.c u32 csum_end = (u32)start + (u32)off + sizeof(__sum16); off 4672 net/core/skbuff.c start, off, skb_headroom(skb), skb_headlen(skb)); off 4677 net/core/skbuff.c skb->csum_offset = off; off 4708 net/core/skbuff.c unsigned int off) off 4714 net/core/skbuff.c err = skb_maybe_pull_tail(skb, off + sizeof(struct tcphdr), off 4715 net/core/skbuff.c off + MAX_TCP_HDR_LEN); off 4716 net/core/skbuff.c if (!err && !skb_partial_csum_set(skb, off, off 4723 net/core/skbuff.c err = skb_maybe_pull_tail(skb, off + sizeof(struct udphdr), off 4724 net/core/skbuff.c off + sizeof(struct udphdr)); off 4725 net/core/skbuff.c if (!err && !skb_partial_csum_set(skb, off, off 4742 net/core/skbuff.c unsigned int off; off 4758 net/core/skbuff.c off = ip_hdrlen(skb); off 4765 net/core/skbuff.c csum = skb_checksum_setup_ip(skb, ip_hdr(skb)->protocol, off); off 4772 net/core/skbuff.c skb->len - off, off 4785 net/core/skbuff.c #define OPT_HDR(type, skb, off) \ off 4786 net/core/skbuff.c (type *)(skb_network_header(skb) + (off)) off 4792 net/core/skbuff.c unsigned int off; off 4801 net/core/skbuff.c off = sizeof(struct ipv6hdr); off 4803 net/core/skbuff.c err = skb_maybe_pull_tail(skb, off, MAX_IPV6_HDR_LEN); off 4810 net/core/skbuff.c while (off <= len && !done) { off 4818 net/core/skbuff.c off + off 4824 net/core/skbuff.c hp = OPT_HDR(struct ipv6_opt_hdr, skb, off); off 4826 net/core/skbuff.c off += ipv6_optlen(hp); off 4833 net/core/skbuff.c off + off 4839 net/core/skbuff.c hp = OPT_HDR(struct ip_auth_hdr, skb, off); off 4841 net/core/skbuff.c off += ipv6_authlen(hp); off 4848 net/core/skbuff.c off + off 4854 net/core/skbuff.c hp = OPT_HDR(struct frag_hdr, skb, off); off 4860 net/core/skbuff.c off += sizeof(struct frag_hdr); off 4874 net/core/skbuff.c csum = skb_checksum_setup_ip(skb, nexthdr, off); off 4881 net/core/skbuff.c skb->len - off, nexthdr, 0); off 5706 net/core/skbuff.c static int pskb_carve_inside_header(struct sk_buff *skb, const u32 off, off 5711 net/core/skbuff.c int new_hlen = headlen - off; off 5727 net/core/skbuff.c skb_copy_from_linear_data_offset(skb, off, data, new_hlen); off 5728 net/core/skbuff.c skb->len -= off; off 5770 net/core/skbuff.c static int pskb_carve(struct sk_buff *skb, const u32 off, gfp_t gfp); off 5829 net/core/skbuff.c static int pskb_carve_inside_nonlinear(struct sk_buff *skb, const u32 off, off 5861 net/core/skbuff.c if (pos + fsize > off) { off 5864 net/core/skbuff.c if (pos < off) { off 5873 net/core/skbuff.c skb_frag_off_add(&shinfo->frags[0], off - pos); off 5874 net/core/skbuff.c skb_frag_size_sub(&shinfo->frags[0], off - pos); off 5887 net/core/skbuff.c pskb_carve_frag_list(skb, shinfo, off - pos, gfp_mask); off 5904 net/core/skbuff.c skb->len -= off; off 5924 net/core/skbuff.c struct sk_buff *pskb_extract(struct sk_buff *skb, int off, off 5932 net/core/skbuff.c if (pskb_carve(clone, off, gfp) < 0 || off 77 net/core/skmsg.c u32 off, u32 len) off 84 net/core/skmsg.c while (off) { off 85 net/core/skmsg.c if (sge->length > off) off 87 net/core/skmsg.c off -= sge->length; off 89 net/core/skmsg.c if (i == src->sg.end && off) off 95 net/core/skmsg.c sge_len = sge->length - off; off 104 net/core/skmsg.c (sg_virt(sge) + off == sg_virt(sgd) + sgd->length)) { off 108 net/core/skmsg.c sge_off = sge->offset + off; off 114 net/core/skmsg.c off = 0; off 433 net/core/skmsg.c u32 off, u32 len, bool ingress) off 438 net/core/skmsg.c return skb_send_sock_locked(psock->sk, skb, off, len); off 447 net/core/skmsg.c u32 len, off; off 455 net/core/skmsg.c off = state->off; off 462 net/core/skmsg.c off = 0; off 468 net/core/skmsg.c ret = sk_psock_handle_skb(psock, skb, off, off 474 net/core/skmsg.c state->off = off; off 483 net/core/skmsg.c off += ret; off 1443 net/dccp/feat.c u8 on = 1, off = 0; off 1459 net/dccp/feat.c rc = __feat_register_sp(fn, DCCPF_SHORT_SEQNOS, true, true, &off, 1); off 1414 net/ipv4/af_inet.c unsigned int off; off 1419 net/ipv4/af_inet.c off = skb_gro_offset(skb); off 1420 net/ipv4/af_inet.c hlen = off + sizeof(*iph); off 1421 net/ipv4/af_inet.c iph = skb_gro_header_fast(skb, off); off 1423 net/ipv4/af_inet.c iph = skb_gro_header_slow(skb, hlen, off); off 1455 net/ipv4/af_inet.c iph2 = (struct iphdr *)(p->data + off); off 1505 net/ipv4/af_inet.c skb_set_network_header(skb, off); off 287 net/ipv4/fou.c static struct guehdr *gue_gro_remcsum(struct sk_buff *skb, unsigned int off, off 302 net/ipv4/fou.c guehdr = skb_gro_remcsum_process(skb, (void *)guehdr, off, hdrlen, off 319 net/ipv4/fou.c size_t len, optlen, hdrlen, off; off 329 net/ipv4/fou.c off = skb_gro_offset(skb); off 330 net/ipv4/fou.c len = off + sizeof(*guehdr); off 332 net/ipv4/fou.c guehdr = skb_gro_header_fast(skb, off); off 334 net/ipv4/fou.c guehdr = skb_gro_header_slow(skb, len, off); off 362 net/ipv4/fou.c guehdr = skb_gro_header_slow(skb, len, off); off 386 net/ipv4/fou.c guehdr = gue_gro_remcsum(skb, off, guehdr, off 408 net/ipv4/fou.c guehdr2 = (struct guehdr *)(p->data + off); off 114 net/ipv4/gre_offload.c unsigned int off; off 124 net/ipv4/gre_offload.c off = skb_gro_offset(skb); off 125 net/ipv4/gre_offload.c hlen = off + sizeof(*greh); off 126 net/ipv4/gre_offload.c greh = skb_gro_header_fast(skb, off); off 128 net/ipv4/gre_offload.c greh = skb_gro_header_slow(skb, hlen, off); off 165 net/ipv4/gre_offload.c hlen = off + grehlen; off 167 net/ipv4/gre_offload.c greh = skb_gro_header_slow(skb, hlen, off); off 195 net/ipv4/gre_offload.c greh2 = (struct gre_base_hdr *)(p->data + off); off 1172 net/ipv4/ip_output.c unsigned int off; off 1174 net/ipv4/ip_output.c off = skb->len; off 1176 net/ipv4/ip_output.c offset, copy, off, skb) < 0) { off 1177 net/ipv4/ip_output.c __skb_trim(skb, off); off 673 net/ipv4/netfilter/arp_tables.c unsigned int off, num; off 688 net/ipv4/netfilter/arp_tables.c for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ off 691 net/ipv4/netfilter/arp_tables.c e = loc_cpu_entry + off; off 692 net/ipv4/netfilter/arp_tables.c if (copy_to_user(userptr + off, e, sizeof(*e))) { off 696 net/ipv4/netfilter/arp_tables.c if (copy_to_user(userptr + off off 705 net/ipv4/netfilter/arp_tables.c if (xt_target_to_user(t, userptr + off + e->target_offset)) { off 741 net/ipv4/netfilter/arp_tables.c int off, i, ret; off 743 net/ipv4/netfilter/arp_tables.c off = sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); off 747 net/ipv4/netfilter/arp_tables.c off += xt_compat_target_offset(t->u.kernel.target); off 748 net/ipv4/netfilter/arp_tables.c newinfo->size -= off; off 749 net/ipv4/netfilter/arp_tables.c ret = xt_compat_add_offset(NFPROTO_ARP, entry_offset, off); off 756 net/ipv4/netfilter/arp_tables.c newinfo->hook_entry[i] -= off; off 759 net/ipv4/netfilter/arp_tables.c newinfo->underflow[i] -= off; off 1081 net/ipv4/netfilter/arp_tables.c int ret, off; off 1100 net/ipv4/netfilter/arp_tables.c off = sizeof(struct arpt_entry) - sizeof(struct compat_arpt_entry); off 1112 net/ipv4/netfilter/arp_tables.c off += xt_compat_target_offset(target); off 1113 net/ipv4/netfilter/arp_tables.c *size += off; off 1114 net/ipv4/netfilter/arp_tables.c ret = xt_compat_add_offset(NFPROTO_ARP, entry_offset, off); off 815 net/ipv4/netfilter/ip_tables.c unsigned int off, num; off 830 net/ipv4/netfilter/ip_tables.c for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ off 835 net/ipv4/netfilter/ip_tables.c e = loc_cpu_entry + off; off 836 net/ipv4/netfilter/ip_tables.c if (copy_to_user(userptr + off, e, sizeof(*e))) { off 840 net/ipv4/netfilter/ip_tables.c if (copy_to_user(userptr + off off 853 net/ipv4/netfilter/ip_tables.c if (xt_match_to_user(m, userptr + off + i)) { off 860 net/ipv4/netfilter/ip_tables.c if (xt_target_to_user(t, userptr + off + e->target_offset)) { off 897 net/ipv4/netfilter/ip_tables.c int off, i, ret; off 899 net/ipv4/netfilter/ip_tables.c off = sizeof(struct ipt_entry) - sizeof(struct compat_ipt_entry); off 902 net/ipv4/netfilter/ip_tables.c off += xt_compat_match_offset(ematch->u.kernel.match); off 904 net/ipv4/netfilter/ip_tables.c off += xt_compat_target_offset(t->u.kernel.target); off 905 net/ipv4/netfilter/ip_tables.c newinfo->size -= off; off 906 net/ipv4/netfilter/ip_tables.c ret = xt_compat_add_offset(AF_INET, entry_offset, off); off 913 net/ipv4/netfilter/ip_tables.c newinfo->hook_entry[i] -= off; off 916 net/ipv4/netfilter/ip_tables.c newinfo->underflow[i] -= off; off 1297 net/ipv4/netfilter/ip_tables.c int ret, off; off 1316 net/ipv4/netfilter/ip_tables.c off = sizeof(struct ipt_entry) - sizeof(struct compat_ipt_entry); off 1320 net/ipv4/netfilter/ip_tables.c ret = compat_find_calc_match(ematch, &e->ip, &off); off 1335 net/ipv4/netfilter/ip_tables.c off += xt_compat_target_offset(target); off 1336 net/ipv4/netfilter/ip_tables.c *size += off; off 1337 net/ipv4/netfilter/ip_tables.c ret = xt_compat_add_offset(AF_INET, entry_offset, off); off 36 net/ipv4/netfilter/nf_nat_pptp.c #define REQ_CID(req, off) (*(__be16 *)((char *)(req) + (off))) off 314 net/ipv4/sysctl_net_ipv4.c int ret, i = 0, off = 0, n_keys = 0; off 337 net/ipv4/sysctl_net_ipv4.c off += snprintf(tbl.data + off, tbl.maxlen - off, off 344 net/ipv4/sysctl_net_ipv4.c off += snprintf(tbl.data + off, tbl.maxlen - off, ","); off 1587 net/ipv4/tcp.c static struct sk_buff *tcp_recv_skb(struct sock *sk, u32 seq, u32 *off) off 1599 net/ipv4/tcp.c *off = offset; off 224 net/ipv4/tcp_bpf.c u32 off; off 232 net/ipv4/tcp_bpf.c off = sge->offset; off 241 net/ipv4/tcp_bpf.c page, off, size, flags); off 243 net/ipv4/tcp_bpf.c ret = do_tcp_sendpages(sk, page, off, size, flags); off 257 net/ipv4/tcp_bpf.c off += ret; off 191 net/ipv4/tcp_offload.c unsigned int off; off 195 net/ipv4/tcp_offload.c off = skb_gro_offset(skb); off 196 net/ipv4/tcp_offload.c hlen = off + sizeof(*th); off 197 net/ipv4/tcp_offload.c th = skb_gro_header_fast(skb, off); off 199 net/ipv4/tcp_offload.c th = skb_gro_header_slow(skb, hlen, off); off 208 net/ipv4/tcp_offload.c hlen = off + thlen; off 210 net/ipv4/tcp_offload.c th = skb_gro_header_slow(skb, hlen, off); off 1653 net/ipv4/udp.c int noblock, int *off, int *err) off 1676 net/ipv4/udp.c off, err, &last); off 1697 net/ipv4/udp.c off, err, &last); off 1732 net/ipv4/udp.c int off, err, peeking = flags & MSG_PEEK; off 1740 net/ipv4/udp.c off = sk_peek_offset(sk, flags); off 1741 net/ipv4/udp.c skb = __skb_recv_udp(sk, flags, noblock, &off, &err); off 1747 net/ipv4/udp.c if (copied > ulen - off) off 1748 net/ipv4/udp.c copied = ulen - off; off 1768 net/ipv4/udp.c err = copy_linear_skb(skb, copied, off, &msg->msg_iter); off 1770 net/ipv4/udp.c err = skb_copy_datagram_msg(skb, off, msg, copied); off 1772 net/ipv4/udp.c err = skb_copy_and_csum_datagram_msg(skb, off, msg); off 1811 net/ipv4/udp.c ip_cmsg_recv_offset(msg, sk, skb, sizeof(struct udphdr), off); off 412 net/ipv4/udp_offload.c unsigned int off = skb_gro_offset(skb); off 444 net/ipv4/udp_offload.c uh2 = (struct udphdr *)(p->data + off); off 109 net/ipv6/ah6.c int off = 0; off 112 net/ipv6/ah6.c off += 2; off 117 net/ipv6/ah6.c switch (opt[off]) { off 125 net/ipv6/ah6.c optlen = opt[off+1]+2; off 128 net/ipv6/ah6.c if (opt[off] & 0x20) off 129 net/ipv6/ah6.c memset(&opt[off+2], 0, opt[off+1]); off 133 net/ipv6/ah6.c off += optlen; off 153 net/ipv6/ah6.c int off = 0; off 156 net/ipv6/ah6.c off += 2; off 161 net/ipv6/ah6.c switch (opt[off]) { off 169 net/ipv6/ah6.c optlen = opt[off+1]+2; off 177 net/ipv6/ah6.c if (opt[off] == IPV6_TLV_HAO) { off 181 net/ipv6/ah6.c hao = (struct ipv6_destopt_hao *)&opt[off]; off 194 net/ipv6/ah6.c off += optlen; off 638 net/ipv6/datagram.c unsigned int off = sizeof(struct ipv6hdr); off 641 net/ipv6/datagram.c while (off <= opt->lastopt) { off 643 net/ipv6/datagram.c u8 *ptr = nh + off; off 668 net/ipv6/datagram.c off += len; off 32 net/ipv6/esp6_offload.c int off = sizeof(struct ipv6hdr); off 38 net/ipv6/esp6_offload.c while (off < nhlen) { off 39 net/ipv6/esp6_offload.c exthdr = (void *)ipv6_hdr + off; off 41 net/ipv6/esp6_offload.c return off; off 43 net/ipv6/esp6_offload.c off += ipv6_optlen(exthdr); off 119 net/ipv6/exthdrs.c int off = skb_network_header_len(skb); off 133 net/ipv6/exthdrs.c off += 2; off 137 net/ipv6/exthdrs.c int optlen = nh[off + 1] + 2; off 140 net/ipv6/exthdrs.c switch (nh[off]) { off 162 net/ipv6/exthdrs.c if (nh[off + i] != 0) off 176 net/ipv6/exthdrs.c if (curr->type == nh[off]) { off 180 net/ipv6/exthdrs.c if (curr->func(skb, off) == false) off 186 net/ipv6/exthdrs.c !ip6_tlvopt_unknown(skb, off, disallow_unknowns)) off 192 net/ipv6/exthdrs.c off += optlen; off 315 net/ipv6/icmp.c int off; off 318 net/ipv6/icmp.c off = ipv6_find_tlv(skb, opt->dsthao, IPV6_TLV_HAO); off 319 net/ipv6/icmp.c if (likely(off >= 0)) { off 321 net/ipv6/icmp.c (skb_network_header(skb) + off); off 193 net/ipv6/ip6_offload.c unsigned int off; off 197 net/ipv6/ip6_offload.c off = skb_gro_offset(skb); off 198 net/ipv6/ip6_offload.c hlen = off + sizeof(*iph); off 199 net/ipv6/ip6_offload.c iph = skb_gro_header_fast(skb, off); off 201 net/ipv6/ip6_offload.c iph = skb_gro_header_slow(skb, hlen, off); off 206 net/ipv6/ip6_offload.c skb_set_network_header(skb, off); off 242 net/ipv6/ip6_offload.c iph2 = (struct ipv6hdr *)(p->data + off); off 1593 net/ipv6/ip6_output.c unsigned int off; off 1595 net/ipv6/ip6_output.c off = skb->len; off 1597 net/ipv6/ip6_output.c offset, copy, off, skb) < 0) { off 1598 net/ipv6/ip6_output.c __skb_trim(skb, off); off 402 net/ipv6/ip6_tunnel.c unsigned int off = nhoff + sizeof(*ipv6h); off 409 net/ipv6/ip6_tunnel.c if (!pskb_may_pull(skb, off + sizeof(*hdr))) off 412 net/ipv6/ip6_tunnel.c hdr = (struct ipv6_opt_hdr *)(skb->data + off); off 431 net/ipv6/ip6_tunnel.c if (!pskb_may_pull(skb, off + optlen)) off 441 net/ipv6/ip6_tunnel.c tel = (struct ipv6_tlv_tnl_enc_lim *)(skb->data + off + i); off 445 net/ipv6/ip6_tunnel.c return i + off - nhoff; off 454 net/ipv6/ip6_tunnel.c off += optlen; off 831 net/ipv6/netfilter/ip6_tables.c unsigned int off, num; off 846 net/ipv6/netfilter/ip6_tables.c for (off = 0, num = 0; off < total_size; off += e->next_offset, num++){ off 851 net/ipv6/netfilter/ip6_tables.c e = loc_cpu_entry + off; off 852 net/ipv6/netfilter/ip6_tables.c if (copy_to_user(userptr + off, e, sizeof(*e))) { off 856 net/ipv6/netfilter/ip6_tables.c if (copy_to_user(userptr + off off 869 net/ipv6/netfilter/ip6_tables.c if (xt_match_to_user(m, userptr + off + i)) { off 876 net/ipv6/netfilter/ip6_tables.c if (xt_target_to_user(t, userptr + off + e->target_offset)) { off 913 net/ipv6/netfilter/ip6_tables.c int off, i, ret; off 915 net/ipv6/netfilter/ip6_tables.c off = sizeof(struct ip6t_entry) - sizeof(struct compat_ip6t_entry); off 918 net/ipv6/netfilter/ip6_tables.c off += xt_compat_match_offset(ematch->u.kernel.match); off 920 net/ipv6/netfilter/ip6_tables.c off += xt_compat_target_offset(t->u.kernel.target); off 921 net/ipv6/netfilter/ip6_tables.c newinfo->size -= off; off 922 net/ipv6/netfilter/ip6_tables.c ret = xt_compat_add_offset(AF_INET6, entry_offset, off); off 929 net/ipv6/netfilter/ip6_tables.c newinfo->hook_entry[i] -= off; off 932 net/ipv6/netfilter/ip6_tables.c newinfo->underflow[i] -= off; off 1313 net/ipv6/netfilter/ip6_tables.c int ret, off; off 1332 net/ipv6/netfilter/ip6_tables.c off = sizeof(struct ip6t_entry) - sizeof(struct compat_ip6t_entry); off 1336 net/ipv6/netfilter/ip6_tables.c ret = compat_find_calc_match(ematch, &e->ipv6, &off); off 1351 net/ipv6/netfilter/ip6_tables.c off += xt_compat_target_offset(target); off 1352 net/ipv6/netfilter/ip6_tables.c *size += off; off 1353 net/ipv6/netfilter/ip6_tables.c ret = xt_compat_add_offset(AF_INET6, entry_offset, off); off 168 net/ipv6/seg6_hmac.c char *ring, *off; off 193 net/ipv6/seg6_hmac.c off = ring; off 196 net/ipv6/seg6_hmac.c memcpy(off, saddr, 16); off 197 net/ipv6/seg6_hmac.c off += 16; off 200 net/ipv6/seg6_hmac.c *off++ = hdr->first_segment; off 203 net/ipv6/seg6_hmac.c *off++ = hdr->flags; off 206 net/ipv6/seg6_hmac.c memcpy(off, &hmackeyid, 4); off 207 net/ipv6/seg6_hmac.c off += 4; off 211 net/ipv6/seg6_hmac.c memcpy(off, hdr->segments + i, 16); off 212 net/ipv6/seg6_hmac.c off += 16; off 118 net/ipv6/seg6_local.c unsigned int off = 0; off 129 net/ipv6/seg6_local.c if (ipv6_find_hdr(skb, &off, proto, NULL, NULL) < 0) off 132 net/ipv6/seg6_local.c if (!pskb_pull(skb, off)) off 135 net/ipv6/seg6_local.c skb_postpull_rcsum(skb, skb_network_header(skb), off); off 274 net/ipv6/udp.c int off, err, peeking = flags & MSG_PEEK; off 287 net/ipv6/udp.c off = sk_peek_offset(sk, flags); off 288 net/ipv6/udp.c skb = __skb_recv_udp(sk, flags, noblock, &off, &err); off 294 net/ipv6/udp.c if (copied > ulen - off) off 295 net/ipv6/udp.c copied = ulen - off; off 318 net/ipv6/udp.c err = copy_linear_skb(skb, copied, off, &msg->msg_iter); off 320 net/ipv6/udp.c err = skb_copy_datagram_msg(skb, off, msg, copied); off 322 net/ipv6/udp.c err = skb_copy_and_csum_datagram_msg(skb, off, msg); off 372 net/ipv6/udp.c sizeof(struct udphdr), off); off 307 net/l2tp/l2tp_core.h int off = *ptr - *optr; off 309 net/l2tp/l2tp_core.h if (!pskb_may_pull(skb, off + opt_len)) off 314 net/l2tp/l2tp_core.h *ptr = skb->data + off; off 594 net/mac80211/debugfs_sta.c #define PFLAG_RANGE(t, i, n, s, m, off, fmt) \ off 597 net/mac80211/debugfs_sta.c u8 idx = ((cap[i] & msk) >> (ffs(msk) - 1)) + off; \ off 601 net/mac80211/debugfs_sta.c #define PFLAG_RANGE_DEFAULT(t, i, n, s, m, off, fmt, a, b) \ off 607 net/mac80211/debugfs_sta.c PFLAG_RANGE(t, i, n, s, m, off, fmt); \ off 263 net/mac80211/led.c unsigned long on, off, tpt; off 275 net/mac80211/led.c off = 0; off 280 net/mac80211/led.c off = tpt_trig->blink_table[i].blink_time / 2; off 281 net/mac80211/led.c on = tpt_trig->blink_table[i].blink_time - off; off 288 net/mac80211/led.c led_blink_set(led_cdev, &on, &off); off 492 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(12, svc->af, pp, skb, iph->off, off 508 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(12, svc->af, pp, skb, iph->off, off 1285 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(11, af, pp, skb, iph->off, "Outgoing packet"); off 1323 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(10, af, pp, skb, iph->off, "After SNAT"); off 1485 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(12, af, pp, skb, iph.off, off 1564 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(12, af, pp, skb, iph->off, off 1569 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(7, af, pp, skb, iph->off, off 2100 net/netfilter/ipvs/ip_vs_core.c IP_VS_DBG_PKT(11, af, pp, skb, iph.off, "Incoming packet"); off 802 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_RL_PKT(10, AF_INET, pp, skb, ipvsh->off, off 812 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_RL_PKT(1, AF_INET, pp, skb, ipvsh->off, off 831 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_PKT(10, AF_INET, pp, skb, ipvsh->off, "After DNAT"); off 890 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_RL_PKT(10, AF_INET6, pp, skb, ipvsh->off, off 901 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_RL_PKT(1, AF_INET6, pp, skb, ipvsh->off, off 919 net/netfilter/ipvs/ip_vs_xmit.c IP_VS_DBG_PKT(10, AF_INET6, pp, skb, ipvsh->off, "After DNAT"); off 96 net/netfilter/nf_conntrack_amanda.c unsigned int dataoff, start, stop, off, i; off 131 net/netfilter/nf_conntrack_amanda.c off = skb_find_text(skb, start, stop, search[i].ts); off 132 net/netfilter/nf_conntrack_amanda.c if (off == UINT_MAX) off 134 net/netfilter/nf_conntrack_amanda.c off += start + search[i].len; off 136 net/netfilter/nf_conntrack_amanda.c len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); off 137 net/netfilter/nf_conntrack_amanda.c if (skb_copy_bits(skb, off, pbuf, len)) off 161 net/netfilter/nf_conntrack_amanda.c off - dataoff, len, exp); off 1557 net/netfilter/nf_conntrack_netlink.c unsigned long off) off 1563 net/netfilter/nf_conntrack_netlink.c off &= ~IPS_UNCHANGEABLE_MASK; off 1568 net/netfilter/nf_conntrack_netlink.c else if (off & (1 << bit)) off 11 net/netfilter/nf_conntrack_seqadj.c s32 off) off 17 net/netfilter/nf_conntrack_seqadj.c if (off == 0) off 24 net/netfilter/nf_conntrack_seqadj.c this_way->offset_before = off; off 25 net/netfilter/nf_conntrack_seqadj.c this_way->offset_after = off; off 31 net/netfilter/nf_conntrack_seqadj.c __be32 seq, s32 off) off 37 net/netfilter/nf_conntrack_seqadj.c if (off == 0) off 53 net/netfilter/nf_conntrack_seqadj.c this_way->offset_after += off; off 62 net/netfilter/nf_conntrack_seqadj.c s32 off) off 70 net/netfilter/nf_conntrack_seqadj.c nf_ct_seqadj_set(ct, ctinfo, th->seq, off); off 407 net/netfilter/nf_nat_core.c u16 off; off 489 net/netfilter/nf_nat_core.c off = (ntohs(*keyptr) - ntohs(range->base_proto.all)); off 491 net/netfilter/nf_nat_core.c off = prandom_u32(); off 504 net/netfilter/nf_nat_core.c for (i = 0; i < attempts; i++, off++) { off 505 net/netfilter/nf_nat_core.c *keyptr = htons(min + off % range_size); off 513 net/netfilter/nf_nat_core.c off = prandom_u32(); off 304 net/netfilter/nf_nat_sip.c s16 off) off 310 net/netfilter/nf_nat_sip.c if (nf_ct_protonum(ct) != IPPROTO_TCP || off == 0) off 314 net/netfilter/nf_nat_sip.c nf_ct_seqadj_set(ct, ctinfo, th->seq, off); off 46 net/netfilter/nf_tables_trace.c int off, unsigned int len) off 54 net/netfilter/nf_tables_trace.c if (!nla || skb_copy_bits(skb, off, nla_data(nla), len)) off 64 net/netfilter/nf_tables_trace.c int off; off 68 net/netfilter/nf_tables_trace.c off = skb_mac_header(skb) - skb->data; off 69 net/netfilter/nf_tables_trace.c if (off != -ETH_HLEN) off 72 net/netfilter/nf_tables_trace.c if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) off 113 net/netfilter/nf_tables_trace.c int off = skb_network_offset(skb); off 119 net/netfilter/nf_tables_trace.c if (trace_fill_header(nlskb, NFTA_TRACE_NETWORK_HEADER, skb, off, len)) off 136 net/netfilter/nf_tables_trace.c off = skb_mac_header(skb) - skb->data; off 137 net/netfilter/nf_tables_trace.c len = min_t(unsigned int, -off, NFT_TRACETYPE_LL_HSIZE); off 139 net/netfilter/nf_tables_trace.c skb, off, len); off 53 net/netfilter/nft_set_bitmap.c u32 *idx, u32 *off) off 64 net/netfilter/nft_set_bitmap.c *off = k % BITS_PER_BYTE; off 71 net/netfilter/nft_set_bitmap.c nft_bitmap_active(const u8 *bitmap, u32 idx, u32 off, u8 genmask) off 73 net/netfilter/nft_set_bitmap.c return (bitmap[idx] & (0x3 << off)) & (genmask << off); off 81 net/netfilter/nft_set_bitmap.c u32 idx, off; off 83 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, key, &idx, &off); off 85 net/netfilter/nft_set_bitmap.c return nft_bitmap_active(priv->bitmap, idx, off, genmask); off 130 net/netfilter/nft_set_bitmap.c u32 idx, off; off 138 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, nft_set_ext_key(&new->ext), &idx, &off); off 140 net/netfilter/nft_set_bitmap.c priv->bitmap[idx] |= (genmask << off); off 153 net/netfilter/nft_set_bitmap.c u32 idx, off; off 155 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, nft_set_ext_key(&be->ext), &idx, &off); off 157 net/netfilter/nft_set_bitmap.c priv->bitmap[idx] &= ~(genmask << off); off 168 net/netfilter/nft_set_bitmap.c u32 idx, off; off 170 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, nft_set_ext_key(&be->ext), &idx, &off); off 172 net/netfilter/nft_set_bitmap.c priv->bitmap[idx] |= (genmask << off); off 182 net/netfilter/nft_set_bitmap.c u32 idx, off; off 184 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, nft_set_ext_key(&be->ext), &idx, &off); off 186 net/netfilter/nft_set_bitmap.c priv->bitmap[idx] &= ~(genmask << off); off 199 net/netfilter/nft_set_bitmap.c u32 idx, off; off 201 net/netfilter/nft_set_bitmap.c nft_bitmap_location(set, elem->key.val.data, &idx, &off); off 208 net/netfilter/nft_set_bitmap.c priv->bitmap[idx] &= ~(genmask << off); off 734 net/netfilter/x_tables.c int pad, off = xt_compat_match_offset(match); off 748 net/netfilter/x_tables.c msize += off; off 754 net/netfilter/x_tables.c *size += off; off 770 net/netfilter/x_tables.c int off = xt_compat_match_offset(match); off 771 net/netfilter/x_tables.c u_int16_t msize = m->u.user.match_size - off; off 784 net/netfilter/x_tables.c *size -= off; off 1117 net/netfilter/x_tables.c int pad, off = xt_compat_target_offset(target); off 1131 net/netfilter/x_tables.c tsize += off; off 1137 net/netfilter/x_tables.c *size += off; off 1147 net/netfilter/x_tables.c int off = xt_compat_target_offset(target); off 1148 net/netfilter/x_tables.c u_int16_t tsize = t->u.user.target_size - off; off 1161 net/netfilter/x_tables.c *size -= off; off 1847 net/netfilter/x_tables.c counter->pcnt = (__force unsigned long)(state->mem + state->off); off 1848 net/netfilter/x_tables.c state->off += sizeof(*counter); off 1849 net/netfilter/x_tables.c if (state->off > (XT_PCPU_BLOCK_SIZE - sizeof(*counter))) { off 1851 net/netfilter/x_tables.c state->off = 0; off 730 net/netlabel/netlabel_kapi.c u32 off = *offset; off 734 net/netlabel/netlabel_kapi.c if ((off & (BITS_PER_LONG - 1)) != 0) off 743 net/netlabel/netlabel_kapi.c if (off < catmap->startbit) { off 744 net/netlabel/netlabel_kapi.c off = catmap->startbit; off 745 net/netlabel/netlabel_kapi.c *offset = off; off 747 net/netlabel/netlabel_kapi.c iter = _netlbl_catmap_getnode(&catmap, off, _CM_F_WALK, 0); off 753 net/netlabel/netlabel_kapi.c if (off < iter->startbit) { off 755 net/netlabel/netlabel_kapi.c off = 0; off 757 net/netlabel/netlabel_kapi.c off -= iter->startbit; off 758 net/netlabel/netlabel_kapi.c idx = off / NETLBL_CATMAP_MAPSIZE; off 759 net/netlabel/netlabel_kapi.c *bitmap = iter->bitmap[idx] >> (off % NETLBL_CATMAP_MAPSIZE); off 2555 net/packet/af_packet.c int tp_len, off; off 2587 net/packet/af_packet.c off = ph.h3->tp_net; off 2590 net/packet/af_packet.c off = ph.h2->tp_net; off 2593 net/packet/af_packet.c off = ph.h1->tp_net; off 2599 net/packet/af_packet.c off = ph.h3->tp_mac; off 2602 net/packet/af_packet.c off = ph.h2->tp_mac; off 2605 net/packet/af_packet.c off = ph.h1->tp_mac; off 2609 net/packet/af_packet.c if (unlikely((off < off_min) || (off_max < off))) off 2612 net/packet/af_packet.c off = po->tp_hdrlen - sizeof(struct sockaddr_ll); off 2615 net/packet/af_packet.c *data = frame + off; off 302 net/rds/cong.c unsigned long off; off 308 net/rds/cong.c off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off 310 net/rds/cong.c set_bit_le(off, (void *)map->m_page_addrs[i]); off 316 net/rds/cong.c unsigned long off; off 322 net/rds/cong.c off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off 324 net/rds/cong.c clear_bit_le(off, (void *)map->m_page_addrs[i]); off 330 net/rds/cong.c unsigned long off; off 333 net/rds/cong.c off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; off 335 net/rds/cong.c return test_bit_le(off, (void *)map->m_page_addrs[i]); off 432 net/rds/ib.h unsigned int hdr_off, unsigned int sg, unsigned int off); off 127 net/rds/ib_frmr.c int ret, off = 0; off 135 net/rds/ib_frmr.c &off, PAGE_SIZE); off 484 net/rds/ib_send.c unsigned int hdr_off, unsigned int sg, unsigned int off) off 505 net/rds/ib_send.c BUG_ON(off % RDS_FRAG_SIZE); off 77 net/rds/loop.c unsigned int off) off 90 net/rds/loop.c BUG_ON(hdr_off || sg || off); off 558 net/rds/rds.h unsigned int hdr_off, unsigned int sg, unsigned int off); off 90 net/rds/tcp.h unsigned int hdr_off, unsigned int sg, unsigned int off); off 76 net/rds/tcp_send.c unsigned int hdr_off, unsigned int sg, unsigned int off) off 125 net/rds/tcp_send.c rm->data.op_sg[sg].offset + off, off 126 net/rds/tcp_send.c rm->data.op_sg[sg].length - off, off 129 net/rds/tcp_send.c rm->data.op_sg[sg].offset + off, rm->data.op_sg[sg].length - off, off 134 net/rds/tcp_send.c off += ret; off 136 net/rds/tcp_send.c if (off == rm->data.op_sg[sg].length) { off 137 net/rds/tcp_send.c off = 0; off 453 net/sched/act_csum.c int off, len, optlen; off 456 net/sched/act_csum.c off = sizeof(*ip6xh); off 457 net/sched/act_csum.c len = ixhl - off; off 460 net/sched/act_csum.c switch (xh[off]) { off 465 net/sched/act_csum.c optlen = xh[off + 1] + 2; off 466 net/sched/act_csum.c if (optlen != 6 || len < 6 || (off & 3) != 2) off 469 net/sched/act_csum.c *pl = ntohl(*(__be32 *)(xh + off + 2)); off 472 net/sched/act_csum.c optlen = xh[off + 1] + 2; off 478 net/sched/act_csum.c off += optlen; off 330 net/sched/act_pedit.c int offset = tkey->off; off 108 net/sched/cls_u32.c unsigned int off; off 112 net/sched/cls_u32.c unsigned int off = skb_network_offset(skb); off 149 net/sched/cls_u32.c int toff = off + key->off + (off2 & key->offmask); off 197 net/sched/cls_u32.c stack[sdepth].off = off; off 205 net/sched/cls_u32.c data = skb_header_pointer(skb, off + n->sel.hoff, 4, off 216 net/sched/cls_u32.c off2 = n->sel.off + 3; off 221 net/sched/cls_u32.c off + n->sel.offoff, off 231 net/sched/cls_u32.c off += off2; off 235 net/sched/cls_u32.c if (off < skb->len) off 243 net/sched/cls_u32.c off = stack[sdepth].off; off 25 net/sched/em_cmp.c unsigned char *ptr = tcf_get_base_ptr(skb, cmp->layer) + cmp->off; off 45 net/sched/em_nbyte.c ptr += nbyte->hdr.off; off 29 net/sched/em_u32.c ptr += key->off; off 1274 net/sched/sch_cake.c static u32 cake_calc_overhead(struct cake_sched_data *q, u32 len, u32 off) off 1277 net/sched/sch_cake.c len -= off; off 1313 net/sched/sch_cake.c u32 off = skb_network_offset(skb); off 1317 net/sched/sch_cake.c q->avg_netoff = cake_ewma(q->avg_netoff, off << 16, 8); off 1320 net/sched/sch_cake.c return cake_calc_overhead(q, len, off); off 1352 net/sched/sch_cake.c return (cake_calc_overhead(q, len, off) * (segs - 1) + off 1353 net/sched/sch_cake.c cake_calc_overhead(q, last_len, off)); off 30 net/sctp/tsnmap.c static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, off 272 net/sctp/tsnmap.c static void sctp_tsnmap_find_gap_ack(unsigned long *map, __u16 off, off 275 net/sctp/tsnmap.c int i = off; off 284 net/sctp/tsnmap.c i = find_next_bit(map, len, off); off 108 net/vmw_vsock/virtio_transport_common.c payload_buf = pkt->buf + pkt->off; off 287 net/vmw_vsock/virtio_transport_common.c if (bytes > pkt->len - pkt->off) off 288 net/vmw_vsock/virtio_transport_common.c bytes = pkt->len - pkt->off; off 295 net/vmw_vsock/virtio_transport_common.c err = memcpy_to_msg(msg, pkt->buf + pkt->off, bytes); off 302 net/vmw_vsock/virtio_transport_common.c pkt->off += bytes; off 303 net/vmw_vsock/virtio_transport_common.c if (pkt->off == pkt->len) { off 889 net/vmw_vsock/virtio_transport_common.c pkt->off = 0; off 93 net/wireless/wext-proc.c loff_t off; off 100 net/wireless/wext-proc.c off = 1; off 102 net/wireless/wext-proc.c if (off++ == *pos) off 885 net/xdp/xsk.c struct xdp_mmap_offsets off; off 892 net/xdp/xsk.c else if (len < sizeof(off)) off 900 net/xdp/xsk.c &off.rx); off 902 net/xdp/xsk.c &off.tx); off 904 net/xdp/xsk.c &off.fr); off 906 net/xdp/xsk.c &off.cr); off 907 net/xdp/xsk.c off.rx.flags = offsetof(struct xdp_rxtx_ring, off 909 net/xdp/xsk.c off.tx.flags = offsetof(struct xdp_rxtx_ring, off 911 net/xdp/xsk.c off.fr.flags = offsetof(struct xdp_umem_ring, off 913 net/xdp/xsk.c off.cr.flags = offsetof(struct xdp_umem_ring, off 916 net/xdp/xsk.c len = sizeof(off); off 917 net/xdp/xsk.c to_copy = &off; off 15 samples/bpf/bpf_insn.h .off = 0, \ off 23 samples/bpf/bpf_insn.h .off = 0, \ off 33 samples/bpf/bpf_insn.h .off = 0, \ off 41 samples/bpf/bpf_insn.h .off = 0, \ off 51 samples/bpf/bpf_insn.h .off = 0, \ off 59 samples/bpf/bpf_insn.h .off = 0, \ off 69 samples/bpf/bpf_insn.h .off = 0, \ off 77 samples/bpf/bpf_insn.h .off = 0, \ off 89 samples/bpf/bpf_insn.h .off = 0, \ off 95 samples/bpf/bpf_insn.h .off = 0, \ off 114 samples/bpf/bpf_insn.h .off = 0, \ off 124 samples/bpf/bpf_insn.h .off = OFF, \ off 134 samples/bpf/bpf_insn.h .off = OFF, \ off 144 samples/bpf/bpf_insn.h .off = OFF, \ off 154 samples/bpf/bpf_insn.h .off = OFF, \ off 164 samples/bpf/bpf_insn.h .off = OFF, \ off 174 samples/bpf/bpf_insn.h .off = OFF, \ off 184 samples/bpf/bpf_insn.h .off = OFF, \ off 194 samples/bpf/bpf_insn.h .off = OFF, \ off 204 samples/bpf/bpf_insn.h .off = OFF, \ off 214 samples/bpf/bpf_insn.h .off = 0, \ off 51 samples/bpf/sockex2_kern.c static inline __u32 ipv6_addr_hash(struct __sk_buff *ctx, __u64 off) off 53 samples/bpf/sockex2_kern.c __u64 w0 = load_word(ctx, off); off 54 samples/bpf/sockex2_kern.c __u64 w1 = load_word(ctx, off + 4); off 55 samples/bpf/sockex2_kern.c __u64 w2 = load_word(ctx, off + 8); off 56 samples/bpf/sockex2_kern.c __u64 w3 = load_word(ctx, off + 12); off 80 samples/bpf/sockex3_kern.c static inline __u32 ipv6_addr_hash(struct __sk_buff *ctx, __u64 off) off 82 samples/bpf/sockex3_kern.c __u64 w0 = load_word(ctx, off); off 83 samples/bpf/sockex3_kern.c __u64 w1 = load_word(ctx, off + 4); off 84 samples/bpf/sockex3_kern.c __u64 w2 = load_word(ctx, off + 8); off 85 samples/bpf/sockex3_kern.c __u64 w3 = load_word(ctx, off + 12); off 95 samples/bpf/test_lwt_bpf.c int ret, off = 0, flags = IS_PSEUDO; off 106 samples/bpf/test_lwt_bpf.c off = TCP_CSUM_OFF; off 110 samples/bpf/test_lwt_bpf.c off = UDP_CSUM_OFF; off 115 samples/bpf/test_lwt_bpf.c off = offsetof(struct icmp6hdr, icmp6_cksum); off 119 samples/bpf/test_lwt_bpf.c if (off) { off 120 samples/bpf/test_lwt_bpf.c ret = bpf_l4_csum_replace(skb, off, old_ip, new_ip, off 83 samples/bpf/xdp_adjust_tail_kern.c __u64 off = 0; off 87 samples/bpf/xdp_adjust_tail_kern.c off += sizeof(struct ethhdr); off 88 samples/bpf/xdp_adjust_tail_kern.c iph = data + off; off 89 samples/bpf/xdp_adjust_tail_kern.c off += sizeof(struct iphdr); off 90 samples/bpf/xdp_adjust_tail_kern.c icmp_hdr = data + off; off 91 samples/bpf/xdp_adjust_tail_kern.c off += sizeof(struct icmphdr); off 92 samples/bpf/xdp_adjust_tail_kern.c orig_iph = data + off; off 60 samples/vfio-mdev/mtty.c #define MTTY_VFIO_PCI_OFFSET_TO_INDEX(off) (off >> MTTY_VFIO_PCI_OFFSET_SHIFT) off 152 scripts/dtc/flattree.c int off = 0; off 158 scripts/dtc/flattree.c while ((d.len - off) >= sizeof(uint32_t)) { off 159 scripts/dtc/flattree.c asm_emit_cell(e, fdt32_to_cpu(*((fdt32_t *)(d.val+off)))); off 160 scripts/dtc/flattree.c off += sizeof(uint32_t); off 163 scripts/dtc/flattree.c while ((d.len - off) >= 1) { off 164 scripts/dtc/flattree.c fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); off 165 scripts/dtc/flattree.c off += 1; off 168 scripts/dtc/flattree.c assert(off == d.len); off 599 scripts/dtc/flattree.c int off = inb->ptr - inb->base; off 601 scripts/dtc/flattree.c inb->ptr = inb->base + ALIGN(off, align); off 37 scripts/dtc/libfdt/fdt.c static int check_off_(uint32_t hdrsize, uint32_t totalsize, uint32_t off) off 39 scripts/dtc/libfdt/fdt.c return (off >= hdrsize) && (off <= totalsize); off 36 scripts/dtc/yamltree.c int off, start_offset = markers->offset; off 52 scripts/dtc/yamltree.c for (off = 0; off < len; off += width) { off 59 scripts/dtc/yamltree.c sprintf(buf, "0x%"PRIx8, *(uint8_t*)(data + off)); off 62 scripts/dtc/yamltree.c sprintf(buf, "0x%"PRIx16, fdt16_to_cpu(*(fdt16_t*)(data + off))); off 65 scripts/dtc/yamltree.c sprintf(buf, "0x%"PRIx32, fdt32_to_cpu(*(fdt32_t*)(data + off))); off 69 scripts/dtc/yamltree.c if (m->offset == (start_offset + off)) { off 76 scripts/dtc/yamltree.c sprintf(buf, "0x%"PRIx64, fdt64_to_cpu(*(fdt64_t*)(data + off))); off 332 scripts/kallsyms.c unsigned int i, k, off; off 422 scripts/kallsyms.c off = 0; off 425 scripts/kallsyms.c markers[i >> 8] = off; off 432 scripts/kallsyms.c off += table[i].len + 1; off 444 scripts/kallsyms.c off = 0; off 446 scripts/kallsyms.c best_idx[i] = off; off 449 scripts/kallsyms.c off += strlen(buf) + 1; off 787 scripts/kconfig/qconf.cc int off = header()->sectionPosition(0) + visualRect(indexAt(p)).x() + 4; // 4 is Hardcoded image offset. There might be a way to do it properly. off 788 scripts/kconfig/qconf.cc if (x >= off && x < off + icon.availableSizes().first().width()) { off 267 scripts/recordmcount.c size_t off = offset; off 272 scripts/recordmcount.c off -= 4; off 280 scripts/recordmcount.c off -= 2; off 286 scripts/recordmcount.c if (ulseek(off, SEEK_SET) < 0) off 756 security/device_cgroup.c char *buf, size_t nbytes, loff_t off) off 34 sound/core/pcm_lib.c snd_pcm_uframes_t off, snd_pcm_uframes_t frames); off 1987 sound/core/pcm_lib.c snd_pcm_uframes_t off, off 1995 sound/core/pcm_lib.c off = frames_to_bytes(runtime, off); off 1997 sound/core/pcm_lib.c return transfer(substream, 0, hwoff, data + off, frames); off 2005 sound/core/pcm_lib.c snd_pcm_uframes_t off, off 2018 sound/core/pcm_lib.c off = samples_to_bytes(runtime, off); off 2025 sound/core/pcm_lib.c err = transfer(substream, c, hwoff, *bufs + off, off 2037 sound/core/pcm_lib.c snd_pcm_uframes_t off, snd_pcm_uframes_t frames) off 2041 sound/core/pcm_lib.c return interleaved_copy(substream, off, NULL, 0, frames, off 2044 sound/core/pcm_lib.c return noninterleaved_copy(substream, off, NULL, 0, frames, off 40 sound/firewire/digi00x/amdtp-dot.c unsigned int off; off 62 sound/firewire/digi00x/amdtp-dot.c static u8 dot_scrt(const u8 idx, const unsigned int off) off 93 sound/firewire/digi00x/amdtp-dot.c const u8 hr = (hn == 0x9) ? 0x9 : hir[(hio[hn] + off) % 15]; off 95 sound/firewire/digi00x/amdtp-dot.c if (len[ln] < off) off 98 sound/firewire/digi00x/amdtp-dot.c return ((nib[14 + off - len[ln]]) | (hr << 4)); off 106 sound/firewire/digi00x/amdtp-dot.c state->off = 0; off 110 sound/firewire/digi00x/amdtp-dot.c state->carry = dot_scrt(state->idx, ++(state->off)); off 420 sound/firewire/digi00x/amdtp-dot.c p->state.off = 0; off 195 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c static void pdacf_transfer(struct snd_pdacf *chip, unsigned int size, unsigned int off) off 203 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono24le((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); off 205 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo24le((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); off 209 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono24be((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); off 211 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo24be((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); off 219 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono16((u16 *)chip->pcm_area + off, xor, size, rdp_port); off 221 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono32((u32 *)chip->pcm_area + off, xor, size, rdp_port); off 225 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo16((u16 *)chip->pcm_area + (off * 2), xor, size, rdp_port); off 227 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo32((u32 *)chip->pcm_area + (off * 2), xor, size, rdp_port); off 233 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono16sw((u16 *)chip->pcm_area + off, xor, size, rdp_port); off 235 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_mono32sw((u32 *)chip->pcm_area + off, xor, size, rdp_port); off 239 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo16sw((u16 *)chip->pcm_area + (off * 2), xor, size, rdp_port); off 241 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer_stereo32sw((u32 *)chip->pcm_area + (off * 2), xor, size, rdp_port); off 250 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c int size, off, cont, rdp, wdp; off 289 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c off = chip->pcm_hwptr + chip->pcm_tdone; off 290 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c off %= chip->pcm_size; off 293 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c cont = chip->pcm_size - off; off 296 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c pdacf_transfer(chip, cont, off); off 297 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c off += cont; off 298 sound/pcmcia/pdaudiocf/pdaudiocf_irq.c off %= chip->pcm_size; off 209 sound/ppc/burgundy.c long *volume, int off) off 213 sound/ppc/burgundy.c off |= off << 2; off 217 sound/ppc/burgundy.c snd_pmac_burgundy_wcb(chip, address + off, lvolume); off 218 sound/ppc/burgundy.c snd_pmac_burgundy_wcb(chip, address + off + 0x500, rvolume); off 223 sound/ppc/burgundy.c long *volume, int off) off 225 sound/ppc/burgundy.c volume[0] = snd_pmac_burgundy_rcb(chip, address + off); off 230 sound/ppc/burgundy.c volume[1] = snd_pmac_burgundy_rcb(chip, address + off + 0x100); off 252 sound/ppc/burgundy.c int off = kcontrol->private_value & 0x300; off 254 sound/ppc/burgundy.c ucontrol->value.integer.value, off); off 263 sound/ppc/burgundy.c int off = kcontrol->private_value & 0x300; off 267 sound/ppc/burgundy.c ucontrol->value.integer.value, off); off 268 sound/ppc/burgundy.c snd_pmac_burgundy_read_volume_2b(chip, addr, nvoices, off); off 273 sound/ppc/burgundy.c #define BURGUNDY_VOLUME_2B(xname, xindex, addr, off) \ off 278 sound/ppc/burgundy.c .private_value = ((ADDR2BASE(addr) & 0xff) | ((off) << 8)) } off 161 sound/soc/bcm/bcm2835-i2s.c uint32_t off; off 164 sound/soc/bcm/bcm2835-i2s.c off = tx ? BCM2835_I2S_TXON : 0; off 165 sound/soc/bcm/bcm2835-i2s.c off |= rx ? BCM2835_I2S_RXON : 0; off 180 sound/soc/bcm/bcm2835-i2s.c regmap_update_bits(dev->i2s_regmap, BCM2835_I2S_CS_A_REG, off, 0); off 1182 sound/soc/codecs/tlv320aic31xx.c u8 off = 0; off 1185 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_BCLKN, mask, off); off 1186 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_MADC, mask, off); off 1187 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_NADC, mask, off); off 1188 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_MDAC, mask, off); off 1189 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_NDAC, mask, off); off 1190 sound/soc/codecs/tlv320aic31xx.c snd_soc_component_update_bits(component, AIC31XX_PLLPR, mask, off); off 2513 sound/soc/intel/skylake/skl-topology.c int off = 0, tuple_size = 0; off 2520 sound/soc/intel/skylake/skl-topology.c array = (struct snd_soc_tplg_vendor_array *)(pvt_data + off); off 2522 sound/soc/intel/skylake/skl-topology.c off += array->size; off 2566 sound/soc/intel/skylake/skl-topology.c return off; off 2766 sound/soc/intel/skylake/skl-topology.c int num_blocks, block_size = 0, block_type, off = 0; off 2784 sound/soc/intel/skylake/skl-topology.c off += array->size; off 2788 sound/soc/intel/skylake/skl-topology.c (tplg_w->priv.data + off); off 2795 sound/soc/intel/skylake/skl-topology.c off += array->size; off 2798 sound/soc/intel/skylake/skl-topology.c (tplg_w->priv.data + off); off 2805 sound/soc/intel/skylake/skl-topology.c off += array->size; off 2808 sound/soc/intel/skylake/skl-topology.c (tplg_w->priv.data + off); off 2810 sound/soc/intel/skylake/skl-topology.c data = (tplg_w->priv.data + off); off 2827 sound/soc/intel/skylake/skl-topology.c off += ret; off 3346 sound/soc/intel/skylake/skl-topology.c int off = 0, tuple_size = 0; off 3355 sound/soc/intel/skylake/skl-topology.c array = (struct snd_soc_tplg_vendor_array *)(pvt_data + off); off 3356 sound/soc/intel/skylake/skl-topology.c off += array->size; off 3404 sound/soc/intel/skylake/skl-topology.c return off; off 3415 sound/soc/intel/skylake/skl-topology.c int num_blocks, block_size = 0, block_type, off = 0; off 3426 sound/soc/intel/skylake/skl-topology.c off += array->size; off 3430 sound/soc/intel/skylake/skl-topology.c (manifest->priv.data + off); off 3436 sound/soc/intel/skylake/skl-topology.c off += array->size; off 3439 sound/soc/intel/skylake/skl-topology.c (manifest->priv.data + off); off 3446 sound/soc/intel/skylake/skl-topology.c off += array->size; off 3449 sound/soc/intel/skylake/skl-topology.c (manifest->priv.data + off); off 3451 sound/soc/intel/skylake/skl-topology.c data = (manifest->priv.data + off); off 3464 sound/soc/intel/skylake/skl-topology.c off += ret; off 124 sound/soc/pxa/mmp-pcm.c unsigned long off = vma->vm_pgoff; off 128 sound/soc/pxa/mmp-pcm.c __phys_to_pfn(runtime->dma_addr) + off, off 700 sound/synth/emux/soundfont.c long off; off 712 sound/synth/emux/soundfont.c off = sizeof(sample_info); off 714 sound/synth/emux/soundfont.c if (sample_info.size != (count-off)/2) off 741 sound/synth/emux/soundfont.c data + off, count - off); off 586 tools/bpf/bpf_dbg.c static bool bpf_restore_regs(int off) off 588 tools/bpf/bpf_dbg.c unsigned int index = bpf_regs_len - 1 + off; off 603 tools/bpf/bpf_dbg.c static uint32_t extract_u32(uint8_t *pkt, uint32_t off) off 607 tools/bpf/bpf_dbg.c memcpy(&r, &pkt[off], sizeof(r)); off 612 tools/bpf/bpf_dbg.c static uint16_t extract_u16(uint8_t *pkt, uint32_t off) off 616 tools/bpf/bpf_dbg.c memcpy(&r, &pkt[off], sizeof(r)); off 621 tools/bpf/bpf_dbg.c static uint8_t extract_u8(uint8_t *pkt, uint32_t off) off 623 tools/bpf/bpf_dbg.c return pkt[off]; off 542 tools/bpf/bpf_exp.y int off = bpf_find_insns_offset(labels_k[i]); off 543 tools/bpf/bpf_exp.y out[i].k = (uint32_t) (off - i - 1); off 554 tools/bpf/bpf_exp.y int off = bpf_find_insns_offset(labels_jt[i]); off 555 tools/bpf/bpf_exp.y out[i].jt = (uint8_t) (off - i -1); off 566 tools/bpf/bpf_exp.y int off = bpf_find_insns_offset(labels_jf[i]); off 567 tools/bpf/bpf_exp.y out[i].jf = (uint8_t) (off - i - 1); off 174 tools/bpf/bpf_jit_disasm.c off_t off = 0; off 196 tools/bpf/bpf_jit_disasm.c off += pmatch[0].rm_eo; off 197 tools/bpf/bpf_jit_disasm.c assert(off < hlen); off 202 tools/bpf/bpf_jit_disasm.c ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); off 221 tools/bpf/bpf_jit_disasm.c tmp = ptr = haystack + off; off 77 tools/bpf/bpftool/btf.c static const char *btf_str(const struct btf *btf, __u32 off) off 79 tools/bpf/bpftool/btf.c if (!off) off 81 tools/bpf/bpftool/btf.c return btf__name_by_offset(btf, off) ? : "(invalid)"; off 145 tools/bpf/bpftool/cfg.c func = cfg_append_func(cfg, cur + cur->off + 1); off 184 tools/bpf/bpftool/cfg.c bb = func_append_bb(func, cur + cur->off + 1); off 312 tools/bpf/bpftool/cfg.c insn + insn->off + 1); off 326 tools/bpf/bpftool/cfg.c e->dst = func_search_bb_with_head(func, insn + insn->off + 1); off 146 tools/bpf/bpftool/xlated_dumper.c "%+d", insn->off); off 149 tools/bpf/bpftool/xlated_dumper.c "%+d#%s", insn->off, sym->name); off 152 tools/bpf/bpftool/xlated_dumper.c "%+d#0x%lx", insn->off, address); off 274 tools/bpf/bpftool/xlated_dumper.c print_hex_data_json((uint8_t *)(&insn[i].off), 2); off 39 tools/include/linux/filter.h .off = 0, \ off 47 tools/include/linux/filter.h .off = 0, \ off 57 tools/include/linux/filter.h .off = 0, \ off 65 tools/include/linux/filter.h .off = 0, \ off 75 tools/include/linux/filter.h .off = 0, \ off 85 tools/include/linux/filter.h .off = 0, \ off 93 tools/include/linux/filter.h .off = 0, \ off 103 tools/include/linux/filter.h .off = 0, \ off 111 tools/include/linux/filter.h .off = 0, \ off 121 tools/include/linux/filter.h .off = 0, \ off 129 tools/include/linux/filter.h .off = 0, \ off 139 tools/include/linux/filter.h .off = 0, \ off 149 tools/include/linux/filter.h .off = 0, \ off 159 tools/include/linux/filter.h .off = OFF, \ off 169 tools/include/linux/filter.h .off = OFF, \ off 179 tools/include/linux/filter.h .off = OFF, \ off 189 tools/include/linux/filter.h .off = OFF, \ off 199 tools/include/linux/filter.h .off = OFF, \ off 209 tools/include/linux/filter.h .off = OFF, \ off 219 tools/include/linux/filter.h .off = OFF, \ off 229 tools/include/linux/filter.h .off = OFF, \ off 239 tools/include/linux/filter.h .off = OFF, \ off 249 tools/include/linux/filter.h .off = 0, \ off 259 tools/include/linux/filter.h .off = OFF, \ off 272 tools/include/linux/filter.h .off = 0, \ off 278 tools/include/linux/filter.h .off = 0, \ off 286 tools/include/linux/filter.h .off = OFF1, \ off 292 tools/include/linux/filter.h .off = OFF2, \ off 312 tools/include/linux/filter.h .off = 0, \ off 322 tools/include/linux/filter.h .off = 0, \ off 69 tools/include/uapi/linux/bpf.h __s16 off; /* signed offset */ off 168 tools/include/uapi/linux/pkt_cls.h int off; off 178 tools/include/uapi/linux/pkt_cls.h __u16 off; off 190 tools/io_uring/io_uring-bench.c sqe->off = offset; off 114 tools/io_uring/liburing.h sqe->off = offset; off 508 tools/lib/bpf/btf.c __u32 size = 0, off = 0, i, vars = btf_vlen(t); off 546 tools/lib/bpf/btf.c ret = bpf_object__variable_offset(obj, name, &off); off 553 tools/lib/bpf/btf.c vsi->offset = off; off 768 tools/lib/bpf/btf.c __u32 off; off 787 tools/lib/bpf/btf.c if (ext_sec->off & 0x03) { off 793 tools/lib/bpf/btf.c info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off; off 798 tools/lib/bpf/btf.c ext_sec->desc, ext_sec->off, ext_sec->len); off 867 tools/lib/bpf/btf.c .off = btf_ext->hdr->func_info_off, off 880 tools/lib/bpf/btf.c .off = btf_ext->hdr->line_info_off, off 893 tools/lib/bpf/btf.c .off = btf_ext->hdr->offset_reloc_off, off 875 tools/lib/bpf/btf_dump.c int align, i, packed, off = 0; off 894 tools/lib/bpf/btf_dump.c btf_dump_emit_bit_padding(d, off, m_off, m_sz, align, lvl + 1); off 900 tools/lib/bpf/btf_dump.c off = m_off + m_sz; off 903 tools/lib/bpf/btf_dump.c off = m_off + m_sz * 8; off 911 tools/lib/bpf/btf_dump.c btf_dump_emit_bit_padding(d, off, t->size * 8, 0, align, off 744 tools/lib/bpf/libbpf.c __u32 *off) off 750 tools/lib/bpf/libbpf.c if (!name || !off) off 770 tools/lib/bpf/libbpf.c *off = sym.st_value; off 2818 tools/lib/bpf/libbpf.c insn->off, insn->imm); off 81 tools/lib/bpf/libbpf.h __u32 *off); off 151 tools/lib/bpf/xsk.c static void xsk_mmap_offsets_v1(struct xdp_mmap_offsets *off) off 159 tools/lib/bpf/xsk.c memcpy(&off_v1, off, sizeof(off_v1)); off 161 tools/lib/bpf/xsk.c off->rx.producer = off_v1.rx.producer; off 162 tools/lib/bpf/xsk.c off->rx.consumer = off_v1.rx.consumer; off 163 tools/lib/bpf/xsk.c off->rx.desc = off_v1.rx.desc; off 164 tools/lib/bpf/xsk.c off->rx.flags = off_v1.rx.consumer + sizeof(__u32); off 166 tools/lib/bpf/xsk.c off->tx.producer = off_v1.tx.producer; off 167 tools/lib/bpf/xsk.c off->tx.consumer = off_v1.tx.consumer; off 168 tools/lib/bpf/xsk.c off->tx.desc = off_v1.tx.desc; off 169 tools/lib/bpf/xsk.c off->tx.flags = off_v1.tx.consumer + sizeof(__u32); off 171 tools/lib/bpf/xsk.c off->fr.producer = off_v1.fr.producer; off 172 tools/lib/bpf/xsk.c off->fr.consumer = off_v1.fr.consumer; off 173 tools/lib/bpf/xsk.c off->fr.desc = off_v1.fr.desc; off 174 tools/lib/bpf/xsk.c off->fr.flags = off_v1.fr.consumer + sizeof(__u32); off 176 tools/lib/bpf/xsk.c off->cr.producer = off_v1.cr.producer; off 177 tools/lib/bpf/xsk.c off->cr.consumer = off_v1.cr.consumer; off 178 tools/lib/bpf/xsk.c off->cr.desc = off_v1.cr.desc; off 179 tools/lib/bpf/xsk.c off->cr.flags = off_v1.cr.consumer + sizeof(__u32); off 182 tools/lib/bpf/xsk.c static int xsk_get_mmap_offsets(int fd, struct xdp_mmap_offsets *off) off 187 tools/lib/bpf/xsk.c optlen = sizeof(*off); off 188 tools/lib/bpf/xsk.c err = getsockopt(fd, SOL_XDP, XDP_MMAP_OFFSETS, off, &optlen); off 192 tools/lib/bpf/xsk.c if (optlen == sizeof(*off)) off 196 tools/lib/bpf/xsk.c xsk_mmap_offsets_v1(off); off 208 tools/lib/bpf/xsk.c struct xdp_mmap_offsets off; off 259 tools/lib/bpf/xsk.c err = xsk_get_mmap_offsets(umem->fd, &off); off 265 tools/lib/bpf/xsk.c map = mmap(NULL, off.fr.desc + umem->config.fill_size * sizeof(__u64), off 276 tools/lib/bpf/xsk.c fill->producer = map + off.fr.producer; off 277 tools/lib/bpf/xsk.c fill->consumer = map + off.fr.consumer; off 278 tools/lib/bpf/xsk.c fill->flags = map + off.fr.flags; off 279 tools/lib/bpf/xsk.c fill->ring = map + off.fr.desc; off 282 tools/lib/bpf/xsk.c map = mmap(NULL, off.cr.desc + umem->config.comp_size * sizeof(__u64), off 293 tools/lib/bpf/xsk.c comp->producer = map + off.cr.producer; off 294 tools/lib/bpf/xsk.c comp->consumer = map + off.cr.consumer; off 295 tools/lib/bpf/xsk.c comp->flags = map + off.cr.flags; off 296 tools/lib/bpf/xsk.c comp->ring = map + off.cr.desc; off 302 tools/lib/bpf/xsk.c munmap(map, off.fr.desc + umem->config.fill_size * sizeof(__u64)); off 565 tools/lib/bpf/xsk.c struct xdp_mmap_offsets off; off 625 tools/lib/bpf/xsk.c err = xsk_get_mmap_offsets(xsk->fd, &off); off 632 tools/lib/bpf/xsk.c rx_map = mmap(NULL, off.rx.desc + off 643 tools/lib/bpf/xsk.c rx->producer = rx_map + off.rx.producer; off 644 tools/lib/bpf/xsk.c rx->consumer = rx_map + off.rx.consumer; off 645 tools/lib/bpf/xsk.c rx->flags = rx_map + off.rx.flags; off 646 tools/lib/bpf/xsk.c rx->ring = rx_map + off.rx.desc; off 651 tools/lib/bpf/xsk.c tx_map = mmap(NULL, off.tx.desc + off 662 tools/lib/bpf/xsk.c tx->producer = tx_map + off.tx.producer; off 663 tools/lib/bpf/xsk.c tx->consumer = tx_map + off.tx.consumer; off 664 tools/lib/bpf/xsk.c tx->flags = tx_map + off.tx.flags; off 665 tools/lib/bpf/xsk.c tx->ring = tx_map + off.tx.desc; off 694 tools/lib/bpf/xsk.c munmap(tx_map, off.tx.desc + off 698 tools/lib/bpf/xsk.c munmap(rx_map, off.rx.desc + off 710 tools/lib/bpf/xsk.c struct xdp_mmap_offsets off; off 719 tools/lib/bpf/xsk.c err = xsk_get_mmap_offsets(umem->fd, &off); off 721 tools/lib/bpf/xsk.c munmap(umem->fill->ring - off.fr.desc, off 722 tools/lib/bpf/xsk.c off.fr.desc + umem->config.fill_size * sizeof(__u64)); off 723 tools/lib/bpf/xsk.c munmap(umem->comp->ring - off.cr.desc, off 724 tools/lib/bpf/xsk.c off.cr.desc + umem->config.comp_size * sizeof(__u64)); off 736 tools/lib/bpf/xsk.c struct xdp_mmap_offsets off; off 747 tools/lib/bpf/xsk.c err = xsk_get_mmap_offsets(xsk->fd, &off); off 750 tools/lib/bpf/xsk.c munmap(xsk->rx->ring - off.rx.desc, off 751 tools/lib/bpf/xsk.c off.rx.desc + xsk->config.rx_size * desc_sz); off 754 tools/lib/bpf/xsk.c munmap(xsk->tx->ring - off.tx.desc, off 755 tools/lib/bpf/xsk.c off.tx.desc + xsk->config.tx_size * desc_sz); off 414 tools/perf/bench/numa.c long off = rand(); off 418 tools/perf/bench/numa.c wbuf[i] = i + off; off 773 tools/perf/bench/numa.c long off; off 791 tools/perf/bench/numa.c off = nr*chunk_0 + loop*chunk_1; off 793 tools/perf/bench/numa.c while (off >= words) off 794 tools/perf/bench/numa.c off -= words; off 817 tools/perf/bench/numa.c d0 = data + off; off 818 tools/perf/bench/numa.c d = data + off + 1; off 835 tools/perf/bench/numa.c d0 = data + off; off 836 tools/perf/bench/numa.c d = data + off - 1; off 148 tools/perf/builtin-record.c void *buf, size_t size, off_t off) off 155 tools/perf/builtin-record.c cblock->aio_offset = off; off 304 tools/perf/builtin-record.c static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) off 322 tools/perf/builtin-record.c ret = record__aio_write(&(map->aio.cblocks[idx]), trace_fd, aio.data, aio.size, *off); off 324 tools/perf/builtin-record.c *off += aio.size; off 392 tools/perf/builtin-record.c off_t *off __maybe_unused) off 954 tools/perf/builtin-record.c off_t off = 0; off 967 tools/perf/builtin-record.c off = record__aio_get_pos(trace_fd); off 987 tools/perf/builtin-record.c if (record__aio_push(rec, map, &off) < 0) { off 988 tools/perf/builtin-record.c record__aio_set_pos(trace_fd, off); off 1007 tools/perf/builtin-record.c record__aio_set_pos(trace_fd, off); off 975 tools/perf/builtin-script.c int off, printed = 0; off 993 tools/perf/builtin-script.c off = al.addr - al.sym->start; off 995 tools/perf/builtin-script.c off = al.addr - al.map->start - al.sym->start; off 997 tools/perf/builtin-script.c if (off) off 998 tools/perf/builtin-script.c printed += fprintf(fp, "%+d", off); off 1018 tools/perf/builtin-script.c unsigned off; off 1066 tools/perf/builtin-script.c for (off = 0; off < (unsigned)len; off += ilen) { off 1067 tools/perf/builtin-script.c uint64_t ip = start + off; off 1071 tools/perf/builtin-script.c printed += ip__fprintf_jump(ip, &br->entries[i], &x, buffer + off, len - off, ++insn, fp, off 1079 tools/perf/builtin-script.c dump_insn(&x, ip, buffer + off, len - off, &ilen)); off 1087 tools/perf/builtin-script.c if (off != end - start) off 1128 tools/perf/builtin-script.c for (off = 0; off <= end - start; off += ilen) { off 1130 tools/perf/builtin-script.c printed += fprintf(fp, "\t%016" PRIx64 "\t%s\n", start + off, off 1131 tools/perf/builtin-script.c dump_insn(&x, start + off, buffer + off, len - off, &ilen)); off 1134 tools/perf/builtin-script.c if (arch_is_branch(buffer + off, len - off, x.is64bit) && start + off != sample->ip) { off 1142 tools/perf/builtin-script.c print_srccode(thread, x.cpumode, start + off); off 1085 tools/perf/builtin-stat.c int off = 0; off 1093 tools/perf/builtin-stat.c attr[i - off] = attr[i]; off 1095 tools/perf/builtin-stat.c off++; off 1097 tools/perf/builtin-stat.c attr[i - off] = NULL; off 1103 tools/perf/builtin-stat.c if (i - off == 0) { off 143 tools/perf/tests/code-reading.c size_t off, read_bytes, written_bytes; off 170 tools/perf/tests/code-reading.c off = addr - start_addr; off 171 tools/perf/tests/code-reading.c if (off >= *len) off 173 tools/perf/tests/code-reading.c written_bytes = MIN(read_bytes, *len - off); off 174 tools/perf/tests/code-reading.c memcpy(buf + off, tmp, written_bytes); off 175 tools/perf/tests/code-reading.c off_last = off + written_bytes; off 22 tools/perf/trace/beauty/beauty.h #define DEFINE_STRARRAY_OFFSET(array, _prefix, off) struct strarray strarray__##array = { \ off 23 tools/perf/trace/beauty/beauty.h .offset = off, \ off 338 tools/perf/util/bpf-prologue.c switch (insn->off) { off 353 tools/perf/util/bpf-prologue.c insn->off = target - (insn + 1); off 21 tools/perf/util/evswitch.c if (evswitch->off && !evswitch->discarding) { off 22 tools/perf/util/evswitch.c if (evswitch->off != evsel) off 53 tools/perf/util/evswitch.c evswitch->off = perf_evlist__find_evsel_by_str(evlist, evswitch->off_name); off 54 tools/perf/util/evswitch.c if (evswitch->off == NULL) { off 13 tools/perf/util/evswitch.h struct evsel *on, *off; off 2119 tools/perf/util/machine.c int i, j, off; off 2135 tools/perf/util/machine.c off = 0; off 2136 tools/perf/util/machine.c for (j = chash[h]; j < i && i + off < nr; j++, off++) off 2137 tools/perf/util/machine.c if (l[j].from != l[i + off].from) { off 2142 tools/perf/util/machine.c j = nr - (i + off); off 2144 tools/perf/util/machine.c save_iterations(iter + i + off, off 2145 tools/perf/util/machine.c l + i, off); off 2147 tools/perf/util/machine.c memmove(iter + i, iter + i + off, off 2150 tools/perf/util/machine.c memmove(l + i, l + i + off, off 2154 tools/perf/util/machine.c nr -= off; off 1082 tools/perf/util/probe-finder.c Dwarf_Off off, noff; off 1087 tools/perf/util/probe-finder.c off = 0; off 1115 tools/perf/util/probe-finder.c while (!dwarf_nextcu(dbg->dbg, off, &noff, &cuhl, NULL, NULL, NULL)) { off 1117 tools/perf/util/probe-finder.c diep = dwarf_offdie(dbg->dbg, off + cuhl, &pf->cu_die); off 1139 tools/perf/util/probe-finder.c off = noff; off 1797 tools/perf/util/probe-finder.c Dwarf_Off off = 0, noff; off 1821 tools/perf/util/probe-finder.c if (dwarf_nextcu(dbg->dbg, off, &noff, &cuhl, off 1826 tools/perf/util/probe-finder.c diep = dwarf_offdie(dbg->dbg, off + cuhl, &lf.cu_die); off 1845 tools/perf/util/probe-finder.c off = noff; off 242 tools/testing/selftests/bpf/bpf_helpers.h unsigned long long off) asm("llvm.bpf.load.byte"); off 244 tools/testing/selftests/bpf/bpf_helpers.h unsigned long long off) asm("llvm.bpf.load.half"); off 246 tools/testing/selftests/bpf/bpf_helpers.h unsigned long long off) asm("llvm.bpf.load.word"); off 276 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_load_bytes)(void *ctx, int off, void *to, int len) = off 278 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_load_bytes_relative)(void *ctx, int off, void *to, int len, __u32 start_header) = off 280 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) = off 282 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flags) = off 284 tools/testing/selftests/bpf/bpf_helpers.h static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) = off 236 tools/testing/selftests/bpf/progs/test_l4lb.c static __always_inline int parse_icmpv6(void *data, void *data_end, __u64 off, off 242 tools/testing/selftests/bpf/progs/test_l4lb.c icmp_hdr = data + off; off 247 tools/testing/selftests/bpf/progs/test_l4lb.c off += sizeof(struct icmp6hdr); off 248 tools/testing/selftests/bpf/progs/test_l4lb.c ip6h = data + off; off 258 tools/testing/selftests/bpf/progs/test_l4lb.c static __always_inline int parse_icmp(void *data, void *data_end, __u64 off, off 264 tools/testing/selftests/bpf/progs/test_l4lb.c icmp_hdr = data + off; off 270 tools/testing/selftests/bpf/progs/test_l4lb.c off += sizeof(struct icmphdr); off 271 tools/testing/selftests/bpf/progs/test_l4lb.c iph = data + off; off 283 tools/testing/selftests/bpf/progs/test_l4lb.c static __always_inline bool parse_udp(void *data, __u64 off, void *data_end, off 287 tools/testing/selftests/bpf/progs/test_l4lb.c udp = data + off; off 302 tools/testing/selftests/bpf/progs/test_l4lb.c static __always_inline bool parse_tcp(void *data, __u64 off, void *data_end, off 307 tools/testing/selftests/bpf/progs/test_l4lb.c tcp = data + off; off 324 tools/testing/selftests/bpf/progs/test_l4lb.c static __always_inline int process_packet(void *data, __u64 off, void *data_end, off 350 tools/testing/selftests/bpf/progs/test_l4lb.c ip6h = data + off; off 358 tools/testing/selftests/bpf/progs/test_l4lb.c off += iph_len; off 362 tools/testing/selftests/bpf/progs/test_l4lb.c action = parse_icmpv6(data, data_end, off, &pckt); off 365 tools/testing/selftests/bpf/progs/test_l4lb.c off += IPV6_PLUS_ICMP_HDR; off 371 tools/testing/selftests/bpf/progs/test_l4lb.c iph = data + off; off 380 tools/testing/selftests/bpf/progs/test_l4lb.c off += IPV4_HDR_LEN_NO_OPT; off 385 tools/testing/selftests/bpf/progs/test_l4lb.c action = parse_icmp(data, data_end, off, &pckt); off 388 tools/testing/selftests/bpf/progs/test_l4lb.c off += IPV4_PLUS_ICMP_HDR; off 397 tools/testing/selftests/bpf/progs/test_l4lb.c if (!parse_tcp(data, off, data_end, &pckt)) off 400 tools/testing/selftests/bpf/progs/test_l4lb.c if (!parse_udp(data, off, data_end, &pckt)) off 236 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static int parse_icmpv6(void *data, void *data_end, __u64 off, off 242 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c icmp_hdr = data + off; off 247 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += sizeof(struct icmp6hdr); off 248 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c ip6h = data + off; off 258 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static int parse_icmp(void *data, void *data_end, __u64 off, off 264 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c icmp_hdr = data + off; off 270 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += sizeof(struct icmphdr); off 271 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c iph = data + off; off 283 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static bool parse_udp(void *data, __u64 off, void *data_end, off 287 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c udp = data + off; off 302 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static bool parse_tcp(void *data, __u64 off, void *data_end, off 307 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c tcp = data + off; off 324 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c static int process_packet(void *data, __u64 off, void *data_end, off 350 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c ip6h = data + off; off 358 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += iph_len; off 362 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c action = parse_icmpv6(data, data_end, off, &pckt); off 365 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += IPV6_PLUS_ICMP_HDR; off 371 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c iph = data + off; off 380 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += IPV4_HDR_LEN_NO_OPT; off 385 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c action = parse_icmp(data, data_end, off, &pckt); off 388 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c off += IPV4_PLUS_ICMP_HDR; off 397 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (!parse_tcp(data, off, data_end, &pckt)) off 400 tools/testing/selftests/bpf/progs/test_l4lb_noinline.c if (!parse_udp(data, off, data_end, &pckt)) off 46 tools/testing/selftests/bpf/progs/test_sysctl_loop1.c unsigned char i, off = 0; off 64 tools/testing/selftests/bpf/progs/test_sysctl_loop1.c ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, off 68 tools/testing/selftests/bpf/progs/test_sysctl_loop1.c off += ret & MAX_ULONG_STR_LEN; off 47 tools/testing/selftests/bpf/progs/test_sysctl_loop2.c unsigned char i, off = 0; off 62 tools/testing/selftests/bpf/progs/test_sysctl_loop2.c ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, off 66 tools/testing/selftests/bpf/progs/test_sysctl_loop2.c off += ret & MAX_ULONG_STR_LEN; off 47 tools/testing/selftests/bpf/progs/test_sysctl_prog.c unsigned char i, off = 0; off 62 tools/testing/selftests/bpf/progs/test_sysctl_prog.c ret = bpf_strtoul(value + off, MAX_ULONG_STR_LEN, 0, off 66 tools/testing/selftests/bpf/progs/test_sysctl_prog.c off += ret & MAX_ULONG_STR_LEN; off 447 tools/testing/selftests/bpf/progs/test_tc_tunnel.c static int decap_internal(struct __sk_buff *skb, int off, int len, char proto) off 460 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_load_bytes(skb, off + len, &greh, sizeof(greh)) < 0) off 473 tools/testing/selftests/bpf/progs/test_tc_tunnel.c if (bpf_skb_load_bytes(skb, off + len, &udph, sizeof(udph)) < 0) off 218 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u64 off = sizeof(struct eth_hdr); off 220 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct ipv6hdr); off 222 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct icmp6hdr) + sizeof(struct ipv6hdr); off 224 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct iphdr); off 226 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct icmphdr) + sizeof(struct iphdr); off 228 tools/testing/selftests/bpf/progs/test_xdp_noinline.c return off; off 237 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u64 off = calc_offset(is_ipv6, is_icmp); off 239 tools/testing/selftests/bpf/progs/test_xdp_noinline.c udp = data + off; off 259 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u64 off = calc_offset(is_ipv6, is_icmp); off 262 tools/testing/selftests/bpf/progs/test_xdp_noinline.c tcp = data + off; off 435 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u64 off = 0; off 440 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct eth_hdr); off 441 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph = data + off; off 442 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct iphdr); off 443 tools/testing/selftests/bpf/progs/test_xdp_noinline.c icmp_hdr = data + off; off 465 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u64 off = 0; off 470 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct eth_hdr); off 471 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; off 472 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct ipv6hdr); off 473 tools/testing/selftests/bpf/progs/test_xdp_noinline.c icmp_hdr = data + off; off 484 tools/testing/selftests/bpf/progs/test_xdp_noinline.c int parse_icmpv6(void *data, void *data_end, __u64 off, off 490 tools/testing/selftests/bpf/progs/test_xdp_noinline.c icmp_hdr = data + off; off 497 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct icmp6hdr); off 498 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; off 509 tools/testing/selftests/bpf/progs/test_xdp_noinline.c int parse_icmp(void *data, void *data_end, __u64 off, off 515 tools/testing/selftests/bpf/progs/test_xdp_noinline.c icmp_hdr = data + off; off 522 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += sizeof(struct icmphdr); off 523 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph = data + off; off 629 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u8 *protocol, __u64 off, off 637 tools/testing/selftests/bpf/progs/test_xdp_noinline.c ip6h = data + off; off 644 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += iph_len; off 648 tools/testing/selftests/bpf/progs/test_xdp_noinline.c action = parse_icmpv6(data, data_end, off, pckt); off 660 tools/testing/selftests/bpf/progs/test_xdp_noinline.c __u8 *protocol, __u64 off, off 668 tools/testing/selftests/bpf/progs/test_xdp_noinline.c iph = data + off; off 676 tools/testing/selftests/bpf/progs/test_xdp_noinline.c off += 20; off 680 tools/testing/selftests/bpf/progs/test_xdp_noinline.c action = parse_icmp(data, data_end, off, pckt); off 691 tools/testing/selftests/bpf/progs/test_xdp_noinline.c static int process_packet(void *data, __u64 off, void *data_end, off 713 tools/testing/selftests/bpf/progs/test_xdp_noinline.c action = process_l3_headers_v6(&pckt, &protocol, off, off 716 tools/testing/selftests/bpf/progs/test_xdp_noinline.c action = process_l3_headers_v4(&pckt, &protocol, off, off 121 tools/testing/selftests/bpf/test_flow_dissector.c unsigned long off = 0; off 126 tools/testing/selftests/bpf/test_flow_dissector.c off = __builtin_offsetof(struct sockaddr_in, sin_addr); off 129 tools/testing/selftests/bpf/test_flow_dissector.c off = __builtin_offsetof(struct sockaddr_in6, sin6_addr); off 136 tools/testing/selftests/bpf/test_flow_dissector.c if (!inet_ntop(addr->sa_family, ((void *) addr) + off, nbuf, off 186 tools/testing/selftests/bpf/verifier/basic_instr.c .off = 0, off 1 tools/testing/selftests/bpf/verifier/wide_access.c #define BPF_SOCK_ADDR_STORE(field, off, res, err) \ off 3 tools/testing/selftests/bpf/verifier/wide_access.c "wide store to bpf_sock_addr." #field "[" #off "]", \ off 7 tools/testing/selftests/bpf/verifier/wide_access.c offsetof(struct bpf_sock_addr, field[off])), \ off 38 tools/testing/selftests/bpf/verifier/wide_access.c #define BPF_SOCK_ADDR_LOAD(field, off, res, err) \ off 40 tools/testing/selftests/bpf/verifier/wide_access.c "wide load from bpf_sock_addr." #field "[" #off "]", \ off 43 tools/testing/selftests/bpf/verifier/wide_access.c offsetof(struct bpf_sock_addr, field[off])), \ off 625 tools/testing/selftests/net/msg_zerocopy.c int ret, off = 0; off 635 tools/testing/selftests/net/msg_zerocopy.c off += sizeof(struct iphdr); off 643 tools/testing/selftests/net/msg_zerocopy.c if (ret > sizeof(buf) - off) off 644 tools/testing/selftests/net/msg_zerocopy.c ret = sizeof(buf) - off; off 645 tools/testing/selftests/net/msg_zerocopy.c if (memcmp(buf + off, payload, ret)) off 155 tools/testing/selftests/net/psock_snd.c int off = 0; off 157 tools/testing/selftests/net/psock_snd.c off += build_vnet_header(tbuf); off 158 tools/testing/selftests/net/psock_snd.c off += build_eth_header(tbuf + off); off 159 tools/testing/selftests/net/psock_snd.c off += build_ipv4_header(tbuf + off, payload_len); off 160 tools/testing/selftests/net/psock_snd.c off += build_udp_header(tbuf + off, payload_len); off 162 tools/testing/selftests/net/psock_snd.c if (off + payload_len > sizeof(tbuf)) off 165 tools/testing/selftests/net/psock_snd.c memset(tbuf + off, DATA_CHAR, payload_len); off 167 tools/testing/selftests/net/psock_snd.c return off + payload_len; off 46 tools/testing/selftests/net/txring_overwrite.c size_t off = 0; off 53 tools/testing/selftests/net/txring_overwrite.c off += sizeof(*eth); off 54 tools/testing/selftests/net/txring_overwrite.c iph = buffer + off; off 61 tools/testing/selftests/net/txring_overwrite.c iph->tot_len = htons(blen - off); off 64 tools/testing/selftests/net/txring_overwrite.c off += sizeof(*iph); off 65 tools/testing/selftests/net/txring_overwrite.c udph = buffer + off; off 68 tools/testing/selftests/net/txring_overwrite.c udph->len = htons(blen - off); off 71 tools/testing/selftests/net/txring_overwrite.c off += sizeof(*udph); off 72 tools/testing/selftests/net/txring_overwrite.c memset(buffer + off, payload_char, blen - off); off 369 tools/testing/selftests/net/udpgso.c int fd, ret, alen, off = 0; off 382 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(sizeof(*nh)); off 384 tools/testing/selftests/net/udpgso.c rt = (void *)(data + off); off 391 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(sizeof(*rt)); off 393 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); off 400 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); off 402 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); off 406 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); off 409 tools/testing/selftests/net/udpgso.c rta = (void *)(data + off); off 412 tools/testing/selftests/net/udpgso.c off += NLMSG_ALIGN(rta->rta_len); off 420 tools/testing/selftests/net/udpgso.c nh->nlmsg_len = off; off 422 tools/testing/selftests/net/udpgso.c ret = sendto(fd, data, off, 0, (void *)&nladdr, sizeof(nladdr)); off 423 tools/testing/selftests/net/udpgso.c if (ret != off) off 424 tools/testing/selftests/net/udpgso.c error(1, errno, "send netlink: %uB != %uB\n", ret, off); off 315 tools/testing/selftests/net/udpgso_bench_tx.c unsigned int off = 0, left; off 337 tools/testing/selftests/net/udpgso_bench_tx.c iov[i].iov_base = data + off; off 350 tools/testing/selftests/net/udpgso_bench_tx.c off += iov[i].iov_len; off 469 tools/testing/selftests/networking/timestamping/txtimestamp.c int off = 0; off 473 tools/testing/selftests/networking/timestamping/txtimestamp.c off = fill_header_ipv4(buf); off 475 tools/testing/selftests/networking/timestamping/txtimestamp.c off = fill_header_ipv6(buf); off 478 tools/testing/selftests/networking/timestamping/txtimestamp.c fill_header_udp(buf + off, family == PF_INET); off 69 tools/testing/selftests/ptrace/peeksiginfo.c arg.off = 0; off 107 tools/testing/selftests/ptrace/peeksiginfo.c struct ptrace_peeksiginfo_args arg = {.flags = 0, .nr = nr, .off = 0}; off 121 tools/testing/selftests/ptrace/peeksiginfo.c arg.off = i; off 578 tools/vm/page-types.c static unsigned long off; off 582 tools/vm/page-types.c if ((offset / 64 == off / 64) || buf == 0) { off 584 tools/vm/page-types.c off = offset; off 588 tools/vm/page-types.c len = pwrite(page_idle_fd, &buf, 8, 8 * (off / 64)); off 595 tools/vm/page-types.c off = offset; off 975 tools/vm/page-types.c off_t off, end = st->st_size; off 983 tools/vm/page-types.c for (off = 0; off < end; off += len) { off 984 tools/vm/page-types.c nr_pages = (end - off + page_size - 1) / page_size; off 989 tools/vm/page-types.c ptr = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, off); off 1002 tools/vm/page-types.c end = off + sigbus_addr ? sigbus_addr - ptr : 0; off 1040 tools/vm/page-types.c add_page(off / page_size + i, pfn, off 1735 virt/kvm/arm/vgic/vgic-its.c #define REGISTER_ITS_DESC(off, rd, wr, length, acc) \ off 1737 virt/kvm/arm/vgic/vgic-its.c .reg_offset = off, \ off 1744 virt/kvm/arm/vgic/vgic-its.c #define REGISTER_ITS_DESC_UACCESS(off, rd, wr, uwr, length, acc)\ off 1746 virt/kvm/arm/vgic/vgic-its.c .reg_offset = off, \ off 448 virt/kvm/arm/vgic/vgic-mmio-v3.c #define REGISTER_DESC_WITH_BITS_PER_IRQ_SHARED(off, rd, wr, ur, uw, bpi, acc) \ off 450 virt/kvm/arm/vgic/vgic-mmio-v3.c .reg_offset = off, \ off 457 virt/kvm/arm/vgic/vgic-mmio-v3.c .reg_offset = off + (bpi * VGIC_NR_PRIVATE_IRQS) / 8, \ off 67 virt/kvm/arm/vgic/vgic-mmio.h #define REGISTER_DESC_WITH_BITS_PER_IRQ(off, rd, wr, ur, uw, bpi, acc) \ off 69 virt/kvm/arm/vgic/vgic-mmio.h .reg_offset = off, \ off 79 virt/kvm/arm/vgic/vgic-mmio.h #define REGISTER_DESC_WITH_LENGTH(off, rd, wr, length, acc) \ off 81 virt/kvm/arm/vgic/vgic-mmio.h .reg_offset = off, \ off 89 virt/kvm/arm/vgic/vgic-mmio.h #define REGISTER_DESC_WITH_LENGTH_UACCESS(off, rd, wr, urd, uwr, length, acc) \ off 91 virt/kvm/arm/vgic/vgic-mmio.h .reg_offset = off, \ off 3834 virt/kvm/kvm_main.c int off; off 3846 virt/kvm/kvm_main.c off = range - bus->range; off 3848 virt/kvm/kvm_main.c while (off > 0 && kvm_io_bus_cmp(&key, &bus->range[off-1]) == 0) off 3849 virt/kvm/kvm_main.c off--; off 3851 virt/kvm/kvm_main.c return off;