fs 55 arch/alpha/include/asm/sfp-machine.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 65 arch/arm/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 67 arch/arm/include/asm/uaccess.h current_thread_info()->addr_limit = fs; fs 76 arch/arm/include/asm/uaccess.h modify_domain(DOMAIN_KERNEL, fs ? DOMAIN_CLIENT : DOMAIN_MANAGER); fs 271 arch/arm/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 98 arch/arm/kernel/process.c unsigned int domain, fs; fs 107 arch/arm/kernel/process.c fs = get_fs(); fs 110 arch/arm/kernel/process.c fs = to_svc_pt_regs(regs)->addr_limit; fs 114 arch/arm/kernel/process.c fs = get_fs(); fs 150 arch/arm/kernel/process.c else if (fs == KERNEL_DS) fs 616 arch/arm/kernel/setup.c u32 fs[3], bits[3], ls, mask = 0; fs 636 arch/arm/kernel/setup.c fs[i] = affinity ? ffs(affinity) - 1 : 0; fs 637 arch/arm/kernel/setup.c bits[i] = ls - fs[i]; fs 649 arch/arm/kernel/setup.c mpidr_hash.shift_aff[0] = fs[0]; fs 650 arch/arm/kernel/setup.c mpidr_hash.shift_aff[1] = MPIDR_LEVEL_BITS + fs[1] - bits[0]; fs 651 arch/arm/kernel/setup.c mpidr_hash.shift_aff[2] = 2*MPIDR_LEVEL_BITS + fs[2] - fs 199 arch/arm/kernel/sys_oabi-compat.c mm_segment_t fs; fs 211 arch/arm/kernel/sys_oabi-compat.c fs = get_fs(); fs 214 arch/arm/kernel/sys_oabi-compat.c set_fs(fs); fs 256 arch/arm/kernel/sys_oabi-compat.c mm_segment_t fs; fs 265 arch/arm/kernel/sys_oabi-compat.c fs = get_fs(); fs 268 arch/arm/kernel/sys_oabi-compat.c set_fs(fs); fs 278 arch/arm/kernel/sys_oabi-compat.c mm_segment_t fs; fs 290 arch/arm/kernel/sys_oabi-compat.c fs = get_fs(); fs 293 arch/arm/kernel/sys_oabi-compat.c set_fs(fs); fs 348 arch/arm/kernel/sys_oabi-compat.c mm_segment_t fs = get_fs(); fs 351 arch/arm/kernel/sys_oabi-compat.c set_fs(fs); fs 120 arch/arm/kernel/traps.c mm_segment_t fs; fs 128 arch/arm/kernel/traps.c fs = get_fs(); fs 152 arch/arm/kernel/traps.c set_fs(fs); fs 189 arch/arm/kernel/traps.c mm_segment_t fs; fs 192 arch/arm/kernel/traps.c fs = get_fs(); fs 195 arch/arm/kernel/traps.c set_fs(fs); fs 28 arch/arm64/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 30 arch/arm64/include/asm/uaccess.h current_thread_info()->addr_limit = fs; fs 45 arch/arm64/include/asm/uaccess.h if (IS_ENABLED(CONFIG_ARM64_UAO) && fs == KERNEL_DS) fs 114 arch/arm64/kernel/setup.c u32 i, affinity, fs[4], bits[4], ls; fs 135 arch/arm64/kernel/setup.c fs[i] = affinity ? ffs(affinity) - 1 : 0; fs 136 arch/arm64/kernel/setup.c bits[i] = ls - fs[i]; fs 148 arch/arm64/kernel/setup.c mpidr_hash.shift_aff[0] = MPIDR_LEVEL_SHIFT(0) + fs[0]; fs 149 arch/arm64/kernel/setup.c mpidr_hash.shift_aff[1] = MPIDR_LEVEL_SHIFT(1) + fs[1] - bits[0]; fs 150 arch/arm64/kernel/setup.c mpidr_hash.shift_aff[2] = MPIDR_LEVEL_SHIFT(2) + fs[2] - fs 153 arch/arm64/kernel/setup.c fs[3] - (bits[2] + bits[1] + bits[0]); fs 82 arch/m68k/include/asm/processor.h unsigned short fs; /* saved fs (sfc, dfc) */ fs 95 arch/m68k/include/asm/processor.h .fs = __KERNEL_DS, \ fs 34 arch/m68k/kernel/asm-offsets.c DEFINE(THREAD_FS, offsetof(struct thread_struct, fs)); fs 95 arch/m68k/kernel/process.c current->thread.fs = __USER_DS; fs 139 arch/m68k/kernel/process.c p->thread.fs = get_fs().seg; fs 702 arch/m68k/kernel/traps.c static inline void access_errorcf(unsigned int fs, struct frame *fp) fs 716 arch/m68k/kernel/traps.c switch (fs) { fs 749 arch/m68k/kernel/traps.c err_code = fs_err_code[fs]; fs 750 arch/m68k/kernel/traps.c if ((fs == 13) && (mmusr & MMUSR_WF)) /* rd-mod-wr access */ fs 767 arch/m68k/kernel/traps.c unsigned int fs; fs 768 arch/m68k/kernel/traps.c fs = (fp->ptregs.vector & 0x3) | fs 770 arch/m68k/kernel/traps.c switch (fs) { fs 779 arch/m68k/kernel/traps.c access_errorcf(fs, fp); fs 722 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 740 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 806 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 815 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 827 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 836 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 846 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 858 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 868 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 890 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 899 arch/mips/include/uapi/asm/inst.h __BITFIELD_FIELD(unsigned int fs : 5, fs 150 arch/mips/math-emu/cp1emu.c mips32_insn.fp6_format.fs = insn.mm_fp6_format.fs; fs 190 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 191 arch/mips/math-emu/cp1emu.c insn.mm_fp2_format.fs; fs 214 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 215 arch/mips/math-emu/cp1emu.c insn.mm_fp0_format.fs; fs 234 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 235 arch/mips/math-emu/cp1emu.c insn.mm_fp0_format.fs; fs 254 arch/mips/math-emu/cp1emu.c mips32_insn.r_format.rs = insn.mm_fp4_format.fs; fs 276 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 277 arch/mips/math-emu/cp1emu.c insn.mm_fp3_format.fs; fs 300 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 301 arch/mips/math-emu/cp1emu.c insn.mm_fp3_format.fs; fs 340 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 341 arch/mips/math-emu/cp1emu.c insn.mm_fp1_format.fs; fs 359 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = fs 360 arch/mips/math-emu/cp1emu.c insn.mm_fp1_format.fs; fs 387 arch/mips/math-emu/cp1emu.c mips32_insn.fp1_format.fs = fs 388 arch/mips/math-emu/cp1emu.c insn.mm_fp1_format.fs; fs 401 arch/mips/math-emu/cp1emu.c mips32_insn.fp0_format.fs = insn.mm_fp4_format.fs; fs 1474 arch/mips/math-emu/cp1emu.c union ieee754sp fd, fr, fs, ft; fs 1531 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1533 arch/mips/math-emu/cp1emu.c fd = (*handler) (fr, fs, ft); fs 1571 arch/mips/math-emu/cp1emu.c union ieee754dp fd, fr, fs, ft; fs 1627 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 1629 arch/mips/math-emu/cp1emu.c fd = (*handler) (fr, fs, ft); fs 1681 arch/mips/math-emu/cp1emu.c union ieee754sp fd, fs, ft; fs 1786 arch/mips/math-emu/cp1emu.c union ieee754sp ft, fs, fd; fs 1793 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1795 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_maddf(fd, fs, ft); fs 1800 arch/mips/math-emu/cp1emu.c union ieee754sp ft, fs, fd; fs 1807 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1809 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_msubf(fd, fs, ft); fs 1814 arch/mips/math-emu/cp1emu.c union ieee754sp fs; fs 1820 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1821 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_rint(fs); fs 1826 arch/mips/math-emu/cp1emu.c union ieee754sp fs; fs 1832 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1833 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_2008class(fs); fs 1839 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 1846 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1847 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmin(fs, ft); fs 1852 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 1859 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1860 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmina(fs, ft); fs 1865 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 1872 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1873 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmax(fs, ft); fs 1878 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 1885 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1886 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fmaxa(fs, ft); fs 1908 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1911 arch/mips/math-emu/cp1emu.c rv.s = (*handler.b) (fs, ft); fs 1914 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1915 arch/mips/math-emu/cp1emu.c rv.s = (*handler.u) (fs); fs 1946 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1947 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fsp(fs); fs 1953 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1954 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_tint(fs); fs 1975 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 1977 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_tint(fs); fs 1999 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2000 arch/mips/math-emu/cp1emu.c rv.l = ieee754sp_tlong(fs); fs 2021 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2023 arch/mips/math-emu/cp1emu.c rv.l = ieee754sp_tlong(fs); fs 2031 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 2034 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2036 arch/mips/math-emu/cp1emu.c rv.w = ieee754sp_cmp(fs, ft, fs 2053 arch/mips/math-emu/cp1emu.c union ieee754dp fd, fs, ft; fs 2157 arch/mips/math-emu/cp1emu.c union ieee754dp ft, fs, fd; fs 2164 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2166 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_maddf(fd, fs, ft); fs 2171 arch/mips/math-emu/cp1emu.c union ieee754dp ft, fs, fd; fs 2178 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2180 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_msubf(fd, fs, ft); fs 2185 arch/mips/math-emu/cp1emu.c union ieee754dp fs; fs 2191 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2192 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_rint(fs); fs 2197 arch/mips/math-emu/cp1emu.c union ieee754dp fs; fs 2203 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2204 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_2008class(fs); fs 2210 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2217 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2218 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmin(fs, ft); fs 2223 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2230 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2231 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmina(fs, ft); fs 2236 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2243 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2244 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmax(fs, ft); fs 2249 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2256 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2257 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fmaxa(fs, ft); fs 2279 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2282 arch/mips/math-emu/cp1emu.c rv.d = (*handler.b) (fs, ft); fs 2285 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2286 arch/mips/math-emu/cp1emu.c rv.d = (*handler.u) (fs); fs 2294 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2295 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fdp(fs); fs 2304 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2305 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_tint(fs); /* wrong */ fs 2326 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2328 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_tint(fs); fs 2350 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2351 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_tlong(fs); fs 2372 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2374 arch/mips/math-emu/cp1emu.c rv.l = ieee754dp_tlong(fs); fs 2382 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2385 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2387 arch/mips/math-emu/cp1emu.c rv.w = ieee754dp_cmp(fs, ft, fs 2408 arch/mips/math-emu/cp1emu.c union ieee754dp fs; fs 2414 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2415 arch/mips/math-emu/cp1emu.c rv.s = ieee754sp_fint(fs.bits); fs 2421 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2422 arch/mips/math-emu/cp1emu.c rv.d = ieee754dp_fint(fs.bits); fs 2433 arch/mips/math-emu/cp1emu.c union ieee754sp fs, ft; fs 2530 arch/mips/math-emu/cp1emu.c SPFROMREG(fs, MIPSInst_FS(ir)); fs 2535 arch/mips/math-emu/cp1emu.c if (ieee754sp_cmp(fs, ft, cmptab[cmpop], fs 2549 arch/mips/math-emu/cp1emu.c if (ieee754sp_cmp(fs, ft, fs 2594 arch/mips/math-emu/cp1emu.c union ieee754dp fs, ft; fs 2690 arch/mips/math-emu/cp1emu.c DPFROMREG(fs, MIPSInst_FS(ir)); fs 2695 arch/mips/math-emu/cp1emu.c if (ieee754dp_cmp(fs, ft, fs 2709 arch/mips/math-emu/cp1emu.c if (ieee754dp_cmp(fs, ft, fs 40 arch/nds32/include/asm/sfp-machine.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 42 arch/nds32/include/asm/sfp-machine.h if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) \ fs 43 arch/nds32/include/asm/sfp-machine.h && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) { \ fs 43 arch/nds32/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 45 arch/nds32/include/asm/uaccess.h current_thread_info()->addr_limit = fs; fs 28 arch/nds32/kernel/traps.c mm_segment_t fs; fs 36 arch/nds32/kernel/traps.c fs = get_fs(); fs 60 arch/nds32/kernel/traps.c set_fs(fs); fs 68 arch/nds32/kernel/traps.c mm_segment_t fs; fs 78 arch/nds32/kernel/traps.c fs = get_fs(); fs 96 arch/nds32/kernel/traps.c set_fs(fs); fs 409 arch/powerpc/include/asm/ps3av.h u8 fs; fs 144 arch/powerpc/include/asm/sfp-machine.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 146 arch/powerpc/include/asm/sfp-machine.h if ((_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs) \ fs 147 arch/powerpc/include/asm/sfp-machine.h && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ fs 34 arch/powerpc/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 36 arch/powerpc/include/asm/uaccess.h current->thread.addr_limit = fs; fs 41 arch/riscv/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 43 arch/riscv/include/asm/uaccess.h current_thread_info()->addr_limit = fs; fs 78 arch/riscv/include/asm/uaccess.h const mm_segment_t fs = get_fs(); fs 80 arch/riscv/include/asm/uaccess.h return size <= fs.seg && addr <= fs.seg - size; fs 37 arch/s390/include/asm/uaccess.h void set_fs(mm_segment_t fs); fs 43 arch/s390/lib/uaccess.c void set_fs(mm_segment_t fs) fs 45 arch/s390/lib/uaccess.c current->thread.mm_segment = fs; fs 46 arch/s390/lib/uaccess.c if (fs == USER_DS) { fs 53 arch/s390/lib/uaccess.c if (fs & 1) { fs 54 arch/s390/lib/uaccess.c if (fs == USER_DS_SACF) fs 45 arch/sh/include/asm/sfp-machine.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 47 arch/sh/include/asm/sfp-machine.h if ((_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs) \ fs 48 arch/sh/include/asm/sfp-machine.h && !(_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs)) \ fs 61 arch/sparc/include/asm/sfp-machine_32.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 63 arch/sparc/include/asm/sfp-machine_32.h if ((_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs) \ fs 64 arch/sparc/include/asm/sfp-machine_32.h && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ fs 59 arch/sparc/include/asm/sfp-machine_64.h #define _FP_CHOOSENAN(fs, wc, R, X, Y, OP) \ fs 61 arch/sparc/include/asm/sfp-machine_64.h if ((_FP_FRAC_HIGH_RAW_##fs(Y) & _FP_QNANBIT_##fs) \ fs 62 arch/sparc/include/asm/sfp-machine_64.h && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ fs 70 arch/unicore32/include/asm/assembler.h .else; .ifc \cond, fs fs 68 arch/unicore32/kernel/traps.c mm_segment_t fs; fs 76 arch/unicore32/kernel/traps.c fs = get_fs(); fs 101 arch/unicore32/kernel/traps.c set_fs(fs); fs 108 arch/unicore32/kernel/traps.c mm_segment_t fs; fs 117 arch/unicore32/kernel/traps.c fs = get_fs(); fs 135 arch/unicore32/kernel/traps.c set_fs(fs); fs 251 arch/x86/boot/boot.h u16 gs, fs; fs 4 arch/x86/boot/compressed/cmdline.c static unsigned long fs; fs 7 arch/x86/boot/compressed/cmdline.c fs = seg << 4; /* shift it back */ fs 12 arch/x86/boot/compressed/cmdline.c return *((char *)(fs + addr)); fs 25 arch/x86/boot/regs.c reg->fs = fs(); fs 234 arch/x86/ia32/ia32_aout.c loadsegment(fs, 0); fs 43 arch/x86/ia32/ia32_signal.c #define loadsegment_fs(v) loadsegment(fs, v) fs 75 arch/x86/ia32/ia32_signal.c u16 gs, fs, es, ds; fs 84 arch/x86/ia32/ia32_signal.c fs = GET_SEG(fs); fs 111 arch/x86/ia32/ia32_signal.c RELOAD_SEG(fs); fs 188 arch/x86/ia32/ia32_signal.c put_user_ex(get_user_seg(fs), (unsigned int __user *)&sc->fs); fs 132 arch/x86/include/asm/elf.h pr_reg[9] = regs->fs; \ fs 232 arch/x86/include/asm/mmu_context.h loadsegment(fs, 0); \ fs 9 arch/x86/include/asm/percpu.h #define __percpu_seg fs fs 292 arch/x86/include/asm/processor.h unsigned short fs, __fsh; fs 464 arch/x86/include/asm/processor.h unsigned long fs; fs 38 arch/x86/include/asm/ptrace.h unsigned short fs; fs 224 arch/x86/include/asm/ptrace.h offset == offsetof(struct pt_regs, fs) || fs 342 arch/x86/include/asm/segment.h #define __loadsegment_fs(value) __loadsegment_simple(fs, (value)) fs 28 arch/x86/include/asm/suspend_64.h u16 ds, es, fs, gs; fs 166 arch/x86/include/asm/svm.h struct vmcb_seg fs; fs 29 arch/x86/include/asm/uaccess.h static inline void set_fs(mm_segment_t fs) fs 31 arch/x86/include/asm/uaccess.h current->thread.addr_limit = fs; fs 39 arch/x86/include/asm/user32.h unsigned short fs, __fs, gs, __gs; fs 88 arch/x86/include/asm/user_32.h unsigned long fs; fs 95 arch/x86/include/asm/user_64.h unsigned long fs; fs 27 arch/x86/include/asm/vm86.h unsigned short fs, __fsh; fs 68 arch/x86/include/asm/xen/interface_32.h uint16_t fs, _pad4; fs 126 arch/x86/include/asm/xen/interface_64.h uint16_t fs, _pad5[3]; /* Non-zero => takes precedence over fs_base. */ fs 151 arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; fs 204 arch/x86/include/uapi/asm/sigcontext.h __u16 fs, __fsh; fs 259 arch/x86/include/uapi/asm/sigcontext.h __u16 fs; fs 302 arch/x86/include/uapi/asm/sigcontext.h __u16 fs, __fsh; fs 371 arch/x86/include/uapi/asm/sigcontext.h __u16 fs; fs 89 arch/x86/include/uapi/asm/vm86.h unsigned short fs, __fsh; fs 556 arch/x86/kernel/apm_32.c savesegment(fs, saved_fs); savesegment(gs, saved_gs) fs 558 arch/x86/kernel/apm_32.c loadsegment(fs, saved_fs); loadsegment(gs, saved_gs) fs 36 arch/x86/kernel/asm-offsets_32.c OFFSET(PT_FS, pt_regs, fs); fs 574 arch/x86/kernel/cpu/common.c loadsegment(fs, __KERNEL_PERCPU); fs 1360 arch/x86/kernel/cpu/common.c loadsegment(fs, 0); fs 1887 arch/x86/kernel/cpu/common.c loadsegment(fs, 0); fs 67 arch/x86/kernel/doublefault.c .fs = __KERNEL_PERCPU, fs 36 arch/x86/kernel/perf_regs.c PT_REGS_OFFSET(PERF_REG_X86_FS, fs), fs 79 arch/x86/kernel/process_32.c (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); fs 187 arch/x86/kernel/process_32.c regs->fs = 0; fs 69 arch/x86/kernel/process_64.c unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L, fs, gs, shadowgs; fs 96 arch/x86/kernel/process_64.c rdmsrl(MSR_FS_BASE, fs); fs 99 arch/x86/kernel/process_64.c fs, shadowgs); fs 108 arch/x86/kernel/process_64.c rdmsrl(MSR_FS_BASE, fs); fs 118 arch/x86/kernel/process_64.c fs, fsindex, gs, gsindex, shadowgs); fs 201 arch/x86/kernel/process_64.c savesegment(fs, task->thread.fsindex); fs 225 arch/x86/kernel/process_64.c loadsegment(fs, sel); fs 394 arch/x86/kernel/process_64.c savesegment(fs, p->thread.fsindex); fs 458 arch/x86/kernel/process_64.c loadsegment(fs, __USER_DS); fs 462 arch/x86/kernel/process_64.c loadsegment(fs, 0); fs 87 arch/x86/kernel/ptrace.c REG_OFFSET_NAME(fs), fs 238 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, fs): fs 281 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct,fs): fs 284 arch/x86/kernel/ptrace.c loadsegment(fs, task->thread.fsindex); fs 361 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, fs): fs 403 arch/x86/kernel/ptrace.c case offsetof(struct user_regs_struct, fs): fs 874 arch/x86/kernel/ptrace.c SEG32(fs); fs 946 arch/x86/kernel/ptrace.c SEG32(fs); fs 113 arch/x86/kernel/signal.c COPY_SEG(fs); fs 168 arch/x86/kernel/signal.c put_user_ex(regs->fs, (unsigned int __user *)&sc->fs); fs 204 arch/x86/kernel/signal.c put_user_ex(0, &sc->fs); fs 164 arch/x86/kernel/tls.c savesegment(fs, sel); fs 166 arch/x86/kernel/tls.c loadsegment(fs, sel); fs 139 arch/x86/kernel/vm86_32.c put_user_ex(regs->fs, &user->regs.fs); fs 305 arch/x86/kernel/vm86_32.c get_user_ex(vm86regs.fs, &user_vm86->regs.fs); fs 3182 arch/x86/kvm/emulate.c tss->fs = get_segment_selector(ctxt, VCPU_SREG_FS); fs 3217 arch/x86/kvm/emulate.c set_segment_selector(ctxt, tss->fs, VCPU_SREG_FS); fs 3257 arch/x86/kvm/emulate.c ret = __load_segment_descriptor(ctxt, tss->fs, VCPU_SREG_FS, cpl, fs 203 arch/x86/kvm/svm.c u16 fs; fs 1609 arch/x86/kvm/svm.c init_seg(&save->fs); fs 2326 arch/x86/kvm/svm.c savesegment(fs, svm->host.fs); fs 2361 arch/x86/kvm/svm.c loadsegment(fs, svm->host.fs); fs 2441 arch/x86/kvm/svm.c case VCPU_SREG_FS: return &save->fs; fs 3733 arch/x86/kvm/svm.c to_vmcb->save.fs = from_vmcb->save.fs; fs 4915 arch/x86/kvm/svm.c save->fs.selector, save->fs.attrib, fs 4916 arch/x86/kvm/svm.c save->fs.limit, save->fs.base); fs 5800 arch/x86/kvm/svm.c loadsegment(fs, svm->host.fs); fs 28 arch/x86/kvm/tss.h u32 fs; fs 1156 arch/x86/kvm/vmx/vmx.c savesegment(fs, fs_sel); fs 1164 arch/x86/kvm/vmx/vmx.c savesegment(fs, fs_sel); fs 1197 arch/x86/kvm/vmx/vmx.c loadsegment(fs, host_state->fs_sel); fs 8729 arch/x86/kvm/x86.c kvm_get_segment(vcpu, &sregs->fs, VCPU_SREG_FS); fs 8930 arch/x86/kvm/x86.c kvm_set_segment(vcpu, &sregs->fs, VCPU_SREG_FS); fs 339 arch/x86/lib/insn-eval.c savesegment(fs, sel); fs 361 arch/x86/lib/insn-eval.c return vm86regs->fs; fs 381 arch/x86/lib/insn-eval.c return (unsigned short)(regs->fs & 0xffff); fs 49 arch/x86/math-emu/get_address.c offsetof(struct kernel_vm86_regs, fs), fs 62 arch/x86/math-emu/get_address.c offsetof(struct pt_regs, fs), fs 107 arch/x86/power/cpu.c savesegment(fs, ctxt->fs); fs 232 arch/x86/power/cpu.c loadsegment(fs, __KERNEL_PERCPU); fs 246 arch/x86/power/cpu.c loadsegment(fs, ctxt->fs); fs 171 arch/x86/um/asm/elf.h (pr_reg)[21] = current->thread.arch.fs; \ fs 13 arch/x86/um/asm/processor_64.h unsigned long fs; fs 19 arch/x86/um/asm/processor_64.h .fs = 0, \ fs 31 arch/x86/um/asm/processor_64.h to->fs = from->fs; fs 170 arch/x86/um/signal.c GETREG(FS, fs); fs 249 arch/x86/um/signal.c PUTREG(FS, fs); fs 61 arch/x86/um/syscalls_64.c current->thread.arch.fs = (unsigned long) ptr; fs 85 arch/x86/um/syscalls_64.c if ((to->thread.arch.fs == 0) || (to->mm == NULL)) fs 88 arch/x86/um/syscalls_64.c arch_prctl(to, ARCH_SET_FS, (void __user *) to->thread.arch.fs); fs 15 arch/x86/um/tls_64.c t->thread.arch.fs = tls; fs 560 arch/x86/xen/enlighten_pv.c loadsegment(fs, 0); fs 303 arch/x86/xen/smp_pv.c ctxt->user_regs.fs = __KERNEL_PERCPU; fs 77 arch/xtensa/variants/csp/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 143 arch/xtensa/variants/csp/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 38 arch/xtensa/variants/dc232b/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 79 arch/xtensa/variants/dc232b/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 78 arch/xtensa/variants/dc233c/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 142 arch/xtensa/variants/dc233c/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 77 arch/xtensa/variants/de212/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 131 arch/xtensa/variants/de212/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 38 arch/xtensa/variants/fsf/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 53 arch/xtensa/variants/fsf/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 77 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 143 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 202 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 250 arch/xtensa/variants/test_kc705_be/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 78 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 144 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 206 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 263 arch/xtensa/variants/test_kc705_hifi/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 37 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 64 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 98 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 134 arch/xtensa/variants/test_mmuhifi_c3/include/variant/tie-asm.h xchal_sa_start \continue, \ofs fs 424 drivers/block/swim.c static inline int swim_track(struct floppy_state *fs, int track) fs 426 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 429 drivers/block/swim.c ret = swim_seek(base, track - fs->track); fs 432 drivers/block/swim.c fs->track = track; fs 435 drivers/block/swim.c fs->track = 0; fs 441 drivers/block/swim.c static int floppy_eject(struct floppy_state *fs) fs 443 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 445 drivers/block/swim.c swim_drive(base, fs->location); fs 449 drivers/block/swim.c fs->disk_in = 0; fs 450 drivers/block/swim.c fs->ejected = 1; fs 455 drivers/block/swim.c static inline int swim_read_sector(struct floppy_state *fs, fs 459 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 465 drivers/block/swim.c swim_track(fs, track); fs 492 drivers/block/swim.c static blk_status_t floppy_read_sectors(struct floppy_state *fs, fs 496 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 502 drivers/block/swim.c swim_drive(base, fs->location); fs 505 drivers/block/swim.c track = i / fs->secpercyl; fs 506 drivers/block/swim.c x = i % fs->secpercyl; fs 507 drivers/block/swim.c side = x / fs->secpertrack; fs 508 drivers/block/swim.c sector = x % fs->secpertrack + 1; fs 512 drivers/block/swim.c ret = swim_read_sector(fs, side, track, sector, fs 527 drivers/block/swim.c struct floppy_state *fs = hctx->queue->queuedata; fs 528 drivers/block/swim.c struct swim_priv *swd = fs->swd; fs 537 drivers/block/swim.c if (!fs->disk_in || rq_data_dir(req) == WRITE) { fs 543 drivers/block/swim.c err = floppy_read_sectors(fs, blk_rq_pos(req), fs 563 drivers/block/swim.c static int get_floppy_geometry(struct floppy_state *fs, int type, fs 571 drivers/block/swim.c else if (fs->type == HD_MEDIA) /* High-Density media */ fs 573 drivers/block/swim.c else if (fs->head_number == 2) /* double-sided */ fs 581 drivers/block/swim.c static void setup_medium(struct floppy_state *fs) fs 583 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 587 drivers/block/swim.c fs->disk_in = 1; fs 588 drivers/block/swim.c fs->write_protected = swim_readbit(base, WRITE_PROT); fs 596 drivers/block/swim.c fs->type = swim_readbit(base, TWOMEG_MEDIA) ? fs 598 drivers/block/swim.c fs->head_number = swim_readbit(base, SINGLE_SIDED) ? 1 : 2; fs 599 drivers/block/swim.c get_floppy_geometry(fs, 0, &g); fs 600 drivers/block/swim.c fs->total_secs = g->size; fs 601 drivers/block/swim.c fs->secpercyl = g->head * g->sect; fs 602 drivers/block/swim.c fs->secpertrack = g->sect; fs 603 drivers/block/swim.c fs->track = 0; fs 605 drivers/block/swim.c fs->disk_in = 0; fs 611 drivers/block/swim.c struct floppy_state *fs = bdev->bd_disk->private_data; fs 612 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 615 drivers/block/swim.c if (fs->ref_count == -1 || (fs->ref_count && mode & FMODE_EXCL)) fs 619 drivers/block/swim.c fs->ref_count = -1; fs 621 drivers/block/swim.c fs->ref_count++; fs 625 drivers/block/swim.c swim_drive(base, fs->location); fs 628 drivers/block/swim.c if (fs->ejected) fs 629 drivers/block/swim.c setup_medium(fs); fs 630 drivers/block/swim.c if (!fs->disk_in) { fs 635 drivers/block/swim.c set_capacity(fs->disk, fs->total_secs); fs 642 drivers/block/swim.c if ((mode & FMODE_WRITE) && fs->write_protected) { fs 649 drivers/block/swim.c if (fs->ref_count < 0) fs 650 drivers/block/swim.c fs->ref_count = 0; fs 651 drivers/block/swim.c else if (fs->ref_count > 0) fs 652 drivers/block/swim.c --fs->ref_count; fs 654 drivers/block/swim.c if (fs->ref_count == 0) fs 672 drivers/block/swim.c struct floppy_state *fs = disk->private_data; fs 673 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 676 drivers/block/swim.c if (fs->ref_count < 0) fs 677 drivers/block/swim.c fs->ref_count = 0; fs 678 drivers/block/swim.c else if (fs->ref_count > 0) fs 679 drivers/block/swim.c --fs->ref_count; fs 681 drivers/block/swim.c if (fs->ref_count == 0) fs 689 drivers/block/swim.c struct floppy_state *fs = bdev->bd_disk->private_data; fs 697 drivers/block/swim.c if (fs->ref_count != 1) fs 700 drivers/block/swim.c err = floppy_eject(fs); fs 715 drivers/block/swim.c struct floppy_state *fs = bdev->bd_disk->private_data; fs 719 drivers/block/swim.c ret = get_floppy_geometry(fs, 0, &g); fs 733 drivers/block/swim.c struct floppy_state *fs = disk->private_data; fs 735 drivers/block/swim.c return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; fs 740 drivers/block/swim.c struct floppy_state *fs = disk->private_data; fs 741 drivers/block/swim.c struct swim __iomem *base = fs->swd->base; fs 743 drivers/block/swim.c swim_drive(base, fs->location); fs 745 drivers/block/swim.c if (fs->ejected) fs 746 drivers/block/swim.c setup_medium(fs); fs 748 drivers/block/swim.c if (!fs->disk_in) fs 751 drivers/block/swim.c fs->ejected = 0; fs 753 drivers/block/swim.c return !fs->disk_in; fs 780 drivers/block/swim.c struct floppy_state *fs = &swd->unit[swd->floppy_count]; fs 783 drivers/block/swim.c fs->location = location; fs 789 drivers/block/swim.c fs->type = HD_MEDIA; fs 790 drivers/block/swim.c fs->head_number = 2; fs 792 drivers/block/swim.c fs->ref_count = 0; fs 793 drivers/block/swim.c fs->ejected = 1; fs 208 drivers/block/swim3.c #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) fs 209 drivers/block/swim3.c #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) fs 210 drivers/block/swim3.c #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) fs 213 drivers/block/swim3.c #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) fs 236 drivers/block/swim3.c static void seek_track(struct floppy_state *fs, int n); fs 238 drivers/block/swim3.c static void act(struct floppy_state *fs); fs 245 drivers/block/swim3.c static int grab_drive(struct floppy_state *fs, enum swim_state state, fs 247 drivers/block/swim3.c static void release_drive(struct floppy_state *fs); fs 248 drivers/block/swim3.c static int fd_eject(struct floppy_state *fs); fs 257 drivers/block/swim3.c static bool swim3_end_request(struct floppy_state *fs, blk_status_t err, unsigned int nr_bytes) fs 259 drivers/block/swim3.c struct request *req = fs->cur_req; fs 269 drivers/block/swim3.c fs->cur_req = NULL; fs 273 drivers/block/swim3.c static void swim3_select(struct floppy_state *fs, int sel) fs 275 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 285 drivers/block/swim3.c static void swim3_action(struct floppy_state *fs, int action) fs 287 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 289 drivers/block/swim3.c swim3_select(fs, action); fs 297 drivers/block/swim3.c static int swim3_readbit(struct floppy_state *fs, int bit) fs 299 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 302 drivers/block/swim3.c swim3_select(fs, bit); fs 311 drivers/block/swim3.c struct floppy_state *fs = hctx->queue->queuedata; fs 316 drivers/block/swim3.c if (fs->cur_req || fs->state != idle) { fs 321 drivers/block/swim3.c fs->cur_req = req; fs 322 drivers/block/swim3.c if (fs->mdev->media_bay && fs 323 drivers/block/swim3.c check_media_bay(fs->mdev->media_bay) != MB_FD) { fs 325 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 328 drivers/block/swim3.c if (fs->ejected) { fs 330 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 334 drivers/block/swim3.c if (fs->write_prot < 0) fs 335 drivers/block/swim3.c fs->write_prot = swim3_readbit(fs, WRITE_PROT); fs 336 drivers/block/swim3.c if (fs->write_prot) { fs 338 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 348 drivers/block/swim3.c fs->req_cyl = ((long)blk_rq_pos(req)) / fs->secpercyl; fs 349 drivers/block/swim3.c x = ((long)blk_rq_pos(req)) % fs->secpercyl; fs 350 drivers/block/swim3.c fs->head = x / fs->secpertrack; fs 351 drivers/block/swim3.c fs->req_sector = x % fs->secpertrack + 1; fs 352 drivers/block/swim3.c fs->state = do_transfer; fs 353 drivers/block/swim3.c fs->retries = 0; fs 355 drivers/block/swim3.c act(fs); fs 362 drivers/block/swim3.c static void set_timeout(struct floppy_state *fs, int nticks, fs 365 drivers/block/swim3.c if (fs->timeout_pending) fs 366 drivers/block/swim3.c del_timer(&fs->timeout); fs 367 drivers/block/swim3.c fs->timeout.expires = jiffies + nticks; fs 368 drivers/block/swim3.c fs->timeout.function = proc; fs 369 drivers/block/swim3.c add_timer(&fs->timeout); fs 370 drivers/block/swim3.c fs->timeout_pending = 1; fs 373 drivers/block/swim3.c static inline void scan_track(struct floppy_state *fs) fs 375 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 377 drivers/block/swim3.c swim3_select(fs, READ_DATA_0); fs 383 drivers/block/swim3.c set_timeout(fs, HZ, scan_timeout); /* enable timeout */ fs 386 drivers/block/swim3.c static inline void seek_track(struct floppy_state *fs, int n) fs 388 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 391 drivers/block/swim3.c swim3_action(fs, SEEK_POSITIVE); fs 394 drivers/block/swim3.c swim3_action(fs, SEEK_NEGATIVE); fs 397 drivers/block/swim3.c fs->expect_cyl = (fs->cur_cyl >= 0)? fs->cur_cyl + n: -1; fs 398 drivers/block/swim3.c swim3_select(fs, STEP); fs 403 drivers/block/swim3.c set_timeout(fs, 3*HZ, seek_timeout); /* enable timeout */ fs 404 drivers/block/swim3.c fs->settle_time = 0; fs 416 drivers/block/swim3.c static inline void setup_transfer(struct floppy_state *fs) fs 419 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 420 drivers/block/swim3.c struct dbdma_cmd *cp = fs->dma_cmd; fs 421 drivers/block/swim3.c struct dbdma_regs __iomem *dr = fs->dma; fs 422 drivers/block/swim3.c struct request *req = fs->cur_req; fs 431 drivers/block/swim3.c n = fs->secpertrack - fs->req_sector + 1; fs 437 drivers/block/swim3.c fs->req_sector, fs->secpertrack, fs->head, n); fs 439 drivers/block/swim3.c fs->scount = n; fs 440 drivers/block/swim3.c swim3_select(fs, fs->head? READ_DATA_1: READ_DATA_0); fs 441 drivers/block/swim3.c out_8(&sw->sector, fs->req_sector); fs 467 drivers/block/swim3.c set_timeout(fs, 2*HZ, xfer_timeout); /* enable timeout */ fs 470 drivers/block/swim3.c static void act(struct floppy_state *fs) fs 474 drivers/block/swim3.c fs->state, fs->req_cyl, fs->cur_cyl); fs 476 drivers/block/swim3.c switch (fs->state) { fs 481 drivers/block/swim3.c if (swim3_readbit(fs, TRACK_ZERO)) { fs 483 drivers/block/swim3.c fs->cur_cyl = 0; fs 484 drivers/block/swim3.c if (fs->req_cyl == 0) fs 485 drivers/block/swim3.c fs->state = do_transfer; fs 487 drivers/block/swim3.c fs->state = seeking; fs 490 drivers/block/swim3.c scan_track(fs); fs 494 drivers/block/swim3.c if (fs->cur_cyl < 0) { fs 495 drivers/block/swim3.c fs->expect_cyl = -1; fs 496 drivers/block/swim3.c fs->state = locating; fs 499 drivers/block/swim3.c if (fs->req_cyl == fs->cur_cyl) { fs 501 drivers/block/swim3.c fs->state = do_transfer; fs 504 drivers/block/swim3.c seek_track(fs, fs->req_cyl - fs->cur_cyl); fs 509 drivers/block/swim3.c fs->settle_time = (HZ + 32) / 33; fs 510 drivers/block/swim3.c set_timeout(fs, fs->settle_time, settle_timeout); fs 514 drivers/block/swim3.c if (fs->cur_cyl != fs->req_cyl) { fs 515 drivers/block/swim3.c if (fs->retries > 5) { fs 517 drivers/block/swim3.c fs->req_cyl, fs->cur_cyl); fs 518 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 519 drivers/block/swim3.c fs->state = idle; fs 522 drivers/block/swim3.c fs->state = seeking; fs 525 drivers/block/swim3.c setup_transfer(fs); fs 529 drivers/block/swim3.c seek_track(fs, -5); fs 533 drivers/block/swim3.c swim3_err("Unknown state %d\n", fs->state); fs 541 drivers/block/swim3.c struct floppy_state *fs = from_timer(fs, t, timeout); fs 542 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 545 drivers/block/swim3.c swim3_dbg("* scan timeout, state=%d\n", fs->state); fs 548 drivers/block/swim3.c fs->timeout_pending = 0; fs 552 drivers/block/swim3.c fs->cur_cyl = -1; fs 553 drivers/block/swim3.c if (fs->retries > 5) { fs 554 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 555 drivers/block/swim3.c fs->state = idle; fs 557 drivers/block/swim3.c fs->state = jogging; fs 558 drivers/block/swim3.c act(fs); fs 565 drivers/block/swim3.c struct floppy_state *fs = from_timer(fs, t, timeout); fs 566 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 569 drivers/block/swim3.c swim3_dbg("* seek timeout, state=%d\n", fs->state); fs 572 drivers/block/swim3.c fs->timeout_pending = 0; fs 577 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 578 drivers/block/swim3.c fs->state = idle; fs 584 drivers/block/swim3.c struct floppy_state *fs = from_timer(fs, t, timeout); fs 585 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 588 drivers/block/swim3.c swim3_dbg("* settle timeout, state=%d\n", fs->state); fs 591 drivers/block/swim3.c fs->timeout_pending = 0; fs 592 drivers/block/swim3.c if (swim3_readbit(fs, SEEK_COMPLETE)) { fs 594 drivers/block/swim3.c fs->state = locating; fs 595 drivers/block/swim3.c act(fs); fs 599 drivers/block/swim3.c if (fs->settle_time < 2*HZ) { fs 600 drivers/block/swim3.c ++fs->settle_time; fs 601 drivers/block/swim3.c set_timeout(fs, 1, settle_timeout); fs 605 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 606 drivers/block/swim3.c fs->state = idle; fs 613 drivers/block/swim3.c struct floppy_state *fs = from_timer(fs, t, timeout); fs 614 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 615 drivers/block/swim3.c struct dbdma_regs __iomem *dr = fs->dma; fs 619 drivers/block/swim3.c swim3_dbg("* xfer timeout, state=%d\n", fs->state); fs 622 drivers/block/swim3.c fs->timeout_pending = 0; fs 631 drivers/block/swim3.c (rq_data_dir(fs->cur_req)==WRITE? "writ": "read"), fs 632 drivers/block/swim3.c (long)blk_rq_pos(fs->cur_req)); fs 633 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 634 drivers/block/swim3.c fs->state = idle; fs 640 drivers/block/swim3.c struct floppy_state *fs = (struct floppy_state *) dev_id; fs 641 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 647 drivers/block/swim3.c struct request *req = fs->cur_req; fs 649 drivers/block/swim3.c swim3_dbg("* interrupt, state=%d\n", fs->state); fs 654 drivers/block/swim3.c if ((intr & ERROR_INTR) && fs->state != do_transfer) fs 656 drivers/block/swim3.c fs->state, rq_data_dir(req), intr, err); fs 657 drivers/block/swim3.c switch (fs->state) { fs 663 drivers/block/swim3.c del_timer(&fs->timeout); fs 664 drivers/block/swim3.c fs->timeout_pending = 0; fs 667 drivers/block/swim3.c fs->cur_cyl = -1; fs 668 drivers/block/swim3.c if (fs->retries > 5) { fs 669 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 670 drivers/block/swim3.c fs->state = idle; fs 672 drivers/block/swim3.c fs->state = jogging; fs 673 drivers/block/swim3.c act(fs); fs 677 drivers/block/swim3.c fs->cur_cyl = sw->ctrack; fs 678 drivers/block/swim3.c fs->cur_sector = sw->csect; fs 679 drivers/block/swim3.c if (fs->expect_cyl != -1 && fs->expect_cyl != fs->cur_cyl) fs 681 drivers/block/swim3.c fs->expect_cyl, fs->cur_cyl); fs 682 drivers/block/swim3.c fs->state = do_transfer; fs 683 drivers/block/swim3.c act(fs); fs 692 drivers/block/swim3.c del_timer(&fs->timeout); fs 693 drivers/block/swim3.c fs->timeout_pending = 0; fs 694 drivers/block/swim3.c if (fs->state == seeking) fs 695 drivers/block/swim3.c ++fs->retries; fs 696 drivers/block/swim3.c fs->state = settling; fs 697 drivers/block/swim3.c act(fs); fs 702 drivers/block/swim3.c del_timer(&fs->timeout); fs 703 drivers/block/swim3.c fs->timeout_pending = 0; fs 704 drivers/block/swim3.c act(fs); fs 712 drivers/block/swim3.c del_timer(&fs->timeout); fs 713 drivers/block/swim3.c fs->timeout_pending = 0; fs 714 drivers/block/swim3.c dr = fs->dma; fs 715 drivers/block/swim3.c cp = fs->dma_cmd; fs 739 drivers/block/swim3.c n = fs->scount - 1 - resid / 512; fs 742 drivers/block/swim3.c fs->req_sector += n; fs 744 drivers/block/swim3.c if (fs->retries < 5) { fs 745 drivers/block/swim3.c ++fs->retries; fs 746 drivers/block/swim3.c act(fs); fs 751 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 752 drivers/block/swim3.c fs->state = idle; fs 759 drivers/block/swim3.c fs->state, rq_data_dir(req), intr, err); fs 760 drivers/block/swim3.c swim3_end_request(fs, BLK_STS_IOERR, 0); fs 761 drivers/block/swim3.c fs->state = idle; fs 764 drivers/block/swim3.c fs->retries = 0; fs 765 drivers/block/swim3.c if (swim3_end_request(fs, 0, fs->scount << 9)) { fs 766 drivers/block/swim3.c fs->req_sector += fs->scount; fs 767 drivers/block/swim3.c if (fs->req_sector > fs->secpertrack) { fs 768 drivers/block/swim3.c fs->req_sector -= fs->secpertrack; fs 769 drivers/block/swim3.c if (++fs->head > 1) { fs 770 drivers/block/swim3.c fs->head = 0; fs 771 drivers/block/swim3.c ++fs->req_cyl; fs 774 drivers/block/swim3.c act(fs); fs 776 drivers/block/swim3.c fs->state = idle; fs 780 drivers/block/swim3.c swim3_err("Don't know what to do in state %d\n", fs->state); fs 793 drivers/block/swim3.c static int grab_drive(struct floppy_state *fs, enum swim_state state, fs 801 drivers/block/swim3.c if (fs->state != idle && fs->state != available) { fs 802 drivers/block/swim3.c ++fs->wanted; fs 805 drivers/block/swim3.c wait_event_lock_irq(fs->wait, fs 806 drivers/block/swim3.c fs->state == available, fs 808 drivers/block/swim3.c else if (wait_event_interruptible_lock_irq(fs->wait, fs 809 drivers/block/swim3.c fs->state == available, fs 811 drivers/block/swim3.c --fs->wanted; fs 815 drivers/block/swim3.c --fs->wanted; fs 817 drivers/block/swim3.c fs->state = state; fs 823 drivers/block/swim3.c static void release_drive(struct floppy_state *fs) fs 825 drivers/block/swim3.c struct request_queue *q = disks[fs->index]->queue; fs 831 drivers/block/swim3.c fs->state = idle; fs 840 drivers/block/swim3.c static int fd_eject(struct floppy_state *fs) fs 844 drivers/block/swim3.c err = grab_drive(fs, ejecting, 1); fs 847 drivers/block/swim3.c swim3_action(fs, EJECT); fs 853 drivers/block/swim3.c swim3_select(fs, RELAX); fs 855 drivers/block/swim3.c if (swim3_readbit(fs, DISK_IN) == 0) fs 858 drivers/block/swim3.c swim3_select(fs, RELAX); fs 860 drivers/block/swim3.c fs->ejected = 1; fs 861 drivers/block/swim3.c release_drive(fs); fs 871 drivers/block/swim3.c struct floppy_state *fs = bdev->bd_disk->private_data; fs 877 drivers/block/swim3.c if (fs->mdev->media_bay && fs 878 drivers/block/swim3.c check_media_bay(fs->mdev->media_bay) != MB_FD) fs 883 drivers/block/swim3.c if (fs->ref_count != 1) fs 885 drivers/block/swim3.c err = fd_eject(fs); fs 910 drivers/block/swim3.c struct floppy_state *fs = bdev->bd_disk->private_data; fs 911 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 914 drivers/block/swim3.c if (fs->ref_count == 0) { fs 915 drivers/block/swim3.c if (fs->mdev->media_bay && fs 916 drivers/block/swim3.c check_media_bay(fs->mdev->media_bay) != MB_FD) fs 924 drivers/block/swim3.c swim3_action(fs, MOTOR_ON); fs 925 drivers/block/swim3.c fs->write_prot = -1; fs 926 drivers/block/swim3.c fs->cur_cyl = -1; fs 928 drivers/block/swim3.c if (n >= HZ/30 && swim3_readbit(fs, SEEK_COMPLETE)) fs 934 drivers/block/swim3.c swim3_select(fs, RELAX); fs 937 drivers/block/swim3.c if (err == 0 && (swim3_readbit(fs, SEEK_COMPLETE) == 0 fs 938 drivers/block/swim3.c || swim3_readbit(fs, DISK_IN) == 0)) fs 940 drivers/block/swim3.c swim3_action(fs, SETMFM); fs 941 drivers/block/swim3.c swim3_select(fs, RELAX); fs 943 drivers/block/swim3.c } else if (fs->ref_count == -1 || mode & FMODE_EXCL) fs 949 drivers/block/swim3.c if (fs->ejected) fs 954 drivers/block/swim3.c if (fs->write_prot < 0) fs 955 drivers/block/swim3.c fs->write_prot = swim3_readbit(fs, WRITE_PROT); fs 956 drivers/block/swim3.c if (fs->write_prot) fs 961 drivers/block/swim3.c if (fs->ref_count == 0) { fs 962 drivers/block/swim3.c swim3_action(fs, MOTOR_OFF); fs 964 drivers/block/swim3.c swim3_select(fs, RELAX); fs 970 drivers/block/swim3.c fs->ref_count = -1; fs 972 drivers/block/swim3.c ++fs->ref_count; fs 990 drivers/block/swim3.c struct floppy_state *fs = disk->private_data; fs 991 drivers/block/swim3.c struct swim3 __iomem *sw = fs->swim3; fs 994 drivers/block/swim3.c if (fs->ref_count > 0) fs 995 drivers/block/swim3.c --fs->ref_count; fs 996 drivers/block/swim3.c else if (fs->ref_count == -1) fs 997 drivers/block/swim3.c fs->ref_count = 0; fs 998 drivers/block/swim3.c if (fs->ref_count == 0) { fs 999 drivers/block/swim3.c swim3_action(fs, MOTOR_OFF); fs 1001 drivers/block/swim3.c swim3_select(fs, RELAX); fs 1009 drivers/block/swim3.c struct floppy_state *fs = disk->private_data; fs 1010 drivers/block/swim3.c return fs->ejected ? DISK_EVENT_MEDIA_CHANGE : 0; fs 1015 drivers/block/swim3.c struct floppy_state *fs = disk->private_data; fs 1019 drivers/block/swim3.c if (fs->mdev->media_bay && fs 1020 drivers/block/swim3.c check_media_bay(fs->mdev->media_bay) != MB_FD) fs 1023 drivers/block/swim3.c sw = fs->swim3; fs 1024 drivers/block/swim3.c grab_drive(fs, revalidating, 0); fs 1027 drivers/block/swim3.c swim3_action(fs, MOTOR_ON); /* necessary? */ fs 1028 drivers/block/swim3.c fs->write_prot = -1; fs 1029 drivers/block/swim3.c fs->cur_cyl = -1; fs 1032 drivers/block/swim3.c if (swim3_readbit(fs, SEEK_COMPLETE)) fs 1036 drivers/block/swim3.c swim3_select(fs, RELAX); fs 1039 drivers/block/swim3.c ret = swim3_readbit(fs, SEEK_COMPLETE) == 0 fs 1040 drivers/block/swim3.c || swim3_readbit(fs, DISK_IN) == 0; fs 1042 drivers/block/swim3.c swim3_action(fs, MOTOR_OFF); fs 1044 drivers/block/swim3.c fs->ejected = 0; fs 1045 drivers/block/swim3.c swim3_action(fs, SETMFM); fs 1047 drivers/block/swim3.c swim3_select(fs, RELAX); fs 1049 drivers/block/swim3.c release_drive(fs); fs 1067 drivers/block/swim3.c struct floppy_state *fs = macio_get_drvdata(mdev); fs 1070 drivers/block/swim3.c if (!fs) fs 1073 drivers/block/swim3.c sw = fs->swim3; fs 1087 drivers/block/swim3.c struct floppy_state *fs = &floppy_states[index]; fs 1090 drivers/block/swim3.c fs->mdev = mdev; fs 1091 drivers/block/swim3.c fs->index = index; fs 1111 drivers/block/swim3.c dev_set_drvdata(&mdev->ofdev.dev, fs); fs 1116 drivers/block/swim3.c fs->state = idle; fs 1117 drivers/block/swim3.c fs->swim3 = (struct swim3 __iomem *) fs 1119 drivers/block/swim3.c if (fs->swim3 == NULL) { fs 1124 drivers/block/swim3.c fs->dma = (struct dbdma_regs __iomem *) fs 1126 drivers/block/swim3.c if (fs->dma == NULL) { fs 1128 drivers/block/swim3.c iounmap(fs->swim3); fs 1132 drivers/block/swim3.c fs->swim3_intr = macio_irq(mdev, 0); fs 1133 drivers/block/swim3.c fs->dma_intr = macio_irq(mdev, 1); fs 1134 drivers/block/swim3.c fs->cur_cyl = -1; fs 1135 drivers/block/swim3.c fs->cur_sector = -1; fs 1136 drivers/block/swim3.c fs->secpercyl = 36; fs 1137 drivers/block/swim3.c fs->secpertrack = 18; fs 1138 drivers/block/swim3.c fs->total_secs = 2880; fs 1139 drivers/block/swim3.c init_waitqueue_head(&fs->wait); fs 1141 drivers/block/swim3.c fs->dma_cmd = (struct dbdma_cmd *) DBDMA_ALIGN(fs->dbdma_cmd_space); fs 1142 drivers/block/swim3.c memset(fs->dma_cmd, 0, 2 * sizeof(struct dbdma_cmd)); fs 1143 drivers/block/swim3.c fs->dma_cmd[1].command = cpu_to_le16(DBDMA_STOP); fs 1148 drivers/block/swim3.c if (request_irq(fs->swim3_intr, swim3_interrupt, 0, "SWIM3", fs)) { fs 1154 drivers/block/swim3.c timer_setup(&fs->timeout, NULL, 0); fs 1162 drivers/block/swim3.c iounmap(fs->dma); fs 1163 drivers/block/swim3.c iounmap(fs->swim3); fs 1175 drivers/block/swim3.c struct floppy_state *fs; fs 1194 drivers/block/swim3.c fs = &floppy_states[floppy_count]; fs 1195 drivers/block/swim3.c memset(fs, 0, sizeof(*fs)); fs 1197 drivers/block/swim3.c disk->queue = blk_mq_init_sq_queue(&fs->tag_set, &swim3_mq_ops, 2, fs 1205 drivers/block/swim3.c disk->queue->queuedata = fs; fs 1214 drivers/block/swim3.c disk->private_data = fs; fs 1227 drivers/block/swim3.c blk_mq_free_tag_set(&fs->tag_set); fs 72 drivers/clk/st/clkgen-fsyn.c unsigned long output, struct stm_fs *fs); fs 260 drivers/clk/st/clkgen-fsyn.c static int clk_fs660c32_vco_get_rate(unsigned long input, struct stm_fs *fs, fs 263 drivers/clk/st/clkgen-fsyn.c unsigned long nd = fs->ndiv + 16; /* ndiv value */ fs 288 drivers/clk/st/clkgen-fsyn.c unsigned long output, struct stm_fs *fs) fs 311 drivers/clk/st/clkgen-fsyn.c fs->ndiv = n - 16; /* Converting formula value to reg value */ fs 471 drivers/clk/st/clkgen-fsyn.c static void quadfs_fsynth_program_enable(struct st_clk_quadfs_fsynth *fs) fs 477 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, en[fs->chan], 1); fs 478 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, en[fs->chan], 0); fs 481 drivers/clk/st/clkgen-fsyn.c static void quadfs_fsynth_program_rate(struct st_clk_quadfs_fsynth *fs) fs 490 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, en[fs->chan], 0); fs 492 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, mdiv[fs->chan], fs->md); fs 493 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, pe[fs->chan], fs->pe); fs 494 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, sdiv[fs->chan], fs->sdiv); fs 496 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 497 drivers/clk/st/clkgen-fsyn.c spin_lock_irqsave(fs->lock, flags); fs 499 drivers/clk/st/clkgen-fsyn.c if (fs->data->nsdiv_present) fs 500 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, nsdiv[fs->chan], fs->nsdiv); fs 502 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 503 drivers/clk/st/clkgen-fsyn.c spin_unlock_irqrestore(fs->lock, flags); fs 508 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 513 drivers/clk/st/clkgen-fsyn.c quadfs_fsynth_program_rate(fs); fs 515 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 516 drivers/clk/st/clkgen-fsyn.c spin_lock_irqsave(fs->lock, flags); fs 518 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, nsb[fs->chan], !fs->data->standby_polarity); fs 520 drivers/clk/st/clkgen-fsyn.c if (fs->data->nrst_present) fs 521 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, nrst[fs->chan], 0); fs 523 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 524 drivers/clk/st/clkgen-fsyn.c spin_unlock_irqrestore(fs->lock, flags); fs 526 drivers/clk/st/clkgen-fsyn.c quadfs_fsynth_program_enable(fs); fs 533 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 538 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 539 drivers/clk/st/clkgen-fsyn.c spin_lock_irqsave(fs->lock, flags); fs 541 drivers/clk/st/clkgen-fsyn.c CLKGEN_WRITE(fs, nsb[fs->chan], fs->data->standby_polarity); fs 543 drivers/clk/st/clkgen-fsyn.c if (fs->lock) fs 544 drivers/clk/st/clkgen-fsyn.c spin_unlock_irqrestore(fs->lock, flags); fs 549 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 550 drivers/clk/st/clkgen-fsyn.c u32 nsb = CLKGEN_READ(fs, nsb[fs->chan]); fs 555 drivers/clk/st/clkgen-fsyn.c return fs->data->standby_polarity ? !nsb : !!nsb; fs 561 drivers/clk/st/clkgen-fsyn.c const struct stm_fs *fs, unsigned long *rate) fs 563 drivers/clk/st/clkgen-fsyn.c unsigned long s = (1 << fs->sdiv); fs 575 drivers/clk/st/clkgen-fsyn.c ns = (fs->nsdiv == 1) ? 1 : 3; fs 577 drivers/clk/st/clkgen-fsyn.c res = (P20 * (32 + fs->mdiv) + 32 * fs->pe) * s * ns; fs 586 drivers/clk/st/clkgen-fsyn.c struct stm_fs *fs) fs 611 drivers/clk/st/clkgen-fsyn.c fs->mdiv = m; fs 612 drivers/clk/st/clkgen-fsyn.c fs->pe = (unsigned long)*p; fs 613 drivers/clk/st/clkgen-fsyn.c fs->sdiv = si; fs 614 drivers/clk/st/clkgen-fsyn.c fs->nsdiv = 1; fs 621 drivers/clk/st/clkgen-fsyn.c unsigned long output, struct stm_fs *fs) fs 637 drivers/clk/st/clkgen-fsyn.c input, output, &p1, fs); fs 639 drivers/clk/st/clkgen-fsyn.c input, output, &p2, fs); fs 648 drivers/clk/st/clkgen-fsyn.c input, output, &p, fs); fs 657 drivers/clk/st/clkgen-fsyn.c fs_tmp.mdiv = fs->mdiv; fs 658 drivers/clk/st/clkgen-fsyn.c fs_tmp.sdiv = fs->sdiv; fs 659 drivers/clk/st/clkgen-fsyn.c fs_tmp.nsdiv = fs->nsdiv; fs 661 drivers/clk/st/clkgen-fsyn.c if (fs->pe > 2) fs 662 drivers/clk/st/clkgen-fsyn.c p2 = fs->pe - 2; fs 666 drivers/clk/st/clkgen-fsyn.c for (; p2 < 32768ll && (p2 <= (fs->pe + 2)); p2++) { fs 675 drivers/clk/st/clkgen-fsyn.c fs->pe = (unsigned long)p2; fs 684 drivers/clk/st/clkgen-fsyn.c static int quadfs_fsynt_get_hw_value_for_recalc(struct st_clk_quadfs_fsynth *fs, fs 690 drivers/clk/st/clkgen-fsyn.c params->mdiv = CLKGEN_READ(fs, mdiv[fs->chan]); fs 691 drivers/clk/st/clkgen-fsyn.c params->pe = CLKGEN_READ(fs, pe[fs->chan]); fs 692 drivers/clk/st/clkgen-fsyn.c params->sdiv = CLKGEN_READ(fs, sdiv[fs->chan]); fs 694 drivers/clk/st/clkgen-fsyn.c if (fs->data->nsdiv_present) fs 695 drivers/clk/st/clkgen-fsyn.c params->nsdiv = CLKGEN_READ(fs, nsdiv[fs->chan]); fs 705 drivers/clk/st/clkgen-fsyn.c fs->md = params->mdiv; fs 706 drivers/clk/st/clkgen-fsyn.c fs->pe = params->pe; fs 707 drivers/clk/st/clkgen-fsyn.c fs->sdiv = params->sdiv; fs 708 drivers/clk/st/clkgen-fsyn.c fs->nsdiv = params->nsdiv; fs 716 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 722 drivers/clk/st/clkgen-fsyn.c clk_fs_get_rate = fs->data->get_rate; fs 723 drivers/clk/st/clkgen-fsyn.c clk_fs_get_params = fs->data->get_params; fs 734 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 740 drivers/clk/st/clkgen-fsyn.c clk_fs_get_rate = fs->data->get_rate; fs 742 drivers/clk/st/clkgen-fsyn.c if (quadfs_fsynt_get_hw_value_for_recalc(fs, ¶ms)) fs 771 drivers/clk/st/clkgen-fsyn.c static void quadfs_program_and_enable(struct st_clk_quadfs_fsynth *fs, fs 774 drivers/clk/st/clkgen-fsyn.c fs->md = params->mdiv; fs 775 drivers/clk/st/clkgen-fsyn.c fs->pe = params->pe; fs 776 drivers/clk/st/clkgen-fsyn.c fs->sdiv = params->sdiv; fs 777 drivers/clk/st/clkgen-fsyn.c fs->nsdiv = params->nsdiv; fs 783 drivers/clk/st/clkgen-fsyn.c quadfs_fsynth_program_rate(fs); fs 784 drivers/clk/st/clkgen-fsyn.c quadfs_fsynth_program_enable(fs); fs 790 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs = to_quadfs_fsynth(hw); fs 804 drivers/clk/st/clkgen-fsyn.c quadfs_program_and_enable(fs, ¶ms); fs 825 drivers/clk/st/clkgen-fsyn.c struct st_clk_quadfs_fsynth *fs; fs 835 drivers/clk/st/clkgen-fsyn.c fs = kzalloc(sizeof(*fs), GFP_KERNEL); fs 836 drivers/clk/st/clkgen-fsyn.c if (!fs) fs 845 drivers/clk/st/clkgen-fsyn.c fs->data = quadfs; fs 846 drivers/clk/st/clkgen-fsyn.c fs->regs_base = reg; fs 847 drivers/clk/st/clkgen-fsyn.c fs->chan = chan; fs 848 drivers/clk/st/clkgen-fsyn.c fs->lock = lock; fs 849 drivers/clk/st/clkgen-fsyn.c fs->hw.init = &init; fs 851 drivers/clk/st/clkgen-fsyn.c clk = clk_register(NULL, &fs->hw); fs 854 drivers/clk/st/clkgen-fsyn.c kfree(fs); fs 17 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c static void adv7511_calc_cts_n(unsigned int f_tmds, unsigned int fs, fs 20 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c switch (fs) { fs 32 drivers/gpu/drm/bridge/adv7511/adv7511_audio.c *cts = ((f_tmds * *n) / (128 * fs)) * 1000; fs 921 drivers/gpu/drm/i2c/tda998x_drv.c static u8 tda998x_get_adiv(struct tda998x_priv *priv, unsigned int fs) fs 923 drivers/gpu/drm/i2c/tda998x_drv.c unsigned long min_audio_clk = fs * 128; fs 933 drivers/gpu/drm/i2c/tda998x_drv.c ser_clk, fs, min_audio_clk, adiv); fs 380 drivers/gpu/drm/zte/zx_hdmi.c static inline int zx_hdmi_audio_get_n(unsigned int fs) fs 384 drivers/gpu/drm/zte/zx_hdmi.c if (fs && (fs % 44100) == 0) fs 385 drivers/gpu/drm/zte/zx_hdmi.c n = 6272 * (fs / 44100); fs 387 drivers/gpu/drm/zte/zx_hdmi.c n = fs * 128 / 1000; fs 303 drivers/i3c/master/i3c-master-cdns.c #define SIR_MAP_DEV_SHIFT(d, fs) ((fs) + (((d) % 2) ? 16 : 0)) fs 131 drivers/iio/accel/st_accel_core.c .fs = { fs 210 drivers/iio/accel/st_accel_core.c .fs = { fs 294 drivers/iio/accel/st_accel_core.c .fs = { fs 379 drivers/iio/accel/st_accel_core.c .fs = { fs 449 drivers/iio/accel/st_accel_core.c .fs = { fs 523 drivers/iio/accel/st_accel_core.c .fs = { fs 593 drivers/iio/accel/st_accel_core.c .fs = { fs 654 drivers/iio/accel/st_accel_core.c .fs = { fs 723 drivers/iio/accel/st_accel_core.c .fs = { fs 799 drivers/iio/accel/st_accel_core.c .fs = { fs 863 drivers/iio/accel/st_accel_core.c .fs = { fs 1209 drivers/iio/accel/st_accel_core.c &adata->sensor_settings->fs.fs_avl[0]; fs 117 drivers/iio/common/st_sensors/st_sensors_core.c unsigned int fs, int *index_fs_avl) fs 122 drivers/iio/common/st_sensors/st_sensors_core.c if (sensor_settings->fs.fs_avl[i].num == 0) fs 125 drivers/iio/common/st_sensors/st_sensors_core.c if (sensor_settings->fs.fs_avl[i].num == fs) { fs 135 drivers/iio/common/st_sensors/st_sensors_core.c static int st_sensors_set_fullscale(struct iio_dev *indio_dev, unsigned int fs) fs 140 drivers/iio/common/st_sensors/st_sensors_core.c if (sdata->sensor_settings->fs.addr == 0) fs 143 drivers/iio/common/st_sensors/st_sensors_core.c err = st_sensors_match_fs(sdata->sensor_settings, fs, &i); fs 148 drivers/iio/common/st_sensors/st_sensors_core.c sdata->sensor_settings->fs.addr, fs 149 drivers/iio/common/st_sensors/st_sensors_core.c sdata->sensor_settings->fs.mask, fs 150 drivers/iio/common/st_sensors/st_sensors_core.c sdata->sensor_settings->fs.fs_avl[i].value); fs 155 drivers/iio/common/st_sensors/st_sensors_core.c &sdata->sensor_settings->fs.fs_avl[i]; fs 518 drivers/iio/common/st_sensors/st_sensors_core.c if ((sdata->sensor_settings->fs.fs_avl[i].gain == scale) && fs 519 drivers/iio/common/st_sensors/st_sensors_core.c (sdata->sensor_settings->fs.fs_avl[i].gain != 0)) { fs 528 drivers/iio/common/st_sensors/st_sensors_core.c sdata->sensor_settings->fs.fs_avl[i].num); fs 689 drivers/iio/common/st_sensors/st_sensors_core.c if (sdata->sensor_settings->fs.fs_avl[i].num == 0) fs 692 drivers/iio/common/st_sensors/st_sensors_core.c q = sdata->sensor_settings->fs.fs_avl[i].gain / 1000000; fs 693 drivers/iio/common/st_sensors/st_sensors_core.c r = sdata->sensor_settings->fs.fs_avl[i].gain % 1000000; fs 86 drivers/iio/gyro/st_gyro_core.c .fs = { fs 164 drivers/iio/gyro/st_gyro_core.c .fs = { fs 238 drivers/iio/gyro/st_gyro_core.c .fs = { fs 312 drivers/iio/gyro/st_gyro_core.c .fs = { fs 482 drivers/iio/gyro/st_gyro_core.c &gdata->sensor_settings->fs.fs_avl[0]; fs 133 drivers/iio/magnetometer/st_magn_core.c .fs = { fs 212 drivers/iio/magnetometer/st_magn_core.c .fs = { fs 291 drivers/iio/magnetometer/st_magn_core.c .fs = { fs 359 drivers/iio/magnetometer/st_magn_core.c .fs = { fs 511 drivers/iio/magnetometer/st_magn_core.c &mdata->sensor_settings->fs.fs_avl[0]; fs 261 drivers/iio/pressure/st_pressure_core.c .fs = { fs 333 drivers/iio/pressure/st_pressure_core.c .fs = { fs 386 drivers/iio/pressure/st_pressure_core.c .fs = { fs 455 drivers/iio/pressure/st_pressure_core.c .fs = { fs 524 drivers/iio/pressure/st_pressure_core.c .fs = { fs 714 drivers/iio/pressure/st_pressure_core.c &press_data->sensor_settings->fs.fs_avl[0]; fs 766 drivers/infiniband/hw/hfi1/pcie.c static int load_eq_table(struct hfi1_devdata *dd, const u8 eq[11][3], u8 fs, fs 781 drivers/infiniband/hw/hfi1/pcie.c c0 = fs - (eq[i][PREC] / div) - (eq[i][POST] / div); fs 988 drivers/infiniband/hw/hfi1/pcie.c u32 reg32, fs, lf; fs 1133 drivers/infiniband/hw/hfi1/pcie.c fs = 24; fs 1143 drivers/infiniband/hw/hfi1/pcie.c fs = 29; fs 1153 drivers/infiniband/hw/hfi1/pcie.c (fs << fs 1157 drivers/infiniband/hw/hfi1/pcie.c ret = load_eq_table(dd, eq, fs, div); fs 778 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_flow_state *fs = &qpriv->flow_state; fs 784 drivers/infiniband/hw/hfi1/tid_rdma.c if (fs->index != RXE_NUM_TID_FLOWS) fs 791 drivers/infiniband/hw/hfi1/tid_rdma.c ret = kern_reserve_flow(rcd, fs->last_index); fs 794 drivers/infiniband/hw/hfi1/tid_rdma.c fs->index = ret; fs 795 drivers/infiniband/hw/hfi1/tid_rdma.c fs->last_index = fs->index; fs 798 drivers/infiniband/hw/hfi1/tid_rdma.c if (fs->generation != KERN_GENERATION_RESERVED) fs 799 drivers/infiniband/hw/hfi1/tid_rdma.c rcd->flows[fs->index].generation = fs->generation; fs 800 drivers/infiniband/hw/hfi1/tid_rdma.c fs->generation = kern_setup_hw_flow(rcd, fs->index); fs 801 drivers/infiniband/hw/hfi1/tid_rdma.c fs->psn = 0; fs 818 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_flow_state *fs = &qpriv->flow_state; fs 822 drivers/infiniband/hw/hfi1/tid_rdma.c if (fs->index >= RXE_NUM_TID_FLOWS) fs 825 drivers/infiniband/hw/hfi1/tid_rdma.c kern_clear_hw_flow(rcd, fs->index); fs 826 drivers/infiniband/hw/hfi1/tid_rdma.c clear_bit(fs->index, &rcd->flow_mask); fs 827 drivers/infiniband/hw/hfi1/tid_rdma.c fs->index = RXE_NUM_TID_FLOWS; fs 828 drivers/infiniband/hw/hfi1/tid_rdma.c fs->psn = 0; fs 829 drivers/infiniband/hw/hfi1/tid_rdma.c fs->generation = KERN_GENERATION_RESERVED; fs 3158 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_flow_state *fs; fs 3167 drivers/infiniband/hw/hfi1/tid_rdma.c fs = &qpriv->flow_state; fs 3168 drivers/infiniband/hw/hfi1/tid_rdma.c if (fs->index != RXE_NUM_TID_FLOWS) fs 4418 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_flow_state *fs = &qpriv->flow_state; fs 4431 drivers/infiniband/hw/hfi1/tid_rdma.c *bth2 = mask_psn((fs->generation << fs 4866 drivers/infiniband/hw/hfi1/tid_rdma.c struct tid_flow_state *fs = &qpriv->flow_state; fs 4877 drivers/infiniband/hw/hfi1/tid_rdma.c gen_next = (fs->generation == KERN_GENERATION_RESERVED) ? fs 4878 drivers/infiniband/hw/hfi1/tid_rdma.c generation : kern_flow_generation_next(fs->generation); fs 4891 drivers/infiniband/hw/hfi1/tid_rdma.c if (fs->index >= RXE_NUM_TID_FLOWS) { fs 4896 drivers/infiniband/hw/hfi1/tid_rdma.c fs->generation = generation; fs 4899 drivers/infiniband/hw/hfi1/tid_rdma.c rcd->flows[fs->index].generation = generation; fs 4900 drivers/infiniband/hw/hfi1/tid_rdma.c fs->generation = kern_setup_hw_flow(rcd, fs->index); fs 4902 drivers/infiniband/hw/hfi1/tid_rdma.c fs->psn = 0; fs 4939 drivers/infiniband/hw/hfi1/tid_rdma.c flow->flow_state.generation = fs->generation; fs 4940 drivers/infiniband/hw/hfi1/tid_rdma.c flow->flow_state.spsn = fs->psn; fs 4946 drivers/infiniband/hw/hfi1/tid_rdma.c fs->psn += flow->npkts; fs 440 drivers/isdn/hardware/mISDN/avmfritz.c int count, fs, cnt = 0, idx; fs 447 drivers/isdn/hardware/mISDN/avmfritz.c fs = (fc->type == AVM_FRITZ_PCIV2) ? fs 452 drivers/isdn/hardware/mISDN/avmfritz.c count = fs; fs 462 drivers/isdn/hardware/mISDN/avmfritz.c if (count > fs) { fs 463 drivers/isdn/hardware/mISDN/avmfritz.c count = fs; fs 476 drivers/isdn/hardware/mISDN/avmfritz.c hdlc->ctrl.sr.xml = ((count == fs) ? 0 : count); fs 526 drivers/isdn/hardware/mISDN/avmfritz.c int len, fs; fs 534 drivers/isdn/hardware/mISDN/avmfritz.c fs = HDLC_FIFO_SIZE_V2; fs 537 drivers/isdn/hardware/mISDN/avmfritz.c fs = HDLC_FIFO_SIZE_V1; fs 553 drivers/isdn/hardware/mISDN/avmfritz.c len = fs; fs 108 drivers/media/dvb-frontends/atbm8830.c u32 fs = priv->config->osc_clk_freq; fs 115 drivers/media/dvb-frontends/atbm8830.c t = (u64) 2 * 31416 * (freq - fs); fs 117 drivers/media/dvb-frontends/atbm8830.c do_div(t, fs); fs 140 drivers/media/dvb-frontends/si21xx.c int fs; /*Sampling rate of the ADC in MHz*/ fs 367 drivers/media/dvb-frontends/si21xx.c state->fs; fs 834 drivers/media/dvb-frontends/si21xx.c state->fs = sample_rate;/*ADC MHz*/ fs 115 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size *fs, fs 118 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf->width = fs->width; fs 119 drivers/media/i2c/s5c73m3/s5c73m3-core.c mf->height = fs->height; fs 799 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size *fs; fs 804 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = s5c73m3_resolutions[idx]; fs 807 drivers/media/i2c/s5c73m3/s5c73m3-core.c int dist = abs(fs->width - fmt->width) + fs 808 drivers/media/i2c/s5c73m3/s5c73m3-core.c abs(fs->height - fmt->height); fs 811 drivers/media/i2c/s5c73m3/s5c73m3-core.c best_fs = fs; fs 813 drivers/media/i2c/s5c73m3/s5c73m3-core.c ++fs; fs 822 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size **fs) fs 829 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = s5c73m3_find_frame_size(&fmt->format, RES_ISP); fs 833 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = s5c73m3_find_frame_size(&fmt->format, RES_JPEG); fs 844 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = state->oif_pix_size[RES_ISP]; fs 846 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = s5c73m3_find_frame_size( fs 853 drivers/media/i2c/s5c73m3/s5c73m3-core.c s5c73m3_fill_mbus_fmt(&fmt->format, *fs, code); fs 859 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size **fs) fs 864 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = s5c73m3_find_frame_size(&fmt->format, RES_ISP); fs 867 drivers/media/i2c/s5c73m3/s5c73m3-core.c *fs = s5c73m3_find_frame_size(&fmt->format, RES_JPEG); fs 871 drivers/media/i2c/s5c73m3/s5c73m3-core.c s5c73m3_fill_mbus_fmt(&fmt->format, *fs, code); fs 991 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size *fs; fs 1004 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->sensor_pix_size[RES_ISP]; fs 1008 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->sensor_pix_size[RES_JPEG]; fs 1014 drivers/media/i2c/s5c73m3/s5c73m3-core.c s5c73m3_fill_mbus_fmt(&fmt->format, fs, code); fs 1025 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size *fs; fs 1038 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->oif_pix_size[RES_ISP]; fs 1042 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->oif_pix_size[RES_JPEG]; fs 1046 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->oif_pix_size[RES_ISP]; fs 1052 drivers/media/i2c/s5c73m3/s5c73m3-core.c s5c73m3_fill_mbus_fmt(&fmt->format, fs, code); fs 1268 drivers/media/i2c/s5c73m3/s5c73m3-core.c const struct s5c73m3_frame_size *fs; fs 1270 drivers/media/i2c/s5c73m3/s5c73m3-core.c fs = state->oif_pix_size[RES_ISP]; fs 1271 drivers/media/i2c/s5c73m3/s5c73m3-core.c w = fs->width; fs 1272 drivers/media/i2c/s5c73m3/s5c73m3-core.c h = fs->height; fs 768 drivers/media/platform/qcom/venus/helpers.c struct hfi_framesize fs; fs 770 drivers/media/platform/qcom/venus/helpers.c fs.buffer_type = HFI_BUFFER_INPUT; fs 771 drivers/media/platform/qcom/venus/helpers.c fs.width = width; fs 772 drivers/media/platform/qcom/venus/helpers.c fs.height = height; fs 774 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &fs); fs 783 drivers/media/platform/qcom/venus/helpers.c struct hfi_framesize fs; fs 785 drivers/media/platform/qcom/venus/helpers.c fs.buffer_type = buftype; fs 786 drivers/media/platform/qcom/venus/helpers.c fs.width = width; fs 787 drivers/media/platform/qcom/venus/helpers.c fs.height = height; fs 789 drivers/media/platform/qcom/venus/helpers.c return hfi_session_set_property(inst, ptype, &fs); fs 2053 drivers/media/usb/dvb-usb/dib0700_devices.c u32 fcp = 0, fs = 0, fdem = 0, fmem = 0; fs 2083 drivers/media/usb/dvb-usb/dib0700_devices.c fs = fdem / 4; fs 2086 drivers/media/usb/dvb-usb/dib0700_devices.c if ((fdem >= fdem_min) && (fmem <= fmem_max) && (fs >= fe->dtv_property_cache.bandwidth_hz / 1000)) { fs 2089 drivers/media/usb/dvb-usb/dib0700_devices.c for (harmonic_id = (fe->dtv_property_cache.frequency / (1000 * fs)); harmonic_id <= ((fe->dtv_property_cache.frequency / (1000 * fs)) + 1); harmonic_id++) { fs 2090 drivers/media/usb/dvb-usb/dib0700_devices.c if (((fs * harmonic_id) >= (fe->dtv_property_cache.frequency / 1000 - (fe->dtv_property_cache.bandwidth_hz / 2000))) && ((fs * harmonic_id) <= (fe->dtv_property_cache.frequency / 1000 + (fe->dtv_property_cache.bandwidth_hz / 2000)))) { fs 2102 drivers/media/usb/dvb-usb/dib0700_devices.c deb_info("RF %6d; BW %6d; Xtal %6d; Fmem %6d; Fdem %6d; Fs %6d; Prediv %2d; Loopdiv %2d; Timf %8d;", fe->dtv_property_cache.frequency, fe->dtv_property_cache.bandwidth_hz, xtal, fmem, fdem, fs, prediv, loopdiv, adc->timf); fs 2567 drivers/media/usb/dvb-usb/dib0700_devices.c u32 fcp = 0, fs = 0, fdem = 0; fs 2596 drivers/media/usb/dvb-usb/dib0700_devices.c fs = fdem / 4; fs 2599 drivers/media/usb/dvb-usb/dib0700_devices.c if ((fdem >= fdem_min) && (fdem <= fdem_max) && (fs >= fe->dtv_property_cache.bandwidth_hz/1000)) { fs 2602 drivers/media/usb/dvb-usb/dib0700_devices.c for (harmonic_id = (fe->dtv_property_cache.frequency / (1000*fs)) ; harmonic_id <= ((fe->dtv_property_cache.frequency / (1000*fs))+1) ; harmonic_id++) { fs 2603 drivers/media/usb/dvb-usb/dib0700_devices.c if (((fs*harmonic_id) >= ((fe->dtv_property_cache.frequency/1000) - (fe->dtv_property_cache.bandwidth_hz/2000))) && ((fs*harmonic_id) <= ((fe->dtv_property_cache.frequency/1000) + (fe->dtv_property_cache.bandwidth_hz/2000)))) { fs 122 drivers/mtd/parsers/afs.c struct footer_v1 fs; fs 142 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(fs); fs 143 drivers/mtd/parsers/afs.c ret = mtd_read(mtd, ptr, sizeof(fs), &sz, (u_char *)&fs); fs 144 drivers/mtd/parsers/afs.c if (ret >= 0 && sz != sizeof(fs)) fs 154 drivers/mtd/parsers/afs.c if (word_sum(&fs, sizeof(fs) / sizeof(u32)) != 0xffffffff) fs 160 drivers/mtd/parsers/afs.c if (fs.type == 2) fs 163 drivers/mtd/parsers/afs.c iis_ptr = fs.image_info_base & mask; fs 164 drivers/mtd/parsers/afs.c img_ptr = fs.image_start & mask; fs 22 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec fs; fs 336 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec *fs) fs 350 drivers/net/dsa/bcm_sf2_cfp.c switch (fs->flow_type & ~FLOW_EXT) { fs 361 drivers/net/dsa/bcm_sf2_cfp.c ip_frag = !!(be32_to_cpu(fs->h_ext.data[0]) & 1); fs 364 drivers/net/dsa/bcm_sf2_cfp.c if (fs->location == RX_CLS_LOC_ANY) fs 368 drivers/net/dsa/bcm_sf2_cfp.c rule_index = fs->location; fs 373 drivers/net/dsa/bcm_sf2_cfp.c input.fs = fs; fs 460 drivers/net/dsa/bcm_sf2_cfp.c fs->location = rule_index; fs 548 drivers/net/dsa/bcm_sf2_cfp.c if (rule->port == port && rule->fs.location == location) fs 556 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec *fs) fs 570 drivers/net/dsa/bcm_sf2_cfp.c if (rule->fs.flow_type != fs->flow_type || fs 571 drivers/net/dsa/bcm_sf2_cfp.c rule->fs.ring_cookie != fs->ring_cookie || fs 572 drivers/net/dsa/bcm_sf2_cfp.c rule->fs.h_ext.data[0] != fs->h_ext.data[0]) fs 575 drivers/net/dsa/bcm_sf2_cfp.c switch (fs->flow_type & ~FLOW_EXT) { fs 588 drivers/net/dsa/bcm_sf2_cfp.c ret = memcmp(&rule->fs.h_u, &fs->h_u, fs_size); fs 589 drivers/net/dsa/bcm_sf2_cfp.c ret |= memcmp(&rule->fs.m_u, &fs->m_u, fs_size); fs 600 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec *fs) fs 613 drivers/net/dsa/bcm_sf2_cfp.c switch (fs->flow_type & ~FLOW_EXT) { fs 624 drivers/net/dsa/bcm_sf2_cfp.c ip_frag = !!(be32_to_cpu(fs->h_ext.data[0]) & 1); fs 645 drivers/net/dsa/bcm_sf2_cfp.c if (fs->location == RX_CLS_LOC_ANY) fs 649 drivers/net/dsa/bcm_sf2_cfp.c rule_index[1] = fs->location; fs 665 drivers/net/dsa/bcm_sf2_cfp.c input.fs = fs; fs 809 drivers/net/dsa/bcm_sf2_cfp.c fs->location = rule_index[1]; fs 821 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec *fs) fs 825 drivers/net/dsa/bcm_sf2_cfp.c __u64 ring_cookie = fs->ring_cookie; fs 854 drivers/net/dsa/bcm_sf2_cfp.c switch (fs->flow_type & ~FLOW_EXT) { fs 858 drivers/net/dsa/bcm_sf2_cfp.c queue_num, fs); fs 863 drivers/net/dsa/bcm_sf2_cfp.c queue_num, fs); fs 874 drivers/net/dsa/bcm_sf2_cfp.c struct ethtool_rx_flow_spec *fs) fs 881 drivers/net/dsa/bcm_sf2_cfp.c if ((fs->flow_type & FLOW_EXT) && (fs->m_ext.vlan_etype || fs 882 drivers/net/dsa/bcm_sf2_cfp.c fs->m_ext.data[1])) fs 885 drivers/net/dsa/bcm_sf2_cfp.c if (fs->location != RX_CLS_LOC_ANY && fs 886 drivers/net/dsa/bcm_sf2_cfp.c fs->location > bcm_sf2_cfp_rule_size(priv)) fs 889 drivers/net/dsa/bcm_sf2_cfp.c if (fs->location != RX_CLS_LOC_ANY && fs 890 drivers/net/dsa/bcm_sf2_cfp.c test_bit(fs->location, priv->cfp.used)) fs 893 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_cmp(priv, port, fs); fs 901 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_insert(ds, port, fs); fs 908 drivers/net/dsa/bcm_sf2_cfp.c memcpy(&rule->fs, fs, sizeof(*fs)); fs 1013 drivers/net/dsa/bcm_sf2_cfp.c rule = bcm_sf2_cfp_rule_find(priv, port, nfc->fs.location); fs 1017 drivers/net/dsa/bcm_sf2_cfp.c memcpy(&nfc->fs, &rule->fs, sizeof(rule->fs)); fs 1019 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_invert_masks(&nfc->fs); fs 1100 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_set(ds, port, &nfc->fs); fs 1104 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_del(priv, port, nfc->fs.location); fs 1123 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_del(priv, port, nfc->fs.location); fs 1165 drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_del(priv, rule->port, rule->fs.location); fs 1188 drivers/net/dsa/bcm_sf2_cfp.c rule->fs.location); fs 1194 drivers/net/dsa/bcm_sf2_cfp.c ret = bcm_sf2_cfp_rule_insert(ds, rule->port, &rule->fs); fs 1576 drivers/net/dsa/mv88e6xxx/chip.c struct ethtool_rx_flow_spec *fs) fs 1578 drivers/net/dsa/mv88e6xxx/chip.c struct ethhdr *mac_entry = &fs->h_u.ether_spec; fs 1579 drivers/net/dsa/mv88e6xxx/chip.c struct ethhdr *mac_mask = &fs->m_u.ether_spec; fs 1588 drivers/net/dsa/mv88e6xxx/chip.c if (fs->location != RX_CLS_LOC_ANY) fs 1591 drivers/net/dsa/mv88e6xxx/chip.c if (fs->ring_cookie == RX_CLS_FLOW_DISC) fs 1596 drivers/net/dsa/mv88e6xxx/chip.c switch (fs->flow_type & ~FLOW_EXT) { fs 1615 drivers/net/dsa/mv88e6xxx/chip.c if ((fs->flow_type & FLOW_EXT) && fs->m_ext.vlan_tci) { fs 1616 drivers/net/dsa/mv88e6xxx/chip.c if (fs->m_ext.vlan_tci != 0xffff) fs 1618 drivers/net/dsa/mv88e6xxx/chip.c vid = be16_to_cpu(fs->h_ext.vlan_tci) & VLAN_VID_MASK; fs 1632 drivers/net/dsa/mv88e6xxx/chip.c fs->location = 0; fs 1633 drivers/net/dsa/mv88e6xxx/chip.c err = idr_alloc_u32(&chip->policies, policy, &fs->location, 0xffffffff, fs 1640 drivers/net/dsa/mv88e6xxx/chip.c memcpy(&policy->fs, fs, sizeof(*fs)); fs 1649 drivers/net/dsa/mv88e6xxx/chip.c idr_remove(&chip->policies, fs->location); fs 1660 drivers/net/dsa/mv88e6xxx/chip.c struct ethtool_rx_flow_spec *fs = &rxnfc->fs; fs 1680 drivers/net/dsa/mv88e6xxx/chip.c policy = idr_find(&chip->policies, fs->location); fs 1682 drivers/net/dsa/mv88e6xxx/chip.c memcpy(fs, &policy->fs, sizeof(*fs)); fs 1707 drivers/net/dsa/mv88e6xxx/chip.c struct ethtool_rx_flow_spec *fs = &rxnfc->fs; fs 1716 drivers/net/dsa/mv88e6xxx/chip.c err = mv88e6xxx_policy_insert(chip, port, fs); fs 1720 drivers/net/dsa/mv88e6xxx/chip.c policy = idr_remove(&chip->policies, fs->location); fs 214 drivers/net/dsa/mv88e6xxx/chip.h struct ethtool_rx_flow_spec fs; fs 664 drivers/net/ethernet/apple/mace.c int intr, fs, i, stat, x; fs 687 drivers/net/ethernet/apple/mace.c fs = in_8(&mb->xmtfs); fs 714 drivers/net/ethernet/apple/mace.c fs = in_8(&mb->xmtfs); fs 715 drivers/net/ethernet/apple/mace.c if ((fs & XMTSV) == 0) { fs 717 drivers/net/ethernet/apple/mace.c fs, xcount, dstat); fs 726 drivers/net/ethernet/apple/mace.c if ((fs & (UFLO|LCOL|LCAR|RTRY)) || (dstat & DEAD) || xcount == 0) { fs 754 drivers/net/ethernet/apple/mace.c fs, xcount, dstat); fs 758 drivers/net/ethernet/apple/mace.c if (fs & (UFLO|LCOL|LCAR|RTRY)) { fs 760 drivers/net/ethernet/apple/mace.c if (fs & LCAR) fs 762 drivers/net/ethernet/apple/mace.c if (fs & (UFLO|LCOL|RTRY)) fs 773 drivers/net/ethernet/apple/mace.c mace_last_fs = fs; fs 557 drivers/net/ethernet/apple/macmace.c int intr, fs; fs 567 drivers/net/ethernet/apple/macmace.c fs = mb->xmtfs; fs 568 drivers/net/ethernet/apple/macmace.c if ((fs & XMTSV) == 0) { fs 569 drivers/net/ethernet/apple/macmace.c printk(KERN_ERR "macmace: xmtfs not valid! (fs=%x)\n", fs); fs 578 drivers/net/ethernet/apple/macmace.c printk(KERN_DEBUG "macmace: tx ring ran out? (fs=%x)\n", fs); fs 581 drivers/net/ethernet/apple/macmace.c if (fs & (UFLO|LCOL|LCAR|RTRY)) { fs 583 drivers/net/ethernet/apple/macmace.c if (fs & LCAR) fs 585 drivers/net/ethernet/apple/macmace.c else if (fs & (UFLO|LCOL|RTRY)) { fs 438 drivers/net/ethernet/aquantia/atlantic/aq_filters.c cmd.fs.location = rule->aq_fsp.location; fs 675 drivers/net/ethernet/aquantia/atlantic/aq_filters.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 719 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if (rule->aq_fsp.location == cmd->fs.location) fs 723 drivers/net/ethernet/aquantia/atlantic/aq_filters.c if (rule && rule->aq_fsp.location == cmd->fs.location) { fs 736 drivers/net/ethernet/aquantia/atlantic/aq_filters.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 2108 drivers/net/ethernet/broadcom/bcmsysport.c index = bcm_sysport_rule_find(priv, nfc->fs.location); fs 2112 drivers/net/ethernet/broadcom/bcmsysport.c nfc->fs.ring_cookie = RX_CLS_FLOW_WAKE; fs 2126 drivers/net/ethernet/broadcom/bcmsysport.c if (nfc->fs.location > RXCHK_BRCM_TAG_CID_MASK) fs 2130 drivers/net/ethernet/broadcom/bcmsysport.c if (nfc->fs.ring_cookie != RX_CLS_FLOW_WAKE) fs 2147 drivers/net/ethernet/broadcom/bcmsysport.c reg |= nfc->fs.location << RXCHK_BRCM_TAG_CID_SHIFT; fs 2151 drivers/net/ethernet/broadcom/bcmsysport.c priv->filters_loc[index] = nfc->fs.location; fs 2204 drivers/net/ethernet/broadcom/bcmsysport.c ret = bcm_sysport_rule_del(priv, nfc->fs.location); fs 926 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c struct ethtool_rx_flow_spec *fs = fs 927 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 932 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (fs->location >= BNXT_NTP_FLTR_MAX_FLTR) fs 941 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c if (fltr->sw_id == fs->location) fs 952 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->flow_type = TCP_V4_FLOW; fs 954 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->flow_type = UDP_V4_FLOW; fs 958 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; fs 959 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); fs 961 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; fs 962 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); fs 964 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; fs 965 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); fs 967 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; fs 968 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); fs 973 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->flow_type = TCP_V6_FLOW; fs 975 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->flow_type = UDP_V6_FLOW; fs 979 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6src[0] = fs 981 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6dst[0] = fs 984 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); fs 985 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip6_spec.ip6dst[i] = cpu_to_be32(~0); fs 987 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip6_spec.psrc = fkeys->ports.src; fs 988 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(~0); fs 990 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->h_u.tcp_ip6_spec.pdst = fkeys->ports.dst; fs 991 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(~0); fs 994 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c fs->ring_cookie = fltr->rxq; fs 1146 drivers/net/ethernet/cadence/macb.h struct ethtool_rx_flow_spec fs; fs 2875 drivers/net/ethernet/cadence/macb_main.c struct ethtool_rx_flow_spec *fs = &item->fs; fs 2878 drivers/net/ethernet/cadence/macb_main.c if (fs->location >= num_t2_scr) fs 2881 drivers/net/ethernet/cadence/macb_main.c t2_scr = gem_readl_n(bp, SCRT2, fs->location); fs 2887 drivers/net/ethernet/cadence/macb_main.c tp4sp_m = &(fs->m_u.tcp_ip4_spec); fs 2904 drivers/net/ethernet/cadence/macb_main.c gem_writel_n(bp, SCRT2, fs->location, t2_scr); fs 2908 drivers/net/ethernet/cadence/macb_main.c static void gem_prog_cmp_regs(struct macb *bp, struct ethtool_rx_flow_spec *fs) fs 2911 drivers/net/ethernet/cadence/macb_main.c uint16_t index = fs->location; fs 2917 drivers/net/ethernet/cadence/macb_main.c tp4sp_v = &(fs->h_u.tcp_ip4_spec); fs 2918 drivers/net/ethernet/cadence/macb_main.c tp4sp_m = &(fs->m_u.tcp_ip4_spec); fs 2977 drivers/net/ethernet/cadence/macb_main.c t2_scr = GEM_BFINS(QUEUE, (fs->ring_cookie) & 0xFF, t2_scr); fs 2992 drivers/net/ethernet/cadence/macb_main.c struct ethtool_rx_flow_spec *fs = &cmd->fs; fs 3001 drivers/net/ethernet/cadence/macb_main.c memcpy(&newfs->fs, fs, sizeof(newfs->fs)); fs 3005 drivers/net/ethernet/cadence/macb_main.c fs->flow_type, (int)fs->ring_cookie, fs->location, fs 3006 drivers/net/ethernet/cadence/macb_main.c htonl(fs->h_u.tcp_ip4_spec.ip4src), fs 3007 drivers/net/ethernet/cadence/macb_main.c htonl(fs->h_u.tcp_ip4_spec.ip4dst), fs 3008 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); fs 3014 drivers/net/ethernet/cadence/macb_main.c if (item->fs.location > newfs->fs.location) { fs 3018 drivers/net/ethernet/cadence/macb_main.c } else if (item->fs.location == fs->location) { fs 3020 drivers/net/ethernet/cadence/macb_main.c fs->location); fs 3028 drivers/net/ethernet/cadence/macb_main.c gem_prog_cmp_regs(bp, fs); fs 3047 drivers/net/ethernet/cadence/macb_main.c struct ethtool_rx_flow_spec *fs; fs 3053 drivers/net/ethernet/cadence/macb_main.c if (item->fs.location == cmd->fs.location) { fs 3055 drivers/net/ethernet/cadence/macb_main.c fs = &(item->fs); fs 3058 drivers/net/ethernet/cadence/macb_main.c fs->flow_type, (int)fs->ring_cookie, fs->location, fs 3059 drivers/net/ethernet/cadence/macb_main.c htonl(fs->h_u.tcp_ip4_spec.ip4src), fs 3060 drivers/net/ethernet/cadence/macb_main.c htonl(fs->h_u.tcp_ip4_spec.ip4dst), fs 3061 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.psrc), fs 3062 drivers/net/ethernet/cadence/macb_main.c htons(fs->h_u.tcp_ip4_spec.pdst)); fs 3064 drivers/net/ethernet/cadence/macb_main.c gem_writel_n(bp, SCRT2, fs->location, 0); fs 3085 drivers/net/ethernet/cadence/macb_main.c if (item->fs.location == cmd->fs.location) { fs 3086 drivers/net/ethernet/cadence/macb_main.c memcpy(&cmd->fs, &item->fs, sizeof(cmd->fs)); fs 3103 drivers/net/ethernet/cadence/macb_main.c rule_locs[cnt] = item->fs.location; fs 3147 drivers/net/ethernet/cadence/macb_main.c if ((cmd->fs.location >= bp->max_tuples) fs 3148 drivers/net/ethernet/cadence/macb_main.c || (cmd->fs.ring_cookie >= bp->num_queues)) { fs 1274 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h struct ch_filter_specification fs; fs 75 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); fs 169 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { fs 171 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[15] | fs 172 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[14] << 8 | fs 173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[13] << 16 | fs 174 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[12] << 24, 1); fs 177 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[11] | fs 178 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[10] << 8 | fs 179 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[9] << 16 | fs 180 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[8] << 24, 1); fs 183 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[7] | fs 184 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[6] << 8 | fs 185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[5] << 16 | fs 186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[4] << 24, 1); fs 189 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[3] | fs 190 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[2] << 8 | fs 191 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[1] << 16 | fs 192 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[0] << 24, 1); fs 195 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[3] | fs 196 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[2] << 8 | fs 197 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[1] << 16 | fs 198 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[0] << 24, 1); fs 203 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { fs 205 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[15] | fs 206 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[14] << 8 | fs 207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[13] << 16 | fs 208 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[12] << 24, 1); fs 211 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[11] | fs 212 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[10] << 8 | fs 213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[9] << 16 | fs 214 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[8] << 24, 1); fs 217 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[7] | fs 218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[6] << 8 | fs 219 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[5] << 16 | fs 220 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[4] << 24, 1); fs 223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[3] | fs 224 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[2] << 8 | fs 225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[1] << 16 | fs 226 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[0] << 24, 1); fs 231 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[3] | fs 232 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[2] << 8 | fs 233 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[1] << 16 | fs 234 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[0] << 24, 1); fs 239 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (dp ? f->fs.nat_lport : 0) | fs 240 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (sp ? f->fs.nat_fport << 16 : 0), 1); fs 245 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs) fs 252 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fconf = fs->hash ? adapter->params.tp.filter_mask : fs 255 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (unsupported(fconf, FCOE_F, fs->val.fcoe, fs->mask.fcoe) || fs 256 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, PORT_F, fs->val.iport, fs->mask.iport) || fs 257 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, TOS_F, fs->val.tos, fs->mask.tos) || fs 258 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, ETHERTYPE_F, fs->val.ethtype, fs 259 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.ethtype) || fs 260 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, MACMATCH_F, fs->val.macidx, fs->mask.macidx) || fs 261 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, MPSHITTYPE_F, fs->val.matchtype, fs 262 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.matchtype) || fs 263 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, FRAGMENTATION_F, fs->val.frag, fs->mask.frag) || fs 264 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, PROTOCOL_F, fs->val.proto, fs->mask.proto) || fs 265 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, VNIC_ID_F, fs->val.pfvf_vld, fs 266 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.pfvf_vld) || fs 267 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, VNIC_ID_F, fs->val.ovlan_vld, fs 268 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.ovlan_vld) || fs 269 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, VNIC_ID_F, fs->val.encap_vld, fs 270 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.encap_vld) || fs 271 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c unsupported(fconf, VLAN_F, fs->val.ivlan_vld, fs->mask.ivlan_vld)) fs 281 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if ((is_field_set(fs->val.pfvf_vld, fs->mask.pfvf_vld) && fs 282 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c is_field_set(fs->val.ovlan_vld, fs->mask.ovlan_vld)) || fs 283 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (is_field_set(fs->val.pfvf_vld, fs->mask.pfvf_vld) && fs 284 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c is_field_set(fs->val.encap_vld, fs->mask.encap_vld)) || fs 285 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (is_field_set(fs->val.ovlan_vld, fs->mask.ovlan_vld) && fs 286 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c is_field_set(fs->val.encap_vld, fs->mask.encap_vld))) fs 288 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (unsupported(iconf, VNIC_F, fs->val.pfvf_vld, fs->mask.pfvf_vld) || fs 289 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (is_field_set(fs->val.ovlan_vld, fs->mask.ovlan_vld) && fs 292 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.pf > 0x7 || fs->val.vf > 0x7f) fs 294 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.pf &= 0x7; fs 295 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.vf &= 0x7f; fs 301 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->action == FILTER_SWITCH && fs 302 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->eport >= adapter->params.nports) fs 306 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.iport >= adapter->params.nports) fs 311 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->action == FILTER_SWITCH && fs 312 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (fs->newvlan == VLAN_REMOVE || fs 313 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->newvlan == VLAN_REWRITE)) fs 316 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.encap_vld && fs 323 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs) fs 333 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!fs->dirsteer) { fs 334 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->iq) fs 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->iq < pi->nqsets) fs 345 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->iq].rspq.abs_id; fs 347 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c iq = fs->iq; fs 558 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac || f->fs.newvlan) { fs 560 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = t4_l2t_alloc_switching(adapter, f->fs.vlan, fs 561 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.eport, f->fs.dmac); fs 571 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) { fs 572 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); fs 600 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_RQTYPE_V(f->fs.type) | fs 602 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IQ_V(f->fs.iq)); fs 604 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htonl(FW_FILTER_WR_RPTTID_V(f->fs.rpttid) | fs 605 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DROP_V(f->fs.action == FILTER_DROP) | fs 606 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DIRSTEER_V(f->fs.dirsteer) | fs 607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MASKHASH_V(f->fs.maskhash) | fs 608 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DIRSTEERHASH_V(f->fs.dirsteerhash) | fs 609 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_LPBK_V(f->fs.action == FILTER_SWITCH) | fs 610 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DMAC_V(f->fs.newdmac) | fs 611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_INSVLAN_V(f->fs.newvlan == VLAN_INSERT || fs 612 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | fs 613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_RMVLAN_V(f->fs.newvlan == VLAN_REMOVE || fs 614 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | fs 615 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_HITCNTS_V(f->fs.hitcnts) | fs 616 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_TXCHAN_V(f->fs.eport) | fs 617 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PRIO_V(f->fs.prio) | fs 619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtype = htons(f->fs.val.ethtype); fs 620 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtypem = htons(f->fs.mask.ethtype); fs 622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (FW_FILTER_WR_FRAG_V(f->fs.val.frag) | fs 623 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FRAGM_V(f->fs.mask.frag) | fs 624 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IVLAN_VLD_V(f->fs.val.ivlan_vld) | fs 625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_OVLAN_VLD_V(f->fs.val.ovlan_vld) | fs 626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IVLAN_VLDM_V(f->fs.mask.ivlan_vld) | fs 627 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_OVLAN_VLDM_V(f->fs.mask.ovlan_vld)); fs 633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htonl(FW_FILTER_WR_MACI_V(f->fs.val.macidx) | fs 634 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MACIM_V(f->fs.mask.macidx) | fs 635 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FCOE_V(f->fs.val.fcoe) | fs 636 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FCOEM_V(f->fs.mask.fcoe) | fs 637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PORT_V(f->fs.val.iport) | fs 638 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PORTM_V(f->fs.mask.iport) | fs 639 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MATCHTYPE_V(f->fs.val.matchtype) | fs 640 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MATCHTYPEM_V(f->fs.mask.matchtype)); fs 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ptcl = f->fs.val.proto; fs 642 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ptclm = f->fs.mask.proto; fs 643 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ttyp = f->fs.val.tos; fs 644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ttypm = f->fs.mask.tos; fs 645 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlan = htons(f->fs.val.ivlan); fs 646 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlanm = htons(f->fs.mask.ivlan); fs 647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlan = htons(f->fs.val.ovlan); fs 648 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlanm = htons(f->fs.mask.ovlan); fs 649 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->lip, f->fs.val.lip, sizeof(fwr->lip)); fs 650 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->lipm, f->fs.mask.lip, sizeof(fwr->lipm)); fs 651 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->fip, f->fs.val.fip, sizeof(fwr->fip)); fs 652 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->fipm, f->fs.mask.fip, sizeof(fwr->fipm)); fs 653 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lp = htons(f->fs.val.lport); fs 654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lpm = htons(f->fs.mask.lport); fs 655 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fp = htons(f->fs.val.fport); fs 656 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fpm = htons(f->fs.mask.fport); fs 660 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER2_WR_ULP_TYPE_V(f->fs.nat_mode ? fs 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER2_WR_NATMODE_V(f->fs.nat_mode); fs 664 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->newlip, f->fs.nat_lip, sizeof(fwr->newlip)); fs 665 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->newfip, f->fs.nat_fip, sizeof(fwr->newfip)); fs 666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newlport = htons(f->fs.nat_lport); fs 667 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newfport = htons(f->fs.nat_fport); fs 674 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); fs 729 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld && f->fs.val.ovlan_vld) fs 731 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan & 0x1ff, 0); fs 733 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if ((f->fs.hash || is_t6(adap->params.chip)) && f->fs.type) fs 734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); fs 755 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); fs 769 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); fs 777 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); fs 783 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static void fill_default_mask(struct ch_filter_specification *fs) fs 789 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.iport && !fs->mask.iport) fs 790 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.iport |= ~0; fs 791 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.fcoe && !fs->mask.fcoe) fs 792 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.fcoe |= ~0; fs 793 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.matchtype && !fs->mask.matchtype) fs 794 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.matchtype |= ~0; fs 795 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.macidx && !fs->mask.macidx) fs 796 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.macidx |= ~0; fs 797 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.ethtype && !fs->mask.ethtype) fs 798 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.ethtype |= ~0; fs 799 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.ivlan && !fs->mask.ivlan) fs 800 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.ivlan |= ~0; fs 801 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.ovlan && !fs->mask.ovlan) fs 802 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.ovlan |= ~0; fs 803 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.frag && !fs->mask.frag) fs 804 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.frag |= ~0; fs 805 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.tos && !fs->mask.tos) fs 806 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.tos |= ~0; fs 807 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.proto && !fs->mask.proto) fs 808 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.proto |= ~0; fs 810 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c for (i = 0; i < ARRAY_SIZE(fs->val.lip); i++) { fs 811 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c lip |= fs->val.lip[i]; fs 812 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c lip_mask |= fs->mask.lip[i]; fs 813 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fip |= fs->val.fip[i]; fs 814 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fip_mask |= fs->mask.fip[i]; fs 818 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memset(fs->mask.lip, ~0, sizeof(fs->mask.lip)); fs 821 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memset(fs->mask.fip, ~0, sizeof(fs->mask.lip)); fs 823 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.lport && !fs->mask.lport) fs 824 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.lport = ~0; fs 825 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->val.fport && !fs->mask.fport) fs 826 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.fport = ~0; fs 873 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs) fs 883 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->mask.encap_vld) fs 886 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->type) { fs 887 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_inaddr_any(fs->val.fip, AF_INET6) || fs 888 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c !is_addr_all_mask(fs->mask.fip, AF_INET6)) fs 891 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_inaddr_any(fs->val.lip, AF_INET6) || fs 892 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c !is_addr_all_mask(fs->mask.lip, AF_INET6)) fs 895 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_inaddr_any(fs->val.fip, AF_INET) || fs 896 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c !is_addr_all_mask(fs->mask.fip, AF_INET)) fs 899 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_inaddr_any(fs->val.lip, AF_INET) || fs 900 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c !is_addr_all_mask(fs->mask.lip, AF_INET)) fs 904 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!fs->val.lport || fs->mask.lport != 0xffff) fs 907 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!fs->val.fport || fs->mask.fport != 0xffff) fs 912 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.fcoe << tp->fcoe_shift; fs 915 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.iport << tp->port_shift; fs 919 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.pfvf_vld << tp->vnic_shift; fs 921 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.ovlan_vld << fs 926 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.ivlan << tp->vlan_shift; fs 929 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.tos << tp->tos_shift; fs 932 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.proto << tp->protocol_shift; fs 935 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.ethtype << tp->ethertype_shift; fs 938 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.macidx << tp->macmatch_shift; fs 941 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.matchtype << tp->matchtype_shift; fs 944 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple_mask |= (u64)fs->mask.frag << tp->frag_shift; fs 952 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static u64 hash_filter_ntuple(struct ch_filter_specification *fs, fs 962 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->vlan_shift >= 0 && fs->mask.ivlan) fs 963 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (FT_VLAN_VLD_F | fs->val.ivlan) << tp->vlan_shift; fs 965 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->port_shift >= 0 && fs->mask.iport) fs 966 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)fs->val.iport << tp->port_shift; fs 969 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!fs->val.proto) fs 972 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)fs->val.proto << tp->protocol_shift; fs 975 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->tos_shift >= 0 && fs->mask.tos) fs 976 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.tos) << tp->tos_shift; fs 980 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.encap_vld) fs 981 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)((fs->val.encap_vld << 16) | fs 982 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (fs->val.ovlan)) << tp->vnic_shift; fs 984 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->mask.pfvf_vld) fs 985 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)((fs->val.pfvf_vld << 16) | fs 986 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (fs->val.pf << 13) | fs 987 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (fs->val.vf)) << tp->vnic_shift; fs 989 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)((fs->val.ovlan_vld << 16) | fs 990 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (fs->val.ovlan)) << tp->vnic_shift; fs 993 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->macmatch_shift >= 0 && fs->mask.macidx) fs 994 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.macidx) << tp->macmatch_shift; fs 996 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->ethertype_shift >= 0 && fs->mask.ethtype) fs 997 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.ethtype) << tp->ethertype_shift; fs 999 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->matchtype_shift >= 0 && fs->mask.matchtype) fs 1000 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.matchtype) << tp->matchtype_shift; fs 1002 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->frag_shift >= 0 && fs->mask.frag) fs 1003 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.frag) << tp->frag_shift; fs 1005 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (tp->fcoe_shift >= 0 && fs->mask.fcoe) fs 1006 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ntuple |= (u64)(fs->val.fcoe) << tp->fcoe_shift; fs 1020 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_port = cpu_to_be16(f->fs.val.lport); fs 1021 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_port = cpu_to_be16(f->fs.val.fport); fs 1022 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_ip_hi = *(__be64 *)(&f->fs.val.lip); fs 1023 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_ip_lo = *(((__be64 *)&f->fs.val.lip) + 1); fs 1024 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_ip_hi = *(__be64 *)(&f->fs.val.fip); fs 1025 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_ip_lo = *(((__be64 *)&f->fs.val.fip) + 1); fs 1026 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->opt0 = cpu_to_be64(NAGLE_V(f->fs.newvlan == VLAN_REMOVE || fs 1027 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | fs 1028 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c DELACK_V(f->fs.hitcnts) | fs 1032 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_CHAN_V(f->fs.eport) | fs 1033 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c NO_CONG_V(f->fs.rpttid) | fs 1034 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ULP_MODE_V(f->fs.nat_mode ? fs 1037 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t6req->params = cpu_to_be64(FILTER_TUPLE_V(hash_filter_ntuple(&f->fs, fs 1040 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RSS_QUEUE_V(f->fs.iq) | fs 1041 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_QUEUE_V(f->fs.nat_mode) | fs 1044 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CONG_CNTRL_V((f->fs.action == FILTER_DROP) | fs 1045 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (f->fs.dirsteer << 1)) | fs 1046 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c PACE_V((f->fs.maskhash) | fs 1047 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ((f->fs.dirsteerhash) << 1)) | fs 1048 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CCTRL_ECN_V(f->fs.action == FILTER_SWITCH)); fs 1061 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_port = cpu_to_be16(f->fs.val.lport); fs 1062 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_port = cpu_to_be16(f->fs.val.fport); fs 1063 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(&req->local_ip, f->fs.val.lip, 4); fs 1064 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(&req->peer_ip, f->fs.val.fip, 4); fs 1065 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->opt0 = cpu_to_be64(NAGLE_V(f->fs.newvlan == VLAN_REMOVE || fs 1066 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | fs 1067 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c DELACK_V(f->fs.hitcnts) | fs 1071 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_CHAN_V(f->fs.eport) | fs 1072 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c NO_CONG_V(f->fs.rpttid) | fs 1073 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ULP_MODE_V(f->fs.nat_mode ? fs 1077 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t6req->params = cpu_to_be64(FILTER_TUPLE_V(hash_filter_ntuple(&f->fs, fs 1080 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RSS_QUEUE_V(f->fs.iq) | fs 1081 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_QUEUE_V(f->fs.nat_mode) | fs 1084 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CONG_CNTRL_V((f->fs.action == FILTER_DROP) | fs 1085 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (f->fs.dirsteer << 1)) | fs 1086 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c PACE_V((f->fs.maskhash) | fs 1087 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ((f->fs.dirsteerhash) << 1)) | fs 1088 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CCTRL_ECN_V(f->fs.action == FILTER_SWITCH)); fs 1092 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs, fs 1104 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fill_default_mask(fs); fs 1105 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = validate_filter(dev, fs); fs 1109 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c iq = get_filter_steerq(dev, fs); fs 1117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs = *fs; fs 1120 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.iq = iq; fs 1126 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac || f->fs.newvlan) { fs 1128 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = t4_l2t_alloc_switching(adapter, f->fs.vlan, fs 1129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.eport, f->fs.dmac); fs 1139 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) { fs 1140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); fs 1159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; fs 1160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; fs 1161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = fs->val.pfvf_vld; fs 1162 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = fs->mask.pfvf_vld; fs 1164 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld) { fs 1172 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.vni, fs 1173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.vni, fs 1178 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = ret; fs 1179 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = 0xffff; fs 1180 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = 1; fs 1181 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = 1; fs 1186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { fs 1187 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = cxgb4_clip_get(f->dev, (const u32 *)&f->fs.val.lip, 1); fs 1213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_SETUP, f->fs.val.iport & 0x3); fs 1218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); fs 1221 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld && f->fs.val.ovlan_vld) fs 1222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t4_free_encap_mac_filt(adapter, pi->viid, f->fs.val.ovlan, 1); fs 1251 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs, fs 1261 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->hash) { fs 1263 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c return cxgb4_set_hash_filter(dev, fs, ctx); fs 1274 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fill_default_mask(fs); fs 1276 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = validate_filter(dev, fs); fs 1280 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c iq = get_filter_steerq(dev, fs); fs 1291 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs->type == 0) { /* IPv4 */ fs 1305 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c adapter->tids.ftid_tab[fidx].fs.type) { fs 1364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->type ? PF_INET6 : PF_INET, fs 1374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->type ? PF_INET6 : PF_INET, fs 1379 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_t6(adapter->params.chip) && fs->type && fs 1380 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ipv6_addr_type((const struct in6_addr *)fs->val.lip) != fs 1382 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = cxgb4_clip_get(dev, (const u32 *)&fs->val.lip, 1); fs 1395 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs = *fs; fs 1396 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.iq = iq; fs 1401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; fs 1402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; fs 1403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = fs->val.pfvf_vld; fs 1404 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = fs->mask.pfvf_vld; fs 1406 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld) { fs 1414 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.vni, fs 1415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.vni, fs 1420 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = ret; fs 1421 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = 0x1ff; fs 1422 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = 1; fs 1423 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = 1; fs 1435 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->type ? PF_INET6 : PF_INET, fs 1443 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_t6(adapter->params.chip) && f->fs.type) fs 1444 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); fs 1446 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fs->type ? PF_INET6 : PF_INET, chip_ver); fs 1494 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); fs 1517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs, fs 1526 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (fs && fs->hash) { fs 1547 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.type ? PF_INET6 : PF_INET, fs 1564 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs) fs 1571 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = __cxgb4_set_filter(dev, filter_id, fs, &ctx); fs 1586 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct ch_filter_specification *fs) fs 1596 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = __cxgb4_del_filter(dev, filter_id, fs, &ctx); fs 1613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.hitcnts) fs 1621 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac) fs 1625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newvlan == VLAN_INSERT || fs 1626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) fs 1629 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) fs 1632 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.nat_mode) { fs 1633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c switch (f->fs.nat_mode) { fs 1663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c __func__, f->fs.nat_mode); fs 1803 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) fs 55 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h struct ch_filter_specification *fs); fs 2506 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c memset(&f->fs, 0, sizeof(struct ch_filter_specification)); fs 2507 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.lport = cpu_to_be16(sport); fs 2508 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.lport = ~0; fs 2512 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.lip[i] = val[i]; fs 2513 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.lip[i] = ~0; fs 2516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.iport = port; fs 2517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.iport = mask; fs 2522 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.proto = IPPROTO_TCP; fs 2523 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.proto = ~0; fs 2526 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.dirsteer = 1; fs 2527 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.iq = queue; fs 2530 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.rpttid = 1; fs 85 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c struct ch_filter_specification *fs) fs 111 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->type = 1; fs 113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.ethtype = ethtype_key; fs 114 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.ethtype = ethtype_mask; fs 115 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.proto = match.key->ip_proto; fs 116 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.proto = match.mask->ip_proto; fs 123 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->type = 0; fs 124 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); fs 125 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.fip[0], &match.key->src, sizeof(match.key->src)); fs 126 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->mask.lip[0], &match.mask->dst, sizeof(match.mask->dst)); fs 127 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->mask.fip[0], &match.mask->src, sizeof(match.mask->src)); fs 130 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_lip[0], &match.key->dst, sizeof(match.key->dst)); fs 131 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_fip[0], &match.key->src, sizeof(match.key->src)); fs 138 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->type = 1; fs 139 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.lip[0], match.key->dst.s6_addr, fs 141 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->val.fip[0], match.key->src.s6_addr, fs 143 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->mask.lip[0], match.mask->dst.s6_addr, fs 145 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->mask.fip[0], match.mask->src.s6_addr, fs 149 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_lip[0], match.key->dst.s6_addr, fs 151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy(&fs->nat_fip[0], match.key->src.s6_addr, fs 159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.lport = cpu_to_be16(match.key->dst); fs 160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.lport = cpu_to_be16(match.mask->dst); fs 161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.fport = cpu_to_be16(match.key->src); fs 162 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.fport = cpu_to_be16(match.mask->src); fs 165 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_lport = cpu_to_be16(match.key->dst); fs 166 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_fport = cpu_to_be16(match.key->src); fs 173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.tos = match.key->tos; fs 174 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.tos = match.mask->tos; fs 181 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.vni = be32_to_cpu(match.key->keyid); fs 182 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.vni = be32_to_cpu(match.mask->keyid); fs 183 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c if (fs->mask.vni) { fs 184 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.encap_vld = 1; fs 185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.encap_vld = 1; fs 198 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.ivlan = vlan_tci; fs 199 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.ivlan = vlan_tci_mask; fs 201 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.ivlan_vld = 1; fs 202 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.ivlan_vld = 1; fs 213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c if (fs->val.ethtype == ETH_P_8021Q) { fs 214 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.ethtype = 0; fs 215 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.ethtype = 0; fs 222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->val.iport = netdev2pinfo(dev)->port_id; fs 223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->mask.iport = ~0; fs 275 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c static void offload_pedit(struct ch_filter_specification *fs, u32 val, u32 mask, fs 290 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c memcpy((u8 *)fs + offset, &set_val, size); fs 293 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c static void process_pedit_field(struct ch_filter_specification *fs, u32 val, fs 300 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->newdmac = 1; fs 301 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, ETH_DMAC_31_0); fs 305 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, ETH_DMAC_47_32); fs 307 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val >> 16, mask >> 16, fs 311 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->newsmac = 1; fs 312 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, ETH_SMAC_47_16); fs 318 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP4_SRC); fs 321 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP4_DST); fs 323 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_mode = NAT_MODE_ALL; fs 328 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_SRC_31_0); fs 331 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_SRC_63_32); fs 334 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_SRC_95_64); fs 337 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_SRC_127_96); fs 340 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_DST_31_0); fs 343 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_DST_63_32); fs 346 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_DST_95_64); fs 349 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, val, mask, IP6_DST_127_96); fs 351 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_mode = NAT_MODE_ALL; fs 357 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, cpu_to_be32(val) >> 16, fs 361 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, cpu_to_be32(val), fs 364 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_mode = NAT_MODE_ALL; fs 370 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, cpu_to_be32(val) >> 16, fs 374 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c offload_pedit(fs, cpu_to_be32(val), fs 377 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->nat_mode = NAT_MODE_ALL; fs 383 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c struct ch_filter_specification *fs) fs 392 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->action = FILTER_PASS; fs 395 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->action = FILTER_DROP; fs 401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->action = FILTER_SWITCH; fs 402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->eport = pi->port_id; fs 413 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->newvlan |= VLAN_REMOVE; fs 416 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->newvlan |= VLAN_INSERT; fs 417 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->vlan = vlan_tci; fs 420 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->newvlan |= VLAN_REWRITE; fs 421 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->vlan = vlan_tci; fs 437 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c process_pedit_field(fs, val, mask, offset, htype); fs 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c struct ch_filter_specification *fs; fs 658 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs = &ch_flower->fs; fs 659 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->hitcnts = 1; fs 660 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c cxgb4_process_flow_match(dev, cls, fs); fs 661 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c cxgb4_process_flow_actions(dev, cls, fs); fs 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fs->hash = is_filter_exact_match(adap, fs); fs 664 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c if (fs->hash) { fs 667 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c fidx = cxgb4_get_free_ftid(dev, fs->type ? PF_INET6 : PF_INET); fs 676 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ret = __cxgb4_set_filter(dev, fidx, fs, &ctx); fs 705 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c cxgb4_del_filter(dev, ch_flower->filter_id, &ch_flower->fs); fs 723 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ret = cxgb4_del_filter(dev, ch_flower->filter_id, &ch_flower->fs); fs 759 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c flower_entry->fs.hash); fs 804 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.c ch_flower->fs.hash); fs 48 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_flower.h struct ch_filter_specification fs; fs 44 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c struct ch_filter_specification *fs, fs 74 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c err = entry[j].val(fs, val, mask); fs 90 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c struct ch_filter_specification *fs, fs 109 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs->action = FILTER_DROP; fs 124 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs->action = FILTER_SWITCH; fs 125 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs->eport = i; fs 153 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c struct ch_filter_specification fs; fs 191 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c memset(&fs, 0, sizeof(fs)); fs 264 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = fill_match_fields(adapter, &fs, cls, fs 272 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c memcpy(&link->fs, &fs, sizeof(fs)); fs 289 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c memcpy(&fs, &t->table[uhtid - 1].fs, sizeof(fs)); fs 290 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = fill_match_fields(adapter, &fs, cls, fs 296 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = fill_match_fields(adapter, &fs, cls, start, false); fs 303 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = fill_action_fields(adapter, &fs, cls); fs 315 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs.val.iport = netdev2pinfo(dev)->port_id; fs 316 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs.mask.iport = ~0; fs 319 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs.hitcnts = 1; fs 322 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c fs.type = is_ipv6 ? 1 : 0; fs 325 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c ret = cxgb4_set_filter(dev, filter_id, &fs); fs 411 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c memset(&link->fs, 0, sizeof(link->fs)); fs 285 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h struct ch_filter_specification fs; /* Match spec associated with link */ fs 217 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h struct ch_filter_specification *fs, fs 220 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h struct ch_filter_specification *fs, fs 223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h struct ch_filter_specification *fs); fs 225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h struct ch_filter_specification *fs); fs 442 drivers/net/ethernet/cisco/enic/enic_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 353 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h struct ethtool_rx_flow_spec fs; fs 444 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c static int prep_cls_rule(struct ethtool_rx_flow_spec *fs, void *key, void *mask, fs 449 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c switch (fs->flow_type & 0xFF) { fs 451 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, fs 455 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_uip_rule(&fs->h_u.usr_ip4_spec, fs 456 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c &fs->m_u.usr_ip4_spec, key, mask, fields); fs 459 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, fs 463 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, fs 467 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_l4_rule(&fs->h_u.sctp_ip4_spec, fs 468 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c &fs->m_u.sctp_ip4_spec, key, mask, fs 478 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (fs->flow_type & FLOW_EXT) { fs 479 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fields); fs 484 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (fs->flow_type & FLOW_MAC_EXT) { fs 485 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_mac_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fs 495 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c struct ethtool_rx_flow_spec *fs, fs 507 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (fs->ring_cookie != RX_CLS_FLOW_DISC && fs 508 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c fs->ring_cookie >= dpaa2_eth_queue_count(priv)) fs 519 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = prep_cls_rule(fs, key_buf, key_buf + rule_cfg.key_size, &fields); fs 561 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (fs->ring_cookie == RX_CLS_FLOW_DISC) fs 564 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c fs_act.flow_id = fs->ring_cookie; fs 566 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c fs->location, &rule_cfg, &fs_act); fs 609 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = do_cls_rule(net_dev, &rule->fs, false); fs 628 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rule->fs = *new_fs; fs 657 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (rxnfc->fs.location >= max_rules) fs 659 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rxnfc->fs.location = array_index_nospec(rxnfc->fs.location, fs 661 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c if (!priv->cls_rules[rxnfc->fs.location].in_use) fs 663 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; fs 695 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = update_cls_rule(net_dev, &rxnfc->fs, rxnfc->fs.location); fs 698 drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c err = update_cls_rule(net_dev, NULL, rxnfc->fs.location); fs 166 drivers/net/ethernet/freescale/enetc/enetc.h struct ethtool_rx_flow_spec fs; fs 310 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c struct ethtool_rx_flow_spec *fs, bool en) fs 320 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c switch (fs->flow_type & 0xff) { fs 322 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_h = &fs->h_u.tcp_ip4_spec; fs 323 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_m = &fs->m_u.tcp_ip4_spec; fs 326 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_h = &fs->h_u.udp_ip4_spec; fs 327 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_m = &fs->m_u.udp_ip4_spec; fs 330 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_h = &fs->h_u.sctp_ip4_spec; fs 331 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l4ip4_m = &fs->m_u.sctp_ip4_spec; fs 347 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l3ip4_h = &fs->h_u.usr_ip4_spec; fs 348 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c l3ip4_m = &fs->m_u.usr_ip4_spec; fs 360 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c eth_h = &fs->h_u.ether_spec; fs 361 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c eth_m = &fs->m_u.ether_spec; fs 375 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (fs->ring_cookie != RX_CLS_FLOW_DISC) { fs 377 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rfse.result = fs->ring_cookie; fs 380 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c return enetc_set_fs_entry(si, &rfse, fs->location); fs 406 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (rxnfc->fs.location >= priv->si->num_fs_entries) fs 410 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; fs 441 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (rxnfc->fs.location >= priv->si->num_fs_entries) fs 444 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (rxnfc->fs.ring_cookie >= priv->num_rx_rings && fs 445 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c rxnfc->fs.ring_cookie != RX_CLS_FLOW_DISC) fs 448 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c err = enetc_set_cls_entry(priv->si, &rxnfc->fs, true); fs 451 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c priv->cls_rules[rxnfc->fs.location].fs = rxnfc->fs; fs 452 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c priv->cls_rules[rxnfc->fs.location].used = 1; fs 455 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c if (rxnfc->fs.location >= priv->si->num_fs_entries) fs 458 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c err = enetc_set_cls_entry(priv->si, &rxnfc->fs, false); fs 461 drivers/net/ethernet/freescale/enetc/enetc_ethtool.c priv->cls_rules[rxnfc->fs.location].used = 0; fs 46 drivers/net/ethernet/freescale/gianfar.h struct ethtool_rx_flow_spec fs; fs 1261 drivers/net/ethernet/freescale/gianfar_ethtool.c ret = gfar_convert_to_filer(&j->fs, tab); fs 1308 drivers/net/ethernet/freescale/gianfar_ethtool.c memcpy(&temp->fs, flow, sizeof(temp->fs)); fs 1310 drivers/net/ethernet/freescale/gianfar_ethtool.c gfar_invert_masks(&temp->fs); fs 1311 drivers/net/ethernet/freescale/gianfar_ethtool.c ret = gfar_check_capability(&temp->fs, priv); fs 1323 drivers/net/ethernet/freescale/gianfar_ethtool.c if (comp->fs.location > flow->location) { fs 1327 drivers/net/ethernet/freescale/gianfar_ethtool.c if (comp->fs.location == flow->location) { fs 1362 drivers/net/ethernet/freescale/gianfar_ethtool.c if (comp->fs.location == loc) { fs 1381 drivers/net/ethernet/freescale/gianfar_ethtool.c if (comp->fs.location == cmd->fs.location) { fs 1382 drivers/net/ethernet/freescale/gianfar_ethtool.c memcpy(&cmd->fs, &comp->fs, sizeof(cmd->fs)); fs 1383 drivers/net/ethernet/freescale/gianfar_ethtool.c gfar_invert_masks(&cmd->fs); fs 1401 drivers/net/ethernet/freescale/gianfar_ethtool.c rule_locs[i] = comp->fs.location; fs 1426 drivers/net/ethernet/freescale/gianfar_ethtool.c if ((cmd->fs.ring_cookie != RX_CLS_FLOW_DISC && fs 1427 drivers/net/ethernet/freescale/gianfar_ethtool.c cmd->fs.ring_cookie >= priv->num_rx_queues) || fs 1428 drivers/net/ethernet/freescale/gianfar_ethtool.c cmd->fs.location >= MAX_FILER_IDX) { fs 1432 drivers/net/ethernet/freescale/gianfar_ethtool.c ret = gfar_add_cls(priv, &cmd->fs); fs 1435 drivers/net/ethernet/freescale/gianfar_ethtool.c ret = gfar_del_cls(priv, cmd->fs.location); fs 5135 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct ethtool_rx_flow_spec *fs, u32 *unused) fs 5143 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->location >= hdev->fd_cfg.rule_num[HCLGE_FD_STAGE_1]) fs 5146 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (!(fs->flow_type & hdev->fd_cfg.proto_support)) fs 5149 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if ((fs->flow_type & FLOW_EXT) && fs 5150 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c (fs->h_ext.data[0] != 0 || fs->h_ext.data[1] != 0)) { fs 5155 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 5159 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c tcp_ip4_spec = &fs->h_u.tcp_ip4_spec; fs 5179 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c usr_ip4_spec = &fs->h_u.usr_ip4_spec; fs 5205 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c tcp_ip6_spec = &fs->h_u.tcp_ip6_spec; fs 5229 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c usr_ip6_spec = &fs->h_u.usr_ip6_spec; fs 5254 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_spec = &fs->h_u.ether_spec; fs 5273 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if ((fs->flow_type & FLOW_EXT)) { fs 5274 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->h_ext.vlan_etype) fs 5276 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (!fs->h_ext.vlan_tci) fs 5279 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->m_ext.vlan_tci) { fs 5280 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID) fs 5287 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->flow_type & FLOW_MAC_EXT) { fs 5291 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (is_zero_ether_addr(fs->h_ext.h_dest)) fs 5369 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct ethtool_rx_flow_spec *fs, fs 5372 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); fs 5379 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); fs 5381 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); fs 5384 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); fs 5386 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); fs 5388 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc); fs 5390 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); fs 5392 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); fs 5394 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); fs 5396 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec.tos; fs 5397 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples_mask.ip_tos = fs->m_u.tcp_ip4_spec.tos; fs 5405 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); fs 5407 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); fs 5410 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); fs 5412 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); fs 5414 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.ip_tos = fs->h_u.usr_ip4_spec.tos; fs 5415 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; fs 5417 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.ip_proto = fs->h_u.usr_ip4_spec.proto; fs 5418 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; fs 5428 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip6_spec.ip6src, IPV6_SIZE); fs 5430 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip6_spec.ip6src, IPV6_SIZE); fs 5433 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip6_spec.ip6dst, IPV6_SIZE); fs 5435 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip6_spec.ip6dst, IPV6_SIZE); fs 5437 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip6_spec.psrc); fs 5439 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.tcp_ip6_spec.psrc); fs 5441 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip6_spec.pdst); fs 5443 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.tcp_ip6_spec.pdst); fs 5451 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip6_spec.ip6src, IPV6_SIZE); fs 5453 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip6_spec.ip6src, IPV6_SIZE); fs 5456 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip6_spec.ip6dst, IPV6_SIZE); fs 5458 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip6_spec.ip6dst, IPV6_SIZE); fs 5460 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.ip_proto = fs->h_u.usr_ip6_spec.l4_proto; fs 5461 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples_mask.ip_proto = fs->m_u.usr_ip6_spec.l4_proto; fs 5469 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.ether_spec.h_source); fs 5471 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.ether_spec.h_source); fs 5474 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.ether_spec.h_dest); fs 5476 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.ether_spec.h_dest); fs 5479 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->h_u.ether_spec.h_proto); fs 5481 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c be16_to_cpu(fs->m_u.ether_spec.h_proto); fs 5508 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if ((fs->flow_type & FLOW_EXT)) { fs 5509 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples.vlan_tag1 = be16_to_cpu(fs->h_ext.vlan_tci); fs 5510 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->tuples_mask.vlan_tag1 = be16_to_cpu(fs->m_ext.vlan_tci); fs 5513 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->flow_type & FLOW_MAC_EXT) { fs 5514 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(rule->tuples.dst_mac, fs->h_ext.h_dest); fs 5515 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_ext.h_dest); fs 5557 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct ethtool_rx_flow_spec *fs; fs 5572 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs = (struct ethtool_rx_flow_spec *)&cmd->fs; fs 5574 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_fd_check_spec(hdev, fs, &unused); fs 5580 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->ring_cookie == RX_CLS_FLOW_DISC) { fs 5583 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u32 ring = ethtool_get_flow_spec_ring(fs->ring_cookie); fs 5584 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c u8 vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); fs 5612 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_fd_get_tuple(hdev, fs, rule); fs 5618 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->flow_type = fs->flow_type; fs 5620 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rule->location = fs->location; fs 5645 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct ethtool_rx_flow_spec *fs; fs 5651 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs = (struct ethtool_rx_flow_spec *)&cmd->fs; fs 5653 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->location >= hdev->fd_cfg.rule_num[HCLGE_FD_STAGE_1]) fs 5656 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (!hclge_fd_rule_exist(hdev, fs->location)) { fs 5658 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c "Delete fail, rule %d is inexistent\n", fs->location); fs 5662 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_fd_tcam_config(hdev, HCLGE_FD_STAGE_1, true, fs->location, fs 5668 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = hclge_fd_update_rule_list(hdev, NULL, fs->location, false); fs 5773 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct ethtool_rx_flow_spec *fs; fs 5779 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs = (struct ethtool_rx_flow_spec *)&cmd->fs; fs 5784 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (rule->location >= fs->location) fs 5788 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (!rule || fs->location != rule->location) { fs 5794 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->flow_type = rule->flow_type; fs 5795 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 5799 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip4_spec.ip4src = fs 5801 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.ip4src = fs 5805 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip4_spec.ip4dst = fs 5807 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.ip4dst = fs 5811 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(rule->tuples.src_port); fs 5812 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.psrc = fs 5816 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(rule->tuples.dst_port); fs 5817 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.pdst = fs 5821 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip4_spec.tos = rule->tuples.ip_tos; fs 5822 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.tos = fs 5828 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip4_spec.ip4src = fs 5830 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip4_spec.ip4src = fs 5834 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip4_spec.ip4dst = fs 5836 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip4_spec.ip4dst = fs 5840 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip4_spec.tos = rule->tuples.ip_tos; fs 5841 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip4_spec.tos = fs 5845 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip4_spec.proto = rule->tuples.ip_proto; fs 5846 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip4_spec.proto = fs 5850 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; fs 5856 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->h_u.tcp_ip6_spec.ip6src, fs 5859 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memset(fs->m_u.tcp_ip6_spec.ip6src, 0, fs 5862 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->m_u.tcp_ip6_spec.ip6src, fs 5865 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->h_u.tcp_ip6_spec.ip6dst, fs 5868 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memset(fs->m_u.tcp_ip6_spec.ip6dst, 0, fs 5871 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->m_u.tcp_ip6_spec.ip6dst, fs 5874 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip6_spec.psrc = cpu_to_be16(rule->tuples.src_port); fs 5875 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip6_spec.psrc = fs 5879 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.tcp_ip6_spec.pdst = cpu_to_be16(rule->tuples.dst_port); fs 5880 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.tcp_ip6_spec.pdst = fs 5886 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->h_u.usr_ip6_spec.ip6src, fs 5889 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memset(fs->m_u.usr_ip6_spec.ip6src, 0, fs 5892 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->m_u.usr_ip6_spec.ip6src, fs 5895 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->h_u.usr_ip6_spec.ip6dst, fs 5898 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c memset(fs->m_u.usr_ip6_spec.ip6dst, 0, fs 5901 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c cpu_to_be32_array(fs->m_u.usr_ip6_spec.ip6dst, fs 5904 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.usr_ip6_spec.l4_proto = rule->tuples.ip_proto; fs 5905 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.usr_ip6_spec.l4_proto = fs 5911 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->h_u.ether_spec.h_source, fs 5914 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c eth_zero_addr(fs->m_u.ether_spec.h_source); fs 5916 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->m_u.ether_spec.h_source, fs 5919 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->h_u.ether_spec.h_dest, fs 5922 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c eth_zero_addr(fs->m_u.ether_spec.h_dest); fs 5924 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->m_u.ether_spec.h_dest, fs 5927 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_u.ether_spec.h_proto = fs 5929 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_u.ether_spec.h_proto = fs 5939 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->flow_type & FLOW_EXT) { fs 5940 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->h_ext.vlan_tci = cpu_to_be16(rule->tuples.vlan_tag1); fs 5941 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->m_ext.vlan_tci = fs 5947 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (fs->flow_type & FLOW_MAC_EXT) { fs 5948 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->h_ext.h_dest, rule->tuples.dst_mac); fs 5950 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c eth_zero_addr(fs->m_u.ether_spec.h_dest); fs 5952 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ether_addr_copy(fs->m_u.ether_spec.h_dest, fs 5957 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->ring_cookie = RX_CLS_FLOW_DISC; fs 5961 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->ring_cookie = rule->queue_id; fs 5964 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c fs->ring_cookie |= vf_id; fs 3198 drivers/net/ethernet/intel/i40e/i40e_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 3643 drivers/net/ethernet/intel/i40e/i40e_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 4467 drivers/net/ethernet/intel/i40e/i40e_ethtool.c fsp = (struct ethtool_rx_flow_spec *)&cmd->fs; fs 2454 drivers/net/ethernet/intel/igb/igb_ethtool.c struct ethtool_rx_flow_spec *fsp = &cmd->fs; fs 2918 drivers/net/ethernet/intel/igb/igb_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 3010 drivers/net/ethernet/intel/igb/igb_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 881 drivers/net/ethernet/intel/igc/igc_ethtool.c struct ethtool_rx_flow_spec *fsp = &cmd->fs; fs 1353 drivers/net/ethernet/intel/igc/igc_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 1445 drivers/net/ethernet/intel/igc/igc_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 2415 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 2678 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 2808 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 1335 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c if (rxnfc->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) fs 1338 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c efs = port->rfs_rules[rxnfc->fs.location]; fs 1355 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c if (info->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) fs 1362 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c input.fs = &info->fs; fs 1367 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c if (info->fs.flow_type & FLOW_RSS) fs 1377 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c efs->rule.flow_type = mvpp2_cls_ethtool_flow_to_type(info->fs.flow_type); fs 1387 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c efs->rule.loc = info->fs.location; fs 1425 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c if (info->fs.location >= MVPP2_N_RFS_ENTRIES_PER_FLOW) fs 1428 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c efs = port->rfs_rules[info->fs.location]; fs 1438 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c port->rfs_rules[info->fs.location] = NULL; fs 1565 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c if (!(rxnfc->fs.flow_type & FLOW_RSS) || fs 1573 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c rxnfc->fs.location); fs 1870 drivers/net/ethernet/mediatek/mtk_eth_soc.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 1894 drivers/net/ethernet/mediatek/mtk_eth_soc.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 1933 drivers/net/ethernet/mediatek/mtk_eth_soc.c (struct ethtool_rx_flow_spec *)&cmd->fs; fs 1325 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.location >= MAX_NUM_OF_FS_RULES) fs 1328 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.flow_type & FLOW_MAC_EXT) { fs 1330 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (!is_broadcast_ether_addr(cmd->fs.m_ext.h_dest)) fs 1334 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 1337 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.m_u.tcp_ip4_spec.tos) fs 1339 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c l4_mask = &cmd->fs.m_u.tcp_ip4_spec; fs 1348 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c l3_mask = &cmd->fs.m_u.usr_ip4_spec; fs 1350 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || fs 1357 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c eth_mask = &cmd->fs.m_u.ether_spec; fs 1373 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if ((cmd->fs.flow_type & FLOW_EXT)) { fs 1374 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.m_ext.vlan_etype || fs 1375 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == fs 1377 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == fs 1381 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.m_ext.vlan_tci) { fs 1382 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (be16_to_cpu(cmd->fs.h_ext.vlan_tci) >= VLAN_N_VID) fs 1403 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if ((cmd->fs.flow_type & FLOW_EXT) && fs 1404 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { fs 1405 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; fs 1424 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.flow_type & FLOW_MAC_EXT) fs 1425 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c memcpy(&mac, cmd->fs.h_ext.h_dest, ETH_ALEN); fs 1445 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; fs 1455 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.h_u. fs 1460 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; fs 1463 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; fs 1484 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; fs 1499 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.h_u. fs 1504 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; fs 1505 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; fs 1506 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; fs 1507 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; fs 1511 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.h_u. fs 1516 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; fs 1517 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; fs 1518 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l4->tcp_udp.src_port = cmd->fs.h_u.udp_ip4_spec.psrc; fs 1519 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c spec_l4->tcp_udp.dst_port = cmd->fs.h_u.udp_ip4_spec.pdst; fs 1557 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c switch (cmd->fs.flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 1563 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c eth_spec = &cmd->fs.h_u.ether_spec; fs 1602 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location; fs 1606 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.ring_cookie == RX_CLS_FLOW_DISC) fs 1608 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c else if (cmd->fs.ring_cookie & EN_ETHTOOL_QP_ATTACH) { fs 1609 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c qpn = cmd->fs.ring_cookie & (EN_ETHTOOL_QP_ATTACH - 1); fs 1611 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.ring_cookie >= priv->rx_ring_num) { fs 1613 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.ring_cookie); fs 1616 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c qpn = priv->rss_map.qps[cmd->fs.ring_cookie].qpn; fs 1619 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.ring_cookie); fs 1628 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c loc_rule = &priv->ethtool_rules[cmd->fs.location]; fs 1633 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.location, loc_rule->id); fs 1644 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.location); fs 1648 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c memcpy(&loc_rule->flow_spec, &cmd->fs, fs 1667 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c if (cmd->fs.location >= MAX_NUM_OF_FS_RULES) fs 1670 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c rule = &priv->ethtool_rules[cmd->fs.location]; fs 1679 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c cmd->fs.location, rule->id); fs 1702 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c memcpy(&cmd->fs, &rule->flow_spec, fs 1745 drivers/net/ethernet/mellanox/mlx4/en_ethtool.c err = mlx4_en_get_flow(dev, cmd, cmd->fs.location); fs 842 drivers/net/ethernet/mellanox/mlx5/core/en.h struct mlx5e_flow_steering fs; fs 104 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], fs 134 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c dest.ft = priv->fs.arfs.arfs_tables[i].ft.t; fs 137 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c err = mlx5_modify_rule_destination(priv->fs.ttc.rules[tt], fs 164 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c destroy_workqueue(priv->fs.arfs.wq); fs 166 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (!IS_ERR_OR_NULL(priv->fs.arfs.arfs_tables[i].ft.t)) fs 167 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c arfs_destroy_table(&priv->fs.arfs.arfs_tables[i]); fs 174 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c struct arfs_table *arfs_t = &priv->fs.arfs.arfs_tables[type]; fs 312 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c struct mlx5e_arfs_tables *arfs = &priv->fs.arfs; fs 323 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); fs 352 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_lock_init(&priv->fs.arfs.arfs_lock); fs 353 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c INIT_LIST_HEAD(&priv->fs.arfs.rules); fs 354 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c priv->fs.arfs.wq = create_singlethread_workqueue("mlx5e_arfs"); fs 355 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c if (!priv->fs.arfs.wq) fs 380 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_lock_bh(&priv->fs.arfs.arfs_lock); fs 381 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c mlx5e_for_each_arfs_rule(arfs_rule, htmp, priv->fs.arfs.arfs_tables, i, j) { fs 392 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_unlock_bh(&priv->fs.arfs.arfs_lock); fs 409 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_lock_bh(&priv->fs.arfs.arfs_lock); fs 410 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c mlx5e_for_each_arfs_rule(rule, htmp, priv->fs.arfs.arfs_tables, i, j) { fs 414 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_unlock_bh(&priv->fs.arfs.arfs_lock); fs 458 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c struct mlx5e_arfs_tables *arfs = &priv->fs.arfs; fs 576 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_lock_bh(&priv->fs.arfs.arfs_lock); fs 578 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c spin_unlock_bh(&priv->fs.arfs.arfs_lock); fs 631 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c rule->filter_id = priv->fs.arfs.last_filter_id++ % RPS_NO_FILTER; fs 675 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c struct mlx5e_arfs_tables *arfs = &priv->fs.arfs; fs 709 drivers/net/ethernet/mellanox/mlx5/core/en_arfs.c queue_work(priv->fs.arfs.wq, &arfs_rule->arfs_work); fs 121 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(vlan, priv->fs.vlan.active_cvlans, VLAN_N_VID) fs 138 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(vlan, priv->fs.vlan.active_cvlans, VLAN_N_VID) { fs 165 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5_flow_table *ft = priv->fs.vlan.ft.t; fs 172 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c dest.ft = priv->fs.l2.ft.t; fs 182 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rule_p = &priv->fs.vlan.untagged_rule; fs 187 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rule_p = &priv->fs.vlan.any_cvlan_rule; fs 193 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rule_p = &priv->fs.vlan.any_svlan_rule; fs 199 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rule_p = &priv->fs.vlan.active_svlans_rule[vid]; fs 209 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c rule_p = &priv->fs.vlan.active_cvlans_rule[vid]; fs 256 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.untagged_rule) { fs 257 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(priv->fs.vlan.untagged_rule); fs 258 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.untagged_rule = NULL; fs 262 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.any_cvlan_rule) { fs 263 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(priv->fs.vlan.any_cvlan_rule); fs 264 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.any_cvlan_rule = NULL; fs 268 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.any_svlan_rule) { fs 269 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(priv->fs.vlan.any_svlan_rule); fs 270 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.any_svlan_rule = NULL; fs 274 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.active_svlans_rule[vid]) { fs 275 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(priv->fs.vlan.active_svlans_rule[vid]); fs 276 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.active_svlans_rule[vid] = NULL; fs 280 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.active_cvlans_rule[vid]) { fs 281 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5_del_flow_rules(priv->fs.vlan.active_cvlans_rule[vid]); fs 282 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.active_cvlans_rule[vid] = NULL; fs 308 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (!priv->fs.vlan.cvlan_filter_disabled) fs 311 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.cvlan_filter_disabled = false; fs 319 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.cvlan_filter_disabled) fs 322 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.vlan.cvlan_filter_disabled = true; fs 332 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c set_bit(vid, priv->fs.vlan.active_cvlans); fs 336 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c clear_bit(vid, priv->fs.vlan.active_cvlans); fs 346 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c set_bit(vid, priv->fs.vlan.active_svlans); fs 350 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c clear_bit(vid, priv->fs.vlan.active_svlans); fs 376 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c clear_bit(vid, priv->fs.vlan.active_cvlans); fs 379 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c clear_bit(vid, priv->fs.vlan.active_svlans); fs 393 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(i, priv->fs.vlan.active_cvlans, VLAN_N_VID) { fs 397 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(i, priv->fs.vlan.active_svlans, VLAN_N_VID) fs 400 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.cvlan_filter_disabled && fs 411 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(i, priv->fs.vlan.active_cvlans, VLAN_N_VID) { fs 415 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c for_each_set_bit(i, priv->fs.vlan.active_svlans, VLAN_N_VID) fs 418 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (priv->fs.vlan.cvlan_filter_disabled && fs 466 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_add_l2_to_hash(priv->fs.l2.netdev_uc, fs 470 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_add_l2_to_hash(priv->fs.l2.netdev_uc, ha->addr); fs 473 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_add_l2_to_hash(priv->fs.l2.netdev_mc, ha->addr); fs 489 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c addr_list = is_uc ? priv->fs.l2.netdev_uc : priv->fs.l2.netdev_mc; fs 493 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c else if (priv->fs.l2.broadcast_enabled) fs 518 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c size = is_uc ? 0 : (priv->fs.l2.broadcast_enabled ? 1 : 0); fs 523 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c addr_list = is_uc ? priv->fs.l2.netdev_uc : priv->fs.l2.netdev_mc; fs 554 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5e_l2_table *ea = &priv->fs.l2; fs 569 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_for_each_hash_node(hn, tmp, priv->fs.l2.netdev_uc, i) fs 572 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_for_each_hash_node(hn, tmp, priv->fs.l2.netdev_mc, i) fs 582 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_for_each_hash_node(hn, tmp, priv->fs.l2.netdev_uc, i) fs 584 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_for_each_hash_node(hn, tmp, priv->fs.l2.netdev_mc, i) fs 598 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5e_l2_table *ea = &priv->fs.l2; fs 618 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (!priv->fs.vlan.cvlan_filter_disabled) fs 633 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (!priv->fs.vlan.cvlan_filter_disabled) fs 659 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ether_addr_copy(priv->fs.l2.broadcast.addr, priv->netdev->broadcast); fs 1115 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ttc_params->inner_ttc = &priv->fs.inner_ttc; fs 1146 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ft->t = mlx5_create_flow_table(priv->fs.ns, ¶ms->ft_attr); fs 1192 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ft->t = mlx5_create_flow_table(priv->fs.ns, ¶ms->ft_attr); fs 1225 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5_flow_table *ft = priv->fs.l2.ft.t; fs 1243 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c dest.ft = priv->fs.ttc.ft.t; fs 1349 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_flow_table(&priv->fs.l2.ft); fs 1354 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5e_l2_table *l2_table = &priv->fs.l2; fs 1365 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); fs 1476 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c struct mlx5e_flow_table *ft = &priv->fs.vlan.ft; fs 1486 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c ft->t = mlx5_create_flow_table(priv->fs.ns, &ft_attr); fs 1519 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_flow_table(&priv->fs.vlan.ft); fs 1527 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c priv->fs.ns = mlx5_get_flow_namespace(priv->mdev, fs 1530 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c if (!priv->fs.ns) fs 1545 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c err = mlx5e_create_inner_ttc_table(priv, &ttc_params, &priv->fs.inner_ttc); fs 1556 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c err = mlx5e_create_ttc_table(priv, &ttc_params, &priv->fs.ttc); fs 1584 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_ttc_table(priv, &priv->fs.ttc); fs 1586 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_inner_ttc_table(priv, &priv->fs.inner_ttc); fs 1597 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_ttc_table(priv, &priv->fs.ttc); fs 1598 drivers/net/ethernet/mellanox/mlx5/core/en_fs.c mlx5e_destroy_inner_ttc_table(priv, &priv->fs.inner_ttc); fs 58 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_rx_flow_spec *fs, fs 68 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 75 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; fs 81 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_ft = &priv->fs.ethtool.l3_l4_ft[prio]; fs 86 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_ft = &priv->fs.ethtool.l2_ft[prio]; fs 209 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_tcp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 211 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; fs 212 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; fs 222 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_udp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 224 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; fs 225 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip4_spec *l4_val = &fs->h_u.udp_ip4_spec; fs 235 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ip4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 237 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; fs 238 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; fs 250 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ip6(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 252 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; fs 253 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip6_spec *l3_val = &fs->h_u.usr_ip6_spec; fs 265 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_tcp6(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 267 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; fs 268 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip6_spec *l4_val = &fs->h_u.tcp_ip6_spec; fs 278 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_udp6(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 280 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; fs 281 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip6_spec *l4_val = &fs->h_u.udp_ip6_spec; fs 291 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ether(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) fs 293 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethhdr *eth_mask = &fs->m_u.ether_spec; fs 294 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethhdr *eth_val = &fs->h_u.ether_spec; fs 323 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_rx_flow_spec *fs) fs 329 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c u32 flow_type = fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT); fs 333 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_tcp4(outer_headers_c, outer_headers_v, fs); fs 336 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_udp4(outer_headers_c, outer_headers_v, fs); fs 339 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ip4(outer_headers_c, outer_headers_v, fs); fs 342 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_tcp6(outer_headers_c, outer_headers_v, fs); fs 345 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_udp6(outer_headers_c, outer_headers_v, fs); fs 348 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ip6(outer_headers_c, outer_headers_v, fs); fs 351 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c parse_ether(outer_headers_c, outer_headers_v, fs); fs 357 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if ((fs->flow_type & FLOW_EXT) && fs 358 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) fs 359 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); fs 361 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->flow_type & FLOW_MAC_EXT && fs 362 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c !is_zero_ether_addr(fs->m_ext.h_dest)) { fs 363 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); fs 364 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, fs 365 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c fs->h_ext.h_dest); fs 375 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct list_head *head = &priv->fs.ethtool.rules; fs 377 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(iter, &priv->fs.ethtool.rules, list) { fs 382 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c priv->fs.ethtool.tot_num_rules++; fs 400 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_rx_flow_spec *fs) fs 412 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c fs); fs 416 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->ring_cookie == RX_CLS_FLOW_DISC) { fs 424 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c mlx5e_qid_get_ch_and_group(params, fs->ring_cookie, &ix, &group); fs 459 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c priv->fs.ethtool.tot_num_rules--; fs 469 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(iter, &priv->fs.ethtool.rules, list) { fs 499 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_ethter(struct ethtool_rx_flow_spec *fs) fs 501 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethhdr *eth_mask = &fs->m_u.ether_spec; fs 513 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_tcpudp4(struct ethtool_rx_flow_spec *fs) fs 515 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; fs 533 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_ip4(struct ethtool_rx_flow_spec *fs) fs 535 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; fs 539 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) fs 551 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_ip6(struct ethtool_rx_flow_spec *fs) fs 553 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; fs 569 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_tcpudp6(struct ethtool_rx_flow_spec *fs) fs 571 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; fs 591 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c static int validate_vlan(struct ethtool_rx_flow_spec *fs) fs 593 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->m_ext.vlan_etype || fs 594 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) fs 597 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->m_ext.vlan_tci && fs 598 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) fs 605 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_rx_flow_spec *fs) fs 610 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->location >= MAX_NUM_OF_ETHTOOL_RULES) fs 613 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->ring_cookie != RX_CLS_FLOW_DISC) fs 615 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c fs->ring_cookie)) fs 618 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT)) { fs 620 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c num_tuples += validate_ethter(fs); fs 624 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c ret = validate_tcpudp4(fs); fs 630 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c ret = validate_ip4(fs); fs 637 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c ret = validate_tcpudp6(fs); fs 643 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c ret = validate_ip6(fs); fs 651 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if ((fs->flow_type & FLOW_EXT)) { fs 652 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c ret = validate_vlan(fs); fs 658 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c if (fs->flow_type & FLOW_MAC_EXT && fs 659 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c !is_zero_ether_addr(fs->m_ext.h_dest)) fs 667 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c struct ethtool_rx_flow_spec *fs) fs 675 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c num_tuples = validate_flow(priv, fs); fs 682 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_ft = get_flow_table(priv, fs, num_tuples); fs 686 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_rule = get_ethtool_rule(priv, fs->location); fs 692 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c eth_rule->flow_spec = *fs; fs 698 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c rule = add_ethtool_flow_rule(priv, eth_ft->ft, fs); fs 743 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry(eth_rule, &priv->fs.ethtool.rules, list) { fs 745 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c info->fs = eth_rule->flow_spec; fs 776 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c list_for_each_entry_safe(iter, temp, &priv->fs.ethtool.rules, list) fs 782 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c INIT_LIST_HEAD(&priv->fs.ethtool.rules); fs 898 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c err = mlx5e_ethtool_flow_replace(priv, &cmd->fs); fs 901 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c err = mlx5e_ethtool_flow_remove(priv, cmd->fs.location); fs 922 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c info->rule_cnt = priv->fs.ethtool.tot_num_rules; fs 925 drivers/net/ethernet/mellanox/mlx5/core/en_fs_ethtool.c err = mlx5e_ethtool_get_flow(priv, info, info->fs.location); fs 3855 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (!bitmap_empty(priv->fs.vlan.active_svlans, VLAN_N_VID)) { fs 279 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c new_dest.ft = priv->fs.ttc.ft.t; fs 1520 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c priv->fs.ns = mlx5_get_flow_namespace(priv->mdev, fs 1529 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c err = mlx5e_create_ttc_table(priv, &ttc_params, &priv->fs.ttc); fs 1596 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_destroy_ttc_table(priv, &priv->fs.ttc); fs 1615 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c mlx5e_destroy_ttc_table(priv, &priv->fs.ttc); fs 305 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c &priv->fs.tc.mod_hdr; fs 702 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c hash_for_each_possible(priv->fs.tc.hairpin_tbl, hpe, fs 717 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!refcount_dec_and_mutex_lock(&hpe->refcnt, &priv->fs.tc.hairpin_tbl_lock)) fs 720 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.hairpin_tbl_lock); fs 799 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_lock(&priv->fs.tc.hairpin_tbl_lock); fs 802 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.hairpin_tbl_lock); fs 814 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.hairpin_tbl_lock); fs 826 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c hash_add(priv->fs.tc.hairpin_tbl, &hpe->hairpin_hlist, fs 828 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.hairpin_tbl_lock); fs 932 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c dest[dest_ix].ft = priv->fs.vlan.ft.t; fs 955 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_lock(&priv->fs.tc.t_lock); fs 956 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (IS_ERR_OR_NULL(priv->fs.tc.t)) { fs 968 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c priv->fs.tc.t = fs 969 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_create_auto_grouped_flow_table(priv->fs.ns, fs 974 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (IS_ERR(priv->fs.tc.t)) { fs 975 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.t_lock); fs 980 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c return PTR_ERR(priv->fs.tc.t); fs 987 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow->rule[0] = mlx5_add_flow_rules(priv->fs.tc.t, &parse_attr->spec, fs 989 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.t_lock); fs 1005 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_lock(&priv->fs.tc.t_lock); fs 1006 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!mlx5e_tc_num_filters(priv, MLX5_TC_FLAG(NIC_OFFLOAD)) && priv->fs.tc.t) { fs 1007 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mlx5_destroy_flow_table(priv->fs.tc.t); fs 1008 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c priv->fs.tc.t = NULL; fs 1010 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.t_lock); fs 3500 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c return &priv->fs.tc.ht; fs 4064 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_lock(&priv->fs.tc.hairpin_tbl_lock); fs 4065 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c hash_for_each(priv->fs.tc.hairpin_tbl, bkt, hpe, hairpin_hlist) fs 4068 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c mutex_unlock(&priv->fs.tc.hairpin_tbl_lock); fs 4083 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5e_flow_steering *fs; fs 4094 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c fs = container_of(tc, struct mlx5e_flow_steering, tc); fs 4095 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c priv = container_of(fs, struct mlx5e_priv, fs); fs 4108 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5e_tc_table *tc = &priv->fs.tc; fs 4141 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5e_tc_table *tc = &priv->fs.tc; fs 308 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c priv->fs.ns = mlx5_get_flow_namespace(priv->mdev, fs 311 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c if (!priv->fs.ns) fs 326 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c err = mlx5e_create_inner_ttc_table(priv, &ttc_params, &priv->fs.inner_ttc); fs 337 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c err = mlx5e_create_ttc_table(priv, &ttc_params, &priv->fs.ttc); fs 347 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c mlx5e_destroy_inner_ttc_table(priv, &priv->fs.inner_ttc); fs 356 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c mlx5e_destroy_ttc_table(priv, &priv->fs.ttc); fs 357 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c mlx5e_destroy_inner_ttc_table(priv, &priv->fs.inner_ttc); fs 1374 drivers/net/ethernet/qlogic/qede/qede_ethtool.c rc = qede_delete_flow_filter(edev, info->fs.location); fs 1402 drivers/net/ethernet/qlogic/qede/qede_filter.c struct ethtool_rx_flow_spec *fsp = &cmd->fs; fs 1583 drivers/net/ethernet/qlogic/qede/qede_filter.c struct ethtool_rx_flow_spec *fs) fs 1585 drivers/net/ethernet/qlogic/qede/qede_filter.c if (fs->flow_type & FLOW_MAC_EXT) { fs 1590 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((fs->flow_type & FLOW_EXT) && fs 1591 drivers/net/ethernet/qlogic/qede/qede_filter.c (fs->h_ext.vlan_etype || fs->h_ext.vlan_tci)) { fs 1596 drivers/net/ethernet/qlogic/qede/qede_filter.c if ((fs->flow_type & FLOW_EXT) && fs 1597 drivers/net/ethernet/qlogic/qede/qede_filter.c (fs->h_ext.data[0] || fs->h_ext.data[1])) { fs 1691 drivers/net/ethernet/qlogic/qede/qede_filter.c struct ethtool_rx_flow_spec *fs) fs 1693 drivers/net/ethernet/qlogic/qede/qede_filter.c if (fs->ring_cookie == RX_CLS_FLOW_DISC) { fs 1698 drivers/net/ethernet/qlogic/qede/qede_filter.c n->vfid = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); fs 1699 drivers/net/ethernet/qlogic/qede/qede_filter.c n->rxq_id = ethtool_get_flow_spec_ring(fs->ring_cookie); fs 2049 drivers/net/ethernet/qlogic/qede/qede_filter.c struct ethtool_rx_flow_spec *fs) fs 2056 drivers/net/ethernet/qlogic/qede/qede_filter.c if (qede_flow_spec_validate_unused(edev, fs)) fs 2059 drivers/net/ethernet/qlogic/qede/qede_filter.c switch ((fs->flow_type & ~FLOW_EXT)) { fs 2070 drivers/net/ethernet/qlogic/qede/qede_filter.c "Can't support flow of type %08x\n", fs->flow_type); fs 2074 drivers/net/ethernet/qlogic/qede/qede_filter.c input.fs = fs; fs 2086 drivers/net/ethernet/qlogic/qede/qede_filter.c fs->location); fs 2095 drivers/net/ethernet/qlogic/qede/qede_filter.c struct ethtool_rx_flow_spec *fsp = &info->fs; fs 1043 drivers/net/ethernet/sfc/ethtool.c rc = efx_ethtool_get_class_rule(efx, &info->fs, &rss_context); fs 1046 drivers/net/ethernet/sfc/ethtool.c if (info->fs.flow_type & FLOW_RSS) fs 1298 drivers/net/ethernet/sfc/ethtool.c return efx_ethtool_set_class_rule(efx, &info->fs, fs 1303 drivers/net/ethernet/sfc/ethtool.c info->fs.location); fs 991 drivers/net/ethernet/sfc/falcon/ethtool.c return ef4_ethtool_get_class_rule(efx, &info->fs); fs 1233 drivers/net/ethernet/sfc/falcon/ethtool.c return ef4_ethtool_set_class_rule(efx, &info->fs); fs 1237 drivers/net/ethernet/sfc/falcon/ethtool.c info->fs.location); fs 7157 drivers/net/ethernet/sun/niu.c struct ethtool_rx_flow_spec *fsp = &nfc->fs; fs 7162 drivers/net/ethernet/sun/niu.c idx = tcam_get_index(np, (u16)nfc->fs.location); fs 7167 drivers/net/ethernet/sun/niu.c parent->index, (u16)nfc->fs.location, idx); fs 7416 drivers/net/ethernet/sun/niu.c struct ethtool_rx_flow_spec *fsp = &nfc->fs; fs 7426 drivers/net/ethernet/sun/niu.c idx = nfc->fs.location; fs 7644 drivers/net/ethernet/sun/niu.c ret = niu_del_ethtool_tcam_entry(np, cmd->fs.location); fs 100 drivers/net/fddi/skfp/ess.c int fs); fs 114 drivers/net/fddi/skfp/ess.c int fs) fs 127 drivers/net/fddi/skfp/ess.c local = ((fs & L_INDICATOR) != 0) ; fs 134 drivers/net/fddi/skfp/ess.c return fs; fs 146 drivers/net/fddi/skfp/ess.c return fs; fs 174 drivers/net/fddi/skfp/ess.c return fs; fs 179 drivers/net/fddi/skfp/ess.c return fs; fs 198 drivers/net/fddi/skfp/ess.c return fs | I_INDICATOR; fs 201 drivers/net/fddi/skfp/ess.c return fs; fs 211 drivers/net/fddi/skfp/ess.c return fs; fs 220 drivers/net/fddi/skfp/ess.c return fs; fs 241 drivers/net/fddi/skfp/ess.c return fs; fs 250 drivers/net/fddi/skfp/ess.c return fs; fs 256 drivers/net/fddi/skfp/ess.c return fs; fs 268 drivers/net/fddi/skfp/ess.c return fs; fs 280 drivers/net/fddi/skfp/ess.c return fs; fs 288 drivers/net/fddi/skfp/ess.c return fs; fs 300 drivers/net/fddi/skfp/ess.c return fs; fs 320 drivers/net/fddi/skfp/ess.c return fs; fs 327 drivers/net/fddi/skfp/ess.c return fs; fs 339 drivers/net/fddi/skfp/ess.c return fs; fs 350 drivers/net/fddi/skfp/ess.c return fs; fs 358 drivers/net/fddi/skfp/ess.c return fs; fs 369 drivers/net/fddi/skfp/ess.c return fs; fs 517 drivers/net/fddi/skfp/h/cmtdef.h void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs); fs 620 drivers/net/fddi/skfp/h/cmtdef.h int fs); fs 464 drivers/net/fddi/skfp/smt.c void smt_received_pack(struct s_smc *smc, SMbuf *mb, int fs) fs 485 drivers/net/fddi/skfp/smt.c local = ((fs & L_INDICATOR) != 0) ; fs 522 drivers/net/fddi/skfp/smt.c if ( (fs & A_INDICATOR) && m_fc(mb) == FC_SMT_NSA) { fs 577 drivers/net/fddi/skfp/smt.c if (!(fs & C_INDICATOR) && m_fc(mb) == FC_SMT_NSA fs 613 drivers/net/fddi/skfp/smt.c ((!(fs & A_INDICATOR) && m_fc(mb) == FC_SMT_NSA) || fs 626 drivers/net/fddi/skfp/smt.c if (fs & A_INDICATOR) { fs 750 drivers/net/fddi/skfp/smt.c fs = ess_raf_received_pack(smc,mb,sm,fs) ; fs 755 drivers/net/fddi/skfp/smt.c sba_raf_received_pack(smc,sm,fs) ; fs 1458 drivers/net/phy/phylink.c struct fixed_phy_status fs; fs 1461 drivers/net/phy/phylink.c fs.link = state->link; fs 1462 drivers/net/phy/phylink.c fs.speed = state->speed; fs 1463 drivers/net/phy/phylink.c fs.duplex = state->duplex; fs 1464 drivers/net/phy/phylink.c fs.pause = state->pause & MLO_PAUSE_SYM; fs 1465 drivers/net/phy/phylink.c fs.asym_pause = state->pause & MLO_PAUSE_ASYM; fs 1467 drivers/net/phy/phylink.c val = swphy_read_reg(reg, &fs); fs 115 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 fs:1; fs 171 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 fs:1; fs 253 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 fs:1; fs 307 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h u32 fs:1; fs 480 drivers/net/wireless/realtek/rtw88/main.h bool fs; fs 406 drivers/ps3/ps3av.c int ps3av_set_audio_mode(u32 ch, u32 fs, u32 word_bits, u32 format, u32 source) fs 436 drivers/ps3/ps3av.c fs, word_bits, format, source); fs 709 drivers/ps3/ps3av.c i, audio->type, audio->max_num_of_ch, audio->fs, fs 466 drivers/ps3/ps3av_cmd.c u32 fs; fs 477 drivers/ps3/ps3av_cmd.c static u8 ps3av_cnv_mclk(u32 fs) fs 482 drivers/ps3/ps3av_cmd.c if (ps3av_cnv_mclk_table[i].fs == fs) fs 485 drivers/ps3/ps3av_cmd.c printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); fs 501 drivers/ps3/ps3av_cmd.c static void ps3av_cnv_ns(u8 *ns, u32 fs, u32 video_vid) fs 537 drivers/ps3/ps3av_cmd.c if (fs < PS3AV_CMD_AUDIO_FS_44K || fs > PS3AV_CMD_AUDIO_FS_192K) fs 538 drivers/ps3/ps3av_cmd.c printk(KERN_ERR "%s failed, fs:%x\n", __func__, fs); fs 667 drivers/ps3/ps3av_cmd.c u32 ch, u32 fs, u32 word_bits, u32 format, fs 673 drivers/ps3/ps3av_cmd.c if (!(ch | fs | format | word_bits | source)) { fs 675 drivers/ps3/ps3av_cmd.c fs = PS3AV_CMD_AUDIO_FS_48K; fs 688 drivers/ps3/ps3av_cmd.c audio->audio_fs = fs; fs 744 drivers/ps3/ps3av_cmd.c switch (fs) { fs 1066 drivers/scsi/esas2r/esas2r.h struct esas2r_ioctl_fs *fs, fs 830 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_ioctl_fs *fs = fs 836 drivers/scsi/esas2r/esas2r_flash.c fs->driver_error = rq->req_stat; fs 838 drivers/scsi/esas2r/esas2r_flash.c if (fs->driver_error == RS_SUCCESS) fs 839 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_SUCCESS; fs 841 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_FAILED; fs 846 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_ioctl_fs *fs, fs 851 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_ioctlfs_command *fsc = &fs->command; fs 855 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_FAILED; fs 856 drivers/scsi/esas2r/esas2r_flash.c fs->driver_error = RS_PENDING; fs 858 drivers/scsi/esas2r/esas2r_flash.c if (fs->version > ESAS2R_FS_VER) { fs 859 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_VERSION; fs 864 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_FUNC; fs 870 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_FUNC; fs 876 drivers/scsi/esas2r/esas2r_flash.c || fs->adap_type != ESAS2R_FS_AT_ESASRAID2) fs 878 drivers/scsi/esas2r/esas2r_flash.c || fs->adap_type != ESAS2R_FS_AT_TSSASRAID2) fs 880 drivers/scsi/esas2r/esas2r_flash.c || fs->adap_type != ESAS2R_FS_AT_TSSASRAID2E) fs 882 drivers/scsi/esas2r/esas2r_flash.c || fs->adap_type != ESAS2R_FS_AT_TLSASHBA)) { fs 883 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_ADAPTER; fs 887 drivers/scsi/esas2r/esas2r_flash.c if (fs->driver_ver > ESAS2R_FS_DRVR_VER) { fs 888 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_DRVR_VER; fs 894 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_DEGRADED; fs 899 drivers/scsi/esas2r/esas2r_flash.c rq->interrupt_cx = fs; fs 911 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_INV_FUNC; fs 919 drivers/scsi/esas2r/esas2r_flash.c fs->status = ATTO_STS_OUT_OF_RSRC; fs 1937 drivers/scsi/esas2r/esas2r_ioctl.c struct esas2r_ioctl_fs *fs = fs 1939 drivers/scsi/esas2r/esas2r_ioctl.c u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; fs 1955 drivers/scsi/esas2r/esas2r_ioctl.c struct esas2r_ioctl_fs *fs = fs 1961 drivers/scsi/esas2r/esas2r_ioctl.c fs->status = ATTO_STS_OUT_OF_RSRC; fs 1983 drivers/scsi/esas2r/esas2r_ioctl.c sgc.cur_offset = fs->data; fs 1988 drivers/scsi/esas2r/esas2r_ioctl.c if (!esas2r_process_fs_ioctl(a, fs, rq, &sgc)) { fs 1989 drivers/scsi/esas2r/esas2r_ioctl.c if (fs->status == ATTO_STS_OUT_OF_RSRC) fs 2030 drivers/scsi/esas2r/esas2r_ioctl.c struct esas2r_ioctl_fs *fs = (struct esas2r_ioctl_fs *)buf; fs 2031 drivers/scsi/esas2r/esas2r_ioctl.c u32 length = fs->command.length + offsetof( fs 2040 drivers/scsi/esas2r/esas2r_ioctl.c if (fs->command.command == ESAS2R_FS_CMD_BEGINW) fs 222 drivers/scsi/esas2r/esas2r_main.c ESAS2R_RW_BIN_ATTR(fs); fs 3897 drivers/scsi/lpfc/lpfc_hw.h uint32_t fs:1; fs 3907 drivers/scsi/lpfc/lpfc_hw.h uint32_t fs:1; fs 37 drivers/soc/qcom/llcc-sdm845.c #define SCT_ENTRY(uid, sid, mc, p, fs, bway, rway, cmod, ptw, dca, rp, a) \ fs 43 drivers/soc/qcom/llcc-sdm845.c .fixed_size = fs, \ fs 411 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 417 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, buf_8[k] << fs); fs 421 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 427 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, buf_16[k] << fs); fs 431 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 437 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, get_unaligned(&buf_16[k]) << fs); fs 441 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 447 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, buf_32[k] << fs); fs 451 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 457 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, get_unaligned(&buf_32[k]) << fs); fs 461 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 467 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, swab32(buf_32[k] << fs)); fs 471 drivers/spi/spi-sh-msiof.c const void *tx_buf, int words, int fs) fs 477 drivers/spi/spi-sh-msiof.c sh_msiof_write(p, TFDR, swab32(get_unaligned(&buf_32[k]) << fs)); fs 481 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 487 drivers/spi/spi-sh-msiof.c buf_8[k] = sh_msiof_read(p, RFDR) >> fs; fs 491 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 497 drivers/spi/spi-sh-msiof.c buf_16[k] = sh_msiof_read(p, RFDR) >> fs; fs 501 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 507 drivers/spi/spi-sh-msiof.c put_unaligned(sh_msiof_read(p, RFDR) >> fs, &buf_16[k]); fs 511 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 517 drivers/spi/spi-sh-msiof.c buf_32[k] = sh_msiof_read(p, RFDR) >> fs; fs 521 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 527 drivers/spi/spi-sh-msiof.c put_unaligned(sh_msiof_read(p, RFDR) >> fs, &buf_32[k]); fs 531 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 537 drivers/spi/spi-sh-msiof.c buf_32[k] = swab32(sh_msiof_read(p, RFDR) >> fs); fs 541 drivers/spi/spi-sh-msiof.c void *rx_buf, int words, int fs) fs 547 drivers/spi/spi-sh-msiof.c put_unaligned(swab32(sh_msiof_read(p, RFDR) >> fs), &buf_32[k]); fs 523 drivers/staging/comedi/drivers/jr3_pci.c struct force_array __iomem *fs = &sensor->full_scale; fs 527 drivers/staging/comedi/drivers/jr3_pci.c r[0].l.range[0].min = -get_s16(&fs->fx) * 1000; fs 528 drivers/staging/comedi/drivers/jr3_pci.c r[0].l.range[0].max = get_s16(&fs->fx) * 1000; fs 529 drivers/staging/comedi/drivers/jr3_pci.c r[1].l.range[0].min = -get_s16(&fs->fy) * 1000; fs 530 drivers/staging/comedi/drivers/jr3_pci.c r[1].l.range[0].max = get_s16(&fs->fy) * 1000; fs 531 drivers/staging/comedi/drivers/jr3_pci.c r[2].l.range[0].min = -get_s16(&fs->fz) * 1000; fs 532 drivers/staging/comedi/drivers/jr3_pci.c r[2].l.range[0].max = get_s16(&fs->fz) * 1000; fs 533 drivers/staging/comedi/drivers/jr3_pci.c r[3].l.range[0].min = -get_s16(&fs->mx) * 100; fs 534 drivers/staging/comedi/drivers/jr3_pci.c r[3].l.range[0].max = get_s16(&fs->mx) * 100; fs 535 drivers/staging/comedi/drivers/jr3_pci.c r[4].l.range[0].min = -get_s16(&fs->my) * 100; fs 536 drivers/staging/comedi/drivers/jr3_pci.c r[4].l.range[0].max = get_s16(&fs->my) * 100; fs 537 drivers/staging/comedi/drivers/jr3_pci.c r[5].l.range[0].min = -get_s16(&fs->mz) * 100; fs 539 drivers/staging/comedi/drivers/jr3_pci.c r[5].l.range[0].max = get_s16(&fs->mz) * 100; fs 540 drivers/staging/comedi/drivers/jr3_pci.c r[6].l.range[0].min = -get_s16(&fs->v1) * 100; fs 541 drivers/staging/comedi/drivers/jr3_pci.c r[6].l.range[0].max = get_s16(&fs->v1) * 100; fs 542 drivers/staging/comedi/drivers/jr3_pci.c r[7].l.range[0].min = -get_s16(&fs->v2) * 100; fs 543 drivers/staging/comedi/drivers/jr3_pci.c r[7].l.range[0].max = get_s16(&fs->v2) * 100; fs 3677 drivers/staging/exfat/exfat_super.c opts->fs_fmask = opts->fs_dmask = current->fs->umask; fs 195 drivers/staging/media/imx/imx-media-vdic.c u32 fs = priv->field_size; fs 209 drivers/staging/media/imx/imx-media-vdic.c prev_phys = vb2_dma_contig_plane_dma_addr(prev_vb, 0) + fs; fs 211 drivers/staging/media/imx/imx-media-vdic.c next_phys = vb2_dma_contig_plane_dma_addr(curr_vb, 0) + fs; fs 273 drivers/staging/octeon/ethernet-tx.c skb_frag_t *fs = skb_shinfo(skb)->frags + i; fs 276 drivers/staging/octeon/ethernet-tx.c XKPHYS_TO_PHYS((uintptr_t)skb_frag_address(fs)); fs 277 drivers/staging/octeon/ethernet-tx.c hw_buffer.s.size = skb_frag_size(fs); fs 160 drivers/usb/gadget/config.c struct usb_descriptor_header **fs, fs 167 drivers/usb/gadget/config.c if (fs) { fs 168 drivers/usb/gadget/config.c f->fs_descriptors = usb_copy_descriptors(fs); fs 205 drivers/usb/gadget/function/f_printer.c struct usb_endpoint_descriptor *fs, fs 215 drivers/usb/gadget/function/f_printer.c return fs; fs 1361 fs/binfmt_elf.c mm_segment_t fs = get_fs(); fs 1381 fs/binfmt_elf.c set_fs(fs); fs 2187 fs/binfmt_elf.c mm_segment_t fs; fs 2244 fs/binfmt_elf.c fs = get_fs(); fs 2372 fs/binfmt_elf.c set_fs(fs); fs 1552 fs/binfmt_elf_fdpic.c mm_segment_t fs; fs 1681 fs/binfmt_elf_fdpic.c fs = get_fs(); fs 1791 fs/binfmt_elf_fdpic.c set_fs(fs); fs 572 fs/cachefiles/daemon.c get_fs_pwd(current->fs, &path); fs 644 fs/cachefiles/daemon.c get_fs_pwd(current->fs, &path); fs 746 fs/coredump.c get_fs_root(init_task.fs, &root); fs 232 fs/d_path.c static void get_fs_root_rcu(struct fs_struct *fs, struct path *root) fs 237 fs/d_path.c seq = read_seqcount_begin(&fs->seq); fs 238 fs/d_path.c *root = fs->root; fs 239 fs/d_path.c } while (read_seqcount_retry(&fs->seq, seq)); fs 280 fs/d_path.c get_fs_root_rcu(current->fs, &root); fs 395 fs/d_path.c static void get_fs_root_and_pwd_rcu(struct fs_struct *fs, struct path *root, fs 401 fs/d_path.c seq = read_seqcount_begin(&fs->seq); fs 402 fs/d_path.c *root = fs->root; fs 403 fs/d_path.c *pwd = fs->pwd; fs 404 fs/d_path.c } while (read_seqcount_retry(&fs->seq, seq)); fs 435 fs/d_path.c get_fs_root_and_pwd_rcu(current->fs, &root, &pwd); fs 1501 fs/exec.c spin_lock(&p->fs->lock); fs 1504 fs/exec.c if (t->fs == p->fs) fs 1509 fs/exec.c if (p->fs->users > n_fs) fs 1512 fs/exec.c p->fs->in_exec = 1; fs 1513 fs/exec.c spin_unlock(&p->fs->lock); fs 1827 fs/exec.c current->fs->in_exec = 0; fs 1847 fs/exec.c current->fs->in_exec = 0; fs 120 fs/fhandle.c struct fs_struct *fs = current->fs; fs 121 fs/fhandle.c spin_lock(&fs->lock); fs 122 fs/fhandle.c mnt = mntget(fs->pwd.mnt); fs 123 fs/fhandle.c spin_unlock(&fs->lock); fs 38 fs/filesystems.c struct file_system_type *get_filesystem(struct file_system_type *fs) fs 40 fs/filesystems.c __module_get(fs->owner); fs 41 fs/filesystems.c return fs; fs 44 fs/filesystems.c void put_filesystem(struct file_system_type *fs) fs 46 fs/filesystems.c module_put(fs->owner); fs 72 fs/filesystems.c int register_filesystem(struct file_system_type * fs) fs 77 fs/filesystems.c if (fs->parameters && !fs_validate_description(fs->parameters)) fs 80 fs/filesystems.c BUG_ON(strchr(fs->name, '.')); fs 81 fs/filesystems.c if (fs->next) fs 84 fs/filesystems.c p = find_filesystem(fs->name, strlen(fs->name)); fs 88 fs/filesystems.c *p = fs; fs 107 fs/filesystems.c int unregister_filesystem(struct file_system_type * fs) fs 114 fs/filesystems.c if (fs == *tmp) { fs 115 fs/filesystems.c *tmp = fs->next; fs 116 fs/filesystems.c fs->next = NULL; fs 255 fs/filesystems.c struct file_system_type *fs; fs 258 fs/filesystems.c fs = *(find_filesystem(name, len)); fs 259 fs/filesystems.c if (fs && !try_module_get(fs->owner)) fs 260 fs/filesystems.c fs = NULL; fs 262 fs/filesystems.c return fs; fs 267 fs/filesystems.c struct file_system_type *fs; fs 271 fs/filesystems.c fs = __get_fs_type(name, len); fs 272 fs/filesystems.c if (!fs && (request_module("fs-%.*s", len, name) == 0)) { fs 273 fs/filesystems.c fs = __get_fs_type(name, len); fs 274 fs/filesystems.c if (!fs) fs 279 fs/filesystems.c if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) { fs 280 fs/filesystems.c put_filesystem(fs); fs 281 fs/filesystems.c fs = NULL; fs 283 fs/filesystems.c return fs; fs 15 fs/fs_struct.c void set_fs_root(struct fs_struct *fs, const struct path *path) fs 20 fs/fs_struct.c spin_lock(&fs->lock); fs 21 fs/fs_struct.c write_seqcount_begin(&fs->seq); fs 22 fs/fs_struct.c old_root = fs->root; fs 23 fs/fs_struct.c fs->root = *path; fs 24 fs/fs_struct.c write_seqcount_end(&fs->seq); fs 25 fs/fs_struct.c spin_unlock(&fs->lock); fs 34 fs/fs_struct.c void set_fs_pwd(struct fs_struct *fs, const struct path *path) fs 39 fs/fs_struct.c spin_lock(&fs->lock); fs 40 fs/fs_struct.c write_seqcount_begin(&fs->seq); fs 41 fs/fs_struct.c old_pwd = fs->pwd; fs 42 fs/fs_struct.c fs->pwd = *path; fs 43 fs/fs_struct.c write_seqcount_end(&fs->seq); fs 44 fs/fs_struct.c spin_unlock(&fs->lock); fs 61 fs/fs_struct.c struct fs_struct *fs; fs 67 fs/fs_struct.c fs = p->fs; fs 68 fs/fs_struct.c if (fs) { fs 70 fs/fs_struct.c spin_lock(&fs->lock); fs 71 fs/fs_struct.c write_seqcount_begin(&fs->seq); fs 72 fs/fs_struct.c hits += replace_path(&fs->root, old_root, new_root); fs 73 fs/fs_struct.c hits += replace_path(&fs->pwd, old_root, new_root); fs 74 fs/fs_struct.c write_seqcount_end(&fs->seq); fs 79 fs/fs_struct.c spin_unlock(&fs->lock); fs 88 fs/fs_struct.c void free_fs_struct(struct fs_struct *fs) fs 90 fs/fs_struct.c path_put(&fs->root); fs 91 fs/fs_struct.c path_put(&fs->pwd); fs 92 fs/fs_struct.c kmem_cache_free(fs_cachep, fs); fs 97 fs/fs_struct.c struct fs_struct *fs = tsk->fs; fs 99 fs/fs_struct.c if (fs) { fs 102 fs/fs_struct.c spin_lock(&fs->lock); fs 103 fs/fs_struct.c tsk->fs = NULL; fs 104 fs/fs_struct.c kill = !--fs->users; fs 105 fs/fs_struct.c spin_unlock(&fs->lock); fs 108 fs/fs_struct.c free_fs_struct(fs); fs 114 fs/fs_struct.c struct fs_struct *fs = kmem_cache_alloc(fs_cachep, GFP_KERNEL); fs 116 fs/fs_struct.c if (fs) { fs 117 fs/fs_struct.c fs->users = 1; fs 118 fs/fs_struct.c fs->in_exec = 0; fs 119 fs/fs_struct.c spin_lock_init(&fs->lock); fs 120 fs/fs_struct.c seqcount_init(&fs->seq); fs 121 fs/fs_struct.c fs->umask = old->umask; fs 124 fs/fs_struct.c fs->root = old->root; fs 125 fs/fs_struct.c path_get(&fs->root); fs 126 fs/fs_struct.c fs->pwd = old->pwd; fs 127 fs/fs_struct.c path_get(&fs->pwd); fs 130 fs/fs_struct.c return fs; fs 135 fs/fs_struct.c struct fs_struct *fs = current->fs; fs 136 fs/fs_struct.c struct fs_struct *new_fs = copy_fs_struct(fs); fs 143 fs/fs_struct.c spin_lock(&fs->lock); fs 144 fs/fs_struct.c kill = !--fs->users; fs 145 fs/fs_struct.c current->fs = new_fs; fs 146 fs/fs_struct.c spin_unlock(&fs->lock); fs 150 fs/fs_struct.c free_fs_struct(fs); fs 158 fs/fs_struct.c return current->fs->umask; fs 63 fs/fuse/virtio_fs.c struct virtio_fs *fs = vq->vdev->priv; fs 65 fs/fuse/virtio_fs.c return &fs->vqs[vq->index]; fs 95 fs/fuse/virtio_fs.c static void virtio_fs_put(struct virtio_fs *fs) fs 97 fs/fuse/virtio_fs.c kref_put(&fs->refcount, release_virtio_fs_obj); fs 129 fs/fuse/virtio_fs.c static void virtio_fs_drain_all_queues(struct virtio_fs *fs) fs 134 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) { fs 135 fs/fuse/virtio_fs.c fsvq = &fs->vqs[i]; fs 140 fs/fuse/virtio_fs.c static void virtio_fs_start_all_queues(struct virtio_fs *fs) fs 145 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) { fs 146 fs/fuse/virtio_fs.c fsvq = &fs->vqs[i]; fs 154 fs/fuse/virtio_fs.c static int virtio_fs_add_instance(struct virtio_fs *fs) fs 162 fs/fuse/virtio_fs.c if (strcmp(fs->tag, fs2->tag) == 0) fs 167 fs/fuse/virtio_fs.c list_add_tail(&fs->list, &virtio_fs_instances); fs 179 fs/fuse/virtio_fs.c struct virtio_fs *fs; fs 183 fs/fuse/virtio_fs.c list_for_each_entry(fs, &virtio_fs_instances, list) { fs 184 fs/fuse/virtio_fs.c if (strcmp(fs->tag, tag) == 0) { fs 185 fs/fuse/virtio_fs.c kref_get(&fs->refcount); fs 190 fs/fuse/virtio_fs.c fs = NULL; /* not found */ fs 195 fs/fuse/virtio_fs.c return fs; fs 198 fs/fuse/virtio_fs.c static void virtio_fs_free_devs(struct virtio_fs *fs) fs 202 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) { fs 203 fs/fuse/virtio_fs.c struct virtio_fs_vq *fsvq = &fs->vqs[i]; fs 214 fs/fuse/virtio_fs.c static int virtio_fs_read_tag(struct virtio_device *vdev, struct virtio_fs *fs) fs 229 fs/fuse/virtio_fs.c fs->tag = devm_kmalloc(&vdev->dev, len + 1, GFP_KERNEL); fs 230 fs/fuse/virtio_fs.c if (!fs->tag) fs 232 fs/fuse/virtio_fs.c memcpy(fs->tag, tag_buf, len); fs 233 fs/fuse/virtio_fs.c fs->tag[len] = '\0'; fs 523 fs/fuse/virtio_fs.c struct virtio_fs *fs) fs 532 fs/fuse/virtio_fs.c &fs->num_request_queues); fs 533 fs/fuse/virtio_fs.c if (fs->num_request_queues == 0) fs 536 fs/fuse/virtio_fs.c fs->nvqs = 1 + fs->num_request_queues; fs 537 fs/fuse/virtio_fs.c fs->vqs = kcalloc(fs->nvqs, sizeof(fs->vqs[VQ_HIPRIO]), GFP_KERNEL); fs 538 fs/fuse/virtio_fs.c if (!fs->vqs) fs 541 fs/fuse/virtio_fs.c vqs = kmalloc_array(fs->nvqs, sizeof(vqs[VQ_HIPRIO]), GFP_KERNEL); fs 542 fs/fuse/virtio_fs.c callbacks = kmalloc_array(fs->nvqs, sizeof(callbacks[VQ_HIPRIO]), fs 544 fs/fuse/virtio_fs.c names = kmalloc_array(fs->nvqs, sizeof(names[VQ_HIPRIO]), GFP_KERNEL); fs 551 fs/fuse/virtio_fs.c snprintf(fs->vqs[VQ_HIPRIO].name, sizeof(fs->vqs[VQ_HIPRIO].name), fs 553 fs/fuse/virtio_fs.c names[VQ_HIPRIO] = fs->vqs[VQ_HIPRIO].name; fs 554 fs/fuse/virtio_fs.c INIT_WORK(&fs->vqs[VQ_HIPRIO].done_work, virtio_fs_hiprio_done_work); fs 555 fs/fuse/virtio_fs.c INIT_LIST_HEAD(&fs->vqs[VQ_HIPRIO].queued_reqs); fs 556 fs/fuse/virtio_fs.c INIT_LIST_HEAD(&fs->vqs[VQ_HIPRIO].end_reqs); fs 557 fs/fuse/virtio_fs.c INIT_DELAYED_WORK(&fs->vqs[VQ_HIPRIO].dispatch_work, fs 559 fs/fuse/virtio_fs.c spin_lock_init(&fs->vqs[VQ_HIPRIO].lock); fs 562 fs/fuse/virtio_fs.c for (i = VQ_REQUEST; i < fs->nvqs; i++) { fs 563 fs/fuse/virtio_fs.c spin_lock_init(&fs->vqs[i].lock); fs 564 fs/fuse/virtio_fs.c INIT_WORK(&fs->vqs[i].done_work, virtio_fs_requests_done_work); fs 565 fs/fuse/virtio_fs.c INIT_DELAYED_WORK(&fs->vqs[i].dispatch_work, fs 567 fs/fuse/virtio_fs.c INIT_LIST_HEAD(&fs->vqs[i].queued_reqs); fs 568 fs/fuse/virtio_fs.c INIT_LIST_HEAD(&fs->vqs[i].end_reqs); fs 569 fs/fuse/virtio_fs.c snprintf(fs->vqs[i].name, sizeof(fs->vqs[i].name), fs 572 fs/fuse/virtio_fs.c names[i] = fs->vqs[i].name; fs 575 fs/fuse/virtio_fs.c ret = virtio_find_vqs(vdev, fs->nvqs, vqs, callbacks, names, NULL); fs 579 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) fs 580 fs/fuse/virtio_fs.c fs->vqs[i].vq = vqs[i]; fs 582 fs/fuse/virtio_fs.c virtio_fs_start_all_queues(fs); fs 588 fs/fuse/virtio_fs.c kfree(fs->vqs); fs 594 fs/fuse/virtio_fs.c struct virtio_fs *fs) fs 601 fs/fuse/virtio_fs.c struct virtio_fs *fs; fs 604 fs/fuse/virtio_fs.c fs = kzalloc(sizeof(*fs), GFP_KERNEL); fs 605 fs/fuse/virtio_fs.c if (!fs) fs 607 fs/fuse/virtio_fs.c kref_init(&fs->refcount); fs 608 fs/fuse/virtio_fs.c vdev->priv = fs; fs 610 fs/fuse/virtio_fs.c ret = virtio_fs_read_tag(vdev, fs); fs 614 fs/fuse/virtio_fs.c ret = virtio_fs_setup_vqs(vdev, fs); fs 625 fs/fuse/virtio_fs.c ret = virtio_fs_add_instance(fs); fs 633 fs/fuse/virtio_fs.c virtio_fs_cleanup_vqs(vdev, fs); fs 637 fs/fuse/virtio_fs.c kfree(fs); fs 641 fs/fuse/virtio_fs.c static void virtio_fs_stop_all_queues(struct virtio_fs *fs) fs 646 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) { fs 647 fs/fuse/virtio_fs.c fsvq = &fs->vqs[i]; fs 656 fs/fuse/virtio_fs.c struct virtio_fs *fs = vdev->priv; fs 660 fs/fuse/virtio_fs.c list_del_init(&fs->list); fs 661 fs/fuse/virtio_fs.c virtio_fs_stop_all_queues(fs); fs 662 fs/fuse/virtio_fs.c virtio_fs_drain_all_queues(fs); fs 664 fs/fuse/virtio_fs.c virtio_fs_cleanup_vqs(vdev, fs); fs 668 fs/fuse/virtio_fs.c virtio_fs_put(fs); fs 715 fs/fuse/virtio_fs.c struct virtio_fs *fs; fs 725 fs/fuse/virtio_fs.c fs = fiq->priv; fs 726 fs/fuse/virtio_fs.c fsvq = &fs->vqs[VQ_HIPRIO]; fs 982 fs/fuse/virtio_fs.c struct virtio_fs *fs; fs 994 fs/fuse/virtio_fs.c fs = fiq->priv; fs 1001 fs/fuse/virtio_fs.c fsvq = &fs->vqs[queue_id]; fs 1039 fs/fuse/virtio_fs.c struct virtio_fs *fs = fc->iq.priv; fs 1061 fs/fuse/virtio_fs.c if (list_empty(&fs->list)) { fs 1062 fs/fuse/virtio_fs.c pr_info("virtio-fs: tag <%s> not found\n", fs->tag); fs 1069 fs/fuse/virtio_fs.c struct virtio_fs_vq *fsvq = &fs->vqs[i]; fs 1076 fs/fuse/virtio_fs.c ctx.fudptr = (void **)&fs->vqs[VQ_REQUEST].fud; fs 1081 fs/fuse/virtio_fs.c fc = fs->vqs[VQ_REQUEST].fud->fc; fs 1083 fs/fuse/virtio_fs.c for (i = 0; i < fs->nvqs; i++) { fs 1084 fs/fuse/virtio_fs.c struct virtio_fs_vq *fsvq = &fs->vqs[i]; fs 1092 fs/fuse/virtio_fs.c virtio_fs_start_all_queues(fs); fs 1098 fs/fuse/virtio_fs.c virtio_fs_free_devs(fs); fs 1157 fs/fuse/virtio_fs.c struct virtio_fs *fs; fs 1166 fs/fuse/virtio_fs.c fs = virtio_fs_find_instance(fsc->source); fs 1167 fs/fuse/virtio_fs.c if (!fs) { fs 1175 fs/fuse/virtio_fs.c virtio_fs_put(fs); fs 1181 fs/fuse/virtio_fs.c fs); fs 19 fs/gfs2/util.h #define fs_emerg(fs, fmt, ...) \ fs 20 fs/gfs2/util.h pr_emerg("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) fs 21 fs/gfs2/util.h #define fs_warn(fs, fmt, ...) \ fs 22 fs/gfs2/util.h pr_warn("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) fs 23 fs/gfs2/util.h #define fs_err(fs, fmt, ...) \ fs 24 fs/gfs2/util.h pr_err("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) fs 25 fs/gfs2/util.h #define fs_info(fs, fmt, ...) \ fs 26 fs/gfs2/util.h pr_info("fsid=%s: " fmt, (fs)->sd_fsname, ##__VA_ARGS__) fs 70 fs/hpfs/anode.c unsigned fs; fs 123 fs/hpfs/anode.c fs = n < 0 ? 0 : le32_to_cpu(btree->u.external[n].file_secno) + le32_to_cpu(btree->u.external[n].length); fs 159 fs/hpfs/anode.c btree->u.external[n].file_secno = cpu_to_le32(fs); fs 181 fs/hpfs/anode.c btree->u.internal[n-1].file_secno = cpu_to_le32(fs); fs 258 fs/hpfs/anode.c btree->u.internal[0].file_secno = cpu_to_le32(fs); fs 339 fs/io_uring.c struct fs_struct *fs; fs 659 fs/io_uring.c req->fs = NULL; fs 1687 fs/io_uring.c if (req->fs) { fs 1688 fs/io_uring.c struct fs_struct *fs = req->fs; fs 1690 fs/io_uring.c spin_lock(&req->fs->lock); fs 1691 fs/io_uring.c if (--fs->users) fs 1692 fs/io_uring.c fs = NULL; fs 1693 fs/io_uring.c spin_unlock(&req->fs->lock); fs 1694 fs/io_uring.c if (fs) fs 1695 fs/io_uring.c free_fs_struct(fs); fs 2193 fs/io_uring.c struct fs_struct *old_fs_struct = current->fs; fs 2213 fs/io_uring.c if (req->fs != current->fs && current->fs != old_fs_struct) { fs 2215 fs/io_uring.c if (req->fs) fs 2216 fs/io_uring.c current->fs = req->fs; fs 2218 fs/io_uring.c current->fs = old_fs_struct; fs 2322 fs/io_uring.c current->fs = old_fs_struct; fs 2556 fs/io_uring.c spin_lock(¤t->fs->lock); fs 2557 fs/io_uring.c if (!current->fs->in_exec) { fs 2558 fs/io_uring.c req->fs = current->fs; fs 2559 fs/io_uring.c req->fs->users++; fs 2561 fs/io_uring.c spin_unlock(¤t->fs->lock); fs 2562 fs/io_uring.c if (!req->fs) { fs 803 fs/namei.c struct fs_struct *fs = current->fs; fs 809 fs/namei.c seq = read_seqcount_begin(&fs->seq); fs 810 fs/namei.c nd->root = fs->root; fs 812 fs/namei.c } while (read_seqcount_retry(&fs->seq, seq)); fs 814 fs/namei.c get_fs_root(fs, &nd->root); fs 2204 fs/namei.c struct fs_struct *fs = current->fs; fs 2208 fs/namei.c seq = read_seqcount_begin(&fs->seq); fs 2209 fs/namei.c nd->path = fs->pwd; fs 2212 fs/namei.c } while (read_seqcount_retry(&fs->seq, seq)); fs 2214 fs/namei.c get_fs_pwd(current->fs, &nd->path); fs 1522 fs/namespace.c if (&mnt->mnt == current->fs->root.mnt || fs 1564 fs/namespace.c if (&mnt->mnt == current->fs->root.mnt && !(flags & MNT_DETACH)) { fs 3641 fs/namespace.c get_fs_root(current->fs, &root); fs 3741 fs/namespace.c set_fs_pwd(current->fs, &root); fs 3742 fs/namespace.c set_fs_root(current->fs, &root); fs 3833 fs/namespace.c get_fs_root(current->fs, &fs_root); fs 3966 fs/namespace.c struct fs_struct *fs = current->fs; fs 3979 fs/namespace.c if (fs->users != 1) fs 3999 fs/namespace.c set_fs_pwd(fs, &root); fs 4000 fs/namespace.c set_fs_root(fs, &root); fs 257 fs/nfsd/nfs4proc.c current->fs->umask = open->op_umask; fs 263 fs/nfsd/nfs4proc.c current->fs->umask = 0; fs 609 fs/nfsd/nfs4proc.c current->fs->umask = create->cr_umask; fs 678 fs/nfsd/nfs4proc.c current->fs->umask = 0; fs 888 fs/nfsd/nfssvc.c current->fs->umask = 0; fs 467 fs/open.c set_fs_pwd(current->fs, &path); fs 499 fs/open.c set_fs_pwd(current->fs, &f.file->f_path); fs 527 fs/open.c set_fs_root(current->fs, &path); fs 135 fs/overlayfs/inode.c stat->dev = lower_layer->fs->pseudo_dev; fs 333 fs/overlayfs/namei.c ofs->lower_layers[i].fs->bad_uuid) fs 33 fs/overlayfs/ovl_entry.h struct ovl_sb *fs; fs 1376 fs/overlayfs/super.c ofs->lower_layers[ofs->numlower].fs = fs 176 fs/proc/array.c if (p->fs) fs 177 fs/proc/array.c umask = p->fs->umask; fs 175 fs/proc/base.c if (task->fs) { fs 176 fs/proc/base.c get_fs_root(task->fs, root); fs 190 fs/proc/base.c if (task->fs) { fs 191 fs/proc/base.c get_fs_pwd(task->fs, path); fs 57 fs/proc/task_nommu.c if (current->fs && current->fs->users > 1) fs 58 fs/proc/task_nommu.c sbytes += kobjsize(current->fs); fs 60 fs/proc/task_nommu.c bytes += kobjsize(current->fs); fs 261 fs/proc_namespace.c if (!task->fs) { fs 267 fs/proc_namespace.c get_fs_root(task->fs, &root); fs 331 fs/super.c struct file_system_type *fs = s->s_type; fs 335 fs/super.c fs->kill_sb(s); fs 345 fs/super.c put_filesystem(fs); fs 83 include/asm-generic/uaccess.h static inline void set_fs(mm_segment_t fs) fs 85 include/asm-generic/uaccess.h current_thread_info()->addr_limit = fs; fs 36 include/linux/ethtool.h struct compat_ethtool_rx_flow_spec fs; fs 415 include/linux/ethtool.h const struct ethtool_rx_flow_spec *fs; fs 109 include/linux/fdtable.h void put_files_struct(struct files_struct *fs); fs 3281 include/linux/fs.h extern struct file_system_type *get_filesystem(struct file_system_type *fs); fs 3282 include/linux/fs.h extern void put_filesystem(struct file_system_type *fs); fs 27 include/linux/fs_struct.h static inline void get_fs_root(struct fs_struct *fs, struct path *root) fs 29 include/linux/fs_struct.h spin_lock(&fs->lock); fs 30 include/linux/fs_struct.h *root = fs->root; fs 32 include/linux/fs_struct.h spin_unlock(&fs->lock); fs 35 include/linux/fs_struct.h static inline void get_fs_pwd(struct fs_struct *fs, struct path *pwd) fs 37 include/linux/fs_struct.h spin_lock(&fs->lock); fs 38 include/linux/fs_struct.h *pwd = fs->pwd; fs 40 include/linux/fs_struct.h spin_unlock(&fs->lock); fs 203 include/linux/iio/common/st_sensors.h struct st_sensor_fullscale fs; fs 905 include/linux/sched.h struct fs_struct *fs; fs 803 include/linux/usb/gadget.h struct usb_descriptor_header **fs, fs 60 include/math-emu/op-1.h #define _FP_FRAC_OVERP_1(fs,X) (X##_f & _FP_OVERFLOW_##fs) fs 61 include/math-emu/op-1.h #define _FP_FRAC_CLEAR_OVERP_1(fs,X) (X##_f &= ~_FP_OVERFLOW_##fs) fs 75 include/math-emu/op-1.h #define _FP_UNPACK_RAW_1(fs, X, val) \ fs 77 include/math-emu/op-1.h union _FP_UNION_##fs _flo; _flo.flt = (val); \ fs 84 include/math-emu/op-1.h #define _FP_UNPACK_RAW_1_P(fs, X, val) \ fs 86 include/math-emu/op-1.h union _FP_UNION_##fs *_flo = \ fs 87 include/math-emu/op-1.h (union _FP_UNION_##fs *)(val); \ fs 98 include/math-emu/op-1.h #define _FP_PACK_RAW_1(fs, val, X) \ fs 100 include/math-emu/op-1.h union _FP_UNION_##fs _flo; \ fs 109 include/math-emu/op-1.h #define _FP_PACK_RAW_1_P(fs, val, X) \ fs 111 include/math-emu/op-1.h union _FP_UNION_##fs *_flo = \ fs 112 include/math-emu/op-1.h (union _FP_UNION_##fs *)(val); \ fs 189 include/math-emu/op-1.h #define _FP_DIV_MEAT_1_imm(fs, R, X, Y, doit) \ fs 193 include/math-emu/op-1.h ? R##_e--, _FP_WFRACBITS_##fs \ fs 194 include/math-emu/op-1.h : _FP_WFRACBITS_##fs - 1); \ fs 204 include/math-emu/op-1.h #define _FP_DIV_MEAT_1_udiv_norm(fs, R, X, Y) \ fs 209 include/math-emu/op-1.h _y = Y##_f << _FP_WFRACXBITS_##fs; \ fs 228 include/math-emu/op-1.h #define _FP_DIV_MEAT_1_udiv(fs, R, X, Y) \ fs 234 include/math-emu/op-1.h _nl = X##_f << _FP_WFRACBITS_##fs; \ fs 235 include/math-emu/op-1.h _nh = X##_f >> _FP_WFRACXBITS_##fs; \ fs 239 include/math-emu/op-1.h _nl = X##_f << (_FP_WFRACBITS_##fs - 1); \ fs 240 include/math-emu/op-1.h _nh = X##_f >> (_FP_WFRACXBITS_##fs + 1); \ fs 111 include/math-emu/op-2.h #define _FP_FRAC_OVERP_2(fs,X) (_FP_FRAC_HIGH_##fs(X) & _FP_OVERFLOW_##fs) fs 112 include/math-emu/op-2.h #define _FP_FRAC_CLEAR_OVERP_2(fs,X) (_FP_FRAC_HIGH_##fs(X) &= ~_FP_OVERFLOW_##fs) fs 180 include/math-emu/op-2.h #define _FP_UNPACK_RAW_2(fs, X, val) \ fs 182 include/math-emu/op-2.h union _FP_UNION_##fs _flo; _flo.flt = (val); \ fs 190 include/math-emu/op-2.h #define _FP_UNPACK_RAW_2_P(fs, X, val) \ fs 192 include/math-emu/op-2.h union _FP_UNION_##fs *_flo = \ fs 193 include/math-emu/op-2.h (union _FP_UNION_##fs *)(val); \ fs 206 include/math-emu/op-2.h #define _FP_PACK_RAW_2(fs, val, X) \ fs 208 include/math-emu/op-2.h union _FP_UNION_##fs _flo; \ fs 218 include/math-emu/op-2.h #define _FP_PACK_RAW_2_P(fs, val, X) \ fs 220 include/math-emu/op-2.h union _FP_UNION_##fs *_flo = \ fs 221 include/math-emu/op-2.h (union _FP_UNION_##fs *)(val); \ fs 423 include/math-emu/op-2.h #define _FP_DIV_MEAT_2_udiv(fs, R, X, Y) \ fs 442 include/math-emu/op-2.h _FP_FRAC_SLL_2(Y, _FP_WFRACXBITS_##fs); \ fs 491 include/math-emu/op-2.h #define _FP_DIV_MEAT_2_gmp(fs, R, X, Y) \ fs 499 include/math-emu/op-2.h _x[1] = (X##_f0 << (_FP_WFRACBITS_##fs-1 - _FP_W_TYPE_SIZE) | \ fs 501 include/math-emu/op-2.h (_FP_WFRACBITS_##fs-1 - _FP_W_TYPE_SIZE))); \ fs 502 include/math-emu/op-2.h _x[2] = X##_f1 << (_FP_WFRACBITS_##fs-1 - _FP_W_TYPE_SIZE); \ fs 506 include/math-emu/op-2.h _x[1] = (X##_f0 << (_FP_WFRACBITS_##fs - _FP_W_TYPE_SIZE) | \ fs 508 include/math-emu/op-2.h (_FP_WFRACBITS_##fs - _FP_W_TYPE_SIZE))); \ fs 509 include/math-emu/op-2.h _x[2] = X##_f1 << (_FP_WFRACBITS_##fs - _FP_W_TYPE_SIZE); \ fs 134 include/math-emu/op-4.h #define _FP_FRAC_OVERP_4(fs,X) (_FP_FRAC_HIGH_##fs(X) & _FP_OVERFLOW_##fs) fs 135 include/math-emu/op-4.h #define _FP_FRAC_CLEAR_OVERP_4(fs,X) (_FP_FRAC_HIGH_##fs(X) &= ~_FP_OVERFLOW_##fs) fs 184 include/math-emu/op-4.h #define _FP_UNPACK_RAW_4(fs, X, val) \ fs 186 include/math-emu/op-4.h union _FP_UNION_##fs _flo; _flo.flt = (val); \ fs 195 include/math-emu/op-4.h #define _FP_UNPACK_RAW_4_P(fs, X, val) \ fs 197 include/math-emu/op-4.h union _FP_UNION_##fs *_flo = \ fs 198 include/math-emu/op-4.h (union _FP_UNION_##fs *)(val); \ fs 208 include/math-emu/op-4.h #define _FP_PACK_RAW_4(fs, val, X) \ fs 210 include/math-emu/op-4.h union _FP_UNION_##fs _flo; \ fs 220 include/math-emu/op-4.h #define _FP_PACK_RAW_4_P(fs, val, X) \ fs 222 include/math-emu/op-4.h union _FP_UNION_##fs *_flo = \ fs 223 include/math-emu/op-4.h (union _FP_UNION_##fs *)(val); \ fs 355 include/math-emu/op-4.h #define _FP_DIV_MEAT_4_udiv(fs, R, X, Y) \ fs 370 include/math-emu/op-4.h _FP_FRAC_SLL_4(Y, _FP_WFRACXBITS_##fs); \ fs 36 include/math-emu/op-common.h #define _FP_UNPACK_CANONICAL(fs, wc, X) \ fs 41 include/math-emu/op-common.h _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \ fs 43 include/math-emu/op-common.h X##_e -= _FP_EXPBIAS_##fs; \ fs 55 include/math-emu/op-common.h _shift -= _FP_FRACXBITS_##fs; \ fs 57 include/math-emu/op-common.h X##_e -= _FP_EXPBIAS_##fs - 1 + _shift; \ fs 68 include/math-emu/op-common.h case _FP_EXPMAX_##fs: \ fs 75 include/math-emu/op-common.h if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ fs 89 include/math-emu/op-common.h #define _FP_PACK_CANONICAL(fs, wc, X) \ fs 94 include/math-emu/op-common.h X##_e += _FP_EXPBIAS_##fs; \ fs 98 include/math-emu/op-common.h if (_FP_FRAC_OVERP_##wc(fs, X)) \ fs 100 include/math-emu/op-common.h _FP_FRAC_CLEAR_OVERP_##wc(fs, X); \ fs 104 include/math-emu/op-common.h if (X##_e >= _FP_EXPMAX_##fs) \ fs 122 include/math-emu/op-common.h X##_e = _FP_EXPMAX_##fs; \ fs 128 include/math-emu/op-common.h X##_e = _FP_EXPMAX_##fs - 1; \ fs 139 include/math-emu/op-common.h if (X##_e <= _FP_WFRACBITS_##fs) \ fs 141 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(X, X##_e, _FP_WFRACBITS_##fs); \ fs 142 include/math-emu/op-common.h if (_FP_FRAC_HIGH_##fs(X) \ fs 143 include/math-emu/op-common.h & (_FP_OVERFLOW_##fs >> 1)) \ fs 151 include/math-emu/op-common.h if (_FP_FRAC_HIGH_##fs(X) \ fs 152 include/math-emu/op-common.h & (_FP_OVERFLOW_##fs >> 1)) \ fs 189 include/math-emu/op-common.h X##_e = _FP_EXPMAX_##fs; \ fs 194 include/math-emu/op-common.h X##_e = _FP_EXPMAX_##fs; \ fs 197 include/math-emu/op-common.h _FP_FRAC_SET_##wc(X, _FP_NANFRAC_##fs); \ fs 198 include/math-emu/op-common.h X##_s = _FP_NANSIGN_##fs; \ fs 201 include/math-emu/op-common.h _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_QNANBIT_##fs; \ fs 209 include/math-emu/op-common.h #define _FP_ISSIGNAN(fs, wc, X) \ fs 212 include/math-emu/op-common.h if (X##_e == _FP_EXPMAX_##fs) \ fs 215 include/math-emu/op-common.h && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ fs 229 include/math-emu/op-common.h #define _FP_ADD_INTERNAL(fs, wc, R, X, Y, OP) \ fs 241 include/math-emu/op-common.h if (diff <= _FP_WFRACBITS_##fs) \ fs 242 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(X, diff, _FP_WFRACBITS_##fs); \ fs 251 include/math-emu/op-common.h if (diff <= _FP_WFRACBITS_##fs) \ fs 252 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(Y, diff, _FP_WFRACBITS_##fs); \ fs 265 include/math-emu/op-common.h if (_FP_FRAC_OVERP_##wc(fs, R)) \ fs 267 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(R, 1, _FP_WFRACBITS_##fs); \ fs 294 include/math-emu/op-common.h diff -= _FP_WFRACXBITS_##fs; \ fs 306 include/math-emu/op-common.h _FP_CHOOSENAN(fs, wc, R, X, Y, OP); \ fs 335 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 336 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 369 include/math-emu/op-common.h #define _FP_ADD(fs, wc, R, X, Y) _FP_ADD_INTERNAL(fs, wc, R, X, Y, '+') fs 370 include/math-emu/op-common.h #define _FP_SUB(fs, wc, R, X, Y) \ fs 373 include/math-emu/op-common.h _FP_ADD_INTERNAL(fs, wc, R, X, Y, '-'); \ fs 382 include/math-emu/op-common.h #define _FP_NEG(fs, wc, R, X) \ fs 395 include/math-emu/op-common.h #define _FP_MUL(fs, wc, R, X, Y) \ fs 404 include/math-emu/op-common.h _FP_MUL_MEAT_##fs(R,X,Y); \ fs 406 include/math-emu/op-common.h if (_FP_FRAC_OVERP_##wc(fs, R)) \ fs 407 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(R, 1, _FP_WFRACBITS_##fs); \ fs 413 include/math-emu/op-common.h _FP_CHOOSENAN(fs, wc, R, X, Y, '*'); \ fs 444 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 446 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 460 include/math-emu/op-common.h #define _FP_DIV(fs, wc, R, X, Y) \ fs 469 include/math-emu/op-common.h _FP_DIV_MEAT_##fs(R,X,Y); \ fs 473 include/math-emu/op-common.h _FP_CHOOSENAN(fs, wc, R, X, Y, '/'); \ fs 507 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 509 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 514 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 516 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 531 include/math-emu/op-common.h #define _FP_CMP(fs, wc, ret, X, Y, un) \ fs 534 include/math-emu/op-common.h if ((X##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(X)) \ fs 535 include/math-emu/op-common.h || (Y##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(Y))) \ fs 571 include/math-emu/op-common.h #define _FP_CMP_EQ(fs, wc, ret, X, Y) \ fs 574 include/math-emu/op-common.h if ((X##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(X)) \ fs 575 include/math-emu/op-common.h || (Y##_e == _FP_EXPMAX_##fs && !_FP_FRAC_ZEROP_##wc(Y))) \ fs 591 include/math-emu/op-common.h #define _FP_SQRT(fs, wc, R, X) \ fs 605 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 607 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 625 include/math-emu/op-common.h R##_s = _FP_NANSIGN_##fs; \ fs 626 include/math-emu/op-common.h _FP_FRAC_SET_##wc(R, _FP_NANFRAC_##fs); \ fs 636 include/math-emu/op-common.h q = _FP_OVERFLOW_##fs >> 1; \ fs 657 include/math-emu/op-common.h #define _FP_TO_INT(fs, wc, r, X, rsize, rsigned) \ fs 676 include/math-emu/op-common.h || X##_e >= rsize - 1 + _FP_WFRACBITS_##fs) \ fs 680 include/math-emu/op-common.h _FP_FRAC_SLL_##wc(X, (X##_e - _FP_WFRACBITS_##fs + 1)); \ fs 703 include/math-emu/op-common.h r <<= X##_e - _FP_WFRACBITS_##fs; \ fs 707 include/math-emu/op-common.h if (X##_e >= _FP_WFRACBITS_##fs) \ fs 708 include/math-emu/op-common.h _FP_FRAC_SLL_##wc(X, (X##_e - _FP_WFRACBITS_##fs + 1)); \ fs 709 include/math-emu/op-common.h else if (X##_e < _FP_WFRACBITS_##fs - 1) \ fs 711 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(X, (_FP_WFRACBITS_##fs - X##_e - 2), \ fs 712 include/math-emu/op-common.h _FP_WFRACBITS_##fs); \ fs 726 include/math-emu/op-common.h #define _FP_TO_INT_ROUND(fs, wc, r, X, rsize, rsigned) \ fs 732 include/math-emu/op-common.h if (X##_e >= _FP_FRACBITS_##fs - 1) \ fs 734 include/math-emu/op-common.h if (X##_e < rsize - 1 + _FP_WFRACBITS_##fs) \ fs 736 include/math-emu/op-common.h if (X##_e >= _FP_WFRACBITS_##fs - 1) \ fs 739 include/math-emu/op-common.h r <<= X##_e - _FP_WFRACBITS_##fs + 1; \ fs 744 include/math-emu/op-common.h + _FP_FRACBITS_##fs - 1); \ fs 755 include/math-emu/op-common.h _FP_FRAC_SRS_##wc(X, _FP_FRACBITS_##fs - 1 - X##_e, \ fs 756 include/math-emu/op-common.h _FP_WFRACBITS_##fs); \ fs 792 include/math-emu/op-common.h #define _FP_FROM_INT(fs, wc, X, r, rsize, rtype) \ fs 813 include/math-emu/op-common.h if (_FP_FRACBITS_##fs < rsize && _FP_WFRACBITS_##fs <= X##_e) \ fs 814 include/math-emu/op-common.h __FP_FRAC_SRS_1(ur_, (X##_e - _FP_WFRACBITS_##fs + 1), rsize);\ fs 816 include/math-emu/op-common.h if ((_FP_WFRACBITS_##fs - X##_e - 1) > 0) \ fs 817 include/math-emu/op-common.h _FP_FRAC_SLL_##wc(X, (_FP_WFRACBITS_##fs - X##_e - 1)); \ fs 486 include/sound/soc.h int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots); fs 1005 include/uapi/linux/ethtool.h struct ethtool_rx_flow_spec fs; fs 1121 include/uapi/linux/ethtool.h struct ethtool_rx_ntuple_flow_spec fs; fs 22 include/uapi/video/uvesafb.h __u16 fs; fs 386 init/do_mounts.c static int __init do_mount_root(char *name, char *fs, int flags, void *data) fs 389 init/do_mounts.c int err = ksys_mount(name, "/root", fs, flags, data); fs 394 init/do_mounts.c s = current->fs->pwd.dentry->d_sb; fs 106 init/init_task.c .fs = &init_fs, fs 1893 kernel/auditsc.c get_fs_pwd(current->fs, &context->pwd); fs 213 kernel/events/callchain.c mm_segment_t fs; fs 221 kernel/events/callchain.c fs = get_fs(); fs 224 kernel/events/callchain.c set_fs(fs); fs 6159 kernel/events/core.c mm_segment_t fs; fs 6177 kernel/events/core.c fs = get_fs(); fs 6180 kernel/events/core.c set_fs(fs); fs 1428 kernel/fork.c struct fs_struct *fs = current->fs; fs 1431 kernel/fork.c spin_lock(&fs->lock); fs 1432 kernel/fork.c if (fs->in_exec) { fs 1433 kernel/fork.c spin_unlock(&fs->lock); fs 1436 kernel/fork.c fs->users++; fs 1437 kernel/fork.c spin_unlock(&fs->lock); fs 1440 kernel/fork.c tsk->fs = copy_fs_struct(fs); fs 1441 kernel/fork.c if (!tsk->fs) fs 2767 kernel/fork.c struct fs_struct *fs = current->fs; fs 2769 kernel/fork.c if (!(unshare_flags & CLONE_FS) || !fs) fs 2773 kernel/fork.c if (fs->users == 1) fs 2776 kernel/fork.c *new_fsp = copy_fs_struct(fs); fs 2811 kernel/fork.c struct fs_struct *fs, *new_fs = NULL; fs 2883 kernel/fork.c fs = current->fs; fs 2884 kernel/fork.c spin_lock(&fs->lock); fs 2885 kernel/fork.c current->fs = new_fs; fs 2886 kernel/fork.c if (--fs->users) fs 2889 kernel/fork.c new_fs = fs; fs 2890 kernel/fork.c spin_unlock(&fs->lock); fs 206 kernel/kcmp.c ret = kcmp_ptr(task1->fs, task2->fs, KCMP_FS); fs 161 kernel/nsproxy.c new_ns = create_new_namespaces(flags, tsk, user_ns, tsk->fs); fs 203 kernel/nsproxy.c new_fs ? new_fs : current->fs); fs 250 kernel/nsproxy.c new_nsproxy = create_new_namespaces(0, tsk, current_user_ns(), tsk->fs); fs 230 kernel/stacktrace.c mm_segment_t fs; fs 236 kernel/stacktrace.c fs = get_fs(); fs 239 kernel/stacktrace.c set_fs(fs); fs 1808 kernel/sys.c mask = xchg(¤t->fs->umask, mask & S_IRWXUGO); fs 1271 kernel/user_namespace.c if (current->fs->users != 1) fs 363 net/atm/br2684.c struct br2684_filter_set fs; fs 365 net/atm/br2684.c if (copy_from_user(&fs, arg, sizeof fs)) fs 367 net/atm/br2684.c if (fs.ifspec.method != BR2684_FIND_BYNOTHING) { fs 374 net/atm/br2684.c brdev = BRPRIV(br2684_find_dev(&fs.ifspec)); fs 385 net/atm/br2684.c memcpy(&brvcc->filter, &fs.filter, sizeof(brvcc->filter)); fs 2868 net/core/ethtool.c const struct ethtool_rx_flow_spec *fs = input->fs; fs 2893 net/core/ethtool.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { fs 2897 net/core/ethtool.c ether_spec = &fs->h_u.ether_spec; fs 2898 net/core/ethtool.c ether_m_spec = &fs->m_u.ether_spec; fs 2924 net/core/ethtool.c v4_spec = &fs->h_u.tcp_ip4_spec; fs 2925 net/core/ethtool.c v4_m_spec = &fs->m_u.tcp_ip4_spec; fs 2973 net/core/ethtool.c v6_spec = &fs->h_u.tcp_ip6_spec; fs 2974 net/core/ethtool.c v6_m_spec = &fs->m_u.tcp_ip6_spec; fs 3024 net/core/ethtool.c switch (fs->flow_type & ~(FLOW_EXT | FLOW_MAC_EXT | FLOW_RSS)) { fs 3040 net/core/ethtool.c if (fs->flow_type & FLOW_EXT) { fs 3041 net/core/ethtool.c const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; fs 3042 net/core/ethtool.c const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; fs 3074 net/core/ethtool.c if (fs->flow_type & FLOW_MAC_EXT) { fs 3075 net/core/ethtool.c const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; fs 3076 net/core/ethtool.c const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; fs 3090 net/core/ethtool.c switch (fs->ring_cookie) { fs 3099 net/core/ethtool.c if (fs->flow_type & FLOW_RSS) fs 3102 net/core/ethtool.c act->queue.vf = ethtool_get_flow_spec_ring_vf(fs->ring_cookie); fs 3103 net/core/ethtool.c act->queue.index = ethtool_get_flow_spec_ring(fs->ring_cookie); fs 38 net/netfilter/xt_set.c #define ADT_OPT(n, f, d, fs, cfs, t, p, b, po, bo) \ fs 42 net/netfilter/xt_set.c .flags = fs, \ fs 87 net/phonet/pep-gprs.c struct sk_buff *rskb, *fs; fs 105 net/phonet/pep-gprs.c skb_walk_frags(skb, fs) fs 106 net/phonet/pep-gprs.c flen += fs->len; fs 1199 net/phonet/pep.c struct sk_buff *rskb, *fs; fs 1216 net/phonet/pep.c skb_walk_frags(skb, fs) fs 1217 net/phonet/pep.c flen += fs->len; fs 3146 net/socket.c BUILD_BUG_ON(offsetof(struct compat_ethtool_rxnfc, fs.m_ext) + fs 3147 net/socket.c sizeof(compat_rxnfc->fs.m_ext) != fs 3148 net/socket.c offsetof(struct ethtool_rxnfc, fs.m_ext) + fs 3149 net/socket.c sizeof(rxnfc->fs.m_ext)); fs 3151 net/socket.c offsetof(struct compat_ethtool_rxnfc, fs.location) - fs 3152 net/socket.c offsetof(struct compat_ethtool_rxnfc, fs.ring_cookie) != fs 3153 net/socket.c offsetof(struct ethtool_rxnfc, fs.location) - fs 3154 net/socket.c offsetof(struct ethtool_rxnfc, fs.ring_cookie)); fs 3157 net/socket.c (void __user *)(&rxnfc->fs.m_ext + 1) - fs 3159 net/socket.c copy_in_user(&rxnfc->fs.ring_cookie, fs 3160 net/socket.c &compat_rxnfc->fs.ring_cookie, fs 3161 net/socket.c (void __user *)(&rxnfc->fs.location + 1) - fs 3162 net/socket.c (void __user *)&rxnfc->fs.ring_cookie)) fs 3179 net/socket.c (const void __user *)(&rxnfc->fs.m_ext + 1) - fs 3181 net/socket.c copy_in_user(&compat_rxnfc->fs.ring_cookie, fs 3182 net/socket.c &rxnfc->fs.ring_cookie, fs 3183 net/socket.c (const void __user *)(&rxnfc->fs.location + 1) - fs 3184 net/socket.c (const void __user *)&rxnfc->fs.ring_cookie) || fs 504 scripts/kconfig/gconf.c GtkWidget *fs; fs 506 scripts/kconfig/gconf.c fs = gtk_file_selection_new("Load file..."); fs 507 scripts/kconfig/gconf.c g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), fs 509 scripts/kconfig/gconf.c G_CALLBACK(load_filename), (gpointer) fs); fs 511 scripts/kconfig/gconf.c (GTK_FILE_SELECTION(fs)->ok_button), fs 513 scripts/kconfig/gconf.c (gpointer) fs); fs 515 scripts/kconfig/gconf.c (GTK_FILE_SELECTION(fs)->cancel_button), fs 517 scripts/kconfig/gconf.c (gpointer) fs); fs 518 scripts/kconfig/gconf.c gtk_widget_show(fs); fs 546 scripts/kconfig/gconf.c GtkWidget *fs; fs 548 scripts/kconfig/gconf.c fs = gtk_file_selection_new("Save file as..."); fs 549 scripts/kconfig/gconf.c g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(fs)->ok_button), fs 551 scripts/kconfig/gconf.c G_CALLBACK(store_filename), (gpointer) fs); fs 553 scripts/kconfig/gconf.c (GTK_FILE_SELECTION(fs)->ok_button), fs 555 scripts/kconfig/gconf.c (gpointer) fs); fs 557 scripts/kconfig/gconf.c (GTK_FILE_SELECTION(fs)->cancel_button), fs 559 scripts/kconfig/gconf.c (gpointer) fs); fs 560 scripts/kconfig/gconf.c gtk_widget_show(fs); fs 73 security/apparmor/file.c from_kuid(&init_user_ns, aad(sa)->fs.ouid)); fs 80 security/apparmor/file.c } else if (aad(sa)->fs.target) { fs 82 security/apparmor/file.c audit_log_untrustedstring(ab, aad(sa)->fs.target); fs 112 security/apparmor/file.c aad(&sa)->fs.target = target; fs 114 security/apparmor/file.c aad(&sa)->fs.ouid = ouid; fs 124 security/apparmor/include/audit.h } fs; fs 121 security/apparmor/path.c get_fs_root(current->fs, &root); fs 15 sound/core/pcm_iec958.c unsigned int fs, ws; fs 22 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_32000; fs 25 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_44100; fs 28 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_48000; fs 31 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_88200; fs 34 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_96000; fs 37 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_176400; fs 40 sound/core/pcm_iec958.c fs = IEC958_AES3_CON_FS_192000; fs 74 sound/core/pcm_iec958.c cs[3] = IEC958_AES3_CON_CLOCK_1000PPM | fs; fs 383 sound/soc/atmel/atmel-classd.c int fs; fs 387 sound/soc/atmel/atmel-classd.c fs = params_rate(params); fs 390 sound/soc/atmel/atmel-classd.c best_val = abs(fs - sample_rates[0].rate); fs 393 sound/soc/atmel/atmel-classd.c cur_val = abs(fs - sample_rates[i].rate); fs 108 sound/soc/atmel/atmel-i2s.c #define ATMEL_I2SC_MR_IMCKFS(fs) \ fs 109 sound/soc/atmel/atmel-i2s.c (((fs) << 24) & ATMEL_I2SC_MR_IMCKFS_MASK) fs 158 sound/soc/atmel/atmel-i2s.c int fs; fs 290 sound/soc/atmel/atmel-i2s.c static int atmel_i2s_get_gck_param(struct atmel_i2s_dev *dev, int fs) fs 307 sound/soc/atmel/atmel-i2s.c int val = abs(fs - gck_param->fs); fs 381 sound/soc/atmel/atmel-pdmic.c int fs = params_rate(params); fs 393 sound/soc/atmel/atmel-pdmic.c if ((fs < rate_min) || (fs > rate_max)) { fs 396 sound/soc/atmel/atmel-pdmic.c fs, rate_min, rate_max); fs 414 sound/soc/atmel/atmel-pdmic.c if ((fs << 7) > (rate_max << 6)) { fs 415 sound/soc/atmel/atmel-pdmic.c f_pdmic = fs << 6; fs 418 sound/soc/atmel/atmel-pdmic.c f_pdmic = fs << 7; fs 265 sound/soc/codecs/adau1977.c unsigned int fs) fs 275 sound/soc/codecs/adau1977.c rate *= 512 >> fs; fs 302 sound/soc/codecs/adau1977.c int mcs, fs; fs 305 sound/soc/codecs/adau1977.c fs = adau1977_lookup_fs(rate); fs 306 sound/soc/codecs/adau1977.c if (fs < 0) fs 307 sound/soc/codecs/adau1977.c return fs; fs 310 sound/soc/codecs/adau1977.c mcs = adau1977_lookup_mcs(adau1977, rate, fs); fs 318 sound/soc/codecs/adau1977.c ctrl0 = fs; fs 36 sound/soc/codecs/ak4458.c int fs; /* sampling rate */ fs 324 sound/soc/codecs/ak4458.c ak4458->fs = nfs1; fs 411 sound/soc/codecs/ak4458.c nfs = ak4458->fs; fs 565 sound/soc/codecs/ak4458.c ak4458->fs = 48000; fs 265 sound/soc/codecs/ak4535.c int rate = params_rate(params), fs = 256; fs 268 sound/soc/codecs/ak4535.c fs = ak4535->sysclk / rate; fs 271 sound/soc/codecs/ak4535.c switch (fs) { fs 271 sound/soc/codecs/ak4613.c unsigned int fs; fs 291 sound/soc/codecs/ak4613.c fs = (ak4613_rates[i] <= 96000) ? 256 : 128; fs 293 sound/soc/codecs/ak4613.c if (priv->sysclk >= ak4613_rates[i] * fs) fs 320 sound/soc/codecs/ak4641.c int rate = params_rate(params), fs = 256; fs 324 sound/soc/codecs/ak4641.c fs = ak4641->sysclk / rate; fs 329 sound/soc/codecs/ak4641.c switch (fs) { fs 340 sound/soc/codecs/ak4641.c dev_err(component->dev, "Error: unsupported fs=%d\n", fs); fs 452 sound/soc/codecs/ak4642.c int ps, fs; fs 455 sound/soc/codecs/ak4642.c for (fs = 0; fs < ARRAY_SIZE(fs_list); fs++) { fs 456 sound/soc/codecs/ak4642.c if (frequency == ps_list[ps] * fs_list[fs]) { fs 458 sound/soc/codecs/ak4642.c PSs(ps) | FSs(fs)); fs 426 sound/soc/codecs/ak4671.c u8 fs; fs 428 sound/soc/codecs/ak4671.c fs = snd_soc_component_read32(component, AK4671_PLL_MODE_SELECT0); fs 429 sound/soc/codecs/ak4671.c fs &= ~AK4671_FS; fs 433 sound/soc/codecs/ak4671.c fs |= AK4671_FS_8KHZ; fs 436 sound/soc/codecs/ak4671.c fs |= AK4671_FS_12KHZ; fs 439 sound/soc/codecs/ak4671.c fs |= AK4671_FS_16KHZ; fs 442 sound/soc/codecs/ak4671.c fs |= AK4671_FS_24KHZ; fs 445 sound/soc/codecs/ak4671.c fs |= AK4671_FS_11_025KHZ; fs 448 sound/soc/codecs/ak4671.c fs |= AK4671_FS_22_05KHZ; fs 451 sound/soc/codecs/ak4671.c fs |= AK4671_FS_32KHZ; fs 454 sound/soc/codecs/ak4671.c fs |= AK4671_FS_44_1KHZ; fs 457 sound/soc/codecs/ak4671.c fs |= AK4671_FS_48KHZ; fs 463 sound/soc/codecs/ak4671.c snd_soc_component_write(component, AK4671_PLL_MODE_SELECT0, fs); fs 585 sound/soc/codecs/alc5623.c u16 fs; fs 608 sound/soc/codecs/alc5623.c if (coeff_div[i].fs * rate == alc5623->sysclk) fs 765 sound/soc/codecs/alc5632.c u16 fs; fs 781 sound/soc/codecs/alc5632.c if (coeff_div[i].fs * rate == alc5632->sysclk) fs 530 sound/soc/codecs/cs43130.c static const struct cs43130_rate_map *cs43130_get_rate_table(int fs) fs 535 sound/soc/codecs/cs43130.c if (cs43130_rate_table[i].fs == fs) fs 542 sound/soc/codecs/cs43130.c static const struct cs43130_clk_gen *cs43130_get_clk_gen(int mclk_int, int fs, fs 549 sound/soc/codecs/cs43130.c clk_gen_table[i].fs == fs) fs 376 sound/soc/codecs/cs43130.h int fs; fs 475 sound/soc/codecs/cs43130.h int fs; fs 761 sound/soc/codecs/da7210.c u32 fs, sysclk; fs 793 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_8000; fs 797 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_11025; fs 801 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_12000; fs 805 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_16000; fs 809 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_22050; fs 813 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_32000; fs 817 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_44100; fs 821 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_48000; fs 825 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_88200; fs 829 sound/soc/codecs/da7210.c fs = DA7210_PLL_FS_96000; fs 839 sound/soc/codecs/da7210.c snd_soc_component_update_bits(component, DA7210_PLL, DA7210_PLL_FS_MASK, fs); fs 1151 sound/soc/codecs/da7213.c u8 fs; fs 1174 sound/soc/codecs/da7213.c fs = DA7213_SR_8000; fs 1177 sound/soc/codecs/da7213.c fs = DA7213_SR_11025; fs 1180 sound/soc/codecs/da7213.c fs = DA7213_SR_12000; fs 1183 sound/soc/codecs/da7213.c fs = DA7213_SR_16000; fs 1186 sound/soc/codecs/da7213.c fs = DA7213_SR_22050; fs 1189 sound/soc/codecs/da7213.c fs = DA7213_SR_32000; fs 1192 sound/soc/codecs/da7213.c fs = DA7213_SR_44100; fs 1195 sound/soc/codecs/da7213.c fs = DA7213_SR_48000; fs 1198 sound/soc/codecs/da7213.c fs = DA7213_SR_88200; fs 1201 sound/soc/codecs/da7213.c fs = DA7213_SR_96000; fs 1209 sound/soc/codecs/da7213.c snd_soc_component_write(component, DA7213_SR, fs); fs 2092 sound/soc/codecs/da7218.c u8 dai_ctrl = 0, fs; fs 2123 sound/soc/codecs/da7218.c fs = DA7218_SR_8000; fs 2126 sound/soc/codecs/da7218.c fs = DA7218_SR_11025; fs 2129 sound/soc/codecs/da7218.c fs = DA7218_SR_12000; fs 2132 sound/soc/codecs/da7218.c fs = DA7218_SR_16000; fs 2135 sound/soc/codecs/da7218.c fs = DA7218_SR_22050; fs 2138 sound/soc/codecs/da7218.c fs = DA7218_SR_24000; fs 2141 sound/soc/codecs/da7218.c fs = DA7218_SR_32000; fs 2144 sound/soc/codecs/da7218.c fs = DA7218_SR_44100; fs 2147 sound/soc/codecs/da7218.c fs = DA7218_SR_48000; fs 2150 sound/soc/codecs/da7218.c fs = DA7218_SR_88200; fs 2153 sound/soc/codecs/da7218.c fs = DA7218_SR_96000; fs 2164 sound/soc/codecs/da7218.c (fs << DA7218_SR_DAC_SHIFT) | (fs << DA7218_SR_ADC_SHIFT)); fs 1505 sound/soc/codecs/da7219.c u8 fs; fs 1509 sound/soc/codecs/da7219.c fs = DA7219_SR_8000; fs 1512 sound/soc/codecs/da7219.c fs = DA7219_SR_11025; fs 1515 sound/soc/codecs/da7219.c fs = DA7219_SR_12000; fs 1518 sound/soc/codecs/da7219.c fs = DA7219_SR_16000; fs 1521 sound/soc/codecs/da7219.c fs = DA7219_SR_22050; fs 1524 sound/soc/codecs/da7219.c fs = DA7219_SR_24000; fs 1527 sound/soc/codecs/da7219.c fs = DA7219_SR_32000; fs 1530 sound/soc/codecs/da7219.c fs = DA7219_SR_44100; fs 1533 sound/soc/codecs/da7219.c fs = DA7219_SR_48000; fs 1536 sound/soc/codecs/da7219.c fs = DA7219_SR_88200; fs 1539 sound/soc/codecs/da7219.c fs = DA7219_SR_96000; fs 1545 sound/soc/codecs/da7219.c snd_soc_component_write(component, DA7219_SR, fs); fs 1945 sound/soc/codecs/da7219.c u8 fs = snd_soc_component_read32(component, DA7219_SR); fs 1947 sound/soc/codecs/da7219.c switch (fs & DA7219_SR_MASK) { fs 952 sound/soc/codecs/da732x.c u32 fs; fs 975 sound/soc/codecs/da732x.c fs = DA732X_SR_8KHZ; fs 978 sound/soc/codecs/da732x.c fs = DA732X_SR_11_025KHZ; fs 981 sound/soc/codecs/da732x.c fs = DA732X_SR_12KHZ; fs 984 sound/soc/codecs/da732x.c fs = DA732X_SR_16KHZ; fs 987 sound/soc/codecs/da732x.c fs = DA732X_SR_22_05KHZ; fs 990 sound/soc/codecs/da732x.c fs = DA732X_SR_24KHZ; fs 993 sound/soc/codecs/da732x.c fs = DA732X_SR_32KHZ; fs 996 sound/soc/codecs/da732x.c fs = DA732X_SR_44_1KHZ; fs 999 sound/soc/codecs/da732x.c fs = DA732X_SR_48KHZ; fs 1002 sound/soc/codecs/da732x.c fs = DA732X_SR_88_1KHZ; fs 1005 sound/soc/codecs/da732x.c fs = DA732X_SR_96KHZ; fs 1012 sound/soc/codecs/da732x.c snd_soc_component_update_bits(component, DA732X_REG_CLK_CTRL, DA732X_SR1_MASK, fs); fs 1053 sound/soc/codecs/da9055.c u8 aif_ctrl, fs; fs 1079 sound/soc/codecs/da9055.c fs = DA9055_SR_8000; fs 1083 sound/soc/codecs/da9055.c fs = DA9055_SR_11025; fs 1087 sound/soc/codecs/da9055.c fs = DA9055_SR_12000; fs 1091 sound/soc/codecs/da9055.c fs = DA9055_SR_16000; fs 1095 sound/soc/codecs/da9055.c fs = DA9055_SR_22050; fs 1099 sound/soc/codecs/da9055.c fs = DA9055_SR_32000; fs 1103 sound/soc/codecs/da9055.c fs = DA9055_SR_44100; fs 1107 sound/soc/codecs/da9055.c fs = DA9055_SR_48000; fs 1111 sound/soc/codecs/da9055.c fs = DA9055_SR_88200; fs 1115 sound/soc/codecs/da9055.c fs = DA9055_SR_96000; fs 1124 sound/soc/codecs/da9055.c snd_soc_component_write(component, DA9055_SR, fs); fs 1416 sound/soc/codecs/max98088.c int best, best_val, save, i, sel, fs; fs 1425 sound/soc/codecs/max98088.c fs = cdata->rate; fs 1432 sound/soc/codecs/max98088.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { fs 1434 sound/soc/codecs/max98088.c best_val = abs(pdata->eq_cfg[i].rate - fs); fs 1440 sound/soc/codecs/max98088.c pdata->eq_cfg[best].rate, fs); fs 1463 sound/soc/codecs/max98088.c int best, best_val, save, i, sel, fs; fs 1472 sound/soc/codecs/max98088.c fs = cdata->rate; fs 1479 sound/soc/codecs/max98088.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { fs 1481 sound/soc/codecs/max98088.c best_val = abs(pdata->eq_cfg[i].rate - fs); fs 1487 sound/soc/codecs/max98088.c pdata->eq_cfg[best].rate, fs); fs 1875 sound/soc/codecs/max98090.c int target_dmic_clk, int pclk, int fs) fs 1890 sound/soc/codecs/max98090.c if (fs <= (comp_lrclk_rates[i] + comp_lrclk_rates[i+1]) / 2) fs 1501 sound/soc/codecs/max98095.c int fs, best, best_val, i; fs 1515 sound/soc/codecs/max98095.c fs = cdata->rate; fs 1522 sound/soc/codecs/max98095.c abs(pdata->eq_cfg[i].rate - fs) < best_val) { fs 1524 sound/soc/codecs/max98095.c best_val = abs(pdata->eq_cfg[i].rate - fs); fs 1530 sound/soc/codecs/max98095.c pdata->eq_cfg[best].rate, fs); fs 1652 sound/soc/codecs/max98095.c int fs, best, best_val, i; fs 1666 sound/soc/codecs/max98095.c fs = cdata->rate; fs 1673 sound/soc/codecs/max98095.c abs(pdata->bq_cfg[i].rate - fs) < best_val) { fs 1675 sound/soc/codecs/max98095.c best_val = abs(pdata->bq_cfg[i].rate - fs); fs 1681 sound/soc/codecs/max98095.c pdata->bq_cfg[best].rate, fs); fs 550 sound/soc/codecs/nau8540.c unsigned int fs, struct nau8540_fll *fll_param) fs 585 sound/soc/codecs/nau8540.c fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; fs 651 sound/soc/codecs/nau8540.c int ret, fs; fs 681 sound/soc/codecs/nau8540.c fs = freq_out / 256; fs 682 sound/soc/codecs/nau8540.c ret = nau8540_calc_fll_param(freq_in, fs, &fll_param); fs 494 sound/soc/codecs/nau8810.c unsigned int fs, struct nau8810_pll *pll_param) fs 505 sound/soc/codecs/nau8810.c f2 = 256ULL * fs * 4 * nau8810_mclk_scaler[i]; fs 540 sound/soc/codecs/nau8810.c int ret, fs; fs 542 sound/soc/codecs/nau8810.c fs = freq_out / 256; fs 543 sound/soc/codecs/nau8810.c ret = nau8810_calc_pll(freq_in, fs, pll_param); fs 626 sound/soc/codecs/nau8822.c static int nau8822_calc_pll(unsigned int pll_in, unsigned int fs, fs 638 sound/soc/codecs/nau8822.c f2 = 256 * fs * 4 * nau8822_mclk_scaler[i] / 10; fs 727 sound/soc/codecs/nau8822.c int ret, fs; fs 729 sound/soc/codecs/nau8822.c fs = freq_out / 256; fs 731 sound/soc/codecs/nau8822.c ret = nau8822_calc_pll(freq_in, fs, pll_param); fs 564 sound/soc/codecs/nau8824.c if ((0x1 << (8 - src)) * nau8824->fs <= DMIC_CLK) fs 567 sound/soc/codecs/nau8824.c dev_dbg(nau8824->dev, "dmic src %d for mclk %d\n", src, nau8824->fs * 256); fs 1077 sound/soc/codecs/nau8824.c nau8824->fs = params_rate(params); fs 1083 sound/soc/codecs/nau8824.c nau8824->fs, osr)) fs 1093 sound/soc/codecs/nau8824.c nau8824->fs, osr)) fs 1105 sound/soc/codecs/nau8824.c bclk_fs = snd_soc_params_to_bclk(params) / nau8824->fs; fs 1269 sound/soc/codecs/nau8824.c unsigned int fs, struct nau8824_fll *fll_param) fs 1304 sound/soc/codecs/nau8824.c fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; fs 1370 sound/soc/codecs/nau8824.c int ret, fs; fs 1372 sound/soc/codecs/nau8824.c fs = freq_out / 256; fs 1373 sound/soc/codecs/nau8824.c ret = nau8824_calc_fll_param(freq_in, fs, &fll_param); fs 437 sound/soc/codecs/nau8824.h int fs; fs 1985 sound/soc/codecs/nau8825.c static int nau8825_calc_fll_param(unsigned int fll_in, unsigned int fs, fs 2021 sound/soc/codecs/nau8825.c fvco = 256ULL * fs * 2 * mclk_src_scaling[i].param; fs 2092 sound/soc/codecs/nau8825.c int ret, fs; fs 2094 sound/soc/codecs/nau8825.c fs = freq_out / 256; fs 2095 sound/soc/codecs/nau8825.c ret = nau8825_calc_fll_param(freq_in, fs, &fll_param); fs 44 sound/soc/codecs/rt274.c int fs; fs 773 sound/soc/codecs/rt274.c switch (rt274->fs) { fs 880 sound/soc/codecs/rt274.c rt274->fs = ratio; fs 542 sound/soc/codecs/sta32x.c int fs; fs 670 sound/soc/codecs/sta32x.c if (interpolation_ratios[i].fs == rate) { fs 576 sound/soc/codecs/sta350.c int fs; fs 699 sound/soc/codecs/sta350.c if (interpolation_ratios[i].fs == rate) { fs 29 sound/soc/codecs/tfa9879.c int fs; fs 34 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_8000; fs 37 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_11025; fs 40 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_12000; fs 43 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_16000; fs 46 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_22050; fs 49 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_24000; fs 52 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_32000; fs 55 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_44100; fs 58 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_48000; fs 61 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_64000; fs 64 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_88200; fs 67 sound/soc/codecs/tfa9879.c fs = TFA9879_I2S_FS_96000; fs 92 sound/soc/codecs/tfa9879.c fs << TFA9879_I2S_FS_SHIFT); fs 3184 sound/soc/codecs/tscs454.c unsigned int fs = params_rate(params); fs 3192 sound/soc/codecs/tscs454.c aif->id, fs); fs 3195 sound/soc/codecs/tscs454.c if (PLL_44_1K_RATE % fs) fs 3222 sound/soc/codecs/tscs454.c ret = set_aif_fs(component, aif->id, fs); fs 103 sound/soc/codecs/wm8711.c u16 fs; fs 251 sound/soc/codecs/wm8731.c u16 fs; fs 430 sound/soc/codecs/wm8750.c u16 fs; fs 134 sound/soc/codecs/wm8903.c int fs; fs 427 sound/soc/codecs/wm8903.c if (abs(wm8903_deemph[i] - wm8903->fs) < fs 428 sound/soc/codecs/wm8903.c abs(wm8903_deemph[best] - wm8903->fs)) fs 1444 sound/soc/codecs/wm8903.c int fs = params_rate(params); fs 1462 sound/soc/codecs/wm8903.c if (fs <= 24000) fs 1469 sound/soc/codecs/wm8903.c best_val = abs(sample_rates[dsp_config].rate - fs); fs 1471 sound/soc/codecs/wm8903.c cur_val = abs(sample_rates[i].rate - fs); fs 1483 sound/soc/codecs/wm8903.c bclk = 2 * fs; fs 1505 sound/soc/codecs/wm8903.c wm8903->sysclk, fs); fs 1514 sound/soc/codecs/wm8903.c clk_sys_ratios[0].div)) - fs); fs 1518 sound/soc/codecs/wm8903.c clk_sys_ratios[i].div)) - fs); fs 1571 sound/soc/codecs/wm8903.c aif3 |= bclk / fs; fs 1573 sound/soc/codecs/wm8903.c wm8903->fs = params_rate(params); fs 82 sound/soc/codecs/wm8904.c int fs; fs 435 sound/soc/codecs/wm8904.c - wm8904->fs) < best_val) { fs 438 sound/soc/codecs/wm8904.c - wm8904->fs); fs 445 sound/soc/codecs/wm8904.c wm8904->fs); fs 501 sound/soc/codecs/wm8904.c if (abs(deemph_settings[i] - wm8904->fs) < fs 502 sound/soc/codecs/wm8904.c abs(deemph_settings[best] - wm8904->fs)) fs 1300 sound/soc/codecs/wm8904.c wm8904->fs = params_rate(params); fs 1304 sound/soc/codecs/wm8904.c wm8904->bclk = snd_soc_calc_bclk(wm8904->fs, fs 1337 sound/soc/codecs/wm8904.c - wm8904->fs); fs 1340 sound/soc/codecs/wm8904.c clk_sys_rates[i].ratio) - wm8904->fs); fs 1353 sound/soc/codecs/wm8904.c best_val = abs(wm8904->fs - sample_rates[0].rate); fs 1356 sound/soc/codecs/wm8904.c cur_val = abs(wm8904->fs - sample_rates[i].rate); fs 1368 sound/soc/codecs/wm8904.c if (wm8904->fs <= 24000) fs 1390 sound/soc/codecs/wm8904.c dev_dbg(component->dev, "LRCLK_RATE is %d\n", wm8904->bclk / wm8904->fs); fs 1391 sound/soc/codecs/wm8904.c aif3 |= wm8904->bclk / wm8904->fs; fs 44 sound/soc/codecs/wm8955.c int fs; fs 197 sound/soc/codecs/wm8955.c int fs; fs 252 sound/soc/codecs/wm8955.c if (wm8955->fs == 0) fs 253 sound/soc/codecs/wm8955.c wm8955->fs = 8000; fs 257 sound/soc/codecs/wm8955.c if (wm8955->fs != clock_cfgs[i].fs) fs 268 sound/soc/codecs/wm8955.c wm8955->fs); fs 287 sound/soc/codecs/wm8955.c wm8955->fs, wm8955->mclk_rate); fs 371 sound/soc/codecs/wm8955.c if (abs(deemph_settings[i] - wm8955->fs) < fs 372 sound/soc/codecs/wm8955.c abs(deemph_settings[best] - wm8955->fs)) fs 616 sound/soc/codecs/wm8955.c wm8955->fs = params_rate(params); fs 507 sound/soc/codecs/wm8961.c int i, best, target, fs; fs 510 sound/soc/codecs/wm8961.c fs = params_rate(params); fs 520 sound/soc/codecs/wm8961.c if (abs(wm8961_srate[i].rate - fs) < fs 521 sound/soc/codecs/wm8961.c abs(wm8961_srate[best].rate - fs)) fs 529 sound/soc/codecs/wm8961.c wm8961_srate[best].rate, fs); fs 532 sound/soc/codecs/wm8961.c target = wm8961->sysclk / fs; fs 554 sound/soc/codecs/wm8961.c wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, fs 555 sound/soc/codecs/wm8961.c wm8961->sysclk / fs); fs 583 sound/soc/codecs/wm8961.c if (fs <= 24000) fs 363 sound/soc/codecs/wm8971.c u16 fs; fs 29 sound/soc/codecs/wm8974.c unsigned int fs; fs 424 sound/soc/codecs/wm8974.c if (!priv->mclk || !priv->fs) fs 427 sound/soc/codecs/wm8974.c fs256 = 256 * priv->fs; fs 523 sound/soc/codecs/wm8974.c priv->fs = params_rate(params); fs 452 sound/soc/codecs/wm8988.c u16 fs; fs 216 sound/soc/codecs/wm8993.c unsigned int fs; fs 1206 sound/soc/codecs/wm8993.c wm8993->fs = params_rate(params); fs 1207 sound/soc/codecs/wm8993.c wm8993->bclk = 2 * wm8993->fs; fs 1243 sound/soc/codecs/wm8993.c - wm8993->fs); fs 1246 sound/soc/codecs/wm8993.c clk_sys_rates[i].ratio) - wm8993->fs); fs 1259 sound/soc/codecs/wm8993.c best_val = abs(wm8993->fs - sample_rates[0].rate); fs 1262 sound/soc/codecs/wm8993.c cur_val = abs(wm8993->fs - sample_rates[i].rate); fs 1292 sound/soc/codecs/wm8993.c dev_dbg(component->dev, "LRCLK_RATE is %d\n", wm8993->bclk / wm8993->fs); fs 1293 sound/soc/codecs/wm8993.c aif4 |= wm8993->bclk / wm8993->fs; fs 1307 sound/soc/codecs/wm8993.c - wm8993->fs); fs 1310 sound/soc/codecs/wm8993.c - wm8993->fs); fs 150 sound/soc/codecs/wm9081.c int fs; fs 669 sound/soc/codecs/wm9081.c target = wm9081->fs * clk_sys_rates[i].ratio; fs 679 sound/soc/codecs/wm9081.c } else if (wm9081->fs) { fs 682 sound/soc/codecs/wm9081.c * wm9081->fs; fs 1014 sound/soc/codecs/wm9081.c wm9081->fs = params_rate(params); fs 1021 sound/soc/codecs/wm9081.c wm9081->bclk = wm9081->fs * wm9081->tdm_width * slots; fs 1024 sound/soc/codecs/wm9081.c wm9081->bclk = 2 * wm9081->fs; fs 1056 sound/soc/codecs/wm9081.c - wm9081->fs); fs 1059 sound/soc/codecs/wm9081.c clk_sys_rates[i].ratio) - wm9081->fs); fs 1072 sound/soc/codecs/wm9081.c best_val = abs(wm9081->fs - sample_rates[0].rate); fs 1075 sound/soc/codecs/wm9081.c cur_val = abs(wm9081->fs - sample_rates[i].rate); fs 1105 sound/soc/codecs/wm9081.c dev_dbg(component->dev, "LRCLK_RATE is %d\n", wm9081->bclk / wm9081->fs); fs 1106 sound/soc/codecs/wm9081.c aif4 |= wm9081->bclk / wm9081->fs; fs 1115 sound/soc/codecs/wm9081.c best_val = abs(pdata->retune_configs[0].rate - wm9081->fs); fs 1118 sound/soc/codecs/wm9081.c wm9081->fs); fs 26 sound/soc/intel/skylake/skl-debug.c struct dentry *fs; fs 227 sound/soc/intel/skylake/skl-debug.c d->fs = debugfs_create_dir("dsp", skl->component->debugfs_root); fs 233 sound/soc/intel/skylake/skl-debug.c d->modules = debugfs_create_dir("modules", d->fs); fs 235 sound/soc/intel/skylake/skl-debug.c debugfs_create_file("fw_soft_regs_rd", 0444, d->fs, d, fs 245 sound/soc/intel/skylake/skl-debug.c debugfs_remove_recursive(d->fs); fs 208 sound/soc/intel/skylake/skl-nhlt.c u32 fs; fs 222 sound/soc/intel/skylake/skl-nhlt.c fs = wav_fmt->fmt.samples_per_sec; fs 238 sound/soc/intel/skylake/skl-nhlt.c if ((fs == wav_fmt->fmt.samples_per_sec) && fs 244 sound/soc/intel/skylake/skl-nhlt.c rate = channels * bps * fs; fs 125 sound/soc/mediatek/common/mtk-afe-fe-dai.c int ret, fs = 0; fs 159 sound/soc/mediatek/common/mtk-afe-fe-dai.c fs = afe->memif_fs(substream, params_rate(params)); fs 161 sound/soc/mediatek/common/mtk-afe-fe-dai.c if (fs < 0) fs 165 sound/soc/mediatek/common/mtk-afe-fe-dai.c memif->data->fs_maskbit, fs, fs 189 sound/soc/mediatek/common/mtk-afe-fe-dai.c int fs; fs 206 sound/soc/mediatek/common/mtk-afe-fe-dai.c fs = afe->irq_fs(substream, runtime->rate); fs 208 sound/soc/mediatek/common/mtk-afe-fe-dai.c if (fs < 0) fs 212 sound/soc/mediatek/common/mtk-afe-fe-dai.c irq_data->irq_fs_maskbit, fs, fs 179 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c int reg, fs, w_len = 1; /* now we support bck 64bits only */ fs 186 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c fs = mt2701_afe_i2s_fs(rate); fs 193 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c val = ASYS_I2S_CON_FS_SET(fs) | fs 214 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c fs << i2s_data->i2s_asrc_fs_shift); fs 498 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c int fs; fs 501 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c fs = mt2701_afe_i2s_fs(rate); fs 503 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c fs = (rate == 16000 ? 1 : 0); fs 505 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c return fs; fs 199 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c int fs = mt8173_afe_i2s_fs(rate); fs 201 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c if (fs < 0) fs 210 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c AFE_I2S_CON2_RATE(fs) | fs 217 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c AFE_I2S_CON1_RATE(fs) | fs 489 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c int fs; fs 495 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c fs = 0; fs 498 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c fs = 1; fs 501 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c fs = 2; fs 507 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c fs = mt8173_afe_i2s_fs(rate); fs 509 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c return fs; fs 564 sound/soc/samsung/s3c-i2s-v2.c unsigned int fs; fs 577 sound/soc/samsung/s3c-i2s-v2.c for (fs = 0; fs < ARRAY_SIZE(iis_fs_tab); fs++) { fs 578 sound/soc/samsung/s3c-i2s-v2.c fsdiv = iis_fs_tab[fs]; fs 77 sound/soc/samsung/s3c24xx_uda134x.c int fs = i ? 256 : 384; fs 79 sound/soc/samsung/s3c24xx_uda134x.c rates[i*33] = clk_get_rate(priv->xtal) / fs; fs 82 sound/soc/samsung/s3c24xx_uda134x.c (j * fs); fs 36 sound/soc/soc-utils.c int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots) fs 38 sound/soc/soc-utils.c return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots); fs 746 sound/soc/uniphier/aio-core.c int cur, diff, slope = 0, fs; fs 753 sound/soc/uniphier/aio-core.c fs = params_rate(&sub->params); fs 754 sound/soc/uniphier/aio-core.c if (fs) fs 755 sound/soc/uniphier/aio-core.c slope = diff / AUD_VOL_FADE_TIME * 1000 / fs; fs 151 tools/arch/x86/include/uapi/asm/kvm.h struct kvm_segment cs, ds, es, fs, gs, ss; fs 109 tools/lib/api/fs/fs.c static struct fs fs__entries[] = { fs 142 tools/lib/api/fs/fs.c static bool fs__read_mounts(struct fs *fs) fs 154 tools/lib/api/fs/fs.c fs->path, type) == 2) { fs 156 tools/lib/api/fs/fs.c if (strcmp(type, fs->name) == 0) fs 161 tools/lib/api/fs/fs.c return fs->found = found; fs 164 tools/lib/api/fs/fs.c static int fs__valid_mount(const char *fs, long magic) fs 168 tools/lib/api/fs/fs.c if (statfs(fs, &st_fs) < 0) fs 176 tools/lib/api/fs/fs.c static bool fs__check_mounts(struct fs *fs) fs 180 tools/lib/api/fs/fs.c ptr = fs->mounts; fs 182 tools/lib/api/fs/fs.c if (fs__valid_mount(*ptr, fs->magic) == 0) { fs 183 tools/lib/api/fs/fs.c fs->found = true; fs 184 tools/lib/api/fs/fs.c strcpy(fs->path, *ptr); fs 207 tools/lib/api/fs/fs.c static bool fs__env_override(struct fs *fs) fs 210 tools/lib/api/fs/fs.c size_t name_len = strlen(fs->name); fs 214 tools/lib/api/fs/fs.c memcpy(upper_name, fs->name, name_len); fs 222 tools/lib/api/fs/fs.c fs->found = true; fs 223 tools/lib/api/fs/fs.c strncpy(fs->path, override_path, sizeof(fs->path) - 1); fs 224 tools/lib/api/fs/fs.c fs->path[sizeof(fs->path) - 1] = '\0'; fs 228 tools/lib/api/fs/fs.c static const char *fs__get_mountpoint(struct fs *fs) fs 230 tools/lib/api/fs/fs.c if (fs__env_override(fs)) fs 231 tools/lib/api/fs/fs.c return fs->path; fs 233 tools/lib/api/fs/fs.c if (fs__check_mounts(fs)) fs 234 tools/lib/api/fs/fs.c return fs->path; fs 236 tools/lib/api/fs/fs.c if (fs__read_mounts(fs)) fs 237 tools/lib/api/fs/fs.c return fs->path; fs 244 tools/lib/api/fs/fs.c struct fs *fs = &fs__entries[idx]; fs 246 tools/lib/api/fs/fs.c if (fs->found) fs 247 tools/lib/api/fs/fs.c return (const char *)fs->path; fs 249 tools/lib/api/fs/fs.c return fs__get_mountpoint(fs); fs 252 tools/lib/api/fs/fs.c static const char *mount_overload(struct fs *fs) fs 254 tools/lib/api/fs/fs.c size_t name_len = strlen(fs->name); fs 258 tools/lib/api/fs/fs.c snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); fs 261 tools/lib/api/fs/fs.c return getenv(upper_name) ?: *fs->mounts; fs 266 tools/lib/api/fs/fs.c struct fs *fs = &fs__entries[idx]; fs 270 tools/lib/api/fs/fs.c return (const char *)fs->path; fs 272 tools/lib/api/fs/fs.c mountpoint = mount_overload(fs); fs 274 tools/lib/api/fs/fs.c if (mount(NULL, mountpoint, fs->name, 0, NULL) < 0) fs 277 tools/lib/api/fs/fs.c return fs__check_mounts(fs) ? fs->path : NULL; fs 177 tools/testing/selftests/cgroup/cgroup_util.c char *fs, *mount, *type; fs 187 tools/testing/selftests/cgroup/cgroup_util.c for (fs = strtok(buf, delim); fs; fs = strtok(NULL, delim)) { fs 35 tools/testing/selftests/gpio/gpio-mockup-chardev.c struct libmnt_fs *fs; fs 49 tools/testing/selftests/gpio/gpio-mockup-chardev.c while (mnt_table_next_fs(tb, itr, &fs) == 0) { fs 50 tools/testing/selftests/gpio/gpio-mockup-chardev.c const char *type = mnt_fs_get_fstype(fs); fs 58 tools/testing/selftests/gpio/gpio-mockup-chardev.c ret = asprintf(path, "%s/gpio", mnt_fs_get_target(fs)); fs 164 tools/testing/selftests/kvm/include/x86_64/processor.h uint16_t fs; fs 167 tools/testing/selftests/kvm/include/x86_64/processor.h : /* output */ [fs]"=rm"(fs)); fs 168 tools/testing/selftests/kvm/include/x86_64/processor.h return fs; fs 198 tools/testing/selftests/kvm/lib/x86_64/processor.c segment_dump(stream, &sregs->fs, indent + 2); fs 304 tools/testing/selftests/x86/sigreturn.c unsigned short cs, gs, fs, ss;