o 20 arch/alpha/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 22 arch/alpha/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 29 arch/alpha/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 32 arch/alpha/include/asm/cmpxchg.h cmpxchg_local((ptr), (o), (n)); \ o 56 arch/alpha/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 59 arch/alpha/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 68 arch/alpha/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) \ o 71 arch/alpha/include/asm/cmpxchg.h cmpxchg((ptr), (o), (n)); \ o 55 arch/alpha/include/asm/local.h #define local_cmpxchg(l, o, n) \ o 56 arch/alpha/include/asm/local.h (cmpxchg_local(&((l)->a.counter), (o), (n))) o 946 arch/alpha/kernel/osf_sys.c get_tv32(struct timespec64 *o, struct timeval32 __user *i) o 951 arch/alpha/kernel/osf_sys.c o->tv_sec = tv.tv_sec; o 952 arch/alpha/kernel/osf_sys.c o->tv_nsec = tv.tv_usec * NSEC_PER_USEC; o 957 arch/alpha/kernel/osf_sys.c put_tv32(struct timeval32 __user *o, struct timespec64 *i) o 959 arch/alpha/kernel/osf_sys.c return copy_to_user(o, &(struct timeval32){ o 966 arch/alpha/kernel/osf_sys.c put_tv_to_tv32(struct timeval32 __user *o, struct timeval *i) o 968 arch/alpha/kernel/osf_sys.c return copy_to_user(o, &(struct timeval32){ o 975 arch/alpha/kernel/osf_sys.c get_it32(struct itimerval *o, struct itimerval32 __user *i) o 980 arch/alpha/kernel/osf_sys.c o->it_interval.tv_sec = itv.it_interval.tv_sec; o 981 arch/alpha/kernel/osf_sys.c o->it_interval.tv_usec = itv.it_interval.tv_usec; o 982 arch/alpha/kernel/osf_sys.c o->it_value.tv_sec = itv.it_value.tv_sec; o 983 arch/alpha/kernel/osf_sys.c o->it_value.tv_usec = itv.it_value.tv_usec; o 988 arch/alpha/kernel/osf_sys.c put_it32(struct itimerval32 __user *o, struct itimerval *i) o 990 arch/alpha/kernel/osf_sys.c return copy_to_user(o, &(struct itimerval32){ o 991 arch/alpha/kernel/osf_sys.c .it_interval.tv_sec = o->it_interval.tv_sec, o 992 arch/alpha/kernel/osf_sys.c .it_interval.tv_usec = o->it_interval.tv_usec, o 993 arch/alpha/kernel/osf_sys.c .it_value.tv_sec = o->it_value.tv_sec, o 994 arch/alpha/kernel/osf_sys.c .it_value.tv_usec = o->it_value.tv_usec}, o 92 arch/arc/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) ({ \ o 94 arch/arc/include/asm/cmpxchg.h (unsigned long)(o), \ o 104 arch/arc/include/asm/cmpxchg.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) o 13 arch/arc/include/asm/linkage.h .macro ST2 e, o, off o 22 arch/arc/include/asm/linkage.h .macro LD2 e, o, off o 137 arch/arm/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) ({ \ o 139 arch/arm/include/asm/cmpxchg.h (unsigned long)(o), \ o 144 arch/arm/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 210 arch/arm/include/asm/cmpxchg.h #define cmpxchg_relaxed(ptr,o,n) ({ \ o 212 arch/arm/include/asm/cmpxchg.h (unsigned long)(o), \ o 237 arch/arm/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) ({ \ o 239 arch/arm/include/asm/cmpxchg.h (unsigned long)(o), \ o 269 arch/arm/include/asm/cmpxchg.h #define cmpxchg64_relaxed(ptr, o, n) ({ \ o 271 arch/arm/include/asm/cmpxchg.h (unsigned long long)(o), \ o 275 arch/arm/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) cmpxchg64_relaxed((ptr), (o), (n)) o 15 arch/arm/mach-s3c24xx/include/mach/s3c2412.h #define S3C2412_SSMC(x, o) (S3C2412_SSMCREG((x * 0x20) + (o))) o 141 arch/arm64/include/asm/assembler.h .long (\from - .), (\to - .) o 179 arch/arm64/include/asm/cmpxchg.h #define __cmpxchg_wrapper(sfx, ptr, o, n) \ o 183 arch/arm64/include/asm/cmpxchg.h __cmpxchg##sfx((ptr), (unsigned long)(o), \ o 168 arch/arm64/include/asm/fpsimdmacros.h .if (\from) == (\to) o 171 arch/arm64/include/asm/fpsimdmacros.h __for \from, (\from) + ((\to) - (\from)) / 2 o 172 arch/arm64/include/asm/fpsimdmacros.h __for (\from) + ((\to) - (\from)) / 2 + 1, \to o 181 arch/arm64/include/asm/fpsimdmacros.h __for \from, \to o 219 arch/arm64/include/asm/percpu.h #define this_cpu_cmpxchg_1(pcp, o, n) \ o 220 arch/arm64/include/asm/percpu.h _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) o 221 arch/arm64/include/asm/percpu.h #define this_cpu_cmpxchg_2(pcp, o, n) \ o 222 arch/arm64/include/asm/percpu.h _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) o 223 arch/arm64/include/asm/percpu.h #define this_cpu_cmpxchg_4(pcp, o, n) \ o 224 arch/arm64/include/asm/percpu.h _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) o 225 arch/arm64/include/asm/percpu.h #define this_cpu_cmpxchg_8(pcp, o, n) \ o 226 arch/arm64/include/asm/percpu.h _pcp_protect_return(cmpxchg_relaxed, pcp, o, n) o 54 arch/c6x/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 56 arch/c6x/include/asm/cmpxchg.h (unsigned long)(o), \ o 59 arch/c6x/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 67 arch/csky/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 68 arch/csky/include/asm/cmpxchg.h (__cmpxchg((ptr), (o), (n), sizeof(*(ptr)))) o 53 arch/h8300/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 55 arch/h8300/include/asm/cmpxchg.h (unsigned long)(o), \ o 58 arch/h8300/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 534 arch/ia64/hp/common/sba_iommu.c unsigned long o = 1 << get_iovp_order(bits_wanted << iovp_shift); o 535 arch/ia64/hp/common/sba_iommu.c uint bitshiftcnt = ROUNDUP(ioc->res_bitshift, o); o 541 arch/ia64/hp/common/sba_iommu.c DBG_RES("%s() o %ld %p", __func__, o, res_ptr); o 546 arch/ia64/hp/common/sba_iommu.c for (; mask ; mask <<= o, bitshiftcnt += o) { o 241 arch/ia64/include/asm/pgtable.h #define kc_offset_to_vaddr(o) ((o) + RGN_BASE(RGN_GATE)) o 115 arch/ia64/include/uapi/asm/cmpxchg.h #define cmpxchg_acq(ptr, o, n) \ o 116 arch/ia64/include/uapi/asm/cmpxchg.h ia64_cmpxchg(acq, (ptr), (o), (n), sizeof(*(ptr))) o 117 arch/ia64/include/uapi/asm/cmpxchg.h #define cmpxchg_rel(ptr, o, n) \ o 118 arch/ia64/include/uapi/asm/cmpxchg.h ia64_cmpxchg(rel, (ptr), (o), (n), sizeof(*(ptr))) o 130 arch/ia64/include/uapi/asm/cmpxchg.h #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) o 131 arch/ia64/include/uapi/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) o 1170 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_PSPREL(fmt,r,o,arg) desc_reg_psprel(r,o,arg) o 1171 arch/ia64/kernel/unwind.c #define UNW_DEC_REG_SPREL(fmt,r,o,arg) desc_reg_sprel(r,o,arg) o 1176 arch/ia64/kernel/unwind.c #define UNW_DEC_PRIUNAT_PSPREL(fmt,o,arg) desc_reg_psprel(UNW_REG_PRI_UNAT_MEM,o,arg) o 1177 arch/ia64/kernel/unwind.c #define UNW_DEC_PRIUNAT_SPREL(fmt,o,arg) desc_reg_sprel(UNW_REG_PRI_UNAT_MEM,o,arg) o 1179 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_BASE(fmt,o,arg) desc_spill_base(o,arg) o 1192 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_PSPREL_P(f,p,t,a,o,arg) desc_spill_psprel_p(p,t,a,o,arg) o 1193 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_PSPREL(f,t,a,o,arg) desc_spill_psprel_p(0,t,a,o,arg) o 1194 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_SPREL_P(f,p,t,a,o,arg) desc_spill_sprel_p(p,t,a,o,arg) o 1195 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_SPREL(f,t,a,o,arg) desc_spill_sprel_p(0,t,a,o,arg) o 165 arch/m68k/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) o 83 arch/m68k/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 121 arch/m68k/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 122 arch/m68k/include/asm/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \ o 124 arch/m68k/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 125 arch/m68k/include/asm/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \ o 128 arch/m68k/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) o 136 arch/m68k/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 137 arch/m68k/include/asm/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ o 14 arch/mips/boot/tools/relocs_32.c #define ELF_ST_TYPE(o) ELF32_ST_TYPE(o) o 15 arch/mips/boot/tools/relocs_32.c #define ELF_ST_BIND(o) ELF32_ST_BIND(o) o 16 arch/mips/boot/tools/relocs_32.c #define ELF_ST_VISIBILITY(o) ELF32_ST_VISIBILITY(o) o 27 arch/mips/boot/tools/relocs_64.c #define ELF_ST_TYPE(o) ELF64_ST_TYPE(o) o 28 arch/mips/boot/tools/relocs_64.c #define ELF_ST_BIND(o) ELF64_ST_BIND(o) o 29 arch/mips/boot/tools/relocs_64.c #define ELF_ST_VISIBILITY(o) ELF64_ST_VISIBILITY(o) o 230 arch/mips/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 429 arch/mips/include/asm/atomic.h #define atomic64_cmpxchg(v, o, n) \ o 430 arch/mips/include/asm/atomic.h ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) o 201 arch/mips/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 204 arch/mips/include/asm/cmpxchg.h cmpxchg_local((ptr), (o), (n)); \ o 207 arch/mips/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) \ o 210 arch/mips/include/asm/cmpxchg.h cmpxchg((ptr), (o), (n)); \ o 215 arch/mips/include/asm/cmpxchg.h # define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 288 arch/mips/include/asm/cmpxchg.h # define cmpxchg64(ptr, o, n) ({ \ o 289 arch/mips/include/asm/cmpxchg.h unsigned long long __old = (__typeof__(*(ptr)))(o); \ o 311 arch/mips/include/asm/cmpxchg.h # define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) o 124 arch/mips/include/asm/local.h #define local_cmpxchg(l, o, n) \ o 125 arch/mips/include/asm/local.h ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) o 66 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_readb(s, o) bcm_readb(bcm63xx_regset_address(s) + (o)) o 67 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_readw(s, o) bcm_readw(bcm63xx_regset_address(s) + (o)) o 68 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_readl(s, o) bcm_readl(bcm63xx_regset_address(s) + (o)) o 69 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_writeb(s, v, o) bcm_writeb((v), \ o 70 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h bcm63xx_regset_address(s) + (o)) o 71 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_writew(s, v, o) bcm_writew((v), \ o 72 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h bcm63xx_regset_address(s) + (o)) o 73 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_rset_writel(s, v, o) bcm_writel((v), \ o 74 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h bcm63xx_regset_address(s) + (o)) o 79 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_perf_readl(o) bcm_rset_readl(RSET_PERF, (o)) o 80 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_perf_writel(v, o) bcm_rset_writel(RSET_PERF, (v), (o)) o 81 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_timer_readl(o) bcm_rset_readl(RSET_TIMER, (o)) o 82 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_timer_writel(v, o) bcm_rset_writel(RSET_TIMER, (v), (o)) o 83 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_wdt_readl(o) bcm_rset_readl(RSET_WDT, (o)) o 84 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_wdt_writel(v, o) bcm_rset_writel(RSET_WDT, (v), (o)) o 85 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_gpio_readl(o) bcm_rset_readl(RSET_GPIO, (o)) o 86 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_gpio_writel(v, o) bcm_rset_writel(RSET_GPIO, (v), (o)) o 87 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_uart0_readl(o) bcm_rset_readl(RSET_UART0, (o)) o 88 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_uart0_writel(v, o) bcm_rset_writel(RSET_UART0, (v), (o)) o 89 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_mpi_readl(o) bcm_rset_readl(RSET_MPI, (o)) o 90 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_mpi_writel(v, o) bcm_rset_writel(RSET_MPI, (v), (o)) o 91 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_pcmcia_readl(o) bcm_rset_readl(RSET_PCMCIA, (o)) o 92 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_pcmcia_writel(v, o) bcm_rset_writel(RSET_PCMCIA, (v), (o)) o 93 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_pcie_readl(o) bcm_rset_readl(RSET_PCIE, (o)) o 94 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_pcie_writel(v, o) bcm_rset_writel(RSET_PCIE, (v), (o)) o 95 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_sdram_readl(o) bcm_rset_readl(RSET_SDRAM, (o)) o 96 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_sdram_writel(v, o) bcm_rset_writel(RSET_SDRAM, (v), (o)) o 97 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_memc_readl(o) bcm_rset_readl(RSET_MEMC, (o)) o 98 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_memc_writel(v, o) bcm_rset_writel(RSET_MEMC, (v), (o)) o 99 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_ddr_readl(o) bcm_rset_readl(RSET_DDR, (o)) o 100 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_ddr_writel(v, o) bcm_rset_writel(RSET_DDR, (v), (o)) o 101 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_misc_readl(o) bcm_rset_readl(RSET_MISC, (o)) o 102 arch/mips/include/asm/mach-bcm63xx/bcm63xx_io.h #define bcm_misc_writel(v, o) bcm_rset_writel(RSET_MISC, (v), (o)) o 48 arch/mips/include/asm/xtalk/xtalk.h #define XIO_PACK(p, o) ((((uint64_t)(p))<<XIO_PORT_SHIFT) | ((o)&XIO_ADDR_BITS)) o 135 arch/openrisc/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 138 arch/openrisc/include/asm/cmpxchg.h (unsigned long)(o), \ o 77 arch/parisc/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 222 arch/parisc/include/asm/atomic.h #define atomic64_cmpxchg(v, o, n) \ o 223 arch/parisc/include/asm/atomic.h ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) o 79 arch/parisc/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 81 arch/parisc/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 107 arch/parisc/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 108 arch/parisc/include/asm/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \ o 111 arch/parisc/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 114 arch/parisc/include/asm/cmpxchg.h cmpxchg_local((ptr), (o), (n)); \ o 117 arch/parisc/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 120 arch/parisc/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) __cmpxchg_u64(ptr, o, n) o 86 arch/parisc/include/asm/psw.h unsigned int o:1; o 195 arch/powerpc/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 196 arch/powerpc/include/asm/atomic.h #define atomic_cmpxchg_relaxed(v, o, n) \ o 197 arch/powerpc/include/asm/atomic.h cmpxchg_relaxed(&((v)->counter), (o), (n)) o 198 arch/powerpc/include/asm/atomic.h #define atomic_cmpxchg_acquire(v, o, n) \ o 199 arch/powerpc/include/asm/atomic.h cmpxchg_acquire(&((v)->counter), (o), (n)) o 487 arch/powerpc/include/asm/atomic.h #define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 488 arch/powerpc/include/asm/atomic.h #define atomic64_cmpxchg_relaxed(v, o, n) \ o 489 arch/powerpc/include/asm/atomic.h cmpxchg_relaxed(&((v)->counter), (o), (n)) o 490 arch/powerpc/include/asm/atomic.h #define atomic64_cmpxchg_acquire(v, o, n) \ o 491 arch/powerpc/include/asm/atomic.h cmpxchg_acquire(&((v)->counter), (o), (n)) o 334 arch/powerpc/include/asm/book3s/64/pgtable.h #define __real_pte(e, p, o) ((real_pte_t){(e)}) o 481 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 483 arch/powerpc/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 490 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 492 arch/powerpc/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 498 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg_relaxed(ptr, o, n) \ o 500 arch/powerpc/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 507 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg_acquire(ptr, o, n) \ o 509 arch/powerpc/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 516 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) \ o 519 arch/powerpc/include/asm/cmpxchg.h cmpxchg((ptr), (o), (n)); \ o 521 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 524 arch/powerpc/include/asm/cmpxchg.h cmpxchg_local((ptr), (o), (n)); \ o 526 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg64_relaxed(ptr, o, n) \ o 529 arch/powerpc/include/asm/cmpxchg.h cmpxchg_relaxed((ptr), (o), (n)); \ o 531 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg64_acquire(ptr, o, n) \ o 534 arch/powerpc/include/asm/cmpxchg.h cmpxchg_acquire((ptr), (o), (n)); \ o 538 arch/powerpc/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 79 arch/powerpc/include/asm/local.h static __inline__ long local_cmpxchg(local_t *l, long o, long n) o 86 arch/powerpc/include/asm/local.h if (t == o) o 152 arch/powerpc/include/asm/ppc_asm.h #define SAVE_EVR(n,s,b,o) evmergehi s,s,n; stw s,o+4*(n)(b) o 153 arch/powerpc/include/asm/ppc_asm.h #define SAVE_2EVRS(n,s,b,o) SAVE_EVR(n,s,b,o); SAVE_EVR(n+1,s,b,o) o 154 arch/powerpc/include/asm/ppc_asm.h #define SAVE_4EVRS(n,s,b,o) SAVE_2EVRS(n,s,b,o); SAVE_2EVRS(n+2,s,b,o) o 155 arch/powerpc/include/asm/ppc_asm.h #define SAVE_8EVRS(n,s,b,o) SAVE_4EVRS(n,s,b,o); SAVE_4EVRS(n+4,s,b,o) o 156 arch/powerpc/include/asm/ppc_asm.h #define SAVE_16EVRS(n,s,b,o) SAVE_8EVRS(n,s,b,o); SAVE_8EVRS(n+8,s,b,o) o 157 arch/powerpc/include/asm/ppc_asm.h #define SAVE_32EVRS(n,s,b,o) SAVE_16EVRS(n,s,b,o); SAVE_16EVRS(n+16,s,b,o) o 158 arch/powerpc/include/asm/ppc_asm.h #define REST_EVR(n,s,b,o) lwz s,o+4*(n)(b); evmergelo n,s,n o 159 arch/powerpc/include/asm/ppc_asm.h #define REST_2EVRS(n,s,b,o) REST_EVR(n,s,b,o); REST_EVR(n+1,s,b,o) o 160 arch/powerpc/include/asm/ppc_asm.h #define REST_4EVRS(n,s,b,o) REST_2EVRS(n,s,b,o); REST_2EVRS(n+2,s,b,o) o 161 arch/powerpc/include/asm/ppc_asm.h #define REST_8EVRS(n,s,b,o) REST_4EVRS(n,s,b,o); REST_4EVRS(n+4,s,b,o) o 162 arch/powerpc/include/asm/ppc_asm.h #define REST_16EVRS(n,s,b,o) REST_8EVRS(n,s,b,o); REST_8EVRS(n+8,s,b,o) o 163 arch/powerpc/include/asm/ppc_asm.h #define REST_32EVRS(n,s,b,o) REST_16EVRS(n,s,b,o); REST_16EVRS(n+16,s,b,o) o 18 arch/powerpc/sysdev/grackle.c #define GRACKLE_CFA(b, d, o) (0x80 | ((b) << 8) | ((d) << 16) \ o 19 arch/powerpc/sysdev/grackle.c | (((o) & ~3) << 24)) o 341 arch/powerpc/sysdev/mpic.c #define mpic_map(m,p,b,o,s) _mpic_map_mmio(m,p,b,o,s) o 34 arch/powerpc/xmon/spu-dis.c int o = spu_opcodes[i].opcode; o 35 arch/powerpc/xmon/spu-dis.c if (o >= SPU_DISASM_TBL_SIZE) o 37 arch/powerpc/xmon/spu-dis.c if (spu_disassemble_table[o] == 0) o 38 arch/powerpc/xmon/spu-dis.c spu_disassemble_table[o] = &spu_opcodes[i]; o 270 arch/riscv/include/asm/atomic.h c_t o, c_t n) \ o 272 arch/riscv/include/asm/atomic.h return __cmpxchg_relaxed(&(v->counter), o, n, size); \ o 276 arch/riscv/include/asm/atomic.h c_t o, c_t n) \ o 278 arch/riscv/include/asm/atomic.h return __cmpxchg_acquire(&(v->counter), o, n, size); \ o 282 arch/riscv/include/asm/atomic.h c_t o, c_t n) \ o 284 arch/riscv/include/asm/atomic.h return __cmpxchg_release(&(v->counter), o, n, size); \ o 287 arch/riscv/include/asm/atomic.h c_t atomic##prefix##_cmpxchg(atomic##prefix##_t *v, c_t o, c_t n) \ o 289 arch/riscv/include/asm/atomic.h return __cmpxchg(&(v->counter), o, n, size); \ o 328 arch/riscv/include/asm/atomic.h : [o]"r" (offset) o 350 arch/riscv/include/asm/atomic.h : [o]"r" (offset) o 202 arch/riscv/include/asm/cmpxchg.h #define cmpxchg_relaxed(ptr, o, n) \ o 204 arch/riscv/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 248 arch/riscv/include/asm/cmpxchg.h #define cmpxchg_acquire(ptr, o, n) \ o 250 arch/riscv/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 294 arch/riscv/include/asm/cmpxchg.h #define cmpxchg_release(ptr, o, n) \ o 296 arch/riscv/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 340 arch/riscv/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 342 arch/riscv/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 348 arch/riscv/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 349 arch/riscv/include/asm/cmpxchg.h (__cmpxchg_relaxed((ptr), (o), (n), sizeof(*(ptr)))) o 351 arch/riscv/include/asm/cmpxchg.h #define cmpxchg32(ptr, o, n) \ o 354 arch/riscv/include/asm/cmpxchg.h cmpxchg((ptr), (o), (n)); \ o 357 arch/riscv/include/asm/cmpxchg.h #define cmpxchg32_local(ptr, o, n) \ o 360 arch/riscv/include/asm/cmpxchg.h cmpxchg_relaxed((ptr), (o), (n)) \ o 363 arch/riscv/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) \ o 366 arch/riscv/include/asm/cmpxchg.h cmpxchg((ptr), (o), (n)); \ o 369 arch/riscv/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 372 arch/riscv/include/asm/cmpxchg.h cmpxchg_relaxed((ptr), (o), (n)); \ o 15 arch/s390/include/asm/cmpxchg.h #define cmpxchg(ptr, o, n) \ o 17 arch/s390/include/asm/cmpxchg.h __typeof__(*(ptr)) __o = (o); \ o 36 arch/sh/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 66 arch/sh/include/asm/cmpxchg.h #define cmpxchg(ptr,o,n) \ o 68 arch/sh/include/asm/cmpxchg.h __typeof__(*(ptr)) _o_ = (o); \ o 88 arch/sh/kernel/unwinder.c struct unwinder *o; o 90 arch/sh/kernel/unwinder.c o = list_entry(tmp, struct unwinder, list); o 91 arch/sh/kernel/unwinder.c if (o == ops) o 94 arch/sh/kernel/unwinder.c if (o->rating >= ops->rating) o 53 arch/sparc/include/asm/atomic_64.h #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) o 60 arch/sparc/include/asm/atomic_64.h #define atomic64_cmpxchg(v, o, n) \ o 61 arch/sparc/include/asm/atomic_64.h ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) o 58 arch/sparc/include/asm/cmpxchg_32.h #define cmpxchg(ptr, o, n) \ o 60 arch/sparc/include/asm/cmpxchg_32.h __typeof__(*(ptr)) _o_ = (o); \ o 75 arch/sparc/include/asm/cmpxchg_32.h #define cmpxchg_local(ptr, o, n) \ o 76 arch/sparc/include/asm/cmpxchg_32.h ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ o 78 arch/sparc/include/asm/cmpxchg_32.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 171 arch/sparc/include/asm/cmpxchg_64.h #define cmpxchg(ptr,o,n) \ o 173 arch/sparc/include/asm/cmpxchg_64.h __typeof__(*(ptr)) _o_ = (o); \ o 198 arch/sparc/include/asm/cmpxchg_64.h #define cmpxchg_local(ptr, o, n) \ o 199 arch/sparc/include/asm/cmpxchg_64.h ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \ o 201 arch/sparc/include/asm/cmpxchg_64.h #define cmpxchg64_local(ptr, o, n) \ o 204 arch/sparc/include/asm/cmpxchg_64.h cmpxchg_local((ptr), (o), (n)); \ o 206 arch/sparc/include/asm/cmpxchg_64.h #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) o 50 arch/unicore32/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 52 arch/unicore32/include/asm/cmpxchg.h (unsigned long)(o), (unsigned long)(n), sizeof(*(ptr)))) o 53 arch/unicore32/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) \ o 54 arch/unicore32/include/asm/cmpxchg.h __cmpxchg64_local_generic((ptr), (o), (n)) o 280 arch/x86/events/perf_event.h #define __EVENT_CONSTRAINT_RANGE(c, e, n, m, w, o, f) { \ o 286 arch/x86/events/perf_event.h .overlap = (o), \ o 290 arch/x86/events/perf_event.h #define __EVENT_CONSTRAINT(c, n, m, w, o, f) \ o 291 arch/x86/events/perf_event.h __EVENT_CONSTRAINT_RANGE(c, c, n, m, w, o, f) o 74 arch/x86/include/asm/atomic64_32.h static inline s64 arch_atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n) o 76 arch/x86/include/asm/atomic64_32.h return arch_cmpxchg64(&v->counter, o, n); o 89 arch/x86/include/asm/atomic64_32.h s64 o; o 92 arch/x86/include/asm/atomic64_32.h alternative_atomic64(xchg, "=&A" (o), o 95 arch/x86/include/asm/atomic64_32.h return o; o 39 arch/x86/include/asm/cmpxchg_32.h #define arch_cmpxchg64(ptr, o, n) \ o 40 arch/x86/include/asm/cmpxchg_32.h ((__typeof__(*(ptr)))__cmpxchg64((ptr), (unsigned long long)(o), \ o 42 arch/x86/include/asm/cmpxchg_32.h #define arch_cmpxchg64_local(ptr, o, n) \ o 43 arch/x86/include/asm/cmpxchg_32.h ((__typeof__(*(ptr)))__cmpxchg64_local((ptr), (unsigned long long)(o), \ o 79 arch/x86/include/asm/cmpxchg_32.h #define arch_cmpxchg64(ptr, o, n) \ o 82 arch/x86/include/asm/cmpxchg_32.h __typeof__(*(ptr)) __old = (o); \ o 96 arch/x86/include/asm/cmpxchg_32.h #define arch_cmpxchg64_local(ptr, o, n) \ o 99 arch/x86/include/asm/cmpxchg_32.h __typeof__(*(ptr)) __old = (o); \ o 10 arch/x86/include/asm/cmpxchg_64.h #define arch_cmpxchg64(ptr, o, n) \ o 13 arch/x86/include/asm/cmpxchg_64.h arch_cmpxchg((ptr), (o), (n)); \ o 16 arch/x86/include/asm/cmpxchg_64.h #define arch_cmpxchg64_local(ptr, o, n) \ o 19 arch/x86/include/asm/cmpxchg_64.h arch_cmpxchg_local((ptr), (o), (n)); \ o 123 arch/x86/include/asm/local.h #define local_cmpxchg(l, o, n) \ o 124 arch/x86/include/asm/local.h (cmpxchg_local(&((l)->a.counter), (o), (n))) o 249 arch/x86/include/asm/pgtable_64.h #define kc_offset_to_vaddr(o) ((o) | ~__VIRTUAL_MASK) o 780 arch/x86/kernel/cpu/resctrl/core.c struct rdt_options *o; o 790 arch/x86/kernel/cpu/resctrl/core.c for (o = rdt_options; o < &rdt_options[NUM_RDT_OPTIONS]; o++) { o 791 arch/x86/kernel/cpu/resctrl/core.c if (strcmp(tok, o->name) == 0) { o 793 arch/x86/kernel/cpu/resctrl/core.c o->force_off = true; o 795 arch/x86/kernel/cpu/resctrl/core.c o->force_on = true; o 807 arch/x86/kernel/cpu/resctrl/core.c struct rdt_options *o; o 812 arch/x86/kernel/cpu/resctrl/core.c for (o = rdt_options; o < &rdt_options[NUM_RDT_OPTIONS]; o++) { o 813 arch/x86/kernel/cpu/resctrl/core.c if (flag == o->flag) { o 814 arch/x86/kernel/cpu/resctrl/core.c if (o->force_off) o 816 arch/x86/kernel/cpu/resctrl/core.c if (o->force_on) o 411 arch/x86/kernel/smpboot.c topology_same_node(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) o 413 arch/x86/kernel/smpboot.c int cpu1 = c->cpu_index, cpu2 = o->cpu_index; o 419 arch/x86/kernel/smpboot.c topology_sane(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o, const char *name) o 421 arch/x86/kernel/smpboot.c int cpu1 = c->cpu_index, cpu2 = o->cpu_index; o 423 arch/x86/kernel/smpboot.c return !WARN_ONCE(!topology_same_node(c, o), o 435 arch/x86/kernel/smpboot.c static bool match_smt(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) o 438 arch/x86/kernel/smpboot.c int cpu1 = c->cpu_index, cpu2 = o->cpu_index; o 440 arch/x86/kernel/smpboot.c if (c->phys_proc_id == o->phys_proc_id && o 441 arch/x86/kernel/smpboot.c c->cpu_die_id == o->cpu_die_id && o 443 arch/x86/kernel/smpboot.c if (c->cpu_core_id == o->cpu_core_id) o 444 arch/x86/kernel/smpboot.c return topology_sane(c, o, "smt"); o 447 arch/x86/kernel/smpboot.c (o->cu_id != 0xff) && o 448 arch/x86/kernel/smpboot.c (c->cu_id == o->cu_id)) o 449 arch/x86/kernel/smpboot.c return topology_sane(c, o, "smt"); o 452 arch/x86/kernel/smpboot.c } else if (c->phys_proc_id == o->phys_proc_id && o 453 arch/x86/kernel/smpboot.c c->cpu_die_id == o->cpu_die_id && o 454 arch/x86/kernel/smpboot.c c->cpu_core_id == o->cpu_core_id) { o 455 arch/x86/kernel/smpboot.c return topology_sane(c, o, "smt"); o 481 arch/x86/kernel/smpboot.c static bool match_llc(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) o 483 arch/x86/kernel/smpboot.c int cpu1 = c->cpu_index, cpu2 = o->cpu_index; o 498 arch/x86/kernel/smpboot.c if (!topology_same_node(c, o) && x86_match_cpu(snc_cpu)) o 501 arch/x86/kernel/smpboot.c return topology_sane(c, o, "llc"); o 509 arch/x86/kernel/smpboot.c static bool match_pkg(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) o 511 arch/x86/kernel/smpboot.c if (c->phys_proc_id == o->phys_proc_id) o 516 arch/x86/kernel/smpboot.c static bool match_die(struct cpuinfo_x86 *c, struct cpuinfo_x86 *o) o 518 arch/x86/kernel/smpboot.c if ((c->phys_proc_id == o->phys_proc_id) && o 519 arch/x86/kernel/smpboot.c (c->cpu_die_id == o->cpu_die_id)) o 578 arch/x86/kernel/smpboot.c struct cpuinfo_x86 *o; o 593 arch/x86/kernel/smpboot.c o = &cpu_data(i); o 595 arch/x86/kernel/smpboot.c if ((i == cpu) || (has_smt && match_smt(c, o))) o 598 arch/x86/kernel/smpboot.c if ((i == cpu) || (has_mp && match_llc(c, o))) o 608 arch/x86/kernel/smpboot.c o = &cpu_data(i); o 610 arch/x86/kernel/smpboot.c if ((i == cpu) || (has_mp && match_pkg(c, o))) { o 634 arch/x86/kernel/smpboot.c if (match_pkg(c, o) && !topology_same_node(c, o)) o 637 arch/x86/kernel/smpboot.c if ((i == cpu) || (has_mp && match_die(c, o))) o 439 arch/x86/mm/ioremap.c struct vm_struct *p, *o; o 478 arch/x86/mm/ioremap.c o = remove_vm_area((void __force *)addr); o 479 arch/x86/mm/ioremap.c BUG_ON(p != o || o == NULL); o 195 arch/x86/pci/direct.c static int __init pci_sanity_check(const struct pci_raw_ops *o) o 208 arch/x86/pci/direct.c if (o->read(0, 0, devfn, PCI_CLASS_DEVICE, 2, &x)) o 213 arch/x86/pci/direct.c if (o->read(0, 0, devfn, PCI_VENDOR_ID, 2, &x)) o 14 arch/x86/tools/relocs_32.c #define ELF_ST_TYPE(o) ELF32_ST_TYPE(o) o 15 arch/x86/tools/relocs_32.c #define ELF_ST_BIND(o) ELF32_ST_BIND(o) o 16 arch/x86/tools/relocs_32.c #define ELF_ST_VISIBILITY(o) ELF32_ST_VISIBILITY(o) o 14 arch/x86/tools/relocs_64.c #define ELF_ST_TYPE(o) ELF64_ST_TYPE(o) o 15 arch/x86/tools/relocs_64.c #define ELF_ST_BIND(o) ELF64_ST_BIND(o) o 16 arch/x86/tools/relocs_64.c #define ELF_ST_VISIBILITY(o) ELF64_ST_VISIBILITY(o) o 13 arch/x86/um/shared/sysdep/stub_32.h #define MMAP_OFFSET(o) ((o) >> UM_KERN_PAGE_SHIFT) o 13 arch/x86/um/shared/sysdep/stub_64.h #define MMAP_OFFSET(o) (o) o 258 arch/xtensa/include/asm/atomic.h #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n))) o 83 arch/xtensa/include/asm/cmpxchg.h #define cmpxchg(ptr,o,n) \ o 84 arch/xtensa/include/asm/cmpxchg.h ({ __typeof__(*(ptr)) _o_ = (o); \ o 110 arch/xtensa/include/asm/cmpxchg.h #define cmpxchg_local(ptr, o, n) \ o 111 arch/xtensa/include/asm/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ o 113 arch/xtensa/include/asm/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 114 arch/xtensa/include/asm/cmpxchg.h #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) o 41 drivers/acpi/acpi_adxl.c union acpi_object *obj, *o; o 55 drivers/acpi/acpi_adxl.c o = obj->package.elements; o 56 drivers/acpi/acpi_adxl.c if (o->type != ACPI_TYPE_INTEGER) { o 57 drivers/acpi/acpi_adxl.c pr_info("Bad 1st element type %d\n", o->type); o 60 drivers/acpi/acpi_adxl.c if (o->integer.value) { o 61 drivers/acpi/acpi_adxl.c pr_info("Bad ret val %llu\n", o->integer.value); o 65 drivers/acpi/acpi_adxl.c o = obj->package.elements + 1; o 66 drivers/acpi/acpi_adxl.c if (o->type != ACPI_TYPE_PACKAGE) { o 67 drivers/acpi/acpi_adxl.c pr_info("Bad 2nd element type %d\n", o->type); o 821 drivers/acpi/acpi_video.c union acpi_object *o; o 860 drivers/acpi/acpi_video.c o = (union acpi_object *)&obj->package.elements[i]; o 861 drivers/acpi/acpi_video.c if (o->type != ACPI_TYPE_INTEGER) { o 865 drivers/acpi/acpi_video.c value = (u32) o->integer.value; o 223 drivers/bcma/sprom.c u16 v, o; o 286 drivers/bcma/sprom.c o = pwr_info_offset[i]; o 287 drivers/bcma/sprom.c SPEX(core_pwr_info[i].itssi_2g, o + SSB_SROM8_2G_MAXP_ITSSI, o 289 drivers/bcma/sprom.c SPEX(core_pwr_info[i].maxpwr_2g, o + SSB_SROM8_2G_MAXP_ITSSI, o 292 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_2g[0], o + SSB_SROM8_2G_PA_0, ~0, 0); o 293 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_2g[1], o + SSB_SROM8_2G_PA_1, ~0, 0); o 294 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_2g[2], o + SSB_SROM8_2G_PA_2, ~0, 0); o 296 drivers/bcma/sprom.c SPEX(core_pwr_info[i].itssi_5g, o + SSB_SROM8_5G_MAXP_ITSSI, o 298 drivers/bcma/sprom.c SPEX(core_pwr_info[i].maxpwr_5g, o + SSB_SROM8_5G_MAXP_ITSSI, o 300 drivers/bcma/sprom.c SPEX(core_pwr_info[i].maxpwr_5gh, o + SSB_SPROM8_5GHL_MAXP, o 302 drivers/bcma/sprom.c SPEX(core_pwr_info[i].maxpwr_5gl, o + SSB_SPROM8_5GHL_MAXP, o 305 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gl[0], o + SSB_SROM8_5GL_PA_0, ~0, 0); o 306 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gl[1], o + SSB_SROM8_5GL_PA_1, ~0, 0); o 307 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gl[2], o + SSB_SROM8_5GL_PA_2, ~0, 0); o 308 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5g[0], o + SSB_SROM8_5G_PA_0, ~0, 0); o 309 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5g[1], o + SSB_SROM8_5G_PA_1, ~0, 0); o 310 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5g[2], o + SSB_SROM8_5G_PA_2, ~0, 0); o 311 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gh[0], o + SSB_SROM8_5GH_PA_0, ~0, 0); o 312 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gh[1], o + SSB_SROM8_5GH_PA_1, ~0, 0); o 313 drivers/bcma/sprom.c SPEX(core_pwr_info[i].pa_5gh[2], o + SSB_SROM8_5GH_PA_2, ~0, 0); o 1480 drivers/block/drbd/drbd_int.h struct drbd_backing_dev *bdev, struct o_qlim *o); o 1269 drivers/block/drbd/drbd_nl.c struct request_queue *b, struct o_qlim *o, o 1286 drivers/block/drbd/drbd_nl.c if (o) { o 1288 drivers/block/drbd/drbd_nl.c unsigned int peer_lbs = be32_to_cpu(o->logical_block_size); o 1321 drivers/block/drbd/drbd_nl.c if (can_do && !o->write_same_capable) { o 1333 drivers/block/drbd/drbd_nl.c unsigned int max_bio_size, struct o_qlim *o) o 1362 drivers/block/drbd/drbd_nl.c decide_on_write_same_support(device, q, b, o, disable_write_same); o 1380 drivers/block/drbd/drbd_nl.c void drbd_reconsider_queue_parameters(struct drbd_device *device, struct drbd_backing_dev *bdev, struct o_qlim *o) o 1423 drivers/block/drbd/drbd_nl.c drbd_setup_queue_param(device, bdev, new, o); o 4108 drivers/block/drbd/drbd_receiver.c struct o_qlim *o = (connection->agreed_features & DRBD_FF_WSAME) ? p->qlim : NULL; o 4193 drivers/block/drbd/drbd_receiver.c drbd_reconsider_queue_parameters(device, device->ldev, o); o 4217 drivers/block/drbd/drbd_receiver.c drbd_reconsider_queue_parameters(device, NULL, o); o 854 drivers/block/paride/pcd.c int o = (pcd_sector % 4) * 512; o 855 drivers/block/paride/pcd.c memcpy(pcd_buf, pcd_buffer + o, 512); o 107 drivers/char/ipmi/ipmi_si_hotmod.c char *s, *o; o 145 drivers/char/ipmi/ipmi_si_hotmod.c o = strchr(curr, '='); o 146 drivers/char/ipmi/ipmi_si_hotmod.c if (o) { o 147 drivers/char/ipmi/ipmi_si_hotmod.c *o = '\0'; o 148 drivers/char/ipmi/ipmi_si_hotmod.c o++; o 150 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing); o 155 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize); o 160 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift); o 165 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "irq", &h->irq); o 170 drivers/char/ipmi/ipmi_si_hotmod.c rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr); o 26 drivers/clk/bcm/clk-cygnus.c #define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, } o 28 drivers/clk/bcm/clk-cygnus.c #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ o 31 drivers/clk/bcm/clk-cygnus.c #define SW_CTRL_VAL(o, s) { .offset = o, .shift = s, } o 33 drivers/clk/bcm/clk-cygnus.c #define ASIU_DIV_VAL(o, es, hs, hw, ls, lw) \ o 34 drivers/clk/bcm/clk-cygnus.c { .offset = o, .en_shift = es, .high_shift = hs, \ o 37 drivers/clk/bcm/clk-cygnus.c #define RESET_VAL(o, rs, prs) { .offset = o, .reset_shift = rs, \ o 40 drivers/clk/bcm/clk-cygnus.c #define DF_VAL(o, kis, kiw, kps, kpw, kas, kaw) { .offset = o, .ki_shift = kis,\ o 46 drivers/clk/bcm/clk-cygnus.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \ o 49 drivers/clk/bcm/clk-cygnus.c #define ASIU_GATE_VAL(o, es) { .offset = o, .en_shift = es } o 24 drivers/clk/bcm/clk-ns2.c #define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, } o 26 drivers/clk/bcm/clk-ns2.c #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ o 29 drivers/clk/bcm/clk-ns2.c #define RESET_VAL(o, rs, prs) { .offset = o, .reset_shift = rs, \ o 32 drivers/clk/bcm/clk-ns2.c #define DF_VAL(o, kis, kiw, kps, kpw, kas, kaw) { .offset = o, .ki_shift = kis,\ o 38 drivers/clk/bcm/clk-ns2.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \ o 24 drivers/clk/bcm/clk-nsp.c #define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, } o 26 drivers/clk/bcm/clk-nsp.c #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ o 29 drivers/clk/bcm/clk-nsp.c #define RESET_VAL(o, rs, prs) { .offset = o, .reset_shift = rs, \ o 32 drivers/clk/bcm/clk-nsp.c #define DF_VAL(o, kis, kiw, kps, kpw, kas, kaw) { .offset = o, .ki_shift = kis,\ o 36 drivers/clk/bcm/clk-nsp.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \ o 14 drivers/clk/bcm/clk-sr.c #define REG_VAL(o, s, w) { .offset = o, .shift = s, .width = w, } o 16 drivers/clk/bcm/clk-sr.c #define AON_VAL(o, pw, ps, is) { .offset = o, .pwr_width = pw, \ o 19 drivers/clk/bcm/clk-sr.c #define SW_CTRL_VAL(o, s) { .offset = o, .shift = s, } o 21 drivers/clk/bcm/clk-sr.c #define RESET_VAL(o, rs, prs) { .offset = o, .reset_shift = rs, \ o 24 drivers/clk/bcm/clk-sr.c #define DF_VAL(o, kis, kiw, kps, kpw, kas, kaw) { .offset = o, \ o 30 drivers/clk/bcm/clk-sr.c #define ENABLE_VAL(o, es, hs, bs) { .offset = o, .enable_shift = es, \ o 586 drivers/clk/nxp/clk-lpc32xx.c u64 m_i, o = rate, i = *parent_rate, d = (u64)rate << 6; o 598 drivers/clk/nxp/clk-lpc32xx.c m_i = div64_u64(o * n_i * (1 << p_i), i); o 608 drivers/clk/nxp/clk-lpc32xx.c if (o * n_i * (1 << p_i) - i * m_i <= d) { o 612 drivers/clk/nxp/clk-lpc32xx.c d = o * n_i * (1 << p_i) - i * m_i; o 633 drivers/clk/nxp/clk-lpc32xx.c o = div64_u64(i * m, n * (1 << p)); o 640 drivers/clk/nxp/clk-lpc32xx.c clk_hw_get_name(hw), rate, m, n, p, o); o 642 drivers/clk/nxp/clk-lpc32xx.c return o; o 650 drivers/clk/nxp/clk-lpc32xx.c u64 d_i, n_i, m, o; o 672 drivers/clk/nxp/clk-lpc32xx.c o = clk_hw_get_rate(osc_hw); /* must be in range 1..20 MHz */ o 677 drivers/clk/nxp/clk-lpc32xx.c m = div64_u64(192000000 * d_i * n_i, o); o 679 drivers/clk/nxp/clk-lpc32xx.c && m * o == 192000000 * d_i * n_i o 680 drivers/clk/nxp/clk-lpc32xx.c && pll_is_valid(o, d_i, 1000000, 20000000) o 681 drivers/clk/nxp/clk-lpc32xx.c && pll_is_valid(o, d_i * n_i, 1000000, 27000000))) o 688 drivers/clk/nxp/clk-lpc32xx.c *parent_rate = div64_u64(o, d_i); o 631 drivers/clk/rockchip/clk.h #define MUX(_id, cname, pnames, f, o, s, w, mf) \ o 639 drivers/clk/rockchip/clk.h .muxdiv_offset = o, \ o 646 drivers/clk/rockchip/clk.h #define MUXGRF(_id, cname, pnames, f, o, s, w, mf) \ o 654 drivers/clk/rockchip/clk.h .muxdiv_offset = o, \ o 661 drivers/clk/rockchip/clk.h #define DIV(_id, cname, pname, f, o, s, w, df) \ o 669 drivers/clk/rockchip/clk.h .muxdiv_offset = o, \ o 676 drivers/clk/rockchip/clk.h #define DIVTBL(_id, cname, pname, f, o, s, w, df, dt) \ o 684 drivers/clk/rockchip/clk.h .muxdiv_offset = o, \ o 691 drivers/clk/rockchip/clk.h #define GATE(_id, cname, pname, f, o, b, gf) \ o 699 drivers/clk/rockchip/clk.h .gate_offset = o, \ o 812 drivers/clk/rockchip/clk.h #define DIV_HALF(_id, cname, pname, f, o, s, w, df) \ o 820 drivers/clk/rockchip/clk.h .muxdiv_offset = o, \ o 48 drivers/clk/samsung/clk-s3c64xx.c #define GATE_BUS(_id, cname, pname, o, b) \ o 49 drivers/clk/samsung/clk-s3c64xx.c GATE(_id, cname, pname, o, b, 0, 0) o 50 drivers/clk/samsung/clk-s3c64xx.c #define GATE_SCLK(_id, cname, pname, o, b) \ o 51 drivers/clk/samsung/clk-s3c64xx.c GATE(_id, cname, pname, o, b, CLK_SET_RATE_PARENT, 0) o 52 drivers/clk/samsung/clk-s3c64xx.c #define GATE_ON(_id, cname, pname, o, b) \ o 53 drivers/clk/samsung/clk-s3c64xx.c GATE(_id, cname, pname, o, b, CLK_IGNORE_UNUSED, 0) o 128 drivers/clk/samsung/clk.h #define __MUX(_id, cname, pnames, o, s, w, f, mf) \ o 135 drivers/clk/samsung/clk.h .offset = o, \ o 141 drivers/clk/samsung/clk.h #define MUX(_id, cname, pnames, o, s, w) \ o 142 drivers/clk/samsung/clk.h __MUX(_id, cname, pnames, o, s, w, 0, 0) o 144 drivers/clk/samsung/clk.h #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ o 145 drivers/clk/samsung/clk.h __MUX(_id, cname, pnames, o, s, w, f, mf) o 169 drivers/clk/samsung/clk.h #define __DIV(_id, cname, pname, o, s, w, f, df, t) \ o 175 drivers/clk/samsung/clk.h .offset = o, \ o 182 drivers/clk/samsung/clk.h #define DIV(_id, cname, pname, o, s, w) \ o 183 drivers/clk/samsung/clk.h __DIV(_id, cname, pname, o, s, w, 0, 0, NULL) o 185 drivers/clk/samsung/clk.h #define DIV_F(_id, cname, pname, o, s, w, f, df) \ o 186 drivers/clk/samsung/clk.h __DIV(_id, cname, pname, o, s, w, f, df, NULL) o 188 drivers/clk/samsung/clk.h #define DIV_T(_id, cname, pname, o, s, w, t) \ o 189 drivers/clk/samsung/clk.h __DIV(_id, cname, pname, o, s, w, 0, 0, t) o 211 drivers/clk/samsung/clk.h #define __GATE(_id, cname, pname, o, b, f, gf) \ o 217 drivers/clk/samsung/clk.h .offset = o, \ o 222 drivers/clk/samsung/clk.h #define GATE(_id, cname, pname, o, b, f, gf) \ o 223 drivers/clk/samsung/clk.h __GATE(_id, cname, pname, o, b, f, gf) o 247 drivers/gpio/gpio-aspeed.c #define _GPIO_SET_DEBOUNCE(t, o, i) ((!!((t) & BIT(i))) << GPIO_OFFSET(o)) o 248 drivers/gpio/gpio-aspeed.c #define GPIO_SET_DEBOUNCE1(t, o) _GPIO_SET_DEBOUNCE(t, o, 1) o 249 drivers/gpio/gpio-aspeed.c #define GPIO_SET_DEBOUNCE2(t, o) _GPIO_SET_DEBOUNCE(t, o, 0) o 295 drivers/gpio/gpio-aspeed.c #define have_irq(g, o) have_input((g), (o)) o 296 drivers/gpio/gpio-aspeed.c #define have_debounce(g, o) have_input((g), (o)) o 253 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h #define amdgpu_ring_patch_cond_exec(r,o) (r)->funcs->patch_cond_exec((r),(o)) o 134 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c #define AMDGPU_XGMI_SET_FICAA(o) ((o) | 0x456801) o 463 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h #define priv_to_comp_st(o) container_of(o, struct komeda_component_state, obj) o 464 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h #define priv_to_pipe_st(o) container_of(o, struct komeda_pipeline_state, obj) o 26 drivers/gpu/drm/armada/armada_gem.h #define drm_to_armada_gem(o) container_of(o, struct armada_gem_object, obj) o 440 drivers/gpu/drm/drm_client_modeset.c int o; o 475 drivers/gpu/drm/drm_client_modeset.c for (o = 0; o < n; o++) o 476 drivers/gpu/drm/drm_client_modeset.c if (best_crtcs[o] == crtc) o 479 drivers/gpu/drm/drm_client_modeset.c if (o < n) { o 484 drivers/gpu/drm/drm_client_modeset.c if (!drm_mode_equal(modes[o], modes[n])) o 354 drivers/gpu/drm/drm_lease.c int o; o 362 drivers/gpu/drm/drm_lease.c for (o = 0; o < object_count; o++) { o 363 drivers/gpu/drm/drm_lease.c if (objects[o]->type == DRM_MODE_OBJECT_CRTC && has_crtc == -1) { o 364 drivers/gpu/drm/drm_lease.c has_crtc = o; o 366 drivers/gpu/drm/drm_lease.c if (objects[o]->type == DRM_MODE_OBJECT_CONNECTOR && has_connector == -1) o 367 drivers/gpu/drm/drm_lease.c has_connector = o; o 370 drivers/gpu/drm/drm_lease.c if (objects[o]->type == DRM_MODE_OBJECT_PLANE && has_plane == -1) o 371 drivers/gpu/drm/drm_lease.c has_plane = o; o 388 drivers/gpu/drm/drm_lease.c u32 o; o 399 drivers/gpu/drm/drm_lease.c for (o = 0; o < object_count; o++) { o 400 drivers/gpu/drm/drm_lease.c objects[o] = drm_mode_object_find(dev, lessor_priv, o 401 drivers/gpu/drm/drm_lease.c object_ids[o], o 403 drivers/gpu/drm/drm_lease.c if (!objects[o]) { o 408 drivers/gpu/drm/drm_lease.c if (!drm_mode_object_lease_required(objects[o]->type)) { o 423 drivers/gpu/drm/drm_lease.c for (o = 0; o < object_count; o++) { o 424 drivers/gpu/drm/drm_lease.c struct drm_mode_object *obj = objects[o]; o 425 drivers/gpu/drm/drm_lease.c u32 object_id = objects[o]->id; o 463 drivers/gpu/drm/drm_lease.c for (o = 0; o < object_count; o++) { o 464 drivers/gpu/drm/drm_lease.c if (objects[o]) o 465 drivers/gpu/drm/drm_lease.c drm_mode_object_put(objects[o]); o 1329 drivers/gpu/drm/msm/adreno/a5xx_gpu.c u32 o = a5xx_hlsq_aperture_regs[i].regoffset; o 1332 drivers/gpu/drm/msm/adreno/a5xx_gpu.c for (j = 0; j < c; j++, pos++, o++) { o 1344 drivers/gpu/drm/msm/adreno/a5xx_gpu.c o << 2, a5xx_state->hlsqregs[pos]); o 248 drivers/gpu/drm/nouveau/dispnv04/tvmodesnv17.c #define calc_overscan(o) interpolate(0x100, 0xe1, 0xc1, o) o 11 drivers/gpu/drm/nouveau/dispnv50/disp.h #define NV50_DISP_SYNC(c, o) ((c) * 0x040 + (o)) o 78 drivers/gpu/drm/nouveau/include/nvif/object.h #define nvif_mclass(o,m) ({ \ o 79 drivers/gpu/drm/nouveau/include/nvif/object.h struct nvif_object *object = (o); \ o 102 drivers/gpu/drm/nouveau/include/nvif/object.h #define nvif_sclass(o,m,u) ({ \ o 113 drivers/gpu/drm/nouveau/include/nvif/object.h _cid = nvif_mclass((o), _mclass); \ o 37 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_printk(o,l,p,f,a...) do { \ o 38 drivers/gpu/drm/nouveau/include/nvkm/core/client.h const struct nvkm_object *_object = (o); \ o 44 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_fatal(o,f,a...) nvif_printk((o), FATAL, CRIT, f, ##a) o 45 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_error(o,f,a...) nvif_printk((o), ERROR, ERR, f, ##a) o 46 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_debug(o,f,a...) nvif_printk((o), DEBUG, INFO, f, ##a) o 47 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_trace(o,f,a...) nvif_printk((o), TRACE, INFO, f, ##a) o 48 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_info(o,f,a...) nvif_printk((o), INFO, INFO, f, ##a) o 49 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_ioctl(o,f,a...) nvif_trace((o), "ioctl: "f, ##a) o 64 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_memory_map(p,o,vm,va,av,ac) \ o 65 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h (p)->func->map((p),(o),(vm),(va),(av),(ac)) o 70 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_kmap(o) (o)->func->acquire(o) o 71 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_done(o) (o)->func->release(o) o 73 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_ro32(o,a) (o)->ptrs->rd32((o), (a)) o 74 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_wo32(o,a,d) (o)->ptrs->wr32((o), (a), (d)) o 75 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_mo32(o,a,m,d) ({ \ o 76 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h u32 _addr = (a), _data = nvkm_ro32((o), _addr); \ o 77 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h nvkm_wo32((o), _addr, (_data & ~(m)) | (d)); \ o 81 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_wo64(o,a,d) do { \ o 83 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h nvkm_wo32((o), __a + 0, lower_32_bits(__d)); \ o 84 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h nvkm_wo32((o), __a + 4, upper_32_bits(__d)); \ o 87 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_fill(t,s,o,a,d,c) do { \ o 89 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h u##t __iomem *_m = nvkm_kmap(o); \ o 99 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h nvkm_wo##t((o), _a, _d); \ o 101 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h nvkm_done(o); \ o 103 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_fo32(o,a,d,c) nvkm_fill(32, 2, (o), (a), (d), (c)) o 104 drivers/gpu/drm/nouveau/include/nvkm/core/memory.h #define nvkm_fo64(o,a,d,c) nvkm_fill(64, 3, (o), (a), (d), (c)) o 22 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h #define nvbios_init(s,o,ARGS...) ({ \ o 25 drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/init.h .offset = (o), \ o 48 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_MSG(o,l,f,a...) do { \ o 49 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h struct nvkm_outp *_outp = (o); \ o 53 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_ERR(o,f,a...) OUTP_MSG((o), error, f, ##a) o 54 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_DBG(o,f,a...) OUTP_MSG((o), debug, f, ##a) o 55 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_TRACE(o,f,a...) OUTP_MSG((o), trace, f, ##a) o 1081 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c const u32 o = TPC_UNIT(gpc, tpc, 0x0520); o 1082 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c mmio_skip(info, o, (attrib << 16) | ++bo); o 1083 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf100.c mmio_wr32(info, o, (attrib << 16) | --bo); o 761 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c const u32 o = TPC_UNIT(gpc, tpc, 0x500); o 762 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c mmio_skip(info, o + 0x20, (t << 28) | (b << 16) | ++bo); o 763 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c mmio_wr32(info, o + 0x20, (t << 28) | (b << 16) | --bo); o 765 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf108.c mmio_wr32(info, o + 0x44, (a << 16) | ao); o 269 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c const u32 o = PPC_UNIT(gpc, ppc, 0); o 272 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c mmio_skip(info, o + 0xc0, (t << 28) | (b << 16) | ++bo); o 273 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c mmio_wr32(info, o + 0xc0, (t << 28) | (b << 16) | --bo); o 275 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgf117.c mmio_wr32(info, o + 0xe4, (a << 16) | ao); o 934 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c const u32 o = PPC_UNIT(gpc, ppc, 0); o 937 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c mmio_wr32(info, o + 0xc0, bs); o 938 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c mmio_wr32(info, o + 0xf4, bo); o 940 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c mmio_wr32(info, o + 0xe4, as); o 941 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c mmio_wr32(info, o + 0xf8, ao); o 77 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c const u32 o = PPC_UNIT(gpc, ppc, 0); o 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c mmio_wr32(info, o + 0xc0, bs); o 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c mmio_wr32(info, o + 0xf4, bo); o 82 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c mmio_wr32(info, o + 0xf0, bs); o 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c mmio_wr32(info, o + 0xe4, as); o 85 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp100.c mmio_wr32(info, o + 0xf8, ao); o 74 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c const u32 o = PPC_UNIT(gpc, ppc, 0); o 78 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xc0, gs); o 80 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xf4, bo); o 81 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xf0, bs); o 83 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xe4, as); o 84 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgp102.c mmio_wr32(info, o + 0xf8, ao); o 95 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c const u32 o = PPC_UNIT(gpc, ppc, 0); o 98 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xc0, gs); o 99 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xf4, bo); o 100 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xf0, bs); o 102 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xe4, as); o 103 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgv100.c mmio_wr32(info, o + 0xf8, ao); o 2171 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c u8 o[1] = {}; o 2174 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c { .addr = addr, .flags = I2C_M_RD, .len = 1, .buf = o } o 2179 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (ret == 2 && ((o[0] & mask) == data)) o 324 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_FO(m,o,d,c,b) nvkm_fo##b((m)->memory, (o), (d), (c)) o 325 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_WO(m,o,d,c,b) nvkm_wo##b((m)->memory, (o), (d)) o 326 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_XO(m,v,o,d,c,b,fn,f,a...) do { \ o 327 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h const u32 _pteo = (o); u##b _data = (d); \ o 332 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_WO032(m,v,o,d) VMM_XO((m),(v),(o),(d), 1, 32, WO, "%08x") o 333 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_FO032(m,v,o,d,c) \ o 334 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h VMM_XO((m),(v),(o),(d),(c), 32, FO, "%08x %08x", (c)) o 336 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_WO064(m,v,o,d) VMM_XO((m),(v),(o),(d), 1, 64, WO, "%016llx") o 337 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_FO064(m,v,o,d,c) \ o 338 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h VMM_XO((m),(v),(o),(d),(c), 64, FO, "%016llx %08x", (c)) o 340 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_XO128(m,v,o,lo,hi,c,f,a...) do { \ o 341 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h u32 _pteo = (o), _ptes = (c); \ o 351 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_WO128(m,v,o,lo,hi) VMM_XO128((m),(v),(o),(lo),(hi), 1, "") o 352 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_FO128(m,v,o,lo,hi,c) do { \ o 354 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h VMM_XO128((m),(v),(o),(lo),(hi),(c), " %08x", (c)); \ o 119 drivers/gpu/drm/radeon/mkregtable.c static struct offset *offset_new(unsigned o) o 126 drivers/gpu/drm/radeon/mkregtable.c offset->offset = o; o 199 drivers/gpu/drm/radeon/mkregtable.c unsigned o; o 251 drivers/gpu/drm/radeon/mkregtable.c o = strtol(&buf[match[1].rm_so], NULL, 16); o 252 drivers/gpu/drm/radeon/mkregtable.c offset = offset_new(o); o 254 drivers/gpu/drm/radeon/mkregtable.c if (o > t->offset_max) o 255 drivers/gpu/drm/radeon/mkregtable.c t->offset_max = o; o 2750 drivers/gpu/drm/radeon/radeon.h #define radeon_set_surface_reg(rdev, r, f, p, o, s) ((rdev)->asic->surface.set_reg((rdev), (r), (f), (p), (o), (s))) o 376 drivers/gpu/drm/selftests/test-drm_mm.c unsigned int *order, n, m, o = 0; o 466 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 471 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 481 drivers/gpu/drm/selftests/test-drm_mm.c o += n; o 574 drivers/gpu/drm/selftests/test-drm_mm.c unsigned int *order, n, m, o = 0; o 661 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 666 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 674 drivers/gpu/drm/selftests/test-drm_mm.c o += n; o 1622 drivers/gpu/drm/selftests/test-drm_mm.c unsigned int *order, n, m, o = 0; o 1670 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 1678 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 1704 drivers/gpu/drm/selftests/test-drm_mm.c o += n; o 1736 drivers/gpu/drm/selftests/test-drm_mm.c unsigned int *order, n, m, o = 0; o 1777 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 1785 drivers/gpu/drm/selftests/test-drm_mm.c node = &nodes[order[(o + m) % count]]; o 1804 drivers/gpu/drm/selftests/test-drm_mm.c o += n; o 145 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c int i, o, n, n_min, n_max; o 172 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c for (o = ODF_MIN; o <= ODF_MAX; o *= 2) { o 173 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c n = DIV_ROUND_CLOSEST(i * o * clkout_khz, clkin_khz); o 178 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c delta = dsi_pll_get_clkout_khz(clkin_khz, i, n, o) - o 185 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c *odf = o; o 825 drivers/gpu/drm/vc4/vc4_validate.c uint32_t o = shader_reloc_offsets[i]; o 826 drivers/gpu/drm/vc4/vc4_validate.c uint32_t src_offset = *(uint32_t *)(pkt_u + o); o 831 drivers/gpu/drm/vc4/vc4_validate.c *(uint32_t *)(pkt_v + o) = bo[i]->paddr + src_offset; o 875 drivers/gpu/drm/vc4/vc4_validate.c uint32_t o = validated_shader->uniform_addr_offsets[uni]; o 876 drivers/gpu/drm/vc4/vc4_validate.c ((uint32_t *)exec->uniforms_v)[o] = exec->uniforms_p; o 879 drivers/gpu/drm/vc4/vc4_validate.c *(uint32_t *)(pkt_v + o + 4) = exec->uniforms_p; o 889 drivers/gpu/drm/vc4/vc4_validate.c uint32_t o = 36 + i * 8; o 890 drivers/gpu/drm/vc4/vc4_validate.c uint32_t offset = *(uint32_t *)(pkt_u + o + 0); o 891 drivers/gpu/drm/vc4/vc4_validate.c uint32_t attr_size = *(uint8_t *)(pkt_u + o + 4) + 1; o 892 drivers/gpu/drm/vc4/vc4_validate.c uint32_t stride = *(uint8_t *)(pkt_u + o + 5); o 919 drivers/gpu/drm/vc4/vc4_validate.c *(uint32_t *)(pkt_v + o) = vbo->paddr + offset; o 289 drivers/gpu/drm/vc4/vc4_validate_shaders.c uint32_t o = validated_shader->num_uniform_addr_offsets; o 294 drivers/gpu/drm/vc4/vc4_validate_shaders.c (o + 1) * o 300 drivers/gpu/drm/vc4/vc4_validate_shaders.c validated_shader->uniform_addr_offsets[o] = num_uniforms; o 25 drivers/gpu/host1x/debug.c void host1x_debug_output(struct output *o, const char *fmt, ...) o 31 drivers/gpu/host1x/debug.c len = vsnprintf(o->buf, sizeof(o->buf), fmt, args); o 34 drivers/gpu/host1x/debug.c o->fn(o->ctx, o->buf, len, false); o 37 drivers/gpu/host1x/debug.c void host1x_debug_cont(struct output *o, const char *fmt, ...) o 43 drivers/gpu/host1x/debug.c len = vsnprintf(o->buf, sizeof(o->buf), fmt, args); o 46 drivers/gpu/host1x/debug.c o->fn(o->ctx, o->buf, len, true); o 52 drivers/gpu/host1x/debug.c struct output *o = data; o 57 drivers/gpu/host1x/debug.c host1x_hw_show_channel_fifo(m, ch, o); o 59 drivers/gpu/host1x/debug.c host1x_hw_show_channel_cdma(m, ch, o); o 66 drivers/gpu/host1x/debug.c static void show_syncpts(struct host1x *m, struct output *o) o 70 drivers/gpu/host1x/debug.c host1x_debug_output(o, "---- syncpts ----\n"); o 79 drivers/gpu/host1x/debug.c host1x_debug_output(o, "id %u (%s) min %d max %d\n", o 88 drivers/gpu/host1x/debug.c host1x_debug_output(o, "waitbase id %u val %d\n", i, o 92 drivers/gpu/host1x/debug.c host1x_debug_output(o, "\n"); o 95 drivers/gpu/host1x/debug.c static void show_all(struct host1x *m, struct output *o, bool show_fifo) o 99 drivers/gpu/host1x/debug.c host1x_hw_show_mlocks(m, o); o 100 drivers/gpu/host1x/debug.c show_syncpts(m, o); o 101 drivers/gpu/host1x/debug.c host1x_debug_output(o, "---- channels ----\n"); o 107 drivers/gpu/host1x/debug.c show_channel(ch, o, show_fifo); o 115 drivers/gpu/host1x/debug.c struct output o = { o 120 drivers/gpu/host1x/debug.c show_all(s->private, &o, true); o 127 drivers/gpu/host1x/debug.c struct output o = { o 132 drivers/gpu/host1x/debug.c show_all(s->private, &o, false); o 204 drivers/gpu/host1x/debug.c struct output o = { o 208 drivers/gpu/host1x/debug.c show_all(host1x, &o, true); o 213 drivers/gpu/host1x/debug.c struct output o = { o 217 drivers/gpu/host1x/debug.c show_syncpts(host1x, &o); o 36 drivers/gpu/host1x/debug.h void __printf(2, 3) host1x_debug_output(struct output *o, const char *fmt, ...); o 37 drivers/gpu/host1x/debug.h void __printf(2, 3) host1x_debug_cont(struct output *o, const char *fmt, ...); o 56 drivers/gpu/host1x/dev.h struct output *o); o 59 drivers/gpu/host1x/dev.h struct output *o); o 309 drivers/gpu/host1x/dev.h struct output *o) o 311 drivers/gpu/host1x/dev.h host->debug_op->show_channel_cdma(host, channel, o); o 316 drivers/gpu/host1x/dev.h struct output *o) o 318 drivers/gpu/host1x/dev.h host->debug_op->show_channel_fifo(host, channel, o); o 321 drivers/gpu/host1x/dev.h static inline void host1x_hw_show_mlocks(struct host1x *host, struct output *o) o 323 drivers/gpu/host1x/dev.h host->debug_op->show_mlocks(host, o); o 41 drivers/gpu/host1x/hw/debug_hw.c static unsigned int show_channel_command(struct output *o, u32 val, o 52 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "SETCL(class=%03x, offset=%03x, mask=%02x, [", o 58 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "SETCL(class=%03x)\n", val >> 6 & 0x3ff); o 63 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "INCR(offset=%03x, [", o 66 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "])\n"); o 72 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "NONINCR(offset=%03x, [", o 75 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "])\n"); o 81 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "MASK(offset=%03x, mask=%03x, [", o 84 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "])\n"); o 89 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "IMM(offset=%03x, data=%03x)\n", o 94 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "RESTART(offset=%08x)\n", val << 4); o 98 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "GATHER(offset=%03x, insert=%d, type=%d, count=%04x, addr=[", o 105 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "SETSTRMID(offset=%06x)\n", o 110 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "SETAPPID(appid=%02x)\n", val & 0xff); o 115 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "SETPYLD(data=%04x)\n", *payload); o 120 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "%s(offset=%06x, ", o 125 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "[])\n"); o 128 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "unknown)\n"); o 131 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "["); o 136 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "GATHER_W(count=%04x, addr=[", o 144 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "ACQUIRE_MLOCK(index=%d)\n", o 147 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "RELEASE_MLOCK(index=%d)\n", o 150 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "EXTEND_UNKNOWN(%08x)\n", val); o 154 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "UNKNOWN\n"); o 159 drivers/gpu/host1x/hw/debug_hw.c static void show_gather(struct output *o, phys_addr_t phys_addr, o 174 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_output(o, "[address mismatch]\n"); o 183 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_output(o, "%08x: %08x: ", addr, val); o 184 drivers/gpu/host1x/hw/debug_hw.c data_count = show_channel_command(o, val, &payload); o 186 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_cont(o, "%08x%s", val, o 193 drivers/gpu/host1x/hw/debug_hw.c static void show_channel_gathers(struct output *o, struct host1x_cdma *cdma) o 200 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_output(o, "\n%p: JOB, syncpt_id=%d, syncpt_val=%d, first_get=%08x, timeout=%d num_slots=%d, num_handles=%d\n", o 215 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_output(o, "[could not mmap]\n"); o 219 drivers/gpu/host1x/hw/debug_hw.c host1x_debug_output(o, " GATHER at %pad+%#x, %d words\n", o 222 drivers/gpu/host1x/hw/debug_hw.c show_gather(o, g->base + g->offset, g->words, cdma, o 16 drivers/gpu/host1x/hw/debug_hw_1x01.c struct output *o) o 29 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev)); o 33 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "inactive\n\n"); o 40 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "waiting on syncpt %d val %d\n", o 50 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "waiting on syncpt %d val %d (base %d = %d; offset = %d)\n", o 54 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "active class %02x, offset %04x, val %08x\n", o 59 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "DMAPUT %08x, DMAGET %08x, DMACTL %08x\n", o 61 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "CBREAD %08x, CBSTAT %08x\n", cbread, cbstat); o 63 drivers/gpu/host1x/hw/debug_hw_1x01.c show_channel_gathers(o, cdma); o 64 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "\n"); o 69 drivers/gpu/host1x/hw/debug_hw_1x01.c struct output *o) o 74 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%u: fifo:\n", ch->id); o 77 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "FIFOSTAT %08x\n", val); o 79 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "[empty]\n"); o 105 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%08x: ", val); o 106 drivers/gpu/host1x/hw/debug_hw_1x01.c data_count = show_channel_command(o, val, NULL); o 108 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_cont(o, "%08x%s", val, o 120 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_cont(o, ", ...])\n"); o 121 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "\n"); o 126 drivers/gpu/host1x/hw/debug_hw_1x01.c static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) o 130 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "---- mlocks ----\n"); o 136 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%u: locked by channel %u\n", o 139 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%u: locked by cpu\n", i); o 141 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "%u: unlocked\n", i); o 144 drivers/gpu/host1x/hw/debug_hw_1x01.c host1x_debug_output(o, "\n"); o 16 drivers/gpu/host1x/hw/debug_hw_1x06.c struct output *o) o 30 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev)); o 34 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "inactive\n\n"); o 39 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "waiting on syncpt\n"); o 41 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "active class %02x, offset %04x\n", o 44 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "DMAPUT %08x, DMAGET %08x, DMACTL %08x\n", o 46 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "CHANNELSTAT %02x\n", ch_stat); o 48 drivers/gpu/host1x/hw/debug_hw_1x06.c show_channel_gathers(o, cdma); o 49 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "\n"); o 54 drivers/gpu/host1x/hw/debug_hw_1x06.c struct output *o) o 63 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "%u: fifo:\n", ch->id); o 66 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "CMDFIFO_STAT %08x\n", val); o 68 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "[empty]\n"); o 73 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "CMDFIFO_RDATA %08x\n", val); o 104 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "%03x 0x%08x: ", o 106 drivers/gpu/host1x/hw/debug_hw_1x06.c data_count = show_channel_command(o, val, &payload); o 108 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_cont(o, "%08x%s", val, o 120 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_cont(o, ", ...])\n"); o 121 drivers/gpu/host1x/hw/debug_hw_1x06.c host1x_debug_output(o, "\n"); o 128 drivers/gpu/host1x/hw/debug_hw_1x06.c static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) o 1978 drivers/hid/hid-wiimote-modules.c __u8 o, r, y, g, b, bass, bm, bp; o 2017 drivers/hid/hid-wiimote-modules.c o = !(ext[5] & 0x80); o 2032 drivers/hid/hid-wiimote-modules.c o, &wdata->state.pressure_drums[0], o 63 drivers/hwtracing/stm/p_sys-t.c #define MIPI_SYST_ORIGIN(o) ((u32)(o) << 16) o 97 drivers/infiniband/hw/hns/hns_roce_db.c int o; o 100 drivers/infiniband/hw/hns/hns_roce_db.c for (o = order; o <= 1; ++o) { o 101 drivers/infiniband/hw/hns/hns_roce_db.c i = find_first_bit(pgdir->bits[o], HNS_ROCE_DB_PER_PAGE >> o); o 102 drivers/infiniband/hw/hns/hns_roce_db.c if (i < HNS_ROCE_DB_PER_PAGE >> o) o 109 drivers/infiniband/hw/hns/hns_roce_db.c clear_bit(i, pgdir->bits[o]); o 111 drivers/infiniband/hw/hns/hns_roce_db.c i <<= o; o 113 drivers/infiniband/hw/hns/hns_roce_db.c if (o > order) o 156 drivers/infiniband/hw/hns/hns_roce_db.c int o; o 161 drivers/infiniband/hw/hns/hns_roce_db.c o = db->order; o 166 drivers/infiniband/hw/hns/hns_roce_db.c ++o; o 169 drivers/infiniband/hw/hns/hns_roce_db.c i >>= o; o 170 drivers/infiniband/hw/hns/hns_roce_db.c set_bit(i, db->u.pgdir->bits[o]); o 72 drivers/infiniband/hw/hns/hns_roce_mr.c int o; o 77 drivers/infiniband/hw/hns/hns_roce_mr.c for (o = order; o <= buddy->max_order; ++o) { o 78 drivers/infiniband/hw/hns/hns_roce_mr.c if (buddy->num_free[o]) { o 79 drivers/infiniband/hw/hns/hns_roce_mr.c m = 1 << (buddy->max_order - o); o 80 drivers/infiniband/hw/hns/hns_roce_mr.c *seg = find_first_bit(buddy->bits[o], m); o 89 drivers/infiniband/hw/hns/hns_roce_mr.c clear_bit(*seg, buddy->bits[o]); o 90 drivers/infiniband/hw/hns/hns_roce_mr.c --buddy->num_free[o]; o 92 drivers/infiniband/hw/hns/hns_roce_mr.c while (o > order) { o 93 drivers/infiniband/hw/hns/hns_roce_mr.c --o; o 95 drivers/infiniband/hw/hns/hns_roce_mr.c set_bit(*seg ^ 1, buddy->bits[o]); o 96 drivers/infiniband/hw/hns/hns_roce_mr.c ++buddy->num_free[o]; o 86 drivers/infiniband/hw/mthca/mthca_mr.c int o; o 92 drivers/infiniband/hw/mthca/mthca_mr.c for (o = order; o <= buddy->max_order; ++o) o 93 drivers/infiniband/hw/mthca/mthca_mr.c if (buddy->num_free[o]) { o 94 drivers/infiniband/hw/mthca/mthca_mr.c m = 1 << (buddy->max_order - o); o 95 drivers/infiniband/hw/mthca/mthca_mr.c seg = find_first_bit(buddy->bits[o], m); o 104 drivers/infiniband/hw/mthca/mthca_mr.c clear_bit(seg, buddy->bits[o]); o 105 drivers/infiniband/hw/mthca/mthca_mr.c --buddy->num_free[o]; o 107 drivers/infiniband/hw/mthca/mthca_mr.c while (o > order) { o 108 drivers/infiniband/hw/mthca/mthca_mr.c --o; o 110 drivers/infiniband/hw/mthca/mthca_mr.c set_bit(seg ^ 1, buddy->bits[o]); o 111 drivers/infiniband/hw/mthca/mthca_mr.c ++buddy->num_free[o]; o 628 drivers/input/keyboard/applespi.c const union acpi_object *o; o 631 drivers/input/keyboard/applespi.c if (!acpi_dev_get_property(adev, "spiCSDelay", ACPI_TYPE_BUFFER, &o)) o 632 drivers/input/keyboard/applespi.c settings->spi_cs_delay = *(u64 *)o->buffer.pointer; o 637 drivers/input/keyboard/applespi.c if (!acpi_dev_get_property(adev, "resetA2RUsec", ACPI_TYPE_BUFFER, &o)) o 638 drivers/input/keyboard/applespi.c settings->reset_a2r_usec = *(u64 *)o->buffer.pointer; o 643 drivers/input/keyboard/applespi.c if (!acpi_dev_get_property(adev, "resetRecUsec", ACPI_TYPE_BUFFER, &o)) o 644 drivers/input/keyboard/applespi.c settings->reset_rec_usec = *(u64 *)o->buffer.pointer; o 270 drivers/input/mouse/bcm5974.c struct bcm5974_param o; /* orientation limits */ o 532 drivers/input/mouse/bcm5974.c set_abs(input_dev, ABS_MT_ORIENTATION, &cfg->o); o 381 drivers/iommu/arm-smmu.h #define arm_smmu_gr0_read(s, o) \ o 382 drivers/iommu/arm-smmu.h arm_smmu_readl((s), ARM_SMMU_GR0, (o)) o 383 drivers/iommu/arm-smmu.h #define arm_smmu_gr0_write(s, o, v) \ o 384 drivers/iommu/arm-smmu.h arm_smmu_writel((s), ARM_SMMU_GR0, (o), (v)) o 386 drivers/iommu/arm-smmu.h #define arm_smmu_gr1_read(s, o) \ o 387 drivers/iommu/arm-smmu.h arm_smmu_readl((s), ARM_SMMU_GR1, (o)) o 388 drivers/iommu/arm-smmu.h #define arm_smmu_gr1_write(s, o, v) \ o 389 drivers/iommu/arm-smmu.h arm_smmu_writel((s), ARM_SMMU_GR1, (o), (v)) o 391 drivers/iommu/arm-smmu.h #define arm_smmu_cb_read(s, n, o) \ o 392 drivers/iommu/arm-smmu.h arm_smmu_readl((s), ARM_SMMU_CB((s), (n)), (o)) o 393 drivers/iommu/arm-smmu.h #define arm_smmu_cb_write(s, n, o, v) \ o 394 drivers/iommu/arm-smmu.h arm_smmu_writel((s), ARM_SMMU_CB((s), (n)), (o), (v)) o 395 drivers/iommu/arm-smmu.h #define arm_smmu_cb_readq(s, n, o) \ o 396 drivers/iommu/arm-smmu.h arm_smmu_readq((s), ARM_SMMU_CB((s), (n)), (o)) o 397 drivers/iommu/arm-smmu.h #define arm_smmu_cb_writeq(s, n, o, v) \ o 398 drivers/iommu/arm-smmu.h arm_smmu_writeq((s), ARM_SMMU_CB((s), (n)), (o), (v)) o 126 drivers/irqchip/irq-gic-v3-its.c #define PAGE_ORDER_TO_SIZE(o) (PAGE_SIZE << (o)) o 26 drivers/isdn/hardware/mISDN/mISDNipac.c #define ReadISAC(is, o) (is->read_reg(is->dch.hw, o + is->off)) o 27 drivers/isdn/hardware/mISDN/mISDNipac.c #define WriteISAC(is, o, v) (is->write_reg(is->dch.hw, o + is->off, v)) o 28 drivers/isdn/hardware/mISDN/mISDNipac.c #define ReadHSCX(h, o) (h->ip->read_reg(h->ip->hw, h->off + o)) o 29 drivers/isdn/hardware/mISDN/mISDNipac.c #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v)) o 30 drivers/isdn/hardware/mISDN/mISDNipac.c #define ReadIPAC(ip, o) (ip->read_reg(ip->hw, o)) o 31 drivers/isdn/hardware/mISDN/mISDNipac.c #define WriteIPAC(ip, o, v) (ip->write_reg(ip->hw, o, v)) o 216 drivers/isdn/mISDN/l1oip_codec.c int ii, i = 0, o = 0; o 225 drivers/isdn/mISDN/l1oip_codec.c o++; o 234 drivers/isdn/mISDN/l1oip_codec.c o++; o 243 drivers/isdn/mISDN/l1oip_codec.c return o; o 70 drivers/leds/leds-mt6323.c #define MT6323_CAL_HW_DUTY(o, p) DIV_ROUND_CLOSEST((o) * 100000ul,\ o 182 drivers/md/dm-io.c unsigned o = dp->context_u; o 186 drivers/md/dm-io.c *len = PAGE_SIZE - o; o 187 drivers/md/dm-io.c *offset = o; o 388 drivers/md/dm-snap.c struct origin *o; o 391 drivers/md/dm-snap.c list_for_each_entry (o, ol, hash_list) o 392 drivers/md/dm-snap.c if (bdev_equal(o->bdev, origin)) o 393 drivers/md/dm-snap.c return o; o 398 drivers/md/dm-snap.c static void __insert_origin(struct origin *o) o 400 drivers/md/dm-snap.c struct list_head *sl = &_origins[origin_hash(o->bdev)]; o 401 drivers/md/dm-snap.c list_add_tail(&o->hash_list, sl); o 407 drivers/md/dm-snap.c struct dm_origin *o; o 410 drivers/md/dm-snap.c list_for_each_entry (o, ol, hash_list) o 411 drivers/md/dm-snap.c if (bdev_equal(o->dev->bdev, origin)) o 412 drivers/md/dm-snap.c return o; o 417 drivers/md/dm-snap.c static void __insert_dm_origin(struct dm_origin *o) o 419 drivers/md/dm-snap.c struct list_head *sl = &_dm_origins[origin_hash(o->dev->bdev)]; o 420 drivers/md/dm-snap.c list_add_tail(&o->hash_list, sl); o 423 drivers/md/dm-snap.c static void __remove_dm_origin(struct dm_origin *o) o 425 drivers/md/dm-snap.c list_del(&o->hash_list); o 449 drivers/md/dm-snap.c struct origin *o; o 453 drivers/md/dm-snap.c o = __lookup_origin(snap->origin->bdev); o 454 drivers/md/dm-snap.c if (!o) o 457 drivers/md/dm-snap.c list_for_each_entry(s, &o->snapshots, list) { o 529 drivers/md/dm-snap.c static void __insert_snapshot(struct origin *o, struct dm_snapshot *s) o 534 drivers/md/dm-snap.c list_for_each_entry(l, &o->snapshots, list) o 550 drivers/md/dm-snap.c struct origin *o, *new_o = NULL; o 566 drivers/md/dm-snap.c o = __lookup_origin(bdev); o 567 drivers/md/dm-snap.c if (o) o 571 drivers/md/dm-snap.c o = new_o; o 574 drivers/md/dm-snap.c INIT_LIST_HEAD(&o->snapshots); o 575 drivers/md/dm-snap.c o->bdev = bdev; o 577 drivers/md/dm-snap.c __insert_origin(o); o 580 drivers/md/dm-snap.c __insert_snapshot(o, snap); o 605 drivers/md/dm-snap.c struct origin *o; o 608 drivers/md/dm-snap.c o = __lookup_origin(s->origin->bdev); o 611 drivers/md/dm-snap.c if (o && list_empty(&o->snapshots)) { o 612 drivers/md/dm-snap.c list_del(&o->hash_list); o 613 drivers/md/dm-snap.c kfree(o); o 849 drivers/md/dm-snap.c static uint32_t __minimum_chunk_size(struct origin *o) o 854 drivers/md/dm-snap.c if (o) o 855 drivers/md/dm-snap.c list_for_each_entry(snap, &o->snapshots, list) o 2223 drivers/md/dm-snap.c struct dm_origin *o; o 2229 drivers/md/dm-snap.c o = __lookup_dm_origin(s->origin->bdev); o 2230 drivers/md/dm-snap.c if (o) o 2231 drivers/md/dm-snap.c origin_md = dm_table_get_md(o->ti->table); o 2543 drivers/md/dm-snap.c struct origin *o; o 2548 drivers/md/dm-snap.c o = __lookup_origin(origin->bdev); o 2549 drivers/md/dm-snap.c if (o) { o 2552 drivers/md/dm-snap.c list_for_each_entry(s, &o->snapshots, list) o 2557 drivers/md/dm-snap.c r = __origin_write(&o->snapshots, bio->bi_iter.bi_sector, bio); o 2582 drivers/md/dm-snap.c struct origin *o; o 2589 drivers/md/dm-snap.c o = __lookup_origin(merging_snap->origin->bdev); o 2591 drivers/md/dm-snap.c if (__origin_write(&o->snapshots, sector + n, NULL) == o 2611 drivers/md/dm-snap.c struct dm_origin *o; o 2618 drivers/md/dm-snap.c o = kmalloc(sizeof(struct dm_origin), GFP_KERNEL); o 2619 drivers/md/dm-snap.c if (!o) { o 2625 drivers/md/dm-snap.c r = dm_get_device(ti, argv[0], dm_table_get_mode(ti->table), &o->dev); o 2631 drivers/md/dm-snap.c o->ti = ti; o 2632 drivers/md/dm-snap.c ti->private = o; o 2638 drivers/md/dm-snap.c kfree(o); o 2645 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2647 drivers/md/dm-snap.c dm_put_device(ti, o->dev); o 2648 drivers/md/dm-snap.c kfree(o); o 2653 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2656 drivers/md/dm-snap.c bio_set_dev(bio, o->dev->bdev); o 2664 drivers/md/dm-snap.c available_sectors = o->split_boundary - o 2665 drivers/md/dm-snap.c ((unsigned)bio->bi_iter.bi_sector & (o->split_boundary - 1)); o 2671 drivers/md/dm-snap.c return do_origin(o->dev, bio, true); o 2680 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2682 drivers/md/dm-snap.c o->split_boundary = get_origin_minimum_chunksize(o->dev->bdev); o 2685 drivers/md/dm-snap.c __insert_dm_origin(o); o 2691 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2694 drivers/md/dm-snap.c __remove_dm_origin(o); o 2701 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2709 drivers/md/dm-snap.c snprintf(result, maxlen, "%s", o->dev->name); o 2717 drivers/md/dm-snap.c struct dm_origin *o = ti->private; o 2719 drivers/md/dm-snap.c return fn(ti, o->dev, 0, ti->len, data); o 31 drivers/media/dvb-frontends/rtl2832_sdr.c #define V4L2_SUBDEV_HAS_OP(sd, o, f) \ o 32 drivers/media/dvb-frontends/rtl2832_sdr.c ((sd) && (sd)->ops && (sd)->ops->o && (sd)->ops->o->f) o 751 drivers/media/i2c/cx25840/cx25840-ir.c struct v4l2_subdev_ir_parameters *o; o 764 drivers/media/i2c/cx25840/cx25840-ir.c o = &ir_state->rx_params; o 768 drivers/media/i2c/cx25840/cx25840-ir.c o->shutdown = p->shutdown; o 771 drivers/media/i2c/cx25840/cx25840-ir.c o->mode = p->mode; o 774 drivers/media/i2c/cx25840/cx25840-ir.c o->bytes_per_data_element = p->bytes_per_data_element; o 781 drivers/media/i2c/cx25840/cx25840-ir.c o->modulation = p->modulation; o 787 drivers/media/i2c/cx25840/cx25840-ir.c o->carrier_freq = p->carrier_freq; o 790 drivers/media/i2c/cx25840/cx25840-ir.c o->duty_cycle = p->duty_cycle; o 795 drivers/media/i2c/cx25840/cx25840-ir.c o->carrier_range_lower = p->carrier_range_lower; o 796 drivers/media/i2c/cx25840/cx25840-ir.c o->carrier_range_upper = p->carrier_range_upper; o 805 drivers/media/i2c/cx25840/cx25840-ir.c o->max_pulse_width = p->max_pulse_width; o 810 drivers/media/i2c/cx25840/cx25840-ir.c o->noise_filter_min_width = p->noise_filter_min_width; o 813 drivers/media/i2c/cx25840/cx25840-ir.c o->resolution = p->resolution; o 820 drivers/media/i2c/cx25840/cx25840-ir.c o->invert_level = p->invert_level; o 823 drivers/media/i2c/cx25840/cx25840-ir.c o->interrupt_enable = p->interrupt_enable; o 824 drivers/media/i2c/cx25840/cx25840-ir.c o->enable = p->enable; o 939 drivers/media/i2c/cx25840/cx25840-ir.c struct v4l2_subdev_ir_parameters *o; o 952 drivers/media/i2c/cx25840/cx25840-ir.c o = &ir_state->tx_params; o 955 drivers/media/i2c/cx25840/cx25840-ir.c o->shutdown = p->shutdown; o 958 drivers/media/i2c/cx25840/cx25840-ir.c o->mode = p->mode; o 961 drivers/media/i2c/cx25840/cx25840-ir.c o->bytes_per_data_element = p->bytes_per_data_element; o 968 drivers/media/i2c/cx25840/cx25840-ir.c o->modulation = p->modulation; o 973 drivers/media/i2c/cx25840/cx25840-ir.c o->carrier_freq = p->carrier_freq; o 976 drivers/media/i2c/cx25840/cx25840-ir.c o->duty_cycle = p->duty_cycle; o 985 drivers/media/i2c/cx25840/cx25840-ir.c o->max_pulse_width = p->max_pulse_width; o 989 drivers/media/i2c/cx25840/cx25840-ir.c o->resolution = p->resolution; o 995 drivers/media/i2c/cx25840/cx25840-ir.c o->invert_carrier_sense = p->invert_carrier_sense; o 1003 drivers/media/i2c/cx25840/cx25840-ir.c o->invert_level = p->invert_level; o 1005 drivers/media/i2c/cx25840/cx25840-ir.c o->interrupt_enable = p->interrupt_enable; o 1006 drivers/media/i2c/cx25840/cx25840-ir.c o->enable = p->enable; o 38 drivers/media/i2c/tea6415c.c u32 i, u32 o, u32 config) o 44 drivers/media/i2c/tea6415c.c v4l2_dbg(1, debug, sd, "i=%d, o=%d\n", i, o); o 48 drivers/media/i2c/tea6415c.c && (18 == o || 17 == o || 16 == o || 15 == o || 14 == o || 13 == o))) o 52 drivers/media/i2c/tea6415c.c switch (o) { o 39 drivers/media/i2c/tea6420.c u32 i, u32 o, u32 config) o 42 drivers/media/i2c/tea6420.c int g = (o >> 4) & 0xf; o 46 drivers/media/i2c/tea6420.c o &= 0xf; o 47 drivers/media/i2c/tea6420.c v4l2_dbg(1, debug, sd, "i=%d, o=%d, g=%d\n", i, o, g); o 50 drivers/media/i2c/tea6420.c if (i < 1 || i > 6 || o < 1 || o > 4 || g < 0 || g > 6 || g % 2 != 0) o 53 drivers/media/i2c/tea6420.c byte = ((o - 1) << 5); o 365 drivers/media/pci/bt8xx/bttv.h #define bttv_call_all(btv, o, f, args...) \ o 366 drivers/media/pci/bt8xx/bttv.h v4l2_device_call_all(&btv->c.v4l2_dev, 0, o, f, ##args) o 368 drivers/media/pci/bt8xx/bttv.h #define bttv_call_all_err(btv, o, f, args...) \ o 369 drivers/media/pci/bt8xx/bttv.h v4l2_device_call_until_err(&btv->c.v4l2_dev, 0, o, f, ##args) o 695 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_hw(cx, hw, o, f, args...) \ o 696 drivers/media/pci/cx18/cx18-driver.h v4l2_device_mask_call_all(&(cx)->v4l2_dev, hw, o, f, ##args) o 698 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_all(cx, o, f, args...) cx18_call_hw(cx, 0, o, f , ##args) o 703 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_hw_err(cx, hw, o, f, args...) \ o 704 drivers/media/pci/cx18/cx18-driver.h v4l2_device_mask_call_until_err(&(cx)->v4l2_dev, hw, o, f, ##args) o 706 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_all_err(cx, o, f, args...) \ o 707 drivers/media/pci/cx18/cx18-driver.h cx18_call_hw_err(cx, 0, o, f , ##args) o 453 drivers/media/pci/cx23885/cx23885.h #define call_all(dev, o, f, args...) \ o 454 drivers/media/pci/cx23885/cx23885.h v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) o 459 drivers/media/pci/cx23885/cx23885.h #define call_hw(dev, grpid, o, f, args...) \ o 460 drivers/media/pci/cx23885/cx23885.h v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args) o 737 drivers/media/pci/cx23885/cx23888-ir.c struct v4l2_subdev_ir_parameters *o = &state->rx_params; o 748 drivers/media/pci/cx23885/cx23888-ir.c o->shutdown = p->shutdown; o 750 drivers/media/pci/cx23885/cx23888-ir.c o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; o 752 drivers/media/pci/cx23885/cx23888-ir.c o->bytes_per_data_element = p->bytes_per_data_element o 760 drivers/media/pci/cx23885/cx23888-ir.c o->modulation = p->modulation; o 766 drivers/media/pci/cx23885/cx23888-ir.c o->carrier_freq = p->carrier_freq; o 768 drivers/media/pci/cx23885/cx23888-ir.c o->duty_cycle = p->duty_cycle = 50; o 773 drivers/media/pci/cx23885/cx23888-ir.c o->carrier_range_lower = p->carrier_range_lower; o 774 drivers/media/pci/cx23885/cx23888-ir.c o->carrier_range_upper = p->carrier_range_upper; o 783 drivers/media/pci/cx23885/cx23888-ir.c o->max_pulse_width = p->max_pulse_width; o 788 drivers/media/pci/cx23885/cx23888-ir.c o->noise_filter_min_width = p->noise_filter_min_width; o 791 drivers/media/pci/cx23885/cx23888-ir.c o->resolution = p->resolution; o 798 drivers/media/pci/cx23885/cx23888-ir.c o->invert_level = p->invert_level; o 801 drivers/media/pci/cx23885/cx23888-ir.c o->interrupt_enable = p->interrupt_enable; o 802 drivers/media/pci/cx23885/cx23888-ir.c o->enable = p->enable; o 865 drivers/media/pci/cx23885/cx23888-ir.c struct v4l2_subdev_ir_parameters *o = &state->tx_params; o 876 drivers/media/pci/cx23885/cx23888-ir.c o->shutdown = p->shutdown; o 878 drivers/media/pci/cx23885/cx23888-ir.c o->mode = p->mode = V4L2_SUBDEV_IR_MODE_PULSE_WIDTH; o 880 drivers/media/pci/cx23885/cx23888-ir.c o->bytes_per_data_element = p->bytes_per_data_element o 888 drivers/media/pci/cx23885/cx23888-ir.c o->modulation = p->modulation; o 893 drivers/media/pci/cx23885/cx23888-ir.c o->carrier_freq = p->carrier_freq; o 896 drivers/media/pci/cx23885/cx23888-ir.c o->duty_cycle = p->duty_cycle; o 905 drivers/media/pci/cx23885/cx23888-ir.c o->max_pulse_width = p->max_pulse_width; o 909 drivers/media/pci/cx23885/cx23888-ir.c o->resolution = p->resolution; o 915 drivers/media/pci/cx23885/cx23888-ir.c o->invert_carrier_sense = p->invert_carrier_sense; o 918 drivers/media/pci/cx23885/cx23888-ir.c o->invert_level = p->invert_level; o 920 drivers/media/pci/cx23885/cx23888-ir.c o->interrupt_enable = p->interrupt_enable; o 921 drivers/media/pci/cx23885/cx23888-ir.c o->enable = p->enable; o 511 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_output *o) o 513 drivers/media/pci/cx25821/cx25821-video.c if (o->index) o 516 drivers/media/pci/cx25821/cx25821-video.c o->type = V4L2_INPUT_TYPE_CAMERA; o 517 drivers/media/pci/cx25821/cx25821-video.c o->std = CX25821_NORMS; o 518 drivers/media/pci/cx25821/cx25821-video.c strscpy(o->name, "Composite", sizeof(o->name)); o 522 drivers/media/pci/cx25821/cx25821-video.c static int cx25821_vidioc_g_output(struct file *file, void *priv, unsigned int *o) o 524 drivers/media/pci/cx25821/cx25821-video.c *o = 0; o 528 drivers/media/pci/cx25821/cx25821-video.c static int cx25821_vidioc_s_output(struct file *file, void *priv, unsigned int o) o 530 drivers/media/pci/cx25821/cx25821-video.c return o ? -EINVAL : 0; o 416 drivers/media/pci/cx88/cx88.h #define call_hw(core, grpid, o, f, args...) \ o 422 drivers/media/pci/cx88/cx88.h grpid, o, f, ##args); \ o 428 drivers/media/pci/cx88/cx88.h #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) o 550 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_output *o; o 553 drivers/media/pci/ddbridge/ddbridge-core.c while (i && (o = i->redo)) { o 554 drivers/media/pci/ddbridge/ddbridge-core.c ddb_output_start(o); o 555 drivers/media/pci/ddbridge/ddbridge-core.c i = o->port->input[0]; o 566 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_output *o; o 570 drivers/media/pci/ddbridge/ddbridge-core.c while (i && (o = i->redo)) { o 571 drivers/media/pci/ddbridge/ddbridge-core.c ddb_output_stop(o); o 572 drivers/media/pci/ddbridge/ddbridge-core.c i = o->port->input[0]; o 831 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_hw(itv, hw, o, f, args...) \ o 832 drivers/media/pci/ivtv/ivtv-driver.h v4l2_device_mask_call_all(&(itv)->v4l2_dev, hw, o, f, ##args) o 834 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_all(itv, o, f, args...) ivtv_call_hw(itv, 0, o, f , ##args) o 839 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_hw_err(itv, hw, o, f, args...) \ o 840 drivers/media/pci/ivtv/ivtv-driver.h v4l2_device_mask_call_until_err(&(itv)->v4l2_dev, hw, o, f, ##args) o 842 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_all_err(itv, o, f, args...) ivtv_call_hw_err(itv, 0, o, f , ##args) o 715 drivers/media/pci/saa7134/saa7134.h #define saa_call_all(dev, o, f, args...) do { \ o 718 drivers/media/pci/saa7134/saa7134.h v4l2_device_call_all(&(dev)->v4l2_dev, 0, o, f , ##args); \ o 723 drivers/media/pci/saa7134/saa7134.h #define saa_call_empress(dev, o, f, args...) ({ \ o 728 drivers/media/pci/saa7134/saa7134.h GRP_EMPRESS, o, f , ##args); \ o 162 drivers/media/pci/saa7146/mxb.c #define saa7111a_call(mxb, o, f, args...) \ o 163 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->saa7111a, o, f, ##args) o 164 drivers/media/pci/saa7146/mxb.c #define tda9840_call(mxb, o, f, args...) \ o 165 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tda9840, o, f, ##args) o 166 drivers/media/pci/saa7146/mxb.c #define tea6415c_call(mxb, o, f, args...) \ o 167 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6415c, o, f, ##args) o 168 drivers/media/pci/saa7146/mxb.c #define tuner_call(mxb, o, f, args...) \ o 169 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tuner, o, f, ##args) o 170 drivers/media/pci/saa7146/mxb.c #define call_all(dev, o, f, args...) \ o 171 drivers/media/pci/saa7146/mxb.c v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args) o 895 drivers/media/platform/fsl-viu.c #define decoder_call(viu, o, f, args...) \ o 896 drivers/media/platform/fsl-viu.c v4l2_subdev_call(viu->decoder, o, f, ##args) o 94 drivers/media/platform/marvell-ccic/mcam-core.c #define sensor_call(cam, o, f, args...) \ o 95 drivers/media/platform/marvell-ccic/mcam-core.c v4l2_subdev_call(cam->sensor, o, f, ##args) o 176 drivers/media/platform/pxa_camera.c #define sensor_call(cam, o, f, args...) \ o 177 drivers/media/platform/pxa_camera.c v4l2_subdev_call(cam->sensor, o, f, ##args) o 100 drivers/media/platform/s5p-g2d/g2d-regs.h #define COLOR_MODE(o, m) (((o) << 4) | (m)) o 1064 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_g_output(struct file *file, void *priv, unsigned *o) o 1068 drivers/media/platform/vivid/vivid-vid-out.c *o = dev->output; o 1072 drivers/media/platform/vivid/vivid-vid-out.c int vidioc_s_output(struct file *file, void *priv, unsigned o) o 1076 drivers/media/platform/vivid/vivid-vid-out.c if (o >= dev->num_outputs) o 1079 drivers/media/platform/vivid/vivid-vid-out.c if (o == dev->output) o 1085 drivers/media/platform/vivid/vivid-vid-out.c dev->output = o; o 1087 drivers/media/platform/vivid/vivid-vid-out.c if (dev->output_type[o] == SVID) o 731 drivers/media/usb/cx231xx/cx231xx.h #define cx25840_call(cx231xx, o, f, args...) \ o 732 drivers/media/usb/cx231xx/cx231xx.h v4l2_subdev_call(cx231xx->sd_cx25840, o, f, ##args) o 733 drivers/media/usb/cx231xx/cx231xx.h #define tuner_call(cx231xx, o, f, args...) \ o 734 drivers/media/usb/cx231xx/cx231xx.h v4l2_subdev_call(cx231xx->sd_tuner, o, f, ##args) o 735 drivers/media/usb/cx231xx/cx231xx.h #define call_all(dev, o, f, args...) \ o 736 drivers/media/usb/cx231xx/cx231xx.h v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args) o 117 drivers/media/usb/dvb-usb/cxusb.c u8 o[2], i; o 123 drivers/media/usb/dvb-usb/cxusb.c o[0] = GPIO_TUNER; o 124 drivers/media/usb/dvb-usb/cxusb.c o[1] = onoff; o 125 drivers/media/usb/dvb-usb/cxusb.c cxusb_ctrl_msg(d, CMD_GPIO_WRITE, o, 2, &i, 1); o 137 drivers/media/usb/dvb-usb/cxusb.c u8 o[2], gpio_state; o 140 drivers/media/usb/dvb-usb/cxusb.c o[0] = 0xff & ~changemask; /* mask of bits to keep */ o 141 drivers/media/usb/dvb-usb/cxusb.c o[1] = newval & changemask; /* new values for bits */ o 143 drivers/media/usb/dvb-usb/cxusb.c rc = cxusb_ctrl_msg(d, CMD_BLUEBIRD_GPIO_RW, o, 2, &gpio_state, 1); o 165 drivers/media/usb/dvb-usb/cxusb.c u8 o[2] = {addr, onoff}; o 169 drivers/media/usb/dvb-usb/cxusb.c rc = cxusb_ctrl_msg(d, CMD_GPIO_WRITE, o, 2, &i, 1); o 29 drivers/media/usb/dvb-usb/dvb-usb-init.c int ret, n, o; o 38 drivers/media/usb/dvb-usb/dvb-usb-init.c for (o = 0; o < adap->props.num_frontends; o++) { o 39 drivers/media/usb/dvb-usb/dvb-usb-init.c struct dvb_usb_adapter_fe_properties *props = &adap->props.fe[o]; o 49 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].pid_filtering = 1; o 50 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].max_feed_count = props->pid_filter_count; o 53 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].pid_filtering = 0; o 54 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].max_feed_count = 255; o 57 drivers/media/usb/dvb-usb/dvb-usb-init.c if (!adap->fe_adap[o].pid_filtering && o 61 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].pid_filtering = 1; o 62 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].max_feed_count = props->pid_filter_count; o 66 drivers/media/usb/dvb-usb/dvb-usb-init.c adap->fe_adap[o].priv = kzalloc(props->size_of_priv, GFP_KERNEL); o 67 drivers/media/usb/dvb-usb/dvb-usb-init.c if (adap->fe_adap[o].priv == NULL) { o 68 drivers/media/usb/dvb-usb/dvb-usb-init.c err("no memory for priv for adapter %d fe %d.", n, o); o 98 drivers/media/usb/dvb-usb/vp702x.c int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec) o 105 drivers/media/usb/dvb-usb/vp702x.c ret = vp702x_usb_out_op_unlocked(d, REQUEST_OUT, 0, 0, o, olen); o 113 drivers/media/usb/dvb-usb/vp702x.c static int vp702x_usb_inout_cmd(struct dvb_usb_device *d, u8 cmd, u8 *o, o 141 drivers/media/usb/dvb-usb/vp702x.c memcpy(&buf[2], o, olen); o 111 drivers/media/usb/dvb-usb/vp702x.h extern int vp702x_usb_inout_op(struct dvb_usb_device *d, u8 *o, int olen, u8 *i, int ilen, int msec); o 29 drivers/media/usb/go7007/go7007-v4l2.c #define call_all(dev, o, f, args...) \ o 30 drivers/media/usb/go7007/go7007-v4l2.c v4l2_device_call_until_err(dev, 0, o, f, ##args) o 454 drivers/media/usb/usbvision/usbvision.h #define call_all(usbvision, o, f, args...) \ o 455 drivers/media/usb/usbvision/usbvision.h v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args) o 398 drivers/mtd/nand/raw/mpc5121_nfc.c uint o, s, sbsize, blksize; o 428 drivers/mtd/nand/raw/mpc5121_nfc.c o = offset - (s * sbsize); o 429 drivers/mtd/nand/raw/mpc5121_nfc.c blksize = min(sbsize - o, size); o 432 drivers/mtd/nand/raw/mpc5121_nfc.c memcpy_toio(prv->regs + NFC_SPARE_AREA(s) + o, o 436 drivers/mtd/nand/raw/mpc5121_nfc.c prv->regs + NFC_SPARE_AREA(s) + o, blksize); o 110 drivers/net/can/cc770/cc770.c unsigned int o, mo; o 112 drivers/net/can/cc770/cc770.c for (o = 0; o < ARRAY_SIZE(priv->obj_flags); o++) { o 113 drivers/net/can/cc770/cc770.c obj_flags = priv->obj_flags[o]; o 114 drivers/net/can/cc770/cc770.c mo = obj2msgobj(o); o 122 drivers/net/can/cc770/cc770.c if (o > 0) o 171 drivers/net/can/cc770/cc770.c int o, mo; o 173 drivers/net/can/cc770/cc770.c for (o = 0; o < ARRAY_SIZE(priv->obj_flags); o++) { o 174 drivers/net/can/cc770/cc770.c mo = obj2msgobj(o); o 176 drivers/net/can/cc770/cc770.c if (priv->obj_flags[o] & CC770_OBJ_FLAG_RX) { o 177 drivers/net/can/cc770/cc770.c if (o > 0 && priv->control_normal_mode & CTRL_EAF) o 599 drivers/net/can/cc770/cc770.c static void cc770_rx_interrupt(struct net_device *dev, unsigned int o) o 603 drivers/net/can/cc770/cc770.c unsigned int mo = obj2msgobj(o); o 640 drivers/net/can/cc770/cc770.c static void cc770_rtr_interrupt(struct net_device *dev, unsigned int o) o 643 drivers/net/can/cc770/cc770.c unsigned int mo = obj2msgobj(o); o 664 drivers/net/can/cc770/cc770.c static void cc770_tx_interrupt(struct net_device *dev, unsigned int o) o 668 drivers/net/can/cc770/cc770.c unsigned int mo = obj2msgobj(o); o 717 drivers/net/can/cc770/cc770.c int o, n = 0; o 738 drivers/net/can/cc770/cc770.c o = intid2obj(intid); o 740 drivers/net/can/cc770/cc770.c if (o >= CC770_OBJ_MAX) { o 746 drivers/net/can/cc770/cc770.c if (priv->obj_flags[o] & CC770_OBJ_FLAG_RTR) o 747 drivers/net/can/cc770/cc770.c cc770_rtr_interrupt(dev, o); o 748 drivers/net/can/cc770/cc770.c else if (priv->obj_flags[o] & CC770_OBJ_FLAG_RX) o 749 drivers/net/can/cc770/cc770.c cc770_rx_interrupt(dev, o); o 751 drivers/net/can/cc770/cc770.c cc770_tx_interrupt(dev, o); o 162 drivers/net/can/cc770/cc770.h #define obj2msgobj(o) (MSGOBJ_LAST - (o)) /* message object 11..15 */ o 130 drivers/net/can/usb/peak_usb/pcan_usb_fd.c #define PCAN_UFD_OVMSG_CHANNEL(o) ((o)->channel & 0xf) o 696 drivers/net/ethernet/amd/atarilance.c #define CHECK_OFFSET(o) \ o 699 drivers/net/ethernet/amd/atarilance.c if (((o) < RIEBL_RSVD_START) ? (o)+PKT_BUF_SZ > RIEBL_RSVD_START \ o 700 drivers/net/ethernet/amd/atarilance.c : (o) < RIEBL_RSVD_END) \ o 701 drivers/net/ethernet/amd/atarilance.c (o) = RIEBL_RSVD_END; \ o 49 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 58 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(o, 0, sizeof(*o)); o 60 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c INIT_LIST_HEAD(&o->exe_queue); o 61 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c INIT_LIST_HEAD(&o->pending_comp); o 63 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_init(&o->lock); o 65 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->exe_chunk_len = exe_len; o 66 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->owner = owner; o 69 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->validate = validate; o 70 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->remove = remove; o 71 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->optimize = optimize; o 72 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->execute = exec; o 73 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->get = get; o 86 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline int bnx2x_exe_queue_length(struct bnx2x_exe_queue_obj *o) o 91 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->lock); o 93 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(elem, &o->exe_queue, link) o 96 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->lock); o 112 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 118 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->lock); o 122 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->optimize(bp, o->owner, elem); o 127 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->validate(bp, o->owner, elem); o 135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_add_tail(&elem->link, &o->exe_queue); o 137 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->lock); o 144 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->lock); o 151 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o) o 155 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c while (!list_empty(&o->pending_comp)) { o 156 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c elem = list_first_entry(&o->pending_comp, o 174 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 188 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!list_empty(&o->pending_comp)) { o 191 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_exe_queue_reset_pending(bp, o); o 200 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c while (!list_empty(&o->exe_queue)) { o 201 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c elem = list_first_entry(&o->exe_queue, struct bnx2x_exeq_elem, o 205 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cur_len + elem->cmd_len <= o->exe_chunk_len) { o 211 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_add_tail(&spacer.link, &o->pending_comp); o 213 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_move_tail(&elem->link, &o->pending_comp); o 223 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->execute(bp, o->owner, &o->pending_comp, ramrod_flags); o 228 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_splice_init(&o->pending_comp, &o->exe_queue); o 233 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_exe_queue_reset_pending(bp, o); o 238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline bool bnx2x_exe_queue_empty(struct bnx2x_exe_queue_obj *o) o 240 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bool empty = list_empty(&o->exe_queue); o 245 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return empty && list_empty(&o->pending_comp); o 256 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_raw_check_pending(struct bnx2x_raw_obj *o) o 258 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return !!test_bit(o->state, o->pstate); o 261 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_raw_clear_pending(struct bnx2x_raw_obj *o) o 264 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c clear_bit(o->state, o->pstate); o 268 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_raw_set_pending(struct bnx2x_raw_obj *o) o 271 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c set_bit(o->state, o->pstate); o 325 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_get_cam_offset_mac(struct bnx2x_vlan_mac_obj *o, int *offset) o 327 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 334 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_get_credit_mac(struct bnx2x_vlan_mac_obj *o) o 336 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 343 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_get_cam_offset_vlan(struct bnx2x_vlan_mac_obj *o, int *offset) o 345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 352 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_get_credit_vlan(struct bnx2x_vlan_mac_obj *o) o 354 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 361 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_get_credit_vlan_mac(struct bnx2x_vlan_mac_obj *o) o 363 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 364 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 377 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_put_cam_offset_mac(struct bnx2x_vlan_mac_obj *o, int offset) o 379 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 384 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_put_credit_mac(struct bnx2x_vlan_mac_obj *o) o 386 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 391 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_put_cam_offset_vlan(struct bnx2x_vlan_mac_obj *o, int offset) o 393 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 398 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_put_credit_vlan(struct bnx2x_vlan_mac_obj *o) o 400 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 405 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_put_credit_vlan_mac(struct bnx2x_vlan_mac_obj *o) o 407 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *mp = o->macs_pool; o 408 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *vp = o->vlans_pool; o 431 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 433 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->head_reader) { o 452 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 455 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c unsigned long ramrod_flags = o->saved_ramrod_flags; o 459 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_exe_request = false; o 460 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->saved_ramrod_flags = 0; o 461 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_exe_queue_step(bp, &o->exe_queue, &ramrod_flags); o 481 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 484 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_exe_request = true; o 485 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->saved_ramrod_flags = ramrod_flags; o 501 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 506 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c while (o->head_exe_request) { o 508 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_vlan_mac_h_exec_pending(bp, o); o 523 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 526 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_reader++; o 528 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_reader); o 542 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 546 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->exe_queue.lock); o 547 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = __bnx2x_vlan_mac_h_read_lock(bp, o); o 548 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->exe_queue.lock); o 564 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 566 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!o->head_reader) { o 572 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_reader--; o 574 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_reader); o 580 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!o->head_reader && o->head_exe_request) { o 584 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_vlan_mac_h_write_unlock(bp, o); o 599 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 601 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->exe_queue.lock); o 602 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_vlan_mac_h_read_unlock(bp, o); o 603 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->exe_queue.lock); o 606 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static int bnx2x_get_n_elements(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, o 615 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c read_lock = bnx2x_vlan_mac_h_read_lock(bp, o); o 620 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) { o 632 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_h_read_unlock(bp, o); o 640 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 651 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 667 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 675 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 683 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 697 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 704 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 714 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 721 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 730 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 738 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) o 784 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline u8 bnx2x_vlan_mac_get_rx_tx_flag(struct bnx2x_vlan_mac_obj *o) o 786 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 842 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, bool add, int opcode, o 845 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 852 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_get_rx_tx_flag(o); o 882 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 886 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 926 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_cmd_hdr_e2(bp, o, add, CLASSIFY_RULE_OPCODE_MAC, o 978 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, int type, int cam_offset, o 981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 991 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, bool add, int opcode, u8 *mac, o 994 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 1017 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, int type, int cam_offset, bool add, o 1021 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1023 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_rdata_hdr_e1x(bp, o, type, cam_offset, o 1025 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_cfg_entry_e1x(bp, o, add, opcode, mac, vlan_id, o 1043 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1047 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1059 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_rdata_e1x(bp, o, raw->state, o 1066 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1070 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1084 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_cmd_hdr_e2(bp, o, add, CLASSIFY_RULE_OPCODE_VLAN, o 1116 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1120 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1136 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_cmd_hdr_e2(bp, o, add, CLASSIFY_RULE_OPCODE_PAIR, o 1182 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1186 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1198 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_set_rdata_e1x(bp, o, BNX2X_FILTER_VLAN_MAC_PENDING, o 1229 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = p->vlan_mac_obj; o 1232 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (list_empty(&o->head)) { o 1239 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c *ppos = list_first_entry(&o->head, o 1248 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (list_is_last(&pos->link, &o->head)) o 1271 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 1278 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->exe_queue, link) o 1288 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 1295 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->exe_queue, link) o 1305 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *o, o 1313 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->exe_queue, link) o 1340 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; o 1341 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *exeq = &o->exe_queue; o 1345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->check_add(bp, o, &elem->cmd_data.vlan_mac.u); o 1366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->get_credit(o))) o 1388 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; o 1390 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *exeq = &o->exe_queue; o 1396 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c pos = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); o 1423 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->put_credit(o))) { o 1558 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o) o 1561 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *exeq = &o->exe_queue; o 1562 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1581 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1586 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->exe_queue.lock); o 1589 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = __bnx2x_vlan_mac_h_write_trylock(bp, o); o 1592 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_vlan_mac_h_pend(bp, o, *ramrod_flags); o 1599 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_exe_queue_step(bp, &o->exe_queue, ramrod_flags); o 1601 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->exe_queue.lock); o 1616 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1620 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 1626 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_lock_bh(&o->exe_queue.lock); o 1629 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c __bnx2x_exe_queue_reset_pending(bp, &o->exe_queue); o 1634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c spin_unlock_bh(&o->exe_queue.lock); o 1642 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = __bnx2x_vlan_mac_execute_step(bp, o, ramrod_flags); o 1649 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!bnx2x_exe_queue_empty(&o->exe_queue)) o 1667 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac; o 1668 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *exeq = &o->exe_queue; o 1692 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BNX2X_VLAN_MAC_ADD) && !o->put_credit(o)) { o 1695 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c } else if (!o->get_credit(o)) { /* VLAN_MAC_DEL */ o 1726 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 1742 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!o->get_cam_offset(o, ®_elem->cam_offset)) { o 1761 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c reg_elem = o->check_del(bp, o, &elem->cmd_data.vlan_mac.u); o 1783 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = &qo->vlan_mac, *cam_obj; o 1784 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 1809 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cam_obj = o; o 1826 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, elem, idx, o 1843 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_sp_post(bp, o->ramrod_cmd, r->cid, o 1856 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c reg_elem = o->check_del(bp, o, o 1861 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->put_cam_offset(o, reg_elem->cam_offset); o 1882 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cam_obj = o; o 1888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c reg_elem = o->check_del(bp, cam_obj, o 1905 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = p->vlan_mac_obj; o 1926 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_exe_queue_add(bp, &o->exe_queue, elem, restore); o 1940 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o = p->vlan_mac_obj; o 1943 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 1957 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!bnx2x_exe_queue_empty(&o->exe_queue)) o 1981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int max_iterations = bnx2x_exe_queue_length(&o->exe_queue) + 1; o 1983 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c while (!bnx2x_exe_queue_empty(&o->exe_queue) && o 2019 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_vlan_mac_obj *o, o 2025 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_exe_queue_obj *exeq = &o->exe_queue; o 2054 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c p.vlan_mac_obj = o; o 2066 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c read_lock = bnx2x_vlan_mac_h_read_lock(bp, o); o 2070 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(pos, &o->head, link) { o 2079 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_h_read_unlock(bp, o); o 2086 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_vlan_mac_h_read_unlock(bp, o); o 2112 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline void bnx2x_init_vlan_mac_common(struct bnx2x_vlan_mac_obj *o, o 2118 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c INIT_LIST_HEAD(&o->head); o 2119 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_reader = 0; o 2120 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->head_exe_request = false; o 2121 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->saved_ramrod_flags = 0; o 2123 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->macs_pool = macs_pool; o 2124 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->vlans_pool = vlans_pool; o 2126 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->delete_all = bnx2x_vlan_mac_del_all; o 2127 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->restore = bnx2x_vlan_mac_restore; o 2128 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->complete = bnx2x_complete_vlan_mac; o 2129 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->wait = bnx2x_wait_vlan_mac; o 2131 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, o 2580 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_rx_mode_obj *o) o 2583 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->wait_comp = bnx2x_empty_rx_mode_wait; o 2584 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->config_rx_mode = bnx2x_set_rx_mode_e1x; o 2586 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->wait_comp = bnx2x_wait_rx_mode_comp_e2; o 2587 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->config_rx_mode = bnx2x_set_rx_mode_e2; o 2647 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o) o 2649 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (bnx2x_state_wait(bp, o->sched_state, o->raw.pstate) || o 2650 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->raw.wait_comp(bp, &o->raw)) o 2670 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, o 2760 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_add_tail(&new_cmd->link, &o->pending_cmds_head); o 2762 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_sched(o); o 2775 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline int bnx2x_mcast_get_next_bin(struct bnx2x_mcast_obj *o, int last) o 2780 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->registry.aprox_match.vec[i]) o 2783 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (BIT_VEC64_TEST_BIT(o->registry.aprox_match. o 2802 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline int bnx2x_mcast_clear_first_bin(struct bnx2x_mcast_obj *o) o 2804 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int cur_bit = bnx2x_mcast_get_next_bin(o, 0); o 2807 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_CLEAR_BIT(o->registry.aprox_match.vec, cur_bit); o 2812 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static inline u8 bnx2x_mcast_get_rx_tx_flag(struct bnx2x_mcast_obj *o) o 2814 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 2829 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, int idx, o 2833 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 2837 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 rx_tx_add_flag = bnx2x_mcast_get_rx_tx_flag(o); o 2850 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_SET_BIT(o->registry.aprox_match.vec, bin); o 2860 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bin = bnx2x_mcast_clear_first_bin(o); o 2869 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_SET_BIT(o->registry.aprox_match.vec, bin); o 2874 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_CLEAR_BIT(o->registry.aprox_match.vec, bin); o 2888 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rules[idx].engine_id = o->engine_id; o 2902 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x *bp, struct bnx2x_mcast_obj *o , int start_bin, o 2909 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (cur_bin = bnx2x_mcast_get_next_bin(o, start_bin); cur_bin >= 0; o 2910 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cur_bin = bnx2x_mcast_get_next_bin(o, cur_bin + 1)) { o 2913 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, &cfg_data, o 2923 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cnt >= o->max_cmd_len) o 2933 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, o 2944 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); o 2956 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cnt >= o->max_cmd_len) o 2968 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, o 2974 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, NULL, cmd_pos->type); o 2986 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cnt >= o->max_cmd_len) o 2998 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_pending_mcast_cmd *cmd_pos, o 3001 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd_pos->data.next_bin = o->hdl_restore(bp, o, cmd_pos->data.next_bin, o 3014 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, o 3024 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memcpy(cur, o->registry.aprox_match.vec, o 3073 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= (o->max_cmd_len + mac_cnt); o 3074 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num += cnt; o 3076 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c DP(BNX2X_MSG_SP, "o->total_pending_num=%d\n", o->total_pending_num); o 3081 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, o 3096 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_pending_set_e2_convert(bp, o, cmd_pos); o 3101 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, *cnt, &cfg_data, p_item->type); o 3107 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (*cnt >= o->max_cmd_len) o 3121 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3123 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry_safe(cmd_pos, cmd_pos_n, &o->pending_cmds_head, o 3127 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_pending_add_e2(bp, o, cmd_pos, &cnt); o 3131 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_pending_del_e2(bp, o, cmd_pos, &cnt); o 3135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_pending_restore_e2(bp, o, cmd_pos, o 3140 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_pending_set_e2(bp, o, cmd_pos, &cnt); o 3158 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cnt >= o->max_cmd_len) o 3166 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_mcast_ramrod_params *p, o 3175 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, &cfg_data, BNX2X_MCAST_CMD_ADD); o 3187 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_mcast_ramrod_params *p, o 3193 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, NULL, BNX2X_MCAST_CMD_DEL); o 3221 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3228 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_add(bp, o, p, &cnt); o 3232 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_del(bp, o, p, &cnt); o 3236 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->hdl_restore(bp, o, 0, &cnt); o 3254 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3255 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int reg_sz = o->get_registry_size(o); o 3260 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, 0); o 3281 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, reg_sz + p->mcast_list_len); o 3293 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, reg_sz + p->mcast_list_len); o 3294 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num += o->max_cmd_len; o 3303 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num += p->mcast_list_len; o 3313 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3315 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, old_num_bins); o 3316 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= p->mcast_list_len; o 3319 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= o->max_cmd_len; o 3355 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o) o 3361 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c elem = o->registry.aprox_match.vec[i]; o 3366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, cnt); o 3376 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3387 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (list_empty(&o->pending_cmds_head)) o 3388 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->clear_sched(o); o 3402 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= cnt; o 3405 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c WARN_ON(o->total_pending_num < 0); o 3406 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c WARN_ON(cnt > o->max_cmd_len); o 3425 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!o->total_pending_num) o 3426 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_refresh_registry_e2(bp, o); o 3487 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, o 3502 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_SET_BIT(o->registry.aprox_match.vec, o 3508 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, struct bnx2x_mcast_ramrod_params *p, o 3513 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (bit = bnx2x_mcast_get_next_bin(o, 0); o 3515 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bit = bnx2x_mcast_get_next_bin(o, bit + 1)) { o 3530 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3531 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 3544 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_add_e1h(bp, o, p, mc_filter); o 3552 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(o->registry.aprox_match.vec, 0, o 3553 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c sizeof(o->registry.aprox_match.vec)); o 3557 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_mcast_hdl_restore_e1h(bp, o, p, mc_filter); o 3570 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memset(o->registry.aprox_match.vec, 0, o 3571 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c sizeof(o->registry.aprox_match.vec)); o 3583 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3584 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int reg_sz = o->get_registry_size(o); o 3594 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, 0); o 3610 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (p->mcast_list_len > o->max_cmd_len) { o 3612 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->max_cmd_len); o 3621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, p->mcast_list_len); o 3634 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num += o->max_cmd_len; o 3644 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3646 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_registry_size(o, old_num_macs); o 3653 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= o->max_cmd_len; o 3657 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o, int idx, o 3661 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 3724 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x *bp, struct bnx2x_mcast_obj *o , int start_idx, o 3732 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c list_for_each_entry(elem, &o->registry.exact_match.macs, link) { o 3734 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, i, &cfg_data, BNX2X_MCAST_CMD_RESTORE); o 3752 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3757 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (list_empty(&o->pending_cmds_head)) o 3761 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd_pos = list_first_entry(&o->pending_cmds_head, o 3768 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->set_one_rule(bp, o, cnt, &cfg_data, cmd_pos->type); o 3783 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->hdl_restore(bp, o, 0, &cnt); o 3829 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o) o 3831 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 3844 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!list_empty(&o->registry.exact_match.macs)) o 3862 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c &o->registry.exact_match.macs); o 3865 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c elem = list_first_entry(&o->registry.exact_match.macs, o 3869 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c INIT_LIST_HEAD(&o->registry.exact_match.macs); o 3879 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3880 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *raw = &o->raw; o 3889 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (i = 0; i < o->max_cmd_len ; i++) o 3898 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (list_empty(&o->pending_cmds_head)) o 3899 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->clear_sched(o); o 3908 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num -= o->max_cmd_len; o 3912 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c WARN_ON(cnt > o->max_cmd_len); o 3923 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_mcast_refresh_registry_e1(bp, o); o 3954 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static int bnx2x_mcast_get_registry_size_exact(struct bnx2x_mcast_obj *o) o 3956 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return o->registry.exact_match.num_macs_set; o 3959 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static int bnx2x_mcast_get_registry_size_aprox(struct bnx2x_mcast_obj *o) o 3961 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return o->registry.aprox_match.num_bins_set; o 3964 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_mcast_set_registry_size_exact(struct bnx2x_mcast_obj *o, o 3967 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->registry.exact_match.num_macs_set = n; o 3970 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_mcast_set_registry_size_aprox(struct bnx2x_mcast_obj *o, o 3973 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->registry.aprox_match.num_bins_set = n; o 3980 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_mcast_obj *o = p->mcast_obj; o 3981 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 3987 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c old_reg_size = o->get_registry_size(o); o 3990 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->validate(bp, p, cmd); o 3995 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if ((!p->mcast_list_len) && (!o->check_sched(o))) o 3999 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->total_pending_num, p->mcast_list_len, o->max_cmd_len); o 4005 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c ((o->max_cmd_len > 0) && (o->total_pending_num > o->max_cmd_len))) { o 4006 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->enqueue_cmd(bp, p->mcast_obj, p, cmd); o 4022 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->config_mcast(bp, p, cmd); o 4028 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->wait_comp(bp, o); o 4037 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->revert(bp, p, old_reg_size, cmd); o 4042 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_mcast_clear_sched(struct bnx2x_mcast_obj *o) o 4045 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c clear_bit(o->sched_state, o->raw.pstate); o 4049 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_mcast_set_sched(struct bnx2x_mcast_obj *o) o 4052 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c set_bit(o->sched_state, o->raw.pstate); o 4056 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_mcast_check_sched(struct bnx2x_mcast_obj *o) o 4058 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return !!test_bit(o->sched_state, o->raw.pstate); o 4061 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_mcast_check_pending(struct bnx2x_mcast_obj *o) o 4063 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return o->raw.check_pending(&o->raw) || o->check_sched(o); o 4208 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_credit_pool_get(struct bnx2x_credit_pool_obj *o, int cnt) o 4213 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = __atomic_dec_ifmoe(&o->credit, cnt, 0); o 4219 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_credit_pool_put(struct bnx2x_credit_pool_obj *o, int cnt) o 4226 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = __atomic_add_ifless(&o->credit, cnt, o->pool_sz + 1); o 4233 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static int bnx2x_credit_pool_check(struct bnx2x_credit_pool_obj *o) o 4238 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cur_credit = atomic_read(&o->credit); o 4243 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static bool bnx2x_credit_pool_always_true(struct bnx2x_credit_pool_obj *o, o 4250 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *o, o 4261 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (!o->pool_mirror[vec]) o 4268 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (BIT_VEC64_TEST_BIT(o->pool_mirror, idx)) { o 4270 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_CLEAR_BIT(o->pool_mirror, idx); o 4271 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c *offset = o->base_pool_offset + idx; o 4280 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *o, o 4283 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (offset < o->base_pool_offset) o 4286 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c offset -= o->base_pool_offset; o 4288 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (offset >= o->pool_sz) o 4292 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c BIT_VEC64_SET_BIT(o->pool_mirror, offset); o 4298 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *o, o 4305 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_credit_pool_obj *o, o 4484 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_rss_config_obj *o = p->rss_obj; o 4485 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 4559 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c data->rss_engine_id = o->engine_id; o 4568 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c memcpy(o->ind_table, p->ind_table, T_ETH_INDIRECTION_TABLE_SIZE); o 4603 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_rss_config_obj *o = p->rss_obj; o 4604 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_raw_obj *r = &o->raw; o 4615 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->config_rss(bp, p); o 4658 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 4660 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c unsigned long *pending = &o->pending; o 4663 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->check_transition(bp, o, params); o 4670 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c DP(BNX2X_MSG_SP, "pending bit was=%lx\n", o->pending); o 4671 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c pending_bit = o->set_pending(o, params); o 4672 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c DP(BNX2X_MSG_SP, "pending bit now=%lx\n", o->pending); o 4676 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->complete_cmd(bp, o, pending_bit); o 4679 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->send_cmd(bp, params); o 4681 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_Q_STATE_MAX; o 4688 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->wait_comp(bp, o, pending_bit); o 4718 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o, o 4721 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_state_wait(bp, cmd, &o->pending); o 4734 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o, o 4737 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c unsigned long cur_pending = o->pending; o 4741 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd, o->cids[BNX2X_PRIMARY_CID_INDEX], o 4742 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->state, cur_pending, o->next_state); o 4746 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->next_tx_only >= o->max_cos) o 4751 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_tx_only, o->max_cos); o 4755 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd, o->cids[BNX2X_PRIMARY_CID_INDEX], o->next_state); o 4757 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->next_tx_only) /* print num tx-only if any exist */ o 4759 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[BNX2X_PRIMARY_CID_INDEX], o->next_tx_only); o 4761 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->state = o->next_state; o 4762 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->num_tx_only = o->next_tx_only; o 4763 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_Q_STATE_MAX; o 4770 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c clear_bit(cmd, &o->pending); o 4790 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o, o 4795 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c gen_data->client_id = o->cl_id; o 4811 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c gen_data->func_id = o->func_id; o 4825 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_q_fill_init_tx_data(struct bnx2x_queue_sp_obj *o, o 4863 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_q_fill_init_pause_data(struct bnx2x_queue_sp_obj *o, o 4877 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c static void bnx2x_q_fill_init_rx_data(struct bnx2x_queue_sp_obj *o, o 5004 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5010 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (test_bit(BNX2X_Q_TYPE_HAS_TX, &o->type) && o 5021 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (test_bit(BNX2X_Q_TYPE_HAS_RX, &o->type) && o 5032 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c for (cos = 0; cos < o->max_cos; cos++) { o 5034 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cos], cos); o 5036 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_set_ctx_validation(bp, init->cxts[cos], o->cids[cos]); o 5040 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->complete_cmd(bp, o, BNX2X_Q_CMD_INIT); o 5050 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5052 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_init_ramrod_data *)o->rdata; o 5053 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 5068 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_sp_post(bp, ramrod, o->cids[BNX2X_PRIMARY_CID_INDEX], o 5076 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5078 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_init_ramrod_data *)o->rdata; o 5079 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 5095 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_sp_post(bp, ramrod, o->cids[BNX2X_PRIMARY_CID_INDEX], o 5103 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5105 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct tx_queue_init_ramrod_data *)o->rdata; o 5106 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 5112 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cid_index >= o->max_cos) { o 5114 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cl_id, cid_index); o 5129 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cid_index], rdata->general.client_id, o 5138 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_sp_post(bp, ramrod, o->cids[cid_index], o 5218 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5220 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct client_update_ramrod_data *)o->rdata; o 5221 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 5226 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cid_index >= o->max_cos) { o 5228 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cl_id, cid_index); o 5236 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_update_data(bp, o, update_params, rdata); o 5245 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cid_index], U64_HI(data_mapping), o 5315 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5317 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct tpa_update_ramrod_data *)o->rdata; o 5318 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 5327 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_q_fill_update_tpa_data(bp, o, update_tpa_params, rdata); o 5334 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c ((o->func_id) << SPE_HDR_FUNCTION_ID_SHIFT); o 5343 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[BNX2X_PRIMARY_CID_INDEX], o 5351 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5354 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[BNX2X_PRIMARY_CID_INDEX], 0, o->cl_id, o 5361 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5364 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cid_idx >= o->max_cos) { o 5366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cl_id, cid_idx); o 5371 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cid_idx], 0, 0, NONE_CONNECTION_TYPE); o 5377 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5380 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (cid_index >= o->max_cos) { o 5382 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cl_id, cid_index); o 5387 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[cid_index], 0, 0, ETH_CONNECTION_TYPE); o 5393 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o = params->q_obj; o 5396 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->cids[BNX2X_PRIMARY_CID_INDEX], 0, 0, o 5493 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_queue_sp_obj *o, o 5496 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c enum bnx2x_q_state state = o->state, next_state = BNX2X_Q_STATE_MAX; o 5500 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c u8 next_tx_only = o->num_tx_only; o 5506 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->pending = 0; o 5507 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_Q_STATE_MAX; o 5513 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->pending) { o 5515 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->pending); o 5571 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c next_tx_only = o->num_tx_only + 1; o 5594 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c next_tx_only = o->num_tx_only - 1; o 5621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->num_tx_only == 0) o 5648 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = next_state; o 5649 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_tx_only = next_tx_only; o 5713 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o) o 5716 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->pending) o 5724 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return o->state; o 5728 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o, o 5731 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_state_wait(bp, cmd, &o->pending); o 5745 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o, o 5748 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c unsigned long cur_pending = o->pending; o 5752 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd, BP_FUNC(bp), o->state, o 5753 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cur_pending, o->next_state); o 5759 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c cmd, BP_FUNC(bp), o->next_state); o 5761 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->state = o->next_state; o 5762 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_F_STATE_MAX; o 5769 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c clear_bit(cmd, &o->pending); o 5785 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o, o 5791 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int rc = bnx2x_func_state_change_comp(bp, o, cmd); o 5811 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o, o 5814 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c enum bnx2x_func_state state = o->state, next_state = BNX2X_F_STATE_MAX; o 5821 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->pending = 0; o 5822 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_F_STATE_MAX; o 5828 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c if (o->pending) o 5853 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5857 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5864 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5868 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5877 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5881 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (!test_bit(BNX2X_F_CMD_STOP, &o->pending))) o 5896 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = next_state; o 5987 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 5988 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv = o->drv; o 6044 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->complete_cmd(bp, o, BNX2X_F_CMD_HW_INIT); o 6107 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6108 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv = o->drv; o 6130 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->complete_cmd(bp, o, BNX2X_F_CMD_HW_RESET); o 6138 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6140 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct function_start_data *)o->rdata; o 6141 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 6200 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6202 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct function_update_data *)o->rdata; o 6203 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 6279 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6281 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct function_update_data *)o->afex_rdata; o 6282 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->afex_rdata_mapping; o 6318 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6320 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct afex_vif_list_ramrod_data *)o->afex_rdata; o 6369 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6371 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct flow_control_configuration *)o->rdata; o 6372 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 6404 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6406 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c (struct set_timesync_ramrod_data *)o->rdata; o 6407 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c dma_addr_t data_mapping = o->rdata_mapping; o 6504 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c struct bnx2x_func_sp_obj *o = params->f_obj; o 6507 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c unsigned long *pending = &o->pending; o 6509 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_lock(&o->one_pending_mutex); o 6512 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->check_transition(bp, o, params); o 6516 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_unlock(&o->one_pending_mutex); o 6518 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_lock(&o->one_pending_mutex); o 6519 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->check_transition(bp, o, params); o 6522 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_unlock(&o->one_pending_mutex); o 6527 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_unlock(&o->one_pending_mutex); o 6536 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_state_change_comp(bp, o, cmd); o 6537 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_unlock(&o->one_pending_mutex); o 6540 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->send_cmd(bp, params); o 6542 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c mutex_unlock(&o->one_pending_mutex); o 6545 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c o->next_state = BNX2X_F_STATE_MAX; o 6552 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = o->wait_comp(bp, o, cmd); o 94 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_raw_obj *o); o 96 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*check_pending)(struct bnx2x_raw_obj *o); o 97 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void (*clear_pending)(struct bnx2x_raw_obj *o); o 98 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void (*set_pending)(struct bnx2x_raw_obj *o); o 171 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h union bnx2x_qable_obj *o, o 175 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h union bnx2x_qable_obj *o, o 182 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h union bnx2x_qable_obj *o, o 185 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h union bnx2x_qable_obj *o, o 329 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o, int n, u8 *base, o 339 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o, o 349 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o, o 366 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*get_credit)(struct bnx2x_vlan_mac_obj *o); o 367 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*put_credit)(struct bnx2x_vlan_mac_obj *o); o 368 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*get_cam_offset)(struct bnx2x_vlan_mac_obj *o, int *offset); o 369 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*put_cam_offset)(struct bnx2x_vlan_mac_obj *o, int offset); o 375 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o, o 397 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o, o 437 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*complete)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o, o 446 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*wait)(struct bnx2x *bp, struct bnx2x_vlan_mac_obj *o); o 608 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*hdl_restore)(struct bnx2x *bp, struct bnx2x_mcast_obj *o, o 611 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*enqueue_cmd)(struct bnx2x *bp, struct bnx2x_mcast_obj *o, o 616 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_mcast_obj *o, int idx, o 623 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*check_pending)(struct bnx2x_mcast_obj *o); o 628 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void (*set_sched)(struct bnx2x_mcast_obj *o); o 629 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void (*clear_sched)(struct bnx2x_mcast_obj *o); o 630 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*check_sched)(struct bnx2x_mcast_obj *o); o 633 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*wait_comp)(struct bnx2x *bp, struct bnx2x_mcast_obj *o); o 652 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*get_registry_size)(struct bnx2x_mcast_obj *o); o 653 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h void (*set_registry_size)(struct bnx2x_mcast_obj *o, int n); o 682 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*get_entry)(struct bnx2x_credit_pool_obj *o, int *entry); o 690 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*put_entry)(struct bnx2x_credit_pool_obj *o, int entry); o 698 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*get)(struct bnx2x_credit_pool_obj *o, int cnt); o 706 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h bool (*put)(struct bnx2x_credit_pool_obj *o, int cnt); o 711 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*check)(struct bnx2x_credit_pool_obj *o); o 1092 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*set_pending)(struct bnx2x_queue_sp_obj *o, o 1099 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_queue_sp_obj *o, o 1106 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_queue_sp_obj *o, o 1110 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_queue_sp_obj *o, o 1370 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_func_sp_obj *o, o 1377 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_func_sp_obj *o, o 1380 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h int (*wait_comp)(struct bnx2x *bp, struct bnx2x_func_sp_obj *o, o 1400 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_func_sp_obj *o); o 1437 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o); o 1439 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o); o 1441 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_vlan_mac_obj *o); o 1452 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_rx_mode_obj *o); o 6339 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c u64 *s, *o; o 6343 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (i = 0, s = (u64 *)stats, o = (u64 *)offset; o 6345 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c i++, s++, o++) o 6346 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c *s -= *o; o 253 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c int i, o = 0; o 256 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c data[o++] = enetc_rd64(hw, enetc_si_counters[i].reg); o 259 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c data[o++] = priv->tx_ring[i]->stats.packets; o 262 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c data[o++] = priv->rx_ring[i]->stats.packets; o 263 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c data[o++] = priv->rx_ring[i]->stats.rx_alloc_errs; o 270 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c data[o++] = enetc_port_rd(hw, enetc_port_counters[i].reg); o 71 drivers/net/ethernet/ibm/emac/rgmii.h # define rgmii_get_mdio(o,i) do { } while (0) o 72 drivers/net/ethernet/ibm/emac/rgmii.h # define rgmii_put_mdio(o,i) do { } while (0) o 9484 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (nexthdr[i].o != cls->knode.sel->offoff || o 80 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h unsigned int o; o 92 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h { .o = 0, .s = 6, .m = 0xf, o 94 drivers/net/ethernet/intel/ixgbe/ixgbe_model.h { .o = 0, .s = 6, .m = 0xf, o 180 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_WRITE_REG_ARRAY(h, r, o, v) ixgbe_write_reg_array(h, r, o, v) o 188 drivers/net/ethernet/intel/ixgbevf/vf.h #define IXGBE_READ_REG_ARRAY(h, r, o) ixgbe_read_reg_array(h, r, o) o 687 drivers/net/ethernet/mellanox/mlx4/alloc.c int o; o 690 drivers/net/ethernet/mellanox/mlx4/alloc.c for (o = order; o <= 1; ++o) { o 691 drivers/net/ethernet/mellanox/mlx4/alloc.c i = find_first_bit(pgdir->bits[o], MLX4_DB_PER_PAGE >> o); o 692 drivers/net/ethernet/mellanox/mlx4/alloc.c if (i < MLX4_DB_PER_PAGE >> o) o 699 drivers/net/ethernet/mellanox/mlx4/alloc.c clear_bit(i, pgdir->bits[o]); o 701 drivers/net/ethernet/mellanox/mlx4/alloc.c i <<= o; o 703 drivers/net/ethernet/mellanox/mlx4/alloc.c if (o > order) o 748 drivers/net/ethernet/mellanox/mlx4/alloc.c int o; o 753 drivers/net/ethernet/mellanox/mlx4/alloc.c o = db->order; o 758 drivers/net/ethernet/mellanox/mlx4/alloc.c ++o; o 760 drivers/net/ethernet/mellanox/mlx4/alloc.c i >>= o; o 761 drivers/net/ethernet/mellanox/mlx4/alloc.c set_bit(i, db->u.pgdir->bits[o]); o 48 drivers/net/ethernet/mellanox/mlx4/mr.c int o; o 54 drivers/net/ethernet/mellanox/mlx4/mr.c for (o = order; o <= buddy->max_order; ++o) o 55 drivers/net/ethernet/mellanox/mlx4/mr.c if (buddy->num_free[o]) { o 56 drivers/net/ethernet/mellanox/mlx4/mr.c m = 1 << (buddy->max_order - o); o 57 drivers/net/ethernet/mellanox/mlx4/mr.c seg = find_first_bit(buddy->bits[o], m); o 66 drivers/net/ethernet/mellanox/mlx4/mr.c clear_bit(seg, buddy->bits[o]); o 67 drivers/net/ethernet/mellanox/mlx4/mr.c --buddy->num_free[o]; o 69 drivers/net/ethernet/mellanox/mlx4/mr.c while (o > order) { o 70 drivers/net/ethernet/mellanox/mlx4/mr.c --o; o 72 drivers/net/ethernet/mellanox/mlx4/mr.c set_bit(seg ^ 1, buddy->bits[o]); o 73 drivers/net/ethernet/mellanox/mlx4/mr.c ++buddy->num_free[o]; o 19 drivers/net/ethernet/mscc/ocelot_board.c #define IFH_EXTRACT_BITFIELD64(x, o, w) (((x) >> (o)) & GENMASK_ULL((w) - 1, 0)) o 389 drivers/net/ethernet/xilinx/ll_temac.h #define temac_ior(lp, o) ((lp)->temac_ior(lp, o)) o 390 drivers/net/ethernet/xilinx/ll_temac.h #define temac_iow(lp, o, v) ((lp)->temac_iow(lp, o, v)) o 44 drivers/net/fddi/skfp/h/mbuf.h #define smtodoff(x,t,o) ((t)((x)->sm_data + (o))) o 898 drivers/net/fddi/skfp/h/skfbi.h #define RW_OP(o) ((o)<<4) /* read/write operation */ o 193 drivers/net/wireless/ath/ath5k/eeprom.c u32 o = *offset; o 197 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 202 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 207 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 212 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 218 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 240 drivers/net/wireless/ath/ath5k/eeprom.c *offset = o; o 253 drivers/net/wireless/ath/ath5k/eeprom.c u32 o = *offset; o 257 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 265 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 280 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 287 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 291 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 303 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 313 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 331 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 358 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 362 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 374 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 384 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 396 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 400 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 409 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 414 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 431 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 436 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 447 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 452 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 460 drivers/net/wireless/ath/ath5k/eeprom.c *offset = o; o 514 drivers/net/wireless/ath/ath5k/eeprom.c int o = *offset; o 521 drivers/net/wireless/ath/ath5k/eeprom.c AR5K_EEPROM_READ(o++, val); o 541 drivers/net/wireless/ath/ath5k/eeprom.c *offset = o; o 3041 drivers/net/wireless/broadcom/b43/phy_n.c int o = core ? 0x85 : 0; o 3043 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_IPA2G_CASCONV_CORE0, 0x13); o 3044 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_TXMIX2G_TUNE_BOOST_PU_CORE0, 0x21); o 3045 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_IPA2G_BIAS_FILTER_CORE0, 0xff); o 3046 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_PAD2G_IDACS_CORE0, 0x88); o 3047 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_PAD2G_TUNE_PUS_CORE0, 0x23); o 3048 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_IPA2G_IMAIN_CORE0, 0x16); o 3049 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_PAD_BIAS_FILTER_BWS_CORE0, 0x3e); o 3050 drivers/net/wireless/broadcom/b43/phy_n.c b43_radio_write(dev, o + R2057_BACKUP1_CORE0, 0x10); o 1048 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_int.h void wlc_phy_table_read_nphy(struct brcms_phy *pi, u32, u32 l, u32 o, u32 w, o 160 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.h void wlapi_bmac_write_template_ram(struct phy_shim_info *physhim, int o, o 259 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define bcma_wflush16(c, o, v) \ o 260 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h ({ bcma_write16(c, o, v); (void)bcma_read16(c, o); }) o 262 drivers/net/wireless/broadcom/brcm80211/brcmsmac/types.h #define bcma_wflush16(c, o, v) bcma_write16(c, o, v) o 131 drivers/net/wireless/mediatek/mt7601u/trace.h __field(int, o) __field(u16, v) o 135 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->o = offset; o 138 drivers/net/wireless/mediatek/mt7601u/trace.h TP_printk(DEV_PR_FMT "%04x=%04x", DEV_PR_ARG, __entry->o, __entry->v) o 622 drivers/nvme/host/fabrics.c char *options, *o, *p; o 638 drivers/nvme/host/fabrics.c options = o = kstrdup(buf, GFP_KERNEL); o 644 drivers/nvme/host/fabrics.c while ((p = strsep(&o, ",\n")) != NULL) { o 51 drivers/nvme/target/fcloop.c char *options, *o, *p; o 55 drivers/nvme/target/fcloop.c options = o = kstrdup(buf, GFP_KERNEL); o 59 drivers/nvme/target/fcloop.c while ((p = strsep(&o, ",\n")) != NULL) { o 126 drivers/nvme/target/fcloop.c char *options, *o, *p; o 133 drivers/nvme/target/fcloop.c options = o = kstrdup(buf, GFP_KERNEL); o 137 drivers/nvme/target/fcloop.c while ((p = strsep(&o, ",\n")) != NULL) { o 378 drivers/parisc/sba_iommu.c unsigned long o = 1 << get_order(bits_wanted << PAGE_SHIFT); o 379 drivers/parisc/sba_iommu.c uint bitshiftcnt = ALIGN(ioc->res_bitshift, o); o 388 drivers/parisc/sba_iommu.c DBG_RES("%s() o %ld %p", __func__, o, res_ptr); o 402 drivers/parisc/sba_iommu.c mask >>= o; o 403 drivers/parisc/sba_iommu.c bitshiftcnt += o; o 5587 drivers/pci/pci.c u32 stat, v, o; o 5608 drivers/pci/pci.c o = (cmd & PCI_X_CMD_MAX_READ) >> 2; o 5609 drivers/pci/pci.c if (o != v) { o 5610 drivers/pci/pci.c if (v > o && (dev->bus->bus_flags & PCI_BUS_FLAGS_NO_MMRBC)) o 88 drivers/phy/qualcomm/phy-qcom-qmp.c #define QMP_PHY_INIT_CFG(o, v) \ o 90 drivers/phy/qualcomm/phy-qcom-qmp.c .offset = o, \ o 94 drivers/phy/qualcomm/phy-qcom-qmp.c #define QMP_PHY_INIT_CFG_L(o, v) \ o 96 drivers/phy/qualcomm/phy-qcom-qmp.c .offset = o, \ o 98 drivers/phy/qualcomm/phy-qcom-qusb2.c #define QUSB2_PHY_INIT_CFG(o, v) \ o 100 drivers/phy/qualcomm/phy-qcom-qusb2.c .offset = o, \ o 104 drivers/phy/qualcomm/phy-qcom-qusb2.c #define QUSB2_PHY_INIT_CFG_L(o, v) \ o 106 drivers/phy/qualcomm/phy-qcom-qusb2.c .offset = o, \ o 150 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c #define CYGNUS_PIN_DESC(p, n, i, o, s) \ o 156 drivers/pinctrl/bcm/pinctrl-cygnus-mux.c .offset = o, \ o 170 drivers/pinctrl/bcm/pinctrl-ns2-mux.c #define NS2_PIN_DESC(p, n, b, o, s, i, pu, d) \ o 176 drivers/pinctrl/bcm/pinctrl-ns2-mux.c .offset = o, \ o 118 drivers/pinctrl/freescale/pinctrl-imx.h #define IMX_CFG_PARAMS_DECODE(p, m, o) \ o 119 drivers/pinctrl/freescale/pinctrl-imx.h { .param = p, .mask = m, .shift = o, .invert = false, } o 121 drivers/pinctrl/freescale/pinctrl-imx.h #define IMX_CFG_PARAMS_DECODE_INVERT(p, m, o) \ o 122 drivers/pinctrl/freescale/pinctrl-imx.h { .param = p, .mask = m, .shift = o, .invert = true, } o 35 drivers/pinctrl/intel/pinctrl-cannonlake.c #define CNL_COMMUNITY(b, s, e, o, g) \ o 40 drivers/pinctrl/intel/pinctrl-cannonlake.c .hostown_offset = (o), \ o 190 drivers/pinctrl/intel/pinctrl-cherryview.c #define PIN_GROUP_WITH_OVERRIDE(n, p, m, i, o) \ o 197 drivers/pinctrl/intel/pinctrl-cherryview.c .overrides = (o), \ o 198 drivers/pinctrl/intel/pinctrl-cherryview.c .noverrides = ARRAY_SIZE((o)), \ o 24 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h #define BANK_PMX(n, f, l, r, o) \ o 30 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h .offset = o, \ o 1027 drivers/scsi/be2iscsi/be_cmds.h u8 o; /* dword 2 */ o 1318 drivers/scsi/be2iscsi/be_main.c o, psol)) o 239 drivers/scsi/fnic/fnic_isr.c unsigned int o = ARRAY_SIZE(fnic->wq_copy); o 252 drivers/scsi/fnic/fnic_isr.c fnic->wq_copy_count >= o && o 253 drivers/scsi/fnic/fnic_isr.c fnic->cq_count >= n + m + o) { o 254 drivers/scsi/fnic/fnic_isr.c int vecs = n + m + o + 1; o 260 drivers/scsi/fnic/fnic_isr.c fnic->wq_copy_count = o; o 261 drivers/scsi/fnic/fnic_isr.c fnic->wq_count = m + o; o 262 drivers/scsi/fnic/fnic_isr.c fnic->cq_count = n + m + o; o 353 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h #define h_vioctl(u, o, a, u1, u2, u3, u4) \ o 354 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.h plpar_hcall_norets(H_VIOCTL, u, o, a, u1, u2) o 115 drivers/scsi/mesh.h #define SYNC_PARAMS(o, p) (((o) << 4) | (p)) o 327 drivers/scsi/ncr53c8xx.h #define ncr_offb(o) (((o)&~3)+((~((o)&3))&3)) o 328 drivers/scsi/ncr53c8xx.h #define ncr_offw(o) (((o)&~3)+((~((o)&3))&2)) o 332 drivers/scsi/ncr53c8xx.h #define ncr_offb(o) (o) o 333 drivers/scsi/ncr53c8xx.h #define ncr_offw(o) (o) o 379 drivers/scsi/ncr53c8xx.h #define INB_OFF(o) readb_raw((char __iomem *)np->reg + ncr_offb(o)) o 380 drivers/scsi/ncr53c8xx.h #define OUTB_OFF(o, val) writeb_raw((val), (char __iomem *)np->reg + ncr_offb(o)) o 384 drivers/scsi/ncr53c8xx.h #define INW_OFF(o) readw_l2b((char __iomem *)np->reg + ncr_offw(o)) o 385 drivers/scsi/ncr53c8xx.h #define INL_OFF(o) readl_l2b((char __iomem *)np->reg + (o)) o 387 drivers/scsi/ncr53c8xx.h #define OUTW_OFF(o, val) writew_b2l((val), (char __iomem *)np->reg + ncr_offw(o)) o 388 drivers/scsi/ncr53c8xx.h #define OUTL_OFF(o, val) writel_b2l((val), (char __iomem *)np->reg + (o)) o 392 drivers/scsi/ncr53c8xx.h #define INW_OFF(o) readw_b2l((char __iomem *)np->reg + ncr_offw(o)) o 393 drivers/scsi/ncr53c8xx.h #define INL_OFF(o) readl_b2l((char __iomem *)np->reg + (o)) o 395 drivers/scsi/ncr53c8xx.h #define OUTW_OFF(o, val) writew_l2b((val), (char __iomem *)np->reg + ncr_offw(o)) o 396 drivers/scsi/ncr53c8xx.h #define OUTL_OFF(o, val) writel_l2b((val), (char __iomem *)np->reg + (o)) o 402 drivers/scsi/ncr53c8xx.h #define INW_OFF(o) (readb((char __iomem *)np->reg + ncr_offw(o)) << 8 | readb((char __iomem *)np->reg + ncr_offw(o) + 1)) o 404 drivers/scsi/ncr53c8xx.h #define INW_OFF(o) readw_raw((char __iomem *)np->reg + ncr_offw(o)) o 406 drivers/scsi/ncr53c8xx.h #define INL_OFF(o) readl_raw((char __iomem *)np->reg + (o)) o 410 drivers/scsi/ncr53c8xx.h #define OUTW_OFF(o, val) do { writeb((char)((val) >> 8), (char __iomem *)np->reg + ncr_offw(o)); writeb((char)(val), (char __iomem *)np->reg + ncr_offw(o) + 1); } while (0) o 412 drivers/scsi/ncr53c8xx.h #define OUTW_OFF(o, val) writew_raw((val), (char __iomem *)np->reg + ncr_offw(o)) o 414 drivers/scsi/ncr53c8xx.h #define OUTL_OFF(o, val) writel_raw((val), (char __iomem *)np->reg + (o)) o 179 drivers/scsi/qla4xxx/ql4_def.h #define SET_BITVAL(o, n, v) { \ o 180 drivers/scsi/qla4xxx/ql4_def.h if (o) \ o 186 drivers/scsi/qla4xxx/ql4_def.h #define OP_STATE(o, f, p) { \ o 187 drivers/scsi/qla4xxx/ql4_def.h p = (o & f) ? "enable" : "disable"; \ o 1337 drivers/scsi/sym53c8xx_2/sym_hipd.c int o, i; o 1341 drivers/scsi/sym53c8xx_2/sym_hipd.c o = offsetof(struct sym_reg, nc_scrx[0]); o 1343 drivers/scsi/sym53c8xx_2/sym_hipd.c OUTL_OFF(np, o, np->dmap_bah[i]); o 1344 drivers/scsi/sym53c8xx_2/sym_hipd.c o += 4; o 184 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INB_OFF(np, o) ioread8(np->s.ioaddr + (o)) o 185 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INW_OFF(np, o) ioread16(np->s.ioaddr + (o)) o 186 drivers/scsi/sym53c8xx_2/sym_hipd.h #define INL_OFF(np, o) ioread32(np->s.ioaddr + (o)) o 188 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTB_OFF(np, o, val) iowrite8((val), np->s.ioaddr + (o)) o 189 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTW_OFF(np, o, val) iowrite16((val), np->s.ioaddr + (o)) o 190 drivers/scsi/sym53c8xx_2/sym_hipd.h #define OUTL_OFF(np, o, val) iowrite32((val), np->s.ioaddr + (o)) o 554 drivers/ssb/pci.c u16 o = pwr_info_offset[i]; o 556 drivers/ssb/pci.c SPEX(core_pwr_info[i].itssi_2g, o + SSB_SPROM4_2G_MAXP_ITSSI, o 558 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_2g, o + SSB_SPROM4_2G_MAXP_ITSSI, o 561 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[0], o + SSB_SPROM4_2G_PA_0, ~0, 0); o 562 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[1], o + SSB_SPROM4_2G_PA_1, ~0, 0); o 563 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[2], o + SSB_SPROM4_2G_PA_2, ~0, 0); o 564 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[3], o + SSB_SPROM4_2G_PA_3, ~0, 0); o 566 drivers/ssb/pci.c SPEX(core_pwr_info[i].itssi_5g, o + SSB_SPROM4_5G_MAXP_ITSSI, o 568 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5g, o + SSB_SPROM4_5G_MAXP_ITSSI, o 570 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5gh, o + SSB_SPROM4_5GHL_MAXP, o 572 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5gl, o + SSB_SPROM4_5GHL_MAXP, o 575 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[0], o + SSB_SPROM4_5GL_PA_0, ~0, 0); o 576 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[1], o + SSB_SPROM4_5GL_PA_1, ~0, 0); o 577 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[2], o + SSB_SPROM4_5GL_PA_2, ~0, 0); o 578 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[3], o + SSB_SPROM4_5GL_PA_3, ~0, 0); o 579 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[0], o + SSB_SPROM4_5G_PA_0, ~0, 0); o 580 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[1], o + SSB_SPROM4_5G_PA_1, ~0, 0); o 581 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[2], o + SSB_SPROM4_5G_PA_2, ~0, 0); o 582 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[3], o + SSB_SPROM4_5G_PA_3, ~0, 0); o 583 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[0], o + SSB_SPROM4_5GH_PA_0, ~0, 0); o 584 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[1], o + SSB_SPROM4_5GH_PA_1, ~0, 0); o 585 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[2], o + SSB_SPROM4_5GH_PA_2, ~0, 0); o 586 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[3], o + SSB_SPROM4_5GH_PA_3, ~0, 0); o 597 drivers/ssb/pci.c u16 o; o 696 drivers/ssb/pci.c o = pwr_info_offset[i]; o 697 drivers/ssb/pci.c SPEX(core_pwr_info[i].itssi_2g, o + SSB_SROM8_2G_MAXP_ITSSI, o 699 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_2g, o + SSB_SROM8_2G_MAXP_ITSSI, o 702 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[0], o + SSB_SROM8_2G_PA_0, ~0, 0); o 703 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[1], o + SSB_SROM8_2G_PA_1, ~0, 0); o 704 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_2g[2], o + SSB_SROM8_2G_PA_2, ~0, 0); o 706 drivers/ssb/pci.c SPEX(core_pwr_info[i].itssi_5g, o + SSB_SROM8_5G_MAXP_ITSSI, o 708 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5g, o + SSB_SROM8_5G_MAXP_ITSSI, o 710 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5gh, o + SSB_SPROM8_5GHL_MAXP, o 712 drivers/ssb/pci.c SPEX(core_pwr_info[i].maxpwr_5gl, o + SSB_SPROM8_5GHL_MAXP, o 715 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[0], o + SSB_SROM8_5GL_PA_0, ~0, 0); o 716 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[1], o + SSB_SROM8_5GL_PA_1, ~0, 0); o 717 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gl[2], o + SSB_SROM8_5GL_PA_2, ~0, 0); o 718 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[0], o + SSB_SROM8_5G_PA_0, ~0, 0); o 719 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[1], o + SSB_SROM8_5G_PA_1, ~0, 0); o 720 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5g[2], o + SSB_SROM8_5G_PA_2, ~0, 0); o 721 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[0], o + SSB_SROM8_5GH_PA_0, ~0, 0); o 722 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[1], o + SSB_SROM8_5GH_PA_1, ~0, 0); o 723 drivers/ssb/pci.c SPEX(core_pwr_info[i].pa_5gh[2], o + SSB_SROM8_5GH_PA_2, ~0, 0); o 598 drivers/staging/comedi/drivers/amplc_pci230.c unsigned int o; o 602 drivers/staging/comedi/drivers/amplc_pci230.c for (o = 0; o < NUM_OWNERS; o++) { o 603 drivers/staging/comedi/drivers/amplc_pci230.c if (o == owner) o 605 drivers/staging/comedi/drivers/amplc_pci230.c if (devpriv->res_owned[o] & res_mask) { o 892 drivers/staging/greybus/tools/loopback_test.c int o, ret; o 898 drivers/staging/greybus/tools/loopback_test.c while ((o = getopt(argc, argv, o 900 drivers/staging/greybus/tools/loopback_test.c switch (o) { o 3947 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c struct p2p_oper_class_map *o = &op_class[op]; o 3950 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) { o 3954 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c if (!padapter->registrypriv.ht_enable && o->inc == 8) o 3958 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c ((o->bw == BW40MINUS) || (o->bw == BW40PLUS))) o 3964 drivers/staging/rtl8188eu/core/rtw_mlme_ext.c reg->reg_class = o->op_class; o 366 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c struct p2p_oper_class_map *o = &op_class[op]; o 369 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) { o 373 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc)) o 377 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c ((BW40MINUS == o->bw) || (BW40PLUS == o->bw))) o 383 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c reg->reg_class = o->op_class; o 120 drivers/staging/wlan-ng/hfa384x.h #define HFA384x_ADDR_AUX_MKFLAT(p, o) \ o 122 drivers/staging/wlan-ng/hfa384x.h ((u32)(((u16)(o)) & HFA384x_ADDR_AUX_OFF_MASK))) o 84 drivers/tee/optee/core.c size_t o = p->u.memref.shm_offs + o 87 drivers/tee/optee/core.c rc = tee_shm_get_pa(shm, o, NULL); o 574 drivers/usb/gadget/function/uvc_configfs.c **uvcg_get_ctl_class_arr(struct config_item *i, struct f_uvc_opts *o) o 581 drivers/usb/gadget/function/uvc_configfs.c return o->uvc_fs_control_cls; o 584 drivers/usb/gadget/function/uvc_configfs.c return o->uvc_ss_control_cls; o 1939 drivers/usb/gadget/function/uvc_configfs.c ***__uvcg_get_stream_class_arr(struct config_item *i, struct f_uvc_opts *o) o 1946 drivers/usb/gadget/function/uvc_configfs.c return &o->uvc_fs_streaming_cls; o 1949 drivers/usb/gadget/function/uvc_configfs.c return &o->uvc_hs_streaming_cls; o 1952 drivers/usb/gadget/function/uvc_configfs.c return &o->uvc_ss_streaming_cls; o 585 drivers/usb/host/ohci.h #define ohci_readl(o,r) _ohci_readl(o,r) o 586 drivers/usb/host/ohci.h #define ohci_writel(o,v,r) _ohci_writel(o,v,r) o 3042 drivers/usb/host/u132-hcd.c int o = ARRAY_SIZE(udev->endp_number_out); o 3050 drivers/usb/host/u132-hcd.c while (o-- > 0) o 3051 drivers/usb/host/u132-hcd.c udev->endp_number_out[o] = 0; o 1402 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREGOR(r, i, o) sisusb_setidxregor(sisusb, r, i, o) o 1404 drivers/usb/misc/sisusbvga/sisusb.c #define SETIREGANDOR(r, i, a, o) sisusb_setidxregandor(sisusb, r, i, a, o) o 766 drivers/usb/misc/sisusbvga/sisusb_init.c unsigned short data, data2, time, i, j, k, m, n, o; o 822 drivers/usb/misc/sisusbvga/sisusb_init.c for (o = 0; o < 5; o++) { o 829 drivers/usb/misc/sisusbvga/sisusb_init.c for (o = 0; o < 3; o++) { o 2275 drivers/video/fbdev/core/fbcon.c struct fbcon_ops *o = registered_fb[i]->fbcon_par; o 2277 drivers/video/fbdev/core/fbcon.c o->currcon = vc->vc_num; o 2876 drivers/video/fbdev/sis/init.c unsigned short data, data2, time, i, j, k, m, n, o; o 2930 drivers/video/fbdev/sis/init.c for(o = 0; o < 5; o++) { o 2935 drivers/video/fbdev/sis/init.c for(o = 0; o < 3; o++) { o 123 fs/affs/affs.h #define affs_clear_opt(o, opt) (o &= ~AFFS_MOUNT_##opt) o 124 fs/affs/affs.h #define affs_set_opt(o, opt) (o |= AFFS_MOUNT_##opt) o 125 fs/affs/affs.h #define affs_test_opt(o, opt) ((o) & AFFS_MOUNT_##opt) o 141 fs/afs/rxrpc.c int o; o 156 fs/afs/rxrpc.c o = atomic_inc_return(&net->nr_outstanding_calls); o 157 fs/afs/rxrpc.c trace_afs_call(call, afs_call_trace_alloc, 1, o, o 169 fs/afs/rxrpc.c int o = atomic_read(&net->nr_outstanding_calls); o 171 fs/afs/rxrpc.c trace_afs_call(call, afs_call_trace_put, n, o, o 191 fs/afs/rxrpc.c trace_afs_call(call, afs_call_trace_free, 0, o, o 195 fs/afs/rxrpc.c o = atomic_dec_return(&net->nr_outstanding_calls); o 196 fs/afs/rxrpc.c if (o == 0) o 509 fs/befs/linuxvfs.c int i, o; o 530 fs/befs/linuxvfs.c for (i = o = 0; i < in_len; i += utflen, o += unilen) { o 540 fs/befs/linuxvfs.c unilen = nls->uni2char(uni, &result[o], in_len - o); o 544 fs/befs/linuxvfs.c result[o] = '\0'; o 545 fs/befs/linuxvfs.c *out_len = o; o 549 fs/befs/linuxvfs.c return o; o 586 fs/befs/linuxvfs.c int i, o; o 611 fs/befs/linuxvfs.c for (i = o = 0; i < in_len; i += unilen, o += utflen) { o 619 fs/befs/linuxvfs.c utflen = utf32_to_utf8(uni, &result[o], 3); o 624 fs/befs/linuxvfs.c result[o] = '\0'; o 625 fs/befs/linuxvfs.c *out_len = o; o 1193 fs/btrfs/ctree.h #define btrfs_clear_opt(o, opt) ((o) &= ~BTRFS_MOUNT_##opt) o 1194 fs/btrfs/ctree.h #define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt) o 1195 fs/btrfs/ctree.h #define btrfs_raw_test_opt(o, opt) ((o) & BTRFS_MOUNT_##opt) o 440 fs/ceph/snap.c static bool has_new_snaps(struct ceph_snap_context *o, o 446 fs/ceph/snap.c return n->snaps[0] > o->seq; o 108 fs/ceph/strings.c const char *ceph_lease_op_name(int o) o 110 fs/ceph/strings.c switch (o) { o 119 fs/ceph/strings.c const char *ceph_snap_op_name(int o) o 121 fs/ceph/strings.c switch (o) { o 251 fs/compat_ioctl.c unsigned int cmd, struct compat_sg_req_info __user *o) o 263 fs/compat_ioctl.c if (copy_in_user(o + i, r + i, offsetof(sg_req_info_t, usr_ptr)) || o 266 fs/compat_ioctl.c put_user((u32)(unsigned long)(ptr), &o[i].usr_ptr) || o 267 fs/compat_ioctl.c put_user(d, &o[i].duration)) o 81 fs/erofs/tagptr.h typeof(_o) o = (_o); \ o 83 fs/erofs/tagptr.h (void)(&o == &n); \ o 84 fs/erofs/tagptr.h (void)(&o == ptptr); \ o 85 fs/erofs/tagptr.h tagptr_init(o, cmpxchg(&ptptr->v, o.v, n.v)); }) o 45 fs/erofs/utils.c int o; o 48 fs/erofs/utils.c o = erofs_wait_on_workgroup_freezed(grp); o 49 fs/erofs/utils.c if (o <= 0) o 52 fs/erofs/utils.c if (atomic_cmpxchg(&grp->refcount, o, o + 1) != o) o 56 fs/erofs/utils.c if (o == 1) o 121 fs/erofs/zdata.h z_erofs_onlinepage_t *o; o 132 fs/erofs/zdata.h return atomic_read(u.o) >> Z_EROFS_ONLINEPAGE_INDEX_SHIFT; o 138 fs/erofs/zdata.h z_erofs_onlinepage_t o; o 141 fs/erofs/zdata.h } u = { .o = ATOMIC_INIT(1) }; o 151 fs/erofs/zdata.h unsigned long *p, o, v, id; o 154 fs/erofs/zdata.h o = READ_ONCE(*p); o 156 fs/erofs/zdata.h id = o >> Z_EROFS_ONLINEPAGE_INDEX_SHIFT; o 165 fs/erofs/zdata.h ((o & Z_EROFS_ONLINEPAGE_COUNT_MASK) + (unsigned int)down); o 166 fs/erofs/zdata.h if (cmpxchg(p, o, v) != o) o 178 fs/erofs/zdata.h v = atomic_dec_return(u.o); o 185 fs/erofs/zdata.h erofs_dbg("%s, page %p value %x", __func__, page, atomic_read(u.o)); o 396 fs/ext2/ext2.h #define clear_opt(o, opt) o &= ~EXT2_MOUNT_##opt o 397 fs/ext2/ext2.h #define set_opt(o, opt) o |= EXT2_MOUNT_##opt o 597 fs/ext2/xattr.c size_t o = le16_to_cpu(last->e_value_offs); o 598 fs/ext2/xattr.c if (o < offs) o 600 fs/ext2/xattr.c cpu_to_le16(o + size); o 1712 fs/ext4/xattr.c size_t o = le16_to_cpu(last->e_value_offs); o 1715 fs/ext4/xattr.c last->e_value_size && o < offs) o 1716 fs/ext4/xattr.c last->e_value_offs = cpu_to_le16(o + old_size); o 102 fs/fuse/dir.c void fuse_change_entry_timeout(struct dentry *entry, struct fuse_entry_out *o) o 105 fs/fuse/dir.c time_to_jiffies(o->entry_valid, o->entry_valid_nsec)); o 108 fs/fuse/dir.c static u64 attr_timeout(struct fuse_attr_out *o) o 110 fs/fuse/dir.c return time_to_jiffies(o->attr_valid, o->attr_valid_nsec); o 113 fs/fuse/dir.c u64 entry_attr_timeout(struct fuse_entry_out *o) o 115 fs/fuse/dir.c return time_to_jiffies(o->attr_valid, o->attr_valid_nsec); o 940 fs/fuse/fuse_i.h u64 entry_attr_timeout(struct fuse_entry_out *o); o 941 fs/fuse/fuse_i.h void fuse_change_entry_timeout(struct dentry *entry, struct fuse_entry_out *o); o 152 fs/fuse/readdir.c struct fuse_entry_out *o = &direntplus->entry_out; o 163 fs/fuse/readdir.c if (!o->nodeid) { o 185 fs/fuse/readdir.c if (invalid_nodeid(o->nodeid)) o 187 fs/fuse/readdir.c if (fuse_invalid_attr(&o->attr)) o 204 fs/fuse/readdir.c get_node_id(inode) != o->nodeid || o 205 fs/fuse/readdir.c ((o->attr.mode ^ inode->i_mode) & S_IFMT)) { o 221 fs/fuse/readdir.c fuse_change_attributes(inode, &o->attr, o 222 fs/fuse/readdir.c entry_attr_timeout(o), o 229 fs/fuse/readdir.c inode = fuse_iget(dir->i_sb, o->nodeid, o->generation, o 230 fs/fuse/readdir.c &o->attr, entry_attr_timeout(o), o 246 fs/fuse/readdir.c fuse_change_entry_timeout(dentry, o); o 162 fs/gfs2/dir.c unsigned int o; o 184 fs/gfs2/dir.c o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); o 191 fs/gfs2/dir.c if (amount > sdp->sd_sb.sb_bsize - o) o 192 fs/gfs2/dir.c amount = sdp->sd_sb.sb_bsize - o; o 214 fs/gfs2/dir.c memcpy(bh->b_data + o, buf, amount); o 223 fs/gfs2/dir.c o = sizeof(struct gfs2_meta_header); o 276 fs/gfs2/dir.c unsigned int o; o 287 fs/gfs2/dir.c o = do_div(lblock, sdp->sd_jbsize) + sizeof(struct gfs2_meta_header); o 295 fs/gfs2/dir.c if (amount > sdp->sd_sb.sb_bsize - o) o 296 fs/gfs2/dir.c amount = sdp->sd_sb.sb_bsize - o; o 318 fs/gfs2/dir.c memcpy(buf, bh->b_data + o, amount); o 323 fs/gfs2/dir.c o = sizeof(struct gfs2_meta_header); o 940 fs/gfs2/ops_fstype.c char *o, *options; o 960 fs/gfs2/ops_fstype.c for (options = args->ar_hostdata; (o = strsep(&options, ":")); ) { o 964 fs/gfs2/ops_fstype.c if (!o || !*o) o 967 fs/gfs2/ops_fstype.c token = match_token(o, *lm->lm_tokens, tmp); o 989 fs/gfs2/ops_fstype.c fs_info(sdp, "unknown hostdata (%s)\n", o); o 1342 fs/gfs2/ops_fstype.c int o; o 1344 fs/gfs2/ops_fstype.c o = fs_parse(fc, &gfs2_fs_parameters, param, &result); o 1345 fs/gfs2/ops_fstype.c if (o < 0) o 1346 fs/gfs2/ops_fstype.c return o; o 1348 fs/gfs2/ops_fstype.c switch (o) { o 449 fs/hpfs/super.c int o; o 463 fs/hpfs/super.c if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, o 468 fs/hpfs/super.c if (o == 2) { o 556 fs/hpfs/super.c int o; o 577 fs/hpfs/super.c if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, o 582 fs/hpfs/super.c if (o==2) { o 269 fs/jffs2/wbuf.c #define jffs2_verify_write(c,b,o) (0) o 887 fs/nfsd/nfs4xdr.c static __be32 nfsd4_decode_opaque(struct nfsd4_compoundargs *argp, struct xdr_netobj *o) o 892 fs/nfsd/nfs4xdr.c o->len = be32_to_cpup(p++); o 894 fs/nfsd/nfs4xdr.c if (o->len == 0 || o->len > NFS4_OPAQUE_LIMIT) o 897 fs/nfsd/nfs4xdr.c READ_BUF(o->len); o 898 fs/nfsd/nfs4xdr.c SAVEMEM(o->data, o->len); o 251 fs/ntfs/unistr.c int i, o, wc_len; o 257 fs/ntfs/unistr.c for (i = o = 0; i < ins_len; i += wc_len) { o 261 fs/ntfs/unistr.c o < NTFS_MAX_NAME_LEN)) { o 263 fs/ntfs/unistr.c ucs[o++] = cpu_to_le16(wc); o 271 fs/ntfs/unistr.c ucs[o] = 0; o 273 fs/ntfs/unistr.c return o; o 327 fs/ntfs/unistr.c int i, o, ns_len, wc; o 343 fs/ntfs/unistr.c for (i = o = 0; i < ins_len; i++) { o 344 fs/ntfs/unistr.c retry: wc = nls->uni2char(le16_to_cpu(ins[i]), ns + o, o 345 fs/ntfs/unistr.c ns_len - o); o 347 fs/ntfs/unistr.c o += wc; o 366 fs/ntfs/unistr.c ns[o] = 0; o 368 fs/ntfs/unistr.c return o; o 51 fs/proc/kcore.c #define kc_offset_to_vaddr(o) ((o) + PAGE_OFFSET) o 69 fs/qnx6/qnx6.h #define clear_opt(o, opt) (o &= ~(QNX6_MOUNT_##opt)) o 70 fs/qnx6/qnx6.h #define set_opt(o, opt) (o |= (QNX6_MOUNT_##opt)) o 48 fs/ubifs/orphan.c struct ubifs_orphan *orphan, *o; o 67 fs/ubifs/orphan.c o = rb_entry(parent, struct ubifs_orphan, rb); o 68 fs/ubifs/orphan.c if (inum < o->inum) o 70 fs/ubifs/orphan.c else if (inum > o->inum) o 98 fs/ubifs/orphan.c struct ubifs_orphan *o; o 103 fs/ubifs/orphan.c o = rb_entry(p, struct ubifs_orphan, rb); o 104 fs/ubifs/orphan.c if (inum < o->inum) o 106 fs/ubifs/orphan.c else if (inum > o->inum) o 109 fs/ubifs/orphan.c return o; o 115 fs/ubifs/orphan.c static void __orphan_drop(struct ubifs_info *c, struct ubifs_orphan *o) o 117 fs/ubifs/orphan.c rb_erase(&o->rb, &c->orph_tree); o 118 fs/ubifs/orphan.c list_del(&o->list); o 121 fs/ubifs/orphan.c if (o->new) { o 122 fs/ubifs/orphan.c list_del(&o->new_list); o 126 fs/ubifs/orphan.c kfree(o); o 577 fs/ubifs/orphan.c struct ubifs_orphan *orphan, *o; o 588 fs/ubifs/orphan.c o = rb_entry(parent, struct ubifs_orphan, rb); o 589 fs/ubifs/orphan.c if (inum < o->inum) o 591 fs/ubifs/orphan.c else if (inum > o->inum) o 858 fs/ubifs/orphan.c struct check_orphan *orphan, *o; o 869 fs/ubifs/orphan.c o = rb_entry(parent, struct check_orphan, rb); o 870 fs/ubifs/orphan.c if (inum < o->inum) o 872 fs/ubifs/orphan.c else if (inum > o->inum) o 886 fs/ubifs/orphan.c struct check_orphan *o; o 891 fs/ubifs/orphan.c o = rb_entry(p, struct check_orphan, rb); o 892 fs/ubifs/orphan.c if (inum < o->inum) o 894 fs/ubifs/orphan.c else if (inum > o->inum) o 904 fs/ubifs/orphan.c struct check_orphan *o, *n; o 906 fs/ubifs/orphan.c rbtree_postorder_for_each_entry_safe(o, n, root, rb) o 907 fs/ubifs/orphan.c kfree(o); o 72 fs/ubifs/tnc.c struct ubifs_old_idx *old_idx, *o; o 84 fs/ubifs/tnc.c o = rb_entry(parent, struct ubifs_old_idx, rb); o 85 fs/ubifs/tnc.c if (lnum < o->lnum) o 87 fs/ubifs/tnc.c else if (lnum > o->lnum) o 89 fs/ubifs/tnc.c else if (offs < o->offs) o 91 fs/ubifs/tnc.c else if (offs > o->offs) o 165 fs/ubifs/tnc_commit.c struct ubifs_old_idx *o; o 170 fs/ubifs/tnc_commit.c o = rb_entry(p, struct ubifs_old_idx, rb); o 171 fs/ubifs/tnc_commit.c if (lnum < o->lnum) o 173 fs/ubifs/tnc_commit.c else if (lnum > o->lnum) o 175 fs/ubifs/tnc_commit.c else if (offs < o->offs) o 177 fs/ubifs/tnc_commit.c else if (offs > o->offs) o 73 fs/ufs/ufs.h #define ufs_clear_opt(o,opt) o &= ~UFS_MOUNT_##opt o 74 fs/ufs/ufs.h #define ufs_set_opt(o,opt) o |= UFS_MOUNT_##opt o 75 fs/ufs/ufs.h #define ufs_test_opt(o,opt) ((o) & UFS_MOUNT_##opt) o 242 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_data_aoff_t o) o 244 fs/xfs/libxfs/xfs_dir2.h return ((xfs_dir2_off_t)db << geo->blklog) + o; o 270 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_data_aoff_t o) o 272 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); o 1094 fs/xfs/libxfs/xfs_format.h #define XFS_OFFBNO_TO_AGINO(mp,b,o) \ o 1095 fs/xfs/libxfs/xfs_format.h ((xfs_agino_t)(((b) << XFS_INO_OFFSET_BITS(mp)) | (o))) o 30 fs/xfs/libxfs/xfs_ialloc.h xfs_make_iptr(struct xfs_mount *mp, struct xfs_buf *b, int o) o 32 fs/xfs/libxfs/xfs_ialloc.h return xfs_buf_offset(b, o << (mp)->m_sb.sb_inodelog); o 51 include/asm-generic/atomic64.h extern s64 atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n); o 96 include/asm-generic/cmpxchg.h #define cmpxchg_local(ptr, o, n) ({ \ o 97 include/asm-generic/cmpxchg.h ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\ o 103 include/asm-generic/cmpxchg.h #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) o 106 include/asm-generic/cmpxchg.h #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) o 107 include/asm-generic/cmpxchg.h #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) o 44 include/asm-generic/local.h #define local_cmpxchg(l, o, n) atomic_long_cmpxchg((&(l)->a), (o), (n)) o 45 include/asm-generic/local64.h #define local64_cmpxchg(l, o, n) local_cmpxchg((&(l)->a), (o), (n)) o 83 include/asm-generic/local64.h #define local64_cmpxchg(l, o, n) atomic64_cmpxchg((&(l)->a), (o), (n)) o 54 include/keys/trusted.h static inline void dump_options(struct trusted_key_options *o) o 56 include/keys/trusted.h pr_info("trusted_key: sealing key type %d\n", o->keytype); o 57 include/keys/trusted.h pr_info("trusted_key: sealing key handle %0X\n", o->keyhandle); o 58 include/keys/trusted.h pr_info("trusted_key: pcrlock %d\n", o->pcrlock); o 59 include/keys/trusted.h pr_info("trusted_key: pcrinfo %d\n", o->pcrinfo_len); o 61 include/keys/trusted.h 16, 1, o->pcrinfo, o->pcrinfo_len, 0); o 96 include/keys/trusted.h static inline void dump_options(struct trusted_key_options *o) o 917 include/linux/atomic-fallback.h int r, o = *old; o 918 include/linux/atomic-fallback.h r = atomic_cmpxchg(v, o, new); o 919 include/linux/atomic-fallback.h if (unlikely(r != o)) o 921 include/linux/atomic-fallback.h return likely(r == o); o 930 include/linux/atomic-fallback.h int r, o = *old; o 931 include/linux/atomic-fallback.h r = atomic_cmpxchg_acquire(v, o, new); o 932 include/linux/atomic-fallback.h if (unlikely(r != o)) o 934 include/linux/atomic-fallback.h return likely(r == o); o 943 include/linux/atomic-fallback.h int r, o = *old; o 944 include/linux/atomic-fallback.h r = atomic_cmpxchg_release(v, o, new); o 945 include/linux/atomic-fallback.h if (unlikely(r != o)) o 947 include/linux/atomic-fallback.h return likely(r == o); o 956 include/linux/atomic-fallback.h int r, o = *old; o 957 include/linux/atomic-fallback.h r = atomic_cmpxchg_relaxed(v, o, new); o 958 include/linux/atomic-fallback.h if (unlikely(r != o)) o 960 include/linux/atomic-fallback.h return likely(r == o); o 2027 include/linux/atomic-fallback.h s64 r, o = *old; o 2028 include/linux/atomic-fallback.h r = atomic64_cmpxchg(v, o, new); o 2029 include/linux/atomic-fallback.h if (unlikely(r != o)) o 2031 include/linux/atomic-fallback.h return likely(r == o); o 2040 include/linux/atomic-fallback.h s64 r, o = *old; o 2041 include/linux/atomic-fallback.h r = atomic64_cmpxchg_acquire(v, o, new); o 2042 include/linux/atomic-fallback.h if (unlikely(r != o)) o 2044 include/linux/atomic-fallback.h return likely(r == o); o 2053 include/linux/atomic-fallback.h s64 r, o = *old; o 2054 include/linux/atomic-fallback.h r = atomic64_cmpxchg_release(v, o, new); o 2055 include/linux/atomic-fallback.h if (unlikely(r != o)) o 2057 include/linux/atomic-fallback.h return likely(r == o); o 2066 include/linux/atomic-fallback.h s64 r, o = *old; o 2067 include/linux/atomic-fallback.h r = atomic64_cmpxchg_relaxed(v, o, new); o 2068 include/linux/atomic-fallback.h if (unlikely(r != o)) o 2070 include/linux/atomic-fallback.h return likely(r == o); o 742 include/linux/ceph/ceph_fs.h extern const char *ceph_lease_op_name(int o); o 792 include/linux/ceph/ceph_fs.h extern const char *ceph_snap_op_name(int o); o 463 include/linux/ceph/rados.h const char *ceph_osd_watch_op_name(int o); o 619 include/linux/dma-mapping.h #define dma_map_page(d, p, o, s, r) dma_map_page_attrs(d, p, o, s, r, 0) o 63 include/linux/mfd/syscon/atmel-matrix.h #define AT91_MATRIX_MCFG(o, x) ((o) + ((x) * 0x4)) o 71 include/linux/mfd/syscon/atmel-matrix.h #define AT91_MATRIX_SCFG(o, x) ((o) + ((x) * 0x4)) o 93 include/linux/mfd/syscon/atmel-matrix.h #define AT91_MATRIX_PRAS(o, x) ((o) + ((x) * 0x8)) o 94 include/linux/mfd/syscon/atmel-matrix.h #define AT91_MATRIX_PRBS(o, x) ((o) + ((x) * 0x8) + 0x4) o 1655 include/linux/pci.h #define _PCI_NOP(o, s, t) \ o 1656 include/linux/pci.h static inline int pci_##o##_config_##s(struct pci_dev *dev, \ o 1660 include/linux/pci.h #define _PCI_NOP_ALL(o, x) _PCI_NOP(o, byte, u8 x) \ o 1661 include/linux/pci.h _PCI_NOP(o, word, u16 x) \ o 1662 include/linux/pci.h _PCI_NOP(o, dword, u32 x) o 250 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ o 253 include/media/v4l2-device.h if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \ o 254 include/media/v4l2-device.h (sd)->ops->o->f((sd) , ##args); \ o 275 include/media/v4l2-device.h #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ o 279 include/media/v4l2-device.h __v4l2_device_call_subdevs_p(v4l2_dev, __sd, cond, o, \ o 307 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ o 312 include/media/v4l2-device.h if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \ o 313 include/media/v4l2-device.h __err = (sd)->ops->o->f((sd) , ##args); \ o 342 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ o 345 include/media/v4l2-device.h __v4l2_device_call_subdevs_until_err_p(v4l2_dev, __sd, cond, o, \ o 369 include/media/v4l2-device.h #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \ o 374 include/media/v4l2-device.h (grpid) == 0 || __sd->grp_id == (grpid), o, f , \ o 402 include/media/v4l2-device.h #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \ o 406 include/media/v4l2-device.h (grpid) == 0 || __sd->grp_id == (grpid), o, f , \ o 429 include/media/v4l2-device.h #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \ o 434 include/media/v4l2-device.h (grpmsk) == 0 || (__sd->grp_id & (grpmsk)), o, \ o 461 include/media/v4l2-device.h #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \ o 465 include/media/v4l2-device.h (grpmsk) == 0 || (__sd->grp_id & (grpmsk)), o, \ o 483 include/media/v4l2-device.h #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \ o 490 include/media/v4l2-device.h if (v4l2_subdev_has_op(__sd, o, f)) { \ o 511 include/media/v4l2-device.h #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \ o 518 include/media/v4l2-device.h if (v4l2_subdev_has_op(__sd, o, f)) { \ o 1100 include/media/v4l2-subdev.h #define v4l2_subdev_call(sd, o, f, args...) \ o 1106 include/media/v4l2-subdev.h else if (!(__sd->ops->o && __sd->ops->o->f)) \ o 1108 include/media/v4l2-subdev.h else if (v4l2_subdev_call_wrappers.o && \ o 1109 include/media/v4l2-subdev.h v4l2_subdev_call_wrappers.o->f) \ o 1110 include/media/v4l2-subdev.h __result = v4l2_subdev_call_wrappers.o->f( \ o 1113 include/media/v4l2-subdev.h __result = __sd->ops->o->f(__sd, ##args); \ o 1125 include/media/v4l2-subdev.h #define v4l2_subdev_has_op(sd, o, f) \ o 1126 include/media/v4l2-subdev.h ((sd)->ops->o && (sd)->ops->o->f) o 299 include/net/erspan.h md2->o = 0; o 520 include/net/ipv6.h int o = plen >> 3, o 524 include/net/ipv6.h memcpy(pfx->s6_addr, addr, o); o 526 include/net/ipv6.h pfx->s6_addr[o] = addr->s6_addr[o] & (0xff00 >> b); o 534 include/net/ipv6.h int o = plen >> 3, o 537 include/net/ipv6.h memcpy(addr->s6_addr, pfx, o); o 539 include/net/ipv6.h addr->s6_addr[o] &= ~(0xff00 >> b); o 540 include/net/ipv6.h addr->s6_addr[o] |= (pfx->s6_addr[o] & (0xff00 >> b)); o 389 include/net/netfilter/nf_tables.h #define to_set_type(o) container_of(o, struct nft_set_type, ops) o 27 include/uapi/linux/erspan.h __u8 o:1, o 38 include/uapi/linux/erspan.h o:1; o 47 include/uapi/linux/ip.h #define IPOPT_COPIED(o) ((o)&IPOPT_COPY) o 48 include/uapi/linux/ip.h #define IPOPT_CLASS(o) ((o)&IPOPT_CLASS_MASK) o 49 include/uapi/linux/ip.h #define IPOPT_NUMBER(o) ((o)&IPOPT_NUMBER_MASK) o 297 kernel/audit.h #define audit_to_watch(k, p, l, o) (-EINVAL) o 309 kernel/audit.h #define audit_dupe_exe(n, o) (-EINVAL) o 93 kernel/compat.c int get_compat_itimerval(struct itimerval *o, const struct compat_itimerval __user *i) o 99 kernel/compat.c o->it_interval.tv_sec = v32.it_interval.tv_sec; o 100 kernel/compat.c o->it_interval.tv_usec = v32.it_interval.tv_usec; o 101 kernel/compat.c o->it_value.tv_sec = v32.it_value.tv_sec; o 102 kernel/compat.c o->it_value.tv_usec = v32.it_value.tv_usec; o 106 kernel/compat.c int put_compat_itimerval(struct compat_itimerval __user *o, const struct itimerval *i) o 114 kernel/compat.c return copy_to_user(o, &v32, sizeof(struct compat_itimerval)) ? -EFAULT : 0; o 1761 kernel/events/uprobes.c struct return_instance **p, *o, *n; o 1769 kernel/events/uprobes.c for (o = o_utask->return_instances; o; o = o->next) { o 1774 kernel/events/uprobes.c *n = *o; o 955 kernel/kprobes.c #define __disarm_kprobe(p, o) arch_disarm_kprobe(p) o 109 lib/842/842_compress.c #define get_input_data(p, o, b) \ o 110 lib/842/842_compress.c be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o)))) o 170 lib/842/842_compress.c u64 o; o 191 lib/842/842_compress.c o = *out & bmask[b]; o 195 lib/842/842_compress.c *out = o | d; o 197 lib/842/842_compress.c put_unaligned(cpu_to_be16(o << 8 | d), (__be16 *)out); o 199 lib/842/842_compress.c put_unaligned(cpu_to_be32(o << 24 | d << 8), (__be32 *)out); o 201 lib/842/842_compress.c put_unaligned(cpu_to_be32(o << 24 | d), (__be32 *)out); o 203 lib/842/842_compress.c put_unaligned(cpu_to_be64(o << 56 | d << 24), (__be64 *)out); o 205 lib/842/842_compress.c put_unaligned(cpu_to_be64(o << 56 | d << 16), (__be64 *)out); o 207 lib/842/842_compress.c put_unaligned(cpu_to_be64(o << 56 | d << 8), (__be64 *)out); o 209 lib/842/842_compress.c put_unaligned(cpu_to_be64(o << 56 | d), (__be64 *)out); o 226 lib/842/842_decompress.c static int do_op(struct sw842_param *p, u8 o) o 230 lib/842/842_decompress.c if (o >= OPS_MAX) o 234 lib/842/842_decompress.c u8 op = decomp_ops[o][i]; o 257 lib/842/842_decompress.c atomic_inc(&template_count[o]); o 148 lib/atomic64.c s64 atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n) o 156 lib/atomic64.c if (val == o) o 627 lib/debugobjects.c struct debug_obj o = { .object = addr, o 684 lib/debugobjects.c debug_print_object(&o, "activate"); o 734 lib/debugobjects.c struct debug_obj o = { .object = addr, o 738 lib/debugobjects.c debug_print_object(&o, "deactivate"); o 856 lib/debugobjects.c struct debug_obj o = { .object = addr, o 870 lib/debugobjects.c debug_print_object(&o, "assert_init"); o 922 lib/debugobjects.c struct debug_obj o = { .object = addr, o 926 lib/debugobjects.c debug_print_object(&o, "active_state"); o 54 lib/locking-selftest.c static struct ww_mutex o, o2, o3; o 1118 lib/locking-selftest.c I_WW(t); I_WW(t2); I_WW(o.base); I_WW(o2.base); I_WW(o3.base); o 1123 lib/locking-selftest.c ww_mutex_init(&o, &ww_lockdep); ww_mutex_init(&o2, &ww_lockdep); ww_mutex_init(&o3, &ww_lockdep); o 1315 lib/locking-selftest.c ret = WWL(&o, &t); o 1317 lib/locking-selftest.c if (WARN_ON(!o.ctx) || o 1322 lib/locking-selftest.c ret = WWL(&o, &t); o 1325 lib/locking-selftest.c ret = WWT(&o); o 1330 lib/locking-selftest.c ret = WWL(&o, &t2); o 1332 lib/locking-selftest.c WWU(&o); o 1334 lib/locking-selftest.c if (WWT(&o)) o 1335 lib/locking-selftest.c WWU(&o); o 1355 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1356 lib/locking-selftest.c mutex_lock(&o.base); o 1357 lib/locking-selftest.c mutex_unlock(&o.base); o 1358 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1361 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1362 lib/locking-selftest.c ret = mutex_lock_interruptible(&o.base); o 1364 lib/locking-selftest.c mutex_unlock(&o.base); o 1367 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1370 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1371 lib/locking-selftest.c ret = mutex_lock_killable(&o.base); o 1373 lib/locking-selftest.c mutex_unlock(&o.base); o 1376 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1379 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1380 lib/locking-selftest.c ret = mutex_trylock(&o.base); o 1383 lib/locking-selftest.c mutex_unlock(&o.base); o 1386 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1389 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1390 lib/locking-selftest.c mutex_lock(&o.base); o 1391 lib/locking-selftest.c ret = mutex_trylock(&o.base); o 1393 lib/locking-selftest.c mutex_unlock(&o.base); o 1394 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1397 lib/locking-selftest.c o.ctx = (void *)~0UL; o 1398 lib/locking-selftest.c mutex_lock_nest_lock(&o.base, &t); o 1399 lib/locking-selftest.c mutex_unlock(&o.base); o 1400 lib/locking-selftest.c WARN_ON(o.ctx != (void *)~0UL); o 1415 lib/locking-selftest.c WWL(&o, &t); o 1437 lib/locking-selftest.c WWL(&o, &t); o 1446 lib/locking-selftest.c WWL(&o, &t); o 1451 lib/locking-selftest.c WWL1(&o); o 1452 lib/locking-selftest.c WWU(&o); o 1453 lib/locking-selftest.c WWU(&o); o 1459 lib/locking-selftest.c WWL(&o, &t); o 1461 lib/locking-selftest.c WWU(&o); o 1468 lib/locking-selftest.c o.ctx = &t2; o 1469 lib/locking-selftest.c WWL(&o, &t); o 1484 lib/locking-selftest.c ret = WWL(&o, &t); o 1493 lib/locking-selftest.c WWU(&o); o 1510 lib/locking-selftest.c ret = WWL(&o, &t); o 1519 lib/locking-selftest.c WWU(&o); o 1536 lib/locking-selftest.c ret = WWL(&o, &t); o 1561 lib/locking-selftest.c ret = WWL(&o, &t); o 1586 lib/locking-selftest.c ret = WWL(&o, &t); o 1607 lib/locking-selftest.c ret = WWL(&o, &t); o 1632 lib/locking-selftest.c ret = WWL(&o, &t); o 1658 lib/locking-selftest.c ret = WWL(&o, &t); o 1679 lib/locking-selftest.c ret = WWL(&o, &t); o 1687 lib/locking-selftest.c WWU(&o); o 1704 lib/locking-selftest.c ret = WWL(&o, &t); o 1712 lib/locking-selftest.c WWU(&o); o 1719 lib/locking-selftest.c raw_spin_lock_nest_lock(&lock_A, &o.base); o 1727 lib/locking-selftest.c ww_mutex_lock_slow(&o, &t); o 1736 lib/locking-selftest.c ret = WWL(&o, &t); o 1747 lib/locking-selftest.c ret = WWL(&o, &t); o 1753 lib/locking-selftest.c WWU(&o); o 1762 lib/locking-selftest.c ret = WWL(&o, &t); o 1769 lib/locking-selftest.c WWU(&o); o 1776 lib/locking-selftest.c ret = WWT(&o); o 1781 lib/locking-selftest.c WWU(&o); o 1788 lib/locking-selftest.c ret = WWT(&o); o 1793 lib/locking-selftest.c WWU(&o); o 1800 lib/locking-selftest.c ret = WWT(&o); o 1811 lib/locking-selftest.c WWL1(&o); o 1819 lib/locking-selftest.c WWL1(&o); o 1828 lib/locking-selftest.c WWL1(&o); o 1840 lib/locking-selftest.c WWL1(&o); o 1843 lib/locking-selftest.c WWU(&o); o 1846 lib/locking-selftest.c WWL1(&o); o 1847 lib/locking-selftest.c WWU(&o); o 1858 lib/locking-selftest.c ret = WWT(&o); o 1862 lib/locking-selftest.c WWU(&o); o 1865 lib/locking-selftest.c ret = WWT(&o); o 1867 lib/locking-selftest.c WWU(&o); o 1880 lib/locking-selftest.c ret = WWL(&o, &t); o 1884 lib/locking-selftest.c WWU(&o); o 1887 lib/locking-selftest.c ret = WWL(&o, &t); o 1889 lib/locking-selftest.c WWU(&o); o 115 lib/textsearch.c struct ts_ops *o; o 118 lib/textsearch.c list_for_each_entry_rcu(o, &ts_ops, list) { o 119 lib/textsearch.c if (!strcmp(name, o->name)) { o 120 lib/textsearch.c if (!try_module_get(o->owner)) o 121 lib/textsearch.c o = NULL; o 123 lib/textsearch.c return o; o 146 lib/textsearch.c struct ts_ops *o; o 153 lib/textsearch.c list_for_each_entry(o, &ts_ops, list) { o 154 lib/textsearch.c if (!strcmp(ops->name, o->name)) o 181 lib/textsearch.c struct ts_ops *o; o 184 lib/textsearch.c list_for_each_entry(o, &ts_ops, list) { o 185 lib/textsearch.c if (o == ops) { o 186 lib/textsearch.c list_del_rcu(&o->list); o 435 mm/page_alloc.c #define kasan_free_nondeferred_pages(p, o) kasan_free_pages(p, o) o 3404 mm/page_alloc.c int o; o 3453 mm/page_alloc.c for (o = order; o < MAX_ORDER; o++) { o 3454 mm/page_alloc.c struct free_area *area = &z->free_area[o]; o 485 mm/vmstat.c long o, n, t, z; o 502 mm/vmstat.c o = this_cpu_read(*p); o 503 mm/vmstat.c n = delta + o; o 512 mm/vmstat.c } while (this_cpu_cmpxchg(*p, o, n) != o); o 542 mm/vmstat.c long o, n, t, z; o 559 mm/vmstat.c o = this_cpu_read(*p); o 560 mm/vmstat.c n = delta + o; o 569 mm/vmstat.c } while (this_cpu_cmpxchg(*p, o, n) != o); o 32 net/ceph/ceph_strings.c const char *ceph_osd_watch_op_name(int o) o 34 net/ceph/ceph_strings.c switch (o) { o 905 net/ceph/crush/mapper.c int *o = b; o 1037 net/ceph/crush/mapper.c o+osize, j, o 1059 net/ceph/crush/mapper.c o+osize, j, o 1073 net/ceph/crush/mapper.c memcpy(o, c, osize*sizeof(*o)); o 1076 net/ceph/crush/mapper.c tmp = o; o 1077 net/ceph/crush/mapper.c o = w; o 148 net/ceph/mon_client.c int o = -1; o 153 net/ceph/mon_client.c o = monc->cur_mon; o 154 net/ceph/mon_client.c if (o >= 0) o 159 net/ceph/mon_client.c if (o >= 0 && n >= o) o 1383 net/ceph/osd_client.c static struct ceph_osd *lookup_create_osd(struct ceph_osd_client *osdc, int o, o 1393 net/ceph/osd_client.c if (o != CEPH_HOMELESS_OSD) o 1394 net/ceph/osd_client.c osd = lookup_osd(&osdc->osds, o); o 1401 net/ceph/osd_client.c osd = create_osd(osdc, o); o 1407 net/ceph/osd_client.c dout("%s osdc %p osd%d -> osd %p\n", __func__, osdc, o, osd); o 5580 net/ceph/osd_client.c struct ceph_osd *o = con->private; o 5581 net/ceph/osd_client.c struct ceph_osd_client *osdc = o->o_osdc; o 5583 net/ceph/osd_client.c struct ceph_auth_handshake *auth = &o->o_auth; o 5608 net/ceph/osd_client.c struct ceph_osd *o = con->private; o 5609 net/ceph/osd_client.c struct ceph_osd_client *osdc = o->o_osdc; o 5612 net/ceph/osd_client.c return ceph_auth_add_authorizer_challenge(ac, o->o_auth.authorizer, o 5618 net/ceph/osd_client.c struct ceph_osd *o = con->private; o 5619 net/ceph/osd_client.c struct ceph_osd_client *osdc = o->o_osdc; o 5622 net/ceph/osd_client.c return ceph_auth_verify_authorizer_reply(ac, o->o_auth.authorizer); o 5627 net/ceph/osd_client.c struct ceph_osd *o = con->private; o 5628 net/ceph/osd_client.c struct ceph_osd_client *osdc = o->o_osdc; o 5645 net/ceph/osd_client.c struct ceph_osd *o = msg->con->private; o 5646 net/ceph/osd_client.c struct ceph_auth_handshake *auth = &o->o_auth; o 5653 net/ceph/osd_client.c struct ceph_osd *o = msg->con->private; o 5654 net/ceph/osd_client.c struct ceph_auth_handshake *auth = &o->o_auth; o 141 net/core/fib_notifier.c struct fib_notifier_ops *o; o 143 net/core/fib_notifier.c list_for_each_entry(o, &fn_net->fib_notifier_ops, list) o 144 net/core/fib_notifier.c if (ops->family == o->family) o 123 net/core/fib_rules.c struct fib_rules_ops *o; o 137 net/core/fib_rules.c list_for_each_entry(o, &net->rules_ops, list) o 138 net/core/fib_rules.c if (ops->family == o->family) o 11 net/core/net-procfs.c #define set_bucket_offset(b, o) ((b) << BUCKET_SPACE | (o)) o 6656 net/netfilter/nf_tables_api.c struct nft_rules_old *o = container_of(h, struct nft_rules_old, h); o 6658 net/netfilter/nf_tables_api.c kvfree(o->start); o 36 net/netfilter/xt_TCPOPTSTRIP.c u_int16_t n, o; o 73 net/netfilter/xt_TCPOPTSTRIP.c o = opt[i+j]; o 76 net/netfilter/xt_TCPOPTSTRIP.c o <<= 8; o 79 net/netfilter/xt_TCPOPTSTRIP.c inet_proto_csum_replace2(&tcph->check, skb, htons(o), o 64 net/openvswitch/vport.c struct vport_ops *o; o 67 net/openvswitch/vport.c list_for_each_entry(o, &vport_ops_list, list) o 68 net/openvswitch/vport.c if (ops->type == o->type) o 164 net/sched/act_ife.c struct tcf_meta_ops *o; o 167 net/sched/act_ife.c list_for_each_entry(o, &ifeoplist, list) { o 168 net/sched/act_ife.c if (o->metaid == metaid) { o 169 net/sched/act_ife.c if (!try_module_get(o->owner)) o 170 net/sched/act_ife.c o = NULL; o 172 net/sched/act_ife.c return o; o 356 net/sched/act_ife.c struct tcf_meta_ops *o; o 361 net/sched/act_ife.c list_for_each_entry(o, &ifeoplist, list) { o 362 net/sched/act_ife.c rc = add_metainfo_and_get_ops(o, ife, o->metaid, exists); o 642 net/sunrpc/auth_gss/svcauth_gss.c svc_safe_getnetobj(struct kvec *argv, struct xdr_netobj *o) o 648 net/sunrpc/auth_gss/svcauth_gss.c o->len = svc_getnl(argv); o 649 net/sunrpc/auth_gss/svcauth_gss.c l = round_up_to_quad(o->len); o 652 net/sunrpc/auth_gss/svcauth_gss.c o->data = argv->iov_base; o 659 net/sunrpc/auth_gss/svcauth_gss.c svc_safe_putnetobj(struct kvec *resv, struct xdr_netobj *o) o 665 net/sunrpc/auth_gss/svcauth_gss.c svc_putnl(resv, o->len); o 667 net/sunrpc/auth_gss/svcauth_gss.c resv->iov_len += round_up_to_quad(o->len); o 670 net/sunrpc/auth_gss/svcauth_gss.c memcpy(p, o->data, o->len); o 671 net/sunrpc/auth_gss/svcauth_gss.c memset(p + o->len, 0, round_up_to_quad(o->len) - o->len); o 2703 net/unix/af_unix.c #define set_bucket_offset(b, o) ((b) << BUCKET_SPACE | (o)) o 756 scripts/genksyms/genksyms.c int o; o 773 scripts/genksyms/genksyms.c while ((o = getopt_long(argc, argv, "s:dwqVDr:T:phR", o 776 scripts/genksyms/genksyms.c while ((o = getopt(argc, argv, "s:dwqVDr:T:phR")) != EOF) o 778 scripts/genksyms/genksyms.c switch (o) { o 671 security/keys/trusted.c struct trusted_key_options *o) o 683 security/keys/trusted.c ret = tpm_seal(tb, o->keytype, o->keyhandle, o->keyauth, o 685 security/keys/trusted.c o->blobauth, o->pcrinfo, o->pcrinfo_len); o 697 security/keys/trusted.c struct trusted_key_options *o) o 706 security/keys/trusted.c ret = tpm_unseal(tb, o->keyhandle, o->keyauth, p->blob, p->blob_len, o 707 security/keys/trusted.c o->blobauth, p->key, &p->key_len); o 865 security/keys/trusted.c struct trusted_key_options *o) o 888 security/keys/trusted.c ret = getoptions(datablob, p, o); o 904 security/keys/trusted.c ret = getoptions(datablob, p, o); o 911 security/keys/trusted.c ret = getoptions(datablob, p, o); o 725 security/selinux/ss/services.c char *o = NULL, *n = NULL, *t = NULL; o 728 security/selinux/ss/services.c if (context_struct_to_string(p, ocontext, &o, &olen)) o 737 security/selinux/ss/services.c o, n, t, sym_name(p, SYM_CLASSES, tclass-1)); o 739 security/selinux/ss/services.c kfree(o); o 367 sound/parisc/harmony.c int o = h->st.format; o 385 sound/parisc/harmony.c if (force || o != n) { o 981 sound/pci/asihpi/hpi_internal.h struct hpi_profile_res_open o; o 105 sound/pci/echoaudio/echoaudio_3g.c int err, i, o; o 123 sound/pci/echoaudio/echoaudio_3g.c for (o = 0; o < num_busses_out(chip); o++) o 125 sound/pci/echoaudio/echoaudio_3g.c set_monitor_gain(chip, o, i, o 126 sound/pci/echoaudio/echoaudio_3g.c chip->monitor_gain[o][i]); o 134 sound/pci/echoaudio/echoaudio_3g.c for (o = 0; o < num_busses_out(chip); o++) o 135 sound/pci/echoaudio/echoaudio_3g.c set_output_gain(chip, o, chip->output_gain[o]); o 674 sound/pci/echoaudio/echoaudio_dsp.c int i, o, err; o 693 sound/pci/echoaudio/echoaudio_dsp.c for (o = 0; o < num_busses_out(chip); o++) { o 694 sound/pci/echoaudio/echoaudio_dsp.c err = set_vmixer_gain(chip, o, i, o 695 sound/pci/echoaudio/echoaudio_dsp.c chip->vmixer_gain[o][i]); o 704 sound/pci/echoaudio/echoaudio_dsp.c for (o = 0; o < num_busses_out(chip); o++) o 706 sound/pci/echoaudio/echoaudio_dsp.c err = set_monitor_gain(chip, o, i, o 707 sound/pci/echoaudio/echoaudio_dsp.c chip->monitor_gain[o][i]); o 112 sound/pci/echoaudio/echoaudio_gml.c int err, i, o; o 133 sound/pci/echoaudio/echoaudio_gml.c for (o = 0; o < num_busses_out(chip); o++) o 135 sound/pci/echoaudio/echoaudio_gml.c set_monitor_gain(chip, o, i, o 136 sound/pci/echoaudio/echoaudio_gml.c chip->monitor_gain[o][i]); o 144 sound/pci/echoaudio/echoaudio_gml.c for (o = 0; o < num_busses_out(chip); o++) o 145 sound/pci/echoaudio/echoaudio_gml.c set_output_gain(chip, o, chip->output_gain[o]); o 140 sound/pci/ens1370.c #define ES_1371_JOY_ASEL(o) (((o)&0x03)<<24)/* joystick port mapping */ o 144 sound/pci/ens1370.c #define ES_1370_PCLKDIVO(o) (((o)&0x1fff)<<16)/* clock divide ratio for DAC2 */ o 147 sound/pci/ens1370.c #define ES_1371_GPIO_OUT(o) (((o)&0x0f)<<16)/* GPIO out [3:0] pins - W/R */ o 152 sound/pci/ens1370.c #define ES_1370_WTSRSEL(o) (((o)&0x03)<<12)/* fixed frequency clock for DAC1 */ o 161 sound/pci/ens1370.c #define ES_1371_PDLEV(o) (((o)&0x03)<<8) /* current power down level */ o 179 sound/pci/ens1370.c #define ES_1373_GPIO_INT_EN(o)(((o)&0x0f)<<20)/* GPIO [3:0] pins - interrupt enable */ o 204 sound/pci/ens1370.c #define ES_TXINTENO(o) (((o)&0x03)<<5) /* TX interrupt enable */ o 207 sound/pci/ens1370.c #define ES_CNTRL(o) (((o)&0x03)<<0) /* control */ o 212 sound/pci/ens1370.c #define ES_MEM_PAGEO(o) (((o)&0x0f)<<0) /* memory page select - out */ o 227 sound/pci/ens1370.c #define ES_1371_SRC_RAM_ADDRO(o) (((o)&0x7f)<<25)/* address of the sample rate converter */ o 236 sound/pci/ens1370.c #define ES_1371_SRC_RAM_DATAO(o) (((o)&0xffff)<<0)/* current value of the sample rate converter */ o 244 sound/pci/ens1370.c #define ES_1371_VMPUO(o) (((o)&0x03)<<27)/* base register address; 0 = 0x320xH; 1 = 0x330xH; 2 = 0x340xH; 3 = 0x350xH */ o 247 sound/pci/ens1370.c #define ES_1371_VCDCO(o) (((o)&0x03)<<25)/* CODEC; 0 = 0x530xH; 1 = undefined; 2 = 0xe80xH; 3 = 0xF40xH */ o 268 sound/pci/ens1370.c #define ES_P2_END_INCO(o) (((o)&0x07)<<19)/* binary offset value to increment / loop end */ o 271 sound/pci/ens1370.c #define ES_P2_ST_INCO(o) (((o)&0x07)<<16)/* binary offset value to increment / start */ o 284 sound/pci/ens1370.c #define ES_R1_MODEO(o) (((o)&0x03)<<4) /* ADC mode; 0 = 8-bit mono; 1 = 8-bit stereo; 2 = 16-bit mono; 3 = 16-bit stereo */ o 287 sound/pci/ens1370.c #define ES_P2_MODEO(o) (((o)&0x03)<<2) /* DAC2 mode; -- '' -- */ o 290 sound/pci/ens1370.c #define ES_P1_MODEO(o) (((o)&0x03)<<0) /* DAC1 mode; -- '' -- */ o 298 sound/pci/ens1370.c #define ES_REG_COUNTO(o) (((o)&0xffff)<<0) o 308 sound/pci/ens1370.c #define ES_REG_FCURR_COUNTO(o) (((o)&0xffff)<<16) o 311 sound/pci/ens1370.c #define ES_REG_FSIZEO(o) (((o)&0xffff)<<0) o 319 sound/pci/ens1370.c #define ES_REG_UF_BYTEO(o) (((o)&0xff)<<0) o 941 sound/pci/riptide/riptide.c static int getpaths(struct cmdif *cif, unsigned char *o) o 950 sound/pci/riptide/riptide.c o[j++] = sink[i]; o 951 sound/pci/riptide/riptide.c o[j++] = i; o 30 sound/soc/intel/haswell/sst-haswell-pcm.c #define SST_OLD_POSITION(d, r, o) ((d) + \ o 31 sound/soc/intel/haswell/sst-haswell-pcm.c frames_to_bytes(r, o)) o 897 sound/usb/mixer_scarlett.c int err, i, o; o 943 sound/usb/mixer_scarlett.c for (o = 0; o < info->matrix_out; o++) { o 945 sound/usb/mixer_scarlett.c o+'A'); o 948 sound/usb/mixer_scarlett.c (i << 3) + (o & 0x07), USB_MIXER_S16, o 380 sound/usb/usx2y/usb_stream.c char *i, *o; o 385 sound/usb/usx2y/usb_stream.c o = s->playback1st_to; o 402 sound/usb/usx2y/usb_stream.c memcpy(o, i, il); o 403 sound/usb/usx2y/usb_stream.c o += il; o 406 sound/usb/usx2y/usb_stream.c memcpy(o, i, ol); o 407 sound/usb/usx2y/usb_stream.c singen_6pack(o, ol); o 408 sound/usb/usx2y/usb_stream.c o = s->playback_to; o 409 sound/usb/usx2y/usb_stream.c memcpy(o, i + ol, il - ol); o 410 sound/usb/usx2y/usb_stream.c o += il - ol; o 27 tools/include/uapi/linux/erspan.h __u8 o:1, o 38 tools/include/uapi/linux/erspan.h o:1; o 296 tools/lib/bpf/libbpf.c #define obj_elf_valid(o) ((o)->efile.elf) o 807 tools/lib/subcmd/parse-options.c const struct option *o = opts; o 810 tools/lib/subcmd/parse-options.c for (o = opts; o->type != OPTION_END; o++) o 813 tools/lib/subcmd/parse-options.c len = sizeof(*o) * (nr_opts + 1); o 819 tools/lib/subcmd/parse-options.c qsort(ordered, nr_opts, sizeof(*o), option__cmp); o 101 tools/objtool/elf.c unsigned long o; o 106 tools/objtool/elf.c for (o = offset; o < offset + len; o++) o 107 tools/objtool/elf.c hash_for_each_possible(sec->rela->rela_hash, rela, hash, o) o 108 tools/objtool/elf.c if (rela->offset == o) o 86 tools/objtool/orc_gen.c unsigned long insn_off, struct orc_entry *o) o 98 tools/objtool/orc_gen.c memcpy(orc, o, sizeof(*orc)); o 1177 tools/perf/builtin-kmem.c int o, m; o 1208 tools/perf/builtin-kmem.c for (o = 0; o < MAX_PAGE_ORDER; o++) { o 1209 tools/perf/builtin-kmem.c printf("%5d", o); o 1211 tools/perf/builtin-kmem.c if (order_stats[o][m]) o 1212 tools/perf/builtin-kmem.c printf(" %'12d", order_stats[o][m]); o 3982 tools/perf/builtin-trace.c struct option o = OPT_CALLBACK('e', "event", &trace->evlist, "event", o 3985 tools/perf/builtin-trace.c err = parse_events_option(&o, lists[0], 0); o 4032 tools/perf/builtin-trace.c struct option o = OPT_CALLBACK('e', "event", &trace->evlist, "event", o 4039 tools/perf/builtin-trace.c if (parse_events_option(&o, value, 0)) o 297 tools/perf/util/sort.c char o = map ? dso__symtab_origin(map->dso) : '!'; o 299 tools/perf/util/sort.c BITS_PER_LONG / 4 + 2, ip, o); o 32 tools/perf/util/symbol-elf.c #define ELF32_ST_VISIBILITY(o) ((o) & 0x03) o 37 tools/perf/util/symbol-elf.c #define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o) o 200 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c char o; o 250 tools/testing/selftests/networking/timestamping/rxtimestamp.c void config_so_flags(int rcv, struct options o) o 257 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (o.so_timestamp && o 259 tools/testing/selftests/networking/timestamping/rxtimestamp.c &o.so_timestamp, sizeof(o.so_timestamp)) < 0) o 262 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (o.so_timestampns && o 264 tools/testing/selftests/networking/timestamping/rxtimestamp.c &o.so_timestampns, sizeof(o.so_timestampns)) < 0) o 267 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (o.so_timestamping && o 269 tools/testing/selftests/networking/timestamping/rxtimestamp.c &o.so_timestamping, sizeof(o.so_timestamping)) < 0) o 152 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_EVR(n,s,b,o) evmergehi s,s,n; stw s,o+4*(n)(b) o 153 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_2EVRS(n,s,b,o) SAVE_EVR(n,s,b,o); SAVE_EVR(n+1,s,b,o) o 154 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_4EVRS(n,s,b,o) SAVE_2EVRS(n,s,b,o); SAVE_2EVRS(n+2,s,b,o) o 155 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_8EVRS(n,s,b,o) SAVE_4EVRS(n,s,b,o); SAVE_4EVRS(n+4,s,b,o) o 156 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_16EVRS(n,s,b,o) SAVE_8EVRS(n,s,b,o); SAVE_8EVRS(n+8,s,b,o) o 157 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define SAVE_32EVRS(n,s,b,o) SAVE_16EVRS(n,s,b,o); SAVE_16EVRS(n+16,s,b,o) o 158 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_EVR(n,s,b,o) lwz s,o+4*(n)(b); evmergelo n,s,n o 159 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_2EVRS(n,s,b,o) REST_EVR(n,s,b,o); REST_EVR(n+1,s,b,o) o 160 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_4EVRS(n,s,b,o) REST_2EVRS(n,s,b,o); REST_2EVRS(n+2,s,b,o) o 161 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_8EVRS(n,s,b,o) REST_4EVRS(n,s,b,o); REST_4EVRS(n+4,s,b,o) o 162 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_16EVRS(n,s,b,o) REST_8EVRS(n,s,b,o); REST_8EVRS(n+8,s,b,o) o 163 tools/testing/selftests/powerpc/primitives/asm/ppc_asm.h #define REST_32EVRS(n,s,b,o) REST_16EVRS(n,s,b,o); REST_16EVRS(n+16,s,b,o) o 24 tools/virtio/linux/dma-mapping.h #define dma_map_page(d, p, o, s, dir) (page_to_phys(p) + (o)) o 308 tools/virtio/ringtest/main.c int o = getopt_long(argc, argv, optstring, longopts, NULL); o 309 tools/virtio/ringtest/main.c switch (o) { o 266 tools/virtio/virtio_test.c int o; o 270 tools/virtio/virtio_test.c o = getopt_long(argc, argv, optstring, longopts, NULL); o 271 tools/virtio/virtio_test.c switch (o) {