f 41 arch/alpha/kernel/err_impl.h #define EXTRACT(u, f) (((u) >> f##__S) & f##__M) f 42 arch/alpha/kernel/err_impl.h #define GEN_MASK(f) ((u64)f##__M << f##__S) f 1119 arch/alpha/kernel/setup.c show_cache_size (struct seq_file *f, const char *which, int shape) f 1122 arch/alpha/kernel/setup.c seq_printf (f, "%s\t\t: n/a\n", which); f 1124 arch/alpha/kernel/setup.c seq_printf (f, "%s\t\t: unknown\n", which); f 1126 arch/alpha/kernel/setup.c seq_printf (f, "%s\t\t: %dK, %d-way, %db line\n", f 1132 arch/alpha/kernel/setup.c show_cpuinfo(struct seq_file *f, void *slot) f 1168 arch/alpha/kernel/setup.c seq_printf(f, "cpu\t\t\t: Alpha\n" f 1204 arch/alpha/kernel/setup.c seq_printf(f, "cpus active\t\t: %u\n" f 1209 arch/alpha/kernel/setup.c show_cache_size (f, "L1 Icache", alpha_l1i_cacheshape); f 1210 arch/alpha/kernel/setup.c show_cache_size (f, "L1 Dcache", alpha_l1d_cacheshape); f 1211 arch/alpha/kernel/setup.c show_cache_size (f, "L2 cache", alpha_l2_cacheshape); f 1212 arch/alpha/kernel/setup.c show_cache_size (f, "L3 cache", alpha_l3_cacheshape); f 1409 arch/alpha/kernel/setup.c c_start(struct seq_file *f, loff_t *pos) f 1415 arch/alpha/kernel/setup.c c_next(struct seq_file *f, void *v, loff_t *pos) f 1421 arch/alpha/kernel/setup.c c_stop(struct seq_file *f, void *v) f 432 arch/arc/include/asm/atomic.h ATOMIC64_OPS(add, add.f, adc) f 433 arch/arc/include/asm/atomic.h ATOMIC64_OPS(sub, sub.f, sbc) f 100 arch/arc/include/asm/io.h #define __raw_readsx(t,f) \ f 101 arch/arc/include/asm/io.h static inline void __raw_reads##f(const volatile void __iomem *addr, \ f 113 arch/arc/include/asm/io.h u##t x = __raw_read##f(addr); \ f 118 arch/arc/include/asm/io.h u##t x = __raw_read##f(addr); \ f 163 arch/arc/include/asm/io.h #define __raw_writesx(t,f) \ f 164 arch/arc/include/asm/io.h static inline void __raw_writes##f(volatile void __iomem *addr, \ f 176 arch/arc/include/asm/io.h __raw_write##f(*buf++, addr); \ f 180 arch/arc/include/asm/io.h __raw_write##f(get_unaligned(buf++), addr); \ f 35 arch/arc/include/asm/tlb-mmu1.h xor.f r0,r0,1 ; flip f 52 arch/arc/include/asm/tlb-mmu1.h and.f r0,r0,0x000fe000 /* 2-way MMU mask */ f 127 arch/arc/kernel/smp.c #define __boot_read(f) f f 128 arch/arc/kernel/smp.c #define __boot_write(f, v) f = v f 132 arch/arc/kernel/smp.c #define __boot_read(f) arc_read_uncached_32(&f) f 133 arch/arc/kernel/smp.c #define __boot_write(f, v) arc_write_uncached_32(&f, v) f 43 arch/arc/kernel/unwind.c #define EXTRA_INFO(f) { \ f 44 arch/arc/kernel/unwind.c BUILD_BUG_ON_ZERO(offsetof(struct unwind_frame_info, f) \ f 45 arch/arc/kernel/unwind.c % FIELD_SIZEOF(struct unwind_frame_info, f)) \ f 46 arch/arc/kernel/unwind.c + offsetof(struct unwind_frame_info, f) \ f 47 arch/arc/kernel/unwind.c / FIELD_SIZEOF(struct unwind_frame_info, f), \ f 48 arch/arc/kernel/unwind.c FIELD_SIZEOF(struct unwind_frame_info, f) \ f 50 arch/arc/kernel/unwind.c #define PTREGS_INFO(f) EXTRA_INFO(regs.f) f 28 arch/arm/include/asm/efi.h #define arch_efi_call_virt(p, f, args...) \ f 30 arch/arm/include/asm/efi.h efi_##f##_t *__f; \ f 31 arch/arm/include/asm/efi.h __f = p->f; \ f 53 arch/arm/include/asm/efi.h #define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__) f 54 arch/arm/include/asm/efi.h #define __efi_call_early(f, ...) f(__VA_ARGS__) f 55 arch/arm/include/asm/efi.h #define efi_call_runtime(f, ...) sys_table_arg->runtime->f(__VA_ARGS__) f 61 arch/arm/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...) \ f 62 arch/arm/include/asm/efi.h ((protocol##_t *)instance)->f(instance, ##__VA_ARGS__) f 37 arch/arm/include/asm/fiq.h extern int claim_fiq(struct fiq_handler *f); f 38 arch/arm/include/asm/fiq.h extern void release_fiq(struct fiq_handler *f); f 144 arch/arm/include/asm/glue-cache.h static inline void nop_dma_map_area(const void *s, size_t l, int f) { } f 145 arch/arm/include/asm/glue-cache.h static inline void nop_dma_unmap_area(const void *s, size_t l, int f) { } f 237 arch/arm/include/asm/kvm_host.h #define kvm_call_hyp(f, ...) \ f 240 arch/arm/include/asm/kvm_host.h f(__VA_ARGS__); \ f 242 arch/arm/include/asm/kvm_host.h __kvm_call_hyp(kvm_ksym_ref(f), ##__VA_ARGS__); \ f 246 arch/arm/include/asm/kvm_host.h #define kvm_call_hyp_ret(f, ...) \ f 248 arch/arm/include/asm/kvm_host.h typeof(f(__VA_ARGS__)) ret; \ f 251 arch/arm/include/asm/kvm_host.h ret = f(__VA_ARGS__); \ f 253 arch/arm/include/asm/kvm_host.h ret = __kvm_call_hyp(kvm_ksym_ref(f), \ f 114 arch/arm/include/asm/proc-fns.h #define PROC_VTABLE(f) cpu_vtable[smp_processor_id()]->f f 115 arch/arm/include/asm/proc-fns.h #define PROC_TABLE(f) cpu_vtable[0]->f f 126 arch/arm/include/asm/proc-fns.h #define PROC_VTABLE(f) processor.f f 127 arch/arm/include/asm/proc-fns.h #define PROC_TABLE(f) processor.f f 306 arch/arm/include/asm/tlbflush.h #define tlb_flag(f) ((always_tlb_flags & (f)) || (__tlb_flag & possible_tlb_flags & (f))) f 308 arch/arm/include/asm/tlbflush.h #define __tlb_op(f, insnarg, arg) \ f 310 arch/arm/include/asm/tlbflush.h if (always_tlb_flags & (f)) \ f 313 arch/arm/include/asm/tlbflush.h else if (possible_tlb_flags & (f)) \ f 316 arch/arm/include/asm/tlbflush.h : : "r" (arg), "r" (__tlb_flag), "Ir" (f) \ f 320 arch/arm/include/asm/tlbflush.h #define tlb_op(f, regs, arg) __tlb_op(f, "p15, 0, %0, " regs, arg) f 321 arch/arm/include/asm/tlbflush.h #define tlb_l2_op(f, regs, arg) __tlb_op(f, "p15, 1, %0, " regs, arg) f 106 arch/arm/kernel/fiq.c int claim_fiq(struct fiq_handler *f) f 118 arch/arm/kernel/fiq.c f->next = current_fiq; f 119 arch/arm/kernel/fiq.c current_fiq = f; f 125 arch/arm/kernel/fiq.c void release_fiq(struct fiq_handler *f) f 127 arch/arm/kernel/fiq.c if (current_fiq != f) { f 129 arch/arm/kernel/fiq.c f->name, current_fiq->name); f 63 arch/arm/kernel/io.c const unsigned char *f = from; f 66 arch/arm/kernel/io.c writeb(*f, to); f 67 arch/arm/kernel/io.c f++; f 193 arch/arm/mach-ixp4xx/fsg-setup.c uint8_t __iomem *f; f 238 arch/arm/mach-ixp4xx/fsg-setup.c f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x400000); f 239 arch/arm/mach-ixp4xx/fsg-setup.c if (f) { f 243 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[i] = readb(f + 0x3C0422 + i); f 244 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[i] = readb(f + 0x3C043B + i); f 254 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[0] = readb(f + 0x3C0421); f 255 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[1] = readb(f + 0x3C0420); f 256 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[2] = readb(f + 0x3C0427); f 257 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[3] = readb(f + 0x3C0426); f 258 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[4] = readb(f + 0x3C0425); f 259 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[0].hwaddr[5] = readb(f + 0x3C0424); f 261 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[0] = readb(f + 0x3C0439); f 262 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[1] = readb(f + 0x3C043F); f 263 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[2] = readb(f + 0x3C043E); f 264 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[3] = readb(f + 0x3C043D); f 265 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[4] = readb(f + 0x3C043C); f 266 arch/arm/mach-ixp4xx/fsg-setup.c fsg_plat_eth[1].hwaddr[5] = readb(f + 0x3C0443); f 268 arch/arm/mach-ixp4xx/fsg-setup.c iounmap(f); f 279 arch/arm/mach-ixp4xx/nas100d-setup.c uint8_t __iomem *f; f 315 arch/arm/mach-ixp4xx/nas100d-setup.c f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x1000000); f 316 arch/arm/mach-ixp4xx/nas100d-setup.c if (f) { f 319 arch/arm/mach-ixp4xx/nas100d-setup.c nas100d_plat_eth[0].hwaddr[i] = readb(f + 0xFC0FD8 + i); f 321 arch/arm/mach-ixp4xx/nas100d-setup.c nas100d_plat_eth[0].hwaddr[i] = readb(f + 0xFC0FD8 + (i^3)); f 323 arch/arm/mach-ixp4xx/nas100d-setup.c iounmap(f); f 260 arch/arm/mach-ixp4xx/nslu2-setup.c uint8_t __iomem *f; f 303 arch/arm/mach-ixp4xx/nslu2-setup.c f = ioremap(IXP4XX_EXP_BUS_BASE(0), 0x40000); f 304 arch/arm/mach-ixp4xx/nslu2-setup.c if (f) { f 307 arch/arm/mach-ixp4xx/nslu2-setup.c nslu2_plat_eth[0].hwaddr[i] = readb(f + 0x3FFB0 + i); f 309 arch/arm/mach-ixp4xx/nslu2-setup.c nslu2_plat_eth[0].hwaddr[i] = readb(f + 0x3FFB0 + (i^3)); f 311 arch/arm/mach-ixp4xx/nslu2-setup.c iounmap(f); f 13 arch/arm/mach-lpc32xx/lpc32xx.h #define _SBF(f, v) ((v) << (f)) f 612 arch/arm/mach-s3c24xx/mach-mini2440.c char f = *fp++; f 614 arch/arm/mach-s3c24xx/mach-mini2440.c switch (f) { f 618 arch/arm/mach-s3c24xx/mach-mini2440.c f); f 620 arch/arm/mach-s3c24xx/mach-mini2440.c int li = f - '0'; f 624 arch/arm/mach-s3c24xx/mach-mini2440.c f); f 636 arch/arm/mach-s3c24xx/mach-mini2440.c f); f 645 arch/arm/mach-s3c24xx/mach-mini2440.c f); f 650 arch/arm/mach-s3c24xx/mach-mini2440.c f); f 41 arch/arm/mach-s3c24xx/mach-osiris-dvs.c static bool is_dvs(struct s3c_freq *f) f 44 arch/arm/mach-s3c24xx/mach-osiris-dvs.c return f->armclk == f->hclk; f 290 arch/arm/mach-s3c64xx/mach-mini6410.c char f = *fp++; f 292 arch/arm/mach-s3c64xx/mach-mini6410.c switch (f) { f 296 arch/arm/mach-s3c64xx/mach-mini6410.c "screen type already set\n", f); f 298 arch/arm/mach-s3c64xx/mach-mini6410.c int li = f - '0'; f 301 arch/arm/mach-s3c64xx/mach-mini6410.c "of range LCD mode\n", f); f 260 arch/arm/mach-s3c64xx/mach-real6410.c char f = *fp++; f 262 arch/arm/mach-s3c64xx/mach-real6410.c switch (f) { f 266 arch/arm/mach-s3c64xx/mach-real6410.c "screen type already set\n", f); f 268 arch/arm/mach-s3c64xx/mach-real6410.c int li = f - '0'; f 271 arch/arm/mach-s3c64xx/mach-real6410.c "of range LCD mode\n", f); f 290 arch/arm/mm/cache-tauros2.c unsigned int f; f 296 arch/arm/mm/cache-tauros2.c ret = of_property_read_u32(node, "marvell,tauros2-cache-features", &f); f 302 arch/arm/mm/cache-tauros2.c features = f; f 95 arch/arm/nwfpe/fpa11_cpdt.c float32 f; f 101 arch/arm/nwfpe/fpa11_cpdt.c val.f = float64_to_float32(roundData, fpa11->fpreg[Fn].fDouble); f 106 arch/arm/nwfpe/fpa11_cpdt.c val.f = floatx80_to_float32(roundData, fpa11->fpreg[Fn].fExtended); f 111 arch/arm/nwfpe/fpa11_cpdt.c val.f = fpa11->fpreg[Fn].fSingle; f 121 arch/arm/nwfpe/fpa11_cpdt.c float64 f; f 127 arch/arm/nwfpe/fpa11_cpdt.c val.f = float32_to_float64(fpa11->fpreg[Fn].fSingle); f 132 arch/arm/nwfpe/fpa11_cpdt.c val.f = floatx80_to_float64(roundData, fpa11->fpreg[Fn].fExtended); f 137 arch/arm/nwfpe/fpa11_cpdt.c val.f = fpa11->fpreg[Fn].fDouble; f 154 arch/arm/nwfpe/fpa11_cpdt.c floatx80 f; f 160 arch/arm/nwfpe/fpa11_cpdt.c val.f = float32_to_floatx80(fpa11->fpreg[Fn].fSingle); f 164 arch/arm/nwfpe/fpa11_cpdt.c val.f = float64_to_floatx80(fpa11->fpreg[Fn].fDouble); f 168 arch/arm/nwfpe/fpa11_cpdt.c val.f = fpa11->fpreg[Fn].fExtended; f 180 arch/arm/nwfpe/softfloat.c float32 f; f 186 arch/arm/nwfpe/softfloat.c : "g" (f), "g" (zSign), "g" (zExp), "g" (zSig) f 188 arch/arm/nwfpe/softfloat.c return f; f 40 arch/arm/plat-orion/pcie.c #define PCIE_CONF_FUNC(f) (((f) & 0x7) << 8) f 1316 arch/arm/probes/kprobes/test-arm.c COPROCESSOR_INSTRUCTIONS_ST_LD("2",f) f 1319 arch/arm/probes/kprobes/test-arm.c COPROCESSOR_INSTRUCTIONS_MC_MR("2",f) f 30 arch/arm64/include/asm/efi.h #define arch_efi_call_virt(p, f, args...) \ f 32 arch/arm64/include/asm/efi.h efi_##f##_t *__f; \ f 33 arch/arm64/include/asm/efi.h __f = p->f; \ f 34 arch/arm64/include/asm/efi.h __efi_rt_asm_wrapper(__f, #f, args); \ f 96 arch/arm64/include/asm/efi.h #define efi_call_early(f, ...) sys_table_arg->boottime->f(__VA_ARGS__) f 97 arch/arm64/include/asm/efi.h #define __efi_call_early(f, ...) f(__VA_ARGS__) f 98 arch/arm64/include/asm/efi.h #define efi_call_runtime(f, ...) sys_table_arg->runtime->f(__VA_ARGS__) f 104 arch/arm64/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...) \ f 105 arch/arm64/include/asm/efi.h ((protocol##_t *)instance)->f(instance, ##__VA_ARGS__) f 447 arch/arm64/include/asm/kvm_host.h #define kvm_call_hyp(f, ...) \ f 450 arch/arm64/include/asm/kvm_host.h f(__VA_ARGS__); \ f 453 arch/arm64/include/asm/kvm_host.h __kvm_call_hyp(kvm_ksym_ref(f), ##__VA_ARGS__); \ f 457 arch/arm64/include/asm/kvm_host.h #define kvm_call_hyp_ret(f, ...) \ f 459 arch/arm64/include/asm/kvm_host.h typeof(f(__VA_ARGS__)) ret; \ f 462 arch/arm64/include/asm/kvm_host.h ret = f(__VA_ARGS__); \ f 465 arch/arm64/include/asm/kvm_host.h ret = __kvm_call_hyp(kvm_ksym_ref(f), \ f 20 arch/arm64/kernel/alternative.c #define __ALT_PTR(a,f) ((void *)&(a)->f + (a)->f) f 125 arch/arm64/kernel/efi.c asmlinkage efi_status_t efi_handle_corrupted_x18(efi_status_t s, const char *f) f 127 arch/arm64/kernel/efi.c pr_err_ratelimited(FW_BUG "register x18 corrupted by EFI %s\n", f); f 35 arch/arm64/kernel/reloc_test_core.c u64 (*f)(void); f 59 arch/arm64/kernel/reloc_test_core.c u64 ret = funcs[i].f(); f 328 arch/c6x/platforms/dscr.c int f, i, j, err; f 335 arch/c6x/platforms/dscr.c for (f = 0; f < 2; f++) { f 336 arch/c6x/platforms/dscr.c fuse = soc_readl(base + vals[f * 5]); f 337 arch/c6x/platforms/dscr.c for (j = (f * 5) + 1, i = 24; i >= 0; i -= 8, j++) f 44 arch/ia64/include/asm/kprobes.h }f; f 133 arch/ia64/include/asm/page.h } f; f 144 arch/ia64/include/asm/page.h #define __pa(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg = 0; _v.l;}) f 145 arch/ia64/include/asm/page.h #define __va(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg = -1; _v.p;}) f 147 arch/ia64/include/asm/page.h #define REGION_NUMBER(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg;}) f 148 arch/ia64/include/asm/page.h #define REGION_OFFSET(x) ({ia64_va _v; _v.l = (long) (x); _v.f.off;}) f 35 arch/ia64/include/asm/smp.h } f; f 40 arch/ia64/include/asm/smp.h return lid.f.id << 8 | lid.f.eid; f 63 arch/ia64/kernel/efi.c #define efi_call_virt(f, args...) (*(f))(args) f 24 arch/ia64/kernel/entry.h #define PT(f) (IA64_PT_REGS_##f##_OFFSET) f 25 arch/ia64/kernel/entry.h #define SW(f) (IA64_SWITCH_STACK_##f##_OFFSET) f 26 arch/ia64/kernel/entry.h #define SOS(f) (IA64_SAL_OS_STATE_##f##_OFFSET) f 154 arch/ia64/kernel/kprobes.c if ((cmp_inst.f.x2 == 0) || (cmp_inst.f.x2 == 1)) { f 156 arch/ia64/kernel/kprobes.c if ((cmp_inst.f.tb == 0) && (cmp_inst.f.ta == 0) f 157 arch/ia64/kernel/kprobes.c &&(cmp_inst.f.c == 1)) f 159 arch/ia64/kernel/kprobes.c } else if ((cmp_inst.f.x2 == 2)||(cmp_inst.f.x2 == 3)) { f 161 arch/ia64/kernel/kprobes.c if ((cmp_inst.f.ta == 0) &&(cmp_inst.f.c == 1)) f 999 arch/ia64/kernel/mca.c if (va.f.reg == 0) { f 1000 arch/ia64/kernel/mca.c va.f.reg = 7; f 1004 arch/ia64/kernel/mca.c if (va.f.reg == 0) { f 1005 arch/ia64/kernel/mca.c va.f.reg = 7; f 1011 arch/ia64/kernel/mca.c if (va.f.reg == 0) { f 1012 arch/ia64/kernel/mca.c va.f.reg = 7; f 1016 arch/ia64/kernel/mca.c if (va.f.reg == 0) { f 1017 arch/ia64/kernel/mca.c va.f.reg = 7; f 1063 arch/ia64/kernel/mca.c if (va.f.reg < 5) { f 877 arch/ia64/kernel/palinfo.c int palinfo_handle_smp(struct seq_file *m, pal_func_cpu_u_t *f) f 882 arch/ia64/kernel/palinfo.c ptr.func = palinfo_entries[f->func_id].proc_read; f 888 arch/ia64/kernel/palinfo.c if ((ret=smp_call_function_single(f->req_cpu, palinfo_smp_call, &ptr, 1))) { f 890 arch/ia64/kernel/palinfo.c "error %d\n", smp_processor_id(), f->req_cpu, f->func_id, ret); f 897 arch/ia64/kernel/palinfo.c int palinfo_handle_smp(struct seq_file *m, pal_func_cpu_u_t *f) f 909 arch/ia64/kernel/palinfo.c pal_func_cpu_u_t *f = (pal_func_cpu_u_t *)&m->private; f 915 arch/ia64/kernel/palinfo.c if (f->req_cpu == get_cpu()) f 916 arch/ia64/kernel/palinfo.c (*palinfo_entries[f->func_id].proc_read)(m); f 918 arch/ia64/kernel/palinfo.c palinfo_handle_smp(m, f); f 926 arch/ia64/kernel/palinfo.c pal_func_cpu_u_t f; f 936 arch/ia64/kernel/palinfo.c f.req_cpu = cpu; f 939 arch/ia64/kernel/palinfo.c f.func_id = j; f 941 arch/ia64/kernel/palinfo.c proc_palinfo_show, (void *)f.value); f 165 arch/ia64/kernel/perfmon.c #define PROTECT_CTX(c, f) \ f 168 arch/ia64/kernel/perfmon.c spin_lock_irqsave(&(c)->ctx_lock, f); \ f 172 arch/ia64/kernel/perfmon.c #define UNPROTECT_CTX(c, f) \ f 175 arch/ia64/kernel/perfmon.c spin_unlock_irqrestore(&(c)->ctx_lock, f); \ f 178 arch/ia64/kernel/perfmon.c #define PROTECT_CTX_NOPRINT(c, f) \ f 180 arch/ia64/kernel/perfmon.c spin_lock_irqsave(&(c)->ctx_lock, f); \ f 184 arch/ia64/kernel/perfmon.c #define UNPROTECT_CTX_NOPRINT(c, f) \ f 186 arch/ia64/kernel/perfmon.c spin_unlock_irqrestore(&(c)->ctx_lock, f); \ f 347 arch/ia64/kernel/perfmon.c #define PFM_IS_FILE(f) ((f)->f_op == &pfm_file_ops) f 596 arch/ia64/kernel/perfmon.c pfm_unprotect_ctx_ctxsw(pfm_context_t *x, unsigned long f) f 4709 arch/ia64/kernel/perfmon.c struct fd f = {NULL, 0}; f 4806 arch/ia64/kernel/perfmon.c f = fdget(fd); f 4807 arch/ia64/kernel/perfmon.c if (unlikely(f.file == NULL)) { f 4811 arch/ia64/kernel/perfmon.c if (unlikely(PFM_IS_FILE(f.file) == 0)) { f 4816 arch/ia64/kernel/perfmon.c ctx = f.file->private_data; f 4846 arch/ia64/kernel/perfmon.c if (f.file) f 4847 arch/ia64/kernel/perfmon.c fdput(f); f 1163 arch/ia64/kernel/unwind.c #define UNW_DEC_FRGR_MEM(fmt,g,f,arg) desc_frgr_mem(g,f,arg) f 1164 arch/ia64/kernel/unwind.c #define UNW_DEC_FR_MEM(fmt,f,arg) desc_fr_mem(f,arg) f 1190 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_REG_P(f,p,t,a,x,y,arg) desc_spill_reg_p(p,t,a,x,y,arg) f 1191 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_REG(f,t,a,x,y,arg) desc_spill_reg_p(0,t,a,x,y,arg) f 1192 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_PSPREL_P(f,p,t,a,o,arg) desc_spill_psprel_p(p,t,a,o,arg) f 1193 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_PSPREL(f,t,a,o,arg) desc_spill_psprel_p(0,t,a,o,arg) f 1194 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_SPREL_P(f,p,t,a,o,arg) desc_spill_sprel_p(p,t,a,o,arg) f 1195 arch/ia64/kernel/unwind.c #define UNW_DEC_SPILL_SPREL(f,t,a,o,arg) desc_spill_sprel_p(0,t,a,o,arg) f 1196 arch/ia64/kernel/unwind.c #define UNW_DEC_RESTORE_P(f,p,t,a,arg) desc_restore_p(p,t,a,arg) f 1197 arch/ia64/kernel/unwind.c #define UNW_DEC_RESTORE(f,t,a,arg) desc_restore_p(0,t,a,arg) f 60 arch/m68k/coldfire/intc-525x.c static int intc2_irq_gpio_set_type(struct irq_data *d, unsigned int f) f 62 arch/m68k/coldfire/intc-525x.c if (f & ~IRQ_TYPE_EDGE_BOTH) f 54 arch/m68k/coldfire/m525x.c u32 f = readl(MCFSIM2_GPIOFUNC); f 55 arch/m68k/coldfire/m525x.c f |= (1 << MCFQSPI_CS2) | (1 << MCFQSPI_CS1) | (1 << MCFQSPI_CS0); f 56 arch/m68k/coldfire/m525x.c writel(f, MCFSIM2_GPIOFUNC); f 178 arch/m68k/include/asm/math-emu.h .macro fp_get_instr_data f,s,dest,label f 86 arch/m68k/kernel/signal.c static inline int frame_extra_sizes(int f) f 88 arch/m68k/kernel/signal.c return frame_size_change[f]; f 192 arch/m68k/kernel/signal.c static inline int frame_extra_sizes(int f) f 143 arch/m68k/math-emu/fp_decode.h jne 1\@f f 146 arch/m68k/math-emu/fp_decode.h jra 2\@f f 153 arch/m68k/math-emu/fp_decode.h jne 3\@f f 234 arch/m68k/math-emu/fp_decode.h jne 1\@f f 237 arch/m68k/math-emu/fp_decode.h jne 1\@f f 161 arch/microblaze/mm/pgtable.c unsigned long v, p, s, f; f 166 arch/microblaze/mm/pgtable.c f = _PAGE_PRESENT | _PAGE_ACCESSED | f 169 arch/microblaze/mm/pgtable.c f |= _PAGE_WRENABLE; f 173 arch/microblaze/mm/pgtable.c f |= _PAGE_USER; f 174 arch/microblaze/mm/pgtable.c map_page(v, p, f); f 59 arch/mips/boot/ecoff.h #define N_TXTOFF(f, a) \ f 62 arch/mips/boot/ecoff.h ((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + 7) & 0xfffffff8) : \ f 63 arch/mips/boot/ecoff.h ((FILHSZ + AOUTHSZ + (f).f_nscns * SCNHSZ + SCNROUND-1) & ~(SCNROUND-1)) ) ) f 64 arch/mips/boot/ecoff.h #define N_DATOFF(f, a) \ f 65 arch/mips/boot/ecoff.h N_TXTOFF(f, a) + (a).tsize; f 221 arch/mips/boot/elf2ecoff.c static void convert_ecoff_filehdr(struct filehdr *f) f 223 arch/mips/boot/elf2ecoff.c f->f_magic = swab16(f->f_magic); f 224 arch/mips/boot/elf2ecoff.c f->f_nscns = swab16(f->f_nscns); f 225 arch/mips/boot/elf2ecoff.c f->f_timdat = swab32(f->f_timdat); f 226 arch/mips/boot/elf2ecoff.c f->f_symptr = swab32(f->f_symptr); f 227 arch/mips/boot/elf2ecoff.c f->f_nsyms = swab32(f->f_nsyms); f 228 arch/mips/boot/elf2ecoff.c f->f_opthdr = swab16(f->f_opthdr); f 229 arch/mips/boot/elf2ecoff.c f->f_flags = swab16(f->f_flags); f 551 arch/mips/boot/tools/relocs.c static int write_reloc_as_bin(uint32_t v, FILE *f) f 558 arch/mips/boot/tools/relocs.c return fwrite(buf, 1, 4, f); f 561 arch/mips/boot/tools/relocs.c static int write_reloc_as_text(uint32_t v, FILE *f) f 565 arch/mips/boot/tools/relocs.c res = fprintf(f, "\t.long 0x%08"PRIx32"\n", v); f 25 arch/mips/cavium-octeon/csrc-octeon.c static u64 f; f 48 arch/mips/cavium-octeon/csrc-octeon.c f = (0x8000000000000000ull / sdiv) * 2; f 55 arch/mips/cavium-octeon/csrc-octeon.c f = (0x8000000000000000ull / sdiv) * 2; f 89 arch/mips/cavium-octeon/csrc-octeon.c if (f != 0) { f 93 arch/mips/cavium-octeon/csrc-octeon.c : [f] "r" (f) f 200 arch/mips/cavium-octeon/csrc-octeon.c if (f != 0) { f 204 arch/mips/cavium-octeon/csrc-octeon.c : [f] "r" (f) f 905 arch/mips/cavium-octeon/octeon-platform.c __be32 f; f 907 arch/mips/cavium-octeon/octeon-platform.c f = cpu_to_be32(octeon_get_io_clock_rate()); f 910 arch/mips/cavium-octeon/octeon-platform.c &f, sizeof(f)); f 132 arch/mips/include/asm/mach-pmcs-msp71xx/msp_prom.h #define ppfinit(f, x...) \ f 134 arch/mips/include/asm/mach-pmcs-msp71xx/msp_prom.h static char _f[] __initdata = KERN_INFO f; \ f 51 arch/mips/include/asm/netlogic/xlp-hal/iomap.h #define XLP_IO_PCI_OFFSET(b, d, f) (((b) << 20) | ((d) << 15) | ((f) << 12)) f 115 arch/mips/include/asm/netlogic/xlp-hal/iomap.h #define XLP9XX_HDR_OFFSET(n, d, f) \ f 116 arch/mips/include/asm/netlogic/xlp-hal/iomap.h XLP_IO_PCI_OFFSET(xlp9xx_get_socbus(n), d, f) f 215 arch/mips/include/asm/pci/bridge.h } f[8]; f 366 arch/mips/include/asm/pci/bridge.h #define BRIDGE_TYPE0_CFG_DEVF(s, f) (BRIDGE_TYPE0_CFG_DEV0+\ f 368 arch/mips/include/asm/pci/bridge.h (f)*BRIDGE_TYPE0_CFG_FUNC_OFF) f 41 arch/mips/include/asm/pmon.h #define pmon_cpustart(n, f, sp, gp) debug_vectors->_s.cpustart(n, f, sp, gp) f 251 arch/mips/include/asm/xtalk/xwidget.h w_err_cmd_word_f f; f 1305 arch/mips/mm/tlbex.c u32 *f; f 1387 arch/mips/mm/tlbex.c f = final_handler; f 1389 arch/mips/mm/tlbex.c uasm_copy_handler(relocs, labels, tlb_handler, p, f); f 1401 arch/mips/mm/tlbex.c f = final_handler + MIPS64_REFILL_INSNS; f 1404 arch/mips/mm/tlbex.c uasm_copy_handler(relocs, labels, tlb_handler, p, f); f 1445 arch/mips/mm/tlbex.c uasm_copy_handler(relocs, labels, tlb_handler, split, f); f 1446 arch/mips/mm/tlbex.c f += split - tlb_handler; f 1451 arch/mips/mm/tlbex.c uasm_il_b(&f, &r, label_split); f 1453 arch/mips/mm/tlbex.c uasm_i_nop(&f); f 1456 arch/mips/mm/tlbex.c split, split + 1, f); f 1457 arch/mips/mm/tlbex.c uasm_move_labels(labels, f, f + 1, -1); f 1458 arch/mips/mm/tlbex.c f++; f 1465 arch/mips/mm/tlbex.c final_len = (f - (final_handler + MIPS64_REFILL_INSNS)) + f 32 arch/mips/mm/uasm-micromips.c #define M(a, b, c, d, e, f) \ f 38 arch/mips/mm/uasm-micromips.c | (f) << FUNC_SH) f 32 arch/mips/mm/uasm-mips.c #define M(a, b, c, d, e, f) \ f 38 arch/mips/mm/uasm-mips.c | (f) << FUNC_SH) f 104 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; f 113 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; f 117 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; f 187 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[PCI_VENDOR_ID]; f 196 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; f 200 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].c[where ^ (4 - size)]; f 237 arch/mips/pci/pci-xtalk-bridge.c addr = &bridge->b_type0_cfg_dev[slot].f[fn].l[where >> 2]; f 36 arch/parisc/include/asm/atomic.h #define _atomic_spin_lock_irqsave(l,f) do { \ f 38 arch/parisc/include/asm/atomic.h local_irq_save(f); \ f 42 arch/parisc/include/asm/atomic.h #define _atomic_spin_unlock_irqrestore(l,f) do { \ f 45 arch/parisc/include/asm/atomic.h local_irq_restore(f); \ f 50 arch/parisc/include/asm/atomic.h # define _atomic_spin_lock_irqsave(l,f) do { local_irq_save(f); } while (0) f 51 arch/parisc/include/asm/atomic.h # define _atomic_spin_unlock_irqrestore(l,f) do { local_irq_restore(f); } while (0) f 88 arch/parisc/include/asm/psw.h unsigned int f:1; f 73 arch/parisc/kernel/traps.c #define PRINTREGS(lvl,r,f,fmt,x) \ f 75 arch/parisc/kernel/traps.c lvl, f, (x), (x+3), (r)[(x)+0], (r)[(x)+1], \ f 98 arch/powerpc/include/asm/sstep.h #define MKOP(t, f, s) ((t) | (f) | SIZE(s)) f 606 arch/powerpc/kernel/asm-offsets.c # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, shadow_vcpu.f)) f 608 arch/powerpc/kernel/asm-offsets.c # define SVCPU_FIELD(x, f) f 610 arch/powerpc/kernel/asm-offsets.c # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct paca_struct, kvm_hstate.f)) f 612 arch/powerpc/kernel/asm-offsets.c # define SVCPU_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, f)) f 613 arch/powerpc/kernel/asm-offsets.c # define HSTATE_FIELD(x, f) DEFINE(x, offsetof(struct kvmppc_book3s_shadow_vcpu, hstate.f)) f 2281 arch/powerpc/kernel/cputable.c unsigned long f = 1ul << i; f 2283 arch/powerpc/kernel/cputable.c if (!(cur_cpu_spec->cpu_features & f)) f 2298 arch/powerpc/kernel/cputable.c unsigned long f = 1ul << i; f 2300 arch/powerpc/kernel/cputable.c if (!(cur_cpu_spec->mmu_features & f)) f 155 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_try_enable_unknown(struct dt_cpu_feature *f) f 157 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hv_support == HV_SUPPORT_NONE) { f 158 arch/powerpc/kernel/dt_cpu_ftrs.c } else if (f->hv_support & HV_SUPPORT_HFSCR) { f 160 arch/powerpc/kernel/dt_cpu_ftrs.c hfscr |= 1UL << f->hfscr_bit_nr; f 167 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->os_support == OS_SUPPORT_NONE) { f 168 arch/powerpc/kernel/dt_cpu_ftrs.c } else if (f->os_support & OS_SUPPORT_FSCR) { f 170 arch/powerpc/kernel/dt_cpu_ftrs.c fscr |= 1UL << f->fscr_bit_nr; f 177 arch/powerpc/kernel/dt_cpu_ftrs.c if ((f->usable_privilege & USABLE_PR) && (f->hwcap_bit_nr != -1)) { f 178 arch/powerpc/kernel/dt_cpu_ftrs.c uint32_t word = f->hwcap_bit_nr / 32; f 179 arch/powerpc/kernel/dt_cpu_ftrs.c uint32_t bit = f->hwcap_bit_nr % 32; f 186 arch/powerpc/kernel/dt_cpu_ftrs.c pr_err("%s could not advertise to user (no hwcap bits)\n", f->name); f 192 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable(struct dt_cpu_feature *f) f 194 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hv_support != HV_SUPPORT_NONE) { f 195 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hfscr_bit_nr != -1) { f 197 arch/powerpc/kernel/dt_cpu_ftrs.c hfscr |= 1UL << f->hfscr_bit_nr; f 202 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->os_support != OS_SUPPORT_NONE) { f 203 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->fscr_bit_nr != -1) { f 205 arch/powerpc/kernel/dt_cpu_ftrs.c fscr |= 1UL << f->fscr_bit_nr; f 210 arch/powerpc/kernel/dt_cpu_ftrs.c if ((f->usable_privilege & USABLE_PR) && (f->hwcap_bit_nr != -1)) { f 211 arch/powerpc/kernel/dt_cpu_ftrs.c uint32_t word = f->hwcap_bit_nr / 32; f 212 arch/powerpc/kernel/dt_cpu_ftrs.c uint32_t bit = f->hwcap_bit_nr % 32; f 219 arch/powerpc/kernel/dt_cpu_ftrs.c pr_err("CPU feature: %s could not advertise to user (no hwcap bits)\n", f->name); f 225 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_disable(struct dt_cpu_feature *f) f 230 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_hv(struct dt_cpu_feature *f) f 250 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_le(struct dt_cpu_feature *f) f 256 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_smt(struct dt_cpu_feature *f) f 263 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_idle_nap(struct dt_cpu_feature *f) f 277 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_align_dsisr(struct dt_cpu_feature *f) f 284 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_idle_stop(struct dt_cpu_feature *f) f 298 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_mmu_hash(struct dt_cpu_feature *f) f 317 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_mmu_hash_v3(struct dt_cpu_feature *f) f 333 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_mmu_radix(struct dt_cpu_feature *f) f 345 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_dscr(struct dt_cpu_feature *f) f 349 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 380 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_mce_power8(struct dt_cpu_feature *f) f 388 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_pmu_power8(struct dt_cpu_feature *f) f 418 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_mce_power9(struct dt_cpu_feature *f) f 426 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_pmu_power9(struct dt_cpu_feature *f) f 443 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_tm(struct dt_cpu_feature *f) f 446 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 453 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_fp(struct dt_cpu_feature *f) f 455 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 461 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_vector(struct dt_cpu_feature *f) f 464 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 474 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_vsx(struct dt_cpu_feature *f) f 477 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 486 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_purr(struct dt_cpu_feature *f) f 493 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_ebb(struct dt_cpu_feature *f) f 501 arch/powerpc/kernel/dt_cpu_ftrs.c f->hwcap_bit_nr = -1; f 502 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 507 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_dbell(struct dt_cpu_feature *f) f 512 arch/powerpc/kernel/dt_cpu_ftrs.c feat_enable(f); f 523 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_hvi(struct dt_cpu_feature *f) f 548 arch/powerpc/kernel/dt_cpu_ftrs.c static int __init feat_enable_large_ci(struct dt_cpu_feature *f) f 557 arch/powerpc/kernel/dt_cpu_ftrs.c int (*enable)(struct dt_cpu_feature *f); f 659 arch/powerpc/kernel/dt_cpu_ftrs.c static bool __init cpufeatures_process_feature(struct dt_cpu_feature *f) f 667 arch/powerpc/kernel/dt_cpu_ftrs.c if (!strcmp(f->name, m->name)) { f 669 arch/powerpc/kernel/dt_cpu_ftrs.c if (m->enable(f)) { f 675 arch/powerpc/kernel/dt_cpu_ftrs.c f->name); f 680 arch/powerpc/kernel/dt_cpu_ftrs.c if (!known && (!enable_unknown || !feat_try_enable_unknown(f))) { f 682 arch/powerpc/kernel/dt_cpu_ftrs.c f->name); f 687 arch/powerpc/kernel/dt_cpu_ftrs.c pr_debug("enabling: %s\n", f->name); f 689 arch/powerpc/kernel/dt_cpu_ftrs.c pr_debug("enabling: %s (unknown)\n", f->name); f 837 arch/powerpc/kernel/dt_cpu_ftrs.c struct dt_cpu_feature *f; f 840 arch/powerpc/kernel/dt_cpu_ftrs.c f = &dt_cpu_features[i]; f 842 arch/powerpc/kernel/dt_cpu_ftrs.c f->node = node; f 844 arch/powerpc/kernel/dt_cpu_ftrs.c f->name = uname; f 851 arch/powerpc/kernel/dt_cpu_ftrs.c f->isa = be32_to_cpup(prop); f 858 arch/powerpc/kernel/dt_cpu_ftrs.c f->usable_privilege = be32_to_cpup(prop); f 862 arch/powerpc/kernel/dt_cpu_ftrs.c f->hv_support = be32_to_cpup(prop); f 864 arch/powerpc/kernel/dt_cpu_ftrs.c f->hv_support = HV_SUPPORT_NONE; f 868 arch/powerpc/kernel/dt_cpu_ftrs.c f->os_support = be32_to_cpup(prop); f 870 arch/powerpc/kernel/dt_cpu_ftrs.c f->os_support = OS_SUPPORT_NONE; f 874 arch/powerpc/kernel/dt_cpu_ftrs.c f->hfscr_bit_nr = be32_to_cpup(prop); f 876 arch/powerpc/kernel/dt_cpu_ftrs.c f->hfscr_bit_nr = -1; f 879 arch/powerpc/kernel/dt_cpu_ftrs.c f->fscr_bit_nr = be32_to_cpup(prop); f 881 arch/powerpc/kernel/dt_cpu_ftrs.c f->fscr_bit_nr = -1; f 884 arch/powerpc/kernel/dt_cpu_ftrs.c f->hwcap_bit_nr = be32_to_cpup(prop); f 886 arch/powerpc/kernel/dt_cpu_ftrs.c f->hwcap_bit_nr = -1; f 888 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->usable_privilege & USABLE_HV) { f 894 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hv_support == HV_SUPPORT_NONE && f->hfscr_bit_nr != -1) { f 899 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hv_support == HV_SUPPORT_HFSCR) { f 900 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hfscr_bit_nr == -1) { f 906 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hv_support != HV_SUPPORT_NONE || f->hfscr_bit_nr != -1) { f 912 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->usable_privilege & USABLE_OS) { f 913 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->os_support == OS_SUPPORT_NONE && f->fscr_bit_nr != -1) { f 918 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->os_support == OS_SUPPORT_FSCR) { f 919 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->fscr_bit_nr == -1) { f 925 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->os_support != OS_SUPPORT_NONE || f->fscr_bit_nr != -1) { f 931 arch/powerpc/kernel/dt_cpu_ftrs.c if (!(f->usable_privilege & USABLE_PR)) { f 932 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->hwcap_bit_nr != -1) { f 940 arch/powerpc/kernel/dt_cpu_ftrs.c if (cpufeatures_process_feature(f)) f 941 arch/powerpc/kernel/dt_cpu_ftrs.c f->enabled = 1; f 943 arch/powerpc/kernel/dt_cpu_ftrs.c f->disabled = 1; f 949 arch/powerpc/kernel/dt_cpu_ftrs.c static void __init cpufeatures_deps_enable(struct dt_cpu_feature *f) f 956 arch/powerpc/kernel/dt_cpu_ftrs.c if (f->enabled || f->disabled) f 959 arch/powerpc/kernel/dt_cpu_ftrs.c prop = of_get_flat_dt_prop(f->node, "dependencies", &len); f 961 arch/powerpc/kernel/dt_cpu_ftrs.c pr_warn("%s: missing dependencies property", f->name); f 977 arch/powerpc/kernel/dt_cpu_ftrs.c f->disabled = 1; f 984 arch/powerpc/kernel/dt_cpu_ftrs.c if (cpufeatures_process_feature(f)) f 985 arch/powerpc/kernel/dt_cpu_ftrs.c f->enabled = 1; f 987 arch/powerpc/kernel/dt_cpu_ftrs.c f->disabled = 1; f 1050 arch/powerpc/kernel/dt_cpu_ftrs.c struct dt_cpu_feature *f = &dt_cpu_features[i]; f 1052 arch/powerpc/kernel/dt_cpu_ftrs.c cpufeatures_deps_enable(f); f 1597 arch/powerpc/kernel/process.c void (*f)(void); f 1620 arch/powerpc/kernel/process.c f = ret_from_kernel_thread; f 1639 arch/powerpc/kernel/process.c f = ret_from_fork; f 1681 arch/powerpc/kernel/process.c kregs->nip = ppc_function_entry(f); f 73 arch/powerpc/kernel/ptrace.c #define TVSO(f) (offsetof(struct thread_vr_state, f)) f 74 arch/powerpc/kernel/ptrace.c #define TFSO(f) (offsetof(struct thread_fp_state, f)) f 75 arch/powerpc/kernel/ptrace.c #define TSO(f) (offsetof(struct thread_struct, f)) f 165 arch/powerpc/kernel/rtas_flash.c struct flash_block_list *f; f 171 arch/powerpc/kernel/rtas_flash.c for (f = flist; f; f = f->next) { f 172 arch/powerpc/kernel/rtas_flash.c for (i = 0; i < f->num_blocks; i++) { f 173 arch/powerpc/kernel/rtas_flash.c if (f->blocks[i].data == NULL) { f 176 arch/powerpc/kernel/rtas_flash.c block_size = f->blocks[i].length; f 194 arch/powerpc/kernel/rtas_flash.c static void free_flash_list(struct flash_block_list *f) f 199 arch/powerpc/kernel/rtas_flash.c while (f) { f 200 arch/powerpc/kernel/rtas_flash.c for (i = 0; i < f->num_blocks; i++) f 201 arch/powerpc/kernel/rtas_flash.c kmem_cache_free(flash_block_cache, f->blocks[i].data); f 202 arch/powerpc/kernel/rtas_flash.c next = f->next; f 203 arch/powerpc/kernel/rtas_flash.c kmem_cache_free(flash_block_cache, f); f 204 arch/powerpc/kernel/rtas_flash.c f = next; f 560 arch/powerpc/kernel/rtas_flash.c struct flash_block_list *f, *next, *flist; f 607 arch/powerpc/kernel/rtas_flash.c for (f = flist; f; f = next) { f 609 arch/powerpc/kernel/rtas_flash.c for (i = 0; i < f->num_blocks; i++) { f 610 arch/powerpc/kernel/rtas_flash.c f->blocks[i].data = (char *)cpu_to_be64(__pa(f->blocks[i].data)); f 611 arch/powerpc/kernel/rtas_flash.c image_size += f->blocks[i].length; f 612 arch/powerpc/kernel/rtas_flash.c f->blocks[i].length = cpu_to_be64(f->blocks[i].length); f 614 arch/powerpc/kernel/rtas_flash.c next = f->next; f 616 arch/powerpc/kernel/rtas_flash.c if (f->next) f 617 arch/powerpc/kernel/rtas_flash.c f->next = (struct flash_block_list *)cpu_to_be64(__pa(f->next)); f 619 arch/powerpc/kernel/rtas_flash.c f->next = NULL; f 621 arch/powerpc/kernel/rtas_flash.c f->num_blocks = (FLASH_BLOCK_LIST_VERSION << 56) | ((f->num_blocks+1)*16); f 622 arch/powerpc/kernel/rtas_flash.c f->num_blocks = cpu_to_be64(f->num_blocks); f 723 arch/powerpc/kernel/rtas_flash.c const struct rtas_flash_file *f = &rtas_flash_files[i]; f 726 arch/powerpc/kernel/rtas_flash.c if (!proc_create(f->filename, 0600, NULL, &f->fops)) f 733 arch/powerpc/kernel/rtas_flash.c token = rtas_token(f->rtas_call_name); f 735 arch/powerpc/kernel/rtas_flash.c *f->status = FLASH_AUTH; f 737 arch/powerpc/kernel/rtas_flash.c *f->status = FLASH_NO_OP; f 745 arch/powerpc/kernel/rtas_flash.c const struct rtas_flash_file *f = &rtas_flash_files[i]; f 746 arch/powerpc/kernel/rtas_flash.c remove_proc_entry(f->filename, NULL); f 767 arch/powerpc/kernel/rtas_flash.c const struct rtas_flash_file *f = &rtas_flash_files[i]; f 768 arch/powerpc/kernel/rtas_flash.c remove_proc_entry(f->filename, NULL); f 103 arch/powerpc/kvm/book3s_64_vio.c struct fd f; f 105 arch/powerpc/kvm/book3s_64_vio.c f = fdget(tablefd); f 106 arch/powerpc/kvm/book3s_64_vio.c if (!f.file) f 110 arch/powerpc/kvm/book3s_64_vio.c if (stt == f.file->private_data) { f 116 arch/powerpc/kvm/book3s_64_vio.c fdput(f); f 668 arch/powerpc/kvm/book3s_paired_singles.c u32 f; f 669 arch/powerpc/kvm/book3s_paired_singles.c kvm_cvt_df(&VCPU_FPR(vcpu, i), &f); f 671 arch/powerpc/kvm/book3s_paired_singles.c i, f, VCPU_FPR(vcpu, i), i, vcpu->arch.qpr[i]); f 1248 arch/powerpc/kvm/book3s_paired_singles.c u32 f; f 1249 arch/powerpc/kvm/book3s_paired_singles.c kvm_cvt_df(&VCPU_FPR(vcpu, i), &f); f 1250 arch/powerpc/kvm/book3s_paired_singles.c dprintk(KERN_INFO "FPR[%d] = 0x%x\n", i, f); f 1902 arch/powerpc/kvm/powerpc.c struct fd f; f 1906 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); f 1907 arch/powerpc/kvm/powerpc.c if (!f.file) f 1911 arch/powerpc/kvm/powerpc.c dev = kvm_device_from_filp(f.file); f 1915 arch/powerpc/kvm/powerpc.c fdput(f); f 1921 arch/powerpc/kvm/powerpc.c struct fd f; f 1925 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); f 1926 arch/powerpc/kvm/powerpc.c if (!f.file) f 1930 arch/powerpc/kvm/powerpc.c dev = kvm_device_from_filp(f.file); f 1938 arch/powerpc/kvm/powerpc.c fdput(f); f 1944 arch/powerpc/kvm/powerpc.c struct fd f; f 1948 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); f 1949 arch/powerpc/kvm/powerpc.c if (!f.file) f 1957 arch/powerpc/kvm/powerpc.c dev = kvm_device_from_filp(f.file); f 1962 arch/powerpc/kvm/powerpc.c fdput(f); f 465 arch/powerpc/lib/sstep.c float f; f 486 arch/powerpc/lib/sstep.c conv_sp_to_dp(&u.f, &u.d[0]); f 515 arch/powerpc/lib/sstep.c float f; f 532 arch/powerpc/lib/sstep.c conv_dp_to_sp(&u.d[0], &u.f); f 17 arch/powerpc/math-emu/lfs.c float f; f 23 arch/powerpc/math-emu/lfs.c if (copy_from_user(&f, ea, sizeof(float))) f 26 arch/powerpc/math-emu/lfs.c FP_UNPACK_S(A, f); f 30 arch/powerpc/math-emu/lfs.c *(unsigned long *)&f); f 17 arch/powerpc/math-emu/stfs.c float f; f 37 arch/powerpc/math-emu/stfs.c _FP_PACK_RAW_1_P(S, &f, R); f 38 arch/powerpc/math-emu/stfs.c if (copy_to_user(ea, &f, sizeof(float))) f 118 arch/powerpc/platforms/powernv/vas-debug.c struct dentry *f, *d; f 135 arch/powerpc/platforms/powernv/vas-debug.c f = debugfs_create_file("info", 0444, d, window, &info_fops); f 136 arch/powerpc/platforms/powernv/vas-debug.c if (IS_ERR(f)) f 139 arch/powerpc/platforms/powernv/vas-debug.c f = debugfs_create_file("hvwc", 0444, d, window, &hvwc_fops); f 140 arch/powerpc/platforms/powernv/vas-debug.c if (IS_ERR(f)) f 55 arch/riscv/include/uapi/asm/ptrace.h __u32 f[32]; f 60 arch/riscv/include/uapi/asm/ptrace.h __u64 f[32]; f 65 arch/riscv/include/uapi/asm/ptrace.h __u64 f[64] __attribute__((aligned(16))); f 75 arch/riscv/include/uapi/asm/ptrace.h struct __riscv_f_ext_state f; f 39 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F0, task_struct, thread.fstate.f[0]); f 40 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F1, task_struct, thread.fstate.f[1]); f 41 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F2, task_struct, thread.fstate.f[2]); f 42 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F3, task_struct, thread.fstate.f[3]); f 43 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F4, task_struct, thread.fstate.f[4]); f 44 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F5, task_struct, thread.fstate.f[5]); f 45 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F6, task_struct, thread.fstate.f[6]); f 46 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F7, task_struct, thread.fstate.f[7]); f 47 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F8, task_struct, thread.fstate.f[8]); f 48 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F9, task_struct, thread.fstate.f[9]); f 49 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F10, task_struct, thread.fstate.f[10]); f 50 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F11, task_struct, thread.fstate.f[11]); f 51 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F12, task_struct, thread.fstate.f[12]); f 52 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F13, task_struct, thread.fstate.f[13]); f 53 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F14, task_struct, thread.fstate.f[14]); f 54 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F15, task_struct, thread.fstate.f[15]); f 55 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F16, task_struct, thread.fstate.f[16]); f 56 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F17, task_struct, thread.fstate.f[17]); f 57 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F18, task_struct, thread.fstate.f[18]); f 58 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F19, task_struct, thread.fstate.f[19]); f 59 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F20, task_struct, thread.fstate.f[20]); f 60 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F21, task_struct, thread.fstate.f[21]); f 61 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F22, task_struct, thread.fstate.f[22]); f 62 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F23, task_struct, thread.fstate.f[23]); f 63 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F24, task_struct, thread.fstate.f[24]); f 64 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F25, task_struct, thread.fstate.f[25]); f 65 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F26, task_struct, thread.fstate.f[26]); f 66 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F27, task_struct, thread.fstate.f[27]); f 67 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F28, task_struct, thread.fstate.f[28]); f 68 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F29, task_struct, thread.fstate.f[29]); f 69 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F30, task_struct, thread.fstate.f[30]); f 70 arch/riscv/kernel/asm-offsets.c OFFSET(TASK_THREAD_F31, task_struct, thread.fstate.f[31]); f 175 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[0]) f 176 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 179 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[1]) f 180 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 183 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[2]) f 184 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 187 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[3]) f 188 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 191 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[4]) f 192 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 195 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[5]) f 196 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 199 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[6]) f 200 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 203 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[7]) f 204 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 207 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[8]) f 208 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 211 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[9]) f 212 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 215 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[10]) f 216 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 219 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[11]) f 220 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 223 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[12]) f 224 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 227 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[13]) f 228 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 231 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[14]) f 232 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 235 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[15]) f 236 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 239 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[16]) f 240 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 243 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[17]) f 244 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 247 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[18]) f 248 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 251 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[19]) f 252 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 255 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[20]) f 256 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 259 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[21]) f 260 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 263 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[22]) f 264 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 267 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[23]) f 268 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 271 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[24]) f 272 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 275 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[25]) f 276 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 279 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[26]) f 280 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 283 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[27]) f 284 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 287 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[28]) f 288 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 291 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[29]) f 292 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 295 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[30]) f 296 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 299 arch/riscv/kernel/asm-offsets.c offsetof(struct task_struct, thread.fstate.f[31]) f 300 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 304 arch/riscv/kernel/asm-offsets.c - offsetof(struct task_struct, thread.fstate.f[0]) f 49 arch/riscv/kernel/cpu.c static void print_isa(struct seq_file *f, const char *orig_isa) f 68 arch/riscv/kernel/cpu.c seq_puts(f, "isa\t\t: "); f 69 arch/riscv/kernel/cpu.c seq_write(f, isa, 5); f 81 arch/riscv/kernel/cpu.c seq_write(f, isa, 1); f 86 arch/riscv/kernel/cpu.c seq_puts(f, "\n"); f 96 arch/riscv/kernel/cpu.c static void print_mmu(struct seq_file *f, const char *mmu_type) f 107 arch/riscv/kernel/cpu.c seq_printf(f, "mmu\t\t: %s\n", mmu_type+6); f 14 arch/s390/hypfs/hypfs_dbfs.c static struct hypfs_dbfs_data *hypfs_dbfs_data_alloc(struct hypfs_dbfs_file *f) f 21 arch/s390/hypfs/hypfs_dbfs.c data->dbfs_file = f; f 134 arch/s390/include/asm/cpu_mf.h unsigned int f:1; /* 0 - Block Full Indicator */ f 189 arch/s390/include/uapi/asm/ptrace.h float f; f 52 arch/s390/include/uapi/asm/runtime_instr.h __u32 f : 1; f 25 arch/s390/kernel/compat_linux.h __u32 f; f 1152 arch/s390/kernel/perf_cpum_sf.c te->f, sample->def, sample); f 1219 arch/s390/kernel/perf_cpum_sf.c if (!te->f) f 1268 arch/s390/kernel/perf_cpum_sf.c if (!te->f) { f 1286 arch/s390/kernel/perf_cpum_sf.c (te->f) ? trailer_timestamp(te) : 0ULL); f 90 arch/s390/kvm/gaccess.c unsigned long f : 1; /* Fetch-Protection Bit */ f 132 arch/s390/kvm/gaccess.c unsigned long f : 1; /* Fetch-Protection Bit */ f 57 arch/sh/math-emu/math.c #define PACK_S(r,f) FP_PACK_SP(&r,f) f 58 arch/sh/math-emu/math.c #define UNPACK_S(f,r) FP_UNPACK_SP(f,&r) f 59 arch/sh/math-emu/math.c #define PACK_D(r,f) \ f 60 arch/sh/math-emu/math.c {u32 t[2]; FP_PACK_DP(t,f); ((u32*)&r)[0]=t[1]; ((u32*)&r)[1]=t[0];} f 61 arch/sh/math-emu/math.c #define UNPACK_D(f,r) \ f 62 arch/sh/math-emu/math.c {u32 t[2]; t[0]=((u32*)&r)[1]; t[1]=((u32*)&r)[0]; FP_UNPACK_DP(f,t);} f 1907 arch/sparc/include/asm/hypervisor.h #define HV_PCI_DEVICE_BUILD(b,d,f) \ f 1910 arch/sparc/include/asm/hypervisor.h (((f) & 0x07) << 8)) f 253 arch/sparc/include/asm/processor_64.h int do_mathemu(struct pt_regs *regs, struct fpustate *f, bool illegal_insn_trap); f 15 arch/sparc/include/asm/string.h #define memcpy(t, f, n) __builtin_memcpy(t, f, n) f 471 arch/sparc/include/asm/vio.h #define viodbg(TYPE, f, a...) \ f 473 arch/sparc/include/asm/vio.h printk(KERN_INFO "vio: ID[%lu] " f, \ f 79 arch/sparc/kernel/apc.c static int apc_open(struct inode *inode, struct file *f) f 84 arch/sparc/kernel/apc.c static int apc_release(struct inode *inode, struct file *f) f 89 arch/sparc/kernel/apc.c static long apc_ioctl(struct file *f, unsigned int cmd, unsigned long __arg) f 176 arch/sparc/kernel/ldc.c #define ldcdbg(TYPE, f, a...) \ f 178 arch/sparc/kernel/ldc.c printk(KERN_INFO PFX "ID[%lu] " f, lp->id, ## a); \ f 389 arch/sparc/kernel/leon_smp.c register smpfunc_t f asm("i0") = func; f 399 arch/sparc/kernel/leon_smp.c "r"(f), "r"(a1), "r"(a2), "r"(a3), f 299 arch/sparc/kernel/sun4d_smp.c register smpfunc_t f asm("i0") = func; f 310 arch/sparc/kernel/sun4d_smp.c "r"(f), "r"(a1), "r"(a2), "r"(a3), "r"(a4), "r"(a5), f 2365 arch/sparc/kernel/traps_64.c struct fpustate *f = FPUSTATE; f 2375 arch/sparc/kernel/traps_64.c ret = do_mathemu(regs, f, false); f 2604 arch/sparc/kernel/traps_64.c struct fpustate *f = FPUSTATE; f 2611 arch/sparc/kernel/traps_64.c if (do_mathemu(regs, f, true)) f 441 arch/sparc/kernel/unaligned_64.c struct fpustate *f = FPUSTATE; f 461 arch/sparc/kernel/unaligned_64.c first = *(u64 *)&f->regs[freg]; f 462 arch/sparc/kernel/unaligned_64.c second = *(u64 *)&f->regs[freg+2]; f 559 arch/sparc/kernel/unaligned_64.c memset(f->regs, 0, 32*sizeof(u32)); f 561 arch/sparc/kernel/unaligned_64.c memset(f->regs+32, 0, 32*sizeof(u32)); f 563 arch/sparc/kernel/unaligned_64.c memcpy(f->regs + freg, data, size * 4); f 605 arch/sparc/kernel/unaligned_64.c struct fpustate *f = FPUSTATE; f 641 arch/sparc/kernel/unaligned_64.c memset(f->regs, 0, 32*sizeof(u32)); f 643 arch/sparc/kernel/unaligned_64.c memset(f->regs+32, 0, 32*sizeof(u32)); f 645 arch/sparc/kernel/unaligned_64.c *(u64 *)(f->regs + freg) = value; f 669 arch/sparc/kernel/unaligned_64.c struct fpustate *f = FPUSTATE; f 686 arch/sparc/kernel/unaligned_64.c value = *(u64 *)&f->regs[freg]; f 220 arch/sparc/kernel/visemul.c static inline unsigned long fpd_regval(struct fpustate *f, f 226 arch/sparc/kernel/visemul.c return *(unsigned long *) &f->regs[insn_regnum]; f 229 arch/sparc/kernel/visemul.c static inline unsigned long *fpd_regaddr(struct fpustate *f, f 235 arch/sparc/kernel/visemul.c return (unsigned long *) &f->regs[insn_regnum]; f 238 arch/sparc/kernel/visemul.c static inline unsigned int fps_regval(struct fpustate *f, f 241 arch/sparc/kernel/visemul.c return f->regs[insn_regnum]; f 244 arch/sparc/kernel/visemul.c static inline unsigned int *fps_regaddr(struct fpustate *f, f 247 arch/sparc/kernel/visemul.c return &f->regs[insn_regnum]; f 424 arch/sparc/kernel/visemul.c struct fpustate *f = FPUSTATE; f 430 arch/sparc/kernel/visemul.c rs1 = fpd_regval(f, RS1(insn)); f 431 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 445 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 450 arch/sparc/kernel/visemul.c struct fpustate *f = FPUSTATE; f 454 arch/sparc/kernel/visemul.c rs1 = fpd_regval(f, RS1(insn)); f 455 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 456 arch/sparc/kernel/visemul.c rd = fpd_regaddr(f, RD(insn)); f 479 arch/sparc/kernel/visemul.c struct fpustate *f = FPUSTATE; f 488 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 503 arch/sparc/kernel/visemul.c *fps_regaddr(f, RD(insn)) = rd_val; f 510 arch/sparc/kernel/visemul.c rs1 = fpd_regval(f, RS1(insn)); f 511 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 526 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 533 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 549 arch/sparc/kernel/visemul.c *fps_regaddr(f, RD(insn)) = rd_val; f 556 arch/sparc/kernel/visemul.c rs2 = fps_regval(f, RS2(insn)); f 567 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 572 arch/sparc/kernel/visemul.c rs1 = fps_regval(f, RS1(insn)); f 573 arch/sparc/kernel/visemul.c rs2 = fps_regval(f, RS2(insn)); f 583 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 591 arch/sparc/kernel/visemul.c struct fpustate *f = FPUSTATE; f 598 arch/sparc/kernel/visemul.c rs1 = fps_regval(f, RS1(insn)); f 599 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 614 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 623 arch/sparc/kernel/visemul.c rs1 = fps_regval(f, RS1(insn)); f 624 arch/sparc/kernel/visemul.c rs2 = fps_regval(f, RS2(insn)); f 639 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 647 arch/sparc/kernel/visemul.c rs1 = fpd_regval(f, RS1(insn)); f 648 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 669 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 677 arch/sparc/kernel/visemul.c rs1 = fps_regval(f, RS1(insn)); f 678 arch/sparc/kernel/visemul.c rs2 = fps_regval(f, RS2(insn)); f 699 arch/sparc/kernel/visemul.c *fpd_regaddr(f, RD(insn)) = rd_val; f 707 arch/sparc/kernel/visemul.c struct fpustate *f = FPUSTATE; f 710 arch/sparc/kernel/visemul.c rs1 = fpd_regval(f, RS1(insn)); f 711 arch/sparc/kernel/visemul.c rs2 = fpd_regval(f, RS2(insn)); f 167 arch/sparc/math-emu/math_64.c int do_mathemu(struct pt_regs *regs, struct fpustate *f, bool illegal_insn_trap) f 380 arch/sparc/math-emu/math_64.c case 1: rs1 = (argp)&f->regs[freg]; f 398 arch/sparc/math-emu/math_64.c case 1: rs2 = (argp)&f->regs[freg]; f 416 arch/sparc/math-emu/math_64.c case 1: rd = (argp)&f->regs[freg]; f 424 arch/sparc/math-emu/math_64.c memset(f->regs, 0, 32*sizeof(u32)); f 426 arch/sparc/math-emu/math_64.c memset(f->regs+32, 0, 32*sizeof(u32)); f 884 arch/sparc/mm/init_64.c #define numadbg(f, a...) \ f 886 arch/sparc/mm/init_64.c printk(KERN_INFO f, ## a); \ f 178 arch/um/os-Linux/file.c int fd, err, f = 0; f 181 arch/um/os-Linux/file.c f = O_RDWR; f 183 arch/um/os-Linux/file.c f = O_RDONLY; f 185 arch/um/os-Linux/file.c f = O_WRONLY; f 186 arch/um/os-Linux/file.c else f = 0; f 189 arch/um/os-Linux/file.c f |= O_SYNC; f 191 arch/um/os-Linux/file.c f |= O_CREAT; f 193 arch/um/os-Linux/file.c f |= O_TRUNC; f 195 arch/um/os-Linux/file.c f |= O_EXCL; f 197 arch/um/os-Linux/file.c f |= O_APPEND; f 199 arch/um/os-Linux/file.c fd = open64(file, f, mode); f 23 arch/unicore32/include/asm/stacktrace.h #define unwind_frame(f) (-EINVAL) f 23 arch/x86/boot/compressed/mkpiggy.c FILE *f = NULL; f 33 arch/x86/boot/compressed/mkpiggy.c f = fopen(argv[1], "r"); f 34 arch/x86/boot/compressed/mkpiggy.c if (!f) { f 40 arch/x86/boot/compressed/mkpiggy.c if (fseek(f, -4L, SEEK_END)) { f 44 arch/x86/boot/compressed/mkpiggy.c if (fread(&olen, sizeof(olen), 1, f) != 1) { f 49 arch/x86/boot/compressed/mkpiggy.c ilen = ftell(f); f 65 arch/x86/boot/compressed/mkpiggy.c if (f) f 66 arch/x86/boot/compressed/mkpiggy.c fclose(f); f 280 arch/x86/events/perf_event.h #define __EVENT_CONSTRAINT_RANGE(c, e, n, m, w, o, f) { \ f 287 arch/x86/events/perf_event.h .flags = f, \ f 290 arch/x86/events/perf_event.h #define __EVENT_CONSTRAINT(c, n, m, w, o, f) \ f 291 arch/x86/events/perf_event.h __EVENT_CONSTRAINT_RANGE(c, c, n, m, w, o, f) f 26 arch/x86/include/asm/atomic64_32.h #define __alternative_atomic64(f, g, out, in...) \ f 32 arch/x86/include/asm/atomic64_32.h #define __alternative_atomic64(f, g, out, in...) \ f 33 arch/x86/include/asm/atomic64_32.h alternative_call(atomic64_##f##_386, atomic64_##g##_cx8, \ f 45 arch/x86/include/asm/atomic64_32.h #define alternative_atomic64(f, out, in...) \ f 46 arch/x86/include/asm/atomic64_32.h __alternative_atomic64(f, f, ASM_OUTPUT2(out), ## in) f 57 arch/x86/include/asm/efi.h #define arch_efi_call_virt(p, f, args...) \ f 59 arch/x86/include/asm/efi.h ((efi_##f##_t __attribute__((regparm(0)))*) p->f)(args); \ f 70 arch/x86/include/asm/efi.h #define efi_call_phys(f, args...) efi_call((f), args) f 92 arch/x86/include/asm/efi.h #define arch_efi_call_virt(p, f, args...) \ f 93 arch/x86/include/asm/efi.h efi_call((void *)p->f, args) \ f 229 arch/x86/include/asm/efi.h #define efi_call_proto(protocol, f, instance, ...) \ f 230 arch/x86/include/asm/efi.h __efi_early()->call(efi_table_attr(protocol, f, instance), \ f 233 arch/x86/include/asm/efi.h #define efi_call_early(f, ...) \ f 234 arch/x86/include/asm/efi.h __efi_early()->call(efi_table_attr(efi_boot_services, f, \ f 237 arch/x86/include/asm/efi.h #define __efi_call_early(f, ...) \ f 238 arch/x86/include/asm/efi.h __efi_early()->call((unsigned long)f, __VA_ARGS__); f 240 arch/x86/include/asm/efi.h #define efi_call_runtime(f, ...) \ f 241 arch/x86/include/asm/efi.h __efi_early()->call(efi_table_attr(efi_runtime_services, f, \ f 754 arch/x86/include/asm/paravirt.h static inline notrace void arch_local_irq_restore(unsigned long f) f 756 arch/x86/include/asm/paravirt.h PVOP_VCALLEE1(irq.restore_fl, f); f 771 arch/x86/include/asm/paravirt.h unsigned long f; f 773 arch/x86/include/asm/paravirt.h f = arch_local_save_flags(); f 775 arch/x86/include/asm/paravirt.h return f; f 171 arch/x86/include/asm/string_32.h #define memcpy(t, f, n) \ f 173 arch/x86/include/asm/string_32.h ? __constant_memcpy3d((t), (f), (n)) \ f 174 arch/x86/include/asm/string_32.h : __memcpy3d((t), (f), (n))) f 182 arch/x86/include/asm/string_32.h #define memcpy(t, f, n) __builtin_memcpy(t, f, n) f 893 arch/x86/kernel/apic/x2apic_uv_x.c int f, l; f 896 arch/x86/kernel/apic/x2apic_uv_x.c f = l = i; f 899 arch/x86/kernel/apic/x2apic_uv_x.c f = fi; f 902 arch/x86/kernel/apic/x2apic_uv_x.c addr1 = (base << shift) + f * (1ULL << m_io); f 1105 arch/x86/kernel/cpu/amd.c #define AMD_MODEL_RANGE(f, m_start, s_start, m_end, s_end) \ f 1106 arch/x86/kernel/cpu/amd.c ((f << 24) | (m_start << 16) | (s_start << 12) | (m_end << 4) | (s_end)) f 252 arch/x86/kernel/cpu/mce/dev-mcelog.c static long mce_chrdev_ioctl(struct file *f, unsigned int cmd, f 346 arch/x86/kernel/cpu/mce/severity.c static void *s_start(struct seq_file *f, loff_t *pos) f 353 arch/x86/kernel/cpu/mce/severity.c static void *s_next(struct seq_file *f, void *data, loff_t *pos) f 360 arch/x86/kernel/cpu/mce/severity.c static void s_stop(struct seq_file *f, void *data) f 364 arch/x86/kernel/cpu/mce/severity.c static int s_show(struct seq_file *f, void *data) f 367 arch/x86/kernel/cpu/mce/severity.c seq_printf(f, "%d\t%s\n", ser->covered, ser->msg); f 17 arch/x86/kernel/cpu/mtrr/if.c #define FILE_FCOUNT(f) (((struct seq_file *)((f)->private_data))->private) f 754 arch/x86/kernel/cpu/resctrl/core.c #define RDT_OPT(idx, n, f) \ f 757 arch/x86/kernel/cpu/resctrl/core.c .flag = f \ f 681 arch/x86/kernel/early-quirks.c void (*f)(int num, int slot, int func); f 755 arch/x86/kernel/early-quirks.c for (i = 0; early_qrk[i].f != NULL; i++) { f 764 arch/x86/kernel/early-quirks.c early_qrk[i].f(num, slot, func); f 180 arch/x86/kernel/fpu/regset.c #define FPREG_ADDR(f, n) ((void *)&(f)->st_space + (n) * 16) f 30 arch/x86/kernel/sysfb_simplefb.c const struct simplefb_format *f; f 39 arch/x86/kernel/sysfb_simplefb.c f = &formats[i]; f 40 arch/x86/kernel/sysfb_simplefb.c if (si->lfb_depth == f->bits_per_pixel && f 41 arch/x86/kernel/sysfb_simplefb.c si->red_size == f->red.length && f 42 arch/x86/kernel/sysfb_simplefb.c si->red_pos == f->red.offset && f 43 arch/x86/kernel/sysfb_simplefb.c si->green_size == f->green.length && f 44 arch/x86/kernel/sysfb_simplefb.c si->green_pos == f->green.offset && f 45 arch/x86/kernel/sysfb_simplefb.c si->blue_size == f->blue.length && f 46 arch/x86/kernel/sysfb_simplefb.c si->blue_pos == f->blue.offset && f 47 arch/x86/kernel/sysfb_simplefb.c si->rsvd_size == f->transp.length && f 48 arch/x86/kernel/sysfb_simplefb.c si->rsvd_pos == f->transp.offset) { f 49 arch/x86/kernel/sysfb_simplefb.c mode->format = f->name; f 6399 arch/x86/kvm/svm.c struct fd f; f 6402 arch/x86/kvm/svm.c f = fdget(fd); f 6403 arch/x86/kvm/svm.c if (!f.file) f 6406 arch/x86/kvm/svm.c ret = sev_issue_cmd_external_user(f.file, id, data, error); f 6408 arch/x86/kvm/svm.c fdput(f); f 488 arch/x86/kvm/vmx/nested.c int f = sizeof(unsigned long); f 496 arch/x86/kvm/vmx/nested.c return !!test_bit(msr, msr_bitmap + 0x800 / f); f 499 arch/x86/kvm/vmx/nested.c return !!test_bit(msr, msr_bitmap + 0xc00 / f); f 513 arch/x86/kvm/vmx/nested.c int f = sizeof(unsigned long); f 522 arch/x86/kvm/vmx/nested.c !test_bit(msr, msr_bitmap_l1 + 0x000 / f)) f 524 arch/x86/kvm/vmx/nested.c __clear_bit(msr, msr_bitmap_nested + 0x000 / f); f 527 arch/x86/kvm/vmx/nested.c !test_bit(msr, msr_bitmap_l1 + 0x800 / f)) f 529 arch/x86/kvm/vmx/nested.c __clear_bit(msr, msr_bitmap_nested + 0x800 / f); f 534 arch/x86/kvm/vmx/nested.c !test_bit(msr, msr_bitmap_l1 + 0x400 / f)) f 536 arch/x86/kvm/vmx/nested.c __clear_bit(msr, msr_bitmap_nested + 0x400 / f); f 539 arch/x86/kvm/vmx/nested.c !test_bit(msr, msr_bitmap_l1 + 0xc00 / f)) f 541 arch/x86/kvm/vmx/nested.c __clear_bit(msr, msr_bitmap_nested + 0xc00 / f); f 791 arch/x86/kvm/vmx/vmx.c int f = sizeof(unsigned long); f 799 arch/x86/kvm/vmx/vmx.c return !!test_bit(msr, msr_bitmap + 0x800 / f); f 802 arch/x86/kvm/vmx/vmx.c return !!test_bit(msr, msr_bitmap + 0xc00 / f); f 3575 arch/x86/kvm/vmx/vmx.c int f = sizeof(unsigned long); f 3591 arch/x86/kvm/vmx/vmx.c __clear_bit(msr, msr_bitmap + 0x000 / f); f 3595 arch/x86/kvm/vmx/vmx.c __clear_bit(msr, msr_bitmap + 0x800 / f); f 3601 arch/x86/kvm/vmx/vmx.c __clear_bit(msr, msr_bitmap + 0x400 / f); f 3605 arch/x86/kvm/vmx/vmx.c __clear_bit(msr, msr_bitmap + 0xc00 / f); f 3613 arch/x86/kvm/vmx/vmx.c int f = sizeof(unsigned long); f 3629 arch/x86/kvm/vmx/vmx.c __set_bit(msr, msr_bitmap + 0x000 / f); f 3633 arch/x86/kvm/vmx/vmx.c __set_bit(msr, msr_bitmap + 0x800 / f); f 3639 arch/x86/kvm/vmx/vmx.c __set_bit(msr, msr_bitmap + 0x400 / f); f 3643 arch/x86/kvm/vmx/vmx.c __set_bit(msr, msr_bitmap + 0xc00 / f); f 25 arch/x86/lib/kaslr.c #define has_cpuflag(f) boot_cpu_has(f) f 172 arch/x86/math-emu/reg_compare.c int f, c; f 178 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 182 arch/x86/math-emu/reg_compare.c f = SW_C0; f 185 arch/x86/math-emu/reg_compare.c f = SW_C3; f 188 arch/x86/math-emu/reg_compare.c f = 0; f 191 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 197 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 200 arch/x86/math-emu/reg_compare.c setcc(f); f 209 arch/x86/math-emu/reg_compare.c int f, c; f 228 arch/x86/math-emu/reg_compare.c f = SW_C0; f 231 arch/x86/math-emu/reg_compare.c f = SW_C3; f 234 arch/x86/math-emu/reg_compare.c f = 0; f 237 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 243 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 246 arch/x86/math-emu/reg_compare.c setcc(f); f 255 arch/x86/math-emu/reg_compare.c int f, c; f 276 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_CF; f 279 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_ZF; f 282 arch/x86/math-emu/reg_compare.c f = 0; f 285 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_ZF | X86_EFLAGS_PF | X86_EFLAGS_CF; f 291 arch/x86/math-emu/reg_compare.c f = 0; f 294 arch/x86/math-emu/reg_compare.c FPU_EFLAGS = (FPU_EFLAGS & ~(X86_EFLAGS_ZF | X86_EFLAGS_PF | X86_EFLAGS_CF)) | f; f 303 arch/x86/math-emu/reg_compare.c int f = 0, c; f 326 arch/x86/math-emu/reg_compare.c f = SW_C0; f 329 arch/x86/math-emu/reg_compare.c f = SW_C3; f 332 arch/x86/math-emu/reg_compare.c f = 0; f 335 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 340 arch/x86/math-emu/reg_compare.c f = SW_C3 | SW_C2 | SW_C0; f 344 arch/x86/math-emu/reg_compare.c setcc(f); f 353 arch/x86/math-emu/reg_compare.c int f = 0, c; f 378 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_CF; f 381 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_ZF; f 384 arch/x86/math-emu/reg_compare.c f = 0; f 387 arch/x86/math-emu/reg_compare.c f = X86_EFLAGS_ZF | X86_EFLAGS_PF | X86_EFLAGS_CF; f 392 arch/x86/math-emu/reg_compare.c f = 0; f 396 arch/x86/math-emu/reg_compare.c FPU_EFLAGS = (FPU_EFLAGS & ~(X86_EFLAGS_ZF | X86_EFLAGS_PF | X86_EFLAGS_CF)) | f; f 112 arch/x86/mm/kmmio.c struct kmmio_fault_page *f; f 120 arch/x86/mm/kmmio.c list_for_each_entry_rcu(f, head, list) { f 121 arch/x86/mm/kmmio.c if (f->addr == addr) f 122 arch/x86/mm/kmmio.c return f; f 154 arch/x86/mm/kmmio.c static int clear_page_presence(struct kmmio_fault_page *f, bool clear) f 157 arch/x86/mm/kmmio.c pte_t *pte = lookup_address(f->addr, &level); f 160 arch/x86/mm/kmmio.c pr_err("no pte for addr 0x%08lx\n", f->addr); f 166 arch/x86/mm/kmmio.c clear_pmd_presence((pmd_t *)pte, clear, &f->old_presence); f 169 arch/x86/mm/kmmio.c clear_pte_presence(pte, clear, &f->old_presence); f 176 arch/x86/mm/kmmio.c __flush_tlb_one_kernel(f->addr); f 191 arch/x86/mm/kmmio.c static int arm_kmmio_fault_page(struct kmmio_fault_page *f) f 194 arch/x86/mm/kmmio.c WARN_ONCE(f->armed, KERN_ERR pr_fmt("kmmio page already armed.\n")); f 195 arch/x86/mm/kmmio.c if (f->armed) { f 197 arch/x86/mm/kmmio.c f->addr, f->count, !!f->old_presence); f 199 arch/x86/mm/kmmio.c ret = clear_page_presence(f, true); f 201 arch/x86/mm/kmmio.c f->addr); f 202 arch/x86/mm/kmmio.c f->armed = true; f 207 arch/x86/mm/kmmio.c static void disarm_kmmio_fault_page(struct kmmio_fault_page *f) f 209 arch/x86/mm/kmmio.c int ret = clear_page_presence(f, false); f 211 arch/x86/mm/kmmio.c KERN_ERR "kmmio disarming at 0x%08lx failed.\n", f->addr); f 212 arch/x86/mm/kmmio.c f->armed = false; f 382 arch/x86/mm/kmmio.c struct kmmio_fault_page *f; f 384 arch/x86/mm/kmmio.c f = get_kmmio_fault_page(addr); f 385 arch/x86/mm/kmmio.c if (f) { f 386 arch/x86/mm/kmmio.c if (!f->count) f 387 arch/x86/mm/kmmio.c arm_kmmio_fault_page(f); f 388 arch/x86/mm/kmmio.c f->count++; f 392 arch/x86/mm/kmmio.c f = kzalloc(sizeof(*f), GFP_ATOMIC); f 393 arch/x86/mm/kmmio.c if (!f) f 396 arch/x86/mm/kmmio.c f->count = 1; f 397 arch/x86/mm/kmmio.c f->addr = addr; f 399 arch/x86/mm/kmmio.c if (arm_kmmio_fault_page(f)) { f 400 arch/x86/mm/kmmio.c kfree(f); f 404 arch/x86/mm/kmmio.c list_add_rcu(&f->list, kmmio_page_list(f->addr)); f 413 arch/x86/mm/kmmio.c struct kmmio_fault_page *f; f 415 arch/x86/mm/kmmio.c f = get_kmmio_fault_page(addr); f 416 arch/x86/mm/kmmio.c if (!f) f 419 arch/x86/mm/kmmio.c f->count--; f 420 arch/x86/mm/kmmio.c BUG_ON(f->count < 0); f 421 arch/x86/mm/kmmio.c if (!f->count) { f 422 arch/x86/mm/kmmio.c disarm_kmmio_fault_page(f); f 423 arch/x86/mm/kmmio.c if (!f->scheduled_for_release) { f 424 arch/x86/mm/kmmio.c f->release_next = *release_list; f 425 arch/x86/mm/kmmio.c *release_list = f; f 426 arch/x86/mm/kmmio.c f->scheduled_for_release = true; f 484 arch/x86/mm/kmmio.c struct kmmio_fault_page *f = dr->release_list; f 485 arch/x86/mm/kmmio.c while (f) { f 486 arch/x86/mm/kmmio.c struct kmmio_fault_page *next = f->release_next; f 487 arch/x86/mm/kmmio.c BUG_ON(f->count); f 488 arch/x86/mm/kmmio.c kfree(f); f 489 arch/x86/mm/kmmio.c f = next; f 498 arch/x86/mm/kmmio.c struct kmmio_fault_page *f = dr->release_list; f 503 arch/x86/mm/kmmio.c while (f) { f 504 arch/x86/mm/kmmio.c if (!f->count) { f 505 arch/x86/mm/kmmio.c list_del_rcu(&f->list); f 506 arch/x86/mm/kmmio.c prevp = &f->release_next; f 508 arch/x86/mm/kmmio.c *prevp = f->release_next; f 509 arch/x86/mm/kmmio.c f->release_next = NULL; f 510 arch/x86/mm/kmmio.c f->scheduled_for_release = false; f 512 arch/x86/mm/kmmio.c f = *prevp; f 521 arch/x86/mm/tlb.c static void flush_tlb_func_common(const struct flush_tlb_info *f, f 573 arch/x86/mm/tlb.c WARN_ON_ONCE(f->new_tlb_gen > mm_tlb_gen); f 612 arch/x86/mm/tlb.c if (f->end != TLB_FLUSH_ALL && f 613 arch/x86/mm/tlb.c f->new_tlb_gen == local_tlb_gen + 1 && f 614 arch/x86/mm/tlb.c f->new_tlb_gen == mm_tlb_gen) { f 616 arch/x86/mm/tlb.c unsigned long nr_invalidate = (f->end - f->start) >> f->stride_shift; f 617 arch/x86/mm/tlb.c unsigned long addr = f->start; f 619 arch/x86/mm/tlb.c while (addr < f->end) { f 621 arch/x86/mm/tlb.c addr += 1UL << f->stride_shift; f 640 arch/x86/mm/tlb.c const struct flush_tlb_info *f = info; f 642 arch/x86/mm/tlb.c flush_tlb_func_common(f, true, reason); f 647 arch/x86/mm/tlb.c const struct flush_tlb_info *f = info; f 651 arch/x86/mm/tlb.c if (f->mm && f->mm != this_cpu_read(cpu_tlbstate.loaded_mm)) f 655 arch/x86/mm/tlb.c flush_tlb_func_common(f, false, TLB_REMOTE_SHOOTDOWN); f 819 arch/x86/mm/tlb.c struct flush_tlb_info *f = info; f 823 arch/x86/mm/tlb.c for (addr = f->start; addr < f->end; addr += PAGE_SIZE) f 658 arch/x86/platform/efi/efi_64.c #define efi_thunk(f, ...) \ f 665 arch/x86/platform/efi/efi_64.c __func = runtime_service32(f); \ f 987 arch/x86/tools/relocs.c static int write32(uint32_t v, FILE *f) f 992 arch/x86/tools/relocs.c return fwrite(buf, 1, 4, f) == 4 ? 0 : -1; f 995 arch/x86/tools/relocs.c static int write32_as_text(uint32_t v, FILE *f) f 997 arch/x86/tools/relocs.c return fprintf(f, "\t.long 0x%08"PRIx32"\n", v) > 0 ? 0 : -1; f 45 arch/x86/um/signal.c #define FPREG_ADDR(f, n) ((char *)&(f)->st_space + (n) * 16) f 105 arch/x86/um/signal.c unsigned long *f = (unsigned long *)from; f 107 arch/x86/um/signal.c if (__put_user(*f, t) || f 108 arch/x86/um/signal.c __put_user(*(f + 1), t + 1) || f 139 arch/x86/um/signal.c unsigned long __user *f = (unsigned long __user *)from; f 141 arch/x86/um/signal.c if (__get_user(*t, f) || f 142 arch/x86/um/signal.c __get_user(*(t + 1), f + 1) || f 22 arch/xtensa/kernel/platform.c #define _F(r,f,a,b) \ f 23 arch/xtensa/kernel/platform.c r __platform_##f a b; \ f 24 arch/xtensa/kernel/platform.c r platform_##f a __attribute__((weak, alias("__platform_"#f))) f 578 arch/xtensa/kernel/setup.c c_show(struct seq_file *f, void *slot) f 581 arch/xtensa/kernel/setup.c seq_printf(f, "CPU count\t: %u\n" f 600 arch/xtensa/kernel/setup.c seq_puts(f, "flags\t\t: " f 655 arch/xtensa/kernel/setup.c seq_printf(f,"physical aregs\t: %d\n" f 666 arch/xtensa/kernel/setup.c seq_printf(f,"num ints\t: %d\n" f 678 arch/xtensa/kernel/setup.c seq_printf(f,"icache line size: %d\n" f 711 arch/xtensa/kernel/setup.c c_start(struct seq_file *f, loff_t *pos) f 717 arch/xtensa/kernel/setup.c c_next(struct seq_file *f, void *v, loff_t *pos) f 723 arch/xtensa/kernel/setup.c c_stop(struct seq_file *f, void *v) f 35 arch/xtensa/platforms/xt2000/setup.c static void led_print (int f, char *s) f 37 arch/xtensa/platforms/xt2000/setup.c unsigned long* led_addr = (unsigned long*) (XT2000_LED_ADDR + 0xE0) + f; f 39 arch/xtensa/platforms/xt2000/setup.c for (i = f; i < 8; i++) f 33 block/partitions/ldm.c #define ldm_debug(f, a...) _ldm_printk (KERN_DEBUG, __func__, f, ##a) f 36 block/partitions/ldm.c #define ldm_crit(f, a...) _ldm_printk (KERN_CRIT, __func__, f, ##a) f 37 block/partitions/ldm.c #define ldm_error(f, a...) _ldm_printk (KERN_ERR, __func__, f, ##a) f 38 block/partitions/ldm.c #define ldm_info(f, a...) _ldm_printk (KERN_INFO, __func__, f, ##a) f 1229 block/partitions/ldm.c struct frag *f; f 1253 block/partitions/ldm.c f = list_entry (item, struct frag, list); f 1254 block/partitions/ldm.c if (f->group == group) f 1258 block/partitions/ldm.c f = kmalloc (sizeof (*f) + size*num, GFP_KERNEL); f 1259 block/partitions/ldm.c if (!f) { f 1264 block/partitions/ldm.c f->group = group; f 1265 block/partitions/ldm.c f->num = num; f 1266 block/partitions/ldm.c f->rec = rec; f 1267 block/partitions/ldm.c f->map = 0xFF << num; f 1269 block/partitions/ldm.c list_add_tail (&f->list, frags); f 1271 block/partitions/ldm.c if (rec >= f->num) { f 1272 block/partitions/ldm.c ldm_error("REC value (%d) exceeds NUM value (%d)", rec, f->num); f 1275 block/partitions/ldm.c if (f->map & (1 << rec)) { f 1277 block/partitions/ldm.c f->map &= 0x7F; /* Mark the group as broken */ f 1280 block/partitions/ldm.c f->map |= (1 << rec); f 1282 block/partitions/ldm.c memcpy(f->data, data, VBLK_SIZE_HEAD); f 1285 block/partitions/ldm.c memcpy(f->data + VBLK_SIZE_HEAD + rec * size, data, size); f 1320 block/partitions/ldm.c struct frag *f; f 1326 block/partitions/ldm.c f = list_entry (item, struct frag, list); f 1328 block/partitions/ldm.c if (f->map != 0xFF) { f 1330 block/partitions/ldm.c f->group, f->map); f 1334 block/partitions/ldm.c if (!ldm_ldmdb_add (f->data, f->num*ldb->vm.vblk_size, ldb)) f 40 crypto/md5.c #define MD5STEP(f, w, x, y, z, in, s) \ f 41 crypto/md5.c (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x) f 268 crypto/poly1305_generic.c u64 f = 0; f 283 crypto/poly1305_generic.c f = (f >> 32) + le32_to_cpu(digest[0]) + dctx->s[0]; f 284 crypto/poly1305_generic.c put_unaligned_le32(f, dst + 0); f 285 crypto/poly1305_generic.c f = (f >> 32) + le32_to_cpu(digest[1]) + dctx->s[1]; f 286 crypto/poly1305_generic.c put_unaligned_le32(f, dst + 4); f 287 crypto/poly1305_generic.c f = (f >> 32) + le32_to_cpu(digest[2]) + dctx->s[2]; f 288 crypto/poly1305_generic.c put_unaligned_le32(f, dst + 8); f 289 crypto/poly1305_generic.c f = (f >> 32) + le32_to_cpu(digest[3]) + dctx->s[3]; f 290 crypto/poly1305_generic.c put_unaligned_le32(f, dst + 12); f 40 crypto/rmd128.c #define ROUND(a, b, c, d, f, k, x, s) { \ f 41 crypto/rmd128.c (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ f 43 crypto/rmd160.c #define ROUND(a, b, c, d, e, f, k, x, s) { \ f 44 crypto/rmd160.c (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ f 40 crypto/rmd256.c #define ROUND(a, b, c, d, f, k, x, s) { \ f 41 crypto/rmd256.c (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ f 43 crypto/rmd320.c #define ROUND(a, b, c, d, e, f, k, x, s) { \ f 44 crypto/rmd320.c (a) += f((b), (c), (d)) + le32_to_cpup(&(x)) + (k); \ f 101 crypto/sha512_generic.c u64 a, b, c, d, e, f, g, h, t1, t2; f 108 crypto/sha512_generic.c e=state[4]; f=state[5]; g=state[6]; h=state[7]; f 126 crypto/sha512_generic.c t1 = h + e1(e) + Ch(e,f,g) + sha512_K[i ] + W[(i & 15)]; f 128 crypto/sha512_generic.c t1 = g + e1(d) + Ch(d,e,f) + sha512_K[i+1] + W[(i & 15) + 1]; f 130 crypto/sha512_generic.c t1 = f + e1(c) + Ch(c,d,e) + sha512_K[i+2] + W[(i & 15) + 2]; f 131 crypto/sha512_generic.c t2 = e0(g) + Maj(g,h,a); b+=t1; f=t1+t2; f 133 crypto/sha512_generic.c t2 = e0(f) + Maj(f,g,h); a+=t1; e=t1+t2; f 135 crypto/sha512_generic.c t2 = e0(e) + Maj(e,f,g); h+=t1; d=t1+t2; f 137 crypto/sha512_generic.c t2 = e0(d) + Maj(d,e,f); g+=t1; c=t1+t2; f 139 crypto/sha512_generic.c t2 = e0(c) + Maj(c,d,e); f+=t1; b=t1+t2; f 140 crypto/sha512_generic.c t1 = a + e1(f) + Ch(f,g,h) + sha512_K[i+7] + W[(i & 15) + 7]; f 145 crypto/sha512_generic.c state[4] += e; state[5] += f; state[6] += g; state[7] += h; f 148 crypto/sha512_generic.c a = b = c = d = e = f = g = h = t1 = t2 = 0; f 44 crypto/sm3_generic.c static inline u32 gg(unsigned int n, u32 e, u32 f, u32 g) f 46 crypto/sm3_generic.c return (n < 16) ? (e ^ f ^ g) : ((e & f) | ((~e) & g)); f 78 crypto/sm3_generic.c u32 a, b, c, d, e, f, g, h; f 86 crypto/sm3_generic.c f = m[5]; f 99 crypto/sm3_generic.c tt2 = gg(i, e, f, g) + h + ss1 + *w; f 107 crypto/sm3_generic.c g = rol32(f, 19); f 108 crypto/sm3_generic.c f = e; f 117 crypto/sm3_generic.c m[5] = f ^ m[5]; f 121 crypto/sm3_generic.c a = b = c = d = e = f = g = h = ss1 = ss2 = tt1 = tt2 = 0; f 106 crypto/xor.c struct xor_block_template *f, *fastest; f 134 crypto/xor.c for (f = fastest; f; f = f->next) f 135 crypto/xor.c if (f->speed > fastest->speed) f 136 crypto/xor.c fastest = f; f 17 drivers/acpi/acpica/acinterp.h #define ACPI_EXD_OFFSET(f) (u8) ACPI_OFFSET (union acpi_operand_object,f) f 18 drivers/acpi/acpica/acinterp.h #define ACPI_EXD_NSOFFSET(f) (u8) ACPI_OFFSET (struct acpi_namespace_node,f) f 403 drivers/acpi/acpica/acmacros.h #define ARGI_LIST6(a, b, c, d, e, f) (ARG_1(f)|ARG_2(e)|ARG_3(d)|ARG_4(c)|ARG_5(b)|ARG_6(a)) f 410 drivers/acpi/acpica/acmacros.h #define ARGP_LIST6(a, b, c, d, e, f) (ARG_1(a)|ARG_2(b)|ARG_3(c)|ARG_4(d)|ARG_5(e)|ARG_6(f)) f 124 drivers/acpi/acpica/acpredef.h #define PACKAGE_INFO(a,b,c,d,e,f) {{{(a),(b),(c),(d)}, ((((u16)(f)) << 8) | (e)), 0}} f 84 drivers/acpi/acpica/acresrc.h #define ACPI_RS_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_resource,f) f 85 drivers/acpi/acpica/acresrc.h #define AML_OFFSET(f) (u8) ACPI_OFFSET (union aml_resource,f) f 16 drivers/acpi/acpica/rsdumpinfo.c #define ACPI_RSD_OFFSET(f) (u8) ACPI_OFFSET (union acpi_resource_data,f) f 17 drivers/acpi/acpica/rsdumpinfo.c #define ACPI_PRT_OFFSET(f) (u8) ACPI_OFFSET (struct acpi_pci_routing_table,f) f 55 drivers/acpi/apei/erst-dbg.c static long erst_dbg_ioctl(struct file *f, unsigned int cmd, unsigned long arg) f 30 drivers/acpi/ec_sys.c static ssize_t acpi_ec_read_io(struct file *f, char __user *buf, f 64 drivers/acpi/ec_sys.c static ssize_t acpi_ec_write_io(struct file *f, const char __user *buf, f 151 drivers/acpi/pci_mcfg.c static int pci_mcfg_quirk_matches(struct mcfg_fixup *f, u16 segment, f 154 drivers/acpi/pci_mcfg.c if (!memcmp(f->oem_id, mcfg_oem_id, ACPI_OEM_ID_SIZE) && f 155 drivers/acpi/pci_mcfg.c !memcmp(f->oem_table_id, mcfg_oem_table_id, f 157 drivers/acpi/pci_mcfg.c f->oem_revision == mcfg_oem_revision && f 158 drivers/acpi/pci_mcfg.c f->segment == segment && f 159 drivers/acpi/pci_mcfg.c resource_contains(&f->bus_range, bus_range)) f 173 drivers/acpi/pci_mcfg.c struct mcfg_fixup *f; f 176 drivers/acpi/pci_mcfg.c for (i = 0, f = mcfg_quirks; i < ARRAY_SIZE(mcfg_quirks); i++, f++) { f 177 drivers/acpi/pci_mcfg.c if (pci_mcfg_quirk_matches(f, segment, bus_range)) { f 178 drivers/acpi/pci_mcfg.c if (f->cfgres.start) f 179 drivers/acpi/pci_mcfg.c *cfgres = f->cfgres; f 180 drivers/acpi/pci_mcfg.c if (f->ops) f 181 drivers/acpi/pci_mcfg.c *ecam_ops = f->ops; f 1848 drivers/ata/libahci.c const __le32 *f = pp->rx_fis + RX_FIS_SDB; f 1849 drivers/ata/libahci.c u32 f0 = le32_to_cpu(f[0]); f 657 drivers/ata/pata_hpt37x.c unsigned int f = (base * freq) / 192; /* Mhz */ f 658 drivers/ata/pata_hpt37x.c if (f < 40) f 660 drivers/ata/pata_hpt37x.c if (f < 45) f 662 drivers/ata/pata_hpt37x.c if (f < 55) f 282 drivers/atm/firestream.c #define fs_dprintk(f, str...) if (fs_debug & f) printk (str) f 284 drivers/atm/firestream.c #define fs_dprintk(f, str...) /* nothing */ f 70 drivers/atm/iphase.h #define IF_IADBG(f) if (IADebugFlag & (f)) f 235 drivers/base/power/qos.c struct pm_qos_flags *f; f 272 drivers/base/power/qos.c f = &qos->flags; f 273 drivers/base/power/qos.c list_for_each_entry_safe(req, tmp, &f->list, data.flr.node) { f 82 drivers/block/aoe/aoecmd.c struct frame *f; f 86 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 87 drivers/block/aoe/aoecmd.c if (f->tag == tag) { f 89 drivers/block/aoe/aoecmd.c return f; f 98 drivers/block/aoe/aoecmd.c struct frame *f; f 105 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 106 drivers/block/aoe/aoecmd.c if (f->tag == tag) { f 108 drivers/block/aoe/aoecmd.c return f; f 193 drivers/block/aoe/aoecmd.c aoe_freetframe(struct frame *f) f 197 drivers/block/aoe/aoecmd.c t = f->t; f 198 drivers/block/aoe/aoecmd.c f->buf = NULL; f 199 drivers/block/aoe/aoecmd.c memset(&f->iter, 0, sizeof(f->iter)); f 200 drivers/block/aoe/aoecmd.c f->r_skb = NULL; f 201 drivers/block/aoe/aoecmd.c f->flags = 0; f 202 drivers/block/aoe/aoecmd.c list_add(&f->head, &t->ffree); f 208 drivers/block/aoe/aoecmd.c struct frame *f; f 215 drivers/block/aoe/aoecmd.c f = kcalloc(1, sizeof(*f), GFP_ATOMIC); f 216 drivers/block/aoe/aoecmd.c if (f == NULL) f 219 drivers/block/aoe/aoecmd.c f->t = t; f 223 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 226 drivers/block/aoe/aoecmd.c skb = f->skb; f 228 drivers/block/aoe/aoecmd.c f->skb = skb = new_skb(ETH_ZLEN); f 230 drivers/block/aoe/aoecmd.c bail: aoe_freetframe(f); f 239 drivers/block/aoe/aoecmd.c skb_pool_put(d, f->skb); f 240 drivers/block/aoe/aoecmd.c f->skb = skb; f 246 drivers/block/aoe/aoecmd.c return f; f 252 drivers/block/aoe/aoecmd.c struct frame *f; f 275 drivers/block/aoe/aoecmd.c f = newtframe(d, t); f 276 drivers/block/aoe/aoecmd.c if (f) { f 279 drivers/block/aoe/aoecmd.c return f; f 308 drivers/block/aoe/aoecmd.c fhash(struct frame *f) f 310 drivers/block/aoe/aoecmd.c struct aoedev *d = f->t->d; f 313 drivers/block/aoe/aoecmd.c n = f->tag % NFACTIVE; f 314 drivers/block/aoe/aoecmd.c list_add_tail(&f->head, &d->factive[n]); f 318 drivers/block/aoe/aoecmd.c ata_rw_frameinit(struct frame *f) f 326 drivers/block/aoe/aoecmd.c skb = f->skb; f 335 drivers/block/aoe/aoecmd.c t = f->t; f 336 drivers/block/aoe/aoecmd.c f->tag = aoehdr_atainit(t->d, t, h); f 337 drivers/block/aoe/aoecmd.c fhash(f); f 339 drivers/block/aoe/aoecmd.c f->waited = 0; f 340 drivers/block/aoe/aoecmd.c f->waited_total = 0; f 343 drivers/block/aoe/aoecmd.c ah->scnt = f->iter.bi_size >> 9; f 344 drivers/block/aoe/aoecmd.c put_lba(ah, f->iter.bi_sector); f 352 drivers/block/aoe/aoecmd.c if (f->buf && bio_data_dir(f->buf->bio) == WRITE) { f 353 drivers/block/aoe/aoecmd.c skb_fillup(skb, f->buf->bio, f->iter); f 355 drivers/block/aoe/aoecmd.c skb->len += f->iter.bi_size; f 356 drivers/block/aoe/aoecmd.c skb->data_len = f->iter.bi_size; f 357 drivers/block/aoe/aoecmd.c skb->truesize += f->iter.bi_size; f 371 drivers/block/aoe/aoecmd.c struct frame *f; f 379 drivers/block/aoe/aoecmd.c f = newframe(d); f 380 drivers/block/aoe/aoecmd.c if (f == NULL) f 384 drivers/block/aoe/aoecmd.c f->buf = buf; f 385 drivers/block/aoe/aoecmd.c f->iter = buf->iter; f 386 drivers/block/aoe/aoecmd.c f->iter.bi_size = min_t(unsigned long, f 388 drivers/block/aoe/aoecmd.c f->iter.bi_size); f 389 drivers/block/aoe/aoecmd.c bio_advance_iter(buf->bio, &buf->iter, f->iter.bi_size); f 397 drivers/block/aoe/aoecmd.c ata_rw_frameinit(f); f 399 drivers/block/aoe/aoecmd.c skb = skb_clone(f->skb, GFP_ATOMIC); f 401 drivers/block/aoe/aoecmd.c f->sent = ktime_get(); f 452 drivers/block/aoe/aoecmd.c resend(struct aoedev *d, struct frame *f) f 461 drivers/block/aoe/aoecmd.c t = f->t; f 463 drivers/block/aoe/aoecmd.c skb = f->skb; f 467 drivers/block/aoe/aoecmd.c ktcomplete(f, NULL); f 472 drivers/block/aoe/aoecmd.c if (!(f->flags & FFL_PROBE)) { f 476 drivers/block/aoe/aoecmd.c f->tag, jiffies, n, f 481 drivers/block/aoe/aoecmd.c f->tag = n; f 482 drivers/block/aoe/aoecmd.c fhash(f); f 491 drivers/block/aoe/aoecmd.c f->sent = ktime_get(); f 498 drivers/block/aoe/aoecmd.c tsince_hr(struct frame *f) f 500 drivers/block/aoe/aoecmd.c u64 delta = ktime_to_ns(ktime_sub(ktime_get(), f->sent)); f 554 drivers/block/aoe/aoecmd.c reassign_frame(struct frame *f) f 559 drivers/block/aoe/aoecmd.c nf = newframe(f->t->d); f 562 drivers/block/aoe/aoecmd.c if (nf->t == f->t) { f 568 drivers/block/aoe/aoecmd.c nf->skb = f->skb; f 569 drivers/block/aoe/aoecmd.c nf->buf = f->buf; f 570 drivers/block/aoe/aoecmd.c nf->iter = f->iter; f 572 drivers/block/aoe/aoecmd.c nf->waited_total = f->waited_total; f 573 drivers/block/aoe/aoecmd.c nf->sent = f->sent; f 574 drivers/block/aoe/aoecmd.c f->skb = skb; f 583 drivers/block/aoe/aoecmd.c struct frame *f; f 590 drivers/block/aoe/aoecmd.c f = newtframe(d, t); f 591 drivers/block/aoe/aoecmd.c if (!f) { f 599 drivers/block/aoe/aoecmd.c f->flags |= FFL_PROBE; f 601 drivers/block/aoe/aoecmd.c f->iter.bi_size = t->d->maxbcnt ? t->d->maxbcnt : DEFAULTBCNT; f 602 drivers/block/aoe/aoecmd.c ata_rw_frameinit(f); f 603 drivers/block/aoe/aoecmd.c skb = f->skb; f 604 drivers/block/aoe/aoecmd.c for (frag = 0, n = f->iter.bi_size; n > 0; ++frag, n -= m) { f 611 drivers/block/aoe/aoecmd.c skb->len += f->iter.bi_size; f 612 drivers/block/aoe/aoecmd.c skb->data_len = f->iter.bi_size; f 613 drivers/block/aoe/aoecmd.c skb->truesize += f->iter.bi_size; f 615 drivers/block/aoe/aoecmd.c skb = skb_clone(f->skb, GFP_ATOMIC); f 617 drivers/block/aoe/aoecmd.c f->sent = ktime_get(); f 641 drivers/block/aoe/aoecmd.c struct frame *f; f 651 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 652 drivers/block/aoe/aoecmd.c t = f->t; f 654 drivers/block/aoe/aoecmd.c if (!(f->flags & FFL_PROBE)) { f 655 drivers/block/aoe/aoecmd.c nf = reassign_frame(f); f 662 drivers/block/aoe/aoecmd.c list_replace(&f->head, &nf->head); f 664 drivers/block/aoe/aoecmd.c aoe_freetframe(f); f 665 drivers/block/aoe/aoecmd.c f = nf; f 666 drivers/block/aoe/aoecmd.c t = f->t; f 671 drivers/block/aoe/aoecmd.c } else if (tsince_hr(f) < t->taint * rto(d)) { f 675 drivers/block/aoe/aoecmd.c } else if (f->flags & FFL_PROBE) { f 678 drivers/block/aoe/aoecmd.c aoe_freetframe(f); f 680 drivers/block/aoe/aoecmd.c f->t->d->flags |= DEVFL_KICKME; f 687 drivers/block/aoe/aoecmd.c if (f->flags & FFL_PROBE) f 689 drivers/block/aoe/aoecmd.c since = tsince_hr(f); f 690 drivers/block/aoe/aoecmd.c f->waited += since; f 691 drivers/block/aoe/aoecmd.c f->waited_total += since; f 692 drivers/block/aoe/aoecmd.c resend(d, f); f 732 drivers/block/aoe/aoecmd.c struct frame *f; f 759 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 760 drivers/block/aoe/aoecmd.c if (tsince_hr(f) < timeout) f 770 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 771 drivers/block/aoe/aoecmd.c since = tsince_hr(f); f 772 drivers/block/aoe/aoecmd.c n = f->waited_total + since; f 776 drivers/block/aoe/aoecmd.c && !(f->flags & FFL_PROBE)) { f 786 drivers/block/aoe/aoecmd.c t = f->t; f 787 drivers/block/aoe/aoecmd.c n = f->waited + since; f 798 drivers/block/aoe/aoecmd.c if (f->flags & FFL_PROBE) { f 801 drivers/block/aoe/aoecmd.c ifp = getif(t, f->skb->dev); f 1077 drivers/block/aoe/aoecmd.c ktiocomplete(struct frame *f) f 1089 drivers/block/aoe/aoecmd.c if (f == NULL) f 1092 drivers/block/aoe/aoecmd.c t = f->t; f 1094 drivers/block/aoe/aoecmd.c skb = f->r_skb; f 1095 drivers/block/aoe/aoecmd.c buf = f->buf; f 1096 drivers/block/aoe/aoecmd.c if (f->flags & FFL_PROBE) f 1101 drivers/block/aoe/aoecmd.c hout = (struct aoe_hdr *) skb_mac_header(f->skb); f 1129 drivers/block/aoe/aoecmd.c if (n > f->iter.bi_size) { f 1133 drivers/block/aoe/aoecmd.c n, f->iter.bi_size); f 1137 drivers/block/aoe/aoecmd.c bvcpy(skb, f->buf->bio, f->iter, n); f 1179 drivers/block/aoe/aoecmd.c aoe_freetframe(f); f 1195 drivers/block/aoe/aoecmd.c struct frame *f; f 1207 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 1209 drivers/block/aoe/aoecmd.c ktiocomplete(f); f 1212 drivers/block/aoe/aoecmd.c actual_id = f->t->d->aoeminor % ncpus; f 1279 drivers/block/aoe/aoecmd.c ktcomplete(struct frame *f, struct sk_buff *skb) f 1284 drivers/block/aoe/aoecmd.c f->r_skb = skb; f 1285 drivers/block/aoe/aoecmd.c id = f->t->d->aoeminor % ncpus; f 1296 drivers/block/aoe/aoecmd.c list_add_tail(&f->head, &iocq[id].head); f 1306 drivers/block/aoe/aoecmd.c struct frame *f; f 1326 drivers/block/aoe/aoecmd.c f = getframe(d, n); f 1327 drivers/block/aoe/aoecmd.c if (f) { f 1328 drivers/block/aoe/aoecmd.c calc_rttavg(d, f->t, tsince_hr(f)); f 1329 drivers/block/aoe/aoecmd.c f->t->nout--; f 1330 drivers/block/aoe/aoecmd.c if (f->flags & FFL_PROBE) f 1331 drivers/block/aoe/aoecmd.c f->t->nout_probes--; f 1333 drivers/block/aoe/aoecmd.c f = getframe_deferred(d, n); f 1334 drivers/block/aoe/aoecmd.c if (f) { f 1335 drivers/block/aoe/aoecmd.c calc_rttavg(d, NULL, tsince_hr(f)); f 1357 drivers/block/aoe/aoecmd.c ktcomplete(f, skb); f 1381 drivers/block/aoe/aoecmd.c struct frame *f; f 1385 drivers/block/aoe/aoecmd.c f = newframe(d); f 1386 drivers/block/aoe/aoecmd.c if (f == NULL) f 1392 drivers/block/aoe/aoecmd.c skb = f->skb; f 1397 drivers/block/aoe/aoecmd.c f->tag = aoehdr_atainit(d, t, h); f 1398 drivers/block/aoe/aoecmd.c fhash(f); f 1400 drivers/block/aoe/aoecmd.c f->waited = 0; f 1401 drivers/block/aoe/aoecmd.c f->waited_total = 0; f 1416 drivers/block/aoe/aoecmd.c f->sent = ktime_get(); f 1654 drivers/block/aoe/aoecmd.c struct frame *f; f 1667 drivers/block/aoe/aoecmd.c f = list_entry(pos, struct frame, head); f 1668 drivers/block/aoe/aoecmd.c d = f->t->d; f 1669 drivers/block/aoe/aoecmd.c skb = f->r_skb; f 1671 drivers/block/aoe/aoecmd.c if (f->buf) { f 1672 drivers/block/aoe/aoecmd.c f->buf->nframesout--; f 1673 drivers/block/aoe/aoecmd.c aoe_failbuf(d, f->buf); f 1675 drivers/block/aoe/aoecmd.c aoe_freetframe(f); f 185 drivers/block/aoe/aoedev.c struct frame *f; f 187 drivers/block/aoe/aoedev.c f = list_entry(pos, struct frame, head); f 189 drivers/block/aoe/aoedev.c if (f->buf) { f 190 drivers/block/aoe/aoedev.c f->buf->nframesout--; f 191 drivers/block/aoe/aoedev.c aoe_failbuf(f->t->d, f->buf); f 193 drivers/block/aoe/aoedev.c aoe_freetframe(f); f 501 drivers/block/aoe/aoedev.c struct frame *f; f 514 drivers/block/aoe/aoedev.c f = list_entry(pos, struct frame, head); f 515 drivers/block/aoe/aoedev.c skbfree(f->skb); f 516 drivers/block/aoe/aoedev.c kfree(f); f 232 drivers/block/drbd/drbd_debugfs.c unsigned long f = peer_req->flags; f 235 drivers/block/drbd/drbd_debugfs.c __seq_print_rq_state_bit(m, f & EE_SUBMITTED, &sep, "submitted", "preparing"); f 236 drivers/block/drbd/drbd_debugfs.c __seq_print_rq_state_bit(m, f & EE_APPLICATION, &sep, "application", "internal"); f 237 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_CALL_AL_COMPLETE_IO, &sep, "in-AL"); f 238 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_SEND_WRITE_ACK, &sep, "C"); f 239 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_MAY_SET_IN_SYNC, &sep, "set-in-sync"); f 240 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_TRIM, &sep, "trim"); f 241 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_ZEROOUT, &sep, "zero-out"); f 242 drivers/block/drbd/drbd_debugfs.c seq_print_rq_state_bit(m, f & EE_WRITE_SAME, &sep, "write-same"); f 1745 drivers/block/drbd/drbd_int.h #define __drbd_chk_io_error(m,f) __drbd_chk_io_error_(m,f, __func__) f 1809 drivers/block/drbd/drbd_int.h #define drbd_chk_io_error(m,e,f) drbd_chk_io_error_(m,e,f, __func__) f 3532 drivers/block/drbd/drbd_receiver.c int f = (hg == -100) || abs(hg) == 2; f 3534 drivers/block/drbd/drbd_receiver.c if (f) f 489 drivers/block/drbd/drbd_state.c drbd_change_state(struct drbd_device *device, enum chg_state_flags f, f 498 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, NULL); f 564 drivers/block/drbd/drbd_state.c union drbd_state val, enum chg_state_flags f) f 574 drivers/block/drbd/drbd_state.c if (f & CS_SERIALIZE) f 576 drivers/block/drbd/drbd_state.c if (f & CS_INHIBIT_MD_IO) f 595 drivers/block/drbd/drbd_state.c if (f & CS_VERBOSE) f 602 drivers/block/drbd/drbd_state.c if (f & CS_VERBOSE) f 611 drivers/block/drbd/drbd_state.c if (f & CS_VERBOSE) f 617 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, &done); f 619 drivers/block/drbd/drbd_state.c rv = _drbd_set_state(device, ns, f, &done); f 624 drivers/block/drbd/drbd_state.c if (f & CS_WAIT_COMPLETE && rv == SS_SUCCESS) { f 632 drivers/block/drbd/drbd_state.c if (f & CS_SERIALIZE) f 650 drivers/block/drbd/drbd_state.c union drbd_state val, enum chg_state_flags f) f 655 drivers/block/drbd/drbd_state.c (rv = drbd_req_state(device, mask, val, f)) != SS_IN_TRANSIENT_STATE); f 701 drivers/block/drbd/drbd_state.c union drbd_state val, enum chg_state_flags f) f 705 drivers/block/drbd/drbd_state.c BUG_ON(f & CS_SERIALIZE); f 708 drivers/block/drbd/drbd_state.c (rv = drbd_req_state(device, mask, val, f)) != SS_IN_TRANSIENT_STATE, f 116 drivers/block/drbd/drbd_state.h enum chg_state_flags f, f 1056 drivers/block/floppy.c unsigned long f; f 1075 drivers/block/floppy.c f = claim_dma_lock(); f 1081 drivers/block/floppy.c release_dma_lock(f); f 1086 drivers/block/floppy.c release_dma_lock(f); f 1096 drivers/block/floppy.c release_dma_lock(f); f 1685 drivers/block/floppy.c unsigned long f; f 1691 drivers/block/floppy.c f = claim_dma_lock(); f 1693 drivers/block/floppy.c release_dma_lock(f); f 3416 drivers/block/floppy.c struct format_descr f; f 3512 drivers/block/floppy.c return do_format(drive, &inparam.f); f 660 drivers/block/loop.c struct file *f = file; f 663 drivers/block/loop.c while (is_loop_device(f)) { f 666 drivers/block/loop.c if (f->f_mapping->host->i_bdev == bdev) f 669 drivers/block/loop.c l = f->f_mapping->host->i_bdev->bd_disk->private_data; f 673 drivers/block/loop.c f = l->lo_backing_file; f 2237 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_device_status(struct file *f, char __user *ubuf, f 2240 drivers/block/mtip32xx/mtip32xx.c struct driver_data *dd = (struct driver_data *)f->private_data; f 2266 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_registers(struct file *f, char __user *ubuf, f 2269 drivers/block/mtip32xx/mtip32xx.c struct driver_data *dd = (struct driver_data *)f->private_data; f 2333 drivers/block/mtip32xx/mtip32xx.c static ssize_t mtip_hw_read_flags(struct file *f, char __user *ubuf, f 2336 drivers/block/mtip32xx/mtip32xx.c struct driver_data *dd = (struct driver_data *)f->private_data; f 350 drivers/block/paride/bpck.c { int i, j, k, p, v, f, om, od; f 365 drivers/block/paride/bpck.c f = (((i + 0x180) & p) != 0) * 2; f 366 drivers/block/paride/bpck.c WR(6,f+0xc); f 367 drivers/block/paride/bpck.c WR(6,f+0xd); f 368 drivers/block/paride/bpck.c WR(6,f+0xc); f 377 drivers/block/paride/bpck.c f = RR(0); f 378 drivers/block/paride/bpck.c v = 2*v + (f == 0x84); f 253 drivers/block/paride/epat.c { int k, j, f, cc; f 271 drivers/block/paride/epat.c f = 0; f 277 drivers/block/paride/epat.c if ((scratch[2*k] & 0xff) != k) f++; f 278 drivers/block/paride/epat.c if ((scratch[2*k+1] & 0xff) != (0xff-k)) f++; f 284 drivers/block/paride/epat.c pi->device,pi->port,pi->mode,cc,e[0],e[1],f); f 287 drivers/block/paride/epat.c return (e[0] && e[1]) || f; f 239 drivers/block/paride/epia.c { int j, k, f; f 254 drivers/block/paride/epia.c f = 0; f 259 drivers/block/paride/epia.c if ((scratch[2*k] & 0xff) != ((k+1) & 0xff)) f++; f 260 drivers/block/paride/epia.c if ((scratch[2*k+1] & 0xff) != ((-2-k) & 0xff)) f++; f 267 drivers/block/paride/epia.c pi->device,pi->port,pi->mode,e[0],e[1],f); f 270 drivers/block/paride/epia.c return (e[0] && e[1]) || f; f 27 drivers/block/paride/on20.c #define op(f) w2(4);w0(f);w2(5);w2(0xd);w2(5);w2(0xd);w2(5);w2(4); f 128 drivers/block/paride/paride.h { union { u32 u; char f[4]; } r; f 130 drivers/block/paride/paride.h r.f[0]=b[4*k+1]; r.f[1]=b[4*k]; f 131 drivers/block/paride/paride.h r.f[2]=b[4*k+3]; r.f[3]=b[4*k+2]; f 989 drivers/block/pktcdvd.c int f; f 1009 drivers/block/pktcdvd.c for (f = first_frame; f < first_frame + num_frames; f++) f 1010 drivers/block/pktcdvd.c written[f] = 1; f 1023 drivers/block/pktcdvd.c for (f = 0; f < pkt->frames; f++) { f 1026 drivers/block/pktcdvd.c if (written[f]) f 1029 drivers/block/pktcdvd.c bio = pkt->r_bios[f]; f 1031 drivers/block/pktcdvd.c bio->bi_iter.bi_sector = pkt->sector + f * (CD_FRAMESIZE >> 9); f 1036 drivers/block/pktcdvd.c p = (f * CD_FRAMESIZE) / PAGE_SIZE; f 1037 drivers/block/pktcdvd.c offset = (f * CD_FRAMESIZE) % PAGE_SIZE; f 1039 drivers/block/pktcdvd.c f, pkt->pages[p], offset); f 1267 drivers/block/pktcdvd.c int f; f 1276 drivers/block/pktcdvd.c for (f = 0; f < pkt->frames; f++) { f 1277 drivers/block/pktcdvd.c struct page *page = pkt->pages[(f * CD_FRAMESIZE) / PAGE_SIZE]; f 1278 drivers/block/pktcdvd.c unsigned offset = (f * CD_FRAMESIZE) % PAGE_SIZE; f 60 drivers/char/dsp56k.c #define handshake(count, maxio, timeout, ENABLE, f) \ f 70 drivers/char/dsp56k.c f; \ f 74 drivers/char/mwave/mwavedd.h #define PRINTK_1(f,s) \ f 75 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 79 drivers/char/mwave/mwavedd.h #define PRINTK_2(f,s,v1) \ f 80 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 84 drivers/char/mwave/mwavedd.h #define PRINTK_3(f,s,v1,v2) \ f 85 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 89 drivers/char/mwave/mwavedd.h #define PRINTK_4(f,s,v1,v2,v3) \ f 90 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 94 drivers/char/mwave/mwavedd.h #define PRINTK_5(f,s,v1,v2,v3,v4) \ f 95 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 99 drivers/char/mwave/mwavedd.h #define PRINTK_6(f,s,v1,v2,v3,v4,v5) \ f 100 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 104 drivers/char/mwave/mwavedd.h #define PRINTK_7(f,s,v1,v2,v3,v4,v5,v6) \ f 105 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 109 drivers/char/mwave/mwavedd.h #define PRINTK_8(f,s,v1,v2,v3,v4,v5,v6,v7) \ f 110 drivers/char/mwave/mwavedd.h if (f & (mwave_debug)) { \ f 115 drivers/char/mwave/mwavedd.h #define PRINTK_1(f,s) f 116 drivers/char/mwave/mwavedd.h #define PRINTK_2(f,s,v1) f 117 drivers/char/mwave/mwavedd.h #define PRINTK_3(f,s,v1,v2) f 118 drivers/char/mwave/mwavedd.h #define PRINTK_4(f,s,v1,v2,v3) f 119 drivers/char/mwave/mwavedd.h #define PRINTK_5(f,s,v1,v2,v3,v4) f 120 drivers/char/mwave/mwavedd.h #define PRINTK_6(f,s,v1,v2,v3,v4,v5) f 121 drivers/char/mwave/mwavedd.h #define PRINTK_7(f,s,v1,v2,v3,v4,v5,v6) f 122 drivers/char/mwave/mwavedd.h #define PRINTK_8(f,s,v1,v2,v3,v4,v5,v6,v7) f 665 drivers/char/random.c static void fast_mix(struct fast_pool *f) f 667 drivers/char/random.c __u32 a = f->pool[0], b = f->pool[1]; f 668 drivers/char/random.c __u32 c = f->pool[2], d = f->pool[3]; f 686 drivers/char/random.c f->pool[0] = a; f->pool[1] = b; f 687 drivers/char/random.c f->pool[2] = c; f->pool[3] = d; f 688 drivers/char/random.c f->count++; f 1293 drivers/char/random.c static __u32 get_reg(struct fast_pool *f, struct pt_regs *regs) f 1300 drivers/char/random.c idx = READ_ONCE(f->reg_idx); f 1304 drivers/char/random.c WRITE_ONCE(f->reg_idx, idx); f 2103 drivers/char/random.c static long random_ioctl(struct file *f, unsigned int cmd, unsigned long arg) f 662 drivers/char/tpm/tpm_vtpm_proxy.c static long vtpmx_fops_ioctl(struct file *f, unsigned int ioctl, f 667 drivers/char/tpm/tpm_vtpm_proxy.c return vtpmx_ioc_new_dev(f, ioctl, arg); f 674 drivers/char/tpm/tpm_vtpm_proxy.c static long vtpmx_fops_compat_ioctl(struct file *f, unsigned int ioctl, f 677 drivers/char/tpm/tpm_vtpm_proxy.c return vtpmx_fops_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); f 226 drivers/clk/analogbits/wrpll-cln28hpc.c u32 best_f, f, post_divr_freq; f 274 drivers/clk/analogbits/wrpll-cln28hpc.c f = (f_pre_div + (1 << ROUND_SHIFT)) >> ROUND_SHIFT; f 275 drivers/clk/analogbits/wrpll-cln28hpc.c f >>= (fbdiv - 1); f 279 drivers/clk/analogbits/wrpll-cln28hpc.c vco = vco_pre * f; f 283 drivers/clk/analogbits/wrpll-cln28hpc.c --f; f 284 drivers/clk/analogbits/wrpll-cln28hpc.c vco = vco_pre * f; f 286 drivers/clk/analogbits/wrpll-cln28hpc.c ++f; f 287 drivers/clk/analogbits/wrpll-cln28hpc.c vco = vco_pre * f; f 294 drivers/clk/analogbits/wrpll-cln28hpc.c best_f = f; f 1469 drivers/clk/bcm/clk-bcm2835.c #define _REGISTER(f, s, ...) { .clk_register = (bcm2835_clk_register)f, \ f 109 drivers/clk/clk-axi-clkgen.c unsigned long f, dout, best_f, fvco; f 134 drivers/clk/clk-axi-clkgen.c f = fvco / dout; f 135 drivers/clk/clk-axi-clkgen.c if (abs(f - fout) < abs(best_f - fout)) { f 136 drivers/clk/clk-axi-clkgen.c best_f = f; f 476 drivers/clk/clk-si5341.c u64 f; f 490 drivers/clk/clk-si5341.c f = synth->data->freq_vco; f 491 drivers/clk/clk-si5341.c f *= n_den >> 4; f 495 drivers/clk/clk-si5341.c f = div64_u64(f, (n_num >> 4)); f 497 drivers/clk/clk-si5341.c return f; f 504 drivers/clk/clk-si5341.c u64 f; f 507 drivers/clk/clk-si5341.c f = synth->data->freq_vco; f 508 drivers/clk/clk-si5341.c do_div(f, SI5341_SYNTH_N_MAX); f 509 drivers/clk/clk-si5341.c if (rate < f) f 510 drivers/clk/clk-si5341.c return f; f 512 drivers/clk/clk-si5341.c f = synth->data->freq_vco; f 513 drivers/clk/clk-si5341.c do_div(f, SI5341_SYNTH_N_MIN); f 514 drivers/clk/clk-si5341.c if (rate > f) f 515 drivers/clk/clk-si5341.c return f; f 337 drivers/clk/clk-vt8500.c #define WM8750_BITS_TO_VAL(f, m, d1, d2) \ f 338 drivers/clk/clk-vt8500.c ((f << 24) | ((m - 1) << 16) | ((d1 - 1) << 8) | d2) f 3008 drivers/clk/clk.c #define ENTRY(f) { f, #f } f 70 drivers/clk/davinci/pll.h #define SYSCLK(i, n, p, w, f) \ f 76 drivers/clk/davinci/pll.h .flags = (f), \ f 69 drivers/clk/davinci/psc.h #define LPSC(m, d, n, p, c, f) \ f 76 drivers/clk/davinci/psc.h .flags = (f), \ f 196 drivers/clk/meson/axg-audio.c static AUD_MST_SCLK_PRE_EN(f, AUDIO_MST_F_SCLK_CTRL0); f 232 drivers/clk/meson/axg-audio.c static AUD_MST_SCLK_DIV(f, AUDIO_MST_F_SCLK_CTRL0); f 243 drivers/clk/meson/axg-audio.c static AUD_MST_SCLK_POST_EN(f, AUDIO_MST_F_SCLK_CTRL0); f 283 drivers/clk/meson/axg-audio.c static AUD_MST_SCLK(f, AUDIO_MST_F_SCLK_CTRL1); f 294 drivers/clk/meson/axg-audio.c static AUD_MST_LRCLK_DIV(f, AUDIO_MST_F_SCLK_CTRL0); f 305 drivers/clk/meson/axg-audio.c static AUD_MST_LRCLK(f, AUDIO_MST_F_SCLK_CTRL1); f 1077 drivers/clk/nxp/clk-lpc32xx.c struct clk_fixed_rate f; f 1087 drivers/clk/nxp/clk-lpc32xx.c .f = { \ f 1462 drivers/clk/nxp/clk-lpc32xx.c struct clk_fixed_rate *fixed = &clk_hw->f; f 113 drivers/clk/qcom/clk-pll.c struct pll_freq_tbl *find_freq(const struct pll_freq_tbl *f, unsigned long rate) f 115 drivers/clk/qcom/clk-pll.c if (!f) f 118 drivers/clk/qcom/clk-pll.c for (; f->freq; f++) f 119 drivers/clk/qcom/clk-pll.c if (rate <= f->freq) f 120 drivers/clk/qcom/clk-pll.c return f; f 129 drivers/clk/qcom/clk-pll.c const struct pll_freq_tbl *f; f 131 drivers/clk/qcom/clk-pll.c f = find_freq(pll->freq_tbl, req->rate); f 132 drivers/clk/qcom/clk-pll.c if (!f) f 135 drivers/clk/qcom/clk-pll.c req->rate = f->freq; f 144 drivers/clk/qcom/clk-pll.c const struct pll_freq_tbl *f; f 149 drivers/clk/qcom/clk-pll.c f = find_freq(pll->freq_tbl, rate); f 150 drivers/clk/qcom/clk-pll.c if (!f) f 159 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->l_reg, 0x3ff, f->l); f 160 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->m_reg, 0x7ffff, f->m); f 161 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->n_reg, 0x7ffff, f->n); f 162 drivers/clk/qcom/clk-pll.c regmap_write(pll->clkr.regmap, pll->config_reg, f->ibits); f 304 drivers/clk/qcom/clk-pll.c const struct pll_freq_tbl *f; f 309 drivers/clk/qcom/clk-pll.c f = find_freq(pll->freq_tbl, rate); f 310 drivers/clk/qcom/clk-pll.c if (!f) f 319 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->l_reg, 0x3ff, f->l); f 320 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->m_reg, 0x7ffff, f->m); f 321 drivers/clk/qcom/clk-pll.c regmap_update_bits(pll->clkr.regmap, pll->n_reg, 0x7ffff, f->n); f 198 drivers/clk/qcom/clk-rcg.c static int configure_bank(struct clk_dyn_rcg *rcg, const struct freq_tbl *f) f 236 drivers/clk/qcom/clk-rcg.c md = mn_to_md(mn, f->m, f->n, md); f 240 drivers/clk/qcom/clk-rcg.c ns = mn_to_ns(mn, f->m, f->n, ns); f 247 drivers/clk/qcom/clk-rcg.c ns = mn_to_reg(mn, f->m, f->n, ns); f 252 drivers/clk/qcom/clk-rcg.c reg = mn_to_reg(mn, f->m, f->n, reg); f 267 drivers/clk/qcom/clk-rcg.c ns = pre_div_to_ns(p, f->pre_div - 1, ns); f 271 drivers/clk/qcom/clk-rcg.c index = qcom_find_src_index(hw, s->parent_map, f->src); f 296 drivers/clk/qcom/clk-rcg.c struct freq_tbl f = { 0 }; f 307 drivers/clk/qcom/clk-rcg.c f.m = md_to_m(&rcg->mn[bank], md); f 308 drivers/clk/qcom/clk-rcg.c f.n = ns_m_to_n(&rcg->mn[bank], ns, f.m); f 312 drivers/clk/qcom/clk-rcg.c f.pre_div = ns_to_pre_div(&rcg->p[bank], ns) + 1; f 314 drivers/clk/qcom/clk-rcg.c f.src = qcom_find_src_index(hw, rcg->s[bank].parent_map, index); f 315 drivers/clk/qcom/clk-rcg.c return configure_bank(rcg, &f); f 399 drivers/clk/qcom/clk-rcg.c static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, f 407 drivers/clk/qcom/clk-rcg.c f = qcom_find_freq(f, rate); f 408 drivers/clk/qcom/clk-rcg.c if (!f) f 411 drivers/clk/qcom/clk-rcg.c index = qcom_find_src_index(hw, parent_map, f->src); f 418 drivers/clk/qcom/clk-rcg.c rate = rate * f->pre_div; f 419 drivers/clk/qcom/clk-rcg.c if (f->n) { f 421 drivers/clk/qcom/clk-rcg.c tmp = tmp * f->n; f 422 drivers/clk/qcom/clk-rcg.c do_div(tmp, f->m); f 430 drivers/clk/qcom/clk-rcg.c req->rate = f->freq; f 463 drivers/clk/qcom/clk-rcg.c const struct freq_tbl *f = rcg->freq_tbl; f 465 drivers/clk/qcom/clk-rcg.c int index = qcom_find_src_index(hw, rcg->s.parent_map, f->src); f 474 drivers/clk/qcom/clk-rcg.c static int __clk_rcg_set_rate(struct clk_rcg *rcg, const struct freq_tbl *f) f 491 drivers/clk/qcom/clk-rcg.c md = mn_to_md(mn, f->m, f->n, md); f 498 drivers/clk/qcom/clk-rcg.c ctl = mn_to_reg(mn, f->m, f->n, ctl); f 501 drivers/clk/qcom/clk-rcg.c ns = mn_to_reg(mn, f->m, f->n, ns); f 503 drivers/clk/qcom/clk-rcg.c ns = mn_to_ns(mn, f->m, f->n, ns); f 508 drivers/clk/qcom/clk-rcg.c ns = pre_div_to_ns(&rcg->p, f->pre_div - 1, ns); f 520 drivers/clk/qcom/clk-rcg.c const struct freq_tbl *f; f 522 drivers/clk/qcom/clk-rcg.c f = qcom_find_freq(rcg->freq_tbl, rate); f 523 drivers/clk/qcom/clk-rcg.c if (!f) f 526 drivers/clk/qcom/clk-rcg.c return __clk_rcg_set_rate(rcg, f); f 553 drivers/clk/qcom/clk-rcg.c struct freq_tbl f = { 0 }; f 562 drivers/clk/qcom/clk-rcg.c f.pre_div = ns_to_pre_div(&rcg->p, ns) + 1; f 566 drivers/clk/qcom/clk-rcg.c f.src = rcg->s.parent_map[i].src; f 567 drivers/clk/qcom/clk-rcg.c return __clk_rcg_set_rate(rcg, &f); f 624 drivers/clk/qcom/clk-rcg.c struct freq_tbl f = { 0 }; f 636 drivers/clk/qcom/clk-rcg.c f.src = rcg->s.parent_map[i].src; f 642 drivers/clk/qcom/clk-rcg.c f.pre_div = 1; f 652 drivers/clk/qcom/clk-rcg.c f.m = frac->num; f 653 drivers/clk/qcom/clk-rcg.c f.n = frac->den; f 655 drivers/clk/qcom/clk-rcg.c return __clk_rcg_set_rate(rcg, &f); f 695 drivers/clk/qcom/clk-rcg.c struct freq_tbl f = { 0 }; f 712 drivers/clk/qcom/clk-rcg.c f.src = rcg->s.parent_map[i].src; f 720 drivers/clk/qcom/clk-rcg.c f.pre_div = div; f 721 drivers/clk/qcom/clk-rcg.c return __clk_rcg_set_rate(rcg, &f); f 748 drivers/clk/qcom/clk-rcg.c const struct freq_tbl *f; f 752 drivers/clk/qcom/clk-rcg.c f = qcom_find_freq(rcg->freq_tbl, rate); f 753 drivers/clk/qcom/clk-rcg.c if (!f) f 758 drivers/clk/qcom/clk-rcg.c ret = __clk_rcg_set_rate(rcg, f); f 787 drivers/clk/qcom/clk-rcg.c const struct freq_tbl *f; f 789 drivers/clk/qcom/clk-rcg.c f = qcom_find_freq(rcg->freq_tbl, rate); f 790 drivers/clk/qcom/clk-rcg.c if (!f) f 793 drivers/clk/qcom/clk-rcg.c return configure_bank(rcg, f); f 10 drivers/clk/qcom/clk-rcg.h #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } f 191 drivers/clk/qcom/clk-rcg2.c static int _freq_tbl_determine_rate(struct clk_hw *hw, const struct freq_tbl *f, f 202 drivers/clk/qcom/clk-rcg2.c f = qcom_find_freq_floor(f, rate); f 205 drivers/clk/qcom/clk-rcg2.c f = qcom_find_freq(f, rate); f 211 drivers/clk/qcom/clk-rcg2.c if (!f) f 214 drivers/clk/qcom/clk-rcg2.c index = qcom_find_src_index(hw, rcg->parent_map, f->src); f 224 drivers/clk/qcom/clk-rcg2.c rate = f->freq; f 225 drivers/clk/qcom/clk-rcg2.c if (f->pre_div) { f 229 drivers/clk/qcom/clk-rcg2.c rate *= f->pre_div + 1; f 232 drivers/clk/qcom/clk-rcg2.c if (f->n) { f 234 drivers/clk/qcom/clk-rcg2.c tmp = tmp * f->n; f 235 drivers/clk/qcom/clk-rcg2.c do_div(tmp, f->m); f 243 drivers/clk/qcom/clk-rcg2.c req->rate = f->freq; f 264 drivers/clk/qcom/clk-rcg2.c static int __clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) f 268 drivers/clk/qcom/clk-rcg2.c int ret, index = qcom_find_src_index(hw, rcg->parent_map, f->src); f 273 drivers/clk/qcom/clk-rcg2.c if (rcg->mnd_width && f->n) { f 276 drivers/clk/qcom/clk-rcg2.c RCG_M_OFFSET(rcg), mask, f->m); f 281 drivers/clk/qcom/clk-rcg2.c RCG_N_OFFSET(rcg), mask, ~(f->n - f->m)); f 286 drivers/clk/qcom/clk-rcg2.c RCG_D_OFFSET(rcg), mask, ~f->n); f 293 drivers/clk/qcom/clk-rcg2.c cfg = f->pre_div << CFG_SRC_DIV_SHIFT; f 295 drivers/clk/qcom/clk-rcg2.c if (rcg->mnd_width && f->n && (f->m != f->n)) f 301 drivers/clk/qcom/clk-rcg2.c static int clk_rcg2_configure(struct clk_rcg2 *rcg, const struct freq_tbl *f) f 305 drivers/clk/qcom/clk-rcg2.c ret = __clk_rcg2_configure(rcg, f); f 316 drivers/clk/qcom/clk-rcg2.c const struct freq_tbl *f; f 320 drivers/clk/qcom/clk-rcg2.c f = qcom_find_freq_floor(rcg->freq_tbl, rate); f 323 drivers/clk/qcom/clk-rcg2.c f = qcom_find_freq(rcg->freq_tbl, rate); f 329 drivers/clk/qcom/clk-rcg2.c if (!f) f 332 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_configure(rcg, f); f 412 drivers/clk/qcom/clk-rcg2.c struct freq_tbl f = *rcg->freq_tbl; f 435 drivers/clk/qcom/clk-rcg2.c f.pre_div = hid_div; f 436 drivers/clk/qcom/clk-rcg2.c f.pre_div >>= CFG_SRC_DIV_SHIFT; f 437 drivers/clk/qcom/clk-rcg2.c f.pre_div &= mask; f 438 drivers/clk/qcom/clk-rcg2.c f.m = frac->num; f 439 drivers/clk/qcom/clk-rcg2.c f.n = frac->den; f 441 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_configure(rcg, &f); f 458 drivers/clk/qcom/clk-rcg2.c const struct freq_tbl *f = rcg->freq_tbl; f 464 drivers/clk/qcom/clk-rcg2.c int index = qcom_find_src_index(hw, rcg->parent_map, f->src); f 512 drivers/clk/qcom/clk-rcg2.c const struct freq_tbl *f = rcg->freq_tbl; f 513 drivers/clk/qcom/clk-rcg2.c int index = qcom_find_src_index(hw, rcg->parent_map, f->src); f 536 drivers/clk/qcom/clk-rcg2.c struct freq_tbl f = *rcg->freq_tbl; f 543 drivers/clk/qcom/clk-rcg2.c f.pre_div = div; f 545 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_configure(rcg, &f); f 593 drivers/clk/qcom/clk-rcg2.c struct freq_tbl f = { 0 }; f 602 drivers/clk/qcom/clk-rcg2.c f.pre_div = div; f 610 drivers/clk/qcom/clk-rcg2.c f.src = rcg->parent_map[i].src; f 611 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_configure(rcg, &f); f 671 drivers/clk/qcom/clk-rcg2.c struct freq_tbl f = { 0 }; f 685 drivers/clk/qcom/clk-rcg2.c f.src = rcg->parent_map[i].src; f 698 drivers/clk/qcom/clk-rcg2.c f.pre_div = hid_div; f 699 drivers/clk/qcom/clk-rcg2.c f.pre_div >>= CFG_SRC_DIV_SHIFT; f 700 drivers/clk/qcom/clk-rcg2.c f.pre_div &= mask; f 701 drivers/clk/qcom/clk-rcg2.c f.m = frac->num; f 702 drivers/clk/qcom/clk-rcg2.c f.n = frac->den; f 704 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_configure(rcg, &f); f 845 drivers/clk/qcom/clk-rcg2.c clk_rcg2_shared_force_enable_clear(struct clk_hw *hw, const struct freq_tbl *f) f 854 drivers/clk/qcom/clk-rcg2.c ret = clk_rcg2_configure(rcg, f); f 865 drivers/clk/qcom/clk-rcg2.c const struct freq_tbl *f; f 867 drivers/clk/qcom/clk-rcg2.c f = qcom_find_freq(rcg->freq_tbl, rate); f 868 drivers/clk/qcom/clk-rcg2.c if (!f) f 876 drivers/clk/qcom/clk-rcg2.c return __clk_rcg2_configure(rcg, f); f 878 drivers/clk/qcom/clk-rcg2.c return clk_rcg2_shared_force_enable_clear(hw, f); f 953 drivers/clk/qcom/clk-rcg2.c struct freq_tbl *f) f 964 drivers/clk/qcom/clk-rcg2.c f->pre_div = 1; f 966 drivers/clk/qcom/clk-rcg2.c f->pre_div = cfg & mask; f 974 drivers/clk/qcom/clk-rcg2.c f->src = rcg->parent_map[i].src; f 987 drivers/clk/qcom/clk-rcg2.c f->m = val; f 993 drivers/clk/qcom/clk-rcg2.c val += f->m; f 994 drivers/clk/qcom/clk-rcg2.c f->n = val; f 997 drivers/clk/qcom/clk-rcg2.c f->freq = calc_rate(prate, f->m, f->n, mode, f->pre_div); f 27 drivers/clk/qcom/common.c struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate) f 29 drivers/clk/qcom/common.c if (!f) f 32 drivers/clk/qcom/common.c if (!f->freq) f 33 drivers/clk/qcom/common.c return f; f 35 drivers/clk/qcom/common.c for (; f->freq; f++) f 36 drivers/clk/qcom/common.c if (rate <= f->freq) f 37 drivers/clk/qcom/common.c return f; f 40 drivers/clk/qcom/common.c return f - 1; f 44 drivers/clk/qcom/common.c const struct freq_tbl *qcom_find_freq_floor(const struct freq_tbl *f, f 49 drivers/clk/qcom/common.c for ( ; f->freq; f++) { f 50 drivers/clk/qcom/common.c if (rate >= f->freq) f 51 drivers/clk/qcom/common.c best = f; f 44 drivers/clk/qcom/common.h extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, f 46 drivers/clk/qcom/common.h extern const struct freq_tbl *qcom_find_freq_floor(const struct freq_tbl *f, f 1256 drivers/clk/qcom/gcc-ipq4019.c const struct freq_tbl *f; f 1258 drivers/clk/qcom/gcc-ipq4019.c f = qcom_find_freq(pll->freq_tbl, rate); f 1259 drivers/clk/qcom/gcc-ipq4019.c if (!f) f 1262 drivers/clk/qcom/gcc-ipq4019.c p_hw = clk_hw_get_parent_by_index(hw, f->src); f 1265 drivers/clk/qcom/gcc-ipq4019.c return f->freq; f 1277 drivers/clk/qcom/gcc-ipq4019.c const struct freq_tbl *f; f 1281 drivers/clk/qcom/gcc-ipq4019.c f = qcom_find_freq(pll->freq_tbl, rate); f 1282 drivers/clk/qcom/gcc-ipq4019.c if (!f) f 1288 drivers/clk/qcom/gcc-ipq4019.c f->pre_div << pll->cdiv.shift); f 214 drivers/clk/qcom/gcc-ipq806x.c #define NSS_PLL_RATE(f, _l, _m, _n, i) \ f 216 drivers/clk/qcom/gcc-ipq806x.c .freq = f, \ f 28 drivers/clk/qcom/gcc-sdm660.c #define F(f, s, h, m, n) { (f), (s), (2 * (h) - 1), (m), (n) } f 42 drivers/clk/qcom/mmcc-msm8960.c #define F_MN(f, s, _m, _n) { .freq = f, .src = s, .m = _m, .n = _n } f 425 drivers/clk/rockchip/clk.h #define COMPOSITE(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ f 433 drivers/clk/rockchip/clk.h .flags = f, \ f 446 drivers/clk/rockchip/clk.h #define COMPOSITE_DIV_OFFSET(_id, cname, pnames, f, mo, ms, mw, \ f 454 drivers/clk/rockchip/clk.h .flags = f, \ f 468 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX(_id, cname, pname, f, mo, ds, dw, df, \ f 476 drivers/clk/rockchip/clk.h .flags = f, \ f 486 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX_DIVTBL(_id, cname, pname, f, mo, ds, dw,\ f 494 drivers/clk/rockchip/clk.h .flags = f, \ f 505 drivers/clk/rockchip/clk.h #define COMPOSITE_NODIV(_id, cname, pnames, f, mo, ms, mw, mf, \ f 513 drivers/clk/rockchip/clk.h .flags = f, \ f 523 drivers/clk/rockchip/clk.h #define COMPOSITE_NOGATE(_id, cname, pnames, f, mo, ms, mw, mf, \ f 531 drivers/clk/rockchip/clk.h .flags = f, \ f 542 drivers/clk/rockchip/clk.h #define COMPOSITE_NOGATE_DIVTBL(_id, cname, pnames, f, mo, ms, \ f 550 drivers/clk/rockchip/clk.h .flags = f, \ f 562 drivers/clk/rockchip/clk.h #define COMPOSITE_FRAC(_id, cname, pname, f, mo, df, go, gs, gf)\ f 569 drivers/clk/rockchip/clk.h .flags = f, \ f 579 drivers/clk/rockchip/clk.h #define COMPOSITE_FRACMUX(_id, cname, pname, f, mo, df, go, gs, gf, ch) \ f 586 drivers/clk/rockchip/clk.h .flags = f, \ f 597 drivers/clk/rockchip/clk.h #define COMPOSITE_FRACMUX_NOGATE(_id, cname, pname, f, mo, df, ch) \ f 604 drivers/clk/rockchip/clk.h .flags = f, \ f 613 drivers/clk/rockchip/clk.h #define COMPOSITE_DDRCLK(_id, cname, pnames, f, mo, ms, mw, \ f 621 drivers/clk/rockchip/clk.h .flags = f, \ f 631 drivers/clk/rockchip/clk.h #define MUX(_id, cname, pnames, f, o, s, w, mf) \ f 638 drivers/clk/rockchip/clk.h .flags = f, \ f 646 drivers/clk/rockchip/clk.h #define MUXGRF(_id, cname, pnames, f, o, s, w, mf) \ f 653 drivers/clk/rockchip/clk.h .flags = f, \ f 661 drivers/clk/rockchip/clk.h #define DIV(_id, cname, pname, f, o, s, w, df) \ f 668 drivers/clk/rockchip/clk.h .flags = f, \ f 676 drivers/clk/rockchip/clk.h #define DIVTBL(_id, cname, pname, f, o, s, w, df, dt) \ f 683 drivers/clk/rockchip/clk.h .flags = f, \ f 691 drivers/clk/rockchip/clk.h #define GATE(_id, cname, pname, f, o, b, gf) \ f 698 drivers/clk/rockchip/clk.h .flags = f, \ f 727 drivers/clk/rockchip/clk.h #define FACTOR(_id, cname, pname, f, fm, fd) \ f 734 drivers/clk/rockchip/clk.h .flags = f, \ f 739 drivers/clk/rockchip/clk.h #define FACTOR_GATE(_id, cname, pname, f, fm, fd, go, gb, gf) \ f 746 drivers/clk/rockchip/clk.h .flags = f, \ f 754 drivers/clk/rockchip/clk.h #define COMPOSITE_HALFDIV(_id, cname, pnames, f, mo, ms, mw, mf, ds, dw,\ f 762 drivers/clk/rockchip/clk.h .flags = f, \ f 775 drivers/clk/rockchip/clk.h #define COMPOSITE_NOGATE_HALFDIV(_id, cname, pnames, f, mo, ms, mw, mf, \ f 783 drivers/clk/rockchip/clk.h .flags = f, \ f 794 drivers/clk/rockchip/clk.h #define COMPOSITE_NOMUX_HALFDIV(_id, cname, pname, f, mo, ds, dw, df, \ f 802 drivers/clk/rockchip/clk.h .flags = f, \ f 812 drivers/clk/rockchip/clk.h #define DIV_HALF(_id, cname, pname, f, o, s, w, df) \ f 819 drivers/clk/rockchip/clk.h .flags = f, \ f 67 drivers/clk/samsung/clk.h #define FRATE(_id, cname, pname, f, frate) \ f 72 drivers/clk/samsung/clk.h .flags = f, \ f 94 drivers/clk/samsung/clk.h #define FFACTOR(_id, cname, pname, m, d, f) \ f 101 drivers/clk/samsung/clk.h .flags = f, \ f 128 drivers/clk/samsung/clk.h #define __MUX(_id, cname, pnames, o, s, w, f, mf) \ f 134 drivers/clk/samsung/clk.h .flags = (f) | CLK_SET_RATE_NO_REPARENT, \ f 144 drivers/clk/samsung/clk.h #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ f 145 drivers/clk/samsung/clk.h __MUX(_id, cname, pnames, o, s, w, f, mf) f 169 drivers/clk/samsung/clk.h #define __DIV(_id, cname, pname, o, s, w, f, df, t) \ f 174 drivers/clk/samsung/clk.h .flags = f, \ f 185 drivers/clk/samsung/clk.h #define DIV_F(_id, cname, pname, o, s, w, f, df) \ f 186 drivers/clk/samsung/clk.h __DIV(_id, cname, pname, o, s, w, f, df, NULL) f 211 drivers/clk/samsung/clk.h #define __GATE(_id, cname, pname, o, b, f, gf) \ f 216 drivers/clk/samsung/clk.h .flags = f, \ f 222 drivers/clk/samsung/clk.h #define GATE(_id, cname, pname, o, b, f, gf) \ f 223 drivers/clk/samsung/clk.h __GATE(_id, cname, pname, o, b, f, gf) f 96 drivers/clk/ti/dpll3xxx.c u16 f = 0; f 103 drivers/clk/ti/dpll3xxx.c f = 0x3; f 105 drivers/clk/ti/dpll3xxx.c f = 0x4; f 107 drivers/clk/ti/dpll3xxx.c f = 0x5; f 109 drivers/clk/ti/dpll3xxx.c f = 0x6; f 111 drivers/clk/ti/dpll3xxx.c f = 0x7; f 113 drivers/clk/ti/dpll3xxx.c f = 0xB; f 115 drivers/clk/ti/dpll3xxx.c f = 0xC; f 117 drivers/clk/ti/dpll3xxx.c f = 0xD; f 119 drivers/clk/ti/dpll3xxx.c f = 0xE; f 121 drivers/clk/ti/dpll3xxx.c f = 0xF; f 125 drivers/clk/ti/dpll3xxx.c return f; f 50 drivers/clk/versatile/icst.c unsigned long f; f 58 drivers/clk/versatile/icst.c f = freq * p->s2div[p->idx2s[i]]; f 60 drivers/clk/versatile/icst.c if (f > p->vco_min && f <= p->vco_max) f 81 drivers/clk/versatile/icst.c vd = (f + fref_div / 2) / fref_div; f 86 drivers/clk/versatile/icst.c f_diff = f_pll - f; f 101 drivers/clk/zynqmp/pll.c long rate_div, f; f 105 drivers/clk/zynqmp/pll.c f = rate_div % FRAC_DIV; f 106 drivers/clk/zynqmp/pll.c zynqmp_pll_set_mode(hw, !!f); f 178 drivers/clk/zynqmp/pll.c long rate_div, frac, m, f; f 185 drivers/clk/zynqmp/pll.c f = rate_div % FRAC_DIV; f 188 drivers/clk/zynqmp/pll.c frac = (parent_rate * f) / FRAC_DIV; f 195 drivers/clk/zynqmp/pll.c eemi_ops->ioctl(0, IOCTL_SET_PLL_FRAC_DATA, clk_id, f, NULL); f 582 drivers/clocksource/sh_cmt.c unsigned long f; f 586 drivers/clocksource/sh_cmt.c f = ch->flags & (FLAG_CLOCKEVENT | FLAG_CLOCKSOURCE); f 589 drivers/clocksource/sh_cmt.c if (f && !(ch->flags & (FLAG_CLOCKEVENT | FLAG_CLOCKSOURCE))) f 45 drivers/cpufreq/bmips-cpufreq.c #define BMIPS(c, t, m, f) { \ f 49 drivers/cpufreq/bmips-cpufreq.c .max_freqs = (f), \ f 175 drivers/cpufreq/cpufreq_governor.h void od_register_powersave_bias_handler(unsigned int (*f) f 448 drivers/cpufreq/cpufreq_ondemand.c void od_register_powersave_bias_handler(unsigned int (*f) f 452 drivers/cpufreq/cpufreq_ondemand.c od_ops.powersave_bias_target = f; f 156 drivers/cpufreq/powernow-k6.c unsigned int i, f; f 207 drivers/cpufreq/powernow-k6.c f = pos->driver_data; f 208 drivers/cpufreq/powernow-k6.c if (f > max_multiplier) f 211 drivers/cpufreq/powernow-k6.c pos->frequency = busfreq * f; f 105 drivers/cpufreq/powernow-k7.c unsigned int f = fsb / 1000; f 107 drivers/cpufreq/powernow-k7.c delta = (fsbspeed > f) ? fsbspeed - f : f - fsbspeed; f 30 drivers/cpufreq/s3c24xx-cpufreq-debugfs.c static void show_max(struct seq_file *seq, struct s3c_freq *f) f 33 drivers/cpufreq/s3c24xx-cpufreq-debugfs.c f->fclk, f->hclk, f->pclk, f->armclk); f 461 drivers/crypto/caam/pdb.h u8 *f; f 474 drivers/crypto/caam/pdb.h u8 *f; f 50 drivers/crypto/cavium/nitrox/nitrox_aead.c flags.f = be64_to_cpu(fctx->flags.f); f 52 drivers/crypto/cavium/nitrox/nitrox_aead.c fctx->flags.f = cpu_to_be64(flags.f); f 68 drivers/crypto/cavium/nitrox/nitrox_aead.c flags.f = be64_to_cpu(fctx->flags.f); f 70 drivers/crypto/cavium/nitrox/nitrox_aead.c fctx->flags.f = cpu_to_be64(flags.f); f 270 drivers/crypto/cavium/nitrox/nitrox_aead.c nctx->u.fctx->flags.f = 0; f 291 drivers/crypto/cavium/nitrox/nitrox_aead.c flags->f = be64_to_cpu(flags->f); f 149 drivers/crypto/cavium/nitrox/nitrox_req.h __be64 f; f 113 drivers/crypto/cavium/nitrox/nitrox_skcipher.c flags->f = 0; f 117 drivers/crypto/cavium/nitrox/nitrox_skcipher.c flags->f = cpu_to_be64(*(u64 *)&flags->w0); f 15 drivers/crypto/rockchip/rk3288_crypto.h #define _SBF(v, f) ((v) << (f)) f 55 drivers/dma-buf/dma-fence-array.c static void dma_fence_array_cb_func(struct dma_fence *f, f 62 drivers/dma-buf/dma-fence-array.c dma_fence_array_set_pending_error(array, f->error); f 134 drivers/dma-buf/dma-fence-chain.c static void dma_fence_chain_cb(struct dma_fence *f, struct dma_fence_cb *cb) f 140 drivers/dma-buf/dma-fence-chain.c dma_fence_put(f); f 150 drivers/dma-buf/dma-fence-chain.c struct dma_fence *f = chain ? chain->fence : fence; f 152 drivers/dma-buf/dma-fence-chain.c dma_fence_get(f); f 153 drivers/dma-buf/dma-fence-chain.c if (!dma_fence_add_callback(f, &head->cb, dma_fence_chain_cb)) { f 157 drivers/dma-buf/dma-fence-chain.c dma_fence_put(f); f 167 drivers/dma-buf/dma-fence-chain.c struct dma_fence *f = chain ? chain->fence : fence; f 169 drivers/dma-buf/dma-fence-chain.c if (!dma_fence_is_signaled(f)) { f 21 drivers/dma-buf/selftest.c #define selftest(n, f) [__idx_##n] = { .name = #n, .func = f }, f 46 drivers/dma-buf/seqno-fence.c struct seqno_fence *f = to_seqno_fence(fence); f 48 drivers/dma-buf/seqno-fence.c dma_buf_put(f->sync_buf); f 49 drivers/dma-buf/seqno-fence.c if (f->ops->release) f 50 drivers/dma-buf/seqno-fence.c f->ops->release(fence); f 52 drivers/dma-buf/seqno-fence.c dma_fence_free(&f->base); f 58 drivers/dma-buf/seqno-fence.c struct seqno_fence *f = to_seqno_fence(fence); f 60 drivers/dma-buf/seqno-fence.c return f->ops->wait(fence, intr, timeout); f 22 drivers/dma-buf/st-dma-fence.c } *to_mock_fence(struct dma_fence *f) { f 23 drivers/dma-buf/st-dma-fence.c return container_of(f, struct mock_fence, base); f 26 drivers/dma-buf/st-dma-fence.c static const char *mock_name(struct dma_fence *f) f 31 drivers/dma-buf/st-dma-fence.c static void mock_fence_release(struct dma_fence *f) f 33 drivers/dma-buf/st-dma-fence.c kmem_cache_free(slab_fences, to_mock_fence(f)); f 41 drivers/dma-buf/st-dma-fence.c static void mock_wakeup(struct dma_fence *f, struct dma_fence_cb *cb) f 46 drivers/dma-buf/st-dma-fence.c static long mock_wait(struct dma_fence *f, bool intr, long timeout) f 51 drivers/dma-buf/st-dma-fence.c if (dma_fence_add_callback(f, &cb.cb, mock_wakeup)) f 57 drivers/dma-buf/st-dma-fence.c if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &f->flags)) f 67 drivers/dma-buf/st-dma-fence.c if (!dma_fence_remove_callback(f, &cb.cb)) f 85 drivers/dma-buf/st-dma-fence.c struct mock_fence *f; f 87 drivers/dma-buf/st-dma-fence.c f = kmem_cache_alloc(slab_fences, GFP_KERNEL); f 88 drivers/dma-buf/st-dma-fence.c if (!f) f 91 drivers/dma-buf/st-dma-fence.c spin_lock_init(&f->lock); f 92 drivers/dma-buf/st-dma-fence.c dma_fence_init(&f->base, &mock_ops, &f->lock, 0, 0); f 94 drivers/dma-buf/st-dma-fence.c return &f->base; f 99 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 101 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 102 drivers/dma-buf/st-dma-fence.c if (!f) f 105 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 106 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 113 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 116 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 117 drivers/dma-buf/st-dma-fence.c if (!f) f 120 drivers/dma-buf/st-dma-fence.c if (dma_fence_is_signaled(f)) { f 125 drivers/dma-buf/st-dma-fence.c if (dma_fence_signal(f)) { f 130 drivers/dma-buf/st-dma-fence.c if (!dma_fence_is_signaled(f)) { f 135 drivers/dma-buf/st-dma-fence.c if (!dma_fence_signal(f)) { f 142 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 151 drivers/dma-buf/st-dma-fence.c static void simple_callback(struct dma_fence *f, struct dma_fence_cb *cb) f 159 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 162 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 163 drivers/dma-buf/st-dma-fence.c if (!f) f 166 drivers/dma-buf/st-dma-fence.c if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { f 171 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 179 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 186 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 189 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 190 drivers/dma-buf/st-dma-fence.c if (!f) f 193 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 195 drivers/dma-buf/st-dma-fence.c if (!dma_fence_add_callback(f, &cb.cb, simple_callback)) { f 200 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 208 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 215 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 218 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 219 drivers/dma-buf/st-dma-fence.c if (!f) f 222 drivers/dma-buf/st-dma-fence.c if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { f 227 drivers/dma-buf/st-dma-fence.c if (!dma_fence_remove_callback(f, &cb.cb)) { f 232 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 240 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 247 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 250 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 251 drivers/dma-buf/st-dma-fence.c if (!f) f 254 drivers/dma-buf/st-dma-fence.c if (dma_fence_add_callback(f, &cb.cb, simple_callback)) { f 259 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 265 drivers/dma-buf/st-dma-fence.c if (dma_fence_remove_callback(f, &cb.cb)) { f 272 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 278 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 281 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 282 drivers/dma-buf/st-dma-fence.c if (!f) f 285 drivers/dma-buf/st-dma-fence.c if (dma_fence_get_status(f)) { f 290 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 291 drivers/dma-buf/st-dma-fence.c if (!dma_fence_get_status(f)) { f 298 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 304 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 307 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 308 drivers/dma-buf/st-dma-fence.c if (!f) f 311 drivers/dma-buf/st-dma-fence.c dma_fence_set_error(f, -EIO); f 313 drivers/dma-buf/st-dma-fence.c if (dma_fence_get_status(f)) { f 318 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 319 drivers/dma-buf/st-dma-fence.c if (dma_fence_get_status(f) != -EIO) { f 321 drivers/dma-buf/st-dma-fence.c dma_fence_get_status(f)); f 327 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 333 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 336 drivers/dma-buf/st-dma-fence.c f = mock_fence(); f 337 drivers/dma-buf/st-dma-fence.c if (!f) f 340 drivers/dma-buf/st-dma-fence.c if (dma_fence_wait_timeout(f, false, 0) != -ETIME) { f 345 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 347 drivers/dma-buf/st-dma-fence.c if (dma_fence_wait_timeout(f, false, 0) != 0) { f 354 drivers/dma-buf/st-dma-fence.c dma_fence_signal(f); f 355 drivers/dma-buf/st-dma-fence.c dma_fence_put(f); f 361 drivers/dma-buf/st-dma-fence.c struct dma_fence *f; f 368 drivers/dma-buf/st-dma-fence.c dma_fence_signal(wt->f); f 378 drivers/dma-buf/st-dma-fence.c wt.f = mock_fence(); f 379 drivers/dma-buf/st-dma-fence.c if (!wt.f) f 382 drivers/dma-buf/st-dma-fence.c if (dma_fence_wait_timeout(wt.f, false, 1) != -ETIME) { f 389 drivers/dma-buf/st-dma-fence.c if (dma_fence_wait_timeout(wt.f, false, 2) == -ETIME) { f 403 drivers/dma-buf/st-dma-fence.c dma_fence_signal(wt.f); f 404 drivers/dma-buf/st-dma-fence.c dma_fence_put(wt.f); f 410 drivers/dma-buf/st-dma-fence.c struct dma_fence *f[64]; f 414 drivers/dma-buf/st-dma-fence.c for (i = 0; i < ARRAY_SIZE(f); i++) { f 415 drivers/dma-buf/st-dma-fence.c f[i] = dma_fence_get_stub(); f 416 drivers/dma-buf/st-dma-fence.c if (!dma_fence_is_signaled(f[i])) { f 425 drivers/dma-buf/st-dma-fence.c dma_fence_put(f[i]); f 438 drivers/dma-buf/st-dma-fence.c static void __wait_for_callbacks(struct dma_fence *f) f 440 drivers/dma-buf/st-dma-fence.c spin_lock_irq(f->lock); f 441 drivers/dma-buf/st-dma-fence.c spin_unlock_irq(f->lock); f 510 drivers/dma-buf/st-dma-fence.c struct dma_fence __rcu *f[2] = {}; f 519 drivers/dma-buf/st-dma-fence.c t[i].fences = f; f 46 drivers/dma-buf/sync_file.c static void fence_check_cb_func(struct dma_fence *f, struct dma_fence_cb *cb) f 22 drivers/edac/mce_amd.c void amd_register_ecc_decoder(void (*f)(int, struct mce *)) f 24 drivers/edac/mce_amd.c decode_dram_ecc = f; f 28 drivers/edac/mce_amd.c void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)) f 31 drivers/edac/mce_amd.c WARN_ON(decode_dram_ecc != f); f 81 drivers/edac/mce_amd.h void amd_register_ecc_decoder(void (*f)(int, struct mce *)); f 82 drivers/edac/mce_amd.h void amd_unregister_ecc_decoder(void (*f)(int, struct mce *)); f 44 drivers/firewire/ohci.c #define ohci_info(ohci, f, args...) dev_info(ohci->card.device, f, ##args) f 45 drivers/firewire/ohci.c #define ohci_notice(ohci, f, args...) dev_notice(ohci->card.device, f, ##args) f 46 drivers/firewire/ohci.c #define ohci_err(ohci, f, args...) dev_err(ohci->card.device, f, ##args) f 95 drivers/firmware/dmi-id.c const struct mafield *f; f 100 drivers/firmware/dmi-id.c for (f = fields; f->prefix && left > 0; f++) { f 104 drivers/firmware/dmi-id.c c = dmi_get_system_info(f->field); f 112 drivers/firmware/dmi-id.c l = scnprintf(p, left, ":%s%s", f->prefix, t); f 910 drivers/firmware/dmi_scan.c int f = DMI_PRODUCT_SERIAL; f 911 drivers/firmware/dmi_scan.c if (dmi_ident[f] && strstr(dmi_ident[f], str)) f 925 drivers/firmware/dmi_scan.c int f = fields[i]; f 926 drivers/firmware/dmi_scan.c if (dmi_ident[f] && strstr(dmi_ident[f], str)) f 1090 drivers/firmware/dmi_scan.c bool dmi_match(enum dmi_field f, const char *str) f 1092 drivers/firmware/dmi_scan.c const char *info = dmi_get_system_info(f); f 42 drivers/firmware/efi/runtime-wrappers.c #define efi_call_virt(f, args...) \ f 43 drivers/firmware/efi/runtime-wrappers.c efi_call_virt_pointer(efi.systab->runtime, f, args) f 44 drivers/firmware/efi/runtime-wrappers.c #define __efi_call_virt(f, args...) \ f 45 drivers/firmware/efi/runtime-wrappers.c __efi_call_virt_pointer(efi.systab->runtime, f, args) f 29 drivers/firmware/qcom_scm-64.c #define QCOM_SCM_ARGS_IMPL(num, a, b, c, d, e, f, g, h, i, j, ...) (\ f 35 drivers/firmware/qcom_scm-64.c (((f) & 0x3) << 14) | \ f 322 drivers/firmware/qemu_fw_cfg.c static ssize_t fw_cfg_write_vmcoreinfo(const struct fw_cfg_file *f) f 339 drivers/firmware/qemu_fw_cfg.c ret = fw_cfg_write_blob(be16_to_cpu(f->select), data, f 581 drivers/firmware/qemu_fw_cfg.c static int fw_cfg_register_file(const struct fw_cfg_file *f) f 588 drivers/firmware/qemu_fw_cfg.c strcmp(f->name, FW_CFG_VMCOREINFO_FILENAME) == 0 && f 590 drivers/firmware/qemu_fw_cfg.c if (fw_cfg_write_vmcoreinfo(f) < 0) f 601 drivers/firmware/qemu_fw_cfg.c entry->size = be32_to_cpu(f->size); f 602 drivers/firmware/qemu_fw_cfg.c entry->select = be16_to_cpu(f->select); f 603 drivers/firmware/qemu_fw_cfg.c memcpy(entry->name, f->name, FW_CFG_MAX_FILE_PATH); f 711 drivers/fpga/dfl-afu-main.c struct dfl_feature *f; f 738 drivers/fpga/dfl-afu-main.c dfl_fpga_dev_for_each_feature(pdata, f) f 739 drivers/fpga/dfl-afu-main.c if (f->ops && f->ops->ioctl) { f 740 drivers/fpga/dfl-afu-main.c ret = f->ops->ioctl(pdev, f, cmd, arg); f 243 drivers/fpga/dfl-fme-main.c struct dfl_feature *f; f 260 drivers/fpga/dfl-fme-main.c dfl_fpga_dev_for_each_feature(pdata, f) { f 261 drivers/fpga/dfl-fme-main.c if (f->ops && f->ops->ioctl) { f 262 drivers/fpga/dfl-fme-main.c ret = f->ops->ioctl(pdev, f, cmd, arg); f 433 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct dma_fence *f); f 436 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct dma_fence **f); f 152 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c static void amdgpu_atif_parse_functions(struct amdgpu_atif_functions *f, u32 mask) f 154 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->system_params = mask & ATIF_GET_SYSTEM_PARAMETERS_SUPPORTED; f 155 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->sbios_requests = mask & ATIF_GET_SYSTEM_BIOS_REQUESTS_SUPPORTED; f 156 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->temperature_change = mask & ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED; f 157 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->query_backlight_transfer_characteristics = f 159 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->ready_to_undock = mask & ATIF_READY_TO_UNDOCK_NOTIFICATION_SUPPORTED; f 160 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->external_gpu_information = mask & ATIF_GET_EXTERNAL_GPU_INFORMATION_SUPPORTED; f 545 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c static void amdgpu_atcs_parse_functions(struct amdgpu_atcs_functions *f, u32 mask) f 547 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->get_ext_state = mask & ATCS_GET_EXTERNAL_STATE_SUPPORTED; f 548 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->pcie_perf_req = mask & ATCS_PCIE_PERFORMANCE_REQUEST_SUPPORTED; f 549 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->pcie_dev_rdy = mask & ATCS_PCIE_DEVICE_READY_NOTIFICATION_SUPPORTED; f 550 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c f->pcie_bus_width = mask & ATCS_SET_PCIE_BUS_WIDTH_SUPPORTED; f 608 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c struct dma_fence *f = NULL; f 640 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c ret = amdgpu_ib_schedule(ring, 1, ib, job, &f); f 646 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c ret = dma_fence_wait(f, false); f 649 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c dma_fence_put(f); f 688 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm) f 702 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f) f 97 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm); f 98 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f); f 83 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c struct amdgpu_amdkfd_fence *to_amdgpu_amdkfd_fence(struct dma_fence *f) f 87 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c if (!f) f 90 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c fence = container_of(f, struct amdgpu_amdkfd_fence, base); f 91 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c if (fence && f->ops == &amdkfd_fence_ops) f 97 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c static const char *amdkfd_fence_get_driver_name(struct dma_fence *f) f 102 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c static const char *amdkfd_fence_get_timeline_name(struct dma_fence *f) f 104 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); f 115 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c static bool amdkfd_fence_enable_signaling(struct dma_fence *f) f 117 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); f 122 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c if (dma_fence_is_signaled(f)) f 125 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c if (!kgd2kfd_schedule_evict_and_restore_process(fence->mm, f)) f 139 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c static void amdkfd_fence_release(struct dma_fence *f) f 141 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); f 150 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c kfree_rcu(f, rcu); f 160 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c bool amdkfd_fence_check_mm(struct dma_fence *f, struct mm_struct *mm) f 162 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c struct amdgpu_amdkfd_fence *fence = to_amdgpu_amdkfd_fence(f); f 241 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct dma_fence *f; f 243 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c f = rcu_dereference_protected(old->shared[i], f 246 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c if (f->context == ef->base.context) f 247 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c RCU_INIT_POINTER(new->shared[--j], f); f 249 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c RCU_INIT_POINTER(new->shared[k++], f); f 263 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c struct dma_fence *f; f 265 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c f = rcu_dereference_protected(new->shared[i], f 267 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c dma_fence_put(f); f 155 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c static void amdgpu_atpx_parse_functions(struct amdgpu_atpx_functions *f, u32 mask) f 157 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->px_params = mask & ATPX_GET_PX_PARAMETERS_SUPPORTED; f 158 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->power_cntl = mask & ATPX_POWER_CONTROL_SUPPORTED; f 159 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->disp_mux_cntl = mask & ATPX_DISPLAY_MUX_CONTROL_SUPPORTED; f 160 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->i2c_mux_cntl = mask & ATPX_I2C_MUX_CONTROL_SUPPORTED; f 161 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->switch_start = mask & ATPX_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION_SUPPORTED; f 162 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->switch_end = mask & ATPX_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION_SUPPORTED; f 163 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->disp_connectors_mapping = mask & ATPX_GET_DISPLAY_CONNECTORS_MAPPING_SUPPORTED; f 164 drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c f->disp_detection_ports = mask & ATPX_GET_DISPLAY_DETECTION_PORTS_SUPPORTED; f 874 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct dma_fence *f; f 882 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c f = bo_va->last_pt_update; f 883 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c r = amdgpu_sync_fence(adev, &p->job->sync, f, false); f 889 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c struct dma_fence *f; f 904 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c f = bo_va->last_pt_update; f 905 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c r = amdgpu_sync_fence(adev, &p->job->sync, f, false); f 102 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static int amdgpu_debugfs_process_reg_op(bool read, struct file *f, f 105 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 202 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_read(struct file *f, char __user *buf, f 205 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c return amdgpu_debugfs_process_reg_op(true, f, buf, size, pos); f 211 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_write(struct file *f, const char __user *buf, f 214 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c return amdgpu_debugfs_process_reg_op(false, f, (char __user *)buf, size, pos); f 230 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_pcie_read(struct file *f, char __user *buf, f 233 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 269 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_pcie_write(struct file *f, const char __user *buf, f 272 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 309 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_didt_read(struct file *f, char __user *buf, f 312 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 348 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_didt_write(struct file *f, const char __user *buf, f 351 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 388 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_smc_read(struct file *f, char __user *buf, f 391 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 427 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_regs_smc_write(struct file *f, const char __user *buf, f 430 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 469 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_gca_config_read(struct file *f, char __user *buf, f 472 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 558 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_sensor_read(struct file *f, char __user *buf, f 561 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 617 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_wave_read(struct file *f, char __user *buf, f 620 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = f->f_inode->i_private; f 689 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c static ssize_t amdgpu_debugfs_gpr_read(struct file *f, char __user *buf, f 692 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_device *adev = f->f_inode->i_private; f 43 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c static void amdgpu_display_flip_callback(struct dma_fence *f, f 49 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c dma_fence_put(f); f 54 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct dma_fence **f) f 56 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct dma_fence *fence= *f; f 61 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c *f = NULL; f 1310 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c static int amdgpu_flush(struct file *f, fl_owner_t id) f 1312 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c struct drm_file *file_priv = f->private_data; f 80 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static inline struct amdgpu_fence *to_amdgpu_fence(struct dma_fence *f) f 82 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence *__f = container_of(f, struct amdgpu_fence, base); f 136 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c int amdgpu_fence_emit(struct amdgpu_ring *ring, struct dma_fence **f, f 179 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c *f = &fence->base; f 632 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static const char *amdgpu_fence_get_timeline_name(struct dma_fence *f) f 634 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence *fence = to_amdgpu_fence(f); f 646 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static bool amdgpu_fence_enable_signaling(struct dma_fence *f) f 648 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence *fence = to_amdgpu_fence(f); f 668 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); f 669 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence *fence = to_amdgpu_fence(f); f 681 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c static void amdgpu_fence_release(struct dma_fence *f) f 683 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c call_rcu(&f->rcu, amdgpu_fence_free); f 96 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c struct dma_fence *f) f 98 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c amdgpu_sa_bo_free(adev, &ib->sa_bo, f); f 124 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c struct dma_fence **f) f 251 drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c r = amdgpu_fence_emit(ring, f, fence_flags); f 108 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c struct dma_fence *f; f 112 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c f = job->base.s_fence ? &job->base.s_fence->finished : job->fence; f 115 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c amdgpu_ib_free(ring->adev, &job->ibs[i], f); f 143 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c void *owner, struct dma_fence **f) f 149 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c if (!f) f 157 drivers/gpu/drm/amd/amdgpu/amdgpu_job.c *f = dma_fence_get(&job->base.s_fence->finished); f 76 drivers/gpu/drm/amd/amdgpu/amdgpu_job.h void *owner, struct dma_fence **f); f 68 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c static ssize_t amdgpu_ras_debugfs_read(struct file *f, char __user *buf, f 71 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct ras_manager *obj = (struct ras_manager *)file_inode(f)->i_private; f 118 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c static int amdgpu_ras_debugfs_ctrl_parse_data(struct file *f, f 245 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c static ssize_t amdgpu_ras_debugfs_ctrl_write(struct file *f, const char __user *buf, f 248 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c struct amdgpu_device *adev = (struct amdgpu_device *)file_inode(f)->i_private; f 252 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c ret = amdgpu_ras_debugfs_ctrl_parse_data(f, buf, size, pos, &data); f 753 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c static ssize_t amdgpu_ras_sysfs_badpages_read(struct file *f, f 436 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c static ssize_t amdgpu_debugfs_ring_read(struct file *f, char __user *buf, f 439 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c struct amdgpu_ring *ring = file_inode(f)->i_private; f 59 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c struct fd f = fdget(fd); f 65 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c if (!f.file) f 68 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c r = amdgpu_file_to_fpriv(f.file, &fpriv); f 70 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c fdput(f); f 77 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c fdput(f); f 86 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c struct fd f = fdget(fd); f 91 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c if (!f.file) f 94 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c r = amdgpu_file_to_fpriv(f.file, &fpriv); f 96 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c fdput(f); f 103 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c fdput(f); f 109 drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c fdput(f); f 65 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f) f 67 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct drm_sched_fence *s_fence = to_drm_sched_fence(f); f 86 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c static void *amdgpu_sync_get_owner(struct dma_fence *f) f 91 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (!f) f 94 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c s_fence = to_drm_sched_fence(f); f 98 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c kfd_fence = to_amdgpu_amdkfd_fence(f); f 132 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c static bool amdgpu_sync_add_later(struct amdgpu_sync *sync, struct dma_fence *f, bool explicit) f 136 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c hash_for_each_possible(sync->fences, e, node, f->context) { f 137 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (unlikely(e->fence->context != f->context)) f 140 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_keep_later(&e->fence, f); f 158 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f, bool explicit) f 162 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (!f) f 164 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (amdgpu_sync_same_dev(adev, f) && f 165 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_get_owner(f) == AMDGPU_FENCE_OWNER_VM) f 166 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c amdgpu_sync_keep_later(&sync->last_vm_update, f); f 168 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (amdgpu_sync_add_later(sync, f, explicit)) f 177 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c hash_add(sync->fences, &e->node, f->context); f 178 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c e->fence = dma_fence_get(f); f 197 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f; f 206 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c f = dma_resv_get_excl(resv); f 207 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c r = amdgpu_sync_fence(adev, sync, f, false); f 214 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c f = rcu_dereference_protected(flist->shared[i], f 219 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c fence_owner = amdgpu_sync_get_owner(f); f 224 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (amdgpu_sync_same_dev(adev, f)) { f 242 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c r = amdgpu_sync_fence(adev, sync, f, false); f 266 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f = e->fence; f 267 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct drm_sched_fence *s_fence = to_drm_sched_fence(f); f 269 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (dma_fence_is_signaled(f)) { f 271 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c dma_fence_put(f); f 287 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c return f; f 305 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f; f 309 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c f = e->fence; f 316 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (!dma_fence_is_signaled(f)) f 317 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c return f; f 319 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c dma_fence_put(f); f 337 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c struct dma_fence *f; f 341 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c f = e->fence; f 342 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c if (!dma_fence_is_signaled(f)) { f 343 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c r = amdgpu_sync_fence(NULL, clone, f, e->explicit); f 348 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c dma_fence_put(f); f 44 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h struct dma_fence *f, bool explicit); f 308 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct dma_fence **f) f 413 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (f) f 414 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c *f = dma_fence_get(fence); f 1480 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct dma_fence *f; f 1497 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c f = rcu_dereference_protected(flist->shared[i], f 1499 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c if (amdkfd_fence_check_mm(f, current->mm)) f 2161 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static ssize_t amdgpu_ttm_vram_read(struct file *f, char __user *buf, f 2164 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct amdgpu_device *adev = file_inode(f)->i_private; f 2205 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static ssize_t amdgpu_ttm_vram_write(struct file *f, const char __user *buf, f 2208 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct amdgpu_device *adev = file_inode(f)->i_private; f 2256 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static ssize_t amdgpu_ttm_gtt_read(struct file *f, char __user *buf, f 2259 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct amdgpu_device *adev = file_inode(f)->i_private; f 2310 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static ssize_t amdgpu_iomem_read(struct file *f, char __user *buf, f 2313 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct amdgpu_device *adev = file_inode(f)->i_private; f 2366 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c static ssize_t amdgpu_iomem_write(struct file *f, const char __user *buf, f 2369 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c struct amdgpu_device *adev = file_inode(f)->i_private; f 96 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h struct dma_fence **f); f 1023 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c struct dma_fence *f = NULL; f 1084 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c r = amdgpu_job_submit_direct(job, ring, &f); f 1094 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c AMDGPU_FENCE_OWNER_UNDEFINED, &f); f 1099 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c amdgpu_bo_fence(bo, f, false); f 1104 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c *fence = dma_fence_get(f); f 1105 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c dma_fence_put(f); f 438 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c struct dma_fence *f = NULL; f 487 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c r = amdgpu_job_submit_direct(job, ring, &f); f 492 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c *fence = dma_fence_get(f); f 493 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c dma_fence_put(f); f 517 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c struct dma_fence *f = NULL; f 548 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c r = amdgpu_job_submit_direct(job, ring, &f); f 551 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c AMDGPU_FENCE_OWNER_UNDEFINED, &f); f 556 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c *fence = dma_fence_get(f); f 557 drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c dma_fence_put(f); f 412 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c struct dma_fence *f = NULL; f 436 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c r = amdgpu_job_submit_direct(job, ring, &f); f 440 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c amdgpu_bo_fence(bo, f, false); f 445 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c *fence = dma_fence_get(f); f 446 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c dma_fence_put(f); f 578 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c struct dma_fence *f = NULL; f 609 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c r = amdgpu_job_submit_direct(job, ring, &f); f 614 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c *fence = dma_fence_get(f); f 615 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c dma_fence_put(f); f 631 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c struct dma_fence *f = NULL; f 662 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c r = amdgpu_job_submit_direct(job, ring, &f); f 667 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c *fence = dma_fence_get(f); f 668 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c dma_fence_put(f); f 745 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c struct dma_fence *f = NULL; f 763 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c r = amdgpu_job_submit_direct(job, ring, &f); f 768 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c *fence = dma_fence_get(f); f 769 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c dma_fence_put(f); f 27 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.h #define AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX(c,f) (((c & 0xFFFF) << 16) | (f & 0xFFFF)) f 1935 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c struct dma_fence *f = NULL; f 1949 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c init_pte_value, 0, &f); f 1950 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c amdgpu_vm_free_mapping(adev, vm, mapping, f); f 1952 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c dma_fence_put(f); f 1957 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c if (fence && f) { f 1959 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c *fence = f; f 1961 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c dma_fence_put(f); f 99 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c struct dma_fence *f; f 108 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c AMDGPU_FENCE_OWNER_VM, &f); f 112 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c amdgpu_bo_fence(root, f, true); f 114 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c swap(*fence, f); f 115 drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c dma_fence_put(f); f 668 drivers/gpu/drm/amd/amdgpu/cik_sdma.c struct dma_fence *f = NULL; f 693 drivers/gpu/drm/amd/amdgpu/cik_sdma.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 697 drivers/gpu/drm/amd/amdgpu/cik_sdma.c r = dma_fence_wait_timeout(f, false, timeout); f 712 drivers/gpu/drm/amd/amdgpu/cik_sdma.c dma_fence_put(f); f 492 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c struct dma_fence *f = NULL; f 517 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 521 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c r = dma_fence_wait_timeout(f, false, timeout); f 542 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c dma_fence_put(f); f 1907 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c struct dma_fence *f = NULL; f 1927 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 1931 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c r = dma_fence_wait_timeout(f, false, timeout); f 1946 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c dma_fence_put(f); f 2356 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c struct dma_fence *f = NULL; f 2376 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 2380 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c r = dma_fence_wait_timeout(f, false, timeout); f 2395 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c dma_fence_put(f); f 877 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c struct dma_fence *f = NULL; f 902 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 906 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c r = dma_fence_wait_timeout(f, false, timeout); f 922 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c dma_fence_put(f); f 1551 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c struct dma_fence *f = NULL; f 1677 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 1684 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c r = dma_fence_wait(f, false); f 1705 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c dma_fence_put(f); f 343 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c #define AMDGPU_RAS_SUB_BLOCK(subblock, a, b, c, d, e, f, g, h) \ f 348 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c (((e) << 1) | ((f) << 3) | (g) | ((h) << 2)), \ f 880 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c struct dma_fence *f = NULL; f 905 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 909 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c r = dma_fence_wait_timeout(f, false, timeout); f 925 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c dma_fence_put(f); f 4267 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c struct dma_fence *f = NULL; f 4365 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 4372 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c r = dma_fence_wait(f, false); f 4393 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c dma_fence_put(f); f 603 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c struct dma_fence *f = NULL; f 632 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 636 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c r = dma_fence_wait_timeout(f, false, timeout); f 651 drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c dma_fence_put(f); f 875 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c struct dma_fence *f = NULL; f 904 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 908 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c r = dma_fence_wait_timeout(f, false, timeout); f 922 drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c dma_fence_put(f); f 1428 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c struct dma_fence *f = NULL; f 1457 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 1461 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c r = dma_fence_wait_timeout(f, false, timeout); f 1476 drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c dma_fence_put(f); f 956 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c struct dma_fence *f = NULL; f 989 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 993 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c r = dma_fence_wait_timeout(f, false, timeout); f 1013 drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c dma_fence_put(f); f 256 drivers/gpu/drm/amd/amdgpu/si_dma.c struct dma_fence *f = NULL; f 279 drivers/gpu/drm/amd/amdgpu/si_dma.c r = amdgpu_ib_schedule(ring, 1, &ib, NULL, &f); f 283 drivers/gpu/drm/amd/amdgpu/si_dma.c r = dma_fence_wait_timeout(f, false, timeout); f 298 drivers/gpu/drm/amd/amdgpu/si_dma.c dma_fence_put(f); f 215 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c struct dma_fence *f = NULL; f 246 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_job_submit_direct(job, ring, &f); f 251 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c *fence = dma_fence_get(f); f 252 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c dma_fence_put(f); f 278 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c struct dma_fence *f = NULL; f 309 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c r = amdgpu_job_submit_direct(job, ring, &f); f 314 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c *fence = dma_fence_get(f); f 315 drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c dma_fence_put(f); f 223 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c struct dma_fence *f = NULL; f 254 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_job_submit_direct(job, ring, &f); f 259 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c *fence = dma_fence_get(f); f 260 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c dma_fence_put(f); f 285 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c struct dma_fence *f = NULL; f 316 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c r = amdgpu_job_submit_direct(job, ring, &f); f 321 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c *fence = dma_fence_get(f); f 322 drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c dma_fence_put(f); f 904 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct file *f, f 168 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct file *f, unsigned int qid) f 193 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct file *f, f 253 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); f 274 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); f 77 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_link_settings_read(struct file *f, char __user *buf, f 80 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 143 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_link_settings_write(struct file *f, const char __user *buf, f 146 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 280 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_phy_settings_read(struct file *f, char __user *buf, f 283 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 320 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_phy_settings_write(struct file *f, const char __user *buf, f 323 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 480 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_phy_test_pattern_debugfs_write(struct file *f, const char __user *buf, f 483 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 774 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_sdp_message_debugfs_write(struct file *f, const char __user *buf, f 779 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 800 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_dpcd_address_write(struct file *f, const char __user *buf, f 804 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 815 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_dpcd_size_write(struct file *f, const char __user *buf, f 819 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 833 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_dpcd_data_write(struct file *f, const char __user *buf, f 838 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 857 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c static ssize_t dp_dpcd_data_read(struct file *f, char __user *buf, f 862 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_dm_connector *connector = file_inode(f)->i_private; f 965 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct file *f, f 970 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 1004 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct file *f, f 1009 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c struct amdgpu_device *adev = file_inode(f)->i_private; f 88 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h static inline double dml_fmod(double f, int val) f 90 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h return (double) dcn_bw_mod(f, val); f 93 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h static inline double dml_ceil_2(double f) f 95 drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h return (double) dcn_bw_ceil2(f, 2); f 19 drivers/gpu/drm/armada/armada_plane.h #define armada_addr(state, f, p) to_armada_plane_state(state)->addrs[f][p] f 1151 drivers/gpu/drm/drm_atomic_uapi.c struct drm_out_fence_state *f; f 1153 drivers/gpu/drm/drm_atomic_uapi.c f = krealloc(*fence_state, sizeof(**fence_state) * f 1155 drivers/gpu/drm/drm_atomic_uapi.c if (!f) f 1158 drivers/gpu/drm/drm_atomic_uapi.c memset(&f[*num_fences], 0, sizeof(*f)); f 1160 drivers/gpu/drm/drm_atomic_uapi.c f[*num_fences].out_fence_ptr = fence_ptr; f 1161 drivers/gpu/drm/drm_atomic_uapi.c *fence_state = f; f 1167 drivers/gpu/drm/drm_atomic_uapi.c ret = setup_out_fence(&f[(*num_fences)++], fence); f 1181 drivers/gpu/drm/drm_atomic_uapi.c struct drm_out_fence_state *f; f 1192 drivers/gpu/drm/drm_atomic_uapi.c f = krealloc(*fence_state, sizeof(**fence_state) * f 1194 drivers/gpu/drm/drm_atomic_uapi.c if (!f) f 1197 drivers/gpu/drm/drm_atomic_uapi.c memset(&f[*num_fences], 0, sizeof(*f)); f 1199 drivers/gpu/drm/drm_atomic_uapi.c f[*num_fences].out_fence_ptr = fence_ptr; f 1200 drivers/gpu/drm/drm_atomic_uapi.c *fence_state = f; f 1207 drivers/gpu/drm/drm_atomic_uapi.c ret = setup_out_fence(&f[(*num_fences)++], fence); f 1295 drivers/gpu/drm/drm_bufs.c int (*f)(void *, int, struct drm_buf_entry *)) f 1329 drivers/gpu/drm/drm_bufs.c if (f(data, count, from) < 0) f 1484 drivers/gpu/drm/drm_bufs.c int (*f)(void *, int, unsigned long, f 1538 drivers/gpu/drm/drm_bufs.c if (f(data, i, virtual, dma->buflist[i]) < 0) { f 913 drivers/gpu/drm/drm_ioc32.c #define DRM_IOCTL32_DEF(n, f) [DRM_IOCTL_NR(n##32)] = {.fn = f, .name = #n} f 62 drivers/gpu/drm/drm_legacy.h int drm_legacy_resctx(struct drm_device *d, void *v, struct drm_file *f); f 63 drivers/gpu/drm/drm_legacy.h int drm_legacy_addctx(struct drm_device *d, void *v, struct drm_file *f); f 64 drivers/gpu/drm/drm_legacy.h int drm_legacy_getctx(struct drm_device *d, void *v, struct drm_file *f); f 65 drivers/gpu/drm/drm_legacy.h int drm_legacy_switchctx(struct drm_device *d, void *v, struct drm_file *f); f 66 drivers/gpu/drm/drm_legacy.h int drm_legacy_newctx(struct drm_device *d, void *v, struct drm_file *f); f 67 drivers/gpu/drm/drm_legacy.h int drm_legacy_rmctx(struct drm_device *d, void *v, struct drm_file *f); f 69 drivers/gpu/drm/drm_legacy.h int drm_legacy_setsareactx(struct drm_device *d, void *v, struct drm_file *f); f 70 drivers/gpu/drm/drm_legacy.h int drm_legacy_getsareactx(struct drm_device *d, void *v, struct drm_file *f); f 102 drivers/gpu/drm/drm_legacy.h int drm_legacy_addmap_ioctl(struct drm_device *d, void *v, struct drm_file *f); f 103 drivers/gpu/drm/drm_legacy.h int drm_legacy_rmmap_ioctl(struct drm_device *d, void *v, struct drm_file *f); f 105 drivers/gpu/drm/drm_legacy.h int drm_legacy_addbufs(struct drm_device *d, void *v, struct drm_file *f); f 106 drivers/gpu/drm/drm_legacy.h int drm_legacy_infobufs(struct drm_device *d, void *v, struct drm_file *f); f 107 drivers/gpu/drm/drm_legacy.h int drm_legacy_markbufs(struct drm_device *d, void *v, struct drm_file *f); f 108 drivers/gpu/drm/drm_legacy.h int drm_legacy_freebufs(struct drm_device *d, void *v, struct drm_file *f); f 109 drivers/gpu/drm/drm_legacy.h int drm_legacy_mapbufs(struct drm_device *d, void *v, struct drm_file *f); f 110 drivers/gpu/drm/drm_legacy.h int drm_legacy_dma_ioctl(struct drm_device *d, void *v, struct drm_file *f); f 153 drivers/gpu/drm/drm_legacy.h int drm_legacy_lock(struct drm_device *d, void *v, struct drm_file *f); f 154 drivers/gpu/drm/drm_legacy.h int drm_legacy_unlock(struct drm_device *d, void *v, struct drm_file *f); f 172 drivers/gpu/drm/drm_print.c void drm_printf(struct drm_printer *p, const char *f, ...) f 176 drivers/gpu/drm/drm_print.c va_start(args, f); f 177 drivers/gpu/drm/drm_print.c drm_vprintf(p, f, &args); f 560 drivers/gpu/drm/drm_syncobj.c struct fd f = fdget(fd); f 563 drivers/gpu/drm/drm_syncobj.c if (!f.file) f 566 drivers/gpu/drm/drm_syncobj.c if (f.file->f_op != &drm_syncobj_file_fops) { f 567 drivers/gpu/drm/drm_syncobj.c fdput(f); f 572 drivers/gpu/drm/drm_syncobj.c syncobj = f.file->private_data; f 587 drivers/gpu/drm/drm_syncobj.c fdput(f); f 1021 drivers/gpu/drm/etnaviv/etnaviv_gpu.c struct etnaviv_fence *f = to_etnaviv_fence(fence); f 1023 drivers/gpu/drm/etnaviv/etnaviv_gpu.c return dev_name(f->gpu->dev); f 1028 drivers/gpu/drm/etnaviv/etnaviv_gpu.c struct etnaviv_fence *f = to_etnaviv_fence(fence); f 1030 drivers/gpu/drm/etnaviv/etnaviv_gpu.c return (s32)(f->gpu->completed_fence - f->base.seqno) >= 0; f 1035 drivers/gpu/drm/etnaviv/etnaviv_gpu.c struct etnaviv_fence *f = to_etnaviv_fence(fence); f 1037 drivers/gpu/drm/etnaviv/etnaviv_gpu.c kfree_rcu(f, base.rcu); f 1049 drivers/gpu/drm/etnaviv/etnaviv_gpu.c struct etnaviv_fence *f; f 1057 drivers/gpu/drm/etnaviv/etnaviv_gpu.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 1058 drivers/gpu/drm/etnaviv/etnaviv_gpu.c if (!f) f 1061 drivers/gpu/drm/etnaviv/etnaviv_gpu.c f->gpu = gpu; f 1063 drivers/gpu/drm/etnaviv/etnaviv_gpu.c dma_fence_init(&f->base, &etnaviv_fence_ops, &gpu->fence_spinlock, f 1066 drivers/gpu/drm/etnaviv/etnaviv_gpu.c return &f->base; f 16 drivers/gpu/drm/exynos/exynos_drm_gem.h #define IS_NONCONTIG_BUFFER(f) (f & EXYNOS_BO_NONCONTIG) f 112 drivers/gpu/drm/exynos/exynos_drm_ipp.h #define IPP_SRCDST_MFORMAT(f, m, l) \ f 113 drivers/gpu/drm/exynos/exynos_drm_ipp.h .fourcc = DRM_FORMAT_##f, .modifier = m, .limits = l, \ f 118 drivers/gpu/drm/exynos/exynos_drm_ipp.h #define IPP_SRCDST_FORMAT(f, l) IPP_SRCDST_MFORMAT(f, 0, l) f 623 drivers/gpu/drm/exynos/exynos_drm_scaler.c #define IPP_SRCDST_TILE_FORMAT(f, l) \ f 624 drivers/gpu/drm/exynos/exynos_drm_scaler.c IPP_SRCDST_MFORMAT(f, DRM_FORMAT_MOD_SAMSUNG_16_16_TILE, (l)) f 439 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c static inline u16 calc_clkdiv(unsigned long baseclk, unsigned int f) f 441 drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c return (baseclk - f) / f; f 105 drivers/gpu/drm/i2c/ch7006_mode.c #define __MODE(f, hd, vd, ht, vt, hsynp, vsynp, \ f 111 drivers/gpu/drm/i2c/ch7006_mode.c .clock = f, \ f 135 drivers/gpu/drm/i2c/ch7006_mode.c #define MODE(f, hd, vd, ht, vt, hsynp, vsynp, \ f 137 drivers/gpu/drm/i2c/ch7006_mode.c __MODE(f, hd, vd, ht, vt, hsynp, vsynp, subc, scale, \ f 114 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c int freq, fxp, fxp_min, fxp_max, fxp_actual, f = 1; f 158 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c f = clamp(DIV_ROUND_CLOSEST(fxp, 1 << pn), 1, 255); f 159 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c fxp_actual = f << pn; f 170 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c DP_EDP_BACKLIGHT_FREQ_SET, (u8) f) < 0) { f 93 drivers/gpu/drm/i915/display/intel_dsi_vbt.c #define CHV_GPIO_PAD_CFG0(f, i) (0x4400 + (f) * 0x400 + (i) * 8) f 101 drivers/gpu/drm/i915/display/intel_dsi_vbt.c #define CHV_GPIO_PAD_CFG1(f, i) (0x4400 + (f) * 0x400 + (i) * 8 + 4) f 1810 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_F(reg, s, f, am, rm, d, r, w) do { \ f 1812 drivers/gpu/drm/i915/gvt/handlers.c f, s, am, rm, d, r, w); \ f 1823 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_DFH(reg, d, f, r, w) \ f 1824 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(reg, 4, f, 0, 0, d, r, w) f 1832 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RO(reg, d, f, rm, r, w) \ f 1833 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(reg, 4, F_RO | f, 0, rm, d, r, w) f 1835 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_F(prefix, s, f, am, rm, d, r, w) do { \ f 1836 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(prefix(RENDER_RING_BASE), s, f, am, rm, d, r, w); \ f 1837 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(prefix(BLT_RING_BASE), s, f, am, rm, d, r, w); \ f 1838 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(prefix(GEN6_BSD_RING_BASE), s, f, am, rm, d, r, w); \ f 1839 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(prefix(VEBOX_RING_BASE), s, f, am, rm, d, r, w); \ f 1841 drivers/gpu/drm/i915/gvt/handlers.c MMIO_F(prefix(GEN8_BSD2_RING_BASE), s, f, am, rm, d, r, w); \ f 1847 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_DFH(prefix, d, f, r, w) \ f 1848 drivers/gpu/drm/i915/gvt/handlers.c MMIO_RING_F(prefix, 4, f, 0, 0, d, r, w) f 1856 drivers/gpu/drm/i915/gvt/handlers.c #define MMIO_RING_RO(prefix, d, f, rm, r, w) \ f 1857 drivers/gpu/drm/i915/gvt/handlers.c MMIO_RING_F(prefix, 4, F_RO | f, 0, rm, d, r, w) f 189 drivers/gpu/drm/i915/i915_cmd_parser.c #define CMD(op, opm, f, lm, fl, ...) \ f 191 drivers/gpu/drm/i915/i915_cmd_parser.c .flags = (fl) | ((f) ? CMD_DESC_FIXED : 0), \ f 550 drivers/gpu/drm/i915/i915_gpu_error.c void i915_error_printf(struct drm_i915_error_state_buf *e, const char *f, ...) f 554 drivers/gpu/drm/i915/i915_gpu_error.c va_start(args, f); f 555 drivers/gpu/drm/i915/i915_gpu_error.c i915_error_vprintf(e, f, args); f 199 drivers/gpu/drm/i915/i915_gpu_error.h void i915_error_printf(struct drm_i915_error_state_buf *e, const char *f, ...); f 11 drivers/gpu/drm/i915/i915_sw_fence_work.c struct dma_fence_work *f = container_of(work, typeof(*f), work); f 14 drivers/gpu/drm/i915/i915_sw_fence_work.c err = f->ops->work(f); f 16 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_set_error(&f->dma, err); f 17 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_signal(&f->dma); f 18 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_put(&f->dma); f 24 drivers/gpu/drm/i915/i915_sw_fence_work.c struct dma_fence_work *f = container_of(fence, typeof(*f), chain); f 29 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_set_error(&f->dma, fence->error); f 31 drivers/gpu/drm/i915/i915_sw_fence_work.c if (!f->dma.error) { f 32 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_get(&f->dma); f 33 drivers/gpu/drm/i915/i915_sw_fence_work.c queue_work(system_unbound_wq, &f->work); f 35 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_signal(&f->dma); f 40 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_put(&f->dma); f 54 drivers/gpu/drm/i915/i915_sw_fence_work.c struct dma_fence_work *f = container_of(fence, typeof(*f), dma); f 56 drivers/gpu/drm/i915/i915_sw_fence_work.c return f->ops->name ?: "work"; f 61 drivers/gpu/drm/i915/i915_sw_fence_work.c struct dma_fence_work *f = container_of(fence, typeof(*f), dma); f 63 drivers/gpu/drm/i915/i915_sw_fence_work.c if (f->ops->release) f 64 drivers/gpu/drm/i915/i915_sw_fence_work.c f->ops->release(f); f 66 drivers/gpu/drm/i915/i915_sw_fence_work.c i915_sw_fence_fini(&f->chain); f 68 drivers/gpu/drm/i915/i915_sw_fence_work.c BUILD_BUG_ON(offsetof(typeof(*f), dma)); f 69 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_free(&f->dma); f 78 drivers/gpu/drm/i915/i915_sw_fence_work.c void dma_fence_work_init(struct dma_fence_work *f, f 81 drivers/gpu/drm/i915/i915_sw_fence_work.c spin_lock_init(&f->lock); f 82 drivers/gpu/drm/i915/i915_sw_fence_work.c dma_fence_init(&f->dma, &fence_ops, &f->lock, 0, 0); f 83 drivers/gpu/drm/i915/i915_sw_fence_work.c i915_sw_fence_init(&f->chain, fence_notify); f 84 drivers/gpu/drm/i915/i915_sw_fence_work.c INIT_WORK(&f->work, fence_work); f 86 drivers/gpu/drm/i915/i915_sw_fence_work.c f->ops = ops; f 89 drivers/gpu/drm/i915/i915_sw_fence_work.c int dma_fence_work_chain(struct dma_fence_work *f, struct dma_fence *signal) f 94 drivers/gpu/drm/i915/i915_sw_fence_work.c return __i915_sw_fence_await_dma_fence(&f->chain, signal, &f->cb); f 20 drivers/gpu/drm/i915/i915_sw_fence_work.h int (*work)(struct dma_fence_work *f); f 21 drivers/gpu/drm/i915/i915_sw_fence_work.h void (*release)(struct dma_fence_work *f); f 35 drivers/gpu/drm/i915/i915_sw_fence_work.h void dma_fence_work_init(struct dma_fence_work *f, f 37 drivers/gpu/drm/i915/i915_sw_fence_work.h int dma_fence_work_chain(struct dma_fence_work *f, struct dma_fence *signal); f 39 drivers/gpu/drm/i915/i915_sw_fence_work.h static inline void dma_fence_work_commit(struct dma_fence_work *f) f 41 drivers/gpu/drm/i915/i915_sw_fence_work.h i915_sw_fence_commit(&f->chain); f 68 drivers/gpu/drm/i915/selftests/i915_selftest.c #define selftest(n, f) [mock_##n] = { .name = #n, { .mock = f } }, f 74 drivers/gpu/drm/i915/selftests/i915_selftest.c #define selftest(n, f) [live_##n] = { .name = #n, { .live = f } }, f 95 drivers/gpu/drm/lima/lima_gp.c u32 *f = frame->frame; f 98 drivers/gpu/drm/lima/lima_gp.c if (f[LIMA_GP_VSCL_START_ADDR >> 2] > f 99 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_VSCL_END_ADDR >> 2] || f 100 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBUCL_START_ADDR >> 2] > f 101 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBUCL_END_ADDR >> 2] || f 102 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBU_ALLOC_START_ADDR >> 2] > f 103 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBU_ALLOC_END_ADDR >> 2]) f 106 drivers/gpu/drm/lima/lima_gp.c if (f[LIMA_GP_VSCL_START_ADDR >> 2] == f 107 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_VSCL_END_ADDR >> 2] && f 108 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBUCL_START_ADDR >> 2] == f 109 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBUCL_END_ADDR >> 2]) f 120 drivers/gpu/drm/lima/lima_gp.c u32 *f = frame->frame; f 124 drivers/gpu/drm/lima/lima_gp.c if (f[LIMA_GP_VSCL_START_ADDR >> 2] != f 125 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_VSCL_END_ADDR >> 2]) f 127 drivers/gpu/drm/lima/lima_gp.c if (f[LIMA_GP_PLBUCL_START_ADDR >> 2] != f 128 drivers/gpu/drm/lima/lima_gp.c f[LIMA_GP_PLBUCL_END_ADDR >> 2]) f 135 drivers/gpu/drm/lima/lima_gp.c writel(f[i], ip->iomem + LIMA_GP_VSCL_START_ADDR + i * 4); f 284 drivers/gpu/drm/lima/lima_pp.c struct drm_lima_m450_pp_frame *f = task->frame; f 286 drivers/gpu/drm/lima/lima_pp.c num_pp = f->num_pp; f 288 drivers/gpu/drm/lima/lima_pp.c if (f->_pad) f 291 drivers/gpu/drm/lima/lima_pp.c struct drm_lima_m400_pp_frame *f = task->frame; f 293 drivers/gpu/drm/lima/lima_pp.c num_pp = f->num_pp; f 57 drivers/gpu/drm/lima/lima_sched.c struct lima_fence *f = to_lima_fence(fence); f 59 drivers/gpu/drm/lima/lima_sched.c return f->pipe->base.name; f 64 drivers/gpu/drm/lima/lima_sched.c struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); f 65 drivers/gpu/drm/lima/lima_sched.c struct lima_fence *fence = to_lima_fence(f); f 72 drivers/gpu/drm/lima/lima_sched.c struct lima_fence *f = to_lima_fence(fence); f 74 drivers/gpu/drm/lima/lima_sched.c call_rcu(&f->base.rcu, lima_fence_release_rcu); f 155 drivers/gpu/drm/mga/mga_ioc32.c #define DRM_IOCTL32_DEF(n, f)[DRM_##n] = {.fn = f, .name = #n} f 189 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c struct intf_prog_fetch f = { 0 }; f 205 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c f.enable = 1; f 206 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c f.fetch_start = vfp_fetch_start_vsync_counter; f 214 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c phys_enc->hw_intf->ops.setup_prg_fetch(phys_enc->hw_intf, &f); f 21 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h #define dpu_get_dpu_format(f) dpu_get_dpu_format_ext(f, 0) f 149 drivers/gpu/drm/msm/disp/mdp_format.c const struct mdp_format *f = &formats[i]; f 154 drivers/gpu/drm/msm/disp/mdp_format.c if (rgb_only && MDP_FORMAT_IS_YUV(f)) f 157 drivers/gpu/drm/msm/disp/mdp_format.c pixel_formats[i] = f->base.pixel_format; f 168 drivers/gpu/drm/msm/disp/mdp_format.c const struct mdp_format *f = &formats[i]; f 169 drivers/gpu/drm/msm/disp/mdp_format.c if (f->base.pixel_format == format) f 170 drivers/gpu/drm/msm/disp/mdp_format.c return &f->base; f 107 drivers/gpu/drm/msm/msm_fence.c struct msm_fence *f = to_msm_fence(fence); f 108 drivers/gpu/drm/msm/msm_fence.c return f->fctx->name; f 113 drivers/gpu/drm/msm/msm_fence.c struct msm_fence *f = to_msm_fence(fence); f 114 drivers/gpu/drm/msm/msm_fence.c return fence_completed(f->fctx, f->base.seqno); f 126 drivers/gpu/drm/msm/msm_fence.c struct msm_fence *f; f 128 drivers/gpu/drm/msm/msm_fence.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 129 drivers/gpu/drm/msm/msm_fence.c if (!f) f 132 drivers/gpu/drm/msm/msm_fence.c f->fctx = fctx; f 134 drivers/gpu/drm/msm/msm_fence.c dma_fence_init(&f->base, &msm_fence_ops, &fctx->spinlock, f 137 drivers/gpu/drm/msm/msm_fence.c return &f->base; f 42 drivers/gpu/drm/nouveau/include/nvif/object.h #define nvif_rd(a,f,b,c) ({ \ f 46 drivers/gpu/drm/nouveau/include/nvif/object.h _data = f((u8 __iomem *)_object->map.ptr + (c)); \ f 51 drivers/gpu/drm/nouveau/include/nvif/object.h #define nvif_wr(a,f,b,c,d) ({ \ f 54 drivers/gpu/drm/nouveau/include/nvif/object.h f((d), (u8 __iomem *)_object->map.ptr + (c)); \ f 37 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_printk(o,l,p,f,a...) do { \ f 41 drivers/gpu/drm/nouveau/include/nvkm/core/client.h printk(KERN_##p "nouveau: %s:%08x:%08x: "f, _client->name, \ f 44 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_fatal(o,f,a...) nvif_printk((o), FATAL, CRIT, f, ##a) f 45 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_error(o,f,a...) nvif_printk((o), ERROR, ERR, f, ##a) f 46 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_debug(o,f,a...) nvif_printk((o), DEBUG, INFO, f, ##a) f 47 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_trace(o,f,a...) nvif_printk((o), TRACE, INFO, f, ##a) f 48 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_info(o,f,a...) nvif_printk((o), INFO, INFO, f, ##a) f 49 drivers/gpu/drm/nouveau/include/nvkm/core/client.h #define nvif_ioctl(o,f,a...) nvif_trace((o), "ioctl: "f, ##a) f 283 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_printk_(d,l,p,f,a...) do { \ f 286 drivers/gpu/drm/nouveau/include/nvkm/core/device.h dev_##p(_device->dev, f, ##a); \ f 288 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_printk(d,l,p,f,a...) nvdev_printk_((d), NV_DBG_##l, p, f, ##a) f 289 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_fatal(d,f,a...) nvdev_printk((d), FATAL, crit, f, ##a) f 290 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_error(d,f,a...) nvdev_printk((d), ERROR, err, f, ##a) f 291 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_warn(d,f,a...) nvdev_printk((d), WARN, notice, f, ##a) f 292 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_info(d,f,a...) nvdev_printk((d), INFO, info, f, ##a) f 293 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_debug(d,f,a...) nvdev_printk((d), DEBUG, info, f, ##a) f 294 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_trace(d,f,a...) nvdev_printk((d), TRACE, info, f, ##a) f 295 drivers/gpu/drm/nouveau/include/nvkm/core/device.h #define nvdev_spam(d,f,a...) nvdev_printk((d), SPAM, dbg, f, ##a) f 37 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_printk_(s,l,p,f,a...) do { \ f 40 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h dev_##p(_subdev->device->dev, "%s: "f, \ f 44 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_printk(s,l,p,f,a...) nvkm_printk_((s), NV_DBG_##l, p, f, ##a) f 45 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_fatal(s,f,a...) nvkm_printk((s), FATAL, crit, f, ##a) f 46 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_error(s,f,a...) nvkm_printk((s), ERROR, err, f, ##a) f 47 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_warn(s,f,a...) nvkm_printk((s), WARN, notice, f, ##a) f 48 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_info(s,f,a...) nvkm_printk((s), INFO, info, f, ##a) f 49 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_debug(s,f,a...) nvkm_printk((s), DEBUG, info, f, ##a) f 50 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_trace(s,f,a...) nvkm_printk((s), TRACE, info, f, ##a) f 51 drivers/gpu/drm/nouveau/include/nvkm/core/subdev.h #define nvkm_spam(s,f,a...) nvkm_printk((s), SPAM, dbg, f, ##a) f 242 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_PRINTK(l,c,f,a...) do { \ f 244 drivers/gpu/drm/nouveau/nouveau_drv.h dev_##l(_cli->drm->dev->dev, "%s: "f, _cli->name, ##a); \ f 247 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_FATAL(drm,f,a...) NV_PRINTK(crit, &(drm)->client, f, ##a) f 248 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_ERROR(drm,f,a...) NV_PRINTK(err, &(drm)->client, f, ##a) f 249 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a) f 250 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a) f 252 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_DEBUG(drm,f,a...) do { \ f 254 drivers/gpu/drm/nouveau/nouveau_drv.h NV_PRINTK(info, &(drm)->client, f, ##a); \ f 256 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_ATOMIC(drm,f,a...) do { \ f 258 drivers/gpu/drm/nouveau/nouveau_drv.h NV_PRINTK(info, &(drm)->client, f, ##a); \ f 261 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_PRINTK_ONCE(l,c,f,a...) NV_PRINTK(l##_once,c,f, ##a) f 263 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_ERROR_ONCE(drm,f,a...) NV_PRINTK_ONCE(err, &(drm)->client, f, ##a) f 264 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_WARN_ONCE(drm,f,a...) NV_PRINTK_ONCE(warn, &(drm)->client, f, ##a) f 265 drivers/gpu/drm/nouveau/nouveau_drv.h #define NV_INFO_ONCE(drm,f,a...) NV_PRINTK_ONCE(info, &(drm)->client, f, ##a) f 256 drivers/gpu/drm/nouveau/nouveau_fence.c nouveau_fence_wait_legacy(struct dma_fence *f, bool intr, long wait) f 258 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 339 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *f; f 356 drivers/gpu/drm/nouveau/nouveau_fence.c f = nouveau_local_fence(fence, chan->drm); f 357 drivers/gpu/drm/nouveau/nouveau_fence.c if (f) { f 359 drivers/gpu/drm/nouveau/nouveau_fence.c prev = rcu_dereference(f->channel); f 360 drivers/gpu/drm/nouveau/nouveau_fence.c if (prev && (prev == chan || fctx->sync(f, prev, chan) == 0)) f 381 drivers/gpu/drm/nouveau/nouveau_fence.c f = nouveau_local_fence(fence, chan->drm); f 382 drivers/gpu/drm/nouveau/nouveau_fence.c if (f) { f 384 drivers/gpu/drm/nouveau/nouveau_fence.c prev = rcu_dereference(f->channel); f 385 drivers/gpu/drm/nouveau/nouveau_fence.c if (prev && (prev == chan || fctx->sync(f, prev, chan) == 0)) f 432 drivers/gpu/drm/nouveau/nouveau_fence.c static const char *nouveau_fence_get_timeline_name(struct dma_fence *f) f 434 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 446 drivers/gpu/drm/nouveau/nouveau_fence.c static bool nouveau_fence_is_signaled(struct dma_fence *f) f 448 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 462 drivers/gpu/drm/nouveau/nouveau_fence.c static bool nouveau_fence_no_signaling(struct dma_fence *f) f 464 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 477 drivers/gpu/drm/nouveau/nouveau_fence.c if (nouveau_fence_is_signaled(f)) { f 487 drivers/gpu/drm/nouveau/nouveau_fence.c static void nouveau_fence_release(struct dma_fence *f) f 489 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 505 drivers/gpu/drm/nouveau/nouveau_fence.c static bool nouveau_fence_enable_signaling(struct dma_fence *f) f 507 drivers/gpu/drm/nouveau/nouveau_fence.c struct nouveau_fence *fence = from_fence(f); f 514 drivers/gpu/drm/nouveau/nouveau_fence.c ret = nouveau_fence_no_signaling(f); f 70 drivers/gpu/drm/nouveau/nouveau_svm.c #define SVM_DBG(s,f,a...) NV_DEBUG((s)->drm, "svm: "f"\n", ##a) f 71 drivers/gpu/drm/nouveau/nouveau_svm.c #define SVM_ERR(s,f,a...) NV_WARN((s)->drm, "svm: "f"\n", ##a) f 103 drivers/gpu/drm/nouveau/nouveau_svm.c #define SVMM_DBG(s,f,a...) \ f 104 drivers/gpu/drm/nouveau/nouveau_svm.c NV_DEBUG((s)->vmm->cli->drm, "svm-%p: "f"\n", (s), ##a) f 105 drivers/gpu/drm/nouveau/nouveau_svm.c #define SVMM_ERR(s,f,a...) \ f 106 drivers/gpu/drm/nouveau/nouveau_svm.c NV_WARN((s)->vmm->cli->drm, "svm-%p: "f"\n", (s), ##a) f 122 drivers/gpu/drm/nouveau/nouveau_usif.c usif_notify_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) f 124 drivers/gpu/drm/nouveau/nouveau_usif.c struct nouveau_cli *cli = nouveau_cli(f); f 136 drivers/gpu/drm/nouveau/nouveau_usif.c if (usif_notify_find(f, args->v0.index)) f 167 drivers/gpu/drm/nouveau/nouveau_usif.c usif_notify_del(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) f 169 drivers/gpu/drm/nouveau/nouveau_usif.c struct nouveau_cli *cli = nouveau_cli(f); f 178 drivers/gpu/drm/nouveau/nouveau_usif.c if (!(ntfy = usif_notify_find(f, args->v0.index))) f 190 drivers/gpu/drm/nouveau/nouveau_usif.c usif_notify_get(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) f 192 drivers/gpu/drm/nouveau/nouveau_usif.c struct nouveau_cli *cli = nouveau_cli(f); f 201 drivers/gpu/drm/nouveau/nouveau_usif.c if (!(ntfy = usif_notify_find(f, args->v0.index))) f 213 drivers/gpu/drm/nouveau/nouveau_usif.c ntfy->p->base.file_priv = f; f 227 drivers/gpu/drm/nouveau/nouveau_usif.c usif_notify_put(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) f 229 drivers/gpu/drm/nouveau/nouveau_usif.c struct nouveau_cli *cli = nouveau_cli(f); f 238 drivers/gpu/drm/nouveau/nouveau_usif.c if (!(ntfy = usif_notify_find(f, args->v0.index))) f 264 drivers/gpu/drm/nouveau/nouveau_usif.c usif_object_new(struct drm_file *f, void *data, u32 size, void *argv, u32 argc) f 266 drivers/gpu/drm/nouveau/nouveau_usif.c struct nouveau_cli *cli = nouveau_cli(f); f 40 drivers/gpu/drm/nouveau/nvkm/core/firmware.c char f[64]; f 55 drivers/gpu/drm/nouveau/nvkm/core/firmware.c snprintf(f, sizeof(f), "nvidia/%s/%s-%d.bin", cname, fwname, i); f 57 drivers/gpu/drm/nouveau/nvkm/core/firmware.c snprintf(f, sizeof(f), "nvidia/%s/%s.bin", cname, fwname); f 59 drivers/gpu/drm/nouveau/nvkm/core/firmware.c if (!firmware_request_nowarn(fw, f, device->dev)) { f 60 drivers/gpu/drm/nouveau/nvkm/core/firmware.c nvkm_debug(subdev, "firmware \"%s\" loaded\n", f); f 64 drivers/gpu/drm/nouveau/nvkm/core/firmware.c nvkm_debug(subdev, "firmware \"%s\" unavailable\n", f); f 26 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h #define CONN_MSG(c,l,f,a...) do { \ f 28 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h nvkm_##l(&_conn->disp->engine.subdev, "conn %02x:%02x%02x: "f"\n", \ f 31 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h #define CONN_ERR(c,f,a...) CONN_MSG((c), error, f, ##a) f 32 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h #define CONN_DBG(c,f,a...) CONN_MSG((c), debug, f, ##a) f 33 drivers/gpu/drm/nouveau/nvkm/engine/disp/conn.h #define CONN_TRACE(c,f,a...) CONN_MSG((c), trace, f, ##a) f 47 drivers/gpu/drm/nouveau/nvkm/engine/disp/head.h #define HEAD_MSG(h,l,f,a...) do { \ f 49 drivers/gpu/drm/nouveau/nvkm/engine/disp/head.h nvkm_##l(&_h->disp->engine.subdev, "head-%d: "f"\n", _h->id, ##a); \ f 51 drivers/gpu/drm/nouveau/nvkm/engine/disp/head.h #define HEAD_WARN(h,f,a...) HEAD_MSG((h), warn, f, ##a) f 52 drivers/gpu/drm/nouveau/nvkm/engine/disp/head.h #define HEAD_DBG(h,f,a...) HEAD_MSG((h), debug, f, ##a) f 166 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h #define IOR_MSG(i,l,f,a...) do { \ f 168 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h nvkm_##l(&_ior->disp->engine.subdev, "%s: "f"\n", _ior->name, ##a); \ f 170 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h #define IOR_WARN(i,f,a...) IOR_MSG((i), warn, f, ##a) f 171 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h #define IOR_DBG(i,f,a...) IOR_MSG((i), debug, f, ##a) f 48 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_MSG(o,l,f,a...) do { \ f 50 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h nvkm_##l(&_outp->disp->engine.subdev, "outp %02x:%04x:%04x: "f"\n", \ f 53 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_ERR(o,f,a...) OUTP_MSG((o), error, f, ##a) f 54 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_DBG(o,f,a...) OUTP_MSG((o), debug, f, ##a) f 55 drivers/gpu/drm/nouveau/nvkm/engine/disp/outp.h #define OUTP_TRACE(o,f,a...) OUTP_MSG((o), trace, f, ##a) f 92 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h #define cp_bra(c, f, s, n) _cp_bra((c), 0, CP_FLAG_##f, CP_FLAG_##f##_##s, n) f 93 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h #define cp_cal(c, f, s, n) _cp_bra((c), 1, CP_FLAG_##f, CP_FLAG_##f##_##s, n) f 94 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h #define cp_ret(c, f, s) _cp_bra((c), 2, CP_FLAG_##f, CP_FLAG_##f##_##s, 0) f 101 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h #define cp_wait(c, f, s) _cp_wait((c), CP_FLAG_##f, CP_FLAG_##f##_##s) f 108 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv40.h #define cp_set(c, f, s) _cp_set((c), CP_FLAG_##f, CP_FLAG_##f##_##s) f 2103 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c char f[32]; f 2123 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c snprintf(f, sizeof(f), "nouveau/nv%02x_%s", device->chipset, fwname); f 2124 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c ret = request_firmware(&fw, f, device->dev); f 2126 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c snprintf(f, sizeof(f), "nouveau/%s", fwname); f 2127 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c ret = request_firmware(&fw, f, device->dev); f 492 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c unsigned long *f = &flags; f 494 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c ret = gt215_clk_pre(&clk->base, f); f 509 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c f = NULL; f 511 drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c gt215_clk_post(&clk->base, f); f 306 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c unsigned long *f = &flags; f 309 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c ret = gt215_clk_pre(&clk->base, f); f 387 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c f = NULL; f 389 drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c gt215_clk_post(&clk->base, f); f 12 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_setf(s,f,d) hwsq_setf(&(s)->base, (f), (d)) f 13 drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h #define clk_wait(s,f,d) hwsq_wait(&(s)->base, (f), (d)) f 168 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c unsigned long *f = &flags; f 189 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = gt215_clk_pre(clk, f); f 244 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_clk_post(clk, f); f 262 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c f = NULL; f 266 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_clk_post(clk, f); f 13 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_setf(s,f,d) hwsq_setf(&(s)->base, (f), (d)) f 14 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramseq.h #define ram_wait(s,f,d) hwsq_wait(&(s)->base, (f), (d)) f 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h #define AUX_MSG(b,l,f,a...) do { \ f 34 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h nvkm_##l(&_aux->pad->i2c->subdev, "aux %04x: "f"\n", _aux->id, ##a); \ f 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h #define AUX_ERR(b,f,a...) AUX_MSG((b), error, f, ##a) f 37 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h #define AUX_DBG(b,f,a...) AUX_MSG((b), debug, f, ##a) f 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h #define AUX_TRACE(b,f,a...) AUX_MSG((b), trace, f, ##a) f 32 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h #define BUS_MSG(b,l,f,a...) do { \ f 34 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h nvkm_##l(&_bus->pad->i2c->subdev, "bus %04x: "f"\n", _bus->id, ##a); \ f 36 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h #define BUS_ERR(b,f,a...) BUS_MSG((b), error, f, ##a) f 37 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h #define BUS_DBG(b,f,a...) BUS_MSG((b), debug, f, ##a) f 38 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bus.h #define BUS_TRACE(b,f,a...) BUS_MSG((b), trace, f, ##a) f 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h #define PAD_MSG(p,l,f,a...) do { \ f 63 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h nvkm_##l(&_pad->i2c->subdev, "pad %04x: "f"\n", _pad->id, ##a); \ f 65 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h #define PAD_ERR(p,f,a...) PAD_MSG((p), error, f, ##a) f 66 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h #define PAD_DBG(p,f,a...) PAD_MSG((p), debug, f, ##a) f 67 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.h #define PAD_TRACE(p,f,a...) PAD_MSG((p), trace, f, ##a) f 109 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c #define TRA(i,f,a...) do { \ f 113 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c VMM_TRACE(_it->vmm, "%s "f, _buf, ##a); \ f 116 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c #define TRA(i,f,a...) f 277 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_PRINT(l,v,p,f,a...) do { \ f 280 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h nvkm_printk_(&_vmm->mmu->subdev, 0, p, "%s: "f"\n", \ f 284 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_DEBUG(v,f,a...) VMM_PRINT(NV_DBG_DEBUG, (v), info, f, ##a) f 285 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_TRACE(v,f,a...) VMM_PRINT(NV_DBG_TRACE, (v), info, f, ##a) f 286 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_SPAM(v,f,a...) VMM_PRINT(NV_DBG_SPAM , (v), dbg, f, ##a) f 326 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_XO(m,v,o,d,c,b,fn,f,a...) do { \ f 328 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h VMM_SPAM((v), " %010llx "f, (m)->addr + _pteo, _data, ##a); \ f 340 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h #define VMM_XO128(m,v,o,lo,hi,c,f,a...) do { \ f 343 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h VMM_SPAM((v), " %010llx %016llx%016llx"f, _addr, (hi), (lo), ##a); \ f 97 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c char f[64]; f 100 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c snprintf(f, sizeof(f), "gr/%s_bl", falcon_name); f 101 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c ret = nvkm_firmware_get(subdev, f, &bl); f 105 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c snprintf(f, sizeof(f), "gr/%s_inst", falcon_name); f 106 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c ret = nvkm_firmware_get(subdev, f, &code); f 110 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c snprintf(f, sizeof(f), "gr/%s_data", falcon_name); f 111 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c ret = nvkm_firmware_get(subdev, f, &data); f 115 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c snprintf(f, sizeof(f), "gr/%s_sig", falcon_name); f 116 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c ret = nvkm_firmware_get(subdev, f, &sig); f 45 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c char f[64]; f 48 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c snprintf(f, sizeof(f), "%s/image", name); f 49 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ver = nvkm_firmware_get_version(subdev, f, 0, maxver, &image); f 57 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c snprintf(f, sizeof(f), "%s/desc", name); f 58 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ret = nvkm_firmware_get_version(subdev, f, ver, ver, &desc); f 65 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c snprintf(f, sizeof(f), "%s/sig", name); f 66 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_msgqueue.c ret = nvkm_firmware_get_version(subdev, f, ver, ver, &sig); f 50 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/priv.h static inline u64 flcn64_to_u64(const struct flcn_u64 f) f 52 drivers/gpu/drm/nouveau/nvkm/subdev/secboot/priv.h return ((u64)f.hi) << 32 | f.lo; f 95 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c u32 f = 0; /*XXX: nvclk */ f 100 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c n = f; f 102 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c if (!f) { f 128 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c nvkm_debug(subdev, "input frequency : %dHz\n", f); f 131 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv04.c nvkm_debug(subdev, "timer frequency : %dHz\n", f * d / n); f 32 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv40.c u32 f = 0; /*XXX: figure this out */ f 37 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv40.c n = f; f 39 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv40.c if (!f) { f 65 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv40.c nvkm_debug(subdev, "input frequency : %dHz\n", f); f 68 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv40.c nvkm_debug(subdev, "timer frequency : %dHz\n", f * d / n); f 32 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv41.c u32 f = device->crystal; f 37 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv41.c n = f; f 60 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv41.c nvkm_debug(subdev, "input frequency : %dHz\n", f); f 64 drivers/gpu/drm/nouveau/nvkm/subdev/timer/nv41.c nvkm_debug(subdev, "timer frequency : %dHz\n", (f * m) * d / n); f 422 drivers/gpu/drm/omapdrm/dss/pll.c u32 f = cinfo->fint < 1000000 ? 0x3 : f 428 drivers/gpu/drm/omapdrm/dss/pll.c l = FLD_MOD(l, f, 4, 1); /* PLL_FREQSEL */ f 430 drivers/gpu/drm/omapdrm/dss/pll.c u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; f 432 drivers/gpu/drm/omapdrm/dss/pll.c l = FLD_MOD(l, f, 3, 1); /* PLL_SELFREQDCO */ f 65 drivers/gpu/drm/panfrost/panfrost_job.c struct panfrost_fence *f = to_panfrost_fence(fence); f 67 drivers/gpu/drm/panfrost/panfrost_job.c switch (f->queue) { f 2495 drivers/gpu/drm/radeon/radeon.h static inline struct radeon_fence *to_radeon_fence(struct dma_fence *f) f 2497 drivers/gpu/drm/radeon/radeon.h struct radeon_fence *__f = container_of(f, struct radeon_fence, base); f 2707 drivers/gpu/drm/radeon/radeon.h #define radeon_gart_get_page_entry(a, f) (rdev)->asic->gart.get_page_entry((a), (f)) f 2750 drivers/gpu/drm/radeon/radeon.h #define radeon_set_surface_reg(rdev, r, f, p, o, s) ((rdev)->asic->surface.set_reg((rdev), (r), (f), (p), (o), (s))) f 185 drivers/gpu/drm/radeon/radeon_acpi.c static void radeon_atif_parse_functions(struct radeon_atif_functions *f, u32 mask) f 187 drivers/gpu/drm/radeon/radeon_acpi.c f->system_params = mask & ATIF_GET_SYSTEM_PARAMETERS_SUPPORTED; f 188 drivers/gpu/drm/radeon/radeon_acpi.c f->sbios_requests = mask & ATIF_GET_SYSTEM_BIOS_REQUESTS_SUPPORTED; f 189 drivers/gpu/drm/radeon/radeon_acpi.c f->select_active_disp = mask & ATIF_SELECT_ACTIVE_DISPLAYS_SUPPORTED; f 190 drivers/gpu/drm/radeon/radeon_acpi.c f->lid_state = mask & ATIF_GET_LID_STATE_SUPPORTED; f 191 drivers/gpu/drm/radeon/radeon_acpi.c f->get_tv_standard = mask & ATIF_GET_TV_STANDARD_FROM_CMOS_SUPPORTED; f 192 drivers/gpu/drm/radeon/radeon_acpi.c f->set_tv_standard = mask & ATIF_SET_TV_STANDARD_IN_CMOS_SUPPORTED; f 193 drivers/gpu/drm/radeon/radeon_acpi.c f->get_panel_expansion_mode = mask & ATIF_GET_PANEL_EXPANSION_MODE_FROM_CMOS_SUPPORTED; f 194 drivers/gpu/drm/radeon/radeon_acpi.c f->set_panel_expansion_mode = mask & ATIF_SET_PANEL_EXPANSION_MODE_IN_CMOS_SUPPORTED; f 195 drivers/gpu/drm/radeon/radeon_acpi.c f->temperature_change = mask & ATIF_TEMPERATURE_CHANGE_NOTIFICATION_SUPPORTED; f 196 drivers/gpu/drm/radeon/radeon_acpi.c f->graphics_device_types = mask & ATIF_GET_GRAPHICS_DEVICE_TYPES_SUPPORTED; f 487 drivers/gpu/drm/radeon/radeon_acpi.c static void radeon_atcs_parse_functions(struct radeon_atcs_functions *f, u32 mask) f 489 drivers/gpu/drm/radeon/radeon_acpi.c f->get_ext_state = mask & ATCS_GET_EXTERNAL_STATE_SUPPORTED; f 490 drivers/gpu/drm/radeon/radeon_acpi.c f->pcie_perf_req = mask & ATCS_PCIE_PERFORMANCE_REQUEST_SUPPORTED; f 491 drivers/gpu/drm/radeon/radeon_acpi.c f->pcie_dev_rdy = mask & ATCS_PCIE_DEVICE_READY_NOTIFICATION_SUPPORTED; f 492 drivers/gpu/drm/radeon/radeon_acpi.c f->pcie_bus_width = mask & ATCS_SET_PCIE_BUS_WIDTH_SUPPORTED; f 137 drivers/gpu/drm/radeon/radeon_atpx_handler.c static void radeon_atpx_parse_functions(struct radeon_atpx_functions *f, u32 mask) f 139 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->px_params = mask & ATPX_GET_PX_PARAMETERS_SUPPORTED; f 140 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->power_cntl = mask & ATPX_POWER_CONTROL_SUPPORTED; f 141 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->disp_mux_cntl = mask & ATPX_DISPLAY_MUX_CONTROL_SUPPORTED; f 142 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->i2c_mux_cntl = mask & ATPX_I2C_MUX_CONTROL_SUPPORTED; f 143 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->switch_start = mask & ATPX_GRAPHICS_DEVICE_SWITCH_START_NOTIFICATION_SUPPORTED; f 144 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->switch_end = mask & ATPX_GRAPHICS_DEVICE_SWITCH_END_NOTIFICATION_SUPPORTED; f 145 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->disp_connectors_mapping = mask & ATPX_GET_DISPLAY_CONNECTORS_MAPPING_SUPPORTED; f 146 drivers/gpu/drm/radeon/radeon_atpx_handler.c f->disp_detetion_ports = mask & ATPX_GET_DISPLAY_DETECTION_PORTS_SUPPORTED; f 362 drivers/gpu/drm/radeon/radeon_fence.c static bool radeon_fence_is_signaled(struct dma_fence *f) f 364 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence *fence = to_radeon_fence(f); f 392 drivers/gpu/drm/radeon/radeon_fence.c static bool radeon_fence_enable_signaling(struct dma_fence *f) f 394 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence *fence = to_radeon_fence(f); f 425 drivers/gpu/drm/radeon/radeon_fence.c dma_fence_get(f); f 1044 drivers/gpu/drm/radeon/radeon_fence.c static const char *radeon_fence_get_timeline_name(struct dma_fence *f) f 1046 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence *fence = to_radeon_fence(f); f 1079 drivers/gpu/drm/radeon/radeon_fence.c static signed long radeon_fence_default_wait(struct dma_fence *f, bool intr, f 1082 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence *fence = to_radeon_fence(f); f 1088 drivers/gpu/drm/radeon/radeon_fence.c if (dma_fence_add_callback(f, &cb.base, radeon_fence_wait_cb)) f 1116 drivers/gpu/drm/radeon/radeon_fence.c dma_fence_remove_callback(f, &cb.base); f 94 drivers/gpu/drm/radeon/radeon_sync.c struct dma_fence *f; f 100 drivers/gpu/drm/radeon/radeon_sync.c f = dma_resv_get_excl(resv); f 101 drivers/gpu/drm/radeon/radeon_sync.c fence = f ? to_radeon_fence(f) : NULL; f 104 drivers/gpu/drm/radeon/radeon_sync.c else if (f) f 105 drivers/gpu/drm/radeon/radeon_sync.c r = dma_fence_wait(f, true); f 112 drivers/gpu/drm/radeon/radeon_sync.c f = rcu_dereference_protected(flist->shared[i], f 114 drivers/gpu/drm/radeon/radeon_sync.c fence = to_radeon_fence(f); f 118 drivers/gpu/drm/radeon/radeon_sync.c r = dma_fence_wait(f, true); f 961 drivers/gpu/drm/radeon/radeon_ttm.c static ssize_t radeon_ttm_vram_read(struct file *f, char __user *buf, f 964 drivers/gpu/drm/radeon/radeon_ttm.c struct radeon_device *rdev = f->private_data; f 1013 drivers/gpu/drm/radeon/radeon_ttm.c static ssize_t radeon_ttm_gtt_read(struct file *f, char __user *buf, f 1016 drivers/gpu/drm/radeon/radeon_ttm.c struct radeon_device *rdev = f->private_data; f 470 drivers/gpu/drm/radeon/radeon_uvd.c struct dma_fence *f; f 480 drivers/gpu/drm/radeon/radeon_uvd.c f = dma_resv_get_excl(bo->tbo.base.resv); f 481 drivers/gpu/drm/radeon/radeon_uvd.c if (f) { f 482 drivers/gpu/drm/radeon/radeon_uvd.c r = radeon_fence_wait((struct radeon_fence *)f, false); f 216 drivers/gpu/drm/scheduler/sched_entity.c static void drm_sched_entity_kill_jobs_cb(struct dma_fence *f, f 328 drivers/gpu/drm/scheduler/sched_entity.c static void drm_sched_entity_clear_dep(struct dma_fence *f, f 335 drivers/gpu/drm/scheduler/sched_entity.c dma_fence_put(f); f 342 drivers/gpu/drm/scheduler/sched_entity.c static void drm_sched_entity_wakeup(struct dma_fence *f, f 348 drivers/gpu/drm/scheduler/sched_entity.c drm_sched_entity_clear_dep(f, cb); f 80 drivers/gpu/drm/scheduler/sched_fence.c static const char *drm_sched_fence_get_timeline_name(struct dma_fence *f) f 82 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *fence = to_drm_sched_fence(f); f 95 drivers/gpu/drm/scheduler/sched_fence.c struct dma_fence *f = container_of(rcu, struct dma_fence, rcu); f 96 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *fence = to_drm_sched_fence(f); f 109 drivers/gpu/drm/scheduler/sched_fence.c static void drm_sched_fence_release_scheduled(struct dma_fence *f) f 111 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *fence = to_drm_sched_fence(f); f 124 drivers/gpu/drm/scheduler/sched_fence.c static void drm_sched_fence_release_finished(struct dma_fence *f) f 126 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *fence = to_drm_sched_fence(f); f 143 drivers/gpu/drm/scheduler/sched_fence.c struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f) f 145 drivers/gpu/drm/scheduler/sched_fence.c if (f->ops == &drm_sched_fence_ops_scheduled) f 146 drivers/gpu/drm/scheduler/sched_fence.c return container_of(f, struct drm_sched_fence, scheduled); f 148 drivers/gpu/drm/scheduler/sched_fence.c if (f->ops == &drm_sched_fence_ops_finished) f 149 drivers/gpu/drm/scheduler/sched_fence.c return container_of(f, struct drm_sched_fence, finished); f 62 drivers/gpu/drm/scheduler/sched_main.c static void drm_sched_process_job(struct dma_fence *f, struct dma_fence_cb *cb); f 619 drivers/gpu/drm/scheduler/sched_main.c static void drm_sched_process_job(struct dma_fence *f, struct dma_fence_cb *cb) f 32 drivers/gpu/drm/selftests/drm_selftest.c #define selftest(n, f) [__idx_##n] = { .name = #n, .func = f }, f 84 drivers/gpu/drm/sun4i/sun4i_frontend.h #define SUN4I_FRONTEND_HORZFACT(i, f) (((i) << 16) | (f)) f 87 drivers/gpu/drm/sun4i/sun4i_frontend.h #define SUN4I_FRONTEND_VERTFACT(i, f) (((i) << 16) | (f)) f 36 drivers/gpu/drm/tegra/dsi.h #define DSI_CONTROL_FORMAT(f) (((f) & 0x3) << 12) f 420 drivers/gpu/drm/tegra/hdmi.c unsigned int f = freqs[i]; f 425 drivers/gpu/drm/tegra/hdmi.c if (f > 96000) f 427 drivers/gpu/drm/tegra/hdmi.c else if (f > 48000) f 432 drivers/gpu/drm/tegra/hdmi.c eight_half = (8 * HDMI_AUDIOCLK_FREQ) / (f * 128); f 841 drivers/gpu/drm/tegra/sor.c const u64 f = params->precision; f 845 drivers/gpu/drm/tegra/sor.c active_count = div_u64(active_sym, f) * f; f 849 drivers/gpu/drm/tegra/sor.c if (frac >= (f / 2)) { f 851 drivers/gpu/drm/tegra/sor.c frac = f - frac; f 857 drivers/gpu/drm/tegra/sor.c frac = div_u64(f * f, frac); /* 1/fraction */ f 858 drivers/gpu/drm/tegra/sor.c if (frac <= (15 * f)) { f 859 drivers/gpu/drm/tegra/sor.c active_frac = div_u64(frac, f); f 874 drivers/gpu/drm/tegra/sor.c approx = active_count + (active_frac * (f - 1)) * f; f 875 drivers/gpu/drm/tegra/sor.c approx = div_u64(approx, active_frac * f); f 877 drivers/gpu/drm/tegra/sor.c approx = active_count + f; f 881 drivers/gpu/drm/tegra/sor.c approx = active_count + div_u64(f, active_frac); f 890 drivers/gpu/drm/tegra/sor.c params->active_count = div_u64(active_count, f); f 908 drivers/gpu/drm/tegra/sor.c const u64 f = 100000, link_rate = link->rate * 1000; f 925 drivers/gpu/drm/tegra/sor.c params.ratio = div64_u64(input * f, output); f 927 drivers/gpu/drm/tegra/sor.c params.precision = f; f 928 drivers/gpu/drm/tegra/sor.c params.error = 64 * f; f 956 drivers/gpu/drm/tegra/sor.c watermark = params.ratio * config->tu_size * (f - params.ratio); f 957 drivers/gpu/drm/tegra/sor.c watermark = div_u64(watermark, f); f 959 drivers/gpu/drm/tegra/sor.c watermark = div_u64(watermark + params.error, f); f 30 drivers/gpu/drm/v3d/v3d_fence.c struct v3d_fence *f = to_v3d_fence(fence); f 32 drivers/gpu/drm/v3d/v3d_fence.c switch (f->queue) { f 38 drivers/gpu/drm/vc4/vc4_fence.c struct vc4_fence *f = to_vc4_fence(fence); f 39 drivers/gpu/drm/vc4/vc4_fence.c struct vc4_dev *vc4 = to_vc4_dev(f->dev); f 41 drivers/gpu/drm/vc4/vc4_fence.c return vc4->finished_seqno >= f->seqno; f 102 drivers/gpu/drm/virtio/virtgpu_drv.h struct dma_fence f; f 107 drivers/gpu/drm/virtio/virtgpu_drv.h container_of(x, struct virtio_gpu_fence, f) f 348 drivers/gpu/drm/virtio/virtgpu_drv.h bool virtio_fence_signaled(struct dma_fence *f); f 30 drivers/gpu/drm/virtio/virtgpu_fence.c static const char *virtio_get_driver_name(struct dma_fence *f) f 35 drivers/gpu/drm/virtio/virtgpu_fence.c static const char *virtio_get_timeline_name(struct dma_fence *f) f 40 drivers/gpu/drm/virtio/virtgpu_fence.c bool virtio_fence_signaled(struct dma_fence *f) f 42 drivers/gpu/drm/virtio/virtgpu_fence.c struct virtio_gpu_fence *fence = to_virtio_fence(f); f 44 drivers/gpu/drm/virtio/virtgpu_fence.c if (atomic64_read(&fence->drv->last_seq) >= fence->f.seqno) f 49 drivers/gpu/drm/virtio/virtgpu_fence.c static void virtio_fence_value_str(struct dma_fence *f, char *str, int size) f 51 drivers/gpu/drm/virtio/virtgpu_fence.c snprintf(str, size, "%llu", f->seqno); f 54 drivers/gpu/drm/virtio/virtgpu_fence.c static void virtio_timeline_value_str(struct dma_fence *f, char *str, int size) f 56 drivers/gpu/drm/virtio/virtgpu_fence.c struct virtio_gpu_fence *fence = to_virtio_fence(f); f 83 drivers/gpu/drm/virtio/virtgpu_fence.c dma_fence_init(&fence->f, &virtio_fence_ops, &drv->lock, drv->context, 0); f 96 drivers/gpu/drm/virtio/virtgpu_fence.c fence->f.seqno = ++drv->sync_seq; f 97 drivers/gpu/drm/virtio/virtgpu_fence.c dma_fence_get(&fence->f); f 101 drivers/gpu/drm/virtio/virtgpu_fence.c trace_dma_fence_emit(&fence->f); f 104 drivers/gpu/drm/virtio/virtgpu_fence.c cmd_hdr->fence_id = cpu_to_le64(fence->f.seqno); f 117 drivers/gpu/drm/virtio/virtgpu_fence.c if (last_seq < fence->f.seqno) f 119 drivers/gpu/drm/virtio/virtgpu_fence.c dma_fence_signal_locked(&fence->f); f 121 drivers/gpu/drm/virtio/virtgpu_fence.c dma_fence_put(&fence->f); f 213 drivers/gpu/drm/virtio/virtgpu_ioctl.c sync_file = sync_file_create(&out_fence->f); f 215 drivers/gpu/drm/virtio/virtgpu_ioctl.c dma_fence_put(&out_fence->f); f 227 drivers/gpu/drm/virtio/virtgpu_ioctl.c ttm_eu_fence_buffer_objects(&ticket, &validate_list, &out_fence->f); f 320 drivers/gpu/drm/virtio/virtgpu_ioctl.c dma_fence_put(&fence->f); f 400 drivers/gpu/drm/virtio/virtgpu_ioctl.c &fence->f); f 402 drivers/gpu/drm/virtio/virtgpu_ioctl.c dma_fence_put(&fence->f); f 454 drivers/gpu/drm/virtio/virtgpu_ioctl.c &fence->f); f 455 drivers/gpu/drm/virtio/virtgpu_ioctl.c dma_fence_put(&fence->f); f 166 drivers/gpu/drm/virtio/virtgpu_object.c signaled = virtio_fence_signaled(&fence->f); f 170 drivers/gpu/drm/virtio/virtgpu_object.c &fence->f); f 175 drivers/gpu/drm/virtio/virtgpu_plane.c dma_fence_put(&vgfb->fence->f); f 216 drivers/gpu/drm/virtio/virtgpu_plane.c &vgfb->fence->f); f 217 drivers/gpu/drm/virtio/virtgpu_plane.c dma_fence_put(&vgfb->fence->f); f 211 drivers/gpu/drm/virtio/virtgpu_vq.c u64 f = le64_to_cpu(resp->fence_id); f 213 drivers/gpu/drm/virtio/virtgpu_vq.c if (fence_id > f) { f 215 drivers/gpu/drm/virtio/virtgpu_vq.c __func__, fence_id, f); f 217 drivers/gpu/drm/virtio/virtgpu_vq.c fence_id = f; f 1021 drivers/gpu/drm/virtio/virtgpu_vq.c dma_fence_wait(&fence->f, true); f 1022 drivers/gpu/drm/virtio/virtgpu_vq.c dma_fence_put(&fence->f); f 478 drivers/gpu/drm/vmwgfx/device_include/svga3d_devcaps.h float f; f 112 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c static void vmw_fence_obj_destroy(struct dma_fence *f) f 115 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c container_of(f, struct vmw_fence_obj, base); f 126 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c static const char *vmw_fence_get_driver_name(struct dma_fence *f) f 131 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c static const char *vmw_fence_get_timeline_name(struct dma_fence *f) f 136 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c static bool vmw_fence_enable_signaling(struct dma_fence *f) f 139 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c container_of(f, struct vmw_fence_obj, base); f 170 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c static long vmw_fence_wait(struct dma_fence *f, bool intr, signed long timeout) f 173 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c container_of(f, struct vmw_fence_obj, base); f 186 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c spin_lock(f->lock); f 188 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &f->flags)) f 198 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c list_add(&cb.base.node, &f->cb_list); f 213 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &f->flags)) { f 227 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c spin_unlock(f->lock); f 231 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c spin_lock(f->lock); f 238 drivers/gpu/drm/vmwgfx/vmwgfx_fence.c spin_unlock(f->lock); f 1117 drivers/greybus/es2.c static ssize_t apb_log_read(struct file *f, char __user *buf, f 1120 drivers/greybus/es2.c struct es2_ap_dev *es2 = file_inode(f)->i_private; f 1171 drivers/greybus/es2.c static ssize_t apb_log_enable_read(struct file *f, char __user *buf, f 1174 drivers/greybus/es2.c struct es2_ap_dev *es2 = file_inode(f)->i_private; f 1182 drivers/greybus/es2.c static ssize_t apb_log_enable_write(struct file *f, const char __user *buf, f 1187 drivers/greybus/es2.c struct es2_ap_dev *es2 = file_inode(f)->i_private; f 444 drivers/hid/hid-debug.c static char *resolv_usage_page(unsigned page, struct seq_file *f) { f 448 drivers/hid/hid-debug.c if (!f) { f 456 drivers/hid/hid-debug.c if (!f) { f 462 drivers/hid/hid-debug.c seq_printf(f, "%s", p->description); f 466 drivers/hid/hid-debug.c if (!f) f 469 drivers/hid/hid-debug.c seq_printf(f, "%04x", page); f 473 drivers/hid/hid-debug.c char *hid_resolv_usage(unsigned usage, struct seq_file *f) { f 478 drivers/hid/hid-debug.c buf = resolv_usage_page(usage >> 16, f); f 485 drivers/hid/hid-debug.c if (!f) { f 491 drivers/hid/hid-debug.c seq_printf(f, "."); f 497 drivers/hid/hid-debug.c if (!f) f 502 drivers/hid/hid-debug.c seq_printf(f, f 509 drivers/hid/hid-debug.c if (!f) f 513 drivers/hid/hid-debug.c seq_printf(f, "%04x", usage & 0xffff); f 518 drivers/hid/hid-debug.c static void tab(int n, struct seq_file *f) { f 519 drivers/hid/hid-debug.c seq_printf(f, "%*s", n, ""); f 522 drivers/hid/hid-debug.c void hid_dump_field(struct hid_field *field, int n, struct seq_file *f) { f 526 drivers/hid/hid-debug.c tab(n, f); f 527 drivers/hid/hid-debug.c seq_printf(f, "Physical("); f 528 drivers/hid/hid-debug.c hid_resolv_usage(field->physical, f); seq_printf(f, ")\n"); f 531 drivers/hid/hid-debug.c tab(n, f); f 532 drivers/hid/hid-debug.c seq_printf(f, "Logical("); f 533 drivers/hid/hid-debug.c hid_resolv_usage(field->logical, f); seq_printf(f, ")\n"); f 536 drivers/hid/hid-debug.c tab(n, f); f 537 drivers/hid/hid-debug.c seq_printf(f, "Application("); f 538 drivers/hid/hid-debug.c hid_resolv_usage(field->application, f); seq_printf(f, ")\n"); f 540 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Usage(%d)\n", field->maxusage); f 542 drivers/hid/hid-debug.c tab(n+2, f); hid_resolv_usage(field->usage[j].hid, f); seq_printf(f, "\n"); f 545 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Logical Minimum(%d)\n", field->logical_minimum); f 546 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Logical Maximum(%d)\n", field->logical_maximum); f 549 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Physical Minimum(%d)\n", field->physical_minimum); f 550 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Physical Maximum(%d)\n", field->physical_maximum); f 553 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Unit Exponent(%d)\n", field->unit_exponent); f 574 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Unit(Invalid)\n"); f 579 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Unit(%s : ", systems[sys]); f 586 drivers/hid/hid-debug.c seq_printf(f, "*"); f 587 drivers/hid/hid-debug.c seq_printf(f, "%s", units[sys][i]); f 594 drivers/hid/hid-debug.c seq_printf(f, "^%d", val); f 598 drivers/hid/hid-debug.c seq_printf(f, ")\n"); f 601 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Report Size(%u)\n", field->report_size); f 602 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Report Count(%u)\n", field->report_count); f 603 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Report Offset(%u)\n", field->report_offset); f 605 drivers/hid/hid-debug.c tab(n, f); seq_printf(f, "Flags( "); f 607 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_CONSTANT & j ? "Constant " : ""); f 608 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_VARIABLE & j ? "Variable " : "Array "); f 609 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_RELATIVE & j ? "Relative " : "Absolute "); f 610 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_WRAP & j ? "Wrap " : ""); f 611 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NONLINEAR & j ? "NonLinear " : ""); f 612 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NO_PREFERRED & j ? "NoPreferredState " : ""); f 613 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_NULL_STATE & j ? "NullState " : ""); f 614 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_VOLATILE & j ? "Volatile " : ""); f 615 drivers/hid/hid-debug.c seq_printf(f, "%s", HID_MAIN_ITEM_BUFFERED_BYTE & j ? "BufferedByte " : ""); f 616 drivers/hid/hid-debug.c seq_printf(f, ")\n"); f 620 drivers/hid/hid-debug.c void hid_dump_device(struct hid_device *device, struct seq_file *f) f 633 drivers/hid/hid-debug.c tab(2, f); f 634 drivers/hid/hid-debug.c seq_printf(f, "%s", table[i]); f 636 drivers/hid/hid-debug.c seq_printf(f, "(%d)", report->id); f 637 drivers/hid/hid-debug.c seq_printf(f, "[%s]", table[report->type]); f 638 drivers/hid/hid-debug.c seq_printf(f, "\n"); f 640 drivers/hid/hid-debug.c tab(4, f); f 641 drivers/hid/hid-debug.c seq_printf(f, "Field(%d)\n", k); f 642 drivers/hid/hid-debug.c hid_dump_field(report->field[k], 6, f); f 1005 drivers/hid/hid-debug.c static void hid_resolv_event(__u8 type, __u16 code, struct seq_file *f) f 1007 drivers/hid/hid-debug.c seq_printf(f, "%s.%s", events[type] ? events[type] : "?", f 1011 drivers/hid/hid-debug.c static void hid_dump_input_mapping(struct hid_device *hid, struct seq_file *f) f 1022 drivers/hid/hid-debug.c hid_resolv_usage(usage->hid, f); f 1023 drivers/hid/hid-debug.c seq_printf(f, " ---> "); f 1024 drivers/hid/hid-debug.c hid_resolv_event(usage->type, usage->code, f); f 1025 drivers/hid/hid-debug.c seq_printf(f, "\n"); f 1033 drivers/hid/hid-debug.c static int hid_debug_rdesc_show(struct seq_file *f, void *p) f 1035 drivers/hid/hid-debug.c struct hid_device *hdev = f->private; f 1047 drivers/hid/hid-debug.c seq_printf(f, "%02x ", rdesc[i]); f 1048 drivers/hid/hid-debug.c seq_printf(f, "\n\n"); f 1054 drivers/hid/hid-debug.c hid_dump_device(hdev, f); f 1055 drivers/hid/hid-debug.c seq_printf(f, "\n"); f 1056 drivers/hid/hid-debug.c hid_dump_input_mapping(hdev, f); f 23 drivers/hid/hid-picolcd_debugfs.c static int picolcd_debug_reset_show(struct seq_file *f, void *p) f 25 drivers/hid/hid-picolcd_debugfs.c if (picolcd_fbinfo((struct picolcd_data *)f->private)) f 26 drivers/hid/hid-picolcd_debugfs.c seq_printf(f, "all fb\n"); f 28 drivers/hid/hid-picolcd_debugfs.c seq_printf(f, "all\n"); f 32 drivers/hid/hid-picolcd_debugfs.c static int picolcd_debug_reset_open(struct inode *inode, struct file *f) f 34 drivers/hid/hid-picolcd_debugfs.c return single_open(f, picolcd_debug_reset_show, inode->i_private); f 37 drivers/hid/hid-picolcd_debugfs.c static ssize_t picolcd_debug_reset_write(struct file *f, const char __user *user_buf, f 40 drivers/hid/hid-picolcd_debugfs.c struct picolcd_data *data = ((struct seq_file *)f->private_data)->private; f 72 drivers/hid/hid-picolcd_debugfs.c static ssize_t picolcd_debug_eeprom_read(struct file *f, char __user *u, f 75 drivers/hid/hid-picolcd_debugfs.c struct picolcd_data *data = f->private_data; f 111 drivers/hid/hid-picolcd_debugfs.c static ssize_t picolcd_debug_eeprom_write(struct file *f, const char __user *u, f 114 drivers/hid/hid-picolcd_debugfs.c struct picolcd_data *data = f->private_data; f 215 drivers/hid/hid-picolcd_debugfs.c static ssize_t picolcd_debug_flash_read(struct file *f, char __user *u, f 218 drivers/hid/hid-picolcd_debugfs.c struct picolcd_data *data = f->private_data; f 298 drivers/hid/hid-picolcd_debugfs.c static ssize_t picolcd_debug_flash_write(struct file *f, const char __user *u, f 301 drivers/hid/hid-picolcd_debugfs.c struct picolcd_data *data = f->private_data; f 53 drivers/hid/hid-u2fzero.c #define U2F_HID_MSG_LEN(f) (size_t)(((f).init.bcnth << 8) + (f).init.bcntl) f 23 drivers/hid/hid-wiimote-debug.c static ssize_t wiidebug_eeprom_read(struct file *f, char __user *u, size_t s, f 26 drivers/hid/hid-wiimote-debug.c struct wiimote_debug *dbg = f->private_data; f 98 drivers/hid/hid-wiimote-debug.c static int wiidebug_drm_show(struct seq_file *f, void *p) f 100 drivers/hid/hid-wiimote-debug.c struct wiimote_debug *dbg = f->private; f 114 drivers/hid/hid-wiimote-debug.c seq_printf(f, "%s\n", str); f 119 drivers/hid/hid-wiimote-debug.c static int wiidebug_drm_open(struct inode *i, struct file *f) f 121 drivers/hid/hid-wiimote-debug.c return single_open(f, wiidebug_drm_show, i->i_private); f 124 drivers/hid/hid-wiimote-debug.c static ssize_t wiidebug_drm_write(struct file *f, const char __user *u, f 127 drivers/hid/hid-wiimote-debug.c struct seq_file *sf = f->private_data; f 160 drivers/hid/wacom_wac.h #define WACOM_BATTERY_USAGE(f) (((f)->hid == HID_DG_BATTERYSTRENGTH) || \ f 161 drivers/hid/wacom_wac.h ((f)->hid == WACOM_HID_WD_BATTERY_CHARGING) || \ f 162 drivers/hid/wacom_wac.h ((f)->hid == WACOM_HID_WD_BATTERY_LEVEL)) f 164 drivers/hid/wacom_wac.h #define WACOM_PAD_FIELD(f) (((f)->physical == HID_DG_TABLETFUNCTIONKEY) || \ f 165 drivers/hid/wacom_wac.h ((f)->physical == WACOM_HID_WD_DIGITIZERFNKEYS) || \ f 166 drivers/hid/wacom_wac.h ((f)->physical == WACOM_HID_WD_DIGITIZERINFO)) f 168 drivers/hid/wacom_wac.h #define WACOM_PEN_FIELD(f) (((f)->logical == HID_DG_STYLUS) || \ f 169 drivers/hid/wacom_wac.h ((f)->physical == HID_DG_STYLUS) || \ f 170 drivers/hid/wacom_wac.h ((f)->physical == HID_DG_PEN) || \ f 171 drivers/hid/wacom_wac.h ((f)->application == HID_DG_PEN) || \ f 172 drivers/hid/wacom_wac.h ((f)->application == HID_DG_DIGITIZER) || \ f 173 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_WD_PEN) || \ f 174 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_WD_DIGITIZER) || \ f 175 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_G9_PEN) || \ f 176 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_G11_PEN)) f 177 drivers/hid/wacom_wac.h #define WACOM_FINGER_FIELD(f) (((f)->logical == HID_DG_FINGER) || \ f 178 drivers/hid/wacom_wac.h ((f)->physical == HID_DG_FINGER) || \ f 179 drivers/hid/wacom_wac.h ((f)->application == HID_DG_TOUCHSCREEN) || \ f 180 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_G9_TOUCHSCREEN) || \ f 181 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_G11_TOUCHSCREEN) || \ f 182 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_WT_TOUCHPAD) || \ f 183 drivers/hid/wacom_wac.h ((f)->application == HID_DG_TOUCHPAD)) f 185 drivers/hid/wacom_wac.h #define WACOM_DIRECT_DEVICE(f) (((f)->application == HID_DG_TOUCHSCREEN) || \ f 186 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_WT_TOUCHSCREEN) || \ f 187 drivers/hid/wacom_wac.h ((f)->application == HID_DG_PEN) || \ f 188 drivers/hid/wacom_wac.h ((f)->application == WACOM_HID_WD_PEN)) f 416 drivers/hwmon/asc7621.c long reqval, i, f; f 424 drivers/hwmon/asc7621.c f = reqval - (i * 1000); f 426 drivers/hwmon/asc7621.c temp |= f / 250; f 1850 drivers/hwmon/pmbus/pmbus_core.c int f; f 1852 drivers/hwmon/pmbus/pmbus_core.c for (f = 0; f < ARRAY_SIZE(pmbus_fan_registers); f++) { f 1855 drivers/hwmon/pmbus/pmbus_core.c if (!(info->func[page] & pmbus_fan_flags[f])) f 1859 drivers/hwmon/pmbus/pmbus_core.c pmbus_fan_registers[f])) f 1868 drivers/hwmon/pmbus/pmbus_core.c pmbus_fan_config_registers[f]); f 1870 drivers/hwmon/pmbus/pmbus_core.c (!(regval & (PB_FAN_1_INSTALLED >> ((f & 1) * 4))))) f 1874 drivers/hwmon/pmbus/pmbus_core.c page, pmbus_fan_registers[f], f 1880 drivers/hwmon/pmbus/pmbus_core.c pmbus_fan_command_registers[f])) { f 1882 drivers/hwmon/pmbus/pmbus_core.c page, f, regval); f 1891 drivers/hwmon/pmbus/pmbus_core.c if ((info->func[page] & pmbus_fan_status_flags[f]) && f 1893 drivers/hwmon/pmbus/pmbus_core.c page, pmbus_fan_status_registers[f])) { f 1896 drivers/hwmon/pmbus/pmbus_core.c if (f > 1) /* fan 3, 4 */ f 1902 drivers/hwmon/pmbus/pmbus_core.c PB_FAN_FAN1_WARNING >> (f & 1)); f 1907 drivers/hwmon/pmbus/pmbus_core.c PB_FAN_FAN1_FAULT >> (f & 1)); f 34 drivers/hwmon/scmi-hwmon.c u64 f; f 56 drivers/hwmon/scmi-hwmon.c f = __pow10(abs(scale)); f 58 drivers/hwmon/scmi-hwmon.c *value *= f; f 60 drivers/hwmon/scmi-hwmon.c *value = div64_u64(*value, f); f 472 drivers/hwtracing/coresight/coresight-cpu-debug.c static ssize_t debug_func_knob_write(struct file *f, f 506 drivers/hwtracing/coresight/coresight-cpu-debug.c static ssize_t debug_func_knob_read(struct file *f, f 673 drivers/i2c/busses/i2c-cadence.c static int cdns_i2c_calc_divs(unsigned long *f, unsigned long input_clk, f 676 drivers/i2c/busses/i2c-cadence.c unsigned long fscl = *f, best_fscl = *f, actual_fscl, temp; f 716 drivers/i2c/busses/i2c-cadence.c *f = best_fscl; f 65 drivers/i2c/busses/i2c-diolan-u2c.c #define U2C_I2C_SPEED(f) ((DIV_ROUND_UP(1000000, (f)) - 10) / 2 + 1) f 70 drivers/i2c/busses/i2c-ibm_iic.c # define DBG(f,x...) printk(KERN_DEBUG "ibm-iic" f, ##x) f 72 drivers/i2c/busses/i2c-ibm_iic.c # define DBG(f,x...) ((void)0) f 75 drivers/i2c/busses/i2c-ibm_iic.c # define DBG2(f,x...) DBG(f, ##x) f 77 drivers/i2c/busses/i2c-ibm_iic.c # define DBG2(f,x...) ((void)0) f 304 drivers/ide/pdc202xx_new.c int f, r; f 380 drivers/ide/pdc202xx_new.c f = (ratio * (r + 2)) / 1000 - 2; f 382 drivers/ide/pdc202xx_new.c DBG("F[%d] R[%d] ratio*1000[%ld]\n", f, r, ratio); f 384 drivers/ide/pdc202xx_new.c if (unlikely(f < 0 || f > 127)) { f 387 drivers/ide/pdc202xx_new.c name, pci_name(dev), f); f 391 drivers/ide/pdc202xx_new.c pll_ctl0 = (u8) f; f 867 drivers/iio/gyro/fxas21002c_core.c struct regmap_field *f; f 881 drivers/iio/gyro/fxas21002c_core.c f = devm_regmap_field_alloc(dev, data->regmap, f 883 drivers/iio/gyro/fxas21002c_core.c if (IS_ERR(f)) f 884 drivers/iio/gyro/fxas21002c_core.c return PTR_ERR(f); f 886 drivers/iio/gyro/fxas21002c_core.c data->regmap_fields[i] = f; f 781 drivers/iio/industrialio-core.c int i = 0, f = 0; f 802 drivers/iio/industrialio-core.c f += fract_mult * (*str - '0'); f 822 drivers/iio/industrialio-core.c f = -f; f 826 drivers/iio/industrialio-core.c *fract = f; f 34 drivers/iio/light/tsl2563.c #define FRAC10K(f) (((f) * (1L << (ADC_FRAC_BITS))) / (10000)) f 346 drivers/infiniband/core/rdma_core.c struct file *f; f 361 drivers/infiniband/core/rdma_core.c f = fget(fdno); f 362 drivers/infiniband/core/rdma_core.c if (!f) f 365 drivers/infiniband/core/rdma_core.c uobject = f->private_data; f 371 drivers/infiniband/core/rdma_core.c if (f->f_op != fd_type->fops || uobject->ufile != ufile) { f 372 drivers/infiniband/core/rdma_core.c fput(f); f 770 drivers/infiniband/core/rdma_core.c void uverbs_close_fd(struct file *f) f 772 drivers/infiniband/core/rdma_core.c struct ib_uobject *uobj = f->private_data; f 74 drivers/infiniband/core/rdma_core.h void uverbs_close_fd(struct file *f); f 1617 drivers/infiniband/core/ucma.c struct fd f; f 1625 drivers/infiniband/core/ucma.c f = fdget(cmd.fd); f 1626 drivers/infiniband/core/ucma.c if (!f.file) f 1628 drivers/infiniband/core/ucma.c if (f.file->f_op != &ucma_fops) { f 1634 drivers/infiniband/core/ucma.c ctx = ucma_get_ctx(f.file->private_data, cmd.id); f 1668 drivers/infiniband/core/ucma.c fdput(f); f 563 drivers/infiniband/core/uverbs_cmd.c struct fd f = {NULL, 0}; f 577 drivers/infiniband/core/uverbs_cmd.c f = fdget(cmd.fd); f 578 drivers/infiniband/core/uverbs_cmd.c if (!f.file) { f 583 drivers/infiniband/core/uverbs_cmd.c inode = file_inode(f.file); f 638 drivers/infiniband/core/uverbs_cmd.c if (f.file) f 639 drivers/infiniband/core/uverbs_cmd.c fdput(f); f 659 drivers/infiniband/core/uverbs_cmd.c if (f.file) f 660 drivers/infiniband/core/uverbs_cmd.c fdput(f); f 999 drivers/infiniband/hw/mlx4/mcg.c int f; f 1020 drivers/infiniband/hw/mlx4/mcg.c for (f = 0; f < MAX_VFS; ++f) f 1021 drivers/infiniband/hw/mlx4/mcg.c if (group->func[f].state == MCAST_MEMBER) f 1023 drivers/infiniband/hw/mlx4/mcg.c f, group->func[f].join_state); f 4569 drivers/infiniband/hw/qib/qib_iba7322.c unsigned f; f 4575 drivers/infiniband/hw/qib/qib_iba7322.c for (f = 0; f < NUM_TIDFLOWS_CTXT; f++) f 4576 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_ureg(dd, ur_rcvflowtable + f, f 4585 drivers/infiniband/hw/qib/qib_iba7322.c for (f = 0; f < NUM_TIDFLOWS_CTXT; f++) f 4586 drivers/infiniband/hw/qib/qib_iba7322.c qib_write_ureg(dd, ur_rcvflowtable + f, f 46 drivers/infiniband/hw/usnic/usnic_debugfs.c static ssize_t usnic_debugfs_buildinfo_read(struct file *f, char __user *data, f 69 drivers/infiniband/hw/usnic/usnic_debugfs.c static ssize_t flowinfo_read(struct file *f, char __user *data, f 78 drivers/infiniband/hw/usnic/usnic_debugfs.c qp_flow = f->private_data; f 317 drivers/input/input-mt.c int f, *p, s, c; f 322 drivers/input/input-mt.c f = *begin; f 324 drivers/input/input-mt.c s = p == end ? f + 1 : *p; f 327 drivers/input/input-mt.c if (*p < f) f 328 drivers/input/input-mt.c s = f, f = *p; f 332 drivers/input/input-mt.c c = (f + s + 1) / 2; f 342 drivers/input/input-mt.c return (c < s && s <= 0) || (f >= 0 && f < c); f 945 drivers/input/keyboard/applespi.c const struct tp_finger *f) f 948 drivers/input/keyboard/applespi.c le16_to_int(f->abs_x)); f 950 drivers/input/keyboard/applespi.c le16_to_int(f->abs_x)); f 952 drivers/input/keyboard/applespi.c le16_to_int(f->abs_y)); f 954 drivers/input/keyboard/applespi.c le16_to_int(f->abs_y)); f 991 drivers/input/keyboard/applespi.c const struct tp_finger *f) f 997 drivers/input/keyboard/applespi.c le16_to_int(f->touch_major) << 1); f 999 drivers/input/keyboard/applespi.c le16_to_int(f->touch_minor) << 1); f 1001 drivers/input/keyboard/applespi.c le16_to_int(f->tool_major) << 1); f 1003 drivers/input/keyboard/applespi.c le16_to_int(f->tool_minor) << 1); f 1005 drivers/input/keyboard/applespi.c MAX_FINGER_ORIENTATION - le16_to_int(f->orientation)); f 1013 drivers/input/keyboard/applespi.c const struct tp_finger *f; f 1026 drivers/input/keyboard/applespi.c f = &t->fingers[i]; f 1027 drivers/input/keyboard/applespi.c if (le16_to_int(f->touch_major) == 0) f 1029 drivers/input/keyboard/applespi.c applespi->pos[n].x = le16_to_int(f->abs_x); f 1031 drivers/input/keyboard/applespi.c le16_to_int(f->abs_y); f 1035 drivers/input/keyboard/applespi.c applespi_debug_update_dimensions(applespi, f); f 61 drivers/input/misc/yealink.c #define _SEG(t, a, am, b, bm, c, cm, d, dm, e, em, f, fm, g, gm) \ f 65 drivers/input/misc/yealink.c _LOC(f, fm) } } } f 514 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 517 drivers/input/mouse/alps.c input_mt_assign_slots(dev, slot, f->mt, n, 0); f 519 drivers/input/mouse/alps.c alps_set_slot(dev, slot[i], f->mt[i].x, f->mt[i].y); f 528 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 532 drivers/input/mouse/alps.c f->mt[0].x = f->st.x; f 533 drivers/input/mouse/alps.c f->mt[0].y = f->st.y; f 534 drivers/input/mouse/alps.c fingers = f->pressure > 0 ? 1 : 0; f 539 drivers/input/mouse/alps.c alps_set_slot(dev, 0, f->mt[0].x, f->mt[0].y); f 541 drivers/input/mouse/alps.c alps_set_slot(dev, 1, f->mt[1].x, f->mt[1].y); f 546 drivers/input/mouse/alps.c input_report_key(dev, BTN_LEFT, f->left); f 547 drivers/input/mouse/alps.c input_report_key(dev, BTN_RIGHT, f->right); f 548 drivers/input/mouse/alps.c input_report_key(dev, BTN_MIDDLE, f->middle); f 550 drivers/input/mouse/alps.c input_report_abs(dev, ABS_PRESSURE, f->pressure); f 623 drivers/input/mouse/alps.c static void alps_decode_buttons_v3(struct alps_fields *f, unsigned char *p) f 625 drivers/input/mouse/alps.c f->left = !!(p[3] & 0x01); f 626 drivers/input/mouse/alps.c f->right = !!(p[3] & 0x02); f 627 drivers/input/mouse/alps.c f->middle = !!(p[3] & 0x04); f 629 drivers/input/mouse/alps.c f->ts_left = !!(p[3] & 0x10); f 630 drivers/input/mouse/alps.c f->ts_right = !!(p[3] & 0x20); f 631 drivers/input/mouse/alps.c f->ts_middle = !!(p[3] & 0x40); f 634 drivers/input/mouse/alps.c static int alps_decode_pinnacle(struct alps_fields *f, unsigned char *p, f 637 drivers/input/mouse/alps.c f->first_mp = !!(p[4] & 0x40); f 638 drivers/input/mouse/alps.c f->is_mp = !!(p[0] & 0x40); f 640 drivers/input/mouse/alps.c if (f->is_mp) { f 641 drivers/input/mouse/alps.c f->fingers = (p[5] & 0x3) + 1; f 642 drivers/input/mouse/alps.c f->x_map = ((p[4] & 0x7e) << 8) | f 645 drivers/input/mouse/alps.c f->y_map = ((p[3] & 0x70) << 4) | f 649 drivers/input/mouse/alps.c f->st.x = ((p[1] & 0x7f) << 4) | ((p[4] & 0x30) >> 2) | f 651 drivers/input/mouse/alps.c f->st.y = ((p[2] & 0x7f) << 4) | (p[4] & 0x0f); f 652 drivers/input/mouse/alps.c f->pressure = p[5] & 0x7f; f 654 drivers/input/mouse/alps.c alps_decode_buttons_v3(f, p); f 660 drivers/input/mouse/alps.c static int alps_decode_rushmore(struct alps_fields *f, unsigned char *p, f 663 drivers/input/mouse/alps.c f->first_mp = !!(p[4] & 0x40); f 664 drivers/input/mouse/alps.c f->is_mp = !!(p[5] & 0x40); f 666 drivers/input/mouse/alps.c if (f->is_mp) { f 667 drivers/input/mouse/alps.c f->fingers = max((p[5] & 0x3), ((p[5] >> 2) & 0x3)) + 1; f 668 drivers/input/mouse/alps.c f->x_map = ((p[5] & 0x10) << 11) | f 672 drivers/input/mouse/alps.c f->y_map = ((p[5] & 0x20) << 6) | f 677 drivers/input/mouse/alps.c f->st.x = ((p[1] & 0x7f) << 4) | ((p[4] & 0x30) >> 2) | f 679 drivers/input/mouse/alps.c f->st.y = ((p[2] & 0x7f) << 4) | (p[4] & 0x0f); f 680 drivers/input/mouse/alps.c f->pressure = p[5] & 0x7f; f 682 drivers/input/mouse/alps.c alps_decode_buttons_v3(f, p); f 688 drivers/input/mouse/alps.c static int alps_decode_dolphin(struct alps_fields *f, unsigned char *p, f 694 drivers/input/mouse/alps.c f->first_mp = !!(p[0] & 0x02); f 695 drivers/input/mouse/alps.c f->is_mp = !!(p[0] & 0x20); f 697 drivers/input/mouse/alps.c if (!f->is_mp) { f 698 drivers/input/mouse/alps.c f->st.x = ((p[1] & 0x7f) | ((p[4] & 0x0f) << 7)); f 699 drivers/input/mouse/alps.c f->st.y = ((p[2] & 0x7f) | ((p[4] & 0xf0) << 3)); f 700 drivers/input/mouse/alps.c f->pressure = (p[0] & 4) ? 0 : p[5] & 0x7f; f 701 drivers/input/mouse/alps.c alps_decode_buttons_v3(f, p); f 703 drivers/input/mouse/alps.c f->fingers = ((p[0] & 0x6) >> 1 | f 715 drivers/input/mouse/alps.c f->y_map = palm_data & (BIT(priv->y_bits) - 1); f 718 drivers/input/mouse/alps.c f->x_map = (palm_data >> priv->y_bits) & f 730 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 733 drivers/input/mouse/alps.c memset(f, 0, sizeof(*f)); f 735 drivers/input/mouse/alps.c priv->decode_fields(f, packet, psmouse); f 750 drivers/input/mouse/alps.c if (f->is_mp) { f 751 drivers/input/mouse/alps.c fingers = f->fingers; f 756 drivers/input/mouse/alps.c priv->decode_fields(f, priv->multi_data, psmouse); f 757 drivers/input/mouse/alps.c if (alps_process_bitmap(priv, f) == 0) f 772 drivers/input/mouse/alps.c if (f->is_mp) f 775 drivers/input/mouse/alps.c if (!priv->multi_packet && f->first_mp) { f 789 drivers/input/mouse/alps.c if (f->st.x && f->st.y && !f->pressure) f 796 drivers/input/mouse/alps.c input_report_key(dev2, BTN_LEFT, f->ts_left); f 797 drivers/input/mouse/alps.c input_report_key(dev2, BTN_RIGHT, f->ts_right); f 798 drivers/input/mouse/alps.c input_report_key(dev2, BTN_MIDDLE, f->ts_middle); f 893 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 913 drivers/input/mouse/alps.c f->left = !!(packet[4] & 0x01); f 914 drivers/input/mouse/alps.c f->right = !!(packet[4] & 0x02); f 916 drivers/input/mouse/alps.c f->st.x = ((packet[1] & 0x7f) << 4) | ((packet[3] & 0x30) >> 2) | f 918 drivers/input/mouse/alps.c f->st.y = ((packet[2] & 0x7f) << 4) | (packet[3] & 0x0f); f 919 drivers/input/mouse/alps.c f->pressure = packet[5] & 0x7f; f 924 drivers/input/mouse/alps.c f->x_map = ((priv->multi_data[2] & 0x1f) << 10) | f 928 drivers/input/mouse/alps.c f->y_map = ((priv->multi_data[5] & 0x01) << 10) | f 932 drivers/input/mouse/alps.c f->fingers = alps_process_bitmap(priv, f); f 935 drivers/input/mouse/alps.c alps_report_semi_mt_data(psmouse, f->fingers); f 1026 drivers/input/mouse/alps.c static int alps_decode_packet_v7(struct alps_fields *f, f 1059 drivers/input/mouse/alps.c alps_get_finger_coordinate_v7(f->mt, p, pkt_id); f 1062 drivers/input/mouse/alps.c f->fingers = alps_get_mt_count(f->mt); f 1064 drivers/input/mouse/alps.c f->fingers = 3 + (p[5] & 0x03); f 1066 drivers/input/mouse/alps.c f->left = (p[0] & 0x80) >> 7; f 1069 drivers/input/mouse/alps.c f->fingers++; f 1071 drivers/input/mouse/alps.c f->fingers++; f 1073 drivers/input/mouse/alps.c f->right = (p[0] & 0x20) >> 5; f 1074 drivers/input/mouse/alps.c f->middle = (p[0] & 0x10) >> 4; f 1078 drivers/input/mouse/alps.c if (f->fingers == 1 && f->mt[0].x == 0 && f->mt[0].y == 0) { f 1079 drivers/input/mouse/alps.c f->mt[0].x = f->mt[1].x; f 1080 drivers/input/mouse/alps.c f->mt[0].y = f->mt[1].y; f 1081 drivers/input/mouse/alps.c f->mt[1].x = 0; f 1082 drivers/input/mouse/alps.c f->mt[1].y = 0; f 1120 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 1122 drivers/input/mouse/alps.c memset(f, 0, sizeof(*f)); f 1124 drivers/input/mouse/alps.c if (priv->decode_fields(f, psmouse->packet, psmouse)) f 1127 drivers/input/mouse/alps.c alps_report_mt_data(psmouse, alps_get_mt_count(f->mt)); f 1129 drivers/input/mouse/alps.c input_mt_report_finger_count(dev, f->fingers); f 1131 drivers/input/mouse/alps.c input_report_key(dev, BTN_LEFT, f->left); f 1132 drivers/input/mouse/alps.c input_report_key(dev, BTN_RIGHT, f->right); f 1133 drivers/input/mouse/alps.c input_report_key(dev, BTN_MIDDLE, f->middle); f 1177 drivers/input/mouse/alps.c static int alps_decode_ss4_v2(struct alps_fields *f, f 1189 drivers/input/mouse/alps.c f->mt[0].x = SS4_1F_X_V2(p); f 1190 drivers/input/mouse/alps.c f->mt[0].y = SS4_1F_Y_V2(p); f 1191 drivers/input/mouse/alps.c f->pressure = ((SS4_1F_Z_V2(p)) * 2) & 0x7f; f 1198 drivers/input/mouse/alps.c f->fingers = f->pressure > 0 ? 1 : 0; f 1199 drivers/input/mouse/alps.c f->first_mp = 0; f 1200 drivers/input/mouse/alps.c f->is_mp = 0; f 1206 drivers/input/mouse/alps.c f->mt[0].x = SS4_PLUS_BTL_MF_X_V2(p, 0); f 1207 drivers/input/mouse/alps.c f->mt[1].x = SS4_PLUS_BTL_MF_X_V2(p, 1); f 1209 drivers/input/mouse/alps.c f->mt[0].x = SS4_BTL_MF_X_V2(p, 0); f 1210 drivers/input/mouse/alps.c f->mt[1].x = SS4_BTL_MF_X_V2(p, 1); f 1212 drivers/input/mouse/alps.c f->mt[0].y = SS4_BTL_MF_Y_V2(p, 0); f 1213 drivers/input/mouse/alps.c f->mt[1].y = SS4_BTL_MF_Y_V2(p, 1); f 1216 drivers/input/mouse/alps.c f->mt[0].x = SS4_PLUS_STD_MF_X_V2(p, 0); f 1217 drivers/input/mouse/alps.c f->mt[1].x = SS4_PLUS_STD_MF_X_V2(p, 1); f 1219 drivers/input/mouse/alps.c f->mt[0].x = SS4_STD_MF_X_V2(p, 0); f 1220 drivers/input/mouse/alps.c f->mt[1].x = SS4_STD_MF_X_V2(p, 1); f 1222 drivers/input/mouse/alps.c f->mt[0].y = SS4_STD_MF_Y_V2(p, 0); f 1223 drivers/input/mouse/alps.c f->mt[1].y = SS4_STD_MF_Y_V2(p, 1); f 1225 drivers/input/mouse/alps.c f->pressure = SS4_MF_Z_V2(p, 0) ? 0x30 : 0; f 1228 drivers/input/mouse/alps.c f->first_mp = 1; f 1230 drivers/input/mouse/alps.c f->fingers = 2; f 1231 drivers/input/mouse/alps.c f->first_mp = 0; f 1233 drivers/input/mouse/alps.c f->is_mp = 0; f 1240 drivers/input/mouse/alps.c f->mt[2].x = SS4_PLUS_BTL_MF_X_V2(p, 0); f 1241 drivers/input/mouse/alps.c f->mt[3].x = SS4_PLUS_BTL_MF_X_V2(p, 1); f 1244 drivers/input/mouse/alps.c f->mt[2].x = SS4_BTL_MF_X_V2(p, 0); f 1245 drivers/input/mouse/alps.c f->mt[3].x = SS4_BTL_MF_X_V2(p, 1); f 1250 drivers/input/mouse/alps.c f->mt[2].y = SS4_BTL_MF_Y_V2(p, 0); f 1251 drivers/input/mouse/alps.c f->mt[3].y = SS4_BTL_MF_Y_V2(p, 1); f 1254 drivers/input/mouse/alps.c f->mt[2].x = SS4_PLUS_STD_MF_X_V2(p, 0); f 1255 drivers/input/mouse/alps.c f->mt[3].x = SS4_PLUS_STD_MF_X_V2(p, 1); f 1258 drivers/input/mouse/alps.c f->mt[2].x = SS4_STD_MF_X_V2(p, 0); f 1259 drivers/input/mouse/alps.c f->mt[3].x = SS4_STD_MF_X_V2(p, 1); f 1264 drivers/input/mouse/alps.c f->mt[2].y = SS4_STD_MF_Y_V2(p, 0); f 1265 drivers/input/mouse/alps.c f->mt[3].y = SS4_STD_MF_Y_V2(p, 1); f 1268 drivers/input/mouse/alps.c f->first_mp = 0; f 1269 drivers/input/mouse/alps.c f->is_mp = 1; f 1272 drivers/input/mouse/alps.c f->fingers = 5; f 1273 drivers/input/mouse/alps.c } else if (f->mt[3].x == no_data_x && f 1274 drivers/input/mouse/alps.c f->mt[3].y == no_data_y) { f 1275 drivers/input/mouse/alps.c f->mt[3].x = 0; f 1276 drivers/input/mouse/alps.c f->mt[3].y = 0; f 1277 drivers/input/mouse/alps.c f->fingers = 3; f 1279 drivers/input/mouse/alps.c f->fingers = 4; f 1288 drivers/input/mouse/alps.c f->first_mp = 0; f 1289 drivers/input/mouse/alps.c f->is_mp = 0; f 1294 drivers/input/mouse/alps.c memset(f, 0, sizeof(struct alps_fields)); f 1300 drivers/input/mouse/alps.c f->ts_left = !!(SS4_BTN_V2(p) & 0x01); f 1301 drivers/input/mouse/alps.c f->ts_right = !!(SS4_BTN_V2(p) & 0x02); f 1302 drivers/input/mouse/alps.c f->ts_middle = !!(SS4_BTN_V2(p) & 0x04); f 1304 drivers/input/mouse/alps.c f->left = !!(SS4_BTN_V2(p) & 0x01); f 1306 drivers/input/mouse/alps.c f->right = !!(SS4_BTN_V2(p) & 0x02); f 1307 drivers/input/mouse/alps.c f->middle = !!(SS4_BTN_V2(p) & 0x04); f 1320 drivers/input/mouse/alps.c struct alps_fields *f = &priv->f; f 1322 drivers/input/mouse/alps.c memset(f, 0, sizeof(struct alps_fields)); f 1323 drivers/input/mouse/alps.c priv->decode_fields(f, packet, psmouse); f 1331 drivers/input/mouse/alps.c if (f->is_mp) { f 1333 drivers/input/mouse/alps.c priv->decode_fields(f, priv->multi_data, psmouse); f 1343 drivers/input/mouse/alps.c if (f->is_mp) f 1347 drivers/input/mouse/alps.c if (!priv->multi_packet && f->first_mp) { f 1367 drivers/input/mouse/alps.c input_report_key(dev2, BTN_LEFT, f->ts_left); f 1368 drivers/input/mouse/alps.c input_report_key(dev2, BTN_RIGHT, f->ts_right); f 1369 drivers/input/mouse/alps.c input_report_key(dev2, BTN_MIDDLE, f->ts_middle); f 1376 drivers/input/mouse/alps.c alps_report_mt_data(psmouse, (f->fingers <= 4) ? f->fingers : 4); f 1378 drivers/input/mouse/alps.c input_mt_report_finger_count(dev, f->fingers); f 1380 drivers/input/mouse/alps.c input_report_key(dev, BTN_LEFT, f->left); f 1381 drivers/input/mouse/alps.c input_report_key(dev, BTN_RIGHT, f->right); f 1382 drivers/input/mouse/alps.c input_report_key(dev, BTN_MIDDLE, f->middle); f 1384 drivers/input/mouse/alps.c input_report_abs(dev, ABS_PRESSURE, f->pressure); f 311 drivers/input/mouse/alps.h int (*decode_fields)(struct alps_fields *f, unsigned char *p, f 319 drivers/input/mouse/alps.h struct alps_fields f; f 566 drivers/input/mouse/bcm5974.c const struct tp_finger *f) f 572 drivers/input/mouse/bcm5974.c raw2int(f->touch_major) << 1); f 574 drivers/input/mouse/bcm5974.c raw2int(f->touch_minor) << 1); f 576 drivers/input/mouse/bcm5974.c raw2int(f->tool_major) << 1); f 578 drivers/input/mouse/bcm5974.c raw2int(f->tool_minor) << 1); f 580 drivers/input/mouse/bcm5974.c MAX_FINGER_ORIENTATION - raw2int(f->orientation)); f 587 drivers/input/mouse/bcm5974.c const struct tp_finger *f, int raw_n) f 592 drivers/input/mouse/bcm5974.c int p = raw2int(f->touch_major); f 593 drivers/input/mouse/bcm5974.c int w = raw2int(f->tool_major); f 594 drivers/input/mouse/bcm5974.c if (p > 0 && raw2int(f->origin)) { f 608 drivers/input/mouse/bcm5974.c const struct tp_finger *f; f 618 drivers/input/mouse/bcm5974.c f = get_tp_finger(dev, i); f 619 drivers/input/mouse/bcm5974.c if (raw2int(f->touch_major) == 0) f 621 drivers/input/mouse/bcm5974.c dev->pos[n].x = raw2int(f->abs_x); f 622 drivers/input/mouse/bcm5974.c dev->pos[n].y = c->y.min + c->y.max - raw2int(f->abs_y); f 623 drivers/input/mouse/bcm5974.c dev->index[n++] = f; f 404 drivers/input/rmi4/rmi_f54.c struct v4l2_pix_format *f = &f54->format; f 412 drivers/input/rmi4/rmi_f54.c ret = rmi_f54_get_pixel_fmt(reptype, &f->pixelformat); f 418 drivers/input/rmi4/rmi_f54.c f->width = rx; f 419 drivers/input/rmi4/rmi_f54.c f->height = tx; f 420 drivers/input/rmi4/rmi_f54.c f->field = V4L2_FIELD_NONE; f 421 drivers/input/rmi4/rmi_f54.c f->colorspace = V4L2_COLORSPACE_RAW; f 422 drivers/input/rmi4/rmi_f54.c f->bytesperline = f->width * sizeof(u16); f 423 drivers/input/rmi4/rmi_f54.c f->sizeimage = f->width * f->height * sizeof(u16); f 444 drivers/input/rmi4/rmi_f54.c struct v4l2_format *f) f 448 drivers/input/rmi4/rmi_f54.c f->fmt.pix = f54->format; f 2438 drivers/input/touchscreen/atmel_mxt_ts.c struct v4l2_pix_format *f = &data->dbg.format; f 2444 drivers/input/touchscreen/atmel_mxt_ts.c f->pixelformat = V4L2_TCH_FMT_DELTA_TD16; f 2446 drivers/input/touchscreen/atmel_mxt_ts.c f->pixelformat = V4L2_TCH_FMT_TU16; f 2448 drivers/input/touchscreen/atmel_mxt_ts.c f->width = data->xy_switch ? data->ysize : data->xsize; f 2449 drivers/input/touchscreen/atmel_mxt_ts.c f->height = data->xy_switch ? data->xsize : data->ysize; f 2450 drivers/input/touchscreen/atmel_mxt_ts.c f->field = V4L2_FIELD_NONE; f 2451 drivers/input/touchscreen/atmel_mxt_ts.c f->colorspace = V4L2_COLORSPACE_RAW; f 2452 drivers/input/touchscreen/atmel_mxt_ts.c f->bytesperline = f->width * sizeof(u16); f 2453 drivers/input/touchscreen/atmel_mxt_ts.c f->sizeimage = f->width * f->height * sizeof(u16); f 2474 drivers/input/touchscreen/atmel_mxt_ts.c static int mxt_vidioc_fmt(struct file *file, void *priv, struct v4l2_format *f) f 2478 drivers/input/touchscreen/atmel_mxt_ts.c f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; f 2479 drivers/input/touchscreen/atmel_mxt_ts.c f->fmt.pix = data->dbg.format; f 959 drivers/input/touchscreen/sur40.c struct v4l2_format *f) f 961 drivers/input/touchscreen/sur40.c switch (f->fmt.pix.pixelformat) { f 963 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40_pix_format[1]; f 967 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40_pix_format[0]; f 975 drivers/input/touchscreen/sur40.c struct v4l2_format *f) f 979 drivers/input/touchscreen/sur40.c switch (f->fmt.pix.pixelformat) { f 989 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40->pix_fmt; f 994 drivers/input/touchscreen/sur40.c struct v4l2_format *f) f 998 drivers/input/touchscreen/sur40.c f->fmt.pix = sur40->pix_fmt; f 1041 drivers/input/touchscreen/sur40.c struct v4l2_fmtdesc *f) f 1043 drivers/input/touchscreen/sur40.c if (f->index >= ARRAY_SIZE(sur40_pix_format)) f 1046 drivers/input/touchscreen/sur40.c f->pixelformat = sur40_pix_format[f->index].pixelformat; f 1047 drivers/input/touchscreen/sur40.c f->flags = 0; f 1052 drivers/input/touchscreen/sur40.c struct v4l2_frmsizeenum *f) f 1056 drivers/input/touchscreen/sur40.c if ((f->index != 0) || ((f->pixel_format != V4L2_TCH_FMT_TU08) f 1057 drivers/input/touchscreen/sur40.c && (f->pixel_format != V4L2_PIX_FMT_GREY))) f 1060 drivers/input/touchscreen/sur40.c f->type = V4L2_FRMSIZE_TYPE_DISCRETE; f 1061 drivers/input/touchscreen/sur40.c f->discrete.width = sur40->pix_fmt.width; f 1062 drivers/input/touchscreen/sur40.c f->discrete.height = sur40->pix_fmt.height; f 1067 drivers/input/touchscreen/sur40.c struct v4l2_frmivalenum *f) f 1071 drivers/input/touchscreen/sur40.c if ((f->index > 0) || ((f->pixel_format != V4L2_TCH_FMT_TU08) f 1072 drivers/input/touchscreen/sur40.c && (f->pixel_format != V4L2_PIX_FMT_GREY)) f 1073 drivers/input/touchscreen/sur40.c || (f->width != sur40->pix_fmt.width) f 1074 drivers/input/touchscreen/sur40.c || (f->height != sur40->pix_fmt.height)) f 1077 drivers/input/touchscreen/sur40.c f->type = V4L2_FRMIVAL_TYPE_DISCRETE; f 1078 drivers/input/touchscreen/sur40.c f->discrete.denominator = 60; f 1079 drivers/input/touchscreen/sur40.c f->discrete.numerator = 1; f 76 drivers/iommu/amd_iommu_proto.h static inline bool iommu_feature(struct amd_iommu *iommu, u64 f) f 81 drivers/iommu/amd_iommu_proto.h return !!(iommu->features & f); f 56 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); f 59 drivers/irqchip/irq-ftintc010.c mask = readl(FT010_IRQ_MASK(f->base)); f 61 drivers/irqchip/irq-ftintc010.c writel(mask, FT010_IRQ_MASK(f->base)); f 66 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); f 69 drivers/irqchip/irq-ftintc010.c mask = readl(FT010_IRQ_MASK(f->base)); f 71 drivers/irqchip/irq-ftintc010.c writel(mask, FT010_IRQ_MASK(f->base)); f 76 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); f 78 drivers/irqchip/irq-ftintc010.c writel(BIT(irqd_to_hwirq(d)), FT010_IRQ_CLEAR(f->base)); f 83 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = irq_data_get_irq_chip_data(d); f 87 drivers/irqchip/irq-ftintc010.c mode = readl(FT010_IRQ_MODE(f->base)); f 88 drivers/irqchip/irq-ftintc010.c polarity = readl(FT010_IRQ_POLARITY(f->base)); f 112 drivers/irqchip/irq-ftintc010.c writel(mode, FT010_IRQ_MODE(f->base)); f 113 drivers/irqchip/irq-ftintc010.c writel(polarity, FT010_IRQ_POLARITY(f->base)); f 131 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = &firq; f 135 drivers/irqchip/irq-ftintc010.c while ((status = readl(FT010_IRQ_STATUS(f->base)))) { f 137 drivers/irqchip/irq-ftintc010.c handle_domain_irq(f->domain, irq, regs); f 144 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = d->host_data; f 146 drivers/irqchip/irq-ftintc010.c irq_set_chip_data(irq, f); f 169 drivers/irqchip/irq-ftintc010.c struct ft010_irq_data *f = &firq; f 177 drivers/irqchip/irq-ftintc010.c f->base = of_iomap(node, 0); f 178 drivers/irqchip/irq-ftintc010.c WARN(!f->base, "unable to map gemini irq registers\n"); f 181 drivers/irqchip/irq-ftintc010.c writel(0, FT010_IRQ_MASK(f->base)); f 182 drivers/irqchip/irq-ftintc010.c writel(0, FT010_FIQ_MASK(f->base)); f 184 drivers/irqchip/irq-ftintc010.c f->domain = irq_domain_add_simple(node, FT010_NUM_IRQS, 0, f 185 drivers/irqchip/irq-ftintc010.c &ft010_irqdomain_ops, f); f 95 drivers/irqchip/irq-gic.c #define gic_lock_irqsave(f) \ f 96 drivers/irqchip/irq-gic.c raw_spin_lock_irqsave(&cpu_map_lock, (f)) f 97 drivers/irqchip/irq-gic.c #define gic_unlock_irqrestore(f) \ f 98 drivers/irqchip/irq-gic.c raw_spin_unlock_irqrestore(&cpu_map_lock, (f)) f 105 drivers/irqchip/irq-gic.c #define gic_lock_irqsave(f) do { (void)(f); } while(0) f 106 drivers/irqchip/irq-gic.c #define gic_unlock_irqrestore(f) do { (void)(f); } while(0) f 149 drivers/irqchip/irq-gic.c void __iomem *(*f)(union gic_base *)) f 151 drivers/irqchip/irq-gic.c data->get_base = f; f 156 drivers/irqchip/irq-gic.c #define gic_set_base_accessor(d, f) f 56 drivers/irqchip/irq-versatile-fpga.c struct fpga_irq_data *f = irq_data_get_irq_chip_data(d); f 59 drivers/irqchip/irq-versatile-fpga.c writel(mask, f->base + IRQ_ENABLE_CLEAR); f 64 drivers/irqchip/irq-versatile-fpga.c struct fpga_irq_data *f = irq_data_get_irq_chip_data(d); f 67 drivers/irqchip/irq-versatile-fpga.c writel(mask, f->base + IRQ_ENABLE_SET); f 73 drivers/irqchip/irq-versatile-fpga.c struct fpga_irq_data *f = irq_desc_get_handler_data(desc); f 78 drivers/irqchip/irq-versatile-fpga.c status = readl(f->base + IRQ_STATUS); f 88 drivers/irqchip/irq-versatile-fpga.c generic_handle_irq(irq_find_mapping(f->domain, irq)); f 100 drivers/irqchip/irq-versatile-fpga.c static int handle_one_fpga(struct fpga_irq_data *f, struct pt_regs *regs) f 106 drivers/irqchip/irq-versatile-fpga.c while ((status = readl(f->base + IRQ_STATUS))) { f 108 drivers/irqchip/irq-versatile-fpga.c handle_domain_irq(f->domain, irq, regs); f 132 drivers/irqchip/irq-versatile-fpga.c struct fpga_irq_data *f = d->host_data; f 135 drivers/irqchip/irq-versatile-fpga.c if (!(f->valid & BIT(hwirq))) f 137 drivers/irqchip/irq-versatile-fpga.c irq_set_chip_data(irq, f); f 138 drivers/irqchip/irq-versatile-fpga.c irq_set_chip_and_handler(irq, &f->chip, f 152 drivers/irqchip/irq-versatile-fpga.c struct fpga_irq_data *f; f 159 drivers/irqchip/irq-versatile-fpga.c f = &fpga_irq_devices[fpga_irq_id]; f 160 drivers/irqchip/irq-versatile-fpga.c f->base = base; f 161 drivers/irqchip/irq-versatile-fpga.c f->chip.name = name; f 162 drivers/irqchip/irq-versatile-fpga.c f->chip.irq_ack = fpga_irq_mask; f 163 drivers/irqchip/irq-versatile-fpga.c f->chip.irq_mask = fpga_irq_mask; f 164 drivers/irqchip/irq-versatile-fpga.c f->chip.irq_unmask = fpga_irq_unmask; f 165 drivers/irqchip/irq-versatile-fpga.c f->valid = valid; f 169 drivers/irqchip/irq-versatile-fpga.c f); f 173 drivers/irqchip/irq-versatile-fpga.c f->domain = irq_domain_add_simple(node, fls(valid), irq_start, f 174 drivers/irqchip/irq-versatile-fpga.c &fpga_irqdomain_ops, f); f 180 drivers/irqchip/irq-versatile-fpga.c irq_create_mapping(f->domain, i); f 181 drivers/irqchip/irq-versatile-fpga.c f->used_irqs++; f 185 drivers/irqchip/irq-versatile-fpga.c fpga_irq_id, name, base, f->used_irqs); f 571 drivers/isdn/capi/capiutil.c va_list f; f 576 drivers/isdn/capi/capiutil.c va_start(f, fmt); f 578 drivers/isdn/capi/capiutil.c n = vsnprintf(cdb->p, r, fmt, f); f 579 drivers/isdn/capi/capiutil.c va_end(f); f 598 drivers/isdn/capi/capiutil.c va_start(f, fmt); f 600 drivers/isdn/capi/capiutil.c n = vsnprintf(cdb->p, r, fmt, f); f 601 drivers/isdn/capi/capiutil.c va_end(f); f 2027 drivers/isdn/hardware/mISDN/hfcsusb.c struct usb_fifo *f; f 2034 drivers/isdn/hardware/mISDN/hfcsusb.c f = &hw->fifos[idx & 7]; f 2043 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = usb_rcvintpipe(dev, f 2045 drivers/isdn/hardware/mISDN/hfcsusb.c f->usb_transfer_mode = USB_INT; f 2050 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = usb_rcvbulkpipe(dev, f 2053 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = usb_sndbulkpipe(dev, f 2055 drivers/isdn/hardware/mISDN/hfcsusb.c f->usb_transfer_mode = USB_BULK; f 2060 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = usb_rcvisocpipe(dev, f 2063 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = usb_sndisocpipe(dev, f 2065 drivers/isdn/hardware/mISDN/hfcsusb.c f->usb_transfer_mode = USB_ISOC; f 2069 drivers/isdn/hardware/mISDN/hfcsusb.c f->pipe = 0; f 2072 drivers/isdn/hardware/mISDN/hfcsusb.c if (f->pipe) { f 2073 drivers/isdn/hardware/mISDN/hfcsusb.c f->fifonum = idx & 7; f 2074 drivers/isdn/hardware/mISDN/hfcsusb.c f->hw = hw; f 2075 drivers/isdn/hardware/mISDN/hfcsusb.c f->usb_packet_maxlen = f 2077 drivers/isdn/hardware/mISDN/hfcsusb.c f->intervall = ep->desc.bInterval; f 90 drivers/isdn/mISDN/dsp_audio.c short mu, e, f, y; f 95 drivers/isdn/mISDN/dsp_audio.c f = mu & 0x0f; f 96 drivers/isdn/mISDN/dsp_audio.c y = f * (1 << (e + 3)); f 689 drivers/isdn/mISDN/layer2.c lapb_dl_release_l2l3(struct layer2 *l2, int f) f 693 drivers/isdn/mISDN/layer2.c l2up_create(l2, f, 0, NULL); f 19 drivers/macintosh/windfarm.h #define FIX32TOPRINT(f) (((s32)(f)) >> 16),(((((s32)(f)) & 0xffff) * 1000) >> 16) f 586 drivers/md/bcache/bset.c struct bkey_float *f) f 588 drivers/md/bcache/bset.c const uint64_t *p = &k->low - (f->exponent >> 6); f 590 drivers/md/bcache/bset.c return shrd128(p[-1], p[0], f->exponent & 63) & BKEY_MANTISSA_MASK; f 595 drivers/md/bcache/bset.c struct bkey_float *f = &t->tree[j]; f 621 drivers/md/bcache/bset.c f->exponent = fls64(KEY_INODE(r) ^ KEY_INODE(l)) + 64; f 623 drivers/md/bcache/bset.c f->exponent = fls64(r->low ^ l->low); f 625 drivers/md/bcache/bset.c f->exponent = max_t(int, f->exponent - BKEY_MANTISSA_BITS, 0); f 632 drivers/md/bcache/bset.c if (bfloat_mantissa(m, f) != bfloat_mantissa(p, f)) f 633 drivers/md/bcache/bset.c f->mantissa = bfloat_mantissa(m, f) - 1; f 635 drivers/md/bcache/bset.c f->exponent = 127; f 966 drivers/md/bcache/bset.c struct bkey_float *f; f 976 drivers/md/bcache/bset.c f = &t->tree[j]; f 978 drivers/md/bcache/bset.c if (likely(f->exponent != 127)) { f 979 drivers/md/bcache/bset.c if (f->mantissa >= bfloat_mantissa(search, f)) f 998 drivers/md/bcache/bset.c l = cacheline_to_bkey(t, inorder, f->m); f 1001 drivers/md/bcache/bset.c f = &t->tree[inorder_next(j, t->size)]; f 1002 drivers/md/bcache/bset.c r = cacheline_to_bkey(t, inorder, f->m); f 1006 drivers/md/bcache/bset.c r = cacheline_to_bkey(t, inorder, f->m); f 1009 drivers/md/bcache/bset.c f = &t->tree[inorder_prev(j, t->size)]; f 1010 drivers/md/bcache/bset.c l = cacheline_to_bkey(t, inorder, f->m); f 169 drivers/md/bcache/closure.c static int debug_seq_show(struct seq_file *f, void *data) f 178 drivers/md/bcache/closure.c seq_printf(f, "%p: %pS -> %pS p %p r %i ", f 182 drivers/md/bcache/closure.c seq_printf(f, "%s%s\n", f 188 drivers/md/bcache/closure.c seq_printf(f, " W %pS\n", f 191 drivers/md/bcache/closure.c seq_printf(f, "\n"); f 215 drivers/md/bcache/closure.h static inline void closure_set_waiting(struct closure *cl, unsigned long f) f 218 drivers/md/bcache/closure.h cl->waiting_on = f; f 1234 drivers/md/dm-bufio.c int a, f; f 1296 drivers/md/dm-bufio.c f = dm_bufio_issue_flush(c); f 1300 drivers/md/dm-bufio.c return f; f 597 drivers/md/dm-raid.c unsigned int n = 1, f = 1, r = 0; f 612 drivers/md/dm-raid.c f = copies; f 618 drivers/md/dm-raid.c f = copies; f 626 drivers/md/dm-raid.c return r | (f << RAID10_FAR_COPIES_SHIFT) | n; f 489 drivers/md/dm-verity-fec.c struct dm_verity_fec *f = io->v->fec; f 495 drivers/md/dm-verity-fec.c mempool_free(fio->rs, &f->rs_pool); f 498 drivers/md/dm-verity-fec.c mempool_free(fio->bufs[n], &f->prealloc_pool); f 501 drivers/md/dm-verity-fec.c mempool_free(fio->bufs[n], &f->extra_pool); f 503 drivers/md/dm-verity-fec.c mempool_free(fio->output, &f->output_pool); f 546 drivers/md/dm-verity-fec.c struct dm_verity_fec *f = v->fec; f 551 drivers/md/dm-verity-fec.c mempool_exit(&f->rs_pool); f 552 drivers/md/dm-verity-fec.c mempool_exit(&f->prealloc_pool); f 553 drivers/md/dm-verity-fec.c mempool_exit(&f->extra_pool); f 554 drivers/md/dm-verity-fec.c mempool_exit(&f->output_pool); f 555 drivers/md/dm-verity-fec.c kmem_cache_destroy(f->cache); f 557 drivers/md/dm-verity-fec.c if (f->data_bufio) f 558 drivers/md/dm-verity-fec.c dm_bufio_client_destroy(f->data_bufio); f 559 drivers/md/dm-verity-fec.c if (f->bufio) f 560 drivers/md/dm-verity-fec.c dm_bufio_client_destroy(f->bufio); f 562 drivers/md/dm-verity-fec.c if (f->dev) f 563 drivers/md/dm-verity-fec.c dm_put_device(v->ti, f->dev); f 565 drivers/md/dm-verity-fec.c kfree(f); f 657 drivers/md/dm-verity-fec.c struct dm_verity_fec *f; f 659 drivers/md/dm-verity-fec.c f = kzalloc(sizeof(struct dm_verity_fec), GFP_KERNEL); f 660 drivers/md/dm-verity-fec.c if (!f) { f 664 drivers/md/dm-verity-fec.c v->fec = f; f 675 drivers/md/dm-verity-fec.c struct dm_verity_fec *f = v->fec; f 711 drivers/md/dm-verity-fec.c if (!f->roots) { f 715 drivers/md/dm-verity-fec.c f->rsn = DM_VERITY_FEC_RSM - f->roots; f 717 drivers/md/dm-verity-fec.c if (!f->blocks) { f 722 drivers/md/dm-verity-fec.c f->rounds = f->blocks; f 723 drivers/md/dm-verity-fec.c if (sector_div(f->rounds, f->rsn)) f 724 drivers/md/dm-verity-fec.c f->rounds++; f 730 drivers/md/dm-verity-fec.c if (f->blocks < v->data_blocks + hash_blocks || !f->rounds) { f 739 drivers/md/dm-verity-fec.c f->hash_blocks = f->blocks - v->data_blocks; f 740 drivers/md/dm-verity-fec.c if (dm_bufio_get_device_size(v->bufio) < f->hash_blocks) { f 746 drivers/md/dm-verity-fec.c f->bufio = dm_bufio_client_create(f->dev->bdev, f 749 drivers/md/dm-verity-fec.c if (IS_ERR(f->bufio)) { f 751 drivers/md/dm-verity-fec.c return PTR_ERR(f->bufio); f 754 drivers/md/dm-verity-fec.c if (dm_bufio_get_device_size(f->bufio) < f 755 drivers/md/dm-verity-fec.c ((f->start + f->rounds * f->roots) >> v->data_dev_block_bits)) { f 760 drivers/md/dm-verity-fec.c f->data_bufio = dm_bufio_client_create(v->data_dev->bdev, f 763 drivers/md/dm-verity-fec.c if (IS_ERR(f->data_bufio)) { f 765 drivers/md/dm-verity-fec.c return PTR_ERR(f->data_bufio); f 768 drivers/md/dm-verity-fec.c if (dm_bufio_get_device_size(f->data_bufio) < v->data_blocks) { f 774 drivers/md/dm-verity-fec.c ret = mempool_init(&f->rs_pool, num_online_cpus(), fec_rs_alloc, f 781 drivers/md/dm-verity-fec.c f->cache = kmem_cache_create("dm_verity_fec_buffers", f 782 drivers/md/dm-verity-fec.c f->rsn << DM_VERITY_FEC_BUF_RS_BITS, f 784 drivers/md/dm-verity-fec.c if (!f->cache) { f 790 drivers/md/dm-verity-fec.c ret = mempool_init_slab_pool(&f->prealloc_pool, num_online_cpus() * f 792 drivers/md/dm-verity-fec.c f->cache); f 798 drivers/md/dm-verity-fec.c ret = mempool_init_slab_pool(&f->extra_pool, 0, f->cache); f 805 drivers/md/dm-verity-fec.c ret = mempool_init_kmalloc_pool(&f->output_pool, num_online_cpus(), f 1503 drivers/md/dm-writecache.c struct wc_entry *e, *f; f 1535 drivers/md/dm-writecache.c f = container_of(wbl->list.prev, struct wc_entry, lru); f 1536 drivers/md/dm-writecache.c if (read_original_sector(wc, f) != f 1539 drivers/md/dm-writecache.c if (!wc_add_block(wb, f, GFP_NOWAIT | __GFP_NOWARN)) f 1542 drivers/md/dm-writecache.c list_del(&f->lru); f 1543 drivers/md/dm-writecache.c wb->wc_list[wb->wc_list_n++] = f; f 1544 drivers/md/dm-writecache.c e = f; f 1560 drivers/md/dm-writecache.c struct wc_entry *e, *f; f 1587 drivers/md/dm-writecache.c f = container_of(wbl->list.prev, struct wc_entry, lru); f 1588 drivers/md/dm-writecache.c BUG_ON(f != e + 1); f 1589 drivers/md/dm-writecache.c list_del(&f->lru); f 1590 drivers/md/dm-writecache.c e = f; f 1603 drivers/md/dm-writecache.c struct wc_entry *f, *g, *e = NULL; f 1654 drivers/md/dm-writecache.c f = container_of(node, struct wc_entry, rb_node); f 1655 drivers/md/dm-writecache.c if (unlikely(read_original_sector(wc, f) == f 1657 drivers/md/dm-writecache.c BUG_ON(!f->write_in_progress); f 1671 drivers/md/dm-writecache.c f = e; f 1674 drivers/md/dm-writecache.c next_node = rb_next(&f->rb_node); f 1679 drivers/md/dm-writecache.c read_original_sector(wc, f))) { f 1680 drivers/md/dm-writecache.c f = g; f 1684 drivers/md/dm-writecache.c read_original_sector(wc, f) + (wc->block_size >> SECTOR_SHIFT)) f 1692 drivers/md/dm-writecache.c if (g != f + 1) f 1706 drivers/md/dm-writecache.c f = g; f 1710 drivers/md/dm-writecache.c next_node = rb_next(&f->rb_node); f 2304 drivers/md/md-bitmap.c struct file *f = mddev->bitmap_info.file; f 2306 drivers/md/md-bitmap.c fput(f); f 6214 drivers/md/md.c struct file *f = mddev->bitmap_info.file; f 6218 drivers/md/md.c fput(f); f 6827 drivers/md/md.c struct file *f; f 6831 drivers/md/md.c f = fget(fd); f 6833 drivers/md/md.c if (f == NULL) { f 6839 drivers/md/md.c inode = f->f_mapping->host; f 6844 drivers/md/md.c } else if (!(f->f_mode & FMODE_WRITE)) { f 6854 drivers/md/md.c fput(f); f 6857 drivers/md/md.c mddev->bitmap_info.file = f; f 6885 drivers/md/md.c struct file *f = mddev->bitmap_info.file; f 6886 drivers/md/md.c if (f) { f 6890 drivers/md/md.c fput(f); f 177 drivers/md/persistent-data/dm-btree.c static int top_frame(struct del_stack *s, struct frame **f) f 184 drivers/md/persistent-data/dm-btree.c *f = s->spine + s->top; f 194 drivers/md/persistent-data/dm-btree.c static void prefetch_children(struct del_stack *s, struct frame *f) f 199 drivers/md/persistent-data/dm-btree.c for (i = 0; i < f->nr_children; i++) f 200 drivers/md/persistent-data/dm-btree.c dm_bm_prefetch(bm, value64(f->n, i)); f 203 drivers/md/persistent-data/dm-btree.c static bool is_internal_level(struct dm_btree_info *info, struct frame *f) f 205 drivers/md/persistent-data/dm-btree.c return f->level < (info->levels - 1); f 231 drivers/md/persistent-data/dm-btree.c struct frame *f = s->spine + ++s->top; f 233 drivers/md/persistent-data/dm-btree.c r = dm_tm_read_lock(s->tm, b, &btree_node_validator, &f->b); f 239 drivers/md/persistent-data/dm-btree.c f->n = dm_block_data(f->b); f 240 drivers/md/persistent-data/dm-btree.c f->level = level; f 241 drivers/md/persistent-data/dm-btree.c f->nr_children = le32_to_cpu(f->n->header.nr_entries); f 242 drivers/md/persistent-data/dm-btree.c f->current_child = 0; f 244 drivers/md/persistent-data/dm-btree.c flags = le32_to_cpu(f->n->header.flags); f 245 drivers/md/persistent-data/dm-btree.c if (flags & INTERNAL_NODE || is_internal_level(s->info, f)) f 246 drivers/md/persistent-data/dm-btree.c prefetch_children(s, f); f 254 drivers/md/persistent-data/dm-btree.c struct frame *f = s->spine + s->top--; f 256 drivers/md/persistent-data/dm-btree.c dm_tm_dec(s->tm, dm_block_location(f->b)); f 257 drivers/md/persistent-data/dm-btree.c dm_tm_unlock(s->tm, f->b); f 262 drivers/md/persistent-data/dm-btree.c struct frame *f; f 265 drivers/md/persistent-data/dm-btree.c f = s->spine + s->top--; f 266 drivers/md/persistent-data/dm-btree.c dm_tm_unlock(s->tm, f->b); f 293 drivers/md/persistent-data/dm-btree.c struct frame *f; f 296 drivers/md/persistent-data/dm-btree.c r = top_frame(s, &f); f 300 drivers/md/persistent-data/dm-btree.c if (f->current_child >= f->nr_children) { f 305 drivers/md/persistent-data/dm-btree.c flags = le32_to_cpu(f->n->header.flags); f 307 drivers/md/persistent-data/dm-btree.c b = value64(f->n, f->current_child); f 308 drivers/md/persistent-data/dm-btree.c f->current_child++; f 309 drivers/md/persistent-data/dm-btree.c r = push_frame(s, b, f->level); f 313 drivers/md/persistent-data/dm-btree.c } else if (is_internal_level(info, f)) { f 314 drivers/md/persistent-data/dm-btree.c b = value64(f->n, f->current_child); f 315 drivers/md/persistent-data/dm-btree.c f->current_child++; f 316 drivers/md/persistent-data/dm-btree.c r = push_frame(s, b, f->level + 1); f 324 drivers/md/persistent-data/dm-btree.c for (i = 0; i < f->nr_children; i++) f 326 drivers/md/persistent-data/dm-btree.c value_ptr(f->n, i)); f 563 drivers/md/raid10.c int n,f; f 598 drivers/md/raid10.c for (f = 1; f < geo->far_copies; f++) { f 94 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f); f 504 drivers/media/common/saa7146/saa7146_video.c static int vidioc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 506 drivers/media/common/saa7146/saa7146_video.c if (f->index >= ARRAY_SIZE(formats)) f 508 drivers/media/common/saa7146/saa7146_video.c f->pixelformat = formats[f->index].pixelformat; f 584 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) f 589 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix = vv->video_fmt; f 593 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f) f 598 drivers/media/common/saa7146/saa7146_video.c f->fmt.win = vv->ov.win; f 602 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f) f 607 drivers/media/common/saa7146/saa7146_video.c f->fmt.vbi = vv->vbi_fmt; f 611 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) f 622 drivers/media/common/saa7146/saa7146_video.c fmt = saa7146_format_by_fourcc(dev, f->fmt.pix.pixelformat); f 626 drivers/media/common/saa7146/saa7146_video.c field = f->fmt.pix.field; f 631 drivers/media/common/saa7146/saa7146_video.c field = (f->fmt.pix.height > maxh / 2) f 653 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.field = field; f 654 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 655 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.width > maxw) f 656 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.width = maxw; f 657 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.height > maxh) f 658 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.height = maxh; f 660 drivers/media/common/saa7146/saa7146_video.c calc_bpl = (f->fmt.pix.width * fmt->depth) / 8; f 662 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.bytesperline < calc_bpl) f 663 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline = calc_bpl; f 665 drivers/media/common/saa7146/saa7146_video.c if (f->fmt.pix.bytesperline > (2 * PAGE_SIZE * fmt->depth) / 8) /* arbitrary constraint */ f 666 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline = calc_bpl; f 668 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; f 670 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.width, f->fmt.pix.height, f 671 drivers/media/common/saa7146/saa7146_video.c f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); f 677 drivers/media/common/saa7146/saa7146_video.c static int vidioc_try_fmt_vid_overlay(struct file *file, void *fh, struct v4l2_format *f) f 681 drivers/media/common/saa7146/saa7146_video.c struct v4l2_window *win = &f->fmt.win; f 736 drivers/media/common/saa7146/saa7146_video.c static int vidioc_s_fmt_vid_cap(struct file *file, void *__fh, struct v4l2_format *f) f 748 drivers/media/common/saa7146/saa7146_video.c err = vidioc_try_fmt_vid_cap(file, fh, f); f 751 drivers/media/common/saa7146/saa7146_video.c vv->video_fmt = f->fmt.pix; f 757 drivers/media/common/saa7146/saa7146_video.c static int vidioc_s_fmt_vid_overlay(struct file *file, void *__fh, struct v4l2_format *f) f 765 drivers/media/common/saa7146/saa7146_video.c err = vidioc_try_fmt_vid_overlay(file, fh, f); f 768 drivers/media/common/saa7146/saa7146_video.c vv->ov.win = f->fmt.win; f 769 drivers/media/common/saa7146/saa7146_video.c vv->ov.nclips = f->fmt.win.clipcount; f 772 drivers/media/common/saa7146/saa7146_video.c if (copy_from_user(vv->ov.clips, f->fmt.win.clips, f 83 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c void tpg_set_font(const u8 *f) f 85 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c font8x16 = f; f 192 drivers/media/common/videobuf2/videobuf2-dvb.c int vb2_dvb_register_bus(struct vb2_dvb_frontends *f, f 204 drivers/media/common/videobuf2/videobuf2-dvb.c fe = vb2_dvb_get_frontend(f, 1); f 211 drivers/media/common/videobuf2/videobuf2-dvb.c res = vb2_dvb_register_adapter(f, module, adapter_priv, device, mdev, f 219 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_lock(&f->lock); f 220 drivers/media/common/videobuf2/videobuf2-dvb.c list_for_each_safe(list, q, &f->felist) { f 222 drivers/media/common/videobuf2/videobuf2-dvb.c res = vb2_dvb_register_frontend(&f->adapter, &fe->dvb); f 228 drivers/media/common/videobuf2/videobuf2-dvb.c res = dvb_create_media_graph(&f->adapter, false); f 233 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 237 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 238 drivers/media/common/videobuf2/videobuf2-dvb.c vb2_dvb_unregister_bus(f); f 243 drivers/media/common/videobuf2/videobuf2-dvb.c void vb2_dvb_unregister_bus(struct vb2_dvb_frontends *f) f 245 drivers/media/common/videobuf2/videobuf2-dvb.c vb2_dvb_dealloc_frontends(f); f 247 drivers/media/common/videobuf2/videobuf2-dvb.c dvb_unregister_adapter(&f->adapter); f 252 drivers/media/common/videobuf2/videobuf2-dvb.c struct vb2_dvb_frontends *f, int id) f 257 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_lock(&f->lock); f 259 drivers/media/common/videobuf2/videobuf2-dvb.c list_for_each_safe(list, q, &f->felist) { f 267 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 273 drivers/media/common/videobuf2/videobuf2-dvb.c int vb2_dvb_find_frontend(struct vb2_dvb_frontends *f, f 280 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_lock(&f->lock); f 282 drivers/media/common/videobuf2/videobuf2-dvb.c list_for_each_safe(list, q, &f->felist) { f 290 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 297 drivers/media/common/videobuf2/videobuf2-dvb.c struct vb2_dvb_frontends *f, int id) f 308 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_lock(&f->lock); f 309 drivers/media/common/videobuf2/videobuf2-dvb.c list_add_tail(&fe->felist, &f->felist); f 310 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 315 drivers/media/common/videobuf2/videobuf2-dvb.c void vb2_dvb_dealloc_frontends(struct vb2_dvb_frontends *f) f 320 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_lock(&f->lock); f 321 drivers/media/common/videobuf2/videobuf2-dvb.c list_for_each_safe(list, q, &f->felist) { f 339 drivers/media/common/videobuf2/videobuf2-dvb.c mutex_unlock(&f->lock); f 695 drivers/media/common/videobuf2/videobuf2-v4l2.c struct v4l2_format *f = &create->format; f 696 drivers/media/common/videobuf2/videobuf2-v4l2.c int ret = vb2_verify_memory_type(q, create->memory, f->type); f 704 drivers/media/common/videobuf2/videobuf2-v4l2.c switch (f->type) { f 707 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_planes = f->fmt.pix_mp.num_planes; f 713 drivers/media/common/videobuf2/videobuf2-v4l2.c f->fmt.pix_mp.plane_fmt[i].sizeimage; f 717 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.pix.sizeimage; f 721 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.vbi.samples_per_line * f 722 drivers/media/common/videobuf2/videobuf2-v4l2.c (f->fmt.vbi.count[0] + f->fmt.vbi.count[1]); f 726 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.sliced.io_size; f 730 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.sdr.buffersize; f 734 drivers/media/common/videobuf2/videobuf2-v4l2.c requested_sizes[0] = f->fmt.meta.buffersize; f 98 drivers/media/dvb-core/dvb_demux.c static u32 dvb_dmx_crc32(struct dvb_demux_feed *f, const u8 *src, size_t len) f 100 drivers/media/dvb-core/dvb_demux.c return (f->feed.sec.crc_val = crc32_be(f->feed.sec.crc_val, src, len)); f 103 drivers/media/dvb-core/dvb_demux.c static void dvb_dmx_memcopy(struct dvb_demux_feed *f, u8 *d, const u8 *s, f 145 drivers/media/dvb-core/dvb_demux.c struct dvb_demux_filter *f) f 151 drivers/media/dvb-core/dvb_demux.c u8 xor = f->filter.filter_value[i] ^ feed->feed.sec.secbuf[i]; f 153 drivers/media/dvb-core/dvb_demux.c if (f->maskandmode[i] & xor) f 156 drivers/media/dvb-core/dvb_demux.c neq |= f->maskandnotmode[i] & xor; f 159 drivers/media/dvb-core/dvb_demux.c if (f->doneq && !neq) f 163 drivers/media/dvb-core/dvb_demux.c NULL, 0, &f->filter, &feed->buffer_flags); f 169 drivers/media/dvb-core/dvb_demux.c struct dvb_demux_filter *f = feed->filter; f 176 drivers/media/dvb-core/dvb_demux.c if (!f) f 189 drivers/media/dvb-core/dvb_demux.c if (dvb_dmx_swfilter_sectionfilter(feed, f) < 0) f 191 drivers/media/dvb-core/dvb_demux.c } while ((f = f->next) && sec->is_filtering); f 410 drivers/media/dvb-core/dvb_demux.c #define DVR_FEED(f) \ f 411 drivers/media/dvb-core/dvb_demux.c (((f)->type == DMX_TYPE_TS) && \ f 412 drivers/media/dvb-core/dvb_demux.c ((f)->feed.ts.is_filtering) && \ f 413 drivers/media/dvb-core/dvb_demux.c (((f)->ts_type & (TS_PACKET | TS_DEMUX)) == TS_PACKET)) f 932 drivers/media/dvb-core/dvb_demux.c struct dvb_demux_filter *f; f 936 drivers/media/dvb-core/dvb_demux.c if (!(f = dvbdmxfeed->filter)) f 939 drivers/media/dvb-core/dvb_demux.c sf = &f->filter; f 944 drivers/media/dvb-core/dvb_demux.c f->maskandmode[i] = mask & mode; f 945 drivers/media/dvb-core/dvb_demux.c doneq |= f->maskandnotmode[i] = mask & ~mode; f 947 drivers/media/dvb-core/dvb_demux.c f->doneq = doneq ? true : false; f 948 drivers/media/dvb-core/dvb_demux.c } while ((f = f->next)); f 1023 drivers/media/dvb-core/dvb_demux.c struct dvb_demux_filter *dvbdmxfilter = (struct dvb_demux_filter *)filter, *f; f 1043 drivers/media/dvb-core/dvb_demux.c f = dvbdmxfeed->filter; f 1045 drivers/media/dvb-core/dvb_demux.c if (f == dvbdmxfilter) { f 1048 drivers/media/dvb-core/dvb_demux.c while (f->next != dvbdmxfilter) f 1049 drivers/media/dvb-core/dvb_demux.c f = f->next; f 1050 drivers/media/dvb-core/dvb_demux.c f->next = f->next->next; f 288 drivers/media/dvb-frontends/cx24113.c static void cx24113_calc_pll_nf(struct cx24113_state *state, u16 *n, s32 *f) f 359 drivers/media/dvb-frontends/cx24113.c *f = (s32) F; f 363 drivers/media/dvb-frontends/cx24113.c static void cx24113_set_nfr(struct cx24113_state *state, u16 n, s32 f, u8 r) f 368 drivers/media/dvb-frontends/cx24113.c reg = ((n & 0x1) << 7) | ((f >> 11) & 0x7f); f 371 drivers/media/dvb-frontends/cx24113.c cx24113_writereg(state, 0x1b, (f >> 3) & 0xff); f 374 drivers/media/dvb-frontends/cx24113.c cx24113_writereg(state, 0x1c, reg | ((f & 0x7) << 5)); f 383 drivers/media/dvb-frontends/cx24113.c s32 f = 0; f 395 drivers/media/dvb-frontends/cx24113.c cx24113_calc_pll_nf(state, &n, &f); f 396 drivers/media/dvb-frontends/cx24113.c cx24113_set_nfr(state, n, f, state->refdiv); f 402 drivers/media/dvb-frontends/cx24116.c enum fe_delivery_system d, enum fe_modulation m, enum fe_code_rate f) f 406 drivers/media/dvb-frontends/cx24116.c dprintk("%s(0x%02x,0x%02x)\n", __func__, m, f); f 411 drivers/media/dvb-frontends/cx24116.c (f == CX24116_MODFEC_MODES[i].fec)) { f 378 drivers/media/dvb-frontends/cx24117.c enum fe_delivery_system d, enum fe_modulation m, enum fe_code_rate f) f 384 drivers/media/dvb-frontends/cx24117.c __func__, m, f, state->demod); f 389 drivers/media/dvb-frontends/cx24117.c (f == cx24117_modfec_modes[i].fec)) { f 1080 drivers/media/dvb-frontends/dib9000.c struct dibGPIOFunction *f; f 1090 drivers/media/dvb-frontends/dib9000.c f = &state->chip.d9.cfg.gpio_function[i]; f 1091 drivers/media/dvb-frontends/dib9000.c if (f->mask) { f 1092 drivers/media/dvb-frontends/dib9000.c switch (f->function) { f 1094 drivers/media/dvb-frontends/dib9000.c b[0] = (u16) f->mask; f 1095 drivers/media/dvb-frontends/dib9000.c b[1] = (u16) f->direction; f 1096 drivers/media/dvb-frontends/dib9000.c b[2] = (u16) f->value; f 1099 drivers/media/dvb-frontends/dib9000.c b[3] = (u16) f->mask; f 1100 drivers/media/dvb-frontends/dib9000.c b[4] = (u16) f->direction; f 1101 drivers/media/dvb-frontends/dib9000.c b[5] = (u16) f->value; f 452 drivers/media/dvb-frontends/mb86a16.c int f, f 479 drivers/media/dvb-frontends/mb86a16.c if (f < 1060) f 481 drivers/media/dvb-frontends/mb86a16.c else if (f < 1175) f 483 drivers/media/dvb-frontends/mb86a16.c else if (f < 1305) f 485 drivers/media/dvb-frontends/mb86a16.c else if (f < 1435) f 487 drivers/media/dvb-frontends/mb86a16.c else if (f < 1570) f 489 drivers/media/dvb-frontends/mb86a16.c else if (f < 1715) f 491 drivers/media/dvb-frontends/mb86a16.c else if (f < 1845) f 493 drivers/media/dvb-frontends/mb86a16.c else if (f < 1980) f 495 drivers/media/dvb-frontends/mb86a16.c else if (f < 2080) f 500 drivers/media/dvb-frontends/mb86a16.c M = f * (1 << R) / 2; f 31 drivers/media/dvb-frontends/rtl2832_sdr.c #define V4L2_SUBDEV_HAS_OP(sd, o, f) \ f 32 drivers/media/dvb-frontends/rtl2832_sdr.c ((sd) && (sd)->ops && (sd)->ops->o && (sd)->ops->o->f) f 1036 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_frequency *f) f 1042 drivers/media/dvb-frontends/rtl2832_sdr.c dev_dbg(&pdev->dev, "tuner=%d type=%d\n", f->tuner, f->type); f 1044 drivers/media/dvb-frontends/rtl2832_sdr.c if (f->tuner == 0) { f 1045 drivers/media/dvb-frontends/rtl2832_sdr.c f->frequency = dev->f_adc; f 1046 drivers/media/dvb-frontends/rtl2832_sdr.c f->type = V4L2_TUNER_ADC; f 1048 drivers/media/dvb-frontends/rtl2832_sdr.c } else if (f->tuner == 1 && f 1050 drivers/media/dvb-frontends/rtl2832_sdr.c f->type = V4L2_TUNER_RF; f 1051 drivers/media/dvb-frontends/rtl2832_sdr.c ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, g_frequency, f); f 1052 drivers/media/dvb-frontends/rtl2832_sdr.c } else if (f->tuner == 1) { f 1053 drivers/media/dvb-frontends/rtl2832_sdr.c f->frequency = dev->f_tuner; f 1054 drivers/media/dvb-frontends/rtl2832_sdr.c f->type = V4L2_TUNER_RF; f 1063 drivers/media/dvb-frontends/rtl2832_sdr.c const struct v4l2_frequency *f) f 1070 drivers/media/dvb-frontends/rtl2832_sdr.c f->tuner, f->type, f->frequency); f 1076 drivers/media/dvb-frontends/rtl2832_sdr.c if (f->tuner == 0 && f->type == V4L2_TUNER_ADC) { f 1077 drivers/media/dvb-frontends/rtl2832_sdr.c if (f->frequency < BAND_ADC_0) f 1079 drivers/media/dvb-frontends/rtl2832_sdr.c else if (f->frequency < BAND_ADC_1) f 1084 drivers/media/dvb-frontends/rtl2832_sdr.c dev->f_adc = clamp_t(unsigned int, f->frequency, f 1090 drivers/media/dvb-frontends/rtl2832_sdr.c } else if (f->tuner == 1 && f 1092 drivers/media/dvb-frontends/rtl2832_sdr.c ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, s_frequency, f); f 1093 drivers/media/dvb-frontends/rtl2832_sdr.c } else if (f->tuner == 1) { f 1094 drivers/media/dvb-frontends/rtl2832_sdr.c dev->f_tuner = clamp_t(unsigned int, f->frequency, f 1097 drivers/media/dvb-frontends/rtl2832_sdr.c dev_dbg(&pdev->dev, "RF frequency=%u Hz\n", f->frequency); f 1107 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_fmtdesc *f) f 1114 drivers/media/dvb-frontends/rtl2832_sdr.c if (f->index >= dev->num_formats) f 1117 drivers/media/dvb-frontends/rtl2832_sdr.c f->pixelformat = formats[f->index].pixelformat; f 1123 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_format *f) f 1130 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.pixelformat = dev->pixelformat; f 1131 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.buffersize = dev->buffersize; f 1133 drivers/media/dvb-frontends/rtl2832_sdr.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 1139 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_format *f) f 1147 drivers/media/dvb-frontends/rtl2832_sdr.c (char *)&f->fmt.sdr.pixelformat); f 1152 drivers/media/dvb-frontends/rtl2832_sdr.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 1154 drivers/media/dvb-frontends/rtl2832_sdr.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 1157 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.buffersize = formats[i].buffersize; f 1164 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 1165 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.buffersize = formats[0].buffersize; f 1171 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_format *f) f 1178 drivers/media/dvb-frontends/rtl2832_sdr.c (char *)&f->fmt.sdr.pixelformat); f 1180 drivers/media/dvb-frontends/rtl2832_sdr.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 1182 drivers/media/dvb-frontends/rtl2832_sdr.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 1183 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.buffersize = formats[i].buffersize; f 1188 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 1189 drivers/media/dvb-frontends/rtl2832_sdr.c f->fmt.sdr.buffersize = formats[0].buffersize; f 244 drivers/media/dvb-frontends/stb6100.c u8 f; f 251 drivers/media/dvb-frontends/stb6100.c f = rc & STB6100_F_F; f 253 drivers/media/dvb-frontends/stb6100.c bw = (f + 5) * 2000; /* x2 for ZIF */ f 200 drivers/media/firewire/firedtv-fw.c struct firedtv *f, *fdtv = NULL; f 211 drivers/media/firewire/firedtv-fw.c list_for_each_entry(f, &node_list, list) { f 212 drivers/media/firewire/firedtv-fw.c device = device_of(f); f 220 drivers/media/firewire/firedtv-fw.c (f->subunit == su || (f->subunit == 0 && su == 0x7))) { f 221 drivers/media/firewire/firedtv-fw.c fdtv = f; f 1860 drivers/media/i2c/adv7604.c #define _SEL(a,b,c,d,e,f) { \ f 1862 drivers/media/i2c/adv7604.c ADV76XX_OP_CH_SEL_##d, ADV76XX_OP_CH_SEL_##e, ADV76XX_OP_CH_SEL_##f } f 2042 drivers/media/i2c/adv7842.c #define _SEL(a, b, c, d, e, f) { \ f 2044 drivers/media/i2c/adv7842.c ADV7842_OP_CH_SEL_##d, ADV7842_OP_CH_SEL_##e, ADV7842_OP_CH_SEL_##f } f 521 drivers/media/i2c/imx258.c static u64 link_freq_to_pixel_rate(u64 f) f 523 drivers/media/i2c/imx258.c f *= 2 * 4; f 524 drivers/media/i2c/imx258.c do_div(f, 10); f 526 drivers/media/i2c/imx258.c return f; f 947 drivers/media/i2c/ov13858.c static u64 link_freq_to_pixel_rate(u64 f) f 949 drivers/media/i2c/ov13858.c f *= 2 * 4; f 950 drivers/media/i2c/ov13858.c do_div(f, 10); f 952 drivers/media/i2c/ov13858.c return f; f 355 drivers/media/i2c/s5k5baf.c struct s5k5baf_fw *f; f 380 drivers/media/i2c/s5k5baf.c f = (struct s5k5baf_fw *)d; f 381 drivers/media/i2c/s5k5baf.c if (count < 1 + 2 * f->count) { f 383 drivers/media/i2c/s5k5baf.c f->count, 2 * (count + S5K5BAG_FW_TAG_LEN)); f 387 drivers/media/i2c/s5k5baf.c d += 1 + 2 * f->count; f 389 drivers/media/i2c/s5k5baf.c for (i = 0; i < f->count; ++i) { f 390 drivers/media/i2c/s5k5baf.c if (f->seq[i].offset + d <= end) f 396 drivers/media/i2c/s5k5baf.c *fw = f; f 549 drivers/media/i2c/saa6752hs.c struct v4l2_mbus_framefmt *f = &format->format; f 557 drivers/media/i2c/saa6752hs.c f->width = v4l2_format_table[h->video_format].fmt.pix.width; f 558 drivers/media/i2c/saa6752hs.c f->height = v4l2_format_table[h->video_format].fmt.pix.height; f 559 drivers/media/i2c/saa6752hs.c f->code = MEDIA_BUS_FMT_FIXED; f 560 drivers/media/i2c/saa6752hs.c f->field = V4L2_FIELD_INTERLACED; f 561 drivers/media/i2c/saa6752hs.c f->colorspace = V4L2_COLORSPACE_SMPTE170M; f 569 drivers/media/i2c/saa6752hs.c struct v4l2_mbus_framefmt *f = &format->format; f 576 drivers/media/i2c/saa6752hs.c f->code = MEDIA_BUS_FMT_FIXED; f 578 drivers/media/i2c/saa6752hs.c dist_352 = abs(f->width - 352); f 579 drivers/media/i2c/saa6752hs.c dist_480 = abs(f->width - 480); f 580 drivers/media/i2c/saa6752hs.c dist_720 = abs(f->width - 720); f 582 drivers/media/i2c/saa6752hs.c f->width = 720; f 583 drivers/media/i2c/saa6752hs.c f->height = 576; f 585 drivers/media/i2c/saa6752hs.c f->width = 480; f 586 drivers/media/i2c/saa6752hs.c f->height = 576; f 588 drivers/media/i2c/saa6752hs.c f->width = 352; f 589 drivers/media/i2c/saa6752hs.c if (abs(f->height - 576) < abs(f->height - 288)) f 590 drivers/media/i2c/saa6752hs.c f->height = 576; f 592 drivers/media/i2c/saa6752hs.c f->height = 288; f 594 drivers/media/i2c/saa6752hs.c f->field = V4L2_FIELD_INTERLACED; f 595 drivers/media/i2c/saa6752hs.c f->colorspace = V4L2_COLORSPACE_SMPTE170M; f 598 drivers/media/i2c/saa6752hs.c cfg->try_fmt = *f; f 614 drivers/media/i2c/saa6752hs.c if (f->code != MEDIA_BUS_FMT_FIXED) f 617 drivers/media/i2c/saa6752hs.c if (f->width == 720) f 619 drivers/media/i2c/saa6752hs.c else if (f->width == 480) f 621 drivers/media/i2c/saa6752hs.c else if (f->height == 576) f 756 drivers/media/i2c/saa7115.c u64 f; f 776 drivers/media/i2c/saa7115.c f = freq; f 777 drivers/media/i2c/saa7115.c f = f << 31; f 778 drivers/media/i2c/saa7115.c do_div(f, state->crystal_freq); f 779 drivers/media/i2c/saa7115.c acni = f; f 801 drivers/media/i2c/smiapp/smiapp-core.c const struct smiapp_csi_data_format *f = f 804 drivers/media/i2c/smiapp/smiapp-core.c if (f->pixel_order != SMIAPP_PIXEL_ORDER_GRBG) f 807 drivers/media/i2c/smiapp/smiapp-core.c if (f->width != fmt >> 8 || f->compressed != (u8)fmt) f 838 drivers/media/i2c/smiapp/smiapp-core.c const struct smiapp_csi_data_format *f = f 842 drivers/media/i2c/smiapp/smiapp-core.c f->compressed - sensor->compressed_min_bpp]; f 848 drivers/media/i2c/smiapp/smiapp-core.c pll->bits_per_pixel = f->compressed; f 866 drivers/media/i2c/smiapp/smiapp-core.c f->compressed); f 872 drivers/media/i2c/smiapp/smiapp-core.c || f->width > sensor->csi_format->width f 873 drivers/media/i2c/smiapp/smiapp-core.c || (f->width == sensor->csi_format->width f 874 drivers/media/i2c/smiapp/smiapp-core.c && f->compressed > sensor->csi_format->compressed)) { f 875 drivers/media/i2c/smiapp/smiapp-core.c sensor->csi_format = f; f 876 drivers/media/i2c/smiapp/smiapp-core.c sensor->internal_csi_format = f; f 993 drivers/media/i2c/tvp5150.c struct v4l2_mbus_framefmt *f; f 999 drivers/media/i2c/tvp5150.c f = &format->format; f 1001 drivers/media/i2c/tvp5150.c f->width = decoder->rect.width; f 1002 drivers/media/i2c/tvp5150.c f->height = decoder->rect.height / 2; f 1004 drivers/media/i2c/tvp5150.c f->code = TVP5150_MBUS_FMT; f 1005 drivers/media/i2c/tvp5150.c f->field = TVP5150_FIELD; f 1006 drivers/media/i2c/tvp5150.c f->colorspace = TVP5150_COLORSPACE; f 1008 drivers/media/i2c/tvp5150.c dev_dbg_lvl(sd->dev, 1, debug, "width = %d, height = %d\n", f->width, f 1009 drivers/media/i2c/tvp5150.c f->height); f 249 drivers/media/mc/mc-request.c struct fd f; f 256 drivers/media/mc/mc-request.c f = fdget(request_fd); f 257 drivers/media/mc/mc-request.c if (!f.file) f 260 drivers/media/mc/mc-request.c if (f.file->f_op != &request_fops) f 262 drivers/media/mc/mc-request.c req = f.file->private_data; f 275 drivers/media/mc/mc-request.c fdput(f); f 280 drivers/media/mc/mc-request.c fdput(f); f 1718 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_querystd(struct file *file, void *f, v4l2_std_id *id) f 1720 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 1806 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_frequency *f) f 1811 drivers/media/pci/bt8xx/bttv-driver.c if (f->tuner) f 1814 drivers/media/pci/bt8xx/bttv-driver.c if (f->type == V4L2_TUNER_RADIO) f 1816 drivers/media/pci/bt8xx/bttv-driver.c f->frequency = f->type == V4L2_TUNER_RADIO ? f 1822 drivers/media/pci/bt8xx/bttv-driver.c static void bttv_set_frequency(struct bttv *btv, const struct v4l2_frequency *f) f 1824 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_frequency new_freq = *f; f 1826 drivers/media/pci/bt8xx/bttv-driver.c bttv_call_all(btv, tuner, s_frequency, f); f 1843 drivers/media/pci/bt8xx/bttv-driver.c const struct v4l2_frequency *f) f 1848 drivers/media/pci/bt8xx/bttv-driver.c if (f->tuner) f 1851 drivers/media/pci/bt8xx/bttv-driver.c bttv_set_frequency(btv, f); f 1855 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_log_status(struct file *file, void *f) f 1858 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 1867 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_g_register(struct file *file, void *f, f 1870 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 1881 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_s_register(struct file *file, void *f, f 1884 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2250 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size (struct v4l2_pix_format * f, f 2255 drivers/media/pci/bt8xx/bttv-driver.c f->width = width; f 2256 drivers/media/pci/bt8xx/bttv-driver.c f->height = height; f 2259 drivers/media/pci/bt8xx/bttv-driver.c f->bytesperline = width; /* Y plane */ f 2260 drivers/media/pci/bt8xx/bttv-driver.c f->sizeimage = (width * height * fmt->depth) >> 3; f 2262 drivers/media/pci/bt8xx/bttv-driver.c f->bytesperline = (width * fmt->depth) >> 3; f 2263 drivers/media/pci/bt8xx/bttv-driver.c f->sizeimage = height * f->bytesperline; f 2268 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2272 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size(&f->fmt.pix, fh->fmt, f 2274 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = fh->cap.field; f 2275 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.pixelformat = fh->fmt->fourcc; f 2276 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 2282 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2286 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.w = fh->ov.w; f 2287 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.win.field = fh->ov.field; f 2306 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2317 drivers/media/pci/bt8xx/bttv-driver.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 2321 drivers/media/pci/bt8xx/bttv-driver.c field = f->fmt.pix.field; f 2338 drivers/media/pci/bt8xx/bttv-driver.c field = (f->fmt.pix.height > height2) f 2344 drivers/media/pci/bt8xx/bttv-driver.c width = f->fmt.pix.width; f 2345 drivers/media/pci/bt8xx/bttv-driver.c height = f->fmt.pix.height; f 2356 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = field; f 2357 drivers/media/pci/bt8xx/bttv-driver.c pix_format_set_size(&f->fmt.pix, fmt, width, height); f 2358 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 2364 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2368 drivers/media/pci/bt8xx/bttv-driver.c verify_window_lock(fh, &f->fmt.win, f 2375 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2385 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_switch_type(fh, f->type); f 2389 drivers/media/pci/bt8xx/bttv-driver.c retval = bttv_try_fmt_vid_cap(file, priv, f); f 2393 drivers/media/pci/bt8xx/bttv-driver.c width = f->fmt.pix.width; f 2394 drivers/media/pci/bt8xx/bttv-driver.c height = f->fmt.pix.height; f 2395 drivers/media/pci/bt8xx/bttv-driver.c field = f->fmt.pix.field; f 2397 drivers/media/pci/bt8xx/bttv-driver.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 2399 drivers/media/pci/bt8xx/bttv-driver.c retval = limit_scaled_size_lock(fh, &width, &height, f->fmt.pix.field, f 2406 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = field; f 2410 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.field = f->fmt.pix.field; f 2412 drivers/media/pci/bt8xx/bttv-driver.c fh->width = f->fmt.pix.width; f 2413 drivers/media/pci/bt8xx/bttv-driver.c fh->height = f->fmt.pix.height; f 2415 drivers/media/pci/bt8xx/bttv-driver.c btv->init.width = f->fmt.pix.width; f 2416 drivers/media/pci/bt8xx/bttv-driver.c btv->init.height = f->fmt.pix.height; f 2422 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_format *f) f 2432 drivers/media/pci/bt8xx/bttv-driver.c return setup_window_lock(fh, btv, &f->fmt.win, 1); f 2471 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_enum_fmt_cap_ovr(struct v4l2_fmtdesc *f) f 2478 drivers/media/pci/bt8xx/bttv-driver.c if ((unsigned int)index == f->index) f 2484 drivers/media/pci/bt8xx/bttv-driver.c f->pixelformat = formats[i].fourcc; f 2490 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_fmtdesc *f) f 2492 drivers/media/pci/bt8xx/bttv-driver.c int rc = bttv_enum_fmt_cap_ovr(f); f 2501 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_fmtdesc *f) f 2510 drivers/media/pci/bt8xx/bttv-driver.c rc = bttv_enum_fmt_cap_ovr(f); f 2521 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_g_fbuf(struct file *file, void *f, f 2524 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2535 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_overlay(struct file *file, void *f, unsigned int on) f 2537 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2572 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_s_fbuf(struct file *file, void *f, f 2575 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2704 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_g_parm(struct file *file, void *f, f 2707 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2743 drivers/media/pci/bt8xx/bttv-driver.c int type, struct v4l2_fract *f) f 2752 drivers/media/pci/bt8xx/bttv-driver.c *f = bttv_tvnorms[btv->tvnorm].cropcap.pixelaspect; f 2756 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_g_selection(struct file *file, void *f, struct v4l2_selection *sel) f 2758 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 2787 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_s_selection(struct file *file, void *f, struct v4l2_selection *sel) f 2789 drivers/media/pci/bt8xx/bttv-driver.c struct bttv_fh *fh = f; f 233 drivers/media/pci/bt8xx/bttv-vbi.c static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm, f 255 drivers/media/pci/bt8xx/bttv-vbi.c f->sampling_rate = tvnorm->Fsc; f 256 drivers/media/pci/bt8xx/bttv-vbi.c f->samples_per_line = VBI_BPL; f 257 drivers/media/pci/bt8xx/bttv-vbi.c f->sample_format = V4L2_PIX_FMT_GREY; f 258 drivers/media/pci/bt8xx/bttv-vbi.c f->offset = VBI_OFFSET; f 263 drivers/media/pci/bt8xx/bttv-vbi.c if (0 == f->count[i]) { f 271 drivers/media/pci/bt8xx/bttv-vbi.c start = clamp(f->start[i], min_start, max_start); f 273 drivers/media/pci/bt8xx/bttv-vbi.c count = (s64) f->start[i] + f->count[i] - start; f 274 drivers/media/pci/bt8xx/bttv-vbi.c f->start[i] = start; f 275 drivers/media/pci/bt8xx/bttv-vbi.c f->count[i] = clamp(count, (s64) 1, f 284 drivers/media/pci/bt8xx/bttv-vbi.c if (0 == (f->count[0] | f->count[1])) { f 286 drivers/media/pci/bt8xx/bttv-vbi.c f->start[0] = tvnorm->vbistart[0]; f 287 drivers/media/pci/bt8xx/bttv-vbi.c f->start[1] = tvnorm->vbistart[1]; f 288 drivers/media/pci/bt8xx/bttv-vbi.c f->count[0] = 1; f 289 drivers/media/pci/bt8xx/bttv-vbi.c f->count[1] = 1; f 292 drivers/media/pci/bt8xx/bttv-vbi.c f->flags = 0; f 294 drivers/media/pci/bt8xx/bttv-vbi.c f->reserved[0] = 0; f 295 drivers/media/pci/bt8xx/bttv-vbi.c f->reserved[1] = 0; f 300 drivers/media/pci/bt8xx/bttv-vbi.c int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) f 302 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; f 318 drivers/media/pci/bt8xx/bttv-vbi.c int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) f 320 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; f 366 drivers/media/pci/bt8xx/bttv-vbi.c int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) f 368 drivers/media/pci/bt8xx/bttv-vbi.c struct bttv_fh *fh = f; f 407 drivers/media/pci/bt8xx/bttv-vbi.c void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm) f 415 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.sampling_rate = tvnorm->Fsc; f 416 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.samples_per_line = VBI_BPL; f 417 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.sample_format = V4L2_PIX_FMT_GREY; f 418 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.offset = VBI_OFFSET; f 419 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.start[0] = tvnorm->vbistart[0]; f 420 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.start[1] = tvnorm->vbistart[1]; f 421 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.count[0] = VBI_DEFLINES; f 422 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.count[1] = VBI_DEFLINES; f 423 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.flags = 0; f 424 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.reserved[0] = 0; f 425 drivers/media/pci/bt8xx/bttv-vbi.c f->fmt.reserved[1] = 0; f 436 drivers/media/pci/bt8xx/bttv-vbi.c f->tvnorm = tvnorm; f 439 drivers/media/pci/bt8xx/bttv-vbi.c f->end = tvnorm->vbistart[0] * 2 + 2; f 365 drivers/media/pci/bt8xx/bttv.h #define bttv_call_all(btv, o, f, args...) \ f 366 drivers/media/pci/bt8xx/bttv.h v4l2_device_call_all(&btv->c.v4l2_dev, 0, o, f, ##args) f 368 drivers/media/pci/bt8xx/bttv.h #define bttv_call_all_err(btv, o, f, args...) \ f 369 drivers/media/pci/bt8xx/bttv.h v4l2_device_call_until_err(&btv->c.v4l2_dev, 0, o, f, ##args) f 189 drivers/media/pci/bt8xx/bttvp.h void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm); f 268 drivers/media/pci/bt8xx/bttvp.h int bttv_try_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); f 269 drivers/media/pci/bt8xx/bttvp.h int bttv_g_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); f 270 drivers/media/pci/bt8xx/bttvp.h int bttv_s_fmt_vbi_cap(struct file *file, void *fh, struct v4l2_format *f); f 687 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_fmtdesc *f) f 689 drivers/media/pci/cobalt/cobalt-v4l2.c switch (f->index) { f 691 drivers/media/pci/cobalt/cobalt-v4l2.c f->pixelformat = V4L2_PIX_FMT_YUYV; f 694 drivers/media/pci/cobalt/cobalt-v4l2.c f->pixelformat = V4L2_PIX_FMT_RGB24; f 697 drivers/media/pci/cobalt/cobalt-v4l2.c f->pixelformat = V4L2_PIX_FMT_BGR32; f 707 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 710 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 734 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 737 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 793 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 796 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 801 drivers/media/pci/cobalt/cobalt-v4l2.c if (cobalt_try_fmt_vid_cap(file, priv_fh, f)) f 827 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 829 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 868 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 871 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 888 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_fmtdesc *f) f 890 drivers/media/pci/cobalt/cobalt-v4l2.c switch (f->index) { f 892 drivers/media/pci/cobalt/cobalt-v4l2.c f->pixelformat = V4L2_PIX_FMT_YUYV; f 895 drivers/media/pci/cobalt/cobalt-v4l2.c f->pixelformat = V4L2_PIX_FMT_BGR32; f 905 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_format *f) f 908 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 912 drivers/media/pci/cobalt/cobalt-v4l2.c if (cobalt_try_fmt_vid_out(file, priv_fh, f)) f 1070 drivers/media/pci/cobalt/cobalt-v4l2.c int type, struct v4l2_fract *f) f 1084 drivers/media/pci/cobalt/cobalt-v4l2.c *f = v4l2_dv_timings_aspect_ratio(&timings); f 695 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_hw(cx, hw, o, f, args...) \ f 696 drivers/media/pci/cx18/cx18-driver.h v4l2_device_mask_call_all(&(cx)->v4l2_dev, hw, o, f, ##args) f 698 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_all(cx, o, f, args...) cx18_call_hw(cx, 0, o, f , ##args) f 703 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_hw_err(cx, hw, o, f, args...) \ f 704 drivers/media/pci/cx18/cx18-driver.h v4l2_device_mask_call_until_err(&(cx)->v4l2_dev, hw, o, f, ##args) f 706 drivers/media/pci/cx18/cx18-driver.h #define cx18_call_all_err(cx, o, f, args...) \ f 707 drivers/media/pci/cx18/cx18-driver.h cx18_call_hw_err(cx, 0, o, f , ##args) f 94 drivers/media/pci/cx18/cx18-ioctl.c int f, l; f 97 drivers/media/pci/cx18/cx18-ioctl.c for (f = 0; f < 2; f++) { f 99 drivers/media/pci/cx18/cx18-ioctl.c fmt->service_lines[f][l] = select_service_from_set(f, l, set, is_pal); f 109 drivers/media/pci/cx18/cx18-ioctl.c int f, l; f 112 drivers/media/pci/cx18/cx18-ioctl.c for (f = 0; f < 2; f++) { f 114 drivers/media/pci/cx18/cx18-ioctl.c fmt->service_lines[f][l] = select_service_from_set(f, l, fmt->service_lines[f][l], is_pal); f 115 drivers/media/pci/cx18/cx18-ioctl.c set |= fmt->service_lines[f][l]; f 124 drivers/media/pci/cx18/cx18-ioctl.c int f, l; f 127 drivers/media/pci/cx18/cx18-ioctl.c for (f = 0; f < 2; f++) { f 129 drivers/media/pci/cx18/cx18-ioctl.c set |= fmt->service_lines[f][l]; f 433 drivers/media/pci/cx18/cx18-ioctl.c int type, struct v4l2_fract *f) f 440 drivers/media/pci/cx18/cx18-ioctl.c f->numerator = cx->is_50hz ? 54 : 11; f 441 drivers/media/pci/cx18/cx18-ioctl.c f->denominator = cx->is_50hz ? 59 : 10; f 635 drivers/media/pci/cx18/cx18-ioctl.c int f, l; f 641 drivers/media/pci/cx18/cx18-ioctl.c for (f = 0; f < 2; f++) { f 643 drivers/media/pci/cx18/cx18-ioctl.c if (valid_service_line(f, l, cx->is_50hz)) { f 648 drivers/media/pci/cx18/cx18-ioctl.c cap->service_lines[f][l] = set; f 651 drivers/media/pci/cx18/cx18-ioctl.c cap->service_lines[f][l] = 0; f 654 drivers/media/pci/cx18/cx18-ioctl.c for (f = 0; f < 3; f++) f 655 drivers/media/pci/cx18/cx18-ioctl.c cap->reserved[f] = 0; f 32 drivers/media/pci/cx18/cx18-mailbox.c #define API_ENTRY(rpu, x, f) { (x), (f), (rpu), #x } f 50 drivers/media/pci/cx18/cx18-vbi.c int f, l; f 56 drivers/media/pci/cx18/cx18-vbi.c f = sdata->field; f 57 drivers/media/pci/cx18/cx18-vbi.c if (f) f 1297 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_frequency *f) f 1303 drivers/media/pci/cx23885/cx23885-417.c f->type = V4L2_TUNER_ANALOG_TV; f 1304 drivers/media/pci/cx23885/cx23885-417.c f->frequency = dev->freq; f 1306 drivers/media/pci/cx23885/cx23885-417.c call_all(dev, tuner, g_frequency, f); f 1312 drivers/media/pci/cx23885/cx23885-417.c const struct v4l2_frequency *f) f 1314 drivers/media/pci/cx23885/cx23885-417.c return cx23885_set_frequency(file, priv, f); f 1337 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_fmtdesc *f) f 1339 drivers/media/pci/cx23885/cx23885-417.c if (f->index != 0) f 1342 drivers/media/pci/cx23885/cx23885-417.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 1348 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_format *f) f 1352 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1353 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; f 1354 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = f 1356 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; f 1357 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.width = dev->ts1.width; f 1358 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.height = dev->ts1.height; f 1359 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1366 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_format *f) f 1370 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1371 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; f 1372 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = f 1374 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; f 1375 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1382 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_format *f) f 1386 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1387 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.bytesperline = 0; f 1388 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.sizeimage = f 1390 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.colorspace = 0; f 1391 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1393 drivers/media/pci/cx23885/cx23885-417.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field); f 136 drivers/media/pci/cx23885/cx23885-dvb.c struct vb2_dvb_frontends *f; f 139 drivers/media/pci/cx23885/cx23885-dvb.c f = &port->frontends; f 141 drivers/media/pci/cx23885/cx23885-dvb.c if (f->gate <= 1) /* undefined or fe0 */ f 142 drivers/media/pci/cx23885/cx23885-dvb.c fe = vb2_dvb_get_frontend(f, 1); f 144 drivers/media/pci/cx23885/cx23885-dvb.c fe = vb2_dvb_get_frontend(f, f->gate); f 37 drivers/media/pci/cx23885/cx23885-vbi.c struct v4l2_format *f) f 41 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.sampling_rate = 27000000; f 42 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; f 43 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 44 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.offset = 0; f 45 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.flags = 0; f 48 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.start[0] = V4L2_VBI_ITU_525_F1_START + 9; f 49 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.start[1] = V4L2_VBI_ITU_525_F2_START + 9; f 50 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.count[0] = VBI_NTSC_LINE_COUNT; f 51 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.count[1] = VBI_NTSC_LINE_COUNT; f 54 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.start[0] = V4L2_VBI_ITU_625_F1_START + 5; f 55 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.start[1] = V4L2_VBI_ITU_625_F2_START + 5; f 56 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.count[0] = VBI_PAL_LINE_COUNT; f 57 drivers/media/pci/cx23885/cx23885-vbi.c f->fmt.vbi.count[1] = VBI_PAL_LINE_COUNT; f 528 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_format *f) f 532 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.width = dev->width; f 533 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height = dev->height; f 534 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = dev->field; f 535 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 536 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.bytesperline = f 537 drivers/media/pci/cx23885/cx23885-video.c (f->fmt.pix.width * dev->fmt->depth) >> 3; f 538 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.sizeimage = f 539 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 540 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 546 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_format *f) f 553 drivers/media/pci/cx23885/cx23885-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 557 drivers/media/pci/cx23885/cx23885-video.c field = f->fmt.pix.field; f 562 drivers/media/pci/cx23885/cx23885-video.c field = (f->fmt.pix.height > maxh/2) f 581 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = field; f 582 drivers/media/pci/cx23885/cx23885-video.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, f 583 drivers/media/pci/cx23885/cx23885-video.c &f->fmt.pix.height, 32, maxh, 0, 0); f 584 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.bytesperline = f 585 drivers/media/pci/cx23885/cx23885-video.c (f->fmt.pix.width * fmt->depth) >> 3; f 586 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.sizeimage = f 587 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 588 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 594 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_format *f) f 603 drivers/media/pci/cx23885/cx23885-video.c err = vidioc_try_fmt_vid_cap(file, priv, f); f 612 drivers/media/pci/cx23885/cx23885-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 613 drivers/media/pci/cx23885/cx23885-video.c dev->width = f->fmt.pix.width; f 614 drivers/media/pci/cx23885/cx23885-video.c dev->height = f->fmt.pix.height; f 615 drivers/media/pci/cx23885/cx23885-video.c dev->field = f->fmt.pix.field; f 618 drivers/media/pci/cx23885/cx23885-video.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); f 620 drivers/media/pci/cx23885/cx23885-video.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); f 622 drivers/media/pci/cx23885/cx23885-video.c f->fmt.pix.field = dev->field; f 645 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_fmtdesc *f) f 647 drivers/media/pci/cx23885/cx23885-video.c if (unlikely(f->index >= ARRAY_SIZE(formats))) f 650 drivers/media/pci/cx23885/cx23885-video.c f->pixelformat = formats[f->index].fourcc; f 656 drivers/media/pci/cx23885/cx23885-video.c int type, struct v4l2_fract *f) f 664 drivers/media/pci/cx23885/cx23885-video.c f->numerator = is_50hz ? 54 : 11; f 665 drivers/media/pci/cx23885/cx23885-video.c f->denominator = is_50hz ? 59 : 10; f 913 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_frequency *f) f 920 drivers/media/pci/cx23885/cx23885-video.c f->type = V4L2_TUNER_ANALOG_TV; f 921 drivers/media/pci/cx23885/cx23885-video.c f->frequency = dev->freq; f 923 drivers/media/pci/cx23885/cx23885-video.c call_all(dev, tuner, g_frequency, f); f 928 drivers/media/pci/cx23885/cx23885-video.c static int cx23885_set_freq(struct cx23885_dev *dev, const struct v4l2_frequency *f) f 935 drivers/media/pci/cx23885/cx23885-video.c if (unlikely(f->tuner != 0)) f 938 drivers/media/pci/cx23885/cx23885-video.c dev->freq = f->frequency; f 948 drivers/media/pci/cx23885/cx23885-video.c call_all(dev, tuner, s_frequency, f); f 961 drivers/media/pci/cx23885/cx23885-video.c const struct v4l2_frequency *f) f 972 drivers/media/pci/cx23885/cx23885-video.c .frequency = f->frequency f 975 drivers/media/pci/cx23885/cx23885-video.c dev->freq = f->frequency; f 987 drivers/media/pci/cx23885/cx23885-video.c params.frequency, f->tuner, params.std); f 1020 drivers/media/pci/cx23885/cx23885-video.c const struct v4l2_frequency *f) f 1030 drivers/media/pci/cx23885/cx23885-video.c ret = cx23885_set_freq_via_ops(dev, f); f 1033 drivers/media/pci/cx23885/cx23885-video.c ret = cx23885_set_freq(dev, f); f 1040 drivers/media/pci/cx23885/cx23885-video.c const struct v4l2_frequency *f) f 1042 drivers/media/pci/cx23885/cx23885-video.c return cx23885_set_frequency(file, priv, f); f 453 drivers/media/pci/cx23885/cx23885.h #define call_all(dev, o, f, args...) \ f 454 drivers/media/pci/cx23885/cx23885.h v4l2_device_call_all(&dev->v4l2_dev, 0, o, f, ##args) f 459 drivers/media/pci/cx23885/cx23885.h #define call_hw(dev, grpid, o, f, args...) \ f 460 drivers/media/pci/cx23885/cx23885.h v4l2_device_call_all(&dev->v4l2_dev, grpid, o, f, ##args) f 582 drivers/media/pci/cx23885/cx23885.h int cx23885_set_frequency(struct file *file, void *priv, const struct v4l2_frequency *f); f 588 drivers/media/pci/cx23885/cx23885.h struct v4l2_format *f); f 307 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_fmtdesc *f) f 309 drivers/media/pci/cx25821/cx25821-video.c if (unlikely(f->index >= ARRAY_SIZE(formats))) f 312 drivers/media/pci/cx25821/cx25821-video.c f->pixelformat = formats[f->index].fourcc; f 318 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_format *f) f 322 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = chan->width; f 323 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = chan->height; f 324 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = chan->field; f 325 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.pixelformat = chan->fmt->fourcc; f 326 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (chan->width * chan->fmt->depth) >> 3; f 327 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = chan->height * f->fmt.pix.bytesperline; f 328 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 334 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_format *f) f 339 drivers/media/pci/cx25821/cx25821-video.c enum v4l2_field field = f->fmt.pix.field; f 343 drivers/media/pci/cx25821/cx25821-video.c fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); f 348 drivers/media/pci/cx25821/cx25821-video.c w = f->fmt.pix.width; f 353 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh / 4; f 356 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh / 2; f 359 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = maxh; f 362 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = field; f 363 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = w; f 364 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 365 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 366 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 372 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_format *f) f 379 drivers/media/pci/cx25821/cx25821-video.c err = cx25821_vidioc_try_fmt_vid_cap(file, priv, f); f 384 drivers/media/pci/cx25821/cx25821-video.c chan->fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); f 385 drivers/media/pci/cx25821/cx25821-video.c chan->field = f->fmt.pix.field; f 386 drivers/media/pci/cx25821/cx25821-video.c chan->width = f->fmt.pix.width; f 387 drivers/media/pci/cx25821/cx25821-video.c chan->height = f->fmt.pix.height; f 389 drivers/media/pci/cx25821/cx25821-video.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_Y41P) f 534 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_format *f) f 540 drivers/media/pci/cx25821/cx25821-video.c fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); f 543 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.width = 720; f 544 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.height = (dev->tvnorm & V4L2_STD_625_50) ? 576 : 480; f 545 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 546 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 547 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 548 drivers/media/pci/cx25821/cx25821-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 553 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_format *f) f 558 drivers/media/pci/cx25821/cx25821-video.c err = cx25821_vidioc_try_fmt_vid_out(file, priv, f); f 563 drivers/media/pci/cx25821/cx25821-video.c chan->fmt = cx25821_format_by_fourcc(f->fmt.pix.pixelformat); f 564 drivers/media/pci/cx25821/cx25821-video.c chan->field = f->fmt.pix.field; f 565 drivers/media/pci/cx25821/cx25821-video.c chan->width = f->fmt.pix.width; f 566 drivers/media/pci/cx25821/cx25821-video.c chan->height = f->fmt.pix.height; f 567 drivers/media/pci/cx25821/cx25821-video.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_Y41P) f 803 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_fmtdesc *f) f 805 drivers/media/pci/cx88/cx88-blackbird.c if (f->index != 0) f 808 drivers/media/pci/cx88/cx88-blackbird.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 813 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_format *f) f 818 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 819 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.bytesperline = 0; f 820 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.sizeimage = dev->ts_packet_size * dev->ts_packet_count; f 821 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 822 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.width = core->width; f 823 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.height = core->height; f 824 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field = core->field; f 829 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_format *f) f 836 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 837 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.bytesperline = 0; f 838 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.sizeimage = dev->ts_packet_size * dev->ts_packet_count; f 839 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 844 drivers/media/pci/cx88/cx88-blackbird.c field = f->fmt.pix.field; f 854 drivers/media/pci/cx88/cx88-blackbird.c field = (f->fmt.pix.height > maxh / 2) f 862 drivers/media/pci/cx88/cx88-blackbird.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, f 863 drivers/media/pci/cx88/cx88-blackbird.c &f->fmt.pix.height, 32, maxh, 0, 0); f 864 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field = field; f 869 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_format *f) f 879 drivers/media/pci/cx88/cx88-blackbird.c vidioc_try_fmt_vid_cap(file, priv, f); f 880 drivers/media/pci/cx88/cx88-blackbird.c core->width = f->fmt.pix.width; f 881 drivers/media/pci/cx88/cx88-blackbird.c core->height = f->fmt.pix.height; f 882 drivers/media/pci/cx88/cx88-blackbird.c core->field = f->fmt.pix.field; f 883 drivers/media/pci/cx88/cx88-blackbird.c cx88_set_scale(core, f->fmt.pix.width, f->fmt.pix.height, f 884 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.field); f 886 drivers/media/pci/cx88/cx88-blackbird.c f->fmt.pix.height, f->fmt.pix.width); f 891 drivers/media/pci/cx88/cx88-blackbird.c const struct v4l2_frequency *f) f 899 drivers/media/pci/cx88/cx88-blackbird.c if (unlikely(f->tuner != 0)) f 905 drivers/media/pci/cx88/cx88-blackbird.c cx88_set_freq(core, f); f 935 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_frequency *f) f 942 drivers/media/pci/cx88/cx88-blackbird.c if (unlikely(f->tuner != 0)) f 945 drivers/media/pci/cx88/cx88-blackbird.c f->frequency = core->freq; f 946 drivers/media/pci/cx88/cx88-blackbird.c call_all(core, tuner, g_frequency, f); f 193 drivers/media/pci/cx88/cx88-dvb.c struct vb2_dvb_frontends *f; f 199 drivers/media/pci/cx88/cx88-dvb.c f = &core->dvbdev->frontends; f 201 drivers/media/pci/cx88/cx88-dvb.c if (!f) f 204 drivers/media/pci/cx88/cx88-dvb.c if (f->gate <= 1) /* undefined or fe0 */ f 205 drivers/media/pci/cx88/cx88-dvb.c fe = vb2_dvb_get_frontend(f, 1); f 207 drivers/media/pci/cx88/cx88-dvb.c fe = vb2_dvb_get_frontend(f, f->gate); f 24 drivers/media/pci/cx88/cx88-vbi.c struct v4l2_format *f) f 28 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; f 29 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 30 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.offset = 244; f 34 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.sampling_rate = 28636363; f 35 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.start[0] = 10; f 36 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.start[1] = 273; f 37 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.count[0] = VBI_LINE_NTSC_COUNT; f 38 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.count[1] = VBI_LINE_NTSC_COUNT; f 42 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.sampling_rate = 35468950; f 43 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.start[0] = V4L2_VBI_ITU_625_F1_START + 5; f 44 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.start[1] = V4L2_VBI_ITU_625_F2_START + 5; f 45 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.count[0] = VBI_LINE_PAL_COUNT; f 46 drivers/media/pci/cx88/cx88-vbi.c f->fmt.vbi.count[1] = VBI_LINE_PAL_COUNT; f 707 drivers/media/pci/cx88/cx88-video.c struct v4l2_format *f) f 712 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.width = core->width; f 713 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height = core->height; f 714 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.field = core->field; f 715 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 716 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.bytesperline = f 717 drivers/media/pci/cx88/cx88-video.c (f->fmt.pix.width * dev->fmt->depth) >> 3; f 718 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.sizeimage = f 719 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 720 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 725 drivers/media/pci/cx88/cx88-video.c struct v4l2_format *f) f 733 drivers/media/pci/cx88/cx88-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 740 drivers/media/pci/cx88/cx88-video.c field = f->fmt.pix.field; f 750 drivers/media/pci/cx88/cx88-video.c field = (f->fmt.pix.height > maxh / 2) f 758 drivers/media/pci/cx88/cx88-video.c v4l_bound_align_image(&f->fmt.pix.width, 48, maxw, 2, f 759 drivers/media/pci/cx88/cx88-video.c &f->fmt.pix.height, 32, maxh, 0, 0); f 760 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.field = field; f 761 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.bytesperline = f 762 drivers/media/pci/cx88/cx88-video.c (f->fmt.pix.width * fmt->depth) >> 3; f 763 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.sizeimage = f 764 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 765 drivers/media/pci/cx88/cx88-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 771 drivers/media/pci/cx88/cx88-video.c struct v4l2_format *f) f 775 drivers/media/pci/cx88/cx88-video.c int err = vidioc_try_fmt_vid_cap(file, priv, f); f 783 drivers/media/pci/cx88/cx88-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 784 drivers/media/pci/cx88/cx88-video.c core->width = f->fmt.pix.width; f 785 drivers/media/pci/cx88/cx88-video.c core->height = f->fmt.pix.height; f 786 drivers/media/pci/cx88/cx88-video.c core->field = f->fmt.pix.field; f 817 drivers/media/pci/cx88/cx88-video.c struct v4l2_fmtdesc *f) f 819 drivers/media/pci/cx88/cx88-video.c if (unlikely(f->index >= ARRAY_SIZE(formats))) f 822 drivers/media/pci/cx88/cx88-video.c f->pixelformat = formats[f->index].fourcc; f 947 drivers/media/pci/cx88/cx88-video.c struct v4l2_frequency *f) f 954 drivers/media/pci/cx88/cx88-video.c if (f->tuner) f 957 drivers/media/pci/cx88/cx88-video.c f->frequency = core->freq; f 959 drivers/media/pci/cx88/cx88-video.c call_all(core, tuner, g_frequency, f); f 965 drivers/media/pci/cx88/cx88-video.c const struct v4l2_frequency *f) f 967 drivers/media/pci/cx88/cx88-video.c struct v4l2_frequency new_freq = *f; f 971 drivers/media/pci/cx88/cx88-video.c if (unlikely(f->tuner != 0)) f 975 drivers/media/pci/cx88/cx88-video.c call_all(core, tuner, s_frequency, f); f 988 drivers/media/pci/cx88/cx88-video.c const struct v4l2_frequency *f) f 993 drivers/media/pci/cx88/cx88-video.c return cx88_set_freq(core, f); f 416 drivers/media/pci/cx88/cx88.h #define call_hw(core, grpid, o, f, args...) \ f 422 drivers/media/pci/cx88/cx88.h grpid, o, f, ##args); \ f 428 drivers/media/pci/cx88/cx88.h #define call_all(core, o, f, args...) call_hw(core, 0, o, f, ##args) f 659 drivers/media/pci/cx88/cx88.h struct v4l2_format *f); f 725 drivers/media/pci/cx88/cx88.h int cx88_set_freq(struct cx88_core *core, const struct v4l2_frequency *f); f 635 drivers/media/pci/dm1105/dm1105.c static int dm1105_start_feed(struct dvb_demux_feed *f) f 637 drivers/media/pci/dm1105/dm1105.c struct dm1105_dev *dev = feed_to_dm1105_dev(f); f 645 drivers/media/pci/dm1105/dm1105.c static int dm1105_stop_feed(struct dvb_demux_feed *f) f 647 drivers/media/pci/dm1105/dm1105.c struct dm1105_dev *dev = feed_to_dm1105_dev(f); f 304 drivers/media/pci/dt3155/dt3155.c void *p, struct v4l2_fmtdesc *f) f 306 drivers/media/pci/dt3155/dt3155.c if (f->index) f 308 drivers/media/pci/dt3155/dt3155.c f->pixelformat = V4L2_PIX_FMT_GREY; f 312 drivers/media/pci/dt3155/dt3155.c static int dt3155_fmt_vid_cap(struct file *filp, void *p, struct v4l2_format *f) f 316 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.width = pd->width; f 317 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.height = pd->height; f 318 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_GREY; f 319 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.field = V4L2_FIELD_NONE; f 320 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.bytesperline = f->fmt.pix.width; f 321 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.sizeimage = f->fmt.pix.width * f->fmt.pix.height; f 322 drivers/media/pci/dt3155/dt3155.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1076 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct v4l2_fmtdesc *f) f 1078 drivers/media/pci/intel/ipu3/ipu3-cio2.c if (f->index >= ARRAY_SIZE(formats)) f 1081 drivers/media/pci/intel/ipu3/ipu3-cio2.c f->pixelformat = formats[f->index].fourcc; f 1087 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 1091 drivers/media/pci/intel/ipu3/ipu3-cio2.c f->fmt.pix_mp = q->format; f 1096 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 1099 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct v4l2_pix_format_mplane *mpix = &f->fmt.pix_mp; f 1130 drivers/media/pci/intel/ipu3/ipu3-cio2.c static int cio2_v4l2_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 1134 drivers/media/pci/intel/ipu3/ipu3-cio2.c cio2_v4l2_try_fmt(file, fh, f); f 1135 drivers/media/pci/intel/ipu3/ipu3-cio2.c q->format = f->fmt.pix_mp; f 831 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_hw(itv, hw, o, f, args...) \ f 832 drivers/media/pci/ivtv/ivtv-driver.h v4l2_device_mask_call_all(&(itv)->v4l2_dev, hw, o, f, ##args) f 834 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_all(itv, o, f, args...) ivtv_call_hw(itv, 0, o, f , ##args) f 839 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_hw_err(itv, hw, o, f, args...) \ f 840 drivers/media/pci/ivtv/ivtv-driver.h v4l2_device_mask_call_until_err(&(itv)->v4l2_dev, hw, o, f, ##args) f 842 drivers/media/pci/ivtv/ivtv-driver.h #define ivtv_call_all_err(itv, o, f, args...) ivtv_call_hw_err(itv, 0, o, f , ##args) f 85 drivers/media/pci/ivtv/ivtv-ioctl.c int f, l; f 88 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 2; f++) { f 90 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->service_lines[f][l] = select_service_from_set(f, l, set, is_pal); f 97 drivers/media/pci/ivtv/ivtv-ioctl.c int f, l; f 99 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 2; f++) { f 101 drivers/media/pci/ivtv/ivtv-ioctl.c fmt->service_lines[f][l] = select_service_from_set(f, l, fmt->service_lines[f][l], is_pal); f 108 drivers/media/pci/ivtv/ivtv-ioctl.c int f, l; f 111 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 2; f++) { f 113 drivers/media/pci/ivtv/ivtv-ioctl.c set |= fmt->service_lines[f][l]; f 814 drivers/media/pci/ivtv/ivtv-ioctl.c int type, struct v4l2_fract *f) f 820 drivers/media/pci/ivtv/ivtv-ioctl.c f->numerator = itv->is_50hz ? 54 : 11; f 821 drivers/media/pci/ivtv/ivtv-ioctl.c f->denominator = itv->is_50hz ? 59 : 10; f 823 drivers/media/pci/ivtv/ivtv-ioctl.c f->numerator = itv->is_out_50hz ? 54 : 11; f 824 drivers/media/pci/ivtv/ivtv-ioctl.c f->denominator = itv->is_out_50hz ? 59 : 10; f 1120 drivers/media/pci/ivtv/ivtv-ioctl.c int f; f 1135 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 4; f++) { f 1145 drivers/media/pci/ivtv/ivtv-ioctl.c if (f == 4) f 1223 drivers/media/pci/ivtv/ivtv-ioctl.c int f, l; f 1226 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 2; f++) { f 1228 drivers/media/pci/ivtv/ivtv-ioctl.c if (valid_service_line(f, l, itv->is_50hz)) f 1229 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[f][l] = set; f 1247 drivers/media/pci/ivtv/ivtv-ioctl.c for (f = 0; f < 2; f++) f 1249 drivers/media/pci/ivtv/ivtv-ioctl.c set |= cap->service_lines[f][l]; f 342 drivers/media/pci/ivtv/ivtv-irq.c struct yuv_frame_info *f = &yi->new_frame_info[frame]; f 344 drivers/media/pci/ivtv/ivtv-irq.c u32 y_size = 720 * ((f->src_h + 31) & ~31); f 353 drivers/media/pci/ivtv/ivtv-irq.c if (s->type == IVTV_DEC_STREAM_TYPE_YUV && f->offset_y) { f 834 drivers/media/pci/ivtv/ivtv-irq.c struct yuv_frame_info *f = &yi->new_frame_info[last_dma_frame]; f 838 drivers/media/pci/ivtv/ivtv-irq.c if (((frame ^ f->sync_field) == 0 && f 839 drivers/media/pci/ivtv/ivtv-irq.c ((itv->last_vsync_field & 1) ^ f->sync_field)) || f 840 drivers/media/pci/ivtv/ivtv-irq.c (frame != (itv->last_vsync_field & 1) && !f->interlaced)) { f 843 drivers/media/pci/ivtv/ivtv-irq.c if (!(f->interlaced && f->delay && yi->fields_lapsed < 1)) { f 895 drivers/media/pci/ivtv/ivtv-irq.c if (yi->running && (yi->yuv_forced_update || f->update)) { f 896 drivers/media/pci/ivtv/ivtv-irq.c if (!f->update) { f 900 drivers/media/pci/ivtv/ivtv-irq.c f = &yi->new_frame_info[last_dma_frame]; f 903 drivers/media/pci/ivtv/ivtv-irq.c if (f->src_w) { f 905 drivers/media/pci/ivtv/ivtv-irq.c f->update = 0; f 36 drivers/media/pci/ivtv/ivtv-mailbox.c #define API_ENTRY(x, f) [x] = { (f), #x } f 191 drivers/media/pci/ivtv/ivtv-vbi.c int f, l; f 197 drivers/media/pci/ivtv/ivtv-vbi.c f = itv->vbi.sliced_data[i].field; f 198 drivers/media/pci/ivtv/ivtv-vbi.c if (f) f 32 drivers/media/pci/ivtv/ivtv-yuv.c struct yuv_frame_info *f = &yi->new_frame_info[frame]; f 41 drivers/media/pci/ivtv/ivtv-yuv.c y_decode_height = uv_decode_height = f->src_h + f->src_y; f 43 drivers/media/pci/ivtv/ivtv-yuv.c if (f->offset_y) f 127 drivers/media/pci/ivtv/ivtv-yuv.c if (f->offset_y && yi->blanking_dmaptr) { f 216 drivers/media/pci/ivtv/ivtv-yuv.c static void ivtv_yuv_handle_horizontal(struct ivtv *itv, struct yuv_frame_info *f) f 229 drivers/media/pci/ivtv/ivtv-yuv.c f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); f 232 drivers/media/pci/ivtv/ivtv-yuv.c x_cutoff = f->src_w + f->src_x; f 235 drivers/media/pci/ivtv/ivtv-yuv.c reg_2834 = f->dst_w; f 239 drivers/media/pci/ivtv/ivtv-yuv.c reg_2890 = f->dst_x; f 250 drivers/media/pci/ivtv/ivtv-yuv.c if (f->vis_w == 720) { f 251 drivers/media/pci/ivtv/ivtv-yuv.c if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) f 252 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870 = 10 - (f->tru_x - f->pan_x) / 4; f 253 drivers/media/pci/ivtv/ivtv-yuv.c else if ((f->tru_x - f->pan_x < 0) && (f->tru_x - f->pan_x >= -20) && (f->dst_w >= 660)) f 254 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870 = (10 + (f->tru_x - f->pan_x) / 2); f 256 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_w >= f->src_w) f 262 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_w < f->src_w) f 268 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; f 270 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_w >= f->src_w) { f 272 drivers/media/pci/ivtv/ivtv-yuv.c master_width = (f->src_w * 0x00200000) / (f->dst_w); f 273 drivers/media/pci/ivtv/ivtv-yuv.c if (master_width * f->dst_w != f->src_w * 0x00200000) f 285 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_w > f->src_w) f 286 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870_base = ((f->dst_w - f->src_w)<<16) / (f->src_w <<14); f 292 drivers/media/pci/ivtv/ivtv-yuv.c } else if (f->dst_w < f->src_w / 2) { f 293 drivers/media/pci/ivtv/ivtv-yuv.c master_width = (f->src_w * 0x00080000) / f->dst_w; f 294 drivers/media/pci/ivtv/ivtv-yuv.c if (master_width * f->dst_w != f->src_w * 0x00080000) f 304 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870 += (5 - (((f->src_w + f->src_w / 2) - 1) / f->dst_w)) << 16; f 307 drivers/media/pci/ivtv/ivtv-yuv.c master_width = (f->src_w * 0x00100000) / f->dst_w; f 308 drivers/media/pci/ivtv/ivtv-yuv.c if (master_width * f->dst_w != f->src_w * 0x00100000) f 318 drivers/media/pci/ivtv/ivtv-yuv.c reg_2870 += (5 - (((f->src_w * 3) - 1) / f->dst_w)) << 16; f 323 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_w == f->dst_w) { f 328 drivers/media/pci/ivtv/ivtv-yuv.c h_filter = ((f->src_w << 16) / f->dst_w) >> 15; f 378 drivers/media/pci/ivtv/ivtv-yuv.c static void ivtv_yuv_handle_vertical(struct ivtv *itv, struct yuv_frame_info *f) f 395 drivers/media/pci/ivtv/ivtv-yuv.c f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); f 399 drivers/media/pci/ivtv/ivtv-yuv.c f->interlaced_y ? "Interlaced" : "Progressive"); f 402 drivers/media/pci/ivtv/ivtv-yuv.c f->interlaced_uv ? "Interlaced" : "Progressive"); f 406 drivers/media/pci/ivtv/ivtv-yuv.c f->interlaced ? "Interlaced" : "Progressive"); f 410 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_y < 8) { f 411 drivers/media/pci/ivtv/ivtv-yuv.c src_minor_uv = f->src_y; f 415 drivers/media/pci/ivtv/ivtv-yuv.c src_major_uv = f->src_y - 8; f 421 drivers/media/pci/ivtv/ivtv-yuv.c if (f->offset_y) f 424 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_y) f 425 drivers/media/pci/ivtv/ivtv-yuv.c reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); f 427 drivers/media/pci/ivtv/ivtv-yuv.c reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); f 429 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_uv) f 430 drivers/media/pci/ivtv/ivtv-yuv.c reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); f 432 drivers/media/pci/ivtv/ivtv-yuv.c reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); f 434 drivers/media/pci/ivtv/ivtv-yuv.c reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; f 435 drivers/media/pci/ivtv/ivtv-yuv.c reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; f 437 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { f 438 drivers/media/pci/ivtv/ivtv-yuv.c master_height = (f->src_h * 0x00400000) / f->dst_h; f 439 drivers/media/pci/ivtv/ivtv-yuv.c if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) f 448 drivers/media/pci/ivtv/ivtv-yuv.c } else if (f->dst_h >= f->src_h) { f 449 drivers/media/pci/ivtv/ivtv-yuv.c master_height = (f->src_h * 0x00400000) / f->dst_h; f 456 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_y) { f 462 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_uv) f 465 drivers/media/pci/ivtv/ivtv-yuv.c } else if (f->dst_h >= f->src_h / 2) { f 466 drivers/media/pci/ivtv/ivtv-yuv.c master_height = (f->src_h * 0x00200000) / f->dst_h; f 473 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_y) { f 479 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_uv) f 483 drivers/media/pci/ivtv/ivtv-yuv.c master_height = (f->src_h * 0x00100000) / f->dst_h; f 496 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_h == f->dst_h) { f 510 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_y) f 515 drivers/media/pci/ivtv/ivtv-yuv.c if (f->interlaced_uv) f 524 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_y < 0) f 525 drivers/media/pci/ivtv/ivtv-yuv.c reg_289c = (reg_289c - ((f->dst_y & ~1)<<15))-(f->dst_y >>1); f 527 drivers/media/pci/ivtv/ivtv-yuv.c reg_289c = (reg_289c + ((f->dst_y & ~1)<<15))+(f->dst_y >>1); f 531 drivers/media/pci/ivtv/ivtv-yuv.c reg_2960 = ((src_minor_y + f->src_h + src_major_y) - 1) | f 532 drivers/media/pci/ivtv/ivtv-yuv.c (((src_minor_uv + f->src_h + src_major_uv - 1) & ~1) << 15); f 535 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_h == f->dst_h) { f 538 drivers/media/pci/ivtv/ivtv-yuv.c reg_2964 = 2 + ((f->dst_h << 1) / f->src_h); f 553 drivers/media/pci/ivtv/ivtv-yuv.c if ((reg_2964 != 0x00010001) && (f->dst_h / 2 <= f->src_h)) f 556 drivers/media/pci/ivtv/ivtv-yuv.c if (!f->interlaced_y) f 558 drivers/media/pci/ivtv/ivtv-yuv.c if (!f->interlaced_uv) f 565 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_h == f->dst_h) { f 571 drivers/media/pci/ivtv/ivtv-yuv.c v_filter_1 = ((f->src_h << 16) / f->dst_h) >> 15; f 657 drivers/media/pci/ivtv/ivtv-yuv.c static u32 ivtv_yuv_window_setup(struct ivtv *itv, struct yuv_frame_info *f) f 665 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_x < 0) f 666 drivers/media/pci/ivtv/ivtv-yuv.c f->src_x = 0; f 667 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_y < 0) f 668 drivers/media/pci/ivtv/ivtv-yuv.c f->src_y = 0; f 671 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->src_w - 4 * f->dst_w) > 0) { f 672 drivers/media/pci/ivtv/ivtv-yuv.c f->src_x += osd_crop / 2; f 673 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w = (f->src_w - osd_crop) & ~3; f 674 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w = f->src_w / 4; f 675 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w += f->dst_w & 1; f 679 drivers/media/pci/ivtv/ivtv-yuv.c if (f->src_h / f->dst_h >= 2) { f 682 drivers/media/pci/ivtv/ivtv-yuv.c f->interlaced_y = 1; f 684 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->src_h - 4 * f->dst_h) > 0) { f 686 drivers/media/pci/ivtv/ivtv-yuv.c f->src_y += osd_crop / 2; f 687 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h = (f->src_h - osd_crop) & ~3; f 688 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h = f->src_h / 4; f 689 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h += f->dst_h & 1; f 694 drivers/media/pci/ivtv/ivtv-yuv.c if ((int)f->dst_w <= 2 || (int)f->dst_h <= 2 || f 695 drivers/media/pci/ivtv/ivtv-yuv.c (int)f->src_w <= 2 || (int)f->src_h <= 2) { f 700 drivers/media/pci/ivtv/ivtv-yuv.c osd_scale = (f->src_h << 16) / f->dst_h; f 702 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->pan_y - f->dst_y) > 0) { f 704 drivers/media/pci/ivtv/ivtv-yuv.c f->src_y += (osd_scale * osd_crop) >> 16; f 705 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h -= (osd_scale * osd_crop) >> 16; f 706 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h -= osd_crop; f 707 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_y = 0; f 709 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_y -= f->pan_y; f 712 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->dst_h + f->dst_y - f->vis_h) > 0) { f 714 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h -= osd_crop; f 715 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h -= (osd_scale * osd_crop) >> 16; f 718 drivers/media/pci/ivtv/ivtv-yuv.c osd_scale = (f->src_w << 16) / f->dst_w; f 720 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->pan_x - f->dst_x) > 0) { f 722 drivers/media/pci/ivtv/ivtv-yuv.c f->src_x += (osd_scale * osd_crop) >> 16; f 723 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w -= (osd_scale * osd_crop) >> 16; f 724 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w -= osd_crop; f 725 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_x = 0; f 727 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_x -= f->pan_x; f 730 drivers/media/pci/ivtv/ivtv-yuv.c if ((osd_crop = f->dst_w + f->dst_x - f->vis_w) > 0) { f 732 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w -= osd_crop; f 733 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w -= (osd_scale * osd_crop) >> 16; f 738 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_x += itv->yuv_info.osd_x_offset; f 739 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_y += itv->yuv_info.osd_y_offset; f 744 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w &= ~1; f 745 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_x &= ~1; f 747 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w += f->src_x & 1; f 748 drivers/media/pci/ivtv/ivtv-yuv.c f->src_x &= ~1; f 750 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w &= ~1; f 751 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w &= ~1; f 753 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h &= ~1; f 754 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_y &= ~1; f 756 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h += f->src_y & 1; f 757 drivers/media/pci/ivtv/ivtv-yuv.c f->src_y &= ~1; f 759 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h &= ~1; f 760 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h &= ~1; f 765 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_w < f->src_w / 4) { f 766 drivers/media/pci/ivtv/ivtv-yuv.c f->src_w &= ~3; f 767 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w = f->src_w / 4; f 768 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_w += f->dst_w & 1; f 770 drivers/media/pci/ivtv/ivtv-yuv.c if (f->dst_h < f->src_h / 4) { f 771 drivers/media/pci/ivtv/ivtv-yuv.c f->src_h &= ~3; f 772 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h = f->src_h / 4; f 773 drivers/media/pci/ivtv/ivtv-yuv.c f->dst_h += f->dst_h & 1; f 777 drivers/media/pci/ivtv/ivtv-yuv.c if ((int)f->dst_w <= 2 || (int)f->dst_h <= 2 || f 778 drivers/media/pci/ivtv/ivtv-yuv.c (int)f->src_w <= 2 || (int)f->src_h <= 2) { f 783 drivers/media/pci/ivtv/ivtv-yuv.c if ((of->dst_w != f->dst_w) || (of->src_w != f->src_w) || f 784 drivers/media/pci/ivtv/ivtv-yuv.c (of->dst_x != f->dst_x) || (of->src_x != f->src_x) || f 785 drivers/media/pci/ivtv/ivtv-yuv.c (of->pan_x != f->pan_x) || (of->vis_w != f->vis_w)) { f 789 drivers/media/pci/ivtv/ivtv-yuv.c if ((of->src_h != f->src_h) || (of->dst_h != f->dst_h) || f 790 drivers/media/pci/ivtv/ivtv-yuv.c (of->dst_y != f->dst_y) || (of->src_y != f->src_y) || f 791 drivers/media/pci/ivtv/ivtv-yuv.c (of->pan_y != f->pan_y) || (of->vis_h != f->vis_h) || f 792 drivers/media/pci/ivtv/ivtv-yuv.c (of->lace_mode != f->lace_mode) || f 793 drivers/media/pci/ivtv/ivtv-yuv.c (of->interlaced_y != f->interlaced_y) || f 794 drivers/media/pci/ivtv/ivtv-yuv.c (of->interlaced_uv != f->interlaced_uv)) { f 805 drivers/media/pci/ivtv/ivtv-yuv.c struct yuv_frame_info f; f 810 drivers/media/pci/ivtv/ivtv-yuv.c f = yi->new_frame_info[frame]; f 814 drivers/media/pci/ivtv/ivtv-yuv.c f.pan_x = yi->osd_x_pan; f 815 drivers/media/pci/ivtv/ivtv-yuv.c f.pan_y = yi->osd_y_pan; f 816 drivers/media/pci/ivtv/ivtv-yuv.c f.vis_w = yi->osd_vis_w; f 817 drivers/media/pci/ivtv/ivtv-yuv.c f.vis_h = yi->osd_vis_h; f 820 drivers/media/pci/ivtv/ivtv-yuv.c f.pan_x = 0; f 821 drivers/media/pci/ivtv/ivtv-yuv.c f.pan_y = 0; f 822 drivers/media/pci/ivtv/ivtv-yuv.c f.vis_w = 720; f 823 drivers/media/pci/ivtv/ivtv-yuv.c f.vis_h = yi->decode_height; f 827 drivers/media/pci/ivtv/ivtv-yuv.c if (!(yuv_update = ivtv_yuv_window_setup(itv, &f))) f 836 drivers/media/pci/ivtv/ivtv-yuv.c ivtv_yuv_handle_horizontal(itv, &f); f 839 drivers/media/pci/ivtv/ivtv-yuv.c ivtv_yuv_handle_vertical(itv, &f); f 841 drivers/media/pci/ivtv/ivtv-yuv.c yi->old_frame_info = f; f 1099 drivers/media/pci/meye/meye.c struct v4l2_fmtdesc *f) f 1101 drivers/media/pci/meye/meye.c if (f->index > 1) f 1104 drivers/media/pci/meye/meye.c if (f->index == 0) { f 1106 drivers/media/pci/meye/meye.c f->flags = 0; f 1107 drivers/media/pci/meye/meye.c f->pixelformat = V4L2_PIX_FMT_YUYV; f 1110 drivers/media/pci/meye/meye.c f->pixelformat = V4L2_PIX_FMT_MJPEG; f 1117 drivers/media/pci/meye/meye.c struct v4l2_format *f) f 1119 drivers/media/pci/meye/meye.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_YUYV && f 1120 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG) f 1123 drivers/media/pci/meye/meye.c if (f->fmt.pix.field != V4L2_FIELD_ANY && f 1124 drivers/media/pci/meye/meye.c f->fmt.pix.field != V4L2_FIELD_NONE) f 1127 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1129 drivers/media/pci/meye/meye.c if (f->fmt.pix.width <= 320) { f 1130 drivers/media/pci/meye/meye.c f->fmt.pix.width = 320; f 1131 drivers/media/pci/meye/meye.c f->fmt.pix.height = 240; f 1133 drivers/media/pci/meye/meye.c f->fmt.pix.width = 640; f 1134 drivers/media/pci/meye/meye.c f->fmt.pix.height = 480; f 1137 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 1138 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * f 1139 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; f 1140 drivers/media/pci/meye/meye.c f->fmt.pix.colorspace = 0; f 1146 drivers/media/pci/meye/meye.c struct v4l2_format *f) f 1151 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; f 1154 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MJPEG; f 1158 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1159 drivers/media/pci/meye/meye.c f->fmt.pix.width = mchip_hsize(); f 1160 drivers/media/pci/meye/meye.c f->fmt.pix.height = mchip_vsize(); f 1161 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 1162 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * f 1163 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; f 1169 drivers/media/pci/meye/meye.c struct v4l2_format *f) f 1171 drivers/media/pci/meye/meye.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_YUYV && f 1172 drivers/media/pci/meye/meye.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG) f 1175 drivers/media/pci/meye/meye.c if (f->fmt.pix.field != V4L2_FIELD_ANY && f 1176 drivers/media/pci/meye/meye.c f->fmt.pix.field != V4L2_FIELD_NONE) f 1179 drivers/media/pci/meye/meye.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1182 drivers/media/pci/meye/meye.c if (f->fmt.pix.width <= 320) { f 1183 drivers/media/pci/meye/meye.c f->fmt.pix.width = 320; f 1184 drivers/media/pci/meye/meye.c f->fmt.pix.height = 240; f 1187 drivers/media/pci/meye/meye.c f->fmt.pix.width = 640; f 1188 drivers/media/pci/meye/meye.c f->fmt.pix.height = 480; f 1192 drivers/media/pci/meye/meye.c switch (f->fmt.pix.pixelformat) { f 1202 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 1203 drivers/media/pci/meye/meye.c f->fmt.pix.sizeimage = f->fmt.pix.height * f 1204 drivers/media/pci/meye/meye.c f->fmt.pix.bytesperline; f 1205 drivers/media/pci/meye/meye.c f->fmt.pix.colorspace = 0; f 243 drivers/media/pci/pluto2/pluto2.c static int pluto_start_feed(struct dvb_demux_feed *f) f 245 drivers/media/pci/pluto2/pluto2.c struct pluto *pluto = feed_to_pluto(f); f 251 drivers/media/pci/pluto2/pluto2.c if ((f->pid < 0x2000) && (f->index < NHWFILTERS)) f 252 drivers/media/pci/pluto2/pluto2.c pluto_rw(pluto, REG_PIDn(f->index), PIDn_ENP | PIDn_PID, PIDn_ENP | f->pid); f 259 drivers/media/pci/pluto2/pluto2.c static int pluto_stop_feed(struct dvb_demux_feed *f) f 261 drivers/media/pci/pluto2/pluto2.c struct pluto *pluto = feed_to_pluto(f); f 267 drivers/media/pci/pluto2/pluto2.c if ((f->pid < 0x2000) && (f->index < NHWFILTERS)) f 268 drivers/media/pci/pluto2/pluto2.c pluto_rw(pluto, REG_PIDn(f->index), PIDn_ENP | PIDn_PID, 0x1fff); f 171 drivers/media/pci/saa7134/saa7134-dvb.c struct v4l2_frequency f; f 174 drivers/media/pci/saa7134/saa7134-dvb.c f.tuner = 0; f 175 drivers/media/pci/saa7134/saa7134-dvb.c f.type = V4L2_TUNER_DIGITAL_TV; f 176 drivers/media/pci/saa7134/saa7134-dvb.c f.frequency = c->frequency / 1000 * 16 / 1000; f 180 drivers/media/pci/saa7134/saa7134-dvb.c saa_call_all(dev, tuner, s_frequency, &f); f 89 drivers/media/pci/saa7134/saa7134-empress.c struct v4l2_fmtdesc *f) f 91 drivers/media/pci/saa7134/saa7134-empress.c if (f->index != 0) f 94 drivers/media/pci/saa7134/saa7134-empress.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 99 drivers/media/pci/saa7134/saa7134-empress.c struct v4l2_format *f) f 109 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, mbus_fmt); f 110 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 111 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; f 112 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; f 118 drivers/media/pci/saa7134/saa7134-empress.c struct v4l2_format *f) f 125 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); f 127 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); f 129 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 130 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; f 131 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; f 137 drivers/media/pci/saa7134/saa7134-empress.c struct v4l2_format *f) f 145 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); f 147 drivers/media/pci/saa7134/saa7134-empress.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); f 149 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 150 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.sizeimage = TS_PACKET_SIZE * dev->ts.nr_packets; f 151 drivers/media/pci/saa7134/saa7134-empress.c f->fmt.pix.bytesperline = 0; f 1226 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1231 drivers/media/pci/saa7134/saa7134-video.c memset(&f->fmt.vbi.reserved, 0, sizeof(f->fmt.vbi.reserved)); f 1232 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.sampling_rate = 6750000 * 4; f 1233 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.samples_per_line = 2048 /* VBI_LINE_LENGTH */; f 1234 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 1235 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.offset = 64 * 4; f 1236 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.start[0] = norm->vbi_v_start_0; f 1237 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.count[0] = norm->vbi_v_stop_0 - norm->vbi_v_start_0 +1; f 1238 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.start[1] = norm->vbi_v_start_1; f 1239 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.count[1] = f->fmt.vbi.count[0]; f 1240 drivers/media/pci/saa7134/saa7134-video.c f->fmt.vbi.flags = 0; /* VBI_UNSYNC VBI_INTERLACED */ f 1246 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1250 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = dev->width; f 1251 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = dev->height; f 1252 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.field = dev->field; f 1253 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 1255 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f->fmt.pix.width; f 1257 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f 1258 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.width * dev->fmt->depth) / 8; f 1259 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.sizeimage = f 1260 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.height * f->fmt.pix.width * dev->fmt->depth) / 8; f 1261 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1266 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1269 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_clip __user *clips = f->fmt.win.clips; f 1270 drivers/media/pci/saa7134/saa7134-video.c u32 clipcount = f->fmt.win.clipcount; f 1278 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win = dev->win; f 1279 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clips = clips; f 1284 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = clipcount; f 1287 drivers/media/pci/saa7134/saa7134-video.c if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c, f 1296 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1303 drivers/media/pci/saa7134/saa7134-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 1307 drivers/media/pci/saa7134/saa7134-video.c field = f->fmt.pix.field; f 1312 drivers/media/pci/saa7134/saa7134-video.c field = (f->fmt.pix.height > maxh/2) f 1326 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.field = field; f 1327 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.width < 48) f 1328 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = 48; f 1329 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.height < 32) f 1330 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = 32; f 1331 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.width > maxw) f 1332 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width = maxw; f 1333 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.pix.height > maxh) f 1334 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.height = maxh; f 1335 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.width &= ~0x03; f 1337 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f->fmt.pix.width; f 1339 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.bytesperline = f 1340 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.width * fmt->depth) / 8; f 1341 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.sizeimage = f 1342 drivers/media/pci/saa7134/saa7134-video.c (f->fmt.pix.height * f->fmt.pix.width * fmt->depth) / 8; f 1343 drivers/media/pci/saa7134/saa7134-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1349 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1358 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.win.clips == NULL) f 1359 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = 0; f 1360 drivers/media/pci/saa7134/saa7134-video.c return verify_preview(dev, &f->fmt.win, true); f 1364 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1369 drivers/media/pci/saa7134/saa7134-video.c err = saa7134_try_fmt_vid_cap(file, priv, f); f 1373 drivers/media/pci/saa7134/saa7134-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 1374 drivers/media/pci/saa7134/saa7134-video.c dev->width = f->fmt.pix.width; f 1375 drivers/media/pci/saa7134/saa7134-video.c dev->height = f->fmt.pix.height; f 1376 drivers/media/pci/saa7134/saa7134-video.c dev->field = f->fmt.pix.field; f 1381 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_format *f) f 1391 drivers/media/pci/saa7134/saa7134-video.c if (f->fmt.win.clips == NULL) f 1392 drivers/media/pci/saa7134/saa7134-video.c f->fmt.win.clipcount = 0; f 1393 drivers/media/pci/saa7134/saa7134-video.c err = verify_preview(dev, &f->fmt.win, true); f 1397 drivers/media/pci/saa7134/saa7134-video.c dev->win = f->fmt.win; f 1398 drivers/media/pci/saa7134/saa7134-video.c dev->nclips = f->fmt.win.clipcount; f 1400 drivers/media/pci/saa7134/saa7134-video.c if (copy_from_user(dev->clips, f->fmt.win.clips, f 1601 drivers/media/pci/saa7134/saa7134-video.c int type, struct v4l2_fract *f) f 1610 drivers/media/pci/saa7134/saa7134-video.c f->numerator = 11; f 1611 drivers/media/pci/saa7134/saa7134-video.c f->denominator = 10; f 1614 drivers/media/pci/saa7134/saa7134-video.c f->numerator = 54; f 1615 drivers/media/pci/saa7134/saa7134-video.c f->denominator = 59; f 1620 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_g_selection(struct file *file, void *f, struct v4l2_selection *sel) f 1644 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_s_selection(struct file *file, void *f, struct v4l2_selection *sel) f 1735 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_frequency *f) f 1739 drivers/media/pci/saa7134/saa7134-video.c if (0 != f->tuner) f 1742 drivers/media/pci/saa7134/saa7134-video.c saa_call_all(dev, tuner, g_frequency, f); f 1749 drivers/media/pci/saa7134/saa7134-video.c const struct v4l2_frequency *f) f 1753 drivers/media/pci/saa7134/saa7134-video.c if (0 != f->tuner) f 1756 drivers/media/pci/saa7134/saa7134-video.c saa_call_all(dev, tuner, s_frequency, f); f 1764 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_fmtdesc *f) f 1766 drivers/media/pci/saa7134/saa7134-video.c if (f->index >= FORMATS) f 1769 drivers/media/pci/saa7134/saa7134-video.c f->pixelformat = formats[f->index].fourcc; f 1775 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_fmtdesc *f) f 1782 drivers/media/pci/saa7134/saa7134-video.c if ((f->index >= FORMATS) || formats[f->index].planar) f 1785 drivers/media/pci/saa7134/saa7134-video.c f->pixelformat = formats[f->index].fourcc; f 1790 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_g_fbuf(struct file *file, void *f, f 1801 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_s_fbuf(struct file *file, void *f, f 715 drivers/media/pci/saa7134/saa7134.h #define saa_call_all(dev, o, f, args...) do { \ f 718 drivers/media/pci/saa7134/saa7134.h v4l2_device_call_all(&(dev)->v4l2_dev, 0, o, f , ##args); \ f 723 drivers/media/pci/saa7134/saa7134.h #define saa_call_empress(dev, o, f, args...) ({ \ f 728 drivers/media/pci/saa7134/saa7134.h GRP_EMPRESS, o, f , ##args); \ f 823 drivers/media/pci/saa7134/saa7134.h struct v4l2_frequency *f); f 825 drivers/media/pci/saa7134/saa7134.h const struct v4l2_frequency *f); f 162 drivers/media/pci/saa7146/mxb.c #define saa7111a_call(mxb, o, f, args...) \ f 163 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->saa7111a, o, f, ##args) f 164 drivers/media/pci/saa7146/mxb.c #define tda9840_call(mxb, o, f, args...) \ f 165 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tda9840, o, f, ##args) f 166 drivers/media/pci/saa7146/mxb.c #define tea6415c_call(mxb, o, f, args...) \ f 167 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tea6415c, o, f, ##args) f 168 drivers/media/pci/saa7146/mxb.c #define tuner_call(mxb, o, f, args...) \ f 169 drivers/media/pci/saa7146/mxb.c v4l2_subdev_call(mxb->tuner, o, f, ##args) f 170 drivers/media/pci/saa7146/mxb.c #define call_all(dev, o, f, args...) \ f 171 drivers/media/pci/saa7146/mxb.c v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args) f 574 drivers/media/pci/saa7146/mxb.c static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *f) f 579 drivers/media/pci/saa7146/mxb.c if (f->tuner) f 581 drivers/media/pci/saa7146/mxb.c *f = mxb->cur_freq; f 587 drivers/media/pci/saa7146/mxb.c static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f) f 593 drivers/media/pci/saa7146/mxb.c if (f->tuner) f 596 drivers/media/pci/saa7146/mxb.c if (V4L2_TUNER_ANALOG_TV != f->type) f 602 drivers/media/pci/saa7146/mxb.c tuner_call(mxb, tuner, s_frequency, f); f 604 drivers/media/pci/saa7146/mxb.c mxb->cur_freq = *f; f 338 drivers/media/pci/saa7164/saa7164-encoder.c int saa7164_g_frequency(struct saa7164_port *port, struct v4l2_frequency *f) f 340 drivers/media/pci/saa7164/saa7164-encoder.c if (f->tuner) f 343 drivers/media/pci/saa7164/saa7164-encoder.c f->frequency = port->freq; f 348 drivers/media/pci/saa7164/saa7164-encoder.c struct v4l2_frequency *f) f 352 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_g_frequency(fh->port, f); f 356 drivers/media/pci/saa7164/saa7164-encoder.c const struct v4l2_frequency *f) f 367 drivers/media/pci/saa7164/saa7164-encoder.c .frequency = f->frequency f 372 drivers/media/pci/saa7164/saa7164-encoder.c f->frequency, f->tuner); f 374 drivers/media/pci/saa7164/saa7164-encoder.c if (f->tuner != 0) f 377 drivers/media/pci/saa7164/saa7164-encoder.c port->freq = clamp(f->frequency, f 401 drivers/media/pci/saa7164/saa7164-encoder.c const struct v4l2_frequency *f) f 405 drivers/media/pci/saa7164/saa7164-encoder.c return saa7164_s_frequency(fh->port, f); f 501 drivers/media/pci/saa7164/saa7164-encoder.c struct v4l2_fmtdesc *f) f 503 drivers/media/pci/saa7164/saa7164-encoder.c if (f->index != 0) f 506 drivers/media/pci/saa7164/saa7164-encoder.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 512 drivers/media/pci/saa7164/saa7164-encoder.c struct v4l2_format *f) f 517 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 518 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.bytesperline = 0; f 519 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.sizeimage = SAA7164_SIZEIMAGE; f 520 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 521 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 522 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.width = port->width; f 523 drivers/media/pci/saa7164/saa7164-encoder.c f->fmt.pix.height = port->height; f 176 drivers/media/pci/saa7164/saa7164-vbi.c struct v4l2_frequency *f) f 180 drivers/media/pci/saa7164/saa7164-vbi.c return saa7164_g_frequency(fh->port->enc_port, f); f 184 drivers/media/pci/saa7164/saa7164-vbi.c const struct v4l2_frequency *f) f 187 drivers/media/pci/saa7164/saa7164-vbi.c int ret = saa7164_s_frequency(fh->port->enc_port, f); f 397 drivers/media/pci/saa7164/saa7164-vbi.c struct v4l2_format *f) f 400 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.samples_per_line = 1440; f 401 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.sampling_rate = 27000000; f 402 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 403 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.offset = 0; f 404 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.flags = 0; f 405 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.start[0] = 10; f 406 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.count[0] = 18; f 407 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.start[1] = 263 + 10 + 1; f 408 drivers/media/pci/saa7164/saa7164-vbi.c f->fmt.vbi.count[1] = 18; f 409 drivers/media/pci/saa7164/saa7164-vbi.c memset(f->fmt.vbi.reserved, 0, sizeof(f->fmt.vbi.reserved)); f 592 drivers/media/pci/saa7164/saa7164.h int saa7164_g_frequency(struct saa7164_port *port, struct v4l2_frequency *f); f 594 drivers/media/pci/saa7164/saa7164.h const struct v4l2_frequency *f); f 815 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_fmtdesc *f) f 820 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c switch (f->index) { f 824 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c f->pixelformat = V4L2_PIX_FMT_MPEG4; f 827 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c f->pixelformat = V4L2_PIX_FMT_H264; f 832 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c f->pixelformat = V4L2_PIX_FMT_MJPEG; f 848 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_format *f) f 852 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; f 887 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_format *f) f 891 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; f 897 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c ret = solo_enc_try_fmt_cap(file, priv, f); f 924 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_format *f) f 927 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_pix_format *pix = &f->fmt.pix; f 455 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_fmtdesc *f) f 457 drivers/media/pci/solo6x10/solo6x10-v4l2.c if (f->index) f 460 drivers/media/pci/solo6x10/solo6x10-v4l2.c f->pixelformat = V4L2_PIX_FMT_UYVY; f 465 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_format *f) f 468 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 484 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_format *f) f 493 drivers/media/pci/solo6x10/solo6x10-v4l2.c return solo_try_fmt_cap(file, priv, f); f 497 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_format *f) f 500 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 557 drivers/media/pci/sta2x11/sta2x11_vip.c struct v4l2_fmtdesc *f) f 560 drivers/media/pci/sta2x11/sta2x11_vip.c if (f->index != 0) f 563 drivers/media/pci/sta2x11/sta2x11_vip.c f->pixelformat = V4L2_PIX_FMT_UYVY; f 584 drivers/media/pci/sta2x11/sta2x11_vip.c struct v4l2_format *f) f 589 drivers/media/pci/sta2x11/sta2x11_vip.c if (V4L2_PIX_FMT_UYVY != f->fmt.pix.pixelformat) { f 599 drivers/media/pci/sta2x11/sta2x11_vip.c switch (f->fmt.pix.field) { f 602 drivers/media/pci/sta2x11/sta2x11_vip.c if (interlace_lim < f->fmt.pix.height) f 603 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 605 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.field = V4L2_FIELD_BOTTOM; f 609 drivers/media/pci/sta2x11/sta2x11_vip.c if (interlace_lim < f->fmt.pix.height) f 610 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = interlace_lim; f 617 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; f 618 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height &= ~1; f 619 drivers/media/pci/sta2x11/sta2x11_vip.c if (2 * interlace_lim < f->fmt.pix.height) f 620 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = 2 * interlace_lim; f 621 drivers/media/pci/sta2x11/sta2x11_vip.c if (200 > f->fmt.pix.height) f 622 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.height = 200; f 623 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.width = 720; f 624 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 625 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.sizeimage = f->fmt.pix.width * 2 * f->fmt.pix.height; f 626 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 642 drivers/media/pci/sta2x11/sta2x11_vip.c struct v4l2_format *f) f 648 drivers/media/pci/sta2x11/sta2x11_vip.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 657 drivers/media/pci/sta2x11/sta2x11_vip.c vip->format = f->fmt.pix; f 709 drivers/media/pci/sta2x11/sta2x11_vip.c struct v4l2_format *f) f 713 drivers/media/pci/sta2x11/sta2x11_vip.c f->fmt.pix = vip->format; f 1643 drivers/media/pci/ttpci/av7110.c u32 f = p->frequency; f 1647 drivers/media/pci/ttpci/av7110.c div = (f + 36125000 + 31250) / 62500; f 1652 drivers/media/pci/ttpci/av7110.c data[3] = (f < 174000000 ? 0xa1 : f < 470000000 ? 0x92 : 0x34); f 52 drivers/media/pci/ttpci/av7110_ipack.c int f = 0; f 69 drivers/media/pci/ttpci/av7110_ipack.c f = dvb_filter_get_ac3info(p->buf + off + 3 + ac3_off, f 71 drivers/media/pci/ttpci/av7110_ipack.c if (!f) { f 399 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_g_frequency(struct file *file, void *fh, struct v4l2_frequency *f) f 404 drivers/media/pci/ttpci/av7110_v4l.c dprintk(2, "VIDIOC_G_FREQ: freq:0x%08x\n", f->frequency); f 409 drivers/media/pci/ttpci/av7110_v4l.c memset(f, 0, sizeof(*f)); f 410 drivers/media/pci/ttpci/av7110_v4l.c f->type = V4L2_TUNER_ANALOG_TV; f 411 drivers/media/pci/ttpci/av7110_v4l.c f->frequency = av7110->current_freq; f 415 drivers/media/pci/ttpci/av7110_v4l.c static int vidioc_s_frequency(struct file *file, void *fh, const struct v4l2_frequency *f) f 420 drivers/media/pci/ttpci/av7110_v4l.c dprintk(2, "VIDIOC_S_FREQUENCY: freq:0x%08x\n", f->frequency); f 425 drivers/media/pci/ttpci/av7110_v4l.c if (V4L2_TUNER_ANALOG_TV != f->type) f 433 drivers/media/pci/ttpci/av7110_v4l.c ves1820_set_tv_freq(dev, f->frequency); f 435 drivers/media/pci/ttpci/av7110_v4l.c stv0297_set_tv_freq(dev, f->frequency); f 436 drivers/media/pci/ttpci/av7110_v4l.c av7110->current_freq = f->frequency; f 543 drivers/media/pci/ttpci/av7110_v4l.c struct v4l2_format *f) f 551 drivers/media/pci/ttpci/av7110_v4l.c memset(&f->fmt.sliced, 0, sizeof f->fmt.sliced); f 553 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.service_set = V4L2_SLICED_WSS_625; f 554 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.service_lines[0][23] = V4L2_SLICED_WSS_625; f 555 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.io_size = sizeof(struct v4l2_sliced_vbi_data); f 561 drivers/media/pci/ttpci/av7110_v4l.c struct v4l2_format *f) f 569 drivers/media/pci/ttpci/av7110_v4l.c if (f->fmt.sliced.service_set != V4L2_SLICED_WSS_625 && f 570 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.service_lines[0][23] != V4L2_SLICED_WSS_625) { f 571 drivers/media/pci/ttpci/av7110_v4l.c memset(&f->fmt.sliced, 0, sizeof(f->fmt.sliced)); f 578 drivers/media/pci/ttpci/av7110_v4l.c memset(&f->fmt.sliced, 0, sizeof(f->fmt.sliced)); f 579 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.service_set = V4L2_SLICED_WSS_625; f 580 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.service_lines[0][23] = V4L2_SLICED_WSS_625; f 581 drivers/media/pci/ttpci/av7110_v4l.c f->fmt.sliced.io_size = sizeof(struct v4l2_sliced_vbi_data); f 531 drivers/media/pci/tw5864/tw5864-video.c struct v4l2_format *f) f 535 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.width = 704; f 541 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.height = 480; f 545 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.height = 576; f 548 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 549 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_H264; f 550 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.sizeimage = H264_VLC_BUF_SIZE; f 551 drivers/media/pci/tw5864/tw5864-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 645 drivers/media/pci/tw5864/tw5864-video.c struct v4l2_fmtdesc *f) f 647 drivers/media/pci/tw5864/tw5864-video.c if (f->index) f 650 drivers/media/pci/tw5864/tw5864-video.c f->pixelformat = V4L2_PIX_FMT_H264; f 572 drivers/media/pci/tw68/tw68-video.c struct v4l2_format *f) f 576 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = dev->width; f 577 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = dev->height; f 578 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.field = dev->field; f 579 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 580 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.bytesperline = f 581 drivers/media/pci/tw68/tw68-video.c (f->fmt.pix.width * (dev->fmt->depth)) >> 3; f 582 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.sizeimage = f 583 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 584 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 589 drivers/media/pci/tw68/tw68-video.c struct v4l2_format *f) f 596 drivers/media/pci/tw68/tw68-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 600 drivers/media/pci/tw68/tw68-video.c field = f->fmt.pix.field; f 613 drivers/media/pci/tw68/tw68-video.c field = (f->fmt.pix.height > maxh / 2) f 619 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.field = field; f 620 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.width < 48) f 621 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = 48; f 622 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.height < 32) f 623 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = 32; f 624 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.width > 720) f 625 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width = 720; f 626 drivers/media/pci/tw68/tw68-video.c if (f->fmt.pix.height > maxh) f 627 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height = maxh; f 628 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.width &= ~0x03; f 629 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.bytesperline = f 630 drivers/media/pci/tw68/tw68-video.c (f->fmt.pix.width * (fmt->depth)) >> 3; f 631 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.sizeimage = f 632 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 633 drivers/media/pci/tw68/tw68-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 644 drivers/media/pci/tw68/tw68-video.c struct v4l2_format *f) f 649 drivers/media/pci/tw68/tw68-video.c err = tw68_try_fmt_vid_cap(file, priv, f); f 653 drivers/media/pci/tw68/tw68-video.c dev->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 654 drivers/media/pci/tw68/tw68-video.c dev->width = f->fmt.pix.width; f 655 drivers/media/pci/tw68/tw68-video.c dev->height = f->fmt.pix.height; f 656 drivers/media/pci/tw68/tw68-video.c dev->field = f->fmt.pix.field; f 761 drivers/media/pci/tw68/tw68-video.c struct v4l2_fmtdesc *f) f 763 drivers/media/pci/tw68/tw68-video.c if (f->index >= FORMATS) f 766 drivers/media/pci/tw68/tw68-video.c f->pixelformat = formats[f->index].fourcc; f 624 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_format *f) f 629 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = vc->width; f 630 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = vc->height; f 631 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.field = dev->dma_ops->field; f 632 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.pixelformat = vc->format->fourcc; f 633 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 634 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * vc->format->depth) / 8; f 635 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 640 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_format *f) f 647 drivers/media/pci/tw686x/tw686x-video.c format = format_by_fourcc(f->fmt.pix.pixelformat); f 650 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.pixelformat = format->fourcc; f 653 drivers/media/pci/tw686x/tw686x-video.c if (f->fmt.pix.width <= TW686X_VIDEO_WIDTH / 2) f 654 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = TW686X_VIDEO_WIDTH / 2; f 656 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width = TW686X_VIDEO_WIDTH; f 658 drivers/media/pci/tw686x/tw686x-video.c if (f->fmt.pix.height <= video_height / 2) f 659 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = video_height / 2; f 661 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.height = video_height; f 663 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.bytesperline = (f->fmt.pix.width * format->depth) / 8; f 664 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 665 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 666 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.field = dev->dma_ops->field; f 737 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_format *f) f 748 drivers/media/pci/tw686x/tw686x-video.c err = tw686x_try_fmt_vid_cap(file, priv, f); f 752 drivers/media/pci/tw686x/tw686x-video.c realloc = area != (f->fmt.pix.width * f->fmt.pix.height); f 753 drivers/media/pci/tw686x/tw686x-video.c return tw686x_set_format(vc, f->fmt.pix.pixelformat, f 754 drivers/media/pci/tw686x/tw686x-video.c f->fmt.pix.width, f->fmt.pix.height, f 808 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_format f; f 825 drivers/media/pci/tw686x/tw686x-video.c tw686x_g_fmt_vid_cap(file, priv, &f); f 826 drivers/media/pci/tw686x/tw686x-video.c tw686x_s_fmt_vid_cap(file, priv, &f); f 973 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_fmtdesc *f) f 975 drivers/media/pci/tw686x/tw686x-video.c if (f->index >= ARRAY_SIZE(formats)) f 977 drivers/media/pci/tw686x/tw686x-video.c f->pixelformat = formats[f->index].fourcc; f 1000 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_format *f) f 1006 drivers/media/platform/am437x/am437x-vpfe.c memset(f, 0, sizeof(*f)); f 1007 drivers/media/platform/am437x/am437x-vpfe.c f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; f 1009 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.width = image_win.width; f 1010 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.height = image_win.height; f 1011 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.bytesperline = vpfe_ccdc_get_line_length(&vpfe->ccdc); f 1012 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 1013 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.height; f 1015 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.pixelformat = vpfe_ccdc_get_pixel_format(&vpfe->ccdc); f 1019 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1022 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1024 drivers/media/platform/am437x/am437x-vpfe.c f->fmt.pix.field = V4L2_FIELD_SEQ_TB; f 1501 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_fmtdesc *f) f 1509 drivers/media/platform/am437x/am437x-vpfe.c f->index); f 1515 drivers/media/platform/am437x/am437x-vpfe.c if (f->index > ARRAY_SIZE(formats)) f 1519 drivers/media/platform/am437x/am437x-vpfe.c if (formats[k].index == f->index) { f 1527 drivers/media/platform/am437x/am437x-vpfe.c f->pixelformat = fmt->fourcc; f 1530 drivers/media/platform/am437x/am437x-vpfe.c f->index, fmt->code, print_fourcc(fmt->fourcc)); f 2071 drivers/media/platform/am437x/am437x-vpfe.c int type, struct v4l2_fract *f) f 2081 drivers/media/platform/am437x/am437x-vpfe.c *f = vpfe_standards[vpfe->std_index].pixelaspect; f 995 drivers/media/platform/aspeed-video.c struct v4l2_fmtdesc *f) f 997 drivers/media/platform/aspeed-video.c if (f->index) f 1000 drivers/media/platform/aspeed-video.c f->pixelformat = V4L2_PIX_FMT_JPEG; f 1006 drivers/media/platform/aspeed-video.c struct v4l2_format *f) f 1010 drivers/media/platform/aspeed-video.c f->fmt.pix = video->pix_fmt; f 924 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_fmtdesc *f) f 926 drivers/media/platform/atmel/atmel-isc-base.c u32 index = f->index; f 930 drivers/media/platform/atmel/atmel-isc-base.c f->pixelformat = controller_formats[index].fourcc; f 944 drivers/media/platform/atmel/atmel-isc-base.c f->pixelformat = formats_list[i].fourcc; f 1190 drivers/media/platform/atmel/atmel-isc-base.c static int isc_try_fmt(struct isc_device *isc, struct v4l2_format *f, f 1195 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; f 1204 drivers/media/platform/atmel/atmel-isc-base.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) f 1318 drivers/media/platform/atmel/atmel-isc-base.c static int isc_set_fmt(struct isc_device *isc, struct v4l2_format *f) f 1326 drivers/media/platform/atmel/atmel-isc-base.c ret = isc_try_fmt(isc, f, &mbus_code); f 1330 drivers/media/platform/atmel/atmel-isc-base.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, mbus_code); f 1336 drivers/media/platform/atmel/atmel-isc-base.c isc->fmt = *f; f 1352 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_format *f) f 1359 drivers/media/platform/atmel/atmel-isc-base.c return isc_set_fmt(isc, f); f 1363 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_format *f) f 1367 drivers/media/platform/atmel/atmel-isc-base.c return isc_try_fmt(isc, f, NULL); f 1994 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_format f = { f 2005 drivers/media/platform/atmel/atmel-isc-base.c ret = isc_try_fmt(isc, &f, NULL); f 2009 drivers/media/platform/atmel/atmel-isc-base.c isc->fmt = f; f 557 drivers/media/platform/atmel/atmel-isi.c static int isi_try_fmt(struct atmel_isi *isi, struct v4l2_format *f, f 561 drivers/media/platform/atmel/atmel-isi.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; f 596 drivers/media/platform/atmel/atmel-isi.c static int isi_set_fmt(struct atmel_isi *isi, struct v4l2_format *f) f 604 drivers/media/platform/atmel/atmel-isi.c ret = isi_try_fmt(isi, f, ¤t_fmt); f 608 drivers/media/platform/atmel/atmel-isi.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, f 615 drivers/media/platform/atmel/atmel-isi.c isi->fmt = *f; f 622 drivers/media/platform/atmel/atmel-isi.c struct v4l2_format *f) f 629 drivers/media/platform/atmel/atmel-isi.c return isi_set_fmt(isi, f); f 633 drivers/media/platform/atmel/atmel-isi.c struct v4l2_format *f) f 637 drivers/media/platform/atmel/atmel-isi.c return isi_try_fmt(isi, f, NULL); f 641 drivers/media/platform/atmel/atmel-isi.c struct v4l2_fmtdesc *f) f 645 drivers/media/platform/atmel/atmel-isi.c if (f->index >= isi->num_user_formats) f 648 drivers/media/platform/atmel/atmel-isi.c f->pixelformat = isi->user_formats[f->index]->fourcc; f 933 drivers/media/platform/atmel/atmel-isi.c struct v4l2_format f = { f 944 drivers/media/platform/atmel/atmel-isi.c ret = isi_try_fmt(isi, &f, NULL); f 948 drivers/media/platform/atmel/atmel-isi.c isi->fmt = f; f 397 drivers/media/platform/coda/coda-common.c struct v4l2_fmtdesc *f) f 404 drivers/media/platform/coda/coda-common.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) f 406 drivers/media/platform/coda/coda-common.c else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) f 411 drivers/media/platform/coda/coda-common.c if (f->index >= CODA_MAX_FORMATS || formats[f->index] == 0) f 415 drivers/media/platform/coda/coda-common.c if (!ctx->vdoa && f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && f 416 drivers/media/platform/coda/coda-common.c formats[f->index] == V4L2_PIX_FMT_YUYV) f 419 drivers/media/platform/coda/coda-common.c f->pixelformat = formats[f->index]; f 425 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 430 drivers/media/platform/coda/coda-common.c q_data = get_q_data(ctx, f->type); f 434 drivers/media/platform/coda/coda-common.c f->fmt.pix.field = V4L2_FIELD_NONE; f 435 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = q_data->fourcc; f 436 drivers/media/platform/coda/coda-common.c f->fmt.pix.width = q_data->width; f 437 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = q_data->height; f 438 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = q_data->bytesperline; f 440 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = q_data->sizeimage; f 441 drivers/media/platform/coda/coda-common.c f->fmt.pix.colorspace = ctx->colorspace; f 442 drivers/media/platform/coda/coda-common.c f->fmt.pix.xfer_func = ctx->xfer_func; f 443 drivers/media/platform/coda/coda-common.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 444 drivers/media/platform/coda/coda-common.c f->fmt.pix.quantization = ctx->quantization; f 449 drivers/media/platform/coda/coda-common.c static int coda_try_pixelformat(struct coda_ctx *ctx, struct v4l2_format *f) f 455 drivers/media/platform/coda/coda-common.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) f 457 drivers/media/platform/coda/coda-common.c else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) f 464 drivers/media/platform/coda/coda-common.c if (!ctx->vdoa && f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && f 468 drivers/media/platform/coda/coda-common.c if (formats[i] == f->fmt.pix.pixelformat) { f 469 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = formats[i]; f 475 drivers/media/platform/coda/coda-common.c q_data = get_q_data(ctx, f->type); f 476 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat = q_data->fourcc; f 481 drivers/media/platform/coda/coda-common.c static int coda_try_fmt_vdoa(struct coda_ctx *ctx, struct v4l2_format *f, f 486 drivers/media/platform/coda/coda-common.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) f 497 drivers/media/platform/coda/coda-common.c err = vdoa_context_configure(NULL, round_up(f->fmt.pix.width, 16), f 498 drivers/media/platform/coda/coda-common.c f->fmt.pix.height, f->fmt.pix.pixelformat); f 521 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 527 drivers/media/platform/coda/coda-common.c field = f->fmt.pix.field; f 535 drivers/media/platform/coda/coda-common.c f->fmt.pix.field = field; f 538 drivers/media/platform/coda/coda-common.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, max_w, W_ALIGN, f 539 drivers/media/platform/coda/coda-common.c &f->fmt.pix.height, MIN_H, max_h, H_ALIGN, f 542 drivers/media/platform/coda/coda-common.c switch (f->fmt.pix.pixelformat) { f 550 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); f 551 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 552 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 3 / 2; f 555 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2; f 556 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 557 drivers/media/platform/coda/coda-common.c f->fmt.pix.height; f 560 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); f 561 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 562 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 2; f 568 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = 0; f 569 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = coda_estimate_sizeimage(ctx, f 570 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage, f 571 drivers/media/platform/coda/coda-common.c f->fmt.pix.width, f 572 drivers/media/platform/coda/coda-common.c f->fmt.pix.height); f 582 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 591 drivers/media/platform/coda/coda-common.c ret = coda_try_pixelformat(ctx, f); f 603 drivers/media/platform/coda/coda-common.c f->fmt.pix.width = q_data_src->width; f 604 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = q_data_src->height; f 607 drivers/media/platform/coda/coda-common.c f->fmt.pix.colorspace = ctx->colorspace; f 608 drivers/media/platform/coda/coda-common.c f->fmt.pix.xfer_func = ctx->xfer_func; f 609 drivers/media/platform/coda/coda-common.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 610 drivers/media/platform/coda/coda-common.c f->fmt.pix.quantization = ctx->quantization; f 614 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); f 618 drivers/media/platform/coda/coda-common.c ret = coda_try_fmt(ctx, codec, f); f 624 drivers/media/platform/coda/coda-common.c f->fmt.pix.height = round_up(f->fmt.pix.height, 16); f 625 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16); f 626 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 627 drivers/media/platform/coda/coda-common.c f->fmt.pix.height * 3 / 2; f 629 drivers/media/platform/coda/coda-common.c ret = coda_try_fmt_vdoa(ctx, f, &use_vdoa); f 633 drivers/media/platform/coda/coda-common.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUYV) { f 637 drivers/media/platform/coda/coda-common.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 16) * 2; f 638 drivers/media/platform/coda/coda-common.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f 639 drivers/media/platform/coda/coda-common.c f->fmt.pix.height; f 664 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 672 drivers/media/platform/coda/coda-common.c ret = coda_try_pixelformat(ctx, f); f 676 drivers/media/platform/coda/coda-common.c if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) f 677 drivers/media/platform/coda/coda-common.c coda_set_default_colorspace(&f->fmt.pix); f 680 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(dev, f->fmt.pix.pixelformat, q_data_dst->fourcc); f 682 drivers/media/platform/coda/coda-common.c return coda_try_fmt(ctx, codec, f); f 685 drivers/media/platform/coda/coda-common.c static int coda_s_fmt(struct coda_ctx *ctx, struct v4l2_format *f, f 691 drivers/media/platform/coda/coda-common.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 695 drivers/media/platform/coda/coda-common.c q_data = get_q_data(ctx, f->type); f 701 drivers/media/platform/coda/coda-common.c __func__, v4l2_type_names[f->type], vq->num_buffers); f 705 drivers/media/platform/coda/coda-common.c q_data->fourcc = f->fmt.pix.pixelformat; f 706 drivers/media/platform/coda/coda-common.c q_data->width = f->fmt.pix.width; f 707 drivers/media/platform/coda/coda-common.c q_data->height = f->fmt.pix.height; f 708 drivers/media/platform/coda/coda-common.c q_data->bytesperline = f->fmt.pix.bytesperline; f 709 drivers/media/platform/coda/coda-common.c q_data->sizeimage = f->fmt.pix.sizeimage; f 715 drivers/media/platform/coda/coda-common.c q_data->rect.width = f->fmt.pix.width; f 716 drivers/media/platform/coda/coda-common.c q_data->rect.height = f->fmt.pix.height; f 719 drivers/media/platform/coda/coda-common.c switch (f->fmt.pix.pixelformat) { f 738 drivers/media/platform/coda/coda-common.c !coda_try_fmt_vdoa(ctx, f, &ctx->use_vdoa) && f 741 drivers/media/platform/coda/coda-common.c round_up(f->fmt.pix.width, 16), f 742 drivers/media/platform/coda/coda-common.c f->fmt.pix.height, f 743 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); f 748 drivers/media/platform/coda/coda-common.c v4l2_type_names[f->type], q_data->width, q_data->height, f 756 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 764 drivers/media/platform/coda/coda-common.c ret = coda_try_fmt_vid_cap(file, priv, f); f 774 drivers/media/platform/coda/coda-common.c ret = coda_s_fmt(ctx, f, &r); f 783 drivers/media/platform/coda/coda-common.c f->fmt.pix.pixelformat); f 790 drivers/media/platform/coda/coda-common.c ctx->colorspace = f->fmt.pix.colorspace; f 791 drivers/media/platform/coda/coda-common.c ctx->xfer_func = f->fmt.pix.xfer_func; f 792 drivers/media/platform/coda/coda-common.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; f 793 drivers/media/platform/coda/coda-common.c ctx->quantization = f->fmt.pix.quantization; f 799 drivers/media/platform/coda/coda-common.c struct v4l2_format *f) f 807 drivers/media/platform/coda/coda-common.c ret = coda_try_fmt_vid_out(file, priv, f); f 811 drivers/media/platform/coda/coda-common.c ret = coda_s_fmt(ctx, f, NULL); f 815 drivers/media/platform/coda/coda-common.c ctx->colorspace = f->fmt.pix.colorspace; f 816 drivers/media/platform/coda/coda-common.c ctx->xfer_func = f->fmt.pix.xfer_func; f 817 drivers/media/platform/coda/coda-common.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; f 818 drivers/media/platform/coda/coda-common.c ctx->quantization = f->fmt.pix.quantization; f 824 drivers/media/platform/coda/coda-common.c codec = coda_find_codec(ctx->dev, f->fmt.pix.pixelformat, f 848 drivers/media/platform/coda/coda-common.c f_cap.fmt.pix.width = f->fmt.pix.width; f 849 drivers/media/platform/coda/coda-common.c f_cap.fmt.pix.height = f->fmt.pix.height; f 1191 drivers/media/platform/coda/coda-common.c struct v4l2_frmivalenum *f) f 1196 drivers/media/platform/coda/coda-common.c if (f->index) f 1200 drivers/media/platform/coda/coda-common.c if (!ctx->vdoa && f->pixel_format == V4L2_PIX_FMT_YUYV) f 1204 drivers/media/platform/coda/coda-common.c if (f->pixel_format == ctx->cvd->src_formats[i] || f 1205 drivers/media/platform/coda/coda-common.c f->pixel_format == ctx->cvd->dst_formats[i]) f 1211 drivers/media/platform/coda/coda-common.c f->type = V4L2_FRMIVAL_TYPE_CONTINUOUS; f 1212 drivers/media/platform/coda/coda-common.c f->stepwise.min.numerator = 1; f 1213 drivers/media/platform/coda/coda-common.c f->stepwise.min.denominator = 65535; f 1214 drivers/media/platform/coda/coda-common.c f->stepwise.max.numerator = 65536; f 1215 drivers/media/platform/coda/coda-common.c f->stepwise.max.denominator = 1; f 1216 drivers/media/platform/coda/coda-common.c f->stepwise.step.numerator = 1; f 1217 drivers/media/platform/coda/coda-common.c f->stepwise.step.denominator = 1; f 749 drivers/media/platform/davinci/vpbe_display.c int type, struct v4l2_fract *f) f 759 drivers/media/platform/davinci/vpbe_display.c *f = vpbe_dev->current_timings.aspect; f 923 drivers/media/platform/davinci/vpfe_capture.c struct v4l2_format *f) f 930 drivers/media/platform/davinci/vpfe_capture.c pix_fmts = vpfe_check_format(vpfe_dev, &f->fmt.pix); f 1517 drivers/media/platform/davinci/vpfe_capture.c int type, struct v4l2_fract *f) f 1529 drivers/media/platform/davinci/vpfe_capture.c *f = vpfe_standards[vpfe_dev->std_index].pixelaspect; f 309 drivers/media/platform/exynos-gsc/gsc-core.c int gsc_enum_fmt(struct v4l2_fmtdesc *f) f 313 drivers/media/platform/exynos-gsc/gsc-core.c fmt = find_fmt(NULL, NULL, f->index); f 317 drivers/media/platform/exynos-gsc/gsc-core.c f->pixelformat = fmt->pixelformat; f 390 drivers/media/platform/exynos-gsc/gsc-core.c int gsc_try_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f) f 394 drivers/media/platform/exynos-gsc/gsc-core.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 425 drivers/media/platform/exynos-gsc/gsc-core.c if (V4L2_TYPE_IS_OUTPUT(f->type)) { f 450 drivers/media/platform/exynos-gsc/gsc-core.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 479 drivers/media/platform/exynos-gsc/gsc-core.c int gsc_g_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f) f 485 drivers/media/platform/exynos-gsc/gsc-core.c frame = ctx_get_frame(ctx, f->type); f 489 drivers/media/platform/exynos-gsc/gsc-core.c pix_mp = &f->fmt.pix_mp; f 520 drivers/media/platform/exynos-gsc/gsc-core.c struct gsc_frame *f; f 533 drivers/media/platform/exynos-gsc/gsc-core.c f = &ctx->d_frame; f 535 drivers/media/platform/exynos-gsc/gsc-core.c f = &ctx->s_frame; f 539 drivers/media/platform/exynos-gsc/gsc-core.c max_w = f->f_width; f 540 drivers/media/platform/exynos-gsc/gsc-core.c max_h = f->f_height; f 545 drivers/media/platform/exynos-gsc/gsc-core.c if ((is_yuv422(f->fmt->color) && f->fmt->num_comp == 1) || f 546 drivers/media/platform/exynos-gsc/gsc-core.c is_rgb(f->fmt->color)) f 550 drivers/media/platform/exynos-gsc/gsc-core.c if ((is_yuv422(f->fmt->color) && f->fmt->num_comp == 3) || f 551 drivers/media/platform/exynos-gsc/gsc-core.c is_yuv420(f->fmt->color)) f 556 drivers/media/platform/exynos-gsc/gsc-core.c if (is_yuv420(f->fmt->color) || is_yuv422(f->fmt->color)) f 558 drivers/media/platform/exynos-gsc/gsc-core.c if (is_yuv420(f->fmt->color)) f 562 drivers/media/platform/exynos-gsc/gsc-core.c max_w = f->f_height; f 563 drivers/media/platform/exynos-gsc/gsc-core.c max_h = f->f_width; f 597 drivers/media/platform/exynos-gsc/gsc-core.c if ((is_yuv420(f->fmt->color) || is_yuv422(f->fmt->color)) && f 386 drivers/media/platform/exynos-gsc/gsc-core.h int gsc_enum_fmt(struct v4l2_fmtdesc *f); f 387 drivers/media/platform/exynos-gsc/gsc-core.h int gsc_try_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f); f 389 drivers/media/platform/exynos-gsc/gsc-core.h int gsc_g_fmt_mplane(struct gsc_ctx *ctx, struct v4l2_format *f); f 301 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_fmtdesc *f) f 303 drivers/media/platform/exynos-gsc/gsc-m2m.c return gsc_enum_fmt(f); f 307 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_format *f) f 311 drivers/media/platform/exynos-gsc/gsc-m2m.c return gsc_g_fmt_mplane(ctx, f); f 315 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_format *f) f 319 drivers/media/platform/exynos-gsc/gsc-m2m.c return gsc_try_fmt_mplane(ctx, f); f 323 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_format *f) f 331 drivers/media/platform/exynos-gsc/gsc-m2m.c ret = gsc_m2m_try_fmt_mplane(file, fh, f); f 335 drivers/media/platform/exynos-gsc/gsc-m2m.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 338 drivers/media/platform/exynos-gsc/gsc-m2m.c pr_err("queue (%d) busy", f->type); f 342 drivers/media/platform/exynos-gsc/gsc-m2m.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 347 drivers/media/platform/exynos-gsc/gsc-m2m.c pix = &f->fmt.pix_mp; f 358 drivers/media/platform/exynos-gsc/gsc-m2m.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 182 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f = &cap->ctx->d_frame; f 219 drivers/media/platform/exynos4-is/fimc-capture.c if (f->fmt->mdataplanes && !list_empty(&cap->active_buf_q)) { f 220 drivers/media/platform/exynos4-is/fimc-capture.c unsigned int plane = ffs(f->fmt->mdataplanes) - 1; f 221 drivers/media/platform/exynos4-is/fimc-capture.c unsigned int size = f->payload[plane]; f 733 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_fmtdesc *f) f 738 drivers/media/platform/exynos4-is/fimc-capture.c f->index); f 741 drivers/media/platform/exynos4-is/fimc-capture.c f->pixelformat = fmt->fourcc; f 900 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_format *f) f 904 drivers/media/platform/exynos4-is/fimc-capture.c __fimc_get_format(&fimc->vid_cap.ctx->d_frame, f); f 914 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_format *f, bool try, f 918 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 995 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_format *f) f 1000 drivers/media/platform/exynos4-is/fimc-capture.c return __video_try_or_set_format(fimc, f, true, &inp_fmt, &out_fmt); f 1018 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_format *f) f 1022 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 1030 drivers/media/platform/exynos4-is/fimc-capture.c ret = __video_try_or_set_format(fimc, f, false, &inp_fmt, &ff->fmt); f 1060 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_format *f) f 1064 drivers/media/platform/exynos4-is/fimc-capture.c return __fimc_capture_set_format(fimc, f); f 1270 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f = &ctx->s_frame; f 1278 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1284 drivers/media/platform/exynos4-is/fimc-capture.c s->r.width = f->o_width; f 1285 drivers/media/platform/exynos4-is/fimc-capture.c s->r.height = f->o_height; f 1289 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1292 drivers/media/platform/exynos4-is/fimc-capture.c s->r.left = f->offs_h; f 1293 drivers/media/platform/exynos4-is/fimc-capture.c s->r.top = f->offs_v; f 1294 drivers/media/platform/exynos4-is/fimc-capture.c s->r.width = f->width; f 1295 drivers/media/platform/exynos4-is/fimc-capture.c s->r.height = f->height; f 1321 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f; f 1328 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1330 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->s_frame; f 1346 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_crop(f, s->r.left, s->r.top, s->r.width, f 1602 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f = &ctx->s_frame; f 1613 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1616 drivers/media/platform/exynos4-is/fimc-capture.c r->width = f->o_width; f 1617 drivers/media/platform/exynos4-is/fimc-capture.c r->height = f->o_height; f 1628 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1638 drivers/media/platform/exynos4-is/fimc-capture.c r->left = f->offs_h; f 1639 drivers/media/platform/exynos4-is/fimc-capture.c r->top = f->offs_v; f 1640 drivers/media/platform/exynos4-is/fimc-capture.c r->width = f->width; f 1641 drivers/media/platform/exynos4-is/fimc-capture.c r->height = f->height; f 1646 drivers/media/platform/exynos4-is/fimc-capture.c f->f_width, f->f_height); f 1658 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f = &ctx->s_frame; f 1675 drivers/media/platform/exynos4-is/fimc-capture.c f = &ctx->d_frame; f 1686 drivers/media/platform/exynos4-is/fimc-capture.c set_frame_crop(f, r->left, r->top, r->width, r->height); f 424 drivers/media/platform/exynos4-is/fimc-core.c void fimc_prepare_dma_offset(struct fimc_ctx *ctx, struct fimc_frame *f) f 429 drivers/media/platform/exynos4-is/fimc-core.c for (i = 0; i < f->fmt->memplanes; i++) f 430 drivers/media/platform/exynos4-is/fimc-core.c depth += f->fmt->depth[i]; f 432 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.y_h = f->offs_h; f 434 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.y_h *= (depth >> 3); f 436 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.y_v = f->offs_v; f 438 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cb_h = f->offs_h; f 439 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cb_v = f->offs_v; f 441 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cr_h = f->offs_h; f 442 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cr_v = f->offs_v; f 445 drivers/media/platform/exynos4-is/fimc-core.c if (f->fmt->colplanes == 3) { f 446 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cb_h >>= 1; f 447 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cr_h >>= 1; f 449 drivers/media/platform/exynos4-is/fimc-core.c if (f->fmt->color == FIMC_FMT_YCBCR420) { f 450 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cb_v >>= 1; f 451 drivers/media/platform/exynos4-is/fimc-core.c f->dma_offset.cr_v >>= 1; f 456 drivers/media/platform/exynos4-is/fimc-core.c f->fmt->color, f->dma_offset.y_h, f->dma_offset.y_v); f 674 drivers/media/platform/exynos4-is/fimc-core.c void __fimc_get_format(struct fimc_frame *frame, struct v4l2_format *f) f 676 drivers/media/platform/exynos4-is/fimc-core.c struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; f 504 drivers/media/platform/exynos4-is/fimc-core.h static inline void set_frame_bounds(struct fimc_frame *f, u32 width, u32 height) f 506 drivers/media/platform/exynos4-is/fimc-core.h f->o_width = width; f 507 drivers/media/platform/exynos4-is/fimc-core.h f->o_height = height; f 508 drivers/media/platform/exynos4-is/fimc-core.h f->f_width = width; f 509 drivers/media/platform/exynos4-is/fimc-core.h f->f_height = height; f 512 drivers/media/platform/exynos4-is/fimc-core.h static inline void set_frame_crop(struct fimc_frame *f, f 515 drivers/media/platform/exynos4-is/fimc-core.h f->offs_h = left; f 516 drivers/media/platform/exynos4-is/fimc-core.h f->offs_v = top; f 517 drivers/media/platform/exynos4-is/fimc-core.h f->width = width; f 518 drivers/media/platform/exynos4-is/fimc-core.h f->height = height; f 617 drivers/media/platform/exynos4-is/fimc-core.h struct v4l2_fmtdesc *f); f 622 drivers/media/platform/exynos4-is/fimc-core.h void __fimc_get_format(struct fimc_frame *frame, struct v4l2_format *f); f 635 drivers/media/platform/exynos4-is/fimc-core.h void fimc_prepare_dma_offset(struct fimc_ctx *ctx, struct fimc_frame *f); f 354 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_fmtdesc *f) f 358 drivers/media/platform/exynos4-is/fimc-isp-video.c if (f->index >= FIMC_ISP_NUM_FORMATS) f 361 drivers/media/platform/exynos4-is/fimc-isp-video.c fmt = fimc_isp_find_format(NULL, NULL, f->index); f 365 drivers/media/platform/exynos4-is/fimc-isp-video.c f->pixelformat = fmt->fourcc; f 371 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_format *f) f 375 drivers/media/platform/exynos4-is/fimc-isp-video.c f->fmt.pix_mp = isp->video_capture.pixfmt; f 405 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_format *f) f 409 drivers/media/platform/exynos4-is/fimc-isp-video.c __isp_video_try_fmt(isp, &f->fmt.pix_mp, NULL); f 414 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_format *f) f 418 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; f 127 drivers/media/platform/exynos4-is/fimc-lite-reg.c void flite_hw_set_source_format(struct fimc_lite *dev, struct flite_frame *f) f 129 drivers/media/platform/exynos4-is/fimc-lite-reg.c u32 pixelcode = f->fmt->mbus_code; f 152 drivers/media/platform/exynos4-is/fimc-lite-reg.c cfg |= (f->f_width << 16) | f->f_height; f 158 drivers/media/platform/exynos4-is/fimc-lite-reg.c void flite_hw_set_window_offset(struct fimc_lite *dev, struct flite_frame *f) f 165 drivers/media/platform/exynos4-is/fimc-lite-reg.c cfg |= (f->rect.left << 16) | f->rect.top; f 169 drivers/media/platform/exynos4-is/fimc-lite-reg.c hoff2 = f->f_width - f->rect.width - f->rect.left; f 170 drivers/media/platform/exynos4-is/fimc-lite-reg.c voff2 = f->f_height - f->rect.height - f->rect.top; f 229 drivers/media/platform/exynos4-is/fimc-lite-reg.c static void flite_hw_set_out_order(struct fimc_lite *dev, struct flite_frame *f) f 241 drivers/media/platform/exynos4-is/fimc-lite-reg.c if (pixcode[i][0] == f->fmt->mbus_code) f 247 drivers/media/platform/exynos4-is/fimc-lite-reg.c void flite_hw_set_dma_window(struct fimc_lite *dev, struct flite_frame *f) f 254 drivers/media/platform/exynos4-is/fimc-lite-reg.c cfg |= (f->f_height << 16) | f->f_width; f 260 drivers/media/platform/exynos4-is/fimc-lite-reg.c cfg |= (f->rect.top << 16) | f->rect.left; f 297 drivers/media/platform/exynos4-is/fimc-lite-reg.c void flite_hw_set_output_dma(struct fimc_lite *dev, struct flite_frame *f, f 311 drivers/media/platform/exynos4-is/fimc-lite-reg.c flite_hw_set_out_order(dev, f); f 312 drivers/media/platform/exynos4-is/fimc-lite-reg.c flite_hw_set_dma_window(dev, f); f 139 drivers/media/platform/exynos4-is/fimc-lite-reg.h void flite_hw_set_window_offset(struct fimc_lite *dev, struct flite_frame *f); f 140 drivers/media/platform/exynos4-is/fimc-lite-reg.h void flite_hw_set_source_format(struct fimc_lite *dev, struct flite_frame *f); f 142 drivers/media/platform/exynos4-is/fimc-lite-reg.h void flite_hw_set_output_dma(struct fimc_lite *dev, struct flite_frame *f, f 144 drivers/media/platform/exynos4-is/fimc-lite-reg.h void flite_hw_set_dma_window(struct fimc_lite *dev, struct flite_frame *f); f 655 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_fmtdesc *f) f 659 drivers/media/platform/exynos4-is/fimc-lite.c if (f->index >= ARRAY_SIZE(fimc_lite_formats)) f 662 drivers/media/platform/exynos4-is/fimc-lite.c fmt = &fimc_lite_formats[f->index]; f 663 drivers/media/platform/exynos4-is/fimc-lite.c f->pixelformat = fmt->fourcc; f 669 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_format *f) f 672 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; f 734 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_format *f) f 737 drivers/media/platform/exynos4-is/fimc-lite.c return fimc_lite_try_fmt(fimc, &f->fmt.pix_mp, NULL); f 741 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_format *f) f 743 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; f 752 drivers/media/platform/exynos4-is/fimc-lite.c ret = fimc_lite_try_fmt(fimc, &f->fmt.pix_mp, &fmt); f 888 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_frame *f = &fimc->out_frame; f 898 drivers/media/platform/exynos4-is/fimc-lite.c sel->r.width = f->f_width; f 899 drivers/media/platform/exynos4-is/fimc-lite.c sel->r.height = f->f_height; f 903 drivers/media/platform/exynos4-is/fimc-lite.c sel->r = f->rect; f 914 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_frame *f = &fimc->out_frame; f 934 drivers/media/platform/exynos4-is/fimc-lite.c f->rect = rect; f 1044 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_frame *f = &fimc->inp_frame; f 1053 drivers/media/platform/exynos4-is/fimc-lite.c mf->colorspace = f->fmt->colorspace; f 1054 drivers/media/platform/exynos4-is/fimc-lite.c mf->code = f->fmt->mbus_code; f 1058 drivers/media/platform/exynos4-is/fimc-lite.c mf->width = f->f_width; f 1059 drivers/media/platform/exynos4-is/fimc-lite.c mf->height = f->f_height; f 1062 drivers/media/platform/exynos4-is/fimc-lite.c mf->width = f->rect.width; f 1063 drivers/media/platform/exynos4-is/fimc-lite.c mf->height = f->rect.height; f 1134 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_frame *f = &fimc->inp_frame; f 1148 drivers/media/platform/exynos4-is/fimc-lite.c sel->r = f->rect; f 1152 drivers/media/platform/exynos4-is/fimc-lite.c sel->r.width = f->f_width; f 1153 drivers/media/platform/exynos4-is/fimc-lite.c sel->r.height = f->f_height; f 1158 drivers/media/platform/exynos4-is/fimc-lite.c __func__, f->rect.left, f->rect.top, f->rect.width, f 1159 drivers/media/platform/exynos4-is/fimc-lite.c f->rect.height, f->f_width, f->f_height); f 1169 drivers/media/platform/exynos4-is/fimc-lite.c struct flite_frame *f = &fimc->inp_frame; f 1183 drivers/media/platform/exynos4-is/fimc-lite.c f->rect = sel->r; f 1192 drivers/media/platform/exynos4-is/fimc-lite.c __func__, f->rect.left, f->rect.top, f->rect.width, f 1193 drivers/media/platform/exynos4-is/fimc-lite.c f->rect.height, f->f_width, f->f_height); f 176 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_frame *f; f 179 drivers/media/platform/exynos4-is/fimc-m2m.c f = ctx_get_frame(ctx, vq->type); f 180 drivers/media/platform/exynos4-is/fimc-m2m.c if (IS_ERR(f)) f 181 drivers/media/platform/exynos4-is/fimc-m2m.c return PTR_ERR(f); f 186 drivers/media/platform/exynos4-is/fimc-m2m.c if (!f->fmt) f 189 drivers/media/platform/exynos4-is/fimc-m2m.c *num_planes = f->fmt->memplanes; f 190 drivers/media/platform/exynos4-is/fimc-m2m.c for (i = 0; i < f->fmt->memplanes; i++) f 191 drivers/media/platform/exynos4-is/fimc-m2m.c sizes[i] = f->payload[i]; f 241 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_fmtdesc *f) f 245 drivers/media/platform/exynos4-is/fimc-m2m.c fmt = fimc_find_format(NULL, NULL, get_m2m_fmt_flags(f->type), f 246 drivers/media/platform/exynos4-is/fimc-m2m.c f->index); f 250 drivers/media/platform/exynos4-is/fimc-m2m.c f->pixelformat = fmt->fourcc; f 255 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_format *f) f 258 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_frame *frame = ctx_get_frame(ctx, f->type); f 263 drivers/media/platform/exynos4-is/fimc-m2m.c __fimc_get_format(frame, f); f 267 drivers/media/platform/exynos4-is/fimc-m2m.c static int fimc_try_fmt_mplane(struct fimc_ctx *ctx, struct v4l2_format *f) f 271 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 275 drivers/media/platform/exynos4-is/fimc-m2m.c if (!IS_M2M(f->type)) f 279 drivers/media/platform/exynos4-is/fimc-m2m.c get_m2m_fmt_flags(f->type), 0); f 288 drivers/media/platform/exynos4-is/fimc-m2m.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 309 drivers/media/platform/exynos4-is/fimc-m2m.c fimc_adjust_mplane_format(fmt, pix->width, pix->height, &f->fmt.pix_mp); f 314 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_format *f) f 317 drivers/media/platform/exynos4-is/fimc-m2m.c return fimc_try_fmt_mplane(ctx, f); f 342 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_format *f) f 351 drivers/media/platform/exynos4-is/fimc-m2m.c ret = fimc_try_fmt_mplane(ctx, f); f 355 drivers/media/platform/exynos4-is/fimc-m2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 358 drivers/media/platform/exynos4-is/fimc-m2m.c v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); f 362 drivers/media/platform/exynos4-is/fimc-m2m.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 367 drivers/media/platform/exynos4-is/fimc-m2m.c fmt = fimc_find_format(&f->fmt.pix_mp.pixelformat, NULL, f 368 drivers/media/platform/exynos4-is/fimc-m2m.c get_m2m_fmt_flags(f->type), 0); f 372 drivers/media/platform/exynos4-is/fimc-m2m.c __set_frame_format(frame, fmt, &f->fmt.pix_mp); f 434 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_frame *f; f 444 drivers/media/platform/exynos4-is/fimc-m2m.c f = &ctx->d_frame; f 448 drivers/media/platform/exynos4-is/fimc-m2m.c f = &ctx->s_frame; f 455 drivers/media/platform/exynos4-is/fimc-m2m.c min_size = (f == &ctx->s_frame) ? f 460 drivers/media/platform/exynos4-is/fimc-m2m.c halign = fimc_fmt_is_rgb(f->fmt->color) ? 0 : 1; f 464 drivers/media/platform/exynos4-is/fimc-m2m.c for (i = 0; i < f->fmt->memplanes; i++) f 465 drivers/media/platform/exynos4-is/fimc-m2m.c depth += f->fmt->depth[i]; f 467 drivers/media/platform/exynos4-is/fimc-m2m.c v4l_bound_align_image(&s->r.width, min_size, f->o_width, f 469 drivers/media/platform/exynos4-is/fimc-m2m.c &s->r.height, min_size, f->o_height, f 473 drivers/media/platform/exynos4-is/fimc-m2m.c if (s->r.left + s->r.width > f->o_width) f 474 drivers/media/platform/exynos4-is/fimc-m2m.c s->r.left = f->o_width - s->r.width; f 475 drivers/media/platform/exynos4-is/fimc-m2m.c if (s->r.top + s->r.height > f->o_height) f 476 drivers/media/platform/exynos4-is/fimc-m2m.c s->r.top = f->o_height - s->r.height; f 483 drivers/media/platform/exynos4-is/fimc-m2m.c f->f_width, f->f_height); f 493 drivers/media/platform/exynos4-is/fimc-m2m.c struct fimc_frame *f; f 500 drivers/media/platform/exynos4-is/fimc-m2m.c f = (s->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? f 518 drivers/media/platform/exynos4-is/fimc-m2m.c f->offs_h = s->r.left; f 519 drivers/media/platform/exynos4-is/fimc-m2m.c f->offs_v = s->r.top; f 520 drivers/media/platform/exynos4-is/fimc-m2m.c f->width = s->r.width; f 521 drivers/media/platform/exynos4-is/fimc-m2m.c f->height = s->r.height; f 602 drivers/media/platform/exynos4-is/fimc-reg.c struct fimc_frame *f = &vc->ctx->s_frame; f 632 drivers/media/platform/exynos4-is/fimc-reg.c if (fimc_fmt_is_user_defined(f->fmt->color)) f 641 drivers/media/platform/exynos4-is/fimc-reg.c cfg |= (f->o_width << 16) | f->o_height; f 646 drivers/media/platform/exynos4-is/fimc-reg.c void fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f) f 654 drivers/media/platform/exynos4-is/fimc-reg.c (f->offs_h << 16) | f->offs_v; f 659 drivers/media/platform/exynos4-is/fimc-reg.c hoff2 = f->o_width - f->width - f->offs_h; f 660 drivers/media/platform/exynos4-is/fimc-reg.c voff2 = f->o_height - f->height - f->offs_v; f 310 drivers/media/platform/exynos4-is/fimc-reg.h void fimc_hw_set_camera_offset(struct fimc_dev *fimc, struct fimc_frame *f); f 570 drivers/media/platform/fsl-viu.c struct v4l2_fmtdesc *f) f 572 drivers/media/platform/fsl-viu.c int index = f->index; f 574 drivers/media/platform/fsl-viu.c if (f->index >= NUM_FORMATS) f 577 drivers/media/platform/fsl-viu.c f->pixelformat = formats[index].fourcc; f 582 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 586 drivers/media/platform/fsl-viu.c f->fmt.pix.width = fh->width; f 587 drivers/media/platform/fsl-viu.c f->fmt.pix.height = fh->height; f 588 drivers/media/platform/fsl-viu.c f->fmt.pix.field = fh->vb_vidq.field; f 589 drivers/media/platform/fsl-viu.c f->fmt.pix.pixelformat = fh->fmt->pixelformat; f 590 drivers/media/platform/fsl-viu.c f->fmt.pix.bytesperline = f 591 drivers/media/platform/fsl-viu.c (f->fmt.pix.width * fh->fmt->depth) >> 3; f 592 drivers/media/platform/fsl-viu.c f->fmt.pix.sizeimage = fh->sizeimage; f 593 drivers/media/platform/fsl-viu.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 598 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 603 drivers/media/platform/fsl-viu.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 606 drivers/media/platform/fsl-viu.c f->fmt.pix.pixelformat); f 613 drivers/media/platform/fsl-viu.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 614 drivers/media/platform/fsl-viu.c if (f->fmt.pix.height < 32) f 615 drivers/media/platform/fsl-viu.c f->fmt.pix.height = 32; f 616 drivers/media/platform/fsl-viu.c if (f->fmt.pix.height > maxh) f 617 drivers/media/platform/fsl-viu.c f->fmt.pix.height = maxh; f 618 drivers/media/platform/fsl-viu.c if (f->fmt.pix.width < 48) f 619 drivers/media/platform/fsl-viu.c f->fmt.pix.width = 48; f 620 drivers/media/platform/fsl-viu.c if (f->fmt.pix.width > maxw) f 621 drivers/media/platform/fsl-viu.c f->fmt.pix.width = maxw; f 622 drivers/media/platform/fsl-viu.c f->fmt.pix.width &= ~0x03; f 623 drivers/media/platform/fsl-viu.c f->fmt.pix.bytesperline = f 624 drivers/media/platform/fsl-viu.c (f->fmt.pix.width * fmt->depth) >> 3; f 625 drivers/media/platform/fsl-viu.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 626 drivers/media/platform/fsl-viu.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 632 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 637 drivers/media/platform/fsl-viu.c ret = vidioc_try_fmt_cap(file, fh, f); f 641 drivers/media/platform/fsl-viu.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 642 drivers/media/platform/fsl-viu.c fh->width = f->fmt.pix.width; f 643 drivers/media/platform/fsl-viu.c fh->height = f->fmt.pix.height; f 644 drivers/media/platform/fsl-viu.c fh->sizeimage = f->fmt.pix.sizeimage; f 645 drivers/media/platform/fsl-viu.c fh->vb_vidq.field = f->fmt.pix.field; f 646 drivers/media/platform/fsl-viu.c fh->type = f->type; f 651 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 655 drivers/media/platform/fsl-viu.c f->fmt.win = fh->win; f 749 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 756 drivers/media/platform/fsl-viu.c err = verify_preview(dev, &f->fmt.win); f 760 drivers/media/platform/fsl-viu.c fh->win = f->fmt.win; f 769 drivers/media/platform/fsl-viu.c struct v4l2_format *f) f 895 drivers/media/platform/fsl-viu.c #define decoder_call(viu, o, f, args...) \ f 896 drivers/media/platform/fsl-viu.c v4l2_subdev_call(viu->decoder, o, f, ##args) f 171 drivers/media/platform/imx-pxp.c static struct pxp_fmt *find_format(struct v4l2_format *f) f 178 drivers/media/platform/imx-pxp.c if (fmt->fourcc == f->fmt.pix.pixelformat) f 1035 drivers/media/platform/imx-pxp.c static int pxp_enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 1045 drivers/media/platform/imx-pxp.c if (num == f->index) f 1058 drivers/media/platform/imx-pxp.c f->pixelformat = fmt->fourcc; f 1067 drivers/media/platform/imx-pxp.c struct v4l2_fmtdesc *f) f 1069 drivers/media/platform/imx-pxp.c return pxp_enum_fmt(f, MEM2MEM_CAPTURE); f 1073 drivers/media/platform/imx-pxp.c struct v4l2_fmtdesc *f) f 1075 drivers/media/platform/imx-pxp.c return pxp_enum_fmt(f, MEM2MEM_OUTPUT); f 1078 drivers/media/platform/imx-pxp.c static int pxp_g_fmt(struct pxp_ctx *ctx, struct v4l2_format *f) f 1083 drivers/media/platform/imx-pxp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 1087 drivers/media/platform/imx-pxp.c q_data = get_q_data(ctx, f->type); f 1089 drivers/media/platform/imx-pxp.c f->fmt.pix.width = q_data->width; f 1090 drivers/media/platform/imx-pxp.c f->fmt.pix.height = q_data->height; f 1091 drivers/media/platform/imx-pxp.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1092 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; f 1093 drivers/media/platform/imx-pxp.c f->fmt.pix.bytesperline = q_data->bytesperline; f 1094 drivers/media/platform/imx-pxp.c f->fmt.pix.sizeimage = q_data->sizeimage; f 1095 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = ctx->colorspace; f 1096 drivers/media/platform/imx-pxp.c f->fmt.pix.xfer_func = ctx->xfer_func; f 1097 drivers/media/platform/imx-pxp.c f->fmt.pix.ycbcr_enc = q_data->ycbcr_enc; f 1098 drivers/media/platform/imx-pxp.c f->fmt.pix.quantization = q_data->quant; f 1104 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1106 drivers/media/platform/imx-pxp.c return pxp_g_fmt(file2ctx(file), f); f 1110 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1112 drivers/media/platform/imx-pxp.c return pxp_g_fmt(file2ctx(file), f); f 1135 drivers/media/platform/imx-pxp.c static int pxp_try_fmt(struct v4l2_format *f, struct pxp_fmt *fmt) f 1137 drivers/media/platform/imx-pxp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, ALIGN_W, f 1138 drivers/media/platform/imx-pxp.c &f->fmt.pix.height, MIN_H, MAX_H, ALIGN_H, 0); f 1140 drivers/media/platform/imx-pxp.c f->fmt.pix.bytesperline = pxp_bytesperline(fmt, f->fmt.pix.width); f 1141 drivers/media/platform/imx-pxp.c f->fmt.pix.sizeimage = pxp_sizeimage(fmt, f->fmt.pix.width, f 1142 drivers/media/platform/imx-pxp.c f->fmt.pix.height); f 1143 drivers/media/platform/imx-pxp.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1172 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1177 drivers/media/platform/imx-pxp.c fmt = find_format(f); f 1179 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = formats[0].fourcc; f 1180 drivers/media/platform/imx-pxp.c fmt = find_format(f); f 1185 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat); f 1189 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = ctx->colorspace; f 1190 drivers/media/platform/imx-pxp.c f->fmt.pix.xfer_func = ctx->xfer_func; f 1193 drivers/media/platform/imx-pxp.c &f->fmt.pix.ycbcr_enc, f 1194 drivers/media/platform/imx-pxp.c &f->fmt.pix.quantization); f 1196 drivers/media/platform/imx-pxp.c return pxp_try_fmt(f, fmt); f 1200 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1205 drivers/media/platform/imx-pxp.c fmt = find_format(f); f 1207 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat = formats[0].fourcc; f 1208 drivers/media/platform/imx-pxp.c fmt = find_format(f); f 1213 drivers/media/platform/imx-pxp.c f->fmt.pix.pixelformat); f 1217 drivers/media/platform/imx-pxp.c if (!f->fmt.pix.colorspace) f 1218 drivers/media/platform/imx-pxp.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f 1220 drivers/media/platform/imx-pxp.c return pxp_try_fmt(f, fmt); f 1223 drivers/media/platform/imx-pxp.c static int pxp_s_fmt(struct pxp_ctx *ctx, struct v4l2_format *f) f 1228 drivers/media/platform/imx-pxp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 1232 drivers/media/platform/imx-pxp.c q_data = get_q_data(ctx, f->type); f 1241 drivers/media/platform/imx-pxp.c q_data->fmt = find_format(f); f 1242 drivers/media/platform/imx-pxp.c q_data->width = f->fmt.pix.width; f 1243 drivers/media/platform/imx-pxp.c q_data->height = f->fmt.pix.height; f 1244 drivers/media/platform/imx-pxp.c q_data->bytesperline = f->fmt.pix.bytesperline; f 1245 drivers/media/platform/imx-pxp.c q_data->sizeimage = f->fmt.pix.sizeimage; f 1249 drivers/media/platform/imx-pxp.c f->type, q_data->width, q_data->height, q_data->fmt->fourcc); f 1255 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1260 drivers/media/platform/imx-pxp.c ret = pxp_try_fmt_vid_cap(file, priv, f); f 1264 drivers/media/platform/imx-pxp.c ret = pxp_s_fmt(file2ctx(file), f); f 1268 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_DST].ycbcr_enc = f->fmt.pix.ycbcr_enc; f 1269 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_DST].quant = f->fmt.pix.quantization; f 1275 drivers/media/platform/imx-pxp.c struct v4l2_format *f) f 1280 drivers/media/platform/imx-pxp.c ret = pxp_try_fmt_vid_out(file, priv, f); f 1284 drivers/media/platform/imx-pxp.c ret = pxp_s_fmt(file2ctx(file), f); f 1288 drivers/media/platform/imx-pxp.c ctx->colorspace = f->fmt.pix.colorspace; f 1289 drivers/media/platform/imx-pxp.c ctx->xfer_func = f->fmt.pix.xfer_func; f 1290 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_SRC].ycbcr_enc = f->fmt.pix.ycbcr_enc; f 1291 drivers/media/platform/imx-pxp.c ctx->q_data[V4L2_M2M_SRC].quant = f->fmt.pix.quantization; f 103 drivers/media/platform/m2m-deinterlace.c static struct deinterlace_fmt *find_format(struct v4l2_format *f) f 110 drivers/media/platform/m2m-deinterlace.c if ((fmt->types & f->type) && f 111 drivers/media/platform/m2m-deinterlace.c (fmt->fourcc == f->fmt.pix.pixelformat)) f 440 drivers/media/platform/m2m-deinterlace.c static int enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 450 drivers/media/platform/m2m-deinterlace.c if (num == f->index) f 461 drivers/media/platform/m2m-deinterlace.c f->pixelformat = fmt->fourcc; f 470 drivers/media/platform/m2m-deinterlace.c struct v4l2_fmtdesc *f) f 472 drivers/media/platform/m2m-deinterlace.c return enum_fmt(f, MEM2MEM_CAPTURE); f 476 drivers/media/platform/m2m-deinterlace.c struct v4l2_fmtdesc *f) f 478 drivers/media/platform/m2m-deinterlace.c return enum_fmt(f, MEM2MEM_OUTPUT); f 481 drivers/media/platform/m2m-deinterlace.c static int vidioc_g_fmt(struct deinterlace_ctx *ctx, struct v4l2_format *f) f 486 drivers/media/platform/m2m-deinterlace.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 490 drivers/media/platform/m2m-deinterlace.c q_data = get_q_data(f->type); f 492 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.width = q_data->width; f 493 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.height = q_data->height; f 494 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = q_data->field; f 495 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; f 499 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = q_data->width * 3 / 2; f 503 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = q_data->width * 2; f 506 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.sizeimage = q_data->sizeimage; f 507 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = ctx->colorspace; f 513 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 515 drivers/media/platform/m2m-deinterlace.c return vidioc_g_fmt(priv, f); f 519 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 521 drivers/media/platform/m2m-deinterlace.c return vidioc_g_fmt(priv, f); f 524 drivers/media/platform/m2m-deinterlace.c static int vidioc_try_fmt(struct v4l2_format *f, struct deinterlace_fmt *fmt) f 526 drivers/media/platform/m2m-deinterlace.c switch (f->fmt.pix.pixelformat) { f 528 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; f 532 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 534 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 540 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 545 drivers/media/platform/m2m-deinterlace.c fmt = find_format(f); f 547 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; f 549 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = ctx->colorspace; f 551 drivers/media/platform/m2m-deinterlace.c if (f->fmt.pix.field != V4L2_FIELD_INTERLACED_TB && f 552 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_INTERLACED_BT && f 553 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_NONE) f 554 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; f 556 drivers/media/platform/m2m-deinterlace.c return vidioc_try_fmt(f, fmt); f 560 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 564 drivers/media/platform/m2m-deinterlace.c fmt = find_format(f); f 566 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; f 568 drivers/media/platform/m2m-deinterlace.c if (!f->fmt.pix.colorspace) f 569 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f 571 drivers/media/platform/m2m-deinterlace.c if (f->fmt.pix.field != V4L2_FIELD_SEQ_TB && f 572 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field != V4L2_FIELD_SEQ_BT) f 573 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.field = V4L2_FIELD_SEQ_TB; f 575 drivers/media/platform/m2m-deinterlace.c return vidioc_try_fmt(f, fmt); f 578 drivers/media/platform/m2m-deinterlace.c static int vidioc_s_fmt(struct deinterlace_ctx *ctx, struct v4l2_format *f) f 583 drivers/media/platform/m2m-deinterlace.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 587 drivers/media/platform/m2m-deinterlace.c q_data = get_q_data(f->type); f 596 drivers/media/platform/m2m-deinterlace.c q_data->fmt = find_format(f); f 600 drivers/media/platform/m2m-deinterlace.c f->type, f->fmt.pix.width, f->fmt.pix.height, f 601 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.pixelformat, f->fmt.pix.field); f 605 drivers/media/platform/m2m-deinterlace.c q_data->width = f->fmt.pix.width; f 606 drivers/media/platform/m2m-deinterlace.c q_data->height = f->fmt.pix.height; f 607 drivers/media/platform/m2m-deinterlace.c q_data->field = f->fmt.pix.field; f 609 drivers/media/platform/m2m-deinterlace.c switch (f->fmt.pix.pixelformat) { f 611 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; f 616 drivers/media/platform/m2m-deinterlace.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 622 drivers/media/platform/m2m-deinterlace.c f->type, q_data->width, q_data->height, q_data->fmt->fourcc, f 629 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 633 drivers/media/platform/m2m-deinterlace.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 636 drivers/media/platform/m2m-deinterlace.c return vidioc_s_fmt(priv, f); f 640 drivers/media/platform/m2m-deinterlace.c struct v4l2_format *f) f 645 drivers/media/platform/m2m-deinterlace.c ret = vidioc_try_fmt_vid_out(file, priv, f); f 649 drivers/media/platform/m2m-deinterlace.c ret = vidioc_s_fmt(priv, f); f 651 drivers/media/platform/m2m-deinterlace.c ctx->colorspace = f->fmt.pix.colorspace; f 94 drivers/media/platform/marvell-ccic/mcam-core.c #define sensor_call(cam, o, f, args...) \ f 95 drivers/media/platform/marvell-ccic/mcam-core.c v4l2_subdev_call(cam->sensor, o, f, ##args) f 317 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_format_struct *f; f 319 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(pfmt); f 320 drivers/media/platform/marvell-ccic/mcam-core.c return f->planar; f 1369 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_format_struct *f; f 1377 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(pix->pixelformat); f 1378 drivers/media/platform/marvell-ccic/mcam-core.c pix->pixelformat = f->pixelformat; f 1379 drivers/media/platform/marvell-ccic/mcam-core.c v4l2_fill_mbus_format(&format.format, pix, f->mbus_code); f 1382 drivers/media/platform/marvell-ccic/mcam-core.c pix->bytesperline = pix->width * f->bpp; f 1383 drivers/media/platform/marvell-ccic/mcam-core.c switch (f->pixelformat) { f 1400 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_format_struct *f; f 1410 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(fmt->fmt.pix.pixelformat); f 1423 drivers/media/platform/marvell-ccic/mcam-core.c cam->mbus_code = f->mbus_code; f 1444 drivers/media/platform/marvell-ccic/mcam-core.c struct v4l2_format *f) f 1448 drivers/media/platform/marvell-ccic/mcam-core.c f->fmt.pix = cam->pix_format; f 1509 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_format_struct *f; f 1516 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(sizes->pixel_format); f 1517 drivers/media/platform/marvell-ccic/mcam-core.c if (f->pixelformat != sizes->pixel_format) f 1519 drivers/media/platform/marvell-ccic/mcam-core.c fse.code = f->mbus_code; f 1544 drivers/media/platform/marvell-ccic/mcam-core.c struct mcam_format_struct *f; f 1553 drivers/media/platform/marvell-ccic/mcam-core.c f = mcam_find_format(interval->pixel_format); f 1554 drivers/media/platform/marvell-ccic/mcam-core.c if (f->pixelformat != interval->pixel_format) f 1556 drivers/media/platform/marvell-ccic/mcam-core.c fie.code = f->mbus_code; f 98 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_fmtdesc *f, u32 type) f 104 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c if (num == f->index) f 113 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f->pixelformat = mtk_jpeg_formats[i].fourcc; f 119 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_fmtdesc *f) f 121 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_enum_fmt(mtk_jpeg_formats, MTK_JPEG_NUM_FORMATS, f, f 126 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_fmtdesc *f) f 128 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_enum_fmt(mtk_jpeg_formats, MTK_JPEG_NUM_FORMATS, f, f 180 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 182 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 186 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c q_data = mtk_jpeg_get_q_data(ctx, f->type); f 199 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c static int mtk_jpeg_try_fmt_mplane(struct v4l2_format *f, f 203 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 211 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c mtk_jpeg_adjust_fmt_mplane(ctx, f); f 264 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 268 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 273 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 277 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c q_data = mtk_jpeg_get_q_data(ctx, f->type); f 291 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f->type, f 315 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 320 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c fmt = mtk_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat, f 326 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f->type, f 332 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_try_fmt_mplane(f, fmt, ctx, MTK_JPEG_FMT_TYPE_CAPTURE); f 336 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 341 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c fmt = mtk_jpeg_find_format(ctx, f->fmt.pix_mp.pixelformat, f 347 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f->type, f 353 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_try_fmt_mplane(f, fmt, ctx, MTK_JPEG_FMT_TYPE_OUTPUT); f 357 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 361 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 366 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 370 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c q_data = mtk_jpeg_get_q_data(ctx, f->type); f 377 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f_type = V4L2_TYPE_IS_OUTPUT(f->type) ? f 389 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c f->type, f 409 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 413 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c ret = mtk_jpeg_try_fmt_vid_out_mplane(file, priv, f); f 417 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f); f 421 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_format *f) f 425 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c ret = mtk_jpeg_try_fmt_vid_cap_mplane(file, priv, f); f 429 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c return mtk_jpeg_s_fmt_mplane(mtk_jpeg_fh_to_ctx(priv), f); f 174 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_format *f) f 178 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 184 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c fmt = mtk_mdp_find_fmt(pix_mp->pixelformat, f->type); f 186 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c fmt = mtk_mdp_find_fmt_by_index(0, f->type); f 196 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (!V4L2_TYPE_IS_OUTPUT(f->type)) { f 216 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (V4L2_TYPE_IS_OUTPUT(f->type)) { f 225 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c ctx->id, f->type, pix_mp->width, pix_mp->height, f 615 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c static int mtk_mdp_enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 619 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c fmt = mtk_mdp_find_fmt_by_index(f->index, type); f 623 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c f->pixelformat = fmt->pixelformat; f 629 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_fmtdesc *f) f 631 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c return mtk_mdp_enum_fmt(f, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); f 635 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_fmtdesc *f) f 637 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c return mtk_mdp_enum_fmt(f, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE); f 641 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_format *f) f 648 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mtk_mdp_dbg(2, "[%d] type:%d", ctx->id, f->type); f 650 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c frame = mtk_mdp_ctx_get_frame(ctx, f->type); f 651 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c pix_mp = &f->fmt.pix_mp; f 680 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_format *f) f 684 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (!mtk_mdp_try_fmt_mplane(ctx, f)) f 690 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_format *f) f 699 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mtk_mdp_dbg(2, "[%d] type:%d", ctx->id, f->type); f 701 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c frame = mtk_mdp_ctx_get_frame(ctx, f->type); f 702 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c fmt = mtk_mdp_try_fmt_mplane(ctx, f); f 704 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mtk_mdp_err("[%d] try_fmt failed, type:%d", ctx->id, f->type); f 709 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 711 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c dev_info(&ctx->mdp_dev->pdev->dev, "queue %d busy", f->type); f 715 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c pix_mp = &f->fmt.pix_mp; f 722 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (V4L2_TYPE_IS_OUTPUT(f->type)) { f 729 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 734 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c mtk_mdp_dbg(2, "[%d] type:%d, frame:%dx%d", ctx->id, f->type, f 74 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static const struct mtk_video_fmt *mtk_vdec_find_format(struct v4l2_format *f) f 81 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (fmt->fourcc == f->fmt.pix_mp.pixelformat) f 652 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static int vidioc_try_fmt(struct v4l2_format *f, f 655 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 660 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 663 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 724 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_format *f) f 728 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 730 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; f 731 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 734 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return vidioc_try_fmt(f, fmt); f 738 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_format *f) f 740 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 743 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 745 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; f 746 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 754 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return vidioc_try_fmt(f, fmt); f 829 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_format *f) f 839 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c q_data = mtk_vdec_get_q_data(ctx, f->type); f 843 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c pix_mp = &f->fmt.pix_mp; f 844 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if ((f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) && f 850 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if ((f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) && f 856 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 858 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 859 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = f 861 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 862 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 863 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->fmt.pix.pixelformat = f 865 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c fmt = mtk_vdec_find_format(f); f 870 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c vidioc_try_fmt(f, q_data->fmt); f 871 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 876 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->colorspace = f->fmt.pix_mp.colorspace; f 877 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; f 878 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->quantization = f->fmt.pix_mp.quantization; f 879 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->xfer_func = f->fmt.pix_mp.xfer_func; f 932 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c static int vidioc_enum_fmt(struct v4l2_fmtdesc *f, bool output_queue) f 944 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if (j == f->index) f 953 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->pixelformat = fmt->fourcc; f 954 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c f->flags = fmt->flags; f 960 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_fmtdesc *f) f 962 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return vidioc_enum_fmt(f, false); f 966 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_fmtdesc *f) f 968 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c return vidioc_enum_fmt(f, true); f 972 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_format *f) f 975 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 979 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 981 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c mtk_v4l2_err("no vb2 queue for type=%d", f->type); f 985 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c q_data = mtk_vdec_get_q_data(ctx, f->type); f 993 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c if ((f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) && f 1029 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 1053 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c ctx->id, f->type, ctx->state); f 159 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static int vidioc_enum_fmt(struct v4l2_fmtdesc *f, bool output_queue) f 170 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (j == f->index) { f 172 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->pixelformat = fmt->fourcc; f 173 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c memset(f->reserved, 0, sizeof(f->reserved)); f 203 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_fmtdesc *f) f 205 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c return vidioc_enum_fmt(f, false); f 209 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_fmtdesc *f) f 211 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c return vidioc_enum_fmt(f, true); f 269 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static const struct mtk_video_fmt *mtk_venc_find_format(struct v4l2_format *f) f 276 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (fmt->fourcc == f->fmt.pix.pixelformat) f 286 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c static int vidioc_try_fmt(struct v4l2_format *f, f 289 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 294 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 297 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 417 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_format *f) f 425 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 436 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data = mtk_venc_get_q_data(ctx, f->type); f 442 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 444 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; f 445 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 449 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ret = vidioc_try_fmt(f, q_data->fmt); f 453 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->coded_width = f->fmt.pix_mp.width; f 454 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->coded_height = f->fmt.pix_mp.height; f 455 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->field = f->fmt.pix_mp.field; f 457 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { f 460 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; f 479 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_format *f) f 486 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 488 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 499 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data = mtk_venc_get_q_data(ctx, f->type); f 505 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 507 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; f 508 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 518 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->visible_width = f->fmt.pix_mp.width; f 519 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->visible_height = f->fmt.pix_mp.height; f 521 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ret = vidioc_try_fmt(f, q_data->fmt); f 525 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->coded_width = f->fmt.pix_mp.width; f 526 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->coded_height = f->fmt.pix_mp.height; f 528 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data->field = f->fmt.pix_mp.field; f 529 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->colorspace = f->fmt.pix_mp.colorspace; f 530 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->ycbcr_enc = f->fmt.pix_mp.ycbcr_enc; f 531 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->quantization = f->fmt.pix_mp.quantization; f 532 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c ctx->xfer_func = f->fmt.pix_mp.xfer_func; f 534 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c for (i = 0; i < f->fmt.pix_mp.num_planes; i++) { f 537 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c plane_fmt = &f->fmt.pix_mp.plane_fmt[i]; f 546 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_format *f) f 548 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 554 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c vq = v4l2_m2m_get_vq(ctx->m2m_ctx, f->type); f 558 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c q_data = mtk_venc_get_q_data(ctx, f->type); f 582 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_format *f) f 587 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 589 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[CAP_FMT_IDX].fourcc; f 590 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 592 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.colorspace = ctx->colorspace; f 593 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.ycbcr_enc = ctx->ycbcr_enc; f 594 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.quantization = ctx->quantization; f 595 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.xfer_func = ctx->xfer_func; f 597 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c return vidioc_try_fmt(f, fmt); f 601 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_format *f) f 605 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 607 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix.pixelformat = mtk_video_formats[OUT_FMT_IDX].fourcc; f 608 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c fmt = mtk_venc_find_format(f); f 610 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c if (!f->fmt.pix_mp.colorspace) { f 611 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.colorspace = V4L2_COLORSPACE_REC709; f 612 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; f 613 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.quantization = V4L2_QUANTIZATION_DEFAULT; f 614 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c f->fmt.pix_mp.xfer_func = V4L2_XFER_FUNC_DEFAULT; f 617 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c return vidioc_try_fmt(f, fmt); f 179 drivers/media/platform/mx2_emmaprp.c static struct emmaprp_fmt *find_format(struct v4l2_format *f) f 186 drivers/media/platform/mx2_emmaprp.c if (fmt->fourcc == f->fmt.pix.pixelformat) f 386 drivers/media/platform/mx2_emmaprp.c static int enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 396 drivers/media/platform/mx2_emmaprp.c if (num == f->index) f 407 drivers/media/platform/mx2_emmaprp.c f->pixelformat = fmt->fourcc; f 416 drivers/media/platform/mx2_emmaprp.c struct v4l2_fmtdesc *f) f 418 drivers/media/platform/mx2_emmaprp.c return enum_fmt(f, MEM2MEM_CAPTURE); f 422 drivers/media/platform/mx2_emmaprp.c struct v4l2_fmtdesc *f) f 424 drivers/media/platform/mx2_emmaprp.c return enum_fmt(f, MEM2MEM_OUTPUT); f 427 drivers/media/platform/mx2_emmaprp.c static int vidioc_g_fmt(struct emmaprp_ctx *ctx, struct v4l2_format *f) f 432 drivers/media/platform/mx2_emmaprp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 436 drivers/media/platform/mx2_emmaprp.c q_data = get_q_data(ctx, f->type); f 438 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.width = q_data->width; f 439 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.height = q_data->height; f 440 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.field = V4L2_FIELD_NONE; f 441 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; f 442 drivers/media/platform/mx2_emmaprp.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) f 443 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = q_data->width * 3 / 2; f 445 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = q_data->width * 2; f 446 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.sizeimage = q_data->sizeimage; f 452 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 454 drivers/media/platform/mx2_emmaprp.c return vidioc_g_fmt(priv, f); f 458 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 460 drivers/media/platform/mx2_emmaprp.c return vidioc_g_fmt(priv, f); f 463 drivers/media/platform/mx2_emmaprp.c static int vidioc_try_fmt(struct v4l2_format *f) f 468 drivers/media/platform/mx2_emmaprp.c if (!find_format(f)) f 471 drivers/media/platform/mx2_emmaprp.c field = f->fmt.pix.field; f 479 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.field = field; f 481 drivers/media/platform/mx2_emmaprp.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_YUV420) { f 482 drivers/media/platform/mx2_emmaprp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, f 483 drivers/media/platform/mx2_emmaprp.c W_ALIGN_YUV420, &f->fmt.pix.height, f 485 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; f 487 drivers/media/platform/mx2_emmaprp.c v4l_bound_align_image(&f->fmt.pix.width, MIN_W, MAX_W, f 488 drivers/media/platform/mx2_emmaprp.c W_ALIGN_OTHERS, &f->fmt.pix.height, f 490 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 492 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 498 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 503 drivers/media/platform/mx2_emmaprp.c fmt = find_format(f); f 507 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat); f 511 drivers/media/platform/mx2_emmaprp.c return vidioc_try_fmt(f); f 515 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 520 drivers/media/platform/mx2_emmaprp.c fmt = find_format(f); f 524 drivers/media/platform/mx2_emmaprp.c f->fmt.pix.pixelformat); f 528 drivers/media/platform/mx2_emmaprp.c return vidioc_try_fmt(f); f 531 drivers/media/platform/mx2_emmaprp.c static int vidioc_s_fmt(struct emmaprp_ctx *ctx, struct v4l2_format *f) f 537 drivers/media/platform/mx2_emmaprp.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 541 drivers/media/platform/mx2_emmaprp.c q_data = get_q_data(ctx, f->type); f 550 drivers/media/platform/mx2_emmaprp.c ret = vidioc_try_fmt(f); f 554 drivers/media/platform/mx2_emmaprp.c q_data->fmt = find_format(f); f 555 drivers/media/platform/mx2_emmaprp.c q_data->width = f->fmt.pix.width; f 556 drivers/media/platform/mx2_emmaprp.c q_data->height = f->fmt.pix.height; f 564 drivers/media/platform/mx2_emmaprp.c f->type, q_data->width, q_data->height, q_data->fmt->fourcc); f 570 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 574 drivers/media/platform/mx2_emmaprp.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 578 drivers/media/platform/mx2_emmaprp.c return vidioc_s_fmt(priv, f); f 582 drivers/media/platform/mx2_emmaprp.c struct v4l2_format *f) f 586 drivers/media/platform/mx2_emmaprp.c ret = vidioc_try_fmt_vid_out(file, priv, f); f 590 drivers/media/platform/mx2_emmaprp.c return vidioc_s_fmt(priv, f); f 597 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 601 drivers/media/platform/omap/omap_vout.c f->fmt.pix = vout->pix; f 607 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 628 drivers/media/platform/omap/omap_vout.c omap_vout_try_format(&f->fmt.pix); f 633 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 659 drivers/media/platform/omap/omap_vout.c f->fmt.pix.pixelformat == V4L2_PIX_FMT_RGB24) { f 676 drivers/media/platform/omap/omap_vout.c bpp = omap_vout_try_format(&f->fmt.pix); f 677 drivers/media/platform/omap/omap_vout.c f->fmt.pix.sizeimage = f->fmt.pix.width * f->fmt.pix.height * bpp; f 681 drivers/media/platform/omap/omap_vout.c vout->pix = f->fmt.pix; f 699 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 705 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; f 719 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 725 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; f 766 drivers/media/platform/omap/omap_vout.c struct v4l2_format *f) f 771 drivers/media/platform/omap/omap_vout.c struct v4l2_window *win = &f->fmt.win; f 176 drivers/media/platform/pxa_camera.c #define sensor_call(cam, o, f, args...) \ f 177 drivers/media/platform/pxa_camera.c v4l2_subdev_call(cam->sensor, o, f, ##args) f 1843 drivers/media/platform/pxa_camera.c struct v4l2_fmtdesc *f) f 1850 drivers/media/platform/pxa_camera.c if (f->index >= idx) f 1853 drivers/media/platform/pxa_camera.c format = pcdev->user_formats[f->index].host_fmt; f 1854 drivers/media/platform/pxa_camera.c f->pixelformat = format->fourcc; f 1859 drivers/media/platform/pxa_camera.c struct v4l2_format *f) f 1862 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1877 drivers/media/platform/pxa_camera.c struct v4l2_format *f) f 1881 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1941 drivers/media/platform/pxa_camera.c struct v4l2_format *f) f 1945 drivers/media/platform/pxa_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1963 drivers/media/platform/pxa_camera.c ret = pxac_vidioc_try_fmt_vid_cap(filp, priv, f); f 479 drivers/media/platform/qcom/camss/camss-csid.c const struct csid_format *f = csid_get_fmt_entry( f 484 drivers/media/platform/qcom/camss/camss-csid.c u64 min_rate = pixel_clock * f->bpp / f 646 drivers/media/platform/qcom/camss/camss-csid.c struct v4l2_mbus_framefmt *f = f 649 drivers/media/platform/qcom/camss/camss-csid.c csid->formats, csid->nformats, f->code); f 651 drivers/media/platform/qcom/camss/camss-csid.c f->width * format->bpp * format->spp / 8; f 652 drivers/media/platform/qcom/camss/camss-csid.c u32 num_lines = f->height; f 681 drivers/media/platform/qcom/camss/camss-csid.c struct v4l2_mbus_framefmt *f = f 684 drivers/media/platform/qcom/camss/camss-csid.c csid->formats, csid->nformats, f->code); f 586 drivers/media/platform/qcom/camss/camss-vfe.c struct v4l2_format *f = &line->video_out.active_fmt; f 602 drivers/media/platform/qcom/camss/camss-vfe.c switch (f->fmt.pix_mp.pixelformat) { f 246 drivers/media/platform/qcom/camss/camss-video.c const struct camss_format_info *f, f 254 drivers/media/platform/qcom/camss/camss-video.c pix->pixelformat = f->pixelformat; f 255 drivers/media/platform/qcom/camss/camss-video.c pix->num_planes = f->planes; f 257 drivers/media/platform/qcom/camss/camss-video.c bytesperline = pix->width / f->hsub[i].numerator * f 258 drivers/media/platform/qcom/camss/camss-video.c f->hsub[i].denominator * f->bpp[i] / 8; f 262 drivers/media/platform/qcom/camss/camss-video.c f->vsub[i].numerator * f->vsub[i].denominator * f 532 drivers/media/platform/qcom/camss/camss-video.c static int video_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 537 drivers/media/platform/qcom/camss/camss-video.c if (f->type != video->type) f 540 drivers/media/platform/qcom/camss/camss-video.c if (f->index >= video->nformats) f 555 drivers/media/platform/qcom/camss/camss-video.c if (k == f->index) f 559 drivers/media/platform/qcom/camss/camss-video.c if (k < f->index) f 562 drivers/media/platform/qcom/camss/camss-video.c f->pixelformat = video->formats[i].pixelformat; f 567 drivers/media/platform/qcom/camss/camss-video.c static int video_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 571 drivers/media/platform/qcom/camss/camss-video.c *f = video->active_fmt; f 576 drivers/media/platform/qcom/camss/camss-video.c static int __video_try_fmt(struct camss_video *video, struct v4l2_format *f) f 587 drivers/media/platform/qcom/camss/camss-video.c pix_mp = &f->fmt.pix_mp; f 656 drivers/media/platform/qcom/camss/camss-video.c static int video_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 660 drivers/media/platform/qcom/camss/camss-video.c return __video_try_fmt(video, f); f 663 drivers/media/platform/qcom/camss/camss-video.c static int video_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 671 drivers/media/platform/qcom/camss/camss-video.c ret = __video_try_fmt(video, f); f 675 drivers/media/platform/qcom/camss/camss-video.c video->active_fmt = *f; f 172 drivers/media/platform/qcom/venus/hfi.h int hfi_session_process_buf(struct venus_inst *inst, struct hfi_frame_data *f); f 141 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) f 143 drivers/media/platform/qcom/venus/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 151 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, pixmp->pixelformat, f->type); f 153 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 155 drivers/media/platform/qcom/venus/vdec.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 159 drivers/media/platform/qcom/venus/vdec.c fmt = find_format(inst, pixmp->pixelformat, f->type); f 167 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 178 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 190 drivers/media/platform/qcom/venus/vdec.c static int vdec_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 194 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, f); f 233 drivers/media/platform/qcom/venus/vdec.c static int vdec_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 237 drivers/media/platform/qcom/venus/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 240 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 242 drivers/media/platform/qcom/venus/vdec.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 245 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 253 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 260 drivers/media/platform/qcom/venus/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 265 drivers/media/platform/qcom/venus/vdec.c vdec_try_fmt_common(inst, f); f 270 drivers/media/platform/qcom/venus/vdec.c static int vdec_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 273 drivers/media/platform/qcom/venus/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 281 drivers/media/platform/qcom/venus/vdec.c fmt = vdec_try_fmt_common(inst, f); f 283 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 286 drivers/media/platform/qcom/venus/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 299 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 320 drivers/media/platform/qcom/venus/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 322 drivers/media/platform/qcom/venus/vdec.c else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 380 drivers/media/platform/qcom/venus/vdec.c static int vdec_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 385 drivers/media/platform/qcom/venus/vdec.c memset(f->reserved, 0, sizeof(f->reserved)); f 387 drivers/media/platform/qcom/venus/vdec.c fmt = find_format_by_index(inst, f->index, f->type); f 391 drivers/media/platform/qcom/venus/vdec.c f->pixelformat = fmt->pixfmt; f 392 drivers/media/platform/qcom/venus/vdec.c f->flags = fmt->flags; f 274 drivers/media/platform/qcom/venus/venc.c static int venc_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 279 drivers/media/platform/qcom/venus/venc.c fmt = find_format_by_index(inst, f->index, f->type); f 281 drivers/media/platform/qcom/venus/venc.c memset(f->reserved, 0, sizeof(f->reserved)); f 286 drivers/media/platform/qcom/venus/venc.c f->pixelformat = fmt->pixfmt; f 292 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(struct venus_inst *inst, struct v4l2_format *f) f 294 drivers/media/platform/qcom/venus/venc.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 302 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, pixmp->pixelformat, f->type); f 304 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 306 drivers/media/platform/qcom/venus/venc.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 310 drivers/media/platform/qcom/venus/venc.c fmt = find_format(inst, pixmp->pixelformat, f->type); f 318 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 334 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 342 drivers/media/platform/qcom/venus/venc.c static int venc_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 346 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, f); f 351 drivers/media/platform/qcom/venus/venc.c static int venc_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 354 drivers/media/platform/qcom/venus/venc.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 362 drivers/media/platform/qcom/venus/venc.c fmt = venc_try_fmt_common(inst, f); f 366 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 369 drivers/media/platform/qcom/venus/venc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 382 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 402 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 404 drivers/media/platform/qcom/venus/venc.c else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 412 drivers/media/platform/qcom/venus/venc.c static int venc_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 414 drivers/media/platform/qcom/venus/venc.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 418 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 420 drivers/media/platform/qcom/venus/venc.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 427 drivers/media/platform/qcom/venus/venc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 434 drivers/media/platform/qcom/venus/venc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 439 drivers/media/platform/qcom/venus/venc.c venc_try_fmt_common(inst, f); f 262 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_format *f) f 266 drivers/media/platform/rcar-vin/rcar-v4l2.c return rvin_try_format(vin, V4L2_SUBDEV_FORMAT_TRY, &f->fmt.pix, NULL, f 271 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_format *f) f 280 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = rvin_try_format(vin, V4L2_SUBDEV_FORMAT_ACTIVE, &f->fmt.pix, f 285 drivers/media/platform/rcar-vin/rcar-v4l2.c vin->format = f->fmt.pix; f 294 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_format *f) f 298 drivers/media/platform/rcar-vin/rcar-v4l2.c f->fmt.pix = vin->format; f 304 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_fmtdesc *f) f 306 drivers/media/platform/rcar-vin/rcar-v4l2.c if (f->index >= ARRAY_SIZE(rvin_formats)) f 309 drivers/media/platform/rcar-vin/rcar-v4l2.c f->pixelformat = rvin_formats[f->index].fourcc; f 421 drivers/media/platform/rcar-vin/rcar-v4l2.c int type, struct v4l2_fract *f) f 429 drivers/media/platform/rcar-vin/rcar-v4l2.c return v4l2_subdev_call(sd, video, g_pixelaspect, f); f 693 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_format *f) f 697 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_mc_try_format(vin, &f->fmt.pix); f 703 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_format *f) f 710 drivers/media/platform/rcar-vin/rcar-v4l2.c rvin_mc_try_format(vin, &f->fmt.pix); f 712 drivers/media/platform/rcar-vin/rcar-v4l2.c vin->format = f->fmt.pix; f 900 drivers/media/platform/rcar_drif.c struct v4l2_fmtdesc *f) f 902 drivers/media/platform/rcar_drif.c if (f->index >= ARRAY_SIZE(formats)) f 905 drivers/media/platform/rcar_drif.c f->pixelformat = formats[f->index].pixelformat; f 911 drivers/media/platform/rcar_drif.c struct v4l2_format *f) f 915 drivers/media/platform/rcar_drif.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 916 drivers/media/platform/rcar_drif.c f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f 917 drivers/media/platform/rcar_drif.c f->fmt.sdr.buffersize = sdr->fmt->buffersize; f 923 drivers/media/platform/rcar_drif.c struct v4l2_format *f) f 933 drivers/media/platform/rcar_drif.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) f 941 drivers/media/platform/rcar_drif.c f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; f 942 drivers/media/platform/rcar_drif.c f->fmt.sdr.buffersize = formats[i].buffersize; f 943 drivers/media/platform/rcar_drif.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 964 drivers/media/platform/rcar_drif.c struct v4l2_format *f) f 969 drivers/media/platform/rcar_drif.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 970 drivers/media/platform/rcar_drif.c f->fmt.sdr.buffersize = formats[i].buffersize; f 975 drivers/media/platform/rcar_drif.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 976 drivers/media/platform/rcar_drif.c f->fmt.sdr.buffersize = formats[0].buffersize; f 977 drivers/media/platform/rcar_drif.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 992 drivers/media/platform/rcar_drif.c struct v4l2_frequency *f) f 996 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, g_frequency, f); f 1000 drivers/media/platform/rcar_drif.c const struct v4l2_frequency *f) f 1004 drivers/media/platform/rcar_drif.c return v4l2_subdev_call(sdr->ep.subdev, tuner, s_frequency, f); f 1371 drivers/media/platform/rcar_fdp1.c static int fdp1_enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 1379 drivers/media/platform/rcar_fdp1.c if (num == f->index) f 1390 drivers/media/platform/rcar_fdp1.c f->pixelformat = fdp1_formats[i].fourcc; f 1396 drivers/media/platform/rcar_fdp1.c struct v4l2_fmtdesc *f) f 1398 drivers/media/platform/rcar_fdp1.c return fdp1_enum_fmt(f, FDP1_CAPTURE); f 1402 drivers/media/platform/rcar_fdp1.c struct v4l2_fmtdesc *f) f 1404 drivers/media/platform/rcar_fdp1.c return fdp1_enum_fmt(f, FDP1_OUTPUT); f 1407 drivers/media/platform/rcar_fdp1.c static int fdp1_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1412 drivers/media/platform/rcar_fdp1.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) f 1415 drivers/media/platform/rcar_fdp1.c q_data = get_q_data(ctx, f->type); f 1416 drivers/media/platform/rcar_fdp1.c f->fmt.pix_mp = q_data->format; f 1589 drivers/media/platform/rcar_fdp1.c static int fdp1_try_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1593 drivers/media/platform/rcar_fdp1.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 1594 drivers/media/platform/rcar_fdp1.c fdp1_try_fmt_output(ctx, NULL, &f->fmt.pix_mp); f 1596 drivers/media/platform/rcar_fdp1.c fdp1_try_fmt_capture(ctx, NULL, &f->fmt.pix_mp); f 1599 drivers/media/platform/rcar_fdp1.c V4L2_TYPE_IS_OUTPUT(f->type) ? "output" : "capture", f 1600 drivers/media/platform/rcar_fdp1.c (char *)&f->fmt.pix_mp.pixelformat, f->fmt.pix_mp.pixelformat, f 1601 drivers/media/platform/rcar_fdp1.c f->fmt.pix_mp.width, f->fmt.pix_mp.height, f->fmt.pix_mp.field); f 1660 drivers/media/platform/rcar_fdp1.c static int fdp1_s_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1664 drivers/media/platform/rcar_fdp1.c struct vb2_queue *vq = v4l2_m2m_get_vq(m2m_ctx, f->type); f 1671 drivers/media/platform/rcar_fdp1.c fdp1_set_format(ctx, &f->fmt.pix_mp, f->type); f 1674 drivers/media/platform/rcar_fdp1.c V4L2_TYPE_IS_OUTPUT(f->type) ? "output" : "capture", f 1675 drivers/media/platform/rcar_fdp1.c (char *)&f->fmt.pix_mp.pixelformat, f->fmt.pix_mp.pixelformat, f 1676 drivers/media/platform/rcar_fdp1.c f->fmt.pix_mp.width, f->fmt.pix_mp.height, f->fmt.pix_mp.field); f 701 drivers/media/platform/rcar_jpu.c static int jpu_enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 707 drivers/media/platform/rcar_jpu.c if (num == f->index) f 716 drivers/media/platform/rcar_jpu.c f->pixelformat = jpu_formats[i].fourcc; f 722 drivers/media/platform/rcar_jpu.c struct v4l2_fmtdesc *f) f 726 drivers/media/platform/rcar_jpu.c return jpu_enum_fmt(f, ctx->encoder ? JPU_ENC_CAPTURE : f 731 drivers/media/platform/rcar_jpu.c struct v4l2_fmtdesc *f) f 735 drivers/media/platform/rcar_jpu.c return jpu_enum_fmt(f, ctx->encoder ? JPU_ENC_OUTPUT : JPU_DEC_OUTPUT); f 836 drivers/media/platform/rcar_jpu.c static int jpu_try_fmt(struct file *file, void *priv, struct v4l2_format *f) f 840 drivers/media/platform/rcar_jpu.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) f 843 drivers/media/platform/rcar_jpu.c return __jpu_try_fmt(ctx, NULL, &f->fmt.pix_mp, f->type); f 846 drivers/media/platform/rcar_jpu.c static int jpu_s_fmt(struct file *file, void *priv, struct v4l2_format *f) f 855 drivers/media/platform/rcar_jpu.c vq = v4l2_m2m_get_vq(m2m_ctx, f->type); f 864 drivers/media/platform/rcar_jpu.c ret = __jpu_try_fmt(ctx, &fmtinfo, &f->fmt.pix_mp, f->type); f 868 drivers/media/platform/rcar_jpu.c q_data = jpu_get_q_data(ctx, f->type); f 870 drivers/media/platform/rcar_jpu.c q_data->format = f->fmt.pix_mp; f 876 drivers/media/platform/rcar_jpu.c static int jpu_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 881 drivers/media/platform/rcar_jpu.c if (!v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type)) f 884 drivers/media/platform/rcar_jpu.c q_data = jpu_get_q_data(ctx, f->type); f 885 drivers/media/platform/rcar_jpu.c f->fmt.pix_mp = q_data->format; f 1147 drivers/media/platform/renesas-ceu.c struct v4l2_fmtdesc *f) f 1151 drivers/media/platform/renesas-ceu.c if (f->index >= ARRAY_SIZE(ceu_fmt_list)) f 1154 drivers/media/platform/renesas-ceu.c fmt = &ceu_fmt_list[f->index]; f 1155 drivers/media/platform/renesas-ceu.c f->pixelformat = fmt->fourcc; f 1161 drivers/media/platform/renesas-ceu.c struct v4l2_format *f) f 1165 drivers/media/platform/renesas-ceu.c return ceu_try_fmt(ceudev, f); f 1169 drivers/media/platform/renesas-ceu.c struct v4l2_format *f) f 1176 drivers/media/platform/renesas-ceu.c return ceu_set_fmt(ceudev, f); f 1180 drivers/media/platform/renesas-ceu.c struct v4l2_format *f) f 1184 drivers/media/platform/renesas-ceu.c f->fmt.pix_mp = ceudev->v4l2_pix; f 24 drivers/media/platform/rockchip/rga/rga-buf.c struct rga_frame *f = rga_get_frame(ctx, vq->type); f 26 drivers/media/platform/rockchip/rga/rga-buf.c if (IS_ERR(f)) f 27 drivers/media/platform/rockchip/rga/rga-buf.c return PTR_ERR(f); f 30 drivers/media/platform/rockchip/rga/rga-buf.c return sizes[0] < f->size ? -EINVAL : 0; f 32 drivers/media/platform/rockchip/rga/rga-buf.c sizes[0] = f->size; f 41 drivers/media/platform/rockchip/rga/rga-buf.c struct rga_frame *f = rga_get_frame(ctx, vb->vb2_queue->type); f 43 drivers/media/platform/rockchip/rga/rga-buf.c if (IS_ERR(f)) f 44 drivers/media/platform/rockchip/rga/rga-buf.c return PTR_ERR(f); f 46 drivers/media/platform/rockchip/rga/rga-buf.c vb2_set_plane_payload(vb, 0, f->size); f 336 drivers/media/platform/rockchip/rga/rga.c static struct rga_fmt *rga_fmt_find(struct v4l2_format *f) f 341 drivers/media/platform/rockchip/rga/rga.c if (formats[i].fourcc == f->fmt.pix.pixelformat) f 449 drivers/media/platform/rockchip/rga/rga.c static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f) f 453 drivers/media/platform/rockchip/rga/rga.c if (f->index >= NUM_FORMATS) f 456 drivers/media/platform/rockchip/rga/rga.c fmt = &formats[f->index]; f 457 drivers/media/platform/rockchip/rga/rga.c f->pixelformat = fmt->fourcc; f 462 drivers/media/platform/rockchip/rga/rga.c static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f) f 468 drivers/media/platform/rockchip/rga/rga.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 471 drivers/media/platform/rockchip/rga/rga.c frm = rga_get_frame(ctx, f->type); f 475 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = frm->width; f 476 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = frm->height; f 477 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.field = V4L2_FIELD_NONE; f 478 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.pixelformat = frm->fmt->fourcc; f 479 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = frm->stride; f 480 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.sizeimage = frm->size; f 481 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.colorspace = frm->colorspace; f 486 drivers/media/platform/rockchip/rga/rga.c static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f) f 490 drivers/media/platform/rockchip/rga/rga.c fmt = rga_fmt_find(f); f 493 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.pixelformat = fmt->fourcc; f 496 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.field = V4L2_FIELD_NONE; f 498 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.width > MAX_WIDTH) f 499 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = MAX_WIDTH; f 500 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.height > MAX_HEIGHT) f 501 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = MAX_HEIGHT; f 503 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.width < MIN_WIDTH) f 504 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.width = MIN_WIDTH; f 505 drivers/media/platform/rockchip/rga/rga.c if (f->fmt.pix.height < MIN_HEIGHT) f 506 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height = MIN_HEIGHT; f 509 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = f->fmt.pix.width; f 511 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 513 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.sizeimage = f 514 drivers/media/platform/rockchip/rga/rga.c f->fmt.pix.height * (f->fmt.pix.width * fmt->depth) >> 3; f 519 drivers/media/platform/rockchip/rga/rga.c static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f) f 531 drivers/media/platform/rockchip/rga/rga.c ret = vidioc_try_fmt(file, prv, f); f 534 drivers/media/platform/rockchip/rga/rga.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 536 drivers/media/platform/rockchip/rga/rga.c v4l2_err(&rga->v4l2_dev, "queue (%d) bust\n", f->type); f 539 drivers/media/platform/rockchip/rga/rga.c frm = rga_get_frame(ctx, f->type); f 542 drivers/media/platform/rockchip/rga/rga.c fmt = rga_fmt_find(f); f 545 drivers/media/platform/rockchip/rga/rga.c frm->width = f->fmt.pix.width; f 546 drivers/media/platform/rockchip/rga/rga.c frm->height = f->fmt.pix.height; f 547 drivers/media/platform/rockchip/rga/rga.c frm->size = f->fmt.pix.sizeimage; f 549 drivers/media/platform/rockchip/rga/rga.c frm->stride = f->fmt.pix.bytesperline; f 550 drivers/media/platform/rockchip/rga/rga.c frm->colorspace = f->fmt.pix.colorspace; f 565 drivers/media/platform/rockchip/rga/rga.c struct rga_frame *f; f 568 drivers/media/platform/rockchip/rga/rga.c f = rga_get_frame(ctx, s->type); f 569 drivers/media/platform/rockchip/rga/rga.c if (IS_ERR(f)) f 570 drivers/media/platform/rockchip/rga/rga.c return PTR_ERR(f); f 598 drivers/media/platform/rockchip/rga/rga.c s->r = f->crop; f 602 drivers/media/platform/rockchip/rga/rga.c s->r.width = f->width; f 603 drivers/media/platform/rockchip/rga/rga.c s->r.height = f->height; f 614 drivers/media/platform/rockchip/rga/rga.c struct rga_frame *f; f 617 drivers/media/platform/rockchip/rga/rga.c f = rga_get_frame(ctx, s->type); f 618 drivers/media/platform/rockchip/rga/rga.c if (IS_ERR(f)) f 619 drivers/media/platform/rockchip/rga/rga.c return PTR_ERR(f); f 652 drivers/media/platform/rockchip/rga/rga.c if (s->r.left + s->r.width > f->width || f 653 drivers/media/platform/rockchip/rga/rga.c s->r.top + s->r.height > f->height || f 659 drivers/media/platform/rockchip/rga/rga.c f->crop = s->r; f 55 drivers/media/platform/s3c-camif/camif-capture.c struct camif_frame *f = &vp->out_frame; f 57 drivers/media/platform/s3c-camif/camif-capture.c f->dma_offset.initial = f->rect.top * f->f_width + f->rect.left; f 58 drivers/media/platform/s3c-camif/camif-capture.c f->dma_offset.line = f->f_width - (f->rect.left + f->rect.width); f 61 drivers/media/platform/s3c-camif/camif-capture.c f->dma_offset.initial, f->dma_offset.line); f 675 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_fmtdesc *f) f 680 drivers/media/platform/s3c-camif/camif-capture.c fmt = s3c_camif_find_format(vp, NULL, f->index); f 684 drivers/media/platform/s3c-camif/camif-capture.c f->pixelformat = fmt->fourcc; f 689 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_format *f) f 692 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_pix_format *pix = &f->fmt.pix; f 760 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_format *f) f 763 drivers/media/platform/s3c-camif/camif-capture.c return __camif_video_try_format(vp, &f->fmt.pix, NULL); f 767 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_format *f) f 769 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_pix_format *pix = &f->fmt.pix; f 780 drivers/media/platform/s3c-camif/camif-capture.c ret = __camif_video_try_format(vp, &f->fmt.pix, &fmt); f 1614 drivers/media/platform/s3c-camif/camif-capture.c struct camif_frame *f = &vp->out_frame; f 1629 drivers/media/platform/s3c-camif/camif-capture.c memset(f, 0, sizeof(*f)); f 1630 drivers/media/platform/s3c-camif/camif-capture.c f->f_width = CAMIF_DEF_WIDTH; f 1631 drivers/media/platform/s3c-camif/camif-capture.c f->f_height = CAMIF_DEF_HEIGHT; f 1632 drivers/media/platform/s3c-camif/camif-capture.c f->rect.width = CAMIF_DEF_WIDTH; f 1633 drivers/media/platform/s3c-camif/camif-capture.c f->rect.height = CAMIF_DEF_HEIGHT; f 1638 drivers/media/platform/s3c-camif/camif-capture.c vp->payload = (f->f_width * f->f_height * f 23 drivers/media/platform/s5p-g2d/g2d-hw.c void g2d_set_src_size(struct g2d_dev *d, struct g2d_frame *f) f 28 drivers/media/platform/s5p-g2d/g2d-hw.c w(f->stride & 0xFFFF, SRC_STRIDE_REG); f 30 drivers/media/platform/s5p-g2d/g2d-hw.c n = f->o_height & 0xFFF; f 32 drivers/media/platform/s5p-g2d/g2d-hw.c n |= f->o_width & 0xFFF; f 35 drivers/media/platform/s5p-g2d/g2d-hw.c n = f->bottom & 0xFFF; f 37 drivers/media/platform/s5p-g2d/g2d-hw.c n |= f->right & 0xFFF; f 40 drivers/media/platform/s5p-g2d/g2d-hw.c w(f->fmt->hw, SRC_COLOR_MODE_REG); f 48 drivers/media/platform/s5p-g2d/g2d-hw.c void g2d_set_dst_size(struct g2d_dev *d, struct g2d_frame *f) f 53 drivers/media/platform/s5p-g2d/g2d-hw.c w(f->stride & 0xFFFF, DST_STRIDE_REG); f 55 drivers/media/platform/s5p-g2d/g2d-hw.c n = f->o_height & 0xFFF; f 57 drivers/media/platform/s5p-g2d/g2d-hw.c n |= f->o_width & 0xFFF; f 60 drivers/media/platform/s5p-g2d/g2d-hw.c n = f->bottom & 0xFFF; f 62 drivers/media/platform/s5p-g2d/g2d-hw.c n |= f->right & 0xFFF; f 65 drivers/media/platform/s5p-g2d/g2d-hw.c w(f->fmt->hw, DST_COLOR_MODE_REG); f 71 drivers/media/platform/s5p-g2d/g2d.c static struct g2d_fmt *find_fmt(struct v4l2_format *f) f 75 drivers/media/platform/s5p-g2d/g2d.c if (formats[i].fourcc == f->fmt.pix.pixelformat) f 100 drivers/media/platform/s5p-g2d/g2d.c struct g2d_frame *f = get_frame(ctx, vq->type); f 102 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(f)) f 103 drivers/media/platform/s5p-g2d/g2d.c return PTR_ERR(f); f 105 drivers/media/platform/s5p-g2d/g2d.c sizes[0] = f->size; f 117 drivers/media/platform/s5p-g2d/g2d.c struct g2d_frame *f = get_frame(ctx, vb->vb2_queue->type); f 119 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(f)) f 120 drivers/media/platform/s5p-g2d/g2d.c return PTR_ERR(f); f 121 drivers/media/platform/s5p-g2d/g2d.c vb2_set_plane_payload(vb, 0, f->size); f 297 drivers/media/platform/s5p-g2d/g2d.c static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f) f 299 drivers/media/platform/s5p-g2d/g2d.c if (f->index >= NUM_FORMATS) f 301 drivers/media/platform/s5p-g2d/g2d.c f->pixelformat = formats[f->index].fourcc; f 305 drivers/media/platform/s5p-g2d/g2d.c static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f) f 311 drivers/media/platform/s5p-g2d/g2d.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 314 drivers/media/platform/s5p-g2d/g2d.c frm = get_frame(ctx, f->type); f 318 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = frm->width; f 319 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = frm->height; f 320 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.field = V4L2_FIELD_NONE; f 321 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.pixelformat = frm->fmt->fourcc; f 322 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; f 323 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.sizeimage = frm->size; f 327 drivers/media/platform/s5p-g2d/g2d.c static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f) f 332 drivers/media/platform/s5p-g2d/g2d.c fmt = find_fmt(f); f 336 drivers/media/platform/s5p-g2d/g2d.c field = &f->fmt.pix.field; f 342 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.width > MAX_WIDTH) f 343 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = MAX_WIDTH; f 344 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.height > MAX_HEIGHT) f 345 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = MAX_HEIGHT; f 347 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.width < 1) f 348 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.width = 1; f 349 drivers/media/platform/s5p-g2d/g2d.c if (f->fmt.pix.height < 1) f 350 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.height = 1; f 352 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 353 drivers/media/platform/s5p-g2d/g2d.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 357 drivers/media/platform/s5p-g2d/g2d.c static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f) f 368 drivers/media/platform/s5p-g2d/g2d.c ret = vidioc_try_fmt(file, prv, f); f 371 drivers/media/platform/s5p-g2d/g2d.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 373 drivers/media/platform/s5p-g2d/g2d.c v4l2_err(&dev->v4l2_dev, "queue (%d) bust\n", f->type); f 376 drivers/media/platform/s5p-g2d/g2d.c frm = get_frame(ctx, f->type); f 379 drivers/media/platform/s5p-g2d/g2d.c fmt = find_fmt(f); f 382 drivers/media/platform/s5p-g2d/g2d.c frm->width = f->fmt.pix.width; f 383 drivers/media/platform/s5p-g2d/g2d.c frm->height = f->fmt.pix.height; f 384 drivers/media/platform/s5p-g2d/g2d.c frm->size = f->fmt.pix.sizeimage; f 393 drivers/media/platform/s5p-g2d/g2d.c frm->stride = f->fmt.pix.bytesperline; f 401 drivers/media/platform/s5p-g2d/g2d.c struct g2d_frame *f; f 403 drivers/media/platform/s5p-g2d/g2d.c f = get_frame(ctx, s->type); f 404 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(f)) f 405 drivers/media/platform/s5p-g2d/g2d.c return PTR_ERR(f); f 427 drivers/media/platform/s5p-g2d/g2d.c s->r.left = f->o_height; f 428 drivers/media/platform/s5p-g2d/g2d.c s->r.top = f->o_width; f 429 drivers/media/platform/s5p-g2d/g2d.c s->r.width = f->c_width; f 430 drivers/media/platform/s5p-g2d/g2d.c s->r.height = f->c_height; f 438 drivers/media/platform/s5p-g2d/g2d.c s->r.width = f->width; f 439 drivers/media/platform/s5p-g2d/g2d.c s->r.height = f->height; f 452 drivers/media/platform/s5p-g2d/g2d.c struct g2d_frame *f; f 454 drivers/media/platform/s5p-g2d/g2d.c f = get_frame(ctx, s->type); f 455 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(f)) f 456 drivers/media/platform/s5p-g2d/g2d.c return PTR_ERR(f); f 479 drivers/media/platform/s5p-g2d/g2d.c struct g2d_frame *f; f 485 drivers/media/platform/s5p-g2d/g2d.c f = get_frame(ctx, s->type); f 486 drivers/media/platform/s5p-g2d/g2d.c if (IS_ERR(f)) f 487 drivers/media/platform/s5p-g2d/g2d.c return PTR_ERR(f); f 489 drivers/media/platform/s5p-g2d/g2d.c f->c_width = s->r.width; f 490 drivers/media/platform/s5p-g2d/g2d.c f->c_height = s->r.height; f 491 drivers/media/platform/s5p-g2d/g2d.c f->o_width = s->r.left; f 492 drivers/media/platform/s5p-g2d/g2d.c f->o_height = s->r.top; f 493 drivers/media/platform/s5p-g2d/g2d.c f->bottom = f->o_height + f->c_height; f 494 drivers/media/platform/s5p-g2d/g2d.c f->right = f->o_width + f->c_width; f 74 drivers/media/platform/s5p-g2d/g2d.h void g2d_set_src_size(struct g2d_dev *d, struct g2d_frame *f); f 76 drivers/media/platform/s5p-g2d/g2d.h void g2d_set_dst_size(struct g2d_dev *d, struct g2d_frame *f); f 1267 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_fmtdesc *f, u32 type) f 1276 drivers/media/platform/s5p-jpeg/jpeg-core.c if (num == f->index) f 1289 drivers/media/platform/s5p-jpeg/jpeg-core.c f->pixelformat = sjpeg_formats[i].fourcc; f 1295 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_fmtdesc *f) f 1300 drivers/media/platform/s5p-jpeg/jpeg-core.c return enum_fmt(ctx, sjpeg_formats, SJPEG_NUM_FORMATS, f, f 1303 drivers/media/platform/s5p-jpeg/jpeg-core.c return enum_fmt(ctx, sjpeg_formats, SJPEG_NUM_FORMATS, f, f 1308 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_fmtdesc *f) f 1313 drivers/media/platform/s5p-jpeg/jpeg-core.c return enum_fmt(ctx, sjpeg_formats, SJPEG_NUM_FORMATS, f, f 1316 drivers/media/platform/s5p-jpeg/jpeg-core.c return enum_fmt(ctx, sjpeg_formats, SJPEG_NUM_FORMATS, f, f 1331 drivers/media/platform/s5p-jpeg/jpeg-core.c static int s5p_jpeg_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1335 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1338 drivers/media/platform/s5p-jpeg/jpeg-core.c vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); f 1342 drivers/media/platform/s5p-jpeg/jpeg-core.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && f 1345 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data = get_q_data(ct, f->type); f 1428 drivers/media/platform/s5p-jpeg/jpeg-core.c static int vidioc_try_fmt(struct v4l2_format *f, struct s5p_jpeg_fmt *fmt, f 1431 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1474 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_format *f) f 1477 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1481 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, f->fmt.pix.pixelformat, f 1486 drivers/media/platform/s5p-jpeg/jpeg-core.c f->fmt.pix.pixelformat); f 1529 drivers/media/platform/s5p-jpeg/jpeg-core.c return vidioc_try_fmt(f, fmt, ctx, FMT_TYPE_CAPTURE); f 1533 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_format *f) f 1538 drivers/media/platform/s5p-jpeg/jpeg-core.c fmt = s5p_jpeg_find_format(ctx, f->fmt.pix.pixelformat, f 1543 drivers/media/platform/s5p-jpeg/jpeg-core.c f->fmt.pix.pixelformat); f 1547 drivers/media/platform/s5p-jpeg/jpeg-core.c return vidioc_try_fmt(f, fmt, ctx, FMT_TYPE_OUTPUT); f 1551 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_format *f, f 1554 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1555 drivers/media/platform/s5p-jpeg/jpeg-core.c u32 pix_fmt = f->fmt.pix.pixelformat; f 1584 drivers/media/platform/s5p-jpeg/jpeg-core.c static int s5p_jpeg_s_fmt(struct s5p_jpeg_ctx *ct, struct v4l2_format *f) f 1588 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1593 drivers/media/platform/s5p-jpeg/jpeg-core.c vq = v4l2_m2m_get_vq(ct->fh.m2m_ctx, f->type); f 1597 drivers/media/platform/s5p-jpeg/jpeg-core.c q_data = get_q_data(ct, f->type); f 1605 drivers/media/platform/s5p-jpeg/jpeg-core.c f_type = V4L2_TYPE_IS_OUTPUT(f->type) ? f 1625 drivers/media/platform/s5p-jpeg/jpeg-core.c f, f 1674 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_format *f) f 1678 drivers/media/platform/s5p-jpeg/jpeg-core.c ret = s5p_jpeg_try_fmt_vid_cap(file, priv, f); f 1682 drivers/media/platform/s5p-jpeg/jpeg-core.c return s5p_jpeg_s_fmt(fh_to_ctx(priv), f); f 1686 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_format *f) f 1690 drivers/media/platform/s5p-jpeg/jpeg-core.c ret = s5p_jpeg_try_fmt_vid_out(file, priv, f); f 1694 drivers/media/platform/s5p-jpeg/jpeg-core.c return s5p_jpeg_s_fmt(fh_to_ctx(priv), f); f 239 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c unsigned long reg, f; f 241 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c f = S5P_DEC_OUT_FORMAT_422; f 243 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c f = S5P_DEC_OUT_FORMAT_422; f 245 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c f = S5P_DEC_OUT_FORMAT_420; f 248 drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c reg |= f; f 747 drivers/media/platform/s5p-mfc/s5p_mfc_common.h #define s5p_mfc_hw_call(f, op, args...) \ f 748 drivers/media/platform/s5p-mfc/s5p_mfc_common.h ((f && f->op) ? f->op(args) : (typeof(f->op(args)))(-ENODEV)) f 148 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static struct s5p_mfc_fmt *find_format(struct v4l2_format *f, unsigned int t) f 153 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && f 264 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int vidioc_enum_fmt(struct file *file, struct v4l2_fmtdesc *f, f 278 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (j == f->index) f 284 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c f->pixelformat = formats[i].fourcc; f 289 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c struct v4l2_fmtdesc *f) f 291 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return vidioc_enum_fmt(file, f, false); f 295 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c struct v4l2_fmtdesc *f) f 297 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c return vidioc_enum_fmt(file, f, true); f 301 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int vidioc_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 307 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c pix_mp = &f->fmt.pix_mp; f 308 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE && f 316 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE && f 335 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 356 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f) f 361 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c mfc_debug(2, "Type is %d\n", f->type); f 362 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 363 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c fmt = find_format(f, MFC_FMT_DEC); f 376 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 377 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c fmt = find_format(f, MFC_FMT_RAW); f 392 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f) f 401 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ret = vidioc_try_fmt(file, priv, f); f 402 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c pix_mp = &f->fmt.pix_mp; f 410 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 412 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ctx->dst_fmt = find_format(f, MFC_FMT_RAW); f 415 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 417 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ctx->src_fmt = find_format(f, MFC_FMT_DEC); f 434 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c mfc_err("Wrong type error for S_FMT : %d", f->type); f 1170 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c struct v4l2_format f; f 1171 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_H264; f 1172 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ctx->src_fmt = find_format(&f, MFC_FMT_DEC); f 1174 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12M; f 1176 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12MT_16X16; f 1178 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c f.fmt.pix_mp.pixelformat = V4L2_PIX_FMT_NV12MT; f 1179 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c ctx->dst_fmt = find_format(&f, MFC_FMT_RAW); f 100 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static struct s5p_mfc_fmt *find_format(struct v4l2_format *f, unsigned int t) f 105 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && f 1311 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int vidioc_enum_fmt(struct file *file, struct v4l2_fmtdesc *f, f 1325 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (j == f->index) { f 1326 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c f->pixelformat = formats[i].fourcc; f 1335 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_fmtdesc *f) f 1337 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c return vidioc_enum_fmt(file, f, false); f 1341 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_fmtdesc *f) f 1343 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c return vidioc_enum_fmt(file, f, true); f 1346 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int vidioc_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1349 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 1351 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c mfc_debug(2, "f->type = %d ctx->state = %d\n", f->type, ctx->state); f 1352 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 1362 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 1382 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1386 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 1388 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 1389 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c fmt = find_format(f, MFC_FMT_ENC); f 1401 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 1402 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c fmt = find_format(f, MFC_FMT_RAW); f 1421 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1425 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; f 1428 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ret = vidioc_try_fmt(file, priv, f); f 1436 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 1438 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->dst_fmt = find_format(f, MFC_FMT_ENC); f 1446 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 1448 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->src_fmt = find_format(f, MFC_FMT_RAW); f 2685 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_format f; f 2686 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c f.fmt.pix_mp.pixelformat = DEF_SRC_FMT_ENC; f 2687 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->src_fmt = find_format(&f, MFC_FMT_RAW); f 2688 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c f.fmt.pix_mp.pixelformat = DEF_DST_FMT_ENC; f 2689 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c ctx->dst_fmt = find_format(&f, MFC_FMT_ENC); f 354 drivers/media/platform/sh_veu.c static int sh_veu_enum_fmt(struct v4l2_fmtdesc *f, const int *fmt, int fmt_num) f 356 drivers/media/platform/sh_veu.c if (f->index >= fmt_num) f 359 drivers/media/platform/sh_veu.c f->pixelformat = sh_veu_fmt[fmt[f->index]].fourcc; f 364 drivers/media/platform/sh_veu.c struct v4l2_fmtdesc *f) f 366 drivers/media/platform/sh_veu.c return sh_veu_enum_fmt(f, sh_veu_fmt_out, ARRAY_SIZE(sh_veu_fmt_out)); f 370 drivers/media/platform/sh_veu.c struct v4l2_fmtdesc *f) f 372 drivers/media/platform/sh_veu.c return sh_veu_enum_fmt(f, sh_veu_fmt_in, ARRAY_SIZE(sh_veu_fmt_in)); f 388 drivers/media/platform/sh_veu.c static int sh_veu_g_fmt(struct sh_veu_file *veu_file, struct v4l2_format *f) f 390 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; f 394 drivers/media/platform/sh_veu.c vfmt = sh_veu_get_vfmt(veu, f->type); f 405 drivers/media/platform/sh_veu.c f->type, pix->sizeimage, pix->width, pix->height, pix->pixelformat); f 411 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 413 drivers/media/platform/sh_veu.c return sh_veu_g_fmt(priv, f); f 417 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 419 drivers/media/platform/sh_veu.c return sh_veu_g_fmt(priv, f); f 422 drivers/media/platform/sh_veu.c static int sh_veu_try_fmt(struct v4l2_format *f, const struct sh_veu_format *fmt) f 424 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; f 452 drivers/media/platform/sh_veu.c pr_debug("%s(): type: %d, size %u\n", __func__, f->type, pix->sizeimage); f 457 drivers/media/platform/sh_veu.c static const struct sh_veu_format *sh_veu_find_fmt(const struct v4l2_format *f) f 462 drivers/media/platform/sh_veu.c pr_debug("%s(%d;%d)\n", __func__, f->type, f->fmt.pix.field); f 464 drivers/media/platform/sh_veu.c switch (f->type) { f 479 drivers/media/platform/sh_veu.c if (sh_veu_fmt[fmt[i]].fourcc == f->fmt.pix.pixelformat) f 486 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 490 drivers/media/platform/sh_veu.c fmt = sh_veu_find_fmt(f); f 492 drivers/media/platform/sh_veu.c return sh_veu_try_fmt(f, fmt); f 496 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 500 drivers/media/platform/sh_veu.c fmt = sh_veu_find_fmt(f); f 502 drivers/media/platform/sh_veu.c return sh_veu_try_fmt(f, fmt); f 535 drivers/media/platform/sh_veu.c static int sh_veu_s_fmt(struct sh_veu_file *veu_file, struct v4l2_format *f) f 537 drivers/media/platform/sh_veu.c struct v4l2_pix_format *pix = &f->fmt.pix; f 545 drivers/media/platform/sh_veu.c vq = v4l2_m2m_get_vq(veu->m2m_ctx, f->type); f 554 drivers/media/platform/sh_veu.c vfmt = sh_veu_get_vfmt(veu, f->type); f 557 drivers/media/platform/sh_veu.c vfmt->fmt = sh_veu_find_fmt(f); f 574 drivers/media/platform/sh_veu.c f->type, pix->width, pix->height, vfmt->fmt->fourcc); f 580 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 582 drivers/media/platform/sh_veu.c int ret = sh_veu_try_fmt_vid_cap(file, priv, f); f 586 drivers/media/platform/sh_veu.c return sh_veu_s_fmt(priv, f); f 590 drivers/media/platform/sh_veu.c struct v4l2_format *f) f 592 drivers/media/platform/sh_veu.c int ret = sh_veu_try_fmt_vid_out(file, priv, f); f 596 drivers/media/platform/sh_veu.c return sh_veu_s_fmt(priv, f); f 697 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 702 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (f->index >= ARRAY_SIZE(bdisp_formats)) f 705 drivers/media/platform/sti/bdisp/bdisp-v4l2.c fmt = &bdisp_formats[f->index]; f 708 drivers/media/platform/sti/bdisp/bdisp-v4l2.c (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)) { f 712 drivers/media/platform/sti/bdisp/bdisp-v4l2.c f->pixelformat = fmt->pixelformat; f 717 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 721 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct bdisp_frame *frame = ctx_get_frame(ctx, f->type); f 728 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix = &f->fmt.pix; f 735 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix->colorspace = (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? f 741 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 744 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 757 drivers/media/platform/sti/bdisp/bdisp-v4l2.c (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)) { f 763 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if ((f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) || f 785 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) f 791 drivers/media/platform/sti/bdisp/bdisp-v4l2.c static int bdisp_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 800 drivers/media/platform/sti/bdisp/bdisp-v4l2.c ret = bdisp_try_fmt(file, fh, f); f 806 drivers/media/platform/sti/bdisp/bdisp-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 808 drivers/media/platform/sti/bdisp/bdisp-v4l2.c dev_err(ctx->bdisp_dev->dev, "queue (%d) busy\n", f->type); f 812 drivers/media/platform/sti/bdisp/bdisp-v4l2.c frame = (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) ? f 814 drivers/media/platform/sti/bdisp/bdisp-v4l2.c pix = &f->fmt.pix; f 827 drivers/media/platform/sti/bdisp/bdisp-v4l2.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) f 836 drivers/media/platform/sti/bdisp/bdisp-v4l2.c state |= (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ? f 34 drivers/media/platform/sti/delta/delta-debug.c char *delta_frameinfo_str(struct delta_frameinfo *f, char *str, f 37 drivers/media/platform/sti/delta/delta-debug.c if (!f) f 42 drivers/media/platform/sti/delta/delta-debug.c (char *)&f->pixelformat, f->width, f->height, f 43 drivers/media/platform/sti/delta/delta-debug.c f->aligned_width, f->aligned_height, f 44 drivers/media/platform/sti/delta/delta-debug.c (f->field == V4L2_FIELD_NONE) ? "progressive" : "interlaced", f 45 drivers/media/platform/sti/delta/delta-debug.c f->flags & DELTA_STREAMINFO_FLAG_CROP ? "crop=" : "", f 46 drivers/media/platform/sti/delta/delta-debug.c f->crop.width, f->crop.height, f 47 drivers/media/platform/sti/delta/delta-debug.c f->crop.left, f->crop.top, f 48 drivers/media/platform/sti/delta/delta-debug.c f->flags & DELTA_STREAMINFO_FLAG_PIXELASPECT ? "par=" : "", f 49 drivers/media/platform/sti/delta/delta-debug.c f->pixelaspect.numerator, f 50 drivers/media/platform/sti/delta/delta-debug.c f->pixelaspect.denominator); f 14 drivers/media/platform/sti/delta/delta-debug.h char *delta_frameinfo_str(struct delta_frameinfo *f, char *str, f 397 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_fmtdesc *f) f 402 drivers/media/platform/sti/delta/delta-v4l2.c if (unlikely(f->index >= delta->nb_of_streamformats)) f 405 drivers/media/platform/sti/delta/delta-v4l2.c f->pixelformat = delta->streamformats[f->index]; f 411 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_fmtdesc *f) f 416 drivers/media/platform/sti/delta/delta-v4l2.c if (unlikely(f->index >= delta->nb_of_pixelformats)) f 419 drivers/media/platform/sti/delta/delta-v4l2.c f->pixelformat = delta->pixelformats[f->index]; f 425 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_format *f) f 429 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 453 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_g_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) f 457 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 492 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_format *f) f 496 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 546 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_format *f) f 550 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 606 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_format *f) f 611 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 614 drivers/media/platform/sti/delta/delta-v4l2.c ret = delta_try_fmt_stream(file, fh, f); f 622 drivers/media/platform/sti/delta/delta-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 642 drivers/media/platform/sti/delta/delta-v4l2.c static int delta_s_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) f 647 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 653 drivers/media/platform/sti/delta/delta-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 667 drivers/media/platform/sti/delta/delta-v4l2.c ret = delta_try_fmt_frame(file, fh, f); f 39 drivers/media/platform/sti/hva/hva-v4l2.c #define fh_to_ctx(f) (container_of(f, struct hva_ctx, fh)) f 269 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_fmtdesc *f) f 274 drivers/media/platform/sti/hva/hva-v4l2.c if (unlikely(f->index >= hva->nb_of_streamformats)) f 277 drivers/media/platform/sti/hva/hva-v4l2.c f->pixelformat = hva->streamformats[f->index]; f 283 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_fmtdesc *f) f 288 drivers/media/platform/sti/hva/hva-v4l2.c if (unlikely(f->index >= hva->nb_of_pixelformats)) f 291 drivers/media/platform/sti/hva/hva-v4l2.c f->pixelformat = hva->pixelformats[f->index]; f 296 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_fmt_stream(struct file *file, void *fh, struct v4l2_format *f) f 301 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.width = streaminfo->width; f 302 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.height = streaminfo->height; f 303 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.field = V4L2_FIELD_NONE; f 304 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.colorspace = ctx->colorspace; f 305 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.xfer_func = ctx->xfer_func; f 306 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 307 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.quantization = ctx->quantization; f 308 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.pixelformat = streaminfo->streamformat; f 309 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.bytesperline = 0; f 310 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.sizeimage = ctx->max_stream_size; f 315 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_g_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) f 320 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.width = frameinfo->width; f 321 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.height = frameinfo->height; f 322 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.field = V4L2_FIELD_NONE; f 323 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.colorspace = ctx->colorspace; f 324 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.xfer_func = ctx->xfer_func; f 325 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 326 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.quantization = ctx->quantization; f 327 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.pixelformat = frameinfo->pixelformat; f 328 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.bytesperline = frame_stride(frameinfo->aligned_width, f 330 drivers/media/platform/sti/hva/hva-v4l2.c f->fmt.pix.sizeimage = frameinfo->size; f 336 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_format *f) f 340 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 400 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_format *f) f 404 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 450 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_fmt_stream(struct file *file, void *fh, struct v4l2_format *f) f 457 drivers/media/platform/sti/hva/hva-v4l2.c ret = hva_try_fmt_stream(file, fh, f); f 460 drivers/media/platform/sti/hva/hva-v4l2.c ctx->name, (char *)&f->fmt.pix.pixelformat); f 464 drivers/media/platform/sti/hva/hva-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 471 drivers/media/platform/sti/hva/hva-v4l2.c ctx->max_stream_size = f->fmt.pix.sizeimage; f 472 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.width = f->fmt.pix.width; f 473 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.height = f->fmt.pix.height; f 474 drivers/media/platform/sti/hva/hva-v4l2.c ctx->streaminfo.streamformat = f->fmt.pix.pixelformat; f 480 drivers/media/platform/sti/hva/hva-v4l2.c static int hva_s_fmt_frame(struct file *file, void *fh, struct v4l2_format *f) f 484 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_pix_format *pix = &f->fmt.pix; f 488 drivers/media/platform/sti/hva/hva-v4l2.c ret = hva_try_fmt_frame(file, fh, f); f 495 drivers/media/platform/sti/hva/hva-v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 16 drivers/media/platform/sti/hva/hva.h #define fh_to_ctx(f) (container_of(f, struct hva_ctx, fh)) f 963 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_try_fmt(struct stm32_dcmi *dcmi, struct v4l2_format *f, f 969 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1051 drivers/media/platform/stm32/stm32-dcmi.c static int dcmi_set_fmt(struct stm32_dcmi *dcmi, struct v4l2_format *f) f 1059 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_pix_format *pix = &f->fmt.pix; f 1068 drivers/media/platform/stm32/stm32-dcmi.c ret = dcmi_try_fmt(dcmi, f, &sd_format, &sd_framesize); f 1092 drivers/media/platform/stm32/stm32-dcmi.c dcmi->fmt = *f; f 1100 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_format *f) f 1107 drivers/media/platform/stm32/stm32-dcmi.c return dcmi_set_fmt(dcmi, f); f 1111 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_format *f) f 1115 drivers/media/platform/stm32/stm32-dcmi.c return dcmi_try_fmt(dcmi, f, NULL, NULL); f 1119 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_fmtdesc *f) f 1123 drivers/media/platform/stm32/stm32-dcmi.c if (f->index >= dcmi->num_of_sd_formats) f 1126 drivers/media/platform/stm32/stm32-dcmi.c f->pixelformat = dcmi->sd_formats[f->index]->fourcc; f 1537 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_format f = { f 1548 drivers/media/platform/stm32/stm32-dcmi.c ret = dcmi_try_fmt(dcmi, &f, NULL, NULL); f 1552 drivers/media/platform/stm32/stm32-dcmi.c dcmi->fmt = f; f 140 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_format *f) f 144 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp); f 150 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_format *f) f 154 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c _sun4i_csi_try_fmt(csi, &f->fmt.pix_mp); f 155 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c csi->fmt = f->fmt.pix_mp; f 161 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_format *f) f 165 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c f->fmt.pix_mp = csi->fmt; f 171 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_fmtdesc *f) f 173 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c if (f->index >= ARRAY_SIZE(sun4i_csi_formats)) f 176 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c f->pixelformat = sun4i_csi_formats[f->index].fourcc; f 328 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_fmtdesc *f) f 330 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c u32 index = f->index; f 335 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c f->pixelformat = supported_pixformats[index]; f 351 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_format *f) f 353 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_pix_format *pixfmt = &f->fmt.pix; f 377 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c static int sun6i_video_set_fmt(struct sun6i_video *video, struct v4l2_format *f) f 381 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c ret = sun6i_video_try_fmt(video, f); f 385 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c video->fmt = *f; f 391 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_format *f) f 398 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c return sun6i_video_set_fmt(video, f); f 402 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_format *f) f 406 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c return sun6i_video_try_fmt(video, f); f 918 drivers/media/platform/ti-vpe/cal.c struct v4l2_fmtdesc *f) f 923 drivers/media/platform/ti-vpe/cal.c if (f->index >= ctx->num_active_fmt) f 926 drivers/media/platform/ti-vpe/cal.c fmt = ctx->active_fmt[f->index]; f 928 drivers/media/platform/ti-vpe/cal.c f->pixelformat = fmt->fourcc; f 929 drivers/media/platform/ti-vpe/cal.c f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; f 978 drivers/media/platform/ti-vpe/cal.c struct v4l2_format *f) f 985 drivers/media/platform/ti-vpe/cal.c v4l_bound_align_image(&f->fmt.pix.width, 48, MAX_WIDTH, 2, f 986 drivers/media/platform/ti-vpe/cal.c &f->fmt.pix.height, 32, MAX_HEIGHT, 0, 0); f 987 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline = bytes_per_line(f->fmt.pix.width, f 989 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.sizeimage = f->fmt.pix.height * f 990 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline; f 993 drivers/media/platform/ti-vpe/cal.c __func__, fourcc_to_str(f->fmt.pix.pixelformat), f 994 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.width, f->fmt.pix.height, f 995 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.bytesperline, f->fmt.pix.sizeimage); f 1001 drivers/media/platform/ti-vpe/cal.c struct v4l2_format *f) f 1005 drivers/media/platform/ti-vpe/cal.c *f = ctx->v_fmt; f 1011 drivers/media/platform/ti-vpe/cal.c struct v4l2_format *f) f 1018 drivers/media/platform/ti-vpe/cal.c fmt = find_format_by_pix(ctx, f->fmt.pix.pixelformat); f 1021 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.pixelformat); f 1025 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.pixelformat = fmt->fourcc; f 1028 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.field = ctx->v_fmt.fmt.pix.field; f 1042 drivers/media/platform/ti-vpe/cal.c if ((f->fmt.pix.width == fse.max_width) && f 1043 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height == fse.max_height)) { f 1046 drivers/media/platform/ti-vpe/cal.c } else if ((f->fmt.pix.width >= fse.min_width) && f 1047 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.width <= fse.max_width) && f 1048 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height >= fse.min_height) && f 1049 drivers/media/platform/ti-vpe/cal.c (f->fmt.pix.height <= fse.max_height)) { f 1057 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.width = ctx->v_fmt.fmt.pix.width; f 1058 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.height = ctx->v_fmt.fmt.pix.height; f 1065 drivers/media/platform/ti-vpe/cal.c f->fmt.pix.colorspace = ctx->v_fmt.fmt.pix.colorspace; f 1066 drivers/media/platform/ti-vpe/cal.c return cal_calc_format_size(ctx, fmt, f); f 1070 drivers/media/platform/ti-vpe/cal.c struct v4l2_format *f) f 1083 drivers/media/platform/ti-vpe/cal.c ret = cal_try_fmt_vid_cap(file, priv, f); f 1087 drivers/media/platform/ti-vpe/cal.c fmt = find_format_by_pix(ctx, f->fmt.pix.pixelformat); f 1089 drivers/media/platform/ti-vpe/cal.c v4l2_fill_mbus_format(&mbus_fmt, &f->fmt.pix, fmt->code); f 1109 drivers/media/platform/ti-vpe/cal.c *f = ctx->v_fmt; f 1060 drivers/media/platform/ti-vpe/vpdma.c static void vpdma_firmware_cb(const struct firmware *f, void *context) f 1068 drivers/media/platform/ti-vpe/vpdma.c if (!f || !f->data) { f 1080 drivers/media/platform/ti-vpe/vpdma.c r = vpdma_alloc_desc_buf(&fw_dma_buf, f->size); f 1087 drivers/media/platform/ti-vpe/vpdma.c memcpy(fw_dma_buf.addr, f->data, f->size); f 1113 drivers/media/platform/ti-vpe/vpdma.c release_firmware(f); f 355 drivers/media/platform/ti-vpe/vpe.c static struct vpe_fmt *find_format(struct v4l2_format *f) f 357 drivers/media/platform/ti-vpe/vpe.c return __find_format(f->fmt.pix.pixelformat); f 1501 drivers/media/platform/ti-vpe/vpe.c static int __enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 1509 drivers/media/platform/ti-vpe/vpe.c if (index == f->index) { f 1520 drivers/media/platform/ti-vpe/vpe.c f->pixelformat = fmt->fourcc; f 1525 drivers/media/platform/ti-vpe/vpe.c struct v4l2_fmtdesc *f) f 1527 drivers/media/platform/ti-vpe/vpe.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 1528 drivers/media/platform/ti-vpe/vpe.c return __enum_fmt(f, VPE_FMT_TYPE_OUTPUT); f 1530 drivers/media/platform/ti-vpe/vpe.c return __enum_fmt(f, VPE_FMT_TYPE_CAPTURE); f 1533 drivers/media/platform/ti-vpe/vpe.c static int vpe_g_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1535 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 1541 drivers/media/platform/ti-vpe/vpe.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 1545 drivers/media/platform/ti-vpe/vpe.c q_data = get_q_data(ctx, f->type); f 1552 drivers/media/platform/ti-vpe/vpe.c if (V4L2_TYPE_IS_OUTPUT(f->type)) { f 1573 drivers/media/platform/ti-vpe/vpe.c static int __vpe_try_fmt(struct vpe_ctx *ctx, struct v4l2_format *f, f 1576 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 1698 drivers/media/platform/ti-vpe/vpe.c static int vpe_try_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1701 drivers/media/platform/ti-vpe/vpe.c struct vpe_fmt *fmt = find_format(f); f 1703 drivers/media/platform/ti-vpe/vpe.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 1704 drivers/media/platform/ti-vpe/vpe.c return __vpe_try_fmt(ctx, f, fmt, VPE_FMT_TYPE_OUTPUT); f 1706 drivers/media/platform/ti-vpe/vpe.c return __vpe_try_fmt(ctx, f, fmt, VPE_FMT_TYPE_CAPTURE); f 1709 drivers/media/platform/ti-vpe/vpe.c static int __vpe_s_fmt(struct vpe_ctx *ctx, struct v4l2_format *f) f 1711 drivers/media/platform/ti-vpe/vpe.c struct v4l2_pix_format_mplane *pix = &f->fmt.pix_mp; f 1717 drivers/media/platform/ti-vpe/vpe.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 1726 drivers/media/platform/ti-vpe/vpe.c q_data = get_q_data(ctx, f->type); f 1730 drivers/media/platform/ti-vpe/vpe.c q_data->fmt = find_format(f); f 1761 drivers/media/platform/ti-vpe/vpe.c f->type, q_data->width, q_data->height, q_data->fmt->fourcc, f 1770 drivers/media/platform/ti-vpe/vpe.c static int vpe_s_fmt(struct file *file, void *priv, struct v4l2_format *f) f 1775 drivers/media/platform/ti-vpe/vpe.c ret = vpe_try_fmt(file, priv, f); f 1779 drivers/media/platform/ti-vpe/vpe.c ret = __vpe_s_fmt(ctx, f); f 1783 drivers/media/platform/ti-vpe/vpe.c if (V4L2_TYPE_IS_OUTPUT(f->type)) f 824 drivers/media/platform/via-camera.c struct via_format *f = via_find_format(userfmt->pixelformat); f 826 drivers/media/platform/via-camera.c sensorfmt->bytesperline = sensorfmt->width * f->bpp; f 850 drivers/media/platform/via-camera.c struct via_format *f = via_find_format(upix->pixelformat); f 852 drivers/media/platform/via-camera.c upix->pixelformat = f->pixelformat; f 854 drivers/media/platform/via-camera.c v4l2_fill_mbus_format(&format.format, spix, f->mbus_code); f 888 drivers/media/platform/via-camera.c struct via_format *f = via_find_format(fmt->fmt.pix.pixelformat); f 908 drivers/media/platform/via-camera.c cam->mbus_code = f->mbus_code; f 714 drivers/media/platform/vicodec/vicodec-core.c static int enum_fmt(struct v4l2_fmtdesc *f, struct vicodec_ctx *ctx, f 719 drivers/media/platform/vicodec/vicodec-core.c if (V4L2_TYPE_IS_MULTIPLANAR(f->type) && !multiplanar) f 721 drivers/media/platform/vicodec/vicodec-core.c if (!V4L2_TYPE_IS_MULTIPLANAR(f->type) && multiplanar) f 726 drivers/media/platform/vicodec/vicodec-core.c get_q_data(ctx, f->type)->info; f 730 drivers/media/platform/vicodec/vicodec-core.c info = v4l2_fwht_get_pixfmt(f->index); f 736 drivers/media/platform/vicodec/vicodec-core.c f->index); f 739 drivers/media/platform/vicodec/vicodec-core.c f->pixelformat = info->id; f 741 drivers/media/platform/vicodec/vicodec-core.c if (f->index) f 743 drivers/media/platform/vicodec/vicodec-core.c f->pixelformat = ctx->is_stateless ? f 746 drivers/media/platform/vicodec/vicodec-core.c f->flags = V4L2_FMT_FLAG_DYN_RESOLUTION | f 753 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_fmtdesc *f) f 757 drivers/media/platform/vicodec/vicodec-core.c return enum_fmt(f, ctx, false); f 761 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_fmtdesc *f) f 765 drivers/media/platform/vicodec/vicodec-core.c return enum_fmt(f, ctx, true); f 768 drivers/media/platform/vicodec/vicodec-core.c static int vidioc_g_fmt(struct vicodec_ctx *ctx, struct v4l2_format *f) f 776 drivers/media/platform/vicodec/vicodec-core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 780 drivers/media/platform/vicodec/vicodec-core.c q_data = get_q_data(ctx, f->type); f 783 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 788 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 806 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 830 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 832 drivers/media/platform/vicodec/vicodec-core.c return vidioc_g_fmt(file2ctx(file), f); f 836 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 838 drivers/media/platform/vicodec/vicodec-core.c return vidioc_g_fmt(file2ctx(file), f); f 841 drivers/media/platform/vicodec/vicodec-core.c static int vidioc_try_fmt(struct vicodec_ctx *ctx, struct v4l2_format *f) f 849 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 852 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 873 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 905 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 911 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 915 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 917 drivers/media/platform/vicodec/vicodec-core.c find_fmt(f->fmt.pix.pixelformat)->id; f 926 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 938 drivers/media/platform/vicodec/vicodec-core.c return vidioc_try_fmt(ctx, f); f 942 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 948 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 952 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 965 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 979 drivers/media/platform/vicodec/vicodec-core.c return vidioc_try_fmt(ctx, f); f 982 drivers/media/platform/vicodec/vicodec-core.c static int vidioc_s_fmt(struct vicodec_ctx *ctx, struct v4l2_format *f) f 990 drivers/media/platform/vicodec/vicodec-core.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 994 drivers/media/platform/vicodec/vicodec-core.c q_data = get_q_data(ctx, f->type); f 998 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 1001 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 1002 drivers/media/platform/vicodec/vicodec-core.c if (ctx->is_enc && V4L2_TYPE_IS_OUTPUT(f->type)) f 1024 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 1025 drivers/media/platform/vicodec/vicodec-core.c if (ctx->is_enc && V4L2_TYPE_IS_OUTPUT(f->type)) f 1051 drivers/media/platform/vicodec/vicodec-core.c f->type, q_data->coded_width, q_data->coded_height, f 1058 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 1062 drivers/media/platform/vicodec/vicodec-core.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 1066 drivers/media/platform/vicodec/vicodec-core.c return vidioc_s_fmt(file2ctx(file), f); f 1070 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_format *f) f 1081 drivers/media/platform/vicodec/vicodec-core.c q_data = get_q_data(ctx, f->type); f 1084 drivers/media/platform/vicodec/vicodec-core.c ret = vidioc_try_fmt_vid_out(file, priv, f); f 1089 drivers/media/platform/vicodec/vicodec-core.c struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 1095 drivers/media/platform/vicodec/vicodec-core.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { f 1096 drivers/media/platform/vicodec/vicodec-core.c coded_w = f->fmt.pix.width; f 1097 drivers/media/platform/vicodec/vicodec-core.c coded_h = f->fmt.pix.height; f 1099 drivers/media/platform/vicodec/vicodec-core.c coded_w = f->fmt.pix_mp.width; f 1100 drivers/media/platform/vicodec/vicodec-core.c coded_h = f->fmt.pix_mp.height; f 1114 drivers/media/platform/vicodec/vicodec-core.c ret = vidioc_s_fmt(file2ctx(file), f); f 1124 drivers/media/platform/vicodec/vicodec-core.c switch (f->type) { f 1126 drivers/media/platform/vicodec/vicodec-core.c pix = &f->fmt.pix; f 1133 drivers/media/platform/vicodec/vicodec-core.c pix_mp = &f->fmt.pix_mp; f 669 drivers/media/platform/vim2m.c static int enum_fmt(struct v4l2_fmtdesc *f, u32 type) f 679 drivers/media/platform/vim2m.c if (num == f->index) f 692 drivers/media/platform/vim2m.c f->pixelformat = fmt->fourcc; f 701 drivers/media/platform/vim2m.c struct v4l2_fmtdesc *f) f 703 drivers/media/platform/vim2m.c return enum_fmt(f, MEM2MEM_CAPTURE); f 707 drivers/media/platform/vim2m.c struct v4l2_fmtdesc *f) f 709 drivers/media/platform/vim2m.c return enum_fmt(f, MEM2MEM_OUTPUT); f 733 drivers/media/platform/vim2m.c static int vidioc_g_fmt(struct vim2m_ctx *ctx, struct v4l2_format *f) f 738 drivers/media/platform/vim2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 742 drivers/media/platform/vim2m.c q_data = get_q_data(ctx, f->type); f 746 drivers/media/platform/vim2m.c f->fmt.pix.width = q_data->width; f 747 drivers/media/platform/vim2m.c f->fmt.pix.height = q_data->height; f 748 drivers/media/platform/vim2m.c f->fmt.pix.field = V4L2_FIELD_NONE; f 749 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = q_data->fmt->fourcc; f 750 drivers/media/platform/vim2m.c f->fmt.pix.bytesperline = (q_data->width * q_data->fmt->depth) >> 3; f 751 drivers/media/platform/vim2m.c f->fmt.pix.sizeimage = q_data->sizeimage; f 752 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = ctx->colorspace; f 753 drivers/media/platform/vim2m.c f->fmt.pix.xfer_func = ctx->xfer_func; f 754 drivers/media/platform/vim2m.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 755 drivers/media/platform/vim2m.c f->fmt.pix.quantization = ctx->quant; f 761 drivers/media/platform/vim2m.c struct v4l2_format *f) f 763 drivers/media/platform/vim2m.c return vidioc_g_fmt(file2ctx(file), f); f 767 drivers/media/platform/vim2m.c struct v4l2_format *f) f 769 drivers/media/platform/vim2m.c return vidioc_g_fmt(file2ctx(file), f); f 772 drivers/media/platform/vim2m.c static int vidioc_try_fmt(struct v4l2_format *f, struct vim2m_fmt *fmt) f 779 drivers/media/platform/vim2m.c if (f->fmt.pix.height < MIN_H) f 780 drivers/media/platform/vim2m.c f->fmt.pix.height = MIN_H; f 781 drivers/media/platform/vim2m.c else if (f->fmt.pix.height > MAX_H) f 782 drivers/media/platform/vim2m.c f->fmt.pix.height = MAX_H; f 784 drivers/media/platform/vim2m.c if (f->fmt.pix.width < MIN_W) f 785 drivers/media/platform/vim2m.c f->fmt.pix.width = MIN_W; f 786 drivers/media/platform/vim2m.c else if (f->fmt.pix.width > MAX_W) f 787 drivers/media/platform/vim2m.c f->fmt.pix.width = MAX_W; f 789 drivers/media/platform/vim2m.c get_alignment(f->fmt.pix.pixelformat, &walign, &halign); f 790 drivers/media/platform/vim2m.c f->fmt.pix.width &= ~(walign - 1); f 791 drivers/media/platform/vim2m.c f->fmt.pix.height &= ~(halign - 1); f 792 drivers/media/platform/vim2m.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 793 drivers/media/platform/vim2m.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 794 drivers/media/platform/vim2m.c f->fmt.pix.field = V4L2_FIELD_NONE; f 800 drivers/media/platform/vim2m.c struct v4l2_format *f) f 805 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); f 807 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = formats[0].fourcc; f 808 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); f 813 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat); f 816 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = ctx->colorspace; f 817 drivers/media/platform/vim2m.c f->fmt.pix.xfer_func = ctx->xfer_func; f 818 drivers/media/platform/vim2m.c f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; f 819 drivers/media/platform/vim2m.c f->fmt.pix.quantization = ctx->quant; f 821 drivers/media/platform/vim2m.c return vidioc_try_fmt(f, fmt); f 825 drivers/media/platform/vim2m.c struct v4l2_format *f) f 830 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); f 832 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat = formats[0].fourcc; f 833 drivers/media/platform/vim2m.c fmt = find_format(f->fmt.pix.pixelformat); f 838 drivers/media/platform/vim2m.c f->fmt.pix.pixelformat); f 841 drivers/media/platform/vim2m.c if (!f->fmt.pix.colorspace) f 842 drivers/media/platform/vim2m.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f 844 drivers/media/platform/vim2m.c return vidioc_try_fmt(f, fmt); f 847 drivers/media/platform/vim2m.c static int vidioc_s_fmt(struct vim2m_ctx *ctx, struct v4l2_format *f) f 852 drivers/media/platform/vim2m.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 856 drivers/media/platform/vim2m.c q_data = get_q_data(ctx, f->type); f 865 drivers/media/platform/vim2m.c q_data->fmt = find_format(f->fmt.pix.pixelformat); f 866 drivers/media/platform/vim2m.c q_data->width = f->fmt.pix.width; f 867 drivers/media/platform/vim2m.c q_data->height = f->fmt.pix.height; f 873 drivers/media/platform/vim2m.c type_name(f->type), q_data->width, q_data->height, f 884 drivers/media/platform/vim2m.c struct v4l2_format *f) f 888 drivers/media/platform/vim2m.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 892 drivers/media/platform/vim2m.c return vidioc_s_fmt(file2ctx(file), f); f 896 drivers/media/platform/vim2m.c struct v4l2_format *f) f 901 drivers/media/platform/vim2m.c ret = vidioc_try_fmt_vid_out(file, priv, f); f 905 drivers/media/platform/vim2m.c ret = vidioc_s_fmt(file2ctx(file), f); f 907 drivers/media/platform/vim2m.c ctx->colorspace = f->fmt.pix.colorspace; f 908 drivers/media/platform/vim2m.c ctx->xfer_func = f->fmt.pix.xfer_func; f 909 drivers/media/platform/vim2m.c ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; f 910 drivers/media/platform/vim2m.c ctx->quant = f->fmt.pix.quantization; f 81 drivers/media/platform/vimc/vimc-capture.c struct v4l2_format *f) f 85 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix = vcap->format; f 91 drivers/media/platform/vimc/vimc-capture.c struct v4l2_format *f) f 93 drivers/media/platform/vimc/vimc-capture.c struct v4l2_pix_format *format = &f->fmt.pix; f 120 drivers/media/platform/vimc/vimc-capture.c struct v4l2_format *f) f 129 drivers/media/platform/vimc/vimc-capture.c ret = vimc_cap_try_fmt_vid_cap(file, priv, f); f 142 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.width, f->fmt.pix.height, f 143 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.pixelformat, f->fmt.pix.colorspace, f 144 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.quantization, f->fmt.pix.xfer_func, f 145 drivers/media/platform/vimc/vimc-capture.c f->fmt.pix.ycbcr_enc); f 147 drivers/media/platform/vimc/vimc-capture.c vcap->format = f->fmt.pix; f 153 drivers/media/platform/vimc/vimc-capture.c struct v4l2_fmtdesc *f) f 155 drivers/media/platform/vimc/vimc-capture.c const struct vimc_pix_map *vpix = vimc_pix_map_by_index(f->index); f 160 drivers/media/platform/vimc/vimc-capture.c f->pixelformat = vpix->pixelformat; f 328 drivers/media/platform/vivid/vivid-core.c int type, struct v4l2_fract *f) f 333 drivers/media/platform/vivid/vivid-core.c return vivid_vid_cap_g_pixelaspect(file, fh, type, f); f 334 drivers/media/platform/vivid/vivid-core.c return vivid_vid_out_g_pixelaspect(file, fh, type, f); f 442 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 444 drivers/media/platform/vivid/vivid-sdr-cap.c if (f->index >= ARRAY_SIZE(formats)) f 446 drivers/media/platform/vivid/vivid-sdr-cap.c f->pixelformat = formats[f->index].pixelformat; f 450 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) f 454 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.pixelformat = dev->sdr_pixelformat; f 455 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.buffersize = dev->sdr_buffersize; f 456 drivers/media/platform/vivid/vivid-sdr-cap.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 460 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) f 469 drivers/media/platform/vivid/vivid-sdr-cap.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 471 drivers/media/platform/vivid/vivid-sdr-cap.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 474 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.buffersize = formats[i].buffersize; f 480 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 481 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.buffersize = formats[0].buffersize; f 485 drivers/media/platform/vivid/vivid-sdr-cap.c int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f) f 489 drivers/media/platform/vivid/vivid-sdr-cap.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 491 drivers/media/platform/vivid/vivid-sdr-cap.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 492 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.buffersize = formats[i].buffersize; f 496 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 497 drivers/media/platform/vivid/vivid-sdr-cap.c f->fmt.sdr.buffersize = formats[0].buffersize; f 16 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_enum_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f); f 17 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_g_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); f 18 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_s_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); f 19 drivers/media/platform/vivid/vivid-sdr-cap.h int vidioc_try_fmt_sdr_cap(struct file *file, void *fh, struct v4l2_format *f); f 238 drivers/media/platform/vivid/vivid-vbi-cap.c struct v4l2_format *f) f 241 drivers/media/platform/vivid/vivid-vbi-cap.c struct v4l2_vbi_format *vbi = &f->fmt.vbi; f 251 drivers/media/platform/vivid/vivid-vbi-cap.c struct v4l2_format *f) f 254 drivers/media/platform/vivid/vivid-vbi-cap.c int ret = vidioc_g_fmt_vbi_cap(file, priv, f); f 16 drivers/media/platform/vivid/vivid-vbi-cap.h struct v4l2_format *f); f 18 drivers/media/platform/vivid/vivid-vbi-cap.h struct v4l2_format *f); f 137 drivers/media/platform/vivid/vivid-vbi-out.c struct v4l2_format *f) f 140 drivers/media/platform/vivid/vivid-vbi-out.c struct v4l2_vbi_format *vbi = &f->fmt.vbi; f 160 drivers/media/platform/vivid/vivid-vbi-out.c struct v4l2_format *f) f 163 drivers/media/platform/vivid/vivid-vbi-out.c int ret = vidioc_g_fmt_vbi_out(file, priv, f); f 13 drivers/media/platform/vivid/vivid-vbi-out.h struct v4l2_format *f); f 15 drivers/media/platform/vivid/vivid-vbi-out.h struct v4l2_format *f); f 524 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 527 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 553 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 555 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 648 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 650 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 655 drivers/media/platform/vivid/vivid-vid-cap.c int ret = vivid_try_fmt_vid_cap(file, priv, f); f 776 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 782 drivers/media/platform/vivid/vivid-vid-cap.c return vivid_g_fmt_vid_cap(file, priv, f); f 786 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 792 drivers/media/platform/vivid/vivid-vid-cap.c return vivid_try_fmt_vid_cap(file, priv, f); f 796 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 802 drivers/media/platform/vivid/vivid-vid-cap.c return vivid_s_fmt_vid_cap(file, priv, f); f 806 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 812 drivers/media/platform/vivid/vivid-vid-cap.c return fmt_sp2mp_func(file, priv, f, vivid_g_fmt_vid_cap); f 816 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 822 drivers/media/platform/vivid/vivid-vid-cap.c return fmt_sp2mp_func(file, priv, f, vivid_try_fmt_vid_cap); f 826 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 832 drivers/media/platform/vivid/vivid-vid-cap.c return fmt_sp2mp_func(file, priv, f, vivid_s_fmt_vid_cap); f 1018 drivers/media/platform/vivid/vivid-vid-cap.c int type, struct v4l2_fract *f) f 1027 drivers/media/platform/vivid/vivid-vid-cap.c f->numerator = 11; f 1028 drivers/media/platform/vivid/vivid-vid-cap.c f->denominator = 10; f 1031 drivers/media/platform/vivid/vivid-vid-cap.c f->numerator = 54; f 1032 drivers/media/platform/vivid/vivid-vid-cap.c f->denominator = 59; f 1041 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_fmtdesc *f) f 1049 drivers/media/platform/vivid/vivid-vid-cap.c if (f->index >= ARRAY_SIZE(formats_ovl)) f 1052 drivers/media/platform/vivid/vivid-vid-cap.c fmt = &formats_ovl[f->index]; f 1054 drivers/media/platform/vivid/vivid-vid-cap.c f->pixelformat = fmt->fourcc; f 1059 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 1063 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; f 1093 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 1097 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; f 1151 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_format *f) f 1155 drivers/media/platform/vivid/vivid-vid-cap.c struct v4l2_window *win = &f->fmt.win; f 1156 drivers/media/platform/vivid/vivid-vid-cap.c int ret = vidioc_try_fmt_vid_overlay(file, priv, f); f 20 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 21 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 22 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 23 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_g_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); f 24 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_try_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); f 25 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_s_fmt_vid_cap_mplane(struct file *file, void *priv, struct v4l2_format *f); f 26 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 27 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 28 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f); f 31 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f); f 32 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_enum_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_fmtdesc *f); f 33 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_g_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f); f 34 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_try_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f); f 35 drivers/media/platform/vivid/vivid-vid-cap.h int vidioc_s_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f); f 834 drivers/media/platform/vivid/vivid-vid-common.c struct v4l2_format *f, fmtfunc func) f 839 drivers/media/platform/vivid/vivid-vid-common.c struct v4l2_pix_format *pix = &f->fmt.pix; f 843 drivers/media/platform/vivid/vivid-vid-common.c fmt_sp2mp(f, &fmt); f 911 drivers/media/platform/vivid/vivid-vid-common.c struct v4l2_fmtdesc *f) f 916 drivers/media/platform/vivid/vivid-vid-common.c if (f->index >= ARRAY_SIZE(vivid_formats) - f 920 drivers/media/platform/vivid/vivid-vid-common.c fmt = &vivid_formats[f->index]; f 922 drivers/media/platform/vivid/vivid-vid-common.c f->pixelformat = fmt->fourcc; f 11 drivers/media/platform/vivid/vivid-vid-common.h typedef int (*fmtfunc)(struct file *file, void *priv, struct v4l2_format *f); f 19 drivers/media/platform/vivid/vivid-vid-common.h struct v4l2_format *f, fmtfunc func); f 30 drivers/media/platform/vivid/vivid-vid-common.h int vivid_enum_fmt_vid(struct file *file, void *priv, struct v4l2_fmtdesc *f); f 318 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 321 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 350 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 354 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 448 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 450 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; f 455 drivers/media/platform/vivid/vivid-vid-out.c int ret = vivid_try_fmt_vid_out(file, priv, f); f 576 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 582 drivers/media/platform/vivid/vivid-vid-out.c return vivid_g_fmt_vid_out(file, priv, f); f 586 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 592 drivers/media/platform/vivid/vivid-vid-out.c return vivid_try_fmt_vid_out(file, priv, f); f 596 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 602 drivers/media/platform/vivid/vivid-vid-out.c return vivid_s_fmt_vid_out(file, priv, f); f 606 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 612 drivers/media/platform/vivid/vivid-vid-out.c return fmt_sp2mp_func(file, priv, f, vivid_g_fmt_vid_out); f 616 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 622 drivers/media/platform/vivid/vivid-vid-out.c return fmt_sp2mp_func(file, priv, f, vivid_try_fmt_vid_out); f 626 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 632 drivers/media/platform/vivid/vivid-vid-out.c return fmt_sp2mp_func(file, priv, f, vivid_s_fmt_vid_out); f 811 drivers/media/platform/vivid/vivid-vid-out.c int type, struct v4l2_fract *f) f 820 drivers/media/platform/vivid/vivid-vid-out.c f->numerator = 11; f 821 drivers/media/platform/vivid/vivid-vid-out.c f->denominator = 10; f 824 drivers/media/platform/vivid/vivid-vid-out.c f->numerator = 54; f 825 drivers/media/platform/vivid/vivid-vid-out.c f->denominator = 59; f 834 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 838 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; f 869 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 873 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; f 927 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_format *f) f 931 drivers/media/platform/vivid/vivid-vid-out.c struct v4l2_window *win = &f->fmt.win; f 932 drivers/media/platform/vivid/vivid-vid-out.c int ret = vidioc_try_fmt_vid_out_overlay(file, priv, f); f 15 drivers/media/platform/vivid/vivid-vid-out.h int vivid_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 16 drivers/media/platform/vivid/vivid-vid-out.h int vivid_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 17 drivers/media/platform/vivid/vivid-vid-out.h int vivid_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 18 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_g_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); f 19 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_try_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); f 20 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_s_fmt_vid_out_mplane(struct file *file, void *priv, struct v4l2_format *f); f 21 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_g_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 22 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_try_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 23 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f); f 26 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f); f 27 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_enum_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_fmtdesc *f); f 28 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_g_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f); f 29 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_try_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f); f 30 drivers/media/platform/vivid/vivid-vid-out.h int vidioc_s_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f); f 72 drivers/media/platform/vsp1/vsp1.h #define vsp1_feature(vsp1, f) ((vsp1)->info->features & (f)) f 439 drivers/media/platform/vsp1/vsp1_histo.c struct v4l2_fmtdesc *f) f 444 drivers/media/platform/vsp1/vsp1_histo.c if (f->index > 0 || f->type != histo->queue.type) f 447 drivers/media/platform/vsp1/vsp1_histo.c f->pixelformat = histo->meta_format; f 511 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 516 drivers/media/platform/xilinx/xilinx-dma.c if (f->index > 0) f 519 drivers/media/platform/xilinx/xilinx-dma.c f->pixelformat = dma->format.pixelformat; f 83 drivers/media/radio/dsbr100.c unsigned f = (freq / 16 * 80) / 1000 + 856; f 91 drivers/media/radio/dsbr100.c (f >> 8) & 0x00ff, f & 0xff, f 202 drivers/media/radio/dsbr100.c const struct v4l2_frequency *f) f 206 drivers/media/radio/dsbr100.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 209 drivers/media/radio/dsbr100.c return dsbr100_setfreq(radio, clamp_t(unsigned, f->frequency, f 214 drivers/media/radio/dsbr100.c struct v4l2_frequency *f) f 218 drivers/media/radio/dsbr100.c if (f->tuner) f 220 drivers/media/radio/dsbr100.c f->type = V4L2_TUNER_RADIO; f 221 drivers/media/radio/dsbr100.c f->frequency = radio->curfreq; f 411 drivers/media/radio/radio-cadet.c struct v4l2_frequency *f) f 415 drivers/media/radio/radio-cadet.c if (f->tuner) f 417 drivers/media/radio/radio-cadet.c f->type = V4L2_TUNER_RADIO; f 418 drivers/media/radio/radio-cadet.c f->frequency = dev->curfreq; f 424 drivers/media/radio/radio-cadet.c const struct v4l2_frequency *f) f 428 drivers/media/radio/radio-cadet.c if (f->tuner) f 431 drivers/media/radio/radio-cadet.c f->frequency >= (bands[0].rangehigh + bands[1].rangelow) / 2; f 432 drivers/media/radio/radio-cadet.c cadet_setfreq(dev, f->frequency); f 89 drivers/media/radio/radio-isa.c const struct v4l2_frequency *f) f 92 drivers/media/radio/radio-isa.c u32 freq = f->frequency; f 95 drivers/media/radio/radio-isa.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 105 drivers/media/radio/radio-isa.c struct v4l2_frequency *f) f 109 drivers/media/radio/radio-isa.c if (f->tuner != 0) f 111 drivers/media/radio/radio-isa.c f->type = V4L2_TUNER_RADIO; f 112 drivers/media/radio/radio-isa.c f->frequency = isa->freq; f 203 drivers/media/radio/radio-keene.c const struct v4l2_frequency *f) f 206 drivers/media/radio/radio-keene.c unsigned freq = f->frequency; f 208 drivers/media/radio/radio-keene.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 215 drivers/media/radio/radio-keene.c struct v4l2_frequency *f) f 219 drivers/media/radio/radio-keene.c if (f->tuner != 0) f 221 drivers/media/radio/radio-keene.c f->type = V4L2_TUNER_RADIO; f 222 drivers/media/radio/radio-keene.c f->frequency = radio->curfreq; f 245 drivers/media/radio/radio-ma901.c const struct v4l2_frequency *f) f 249 drivers/media/radio/radio-ma901.c if (f->tuner != 0) f 252 drivers/media/radio/radio-ma901.c return ma901radio_set_freq(radio, clamp_t(unsigned, f->frequency, f 258 drivers/media/radio/radio-ma901.c struct v4l2_frequency *f) f 262 drivers/media/radio/radio-ma901.c if (f->tuner != 0) f 264 drivers/media/radio/radio-ma901.c f->frequency = radio->curfreq; f 270 drivers/media/radio/radio-miropcm20.c struct v4l2_frequency *f) f 274 drivers/media/radio/radio-miropcm20.c if (f->tuner != 0) f 277 drivers/media/radio/radio-miropcm20.c f->type = V4L2_TUNER_RADIO; f 278 drivers/media/radio/radio-miropcm20.c f->frequency = dev->freq; f 284 drivers/media/radio/radio-miropcm20.c const struct v4l2_frequency *f) f 288 drivers/media/radio/radio-miropcm20.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 291 drivers/media/radio/radio-miropcm20.c dev->freq = clamp_t(u32, f->frequency, 87 * 16000U, 108 * 16000U); f 314 drivers/media/radio/radio-mr800.c const struct v4l2_frequency *f) f 318 drivers/media/radio/radio-mr800.c if (f->tuner != 0) f 320 drivers/media/radio/radio-mr800.c return amradio_set_freq(radio, f->frequency); f 325 drivers/media/radio/radio-mr800.c struct v4l2_frequency *f) f 329 drivers/media/radio/radio-mr800.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 331 drivers/media/radio/radio-mr800.c f->type = V4L2_TUNER_RADIO; f 332 drivers/media/radio/radio-mr800.c f->frequency = radio->curfreq; f 240 drivers/media/radio/radio-raremono.c const struct v4l2_frequency *f) f 246 drivers/media/radio/radio-raremono.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 249 drivers/media/radio/radio-raremono.c if (f->frequency >= (FM_FREQ_RANGE_LOW + SW_FREQ_RANGE_HIGH) * 8) f 251 drivers/media/radio/radio-raremono.c else if (f->frequency <= (AM_FREQ_RANGE_HIGH + SW_FREQ_RANGE_LOW) * 8) f 256 drivers/media/radio/radio-raremono.c freq = clamp_t(u32, f->frequency, bands[band].rangelow, bands[band].rangehigh); f 261 drivers/media/radio/radio-raremono.c struct v4l2_frequency *f) f 265 drivers/media/radio/radio-raremono.c if (f->tuner != 0) f 267 drivers/media/radio/radio-raremono.c f->type = V4L2_TUNER_RADIO; f 268 drivers/media/radio/radio-raremono.c f->frequency = radio->curfreq * 16; f 165 drivers/media/radio/radio-sf16fmi.c const struct v4l2_frequency *f) f 169 drivers/media/radio/radio-sf16fmi.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 172 drivers/media/radio/radio-sf16fmi.c fmi->curfreq = f->frequency; f 179 drivers/media/radio/radio-sf16fmi.c struct v4l2_frequency *f) f 183 drivers/media/radio/radio-sf16fmi.c if (f->tuner != 0) f 185 drivers/media/radio/radio-sf16fmi.c f->type = V4L2_TUNER_RADIO; f 186 drivers/media/radio/radio-sf16fmi.c f->frequency = fmi->curfreq; f 649 drivers/media/radio/radio-si476x.c struct v4l2_frequency *f) f 654 drivers/media/radio/radio-si476x.c if (f->tuner != 0 || f 655 drivers/media/radio/radio-si476x.c f->type != V4L2_TUNER_RADIO) f 672 drivers/media/radio/radio-si476x.c f->frequency = si476x_to_v4l2(radio->core, f 684 drivers/media/radio/radio-si476x.c const struct v4l2_frequency *f) f 687 drivers/media/radio/radio-si476x.c u32 freq = f->frequency; f 698 drivers/media/radio/radio-si476x.c if (f->tuner != 0 || f 699 drivers/media/radio/radio-si476x.c f->type != V4L2_TUNER_RADIO) f 327 drivers/media/radio/radio-tea5764.c const struct v4l2_frequency *f) f 330 drivers/media/radio/radio-tea5764.c unsigned freq = f->frequency; f 332 drivers/media/radio/radio-tea5764.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 351 drivers/media/radio/radio-tea5764.c struct v4l2_frequency *f) f 356 drivers/media/radio/radio-tea5764.c if (f->tuner != 0) f 359 drivers/media/radio/radio-tea5764.c f->type = V4L2_TUNER_RADIO; f 361 drivers/media/radio/radio-tea5764.c f->frequency = (tea5764_get_freq(radio) * 2) / 125; f 363 drivers/media/radio/radio-tea5764.c f->frequency = 0; f 341 drivers/media/radio/radio-tea5777.c struct v4l2_frequency *f) f 345 drivers/media/radio/radio-tea5777.c if (f->tuner != 0) f 347 drivers/media/radio/radio-tea5777.c f->type = V4L2_TUNER_RADIO; f 348 drivers/media/radio/radio-tea5777.c f->frequency = tea->freq; f 353 drivers/media/radio/radio-tea5777.c const struct v4l2_frequency *f) f 357 drivers/media/radio/radio-tea5777.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 360 drivers/media/radio/radio-tea5777.c if (tea->has_am && f->frequency < (20000 * 16)) f 365 drivers/media/radio/radio-tea5777.c tea->freq = f->frequency; f 55 drivers/media/radio/radio-timb.c const struct v4l2_frequency *f) f 58 drivers/media/radio/radio-timb.c return v4l2_subdev_call(tr->sd_tuner, tuner, s_frequency, f); f 62 drivers/media/radio/radio-timb.c struct v4l2_frequency *f) f 65 drivers/media/radio/radio-timb.c return v4l2_subdev_call(tr->sd_tuner, tuner, g_frequency, f); f 397 drivers/media/radio/radio-wl1273.c int r, f; f 421 drivers/media/radio/radio-wl1273.c f = (freq - WL1273_BAND_JAPAN_LOW) / 50; f 423 drivers/media/radio/radio-wl1273.c f = (freq - WL1273_BAND_OTHER_LOW) / 50; f 425 drivers/media/radio/radio-wl1273.c r = core->write(core, WL1273_FREQ_SET, f); f 457 drivers/media/radio/radio-wl1273.c u16 f; f 461 drivers/media/radio/radio-wl1273.c r = core->read(core, WL1273_FREQ_SET, &f); f 465 drivers/media/radio/radio-wl1273.c dev_dbg(radio->dev, "Freq get: 0x%04x\n", f); f 467 drivers/media/radio/radio-wl1273.c freq = WL1273_BAND_JAPAN_LOW + 50 * f; f 469 drivers/media/radio/radio-wl1273.c freq = WL1273_BAND_OTHER_LOW + 50 * f; f 471 drivers/media/radio/radio-wl1273.c r = core->read(core, WL1273_CHANL_SET, &f); f 475 drivers/media/radio/radio-wl1273.c freq = f * 10; f 789 drivers/media/radio/radio-wl1273.c unsigned int f; f 791 drivers/media/radio/radio-wl1273.c f = radio->rx_frequency; f 792 drivers/media/radio/radio-wl1273.c dev_dbg(radio->dev, "rx_frequency: %d\n", f); f 794 drivers/media/radio/radio-wl1273.c if (dir && f + radio->spacing <= radio->rangehigh) f 795 drivers/media/radio/radio-wl1273.c r = wl1273_fm_set_rx_freq(radio, f + radio->spacing); f 798 drivers/media/radio/radio-wl1273.c else if (f - radio->spacing >= radio->rangelow) f 799 drivers/media/radio/radio-wl1273.c r = wl1273_fm_set_rx_freq(radio, f - radio->spacing); f 846 drivers/media/radio/radio-wl1273.c f = radio->rangelow; f 848 drivers/media/radio/radio-wl1273.c f = radio->rangehigh; f 850 drivers/media/radio/radio-wl1273.c r = wl1273_fm_set_rx_freq(radio, f); f 111 drivers/media/radio/radio-zoltrix.c unsigned long long bitmask, f, m; f 121 drivers/media/radio/radio-zoltrix.c f = (unsigned long long)m + 0x4d1c; f 133 drivers/media/radio/radio-zoltrix.c bitmask = (bitmask ^ ((f & 0xff) << 47) ^ ((f & 0xff00) << 30) ^ (stereo << 31)); f 58 drivers/media/radio/si4713/si4713.c #define si4713_to_v4l2(f) ((f * FREQDEV_UNIT) / FREQV4L2_MULTI) f 59 drivers/media/radio/si4713/si4713.c #define v4l2_to_si4713(f) ((f * FREQV4L2_MULTI) / FREQDEV_UNIT) f 906 drivers/media/radio/si4713/si4713.c u16 f = 0; f 909 drivers/media/radio/si4713/si4713.c rval = si4713_tx_tune_status(sdev, 0x00, &f, &p, &a, &n); f 1046 drivers/media/radio/si4713/si4713.c static int si4713_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f); f 1054 drivers/media/radio/si4713/si4713.c struct v4l2_frequency f; f 1059 drivers/media/radio/si4713/si4713.c f.tuner = 0; f 1060 drivers/media/radio/si4713/si4713.c f.frequency = sdev->frequency ? sdev->frequency : DEFAULT_FREQUENCY; f 1061 drivers/media/radio/si4713/si4713.c f.frequency = si4713_to_v4l2(f.frequency); f 1062 drivers/media/radio/si4713/si4713.c rval = si4713_s_frequency(&sdev->sd, &f); f 1346 drivers/media/radio/si4713/si4713.c static int si4713_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 1351 drivers/media/radio/si4713/si4713.c if (f->tuner) f 1365 drivers/media/radio/si4713/si4713.c f->frequency = si4713_to_v4l2(sdev->frequency); f 1371 drivers/media/radio/si4713/si4713.c static int si4713_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f) f 1375 drivers/media/radio/si4713/si4713.c u16 frequency = v4l2_to_si4713(f->frequency); f 1377 drivers/media/radio/si4713/si4713.c if (f->tuner) f 324 drivers/media/radio/tea575x.c struct v4l2_frequency *f) f 328 drivers/media/radio/tea575x.c if (f->tuner != 0) f 330 drivers/media/radio/tea575x.c f->type = V4L2_TUNER_RADIO; f 331 drivers/media/radio/tea575x.c f->frequency = tea->freq; f 336 drivers/media/radio/tea575x.c const struct v4l2_frequency *f) f 340 drivers/media/radio/tea575x.c if (f->tuner != 0 || f->type != V4L2_TUNER_RADIO) f 343 drivers/media/radio/tea575x.c if (tea->has_am && f->frequency < (20000 * 16)) f 350 drivers/media/radio/tea575x.c tea->freq = clamp_t(u32, f->frequency, bands[tea->band].rangelow, f 91 drivers/media/radio/tef6862.c static int tef6862_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f) f 95 drivers/media/radio/tef6862.c unsigned freq = f->frequency; f 100 drivers/media/radio/tef6862.c if (f->tuner != 0) f 117 drivers/media/radio/tef6862.c static int tef6862_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 121 drivers/media/radio/tef6862.c if (f->tuner != 0) f 123 drivers/media/radio/tef6862.c f->type = V4L2_TUNER_RADIO; f 124 drivers/media/radio/tef6862.c f->frequency = state->freq; f 843 drivers/media/rc/lirc_dev.c struct fd f = fdget(fd); f 847 drivers/media/rc/lirc_dev.c if (!f.file) f 850 drivers/media/rc/lirc_dev.c if (f.file->f_op != &lirc_fops) { f 851 drivers/media/rc/lirc_dev.c fdput(f); f 855 drivers/media/rc/lirc_dev.c fh = f.file->private_data; f 859 drivers/media/rc/lirc_dev.c fdput(f); f 319 drivers/media/tuners/e4000.c static int e4000_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 324 drivers/media/tuners/e4000.c dev_dbg(&client->dev, "tuner=%d\n", f->tuner); f 325 drivers/media/tuners/e4000.c f->frequency = dev->f_frequency; f 330 drivers/media/tuners/e4000.c const struct v4l2_frequency *f) f 336 drivers/media/tuners/e4000.c f->tuner, f->type, f->frequency); f 338 drivers/media/tuners/e4000.c dev->f_frequency = clamp_t(unsigned int, f->frequency, f 14 drivers/media/tuners/fc0013-priv.h #define err(f, arg...) printk(KERN_ERR LOG_PREFIX": " f "\n" , ## arg) f 16 drivers/media/tuners/fc0013-priv.h #define info(f, arg...) printk(KERN_INFO LOG_PREFIX": " f "\n" , ## arg) f 18 drivers/media/tuners/fc0013-priv.h #define warn(f, arg...) printk(KERN_WARNING LOG_PREFIX": " f "\n" , ## arg) f 412 drivers/media/tuners/fc2580.c static int fc2580_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 417 drivers/media/tuners/fc2580.c dev_dbg(&client->dev, "tuner=%d\n", f->tuner); f 418 drivers/media/tuners/fc2580.c f->frequency = dev->f_frequency; f 423 drivers/media/tuners/fc2580.c const struct v4l2_frequency *f) f 429 drivers/media/tuners/fc2580.c f->tuner, f->type, f->frequency); f 431 drivers/media/tuners/fc2580.c dev->f_frequency = clamp_t(unsigned int, f->frequency, f 153 drivers/media/tuners/max2165.c u32 q, f = 0; f 165 drivers/media/tuners/max2165.c f += 1; f 168 drivers/media/tuners/max2165.c f <<= 1; f 172 drivers/media/tuners/max2165.c *fraction = f; f 317 drivers/media/tuners/msi001.c static int msi001_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 322 drivers/media/tuners/msi001.c dev_dbg(&spi->dev, "tuner=%d\n", f->tuner); f 323 drivers/media/tuners/msi001.c f->frequency = dev->f_tuner; f 328 drivers/media/tuners/msi001.c const struct v4l2_frequency *f) f 335 drivers/media/tuners/msi001.c f->tuner, f->type, f->frequency); f 337 drivers/media/tuners/msi001.c if (f->frequency < ((bands[0].rangehigh + bands[1].rangelow) / 2)) f 341 drivers/media/tuners/msi001.c dev->f_tuner = clamp_t(unsigned int, f->frequency, f 689 drivers/media/tuners/mt2063.c const u32 f = pAS_Info->f_zif_bw / 2; f 710 drivers/media/tuners/mt2063.c gf_Scale = max((u32) gcd(lo_gcd, f), f_Scale); f 747 drivers/media/tuners/mt2063.c ((f + hgfs) / gf_Scale)) / ((f_LO2 + hgfs) / gf_Scale); f 749 drivers/media/tuners/mt2063.c ((f + hgfs) / gf_Scale)) / ((f_LO2 + hgfs) / gf_Scale); f 757 drivers/media/tuners/mt2063.c *fp = ((f_Spur + (s32) f) / (me - n)) + 1; f 758 drivers/media/tuners/mt2063.c *fm = (((s32) f - f_Spur) / (me - n)) + 1; f 71 drivers/media/tuners/mt20xx.c int n1=1,n2,f; f 83 drivers/media/tuners/mt20xx.c f=n1*(f1-f2); f 86 drivers/media/tuners/mt20xx.c f=f-f2; f 87 drivers/media/tuners/mt20xx.c tuner_dbg("spurtest n1=%d n2=%d ftest=%d\n",n1,n2,f); f 89 drivers/media/tuners/mt20xx.c if( (f>spectrum_from) && (f<spectrum_to)) f 91 drivers/media/tuners/mt20xx.c } while ( (f>(f2-spectrum_to)) || (n2>-5)); f 173 drivers/media/tuners/mxl301rf.c u16 f; f 195 drivers/media/tuners/mxl301rf.c f = freq / 1000000; f 199 drivers/media/tuners/mxl301rf.c f <<= 1; f 203 drivers/media/tuners/mxl301rf.c f |= 1; f 207 drivers/media/tuners/mxl301rf.c f++; f 208 drivers/media/tuners/mxl301rf.c tune1[0].val = f & 0xff; f 209 drivers/media/tuners/mxl301rf.c tune1[1].val = f >> 8; f 618 drivers/media/usb/airspy/airspy.c struct v4l2_fmtdesc *f) f 620 drivers/media/usb/airspy/airspy.c if (f->index >= NUM_FORMATS) f 623 drivers/media/usb/airspy/airspy.c f->pixelformat = formats[f->index].pixelformat; f 629 drivers/media/usb/airspy/airspy.c struct v4l2_format *f) f 633 drivers/media/usb/airspy/airspy.c f->fmt.sdr.pixelformat = s->pixelformat; f 634 drivers/media/usb/airspy/airspy.c f->fmt.sdr.buffersize = s->buffersize; f 635 drivers/media/usb/airspy/airspy.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 641 drivers/media/usb/airspy/airspy.c struct v4l2_format *f) f 650 drivers/media/usb/airspy/airspy.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 652 drivers/media/usb/airspy/airspy.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 655 drivers/media/usb/airspy/airspy.c f->fmt.sdr.buffersize = formats[i].buffersize; f 662 drivers/media/usb/airspy/airspy.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 663 drivers/media/usb/airspy/airspy.c f->fmt.sdr.buffersize = formats[0].buffersize; f 669 drivers/media/usb/airspy/airspy.c struct v4l2_format *f) f 673 drivers/media/usb/airspy/airspy.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 675 drivers/media/usb/airspy/airspy.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 676 drivers/media/usb/airspy/airspy.c f->fmt.sdr.buffersize = formats[i].buffersize; f 681 drivers/media/usb/airspy/airspy.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 682 drivers/media/usb/airspy/airspy.c f->fmt.sdr.buffersize = formats[0].buffersize; f 728 drivers/media/usb/airspy/airspy.c struct v4l2_frequency *f) f 733 drivers/media/usb/airspy/airspy.c if (f->tuner == 0) { f 734 drivers/media/usb/airspy/airspy.c f->type = V4L2_TUNER_ADC; f 735 drivers/media/usb/airspy/airspy.c f->frequency = s->f_adc; f 738 drivers/media/usb/airspy/airspy.c } else if (f->tuner == 1) { f 739 drivers/media/usb/airspy/airspy.c f->type = V4L2_TUNER_RF; f 740 drivers/media/usb/airspy/airspy.c f->frequency = s->f_rf; f 751 drivers/media/usb/airspy/airspy.c const struct v4l2_frequency *f) f 757 drivers/media/usb/airspy/airspy.c if (f->tuner == 0) { f 758 drivers/media/usb/airspy/airspy.c s->f_adc = clamp_t(unsigned int, f->frequency, f 763 drivers/media/usb/airspy/airspy.c } else if (f->tuner == 1) { f 764 drivers/media/usb/airspy/airspy.c s->f_rf = clamp_t(unsigned int, f->frequency, f 1111 drivers/media/usb/au0828/au0828-video.c struct v4l2_frequency f = { f 1127 drivers/media/usb/au0828/au0828-video.c v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); f 1202 drivers/media/usb/au0828/au0828-video.c struct v4l2_fmtdesc *f) f 1204 drivers/media/usb/au0828/au0828-video.c if (f->index) f 1209 drivers/media/usb/au0828/au0828-video.c f->pixelformat = V4L2_PIX_FMT_UYVY; f 1215 drivers/media/usb/au0828/au0828-video.c struct v4l2_format *f) f 1222 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.width = dev->width; f 1223 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.height = dev->height; f 1224 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; f 1225 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.bytesperline = dev->bytesperline; f 1226 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.sizeimage = dev->frame_size; f 1227 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; /* NTSC/PAL */ f 1228 drivers/media/usb/au0828/au0828-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1233 drivers/media/usb/au0828/au0828-video.c struct v4l2_format *f) f 1240 drivers/media/usb/au0828/au0828-video.c return au0828_set_format(dev, VIDIOC_TRY_FMT, f); f 1244 drivers/media/usb/au0828/au0828-video.c struct v4l2_format *f) f 1262 drivers/media/usb/au0828/au0828-video.c rc = au0828_set_format(dev, VIDIOC_S_FMT, f); f 1604 drivers/media/usb/au0828/au0828-video.c int type, struct v4l2_fract *f) f 1614 drivers/media/usb/au0828/au0828-video.c f->numerator = 54; f 1615 drivers/media/usb/au0828/au0828-video.c f->denominator = 59; f 293 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_fmtdesc *f) f 295 drivers/media/usb/cpia2/cpia2_v4l.c if (f->index > 1) f 298 drivers/media/usb/cpia2/cpia2_v4l.c if (f->index == 0) f 299 drivers/media/usb/cpia2/cpia2_v4l.c f->pixelformat = V4L2_PIX_FMT_MJPEG; f 301 drivers/media/usb/cpia2/cpia2_v4l.c f->pixelformat = V4L2_PIX_FMT_JPEG; f 314 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_format *f) f 318 drivers/media/usb/cpia2/cpia2_v4l.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_MJPEG && f 319 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) f 322 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; f 323 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.bytesperline = 0; f 324 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.sizeimage = cam->frame_size; f 325 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 327 drivers/media/usb/cpia2/cpia2_v4l.c switch (cpia2_match_video_size(f->fmt.pix.width, f->fmt.pix.height)) { f 329 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 640; f 330 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 480; f 333 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 352; f 334 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 288; f 337 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 320; f 338 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 240; f 341 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 288; f 342 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 216; f 345 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 256; f 346 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 192; f 349 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 224; f 350 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 168; f 353 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 192; f 354 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 144; f 358 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = 176; f 359 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = 144; f 375 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_format *f) f 380 drivers/media/usb/cpia2/cpia2_v4l.c err = cpia2_try_fmt_vid_cap(file, _fh, f); f 384 drivers/media/usb/cpia2/cpia2_v4l.c cam->pixelformat = f->fmt.pix.pixelformat; f 395 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width, f->fmt.pix.height); f 396 drivers/media/usb/cpia2/cpia2_v4l.c if (f->fmt.pix.width != cam->width || f 397 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height != cam->height) { f 398 drivers/media/usb/cpia2/cpia2_v4l.c cam->width = f->fmt.pix.width; f 399 drivers/media/usb/cpia2/cpia2_v4l.c cam->height = f->fmt.pix.height; f 400 drivers/media/usb/cpia2/cpia2_v4l.c cam->params.roi.width = f->fmt.pix.width; f 401 drivers/media/usb/cpia2/cpia2_v4l.c cam->params.roi.height = f->fmt.pix.height; f 425 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_format *f) f 429 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.width = cam->width; f 430 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.height = cam->height; f 431 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.pixelformat = cam->pixelformat; f 432 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; f 433 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.bytesperline = 0; f 434 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.sizeimage = cam->frame_size; f 435 drivers/media/usb/cpia2/cpia2_v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 1496 drivers/media/usb/cx231xx/cx231xx-417.c int type, struct v4l2_fract *f) f 1505 drivers/media/usb/cx231xx/cx231xx-417.c f->numerator = is_50hz ? 54 : 11; f 1506 drivers/media/usb/cx231xx/cx231xx-417.c f->denominator = is_50hz ? 59 : 10; f 1591 drivers/media/usb/cx231xx/cx231xx-417.c struct v4l2_fmtdesc *f) f 1593 drivers/media/usb/cx231xx/cx231xx-417.c if (f->index != 0) f 1596 drivers/media/usb/cx231xx/cx231xx-417.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 1602 drivers/media/usb/cx231xx/cx231xx-417.c struct v4l2_format *f) f 1608 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1609 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.bytesperline = 0; f 1610 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.sizeimage = mpeglines * mpeglinesize; f 1611 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1612 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.width = dev->ts1.width; f 1613 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.height = dev->ts1.height; f 1614 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1622 drivers/media/usb/cx231xx/cx231xx-417.c struct v4l2_format *f) f 1628 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1629 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.bytesperline = 0; f 1630 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.sizeimage = mpeglines * mpeglinesize; f 1631 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1632 drivers/media/usb/cx231xx/cx231xx-417.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1176 drivers/media/usb/cx231xx/cx231xx-cards.c struct v4l2_frequency f; f 1203 drivers/media/usb/cx231xx/cx231xx-cards.c f.tuner = 0; f 1204 drivers/media/usb/cx231xx/cx231xx-cards.c f.type = V4L2_TUNER_ANALOG_TV; f 1205 drivers/media/usb/cx231xx/cx231xx-cards.c f.frequency = 9076; /* just a magic number */ f 1206 drivers/media/usb/cx231xx/cx231xx-cards.c dev->ctl_freq = f.frequency; f 1207 drivers/media/usb/cx231xx/cx231xx-cards.c call_all(dev, tuner, s_frequency, &f); f 932 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 937 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.width = dev->width; f 938 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.height = dev->height; f 939 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat = dev->format->fourcc; f 940 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.bytesperline = (dev->width * dev->format->depth + 7) >> 3; f 941 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * dev->height; f 942 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 944 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 961 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 965 drivers/media/usb/cx231xx/cx231xx-video.c unsigned int width = f->fmt.pix.width; f 966 drivers/media/usb/cx231xx/cx231xx-video.c unsigned int height = f->fmt.pix.height; f 971 drivers/media/usb/cx231xx/cx231xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 974 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat); f 982 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.width = width; f 983 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.height = height; f 984 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.pixelformat = fmt->fourcc; f 985 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3; f 986 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height; f 987 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 988 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 994 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 1008 drivers/media/usb/cx231xx/cx231xx-video.c vidioc_try_fmt_vid_cap(file, priv, f); f 1010 drivers/media/usb/cx231xx/cx231xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 1026 drivers/media/usb/cx231xx/cx231xx-video.c dev->width = f->fmt.pix.width; f 1027 drivers/media/usb/cx231xx/cx231xx-video.c dev->height = f->fmt.pix.height; f 1030 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fill_mbus_format(&format.format, &f->fmt.pix, MEDIA_BUS_FMT_FIXED); f 1032 drivers/media/usb/cx231xx/cx231xx-video.c v4l2_fill_pix_format(&f->fmt.pix, &format.format); f 1264 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_frequency *f) f 1269 drivers/media/usb/cx231xx/cx231xx-video.c if (f->tuner) f 1272 drivers/media/usb/cx231xx/cx231xx-video.c f->frequency = dev->ctl_freq; f 1278 drivers/media/usb/cx231xx/cx231xx-video.c const struct v4l2_frequency *f) f 1282 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_frequency new_freq = *f; f 1288 drivers/media/usb/cx231xx/cx231xx-video.c f->frequency, f->type); f 1294 drivers/media/usb/cx231xx/cx231xx-video.c if (0 != f->tuner) f 1300 drivers/media/usb/cx231xx/cx231xx-video.c call_all(dev, tuner, s_frequency, f); f 1330 drivers/media/usb/cx231xx/cx231xx-video.c dev_dbg(dev->dev, "Set New FREQUENCY to %d\n", f->frequency); f 1473 drivers/media/usb/cx231xx/cx231xx-video.c int type, struct v4l2_fract *f) f 1482 drivers/media/usb/cx231xx/cx231xx-video.c f->numerator = is_50hz ? 54 : 11; f 1483 drivers/media/usb/cx231xx/cx231xx-video.c f->denominator = is_50hz ? 59 : 10; f 1575 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_fmtdesc *f) f 1577 drivers/media/usb/cx231xx/cx231xx-video.c if (unlikely(f->index >= ARRAY_SIZE(format))) f 1580 drivers/media/usb/cx231xx/cx231xx-video.c f->pixelformat = format[f->index].fourcc; f 1588 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 1593 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.sampling_rate = 6750000 * 4; f 1594 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; f 1595 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 1596 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.offset = 0; f 1597 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.start[0] = (dev->norm & V4L2_STD_625_50) ? f 1599 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.count[0] = (dev->norm & V4L2_STD_625_50) ? f 1601 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.start[1] = (dev->norm & V4L2_STD_625_50) ? f 1603 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.count[1] = f->fmt.vbi.count[0]; f 1604 drivers/media/usb/cx231xx/cx231xx-video.c memset(f->fmt.vbi.reserved, 0, sizeof(f->fmt.vbi.reserved)); f 1611 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 1616 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.sampling_rate = 6750000 * 4; f 1617 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.samples_per_line = VBI_LINE_LENGTH; f 1618 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.sample_format = V4L2_PIX_FMT_GREY; f 1619 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.offset = 0; f 1620 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.flags = 0; f 1621 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.start[0] = (dev->norm & V4L2_STD_625_50) ? f 1623 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.count[0] = (dev->norm & V4L2_STD_625_50) ? f 1625 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.start[1] = (dev->norm & V4L2_STD_625_50) ? f 1627 drivers/media/usb/cx231xx/cx231xx-video.c f->fmt.vbi.count[1] = f->fmt.vbi.count[0]; f 1628 drivers/media/usb/cx231xx/cx231xx-video.c memset(f->fmt.vbi.reserved, 0, sizeof(f->fmt.vbi.reserved)); f 1635 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_format *f) f 1645 drivers/media/usb/cx231xx/cx231xx-video.c return vidioc_try_fmt_vbi_cap(file, priv, f); f 731 drivers/media/usb/cx231xx/cx231xx.h #define cx25840_call(cx231xx, o, f, args...) \ f 732 drivers/media/usb/cx231xx/cx231xx.h v4l2_subdev_call(cx231xx->sd_cx25840, o, f, ##args) f 733 drivers/media/usb/cx231xx/cx231xx.h #define tuner_call(cx231xx, o, f, args...) \ f 734 drivers/media/usb/cx231xx/cx231xx.h v4l2_subdev_call(cx231xx->sd_tuner, o, f, ##args) f 735 drivers/media/usb/cx231xx/cx231xx.h #define call_all(dev, o, f, args...) \ f 736 drivers/media/usb/cx231xx/cx231xx.h v4l2_device_call_until_err(&dev->v4l2_dev, 0, o, f, ##args) f 945 drivers/media/usb/cx231xx/cx231xx.h struct v4l2_frequency *f); f 947 drivers/media/usb/cx231xx/cx231xx.h const struct v4l2_frequency *f); f 983 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_fmtdesc *f) f 985 drivers/media/usb/dvb-usb/cxusb-analog.c if (f->index != 0) f 988 drivers/media/usb/dvb-usb/cxusb-analog.c f->pixelformat = V4L2_PIX_FMT_UYVY; f 994 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_format *f) f 999 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.width = cxdev->width; f 1000 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.height = cxdev->height; f 1001 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; f 1002 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.field = vb2_start_streaming_called(&cxdev->videoqueue) ? f 1004 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.bytesperline = cxdev->width * 2; f 1005 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1006 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; f 1012 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_format *f, f 1030 drivers/media/usb/dvb-usb/cxusb-analog.c subfmt.format.width = f->fmt.pix.width & ~1; f 1031 drivers/media/usb/dvb-usb/cxusb-analog.c subfmt.format.height = f->fmt.pix.height & ~1; f 1040 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.width = subfmt.format.width; f 1041 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.height = subfmt.format.height; f 1042 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_UYVY; f 1043 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.field = field; f 1044 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 1045 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * f->fmt.pix.height; f 1046 drivers/media/usb/dvb-usb/cxusb-analog.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1049 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->width = f->fmt.pix.width; f 1050 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->height = f->fmt.pix.height; f 1057 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_format *f) f 1059 drivers/media/usb/dvb-usb/cxusb-analog.c return cxusb_medion_try_s_fmt_vid_cap(file, f, false); f 1063 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_format *f) f 1065 drivers/media/usb/dvb-usb/cxusb-analog.c return cxusb_medion_try_s_fmt_vid_cap(file, f, true); f 1531 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_videoradio_open(struct file *f) f 1533 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(f); f 1545 drivers/media/usb/dvb-usb/cxusb-analog.c ret = v4l2_fh_open(f); f 1559 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_videoradio_release(struct file *f) f 1561 drivers/media/usb/dvb-usb/cxusb-analog.c struct video_device *vdev = video_devdata(f); f 1562 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(f); f 1568 drivers/media/usb/dvb-usb/cxusb-analog.c ret = vb2_fop_release(f); f 1570 drivers/media/usb/dvb-usb/cxusb-analog.c ret = v4l2_fh_release(f); f 71 drivers/media/usb/dvb-usb/dw2102.c int (*old_set_voltage)(struct dvb_frontend *f, enum fe_sec_voltage v); f 62 drivers/media/usb/dvb-usb/vp702x-fe.c static u8 vp702x_chksum(u8 *buf,int f, int count) f 66 drivers/media/usb/dvb-usb/vp702x-fe.c for (i = f; i < f+count; i++) f 1083 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_frequency f; f 1128 drivers/media/usb/em28xx/em28xx-video.c memset(&f, 0, sizeof(f)); f 1129 drivers/media/usb/em28xx/em28xx-video.c f.frequency = v4l2->frequency; f 1132 drivers/media/usb/em28xx/em28xx-video.c f.type = V4L2_TUNER_RADIO; f 1134 drivers/media/usb/em28xx/em28xx-video.c f.type = V4L2_TUNER_ANALOG_TV; f 1136 drivers/media/usb/em28xx/em28xx-video.c 0, tuner, s_frequency, &f); f 1423 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_format *f) f 1428 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width = v4l2->width; f 1429 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.height = v4l2->height; f 1430 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat = v4l2->format->fourcc; f 1431 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.bytesperline = (v4l2->width * v4l2->format->depth + 7) >> 3; f 1432 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * v4l2->height; f 1433 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1437 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1439 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = v4l2->interlaced_fieldmode ? f 1456 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_format *f) f 1460 drivers/media/usb/em28xx/em28xx-video.c unsigned int width = f->fmt.pix.width; f 1461 drivers/media/usb/em28xx/em28xx-video.c unsigned int height = f->fmt.pix.height; f 1467 drivers/media/usb/em28xx/em28xx-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 1471 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat, fmt->fourcc); f 1502 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width = width; f 1503 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.height = height; f 1504 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.pixelformat = fmt->fourcc; f 1505 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.bytesperline = (width * fmt->depth + 7) >> 3; f 1506 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.sizeimage = f->fmt.pix.bytesperline * height; f 1507 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1509 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = V4L2_FIELD_NONE; f 1511 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.field = v4l2->interlaced_fieldmode ? f 1541 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_format *f) f 1549 drivers/media/usb/em28xx/em28xx-video.c vidioc_try_fmt_vid_cap(file, priv, f); f 1551 drivers/media/usb/em28xx/em28xx-video.c return em28xx_set_video_format(dev, f->fmt.pix.pixelformat, f 1552 drivers/media/usb/em28xx/em28xx-video.c f->fmt.pix.width, f->fmt.pix.height); f 1577 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_format f; f 1588 drivers/media/usb/em28xx/em28xx-video.c f.fmt.pix.width = 720; f 1589 drivers/media/usb/em28xx/em28xx-video.c f.fmt.pix.height = (norm & V4L2_STD_525_60) ? 480 : 576; f 1590 drivers/media/usb/em28xx/em28xx-video.c vidioc_try_fmt_vid_cap(file, priv, &f); f 1593 drivers/media/usb/em28xx/em28xx-video.c v4l2->width = f.fmt.pix.width; f 1594 drivers/media/usb/em28xx/em28xx-video.c v4l2->height = f.fmt.pix.height; f 1859 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_frequency *f) f 1864 drivers/media/usb/em28xx/em28xx-video.c if (f->tuner != 0) f 1867 drivers/media/usb/em28xx/em28xx-video.c f->frequency = v4l2->frequency; f 1872 drivers/media/usb/em28xx/em28xx-video.c const struct v4l2_frequency *f) f 1874 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_frequency new_freq = *f; f 1878 drivers/media/usb/em28xx/em28xx-video.c if (f->tuner != 0) f 1881 drivers/media/usb/em28xx/em28xx-video.c v4l2_device_call_all(&v4l2->v4l2_dev, 0, tuner, s_frequency, f); f 2001 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_fmtdesc *f) f 2003 drivers/media/usb/em28xx/em28xx-video.c if (unlikely(f->index >= ARRAY_SIZE(format))) f 2006 drivers/media/usb/em28xx/em28xx-video.c f->pixelformat = format[f->index].fourcc; f 2464 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_frequency f; f 2513 drivers/media/usb/em28xx/em28xx-video.c f.tuner = 0; f 2514 drivers/media/usb/em28xx/em28xx-video.c f.type = V4L2_TUNER_ANALOG_TV; f 2515 drivers/media/usb/em28xx/em28xx-video.c f.frequency = 9076; /* just a magic number */ f 2516 drivers/media/usb/em28xx/em28xx-video.c v4l2->frequency = f.frequency; f 2517 drivers/media/usb/em28xx/em28xx-video.c v4l2_device_call_all(v4l2_dev, 0, tuner, s_frequency, &f); f 29 drivers/media/usb/go7007/go7007-v4l2.c #define call_all(dev, o, f, args...) \ f 30 drivers/media/usb/go7007/go7007-v4l2.c v4l2_device_call_until_err(dev, 0, o, f, ##args) f 733 drivers/media/usb/go7007/go7007-v4l2.c struct v4l2_frequency *f) f 737 drivers/media/usb/go7007/go7007-v4l2.c if (f->tuner) f 740 drivers/media/usb/go7007/go7007-v4l2.c return call_all(&go->v4l2_dev, tuner, g_frequency, f); f 744 drivers/media/usb/go7007/go7007-v4l2.c const struct v4l2_frequency *f) f 748 drivers/media/usb/go7007/go7007-v4l2.c if (f->tuner) f 751 drivers/media/usb/go7007/go7007-v4l2.c return call_all(&go->v4l2_dev, tuner, s_frequency, f); f 1113 drivers/media/usb/go7007/go7007-v4l2.c struct v4l2_frequency f = { f 1118 drivers/media/usb/go7007/go7007-v4l2.c call_all(&go->v4l2_dev, tuner, s_frequency, &f); f 561 drivers/media/usb/gspca/cpia1.c u8 e, u8 f, u8 g, u8 h, f 575 drivers/media/usb/gspca/cpia1.c gspca_dev->usb_buf[1] = f; f 914 drivers/media/usb/hackrf/hackrf.c struct v4l2_format *f) f 922 drivers/media/usb/hackrf/hackrf.c (char *)&f->fmt.sdr.pixelformat); f 932 drivers/media/usb/hackrf/hackrf.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 934 drivers/media/usb/hackrf/hackrf.c if (f->fmt.sdr.pixelformat == formats[i].pixelformat) { f 937 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.buffersize = formats[i].buffersize; f 944 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 945 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.buffersize = formats[0].buffersize; f 951 drivers/media/usb/hackrf/hackrf.c struct v4l2_format *f) f 958 drivers/media/usb/hackrf/hackrf.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 959 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.pixelformat = dev->pixelformat; f 960 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.buffersize = dev->buffersize; f 966 drivers/media/usb/hackrf/hackrf.c struct v4l2_format *f) f 972 drivers/media/usb/hackrf/hackrf.c (char *)&f->fmt.sdr.pixelformat); f 974 drivers/media/usb/hackrf/hackrf.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 976 drivers/media/usb/hackrf/hackrf.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 977 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.buffersize = formats[i].buffersize; f 982 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 983 drivers/media/usb/hackrf/hackrf.c f->fmt.sdr.buffersize = formats[0].buffersize; f 989 drivers/media/usb/hackrf/hackrf.c struct v4l2_fmtdesc *f) f 993 drivers/media/usb/hackrf/hackrf.c dev_dbg(dev->dev, "index=%d\n", f->index); f 995 drivers/media/usb/hackrf/hackrf.c if (f->index >= NUM_FORMATS) f 998 drivers/media/usb/hackrf/hackrf.c f->pixelformat = formats[f->index].pixelformat; f 1089 drivers/media/usb/hackrf/hackrf.c const struct v4l2_frequency *f) f 1098 drivers/media/usb/hackrf/hackrf.c f->tuner, f->type, f->frequency); f 1100 drivers/media/usb/hackrf/hackrf.c if (f->tuner == 0) { f 1101 drivers/media/usb/hackrf/hackrf.c uitmp = clamp(f->frequency, bands_adc_dac[0].rangelow, f 1110 drivers/media/usb/hackrf/hackrf.c } else if (f->tuner == 1) { f 1111 drivers/media/usb/hackrf/hackrf.c uitmp = clamp(f->frequency, bands_rx_tx[0].rangelow, f 1136 drivers/media/usb/hackrf/hackrf.c struct v4l2_frequency *f) f 1143 drivers/media/usb/hackrf/hackrf.c dev_dbg(dev->dev, "tuner=%d type=%d\n", f->tuner, f->type); f 1145 drivers/media/usb/hackrf/hackrf.c if (f->tuner == 0) { f 1146 drivers/media/usb/hackrf/hackrf.c f->type = V4L2_TUNER_SDR; f 1148 drivers/media/usb/hackrf/hackrf.c f->frequency = dev->f_adc; f 1150 drivers/media/usb/hackrf/hackrf.c f->frequency = dev->f_dac; f 1151 drivers/media/usb/hackrf/hackrf.c } else if (f->tuner == 1) { f 1152 drivers/media/usb/hackrf/hackrf.c f->type = V4L2_TUNER_RF; f 1154 drivers/media/usb/hackrf/hackrf.c f->frequency = dev->f_rx; f 1156 drivers/media/usb/hackrf/hackrf.c f->frequency = dev->f_tx; f 985 drivers/media/usb/hdpvr/hdpvr-video.c struct v4l2_fmtdesc *f) f 987 drivers/media/usb/hdpvr/hdpvr-video.c if (f->index != 0) f 990 drivers/media/usb/hdpvr/hdpvr-video.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 996 drivers/media/usb/hdpvr/hdpvr-video.c struct v4l2_format *f) f 1020 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.width = vid_info.width; f 1021 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.height = vid_info.height; f 1023 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.width = dev->width; f 1024 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.height = dev->height; f 1026 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 1027 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.sizeimage = dev->bulk_in_size; f 1028 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.bytesperline = 0; f 1029 drivers/media/usb/hdpvr/hdpvr-video.c if (f->fmt.pix.width == 720) { f 1031 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 1032 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 1035 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f 1036 drivers/media/usb/hdpvr/hdpvr-video.c f->fmt.pix.field = V4L2_FIELD_NONE; f 891 drivers/media/usb/msi2500/msi2500.c struct v4l2_fmtdesc *f) f 895 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "index=%d\n", f->index); f 897 drivers/media/usb/msi2500/msi2500.c if (f->index >= dev->num_formats) f 900 drivers/media/usb/msi2500/msi2500.c f->pixelformat = formats[f->index].pixelformat; f 906 drivers/media/usb/msi2500/msi2500.c struct v4l2_format *f) f 913 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.pixelformat = dev->pixelformat; f 914 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.buffersize = dev->buffersize; f 915 drivers/media/usb/msi2500/msi2500.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 921 drivers/media/usb/msi2500/msi2500.c struct v4l2_format *f) f 928 drivers/media/usb/msi2500/msi2500.c (char *)&f->fmt.sdr.pixelformat); f 933 drivers/media/usb/msi2500/msi2500.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 935 drivers/media/usb/msi2500/msi2500.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 938 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.buffersize = formats[i].buffersize; f 945 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 946 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.buffersize = formats[0].buffersize; f 952 drivers/media/usb/msi2500/msi2500.c struct v4l2_format *f) f 958 drivers/media/usb/msi2500/msi2500.c (char *)&f->fmt.sdr.pixelformat); f 960 drivers/media/usb/msi2500/msi2500.c memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); f 962 drivers/media/usb/msi2500/msi2500.c if (formats[i].pixelformat == f->fmt.sdr.pixelformat) { f 963 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.buffersize = formats[i].buffersize; f 968 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.pixelformat = formats[0].pixelformat; f 969 drivers/media/usb/msi2500/msi2500.c f->fmt.sdr.buffersize = formats[0].buffersize; f 1016 drivers/media/usb/msi2500/msi2500.c struct v4l2_frequency *f) f 1021 drivers/media/usb/msi2500/msi2500.c dev_dbg(dev->dev, "tuner=%d type=%d\n", f->tuner, f->type); f 1023 drivers/media/usb/msi2500/msi2500.c if (f->tuner == 0) { f 1024 drivers/media/usb/msi2500/msi2500.c f->frequency = dev->f_adc; f 1026 drivers/media/usb/msi2500/msi2500.c } else if (f->tuner == 1) { f 1027 drivers/media/usb/msi2500/msi2500.c f->type = V4L2_TUNER_RF; f 1028 drivers/media/usb/msi2500/msi2500.c ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, g_frequency, f); f 1037 drivers/media/usb/msi2500/msi2500.c const struct v4l2_frequency *f) f 1043 drivers/media/usb/msi2500/msi2500.c f->tuner, f->type, f->frequency); f 1045 drivers/media/usb/msi2500/msi2500.c if (f->tuner == 0) { f 1046 drivers/media/usb/msi2500/msi2500.c dev->f_adc = clamp_t(unsigned int, f->frequency, f 1051 drivers/media/usb/msi2500/msi2500.c } else if (f->tuner == 1) { f 1052 drivers/media/usb/msi2500/msi2500.c ret = v4l2_subdev_call(dev->v4l2_subdev, tuner, s_frequency, f); f 686 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c int type, struct v4l2_fract *f) f 697 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c *f = cap.pixelaspect; f 386 drivers/media/usb/pwc/pwc-v4l.c static void pwc_vidioc_fill_fmt(struct v4l2_format *f, f 389 drivers/media/usb/pwc/pwc-v4l.c memset(&f->fmt.pix, 0, sizeof(struct v4l2_pix_format)); f 390 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width = width; f 391 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.height = height; f 392 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.field = V4L2_FIELD_NONE; f 393 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = pixfmt; f 394 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.bytesperline = f->fmt.pix.width; f 395 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.width * 3 / 2; f 396 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; f 398 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width, f 399 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.height, f 400 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.bytesperline, f 401 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.sizeimage, f 402 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat)&255, f 403 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>8)&255, f 404 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>16)&255, f 405 drivers/media/usb/pwc/pwc-v4l.c (f->fmt.pix.pixelformat>>24)&255); f 409 drivers/media/usb/pwc/pwc-v4l.c static int pwc_vidioc_try_fmt(struct pwc_device *pdev, struct v4l2_format *f) f 413 drivers/media/usb/pwc/pwc-v4l.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) { f 418 drivers/media/usb/pwc/pwc-v4l.c switch (f->fmt.pix.pixelformat) { f 424 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; f 430 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; f 435 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; f 438 drivers/media/usb/pwc/pwc-v4l.c size = pwc_get_size(pdev, f->fmt.pix.width, f->fmt.pix.height); f 439 drivers/media/usb/pwc/pwc-v4l.c pwc_vidioc_fill_fmt(f, f 442 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.pixelformat); f 449 drivers/media/usb/pwc/pwc-v4l.c static int pwc_s_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) f 454 drivers/media/usb/pwc/pwc-v4l.c ret = pwc_vidioc_try_fmt(pdev, f); f 461 drivers/media/usb/pwc/pwc-v4l.c pixelformat = f->fmt.pix.pixelformat; f 464 drivers/media/usb/pwc/pwc-v4l.c f->fmt.pix.width, f->fmt.pix.height, pdev->vframes, f 470 drivers/media/usb/pwc/pwc-v4l.c ret = pwc_set_video_mode(pdev, f->fmt.pix.width, f->fmt.pix.height, f 475 drivers/media/usb/pwc/pwc-v4l.c pwc_vidioc_fill_fmt(f, pdev->width, pdev->height, pdev->pixfmt); f 867 drivers/media/usb/pwc/pwc-v4l.c static int pwc_enum_fmt_vid_cap(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 872 drivers/media/usb/pwc/pwc-v4l.c switch (f->index) { f 875 drivers/media/usb/pwc/pwc-v4l.c f->pixelformat = pdev->type <= 646 ? V4L2_PIX_FMT_PWC1 : V4L2_PIX_FMT_PWC2; f 878 drivers/media/usb/pwc/pwc-v4l.c f->pixelformat = V4L2_PIX_FMT_YUV420; f 886 drivers/media/usb/pwc/pwc-v4l.c static int pwc_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) f 890 drivers/media/usb/pwc/pwc-v4l.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) f 895 drivers/media/usb/pwc/pwc-v4l.c pwc_vidioc_fill_fmt(f, pdev->width, pdev->height, pdev->pixfmt); f 899 drivers/media/usb/pwc/pwc-v4l.c static int pwc_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f) f 903 drivers/media/usb/pwc/pwc-v4l.c return pwc_vidioc_try_fmt(pdev, f); f 724 drivers/media/usb/s2255/s2255drv.c struct v4l2_fmtdesc *f) f 726 drivers/media/usb/s2255/s2255drv.c int index = f->index; f 733 drivers/media/usb/s2255/s2255drv.c f->pixelformat = formats[index].fourcc; f 738 drivers/media/usb/s2255/s2255drv.c struct v4l2_format *f) f 743 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = vc->width; f 744 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = vc->height; f 745 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= f 747 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 749 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = V4L2_FIELD_TOP; f 750 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.pixelformat = vc->fmt->fourcc; f 751 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.bytesperline = f->fmt.pix.width * (vc->fmt->depth >> 3); f 752 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 753 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 758 drivers/media/usb/s2255/s2255drv.c struct v4l2_format *f) f 765 drivers/media/usb/s2255/s2255drv.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 770 drivers/media/usb/s2255/s2255drv.c field = f->fmt.pix.field; f 773 drivers/media/usb/s2255/s2255drv.c __func__, is_ntsc, f->fmt.pix.width, f->fmt.pix.height); f 776 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= NUM_LINES_1CIFS_NTSC * 2) { f 777 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_NTSC * 2; f 780 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_NTSC; f 783 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.width >= LINE_SZ_4CIFS_NTSC) f 784 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_4CIFS_NTSC; f 786 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_1CIFS_NTSC; f 789 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.height >= NUM_LINES_1CIFS_PAL * 2) { f 790 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_PAL * 2; f 793 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.height = NUM_LINES_1CIFS_PAL; f 796 drivers/media/usb/s2255/s2255drv.c if (f->fmt.pix.width >= LINE_SZ_4CIFS_PAL) f 797 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_4CIFS_PAL; f 799 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width = LINE_SZ_1CIFS_PAL; f 801 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.field = field; f 802 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f 803 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 804 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 806 drivers/media/usb/s2255/s2255drv.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.field); f 811 drivers/media/usb/s2255/s2255drv.c struct v4l2_format *f) f 819 drivers/media/usb/s2255/s2255drv.c ret = vidioc_try_fmt_vid_cap(file, vc, f); f 824 drivers/media/usb/s2255/s2255drv.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 836 drivers/media/usb/s2255/s2255drv.c vc->width = f->fmt.pix.width; f 837 drivers/media/usb/s2255/s2255drv.c vc->height = f->fmt.pix.height; f 838 drivers/media/usb/s2255/s2255drv.c vc->field = f->fmt.pix.field; f 343 drivers/media/usb/stk1160/stk1160-v4l.c struct v4l2_fmtdesc *f) f 345 drivers/media/usb/stk1160/stk1160-v4l.c if (f->index != 0) f 348 drivers/media/usb/stk1160/stk1160-v4l.c f->pixelformat = format[f->index].fourcc; f 353 drivers/media/usb/stk1160/stk1160-v4l.c struct v4l2_format *f) f 357 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = dev->width; f 358 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = dev->height; f 359 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 360 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 361 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.bytesperline = dev->width * 2; f 362 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.sizeimage = dev->height * f->fmt.pix.bytesperline; f 363 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 368 drivers/media/usb/stk1160/stk1160-v4l.c static int stk1160_try_fmt(struct stk1160 *dev, struct v4l2_format *f, f 381 drivers/media/usb/stk1160/stk1160-v4l.c width = clamp_t(unsigned int, f->fmt.pix.width, f 383 drivers/media/usb/stk1160/stk1160-v4l.c height = clamp_t(unsigned int, f->fmt.pix.height, f 391 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = base_width; f 392 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = base_height; f 411 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = (base_width * col_n) / (col_n + 1); f 430 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width = base_width / (col_n + 1); f 439 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = (base_height * row_n) / (row_n + 1); f 447 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.height = base_height / (row_n + 1); f 451 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.pixelformat = dev->fmt->fourcc; f 452 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 453 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 454 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 455 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 467 drivers/media/usb/stk1160/stk1160-v4l.c f->fmt.pix.width, f->fmt.pix.height); f 472 drivers/media/usb/stk1160/stk1160-v4l.c struct v4l2_format *f) f 476 drivers/media/usb/stk1160/stk1160-v4l.c return stk1160_try_fmt(dev, f, NULL); f 480 drivers/media/usb/stk1160/stk1160-v4l.c struct v4l2_format *f) f 490 drivers/media/usb/stk1160/stk1160-v4l.c rc = stk1160_try_fmt(dev, f, &ctrl); f 493 drivers/media/usb/stk1160/stk1160-v4l.c dev->width = f->fmt.pix.width; f 494 drivers/media/usb/stk1160/stk1160-v4l.c dev->height = f->fmt.pix.height; f 891 drivers/media/usb/stkwebcam/stk-webcam.c void *priv, struct v4l2_format *f) f 893 drivers/media/usb/stkwebcam/stk-webcam.c struct v4l2_pix_format *pix_format = &f->fmt.pix; f 1071 drivers/media/usb/tm6000/tm6000-cards.c struct v4l2_frequency f; f 1111 drivers/media/usb/tm6000/tm6000-cards.c f.tuner = 0; f 1112 drivers/media/usb/tm6000/tm6000-cards.c f.type = V4L2_TUNER_ANALOG_TV; f 1113 drivers/media/usb/tm6000/tm6000-cards.c f.frequency = 3092; /* 193.25 MHz */ f 1114 drivers/media/usb/tm6000/tm6000-cards.c dev->freq = f.frequency; f 1115 drivers/media/usb/tm6000/tm6000-cards.c v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); f 272 drivers/media/usb/tm6000/tm6000-core.c struct v4l2_frequency f; f 326 drivers/media/usb/tm6000/tm6000-core.c f.frequency = dev->freq; f 327 drivers/media/usb/tm6000/tm6000-core.c v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, &f); f 870 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_fmtdesc *f) f 872 drivers/media/usb/tm6000/tm6000-video.c if (f->index >= ARRAY_SIZE(format)) f 875 drivers/media/usb/tm6000/tm6000-video.c f->pixelformat = format[f->index].fourcc; f 880 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_format *f) f 884 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width = fh->width; f 885 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height = fh->height; f 886 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.field = fh->vb_vidq.field; f 887 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.pixelformat = fh->fmt->fourcc; f 888 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 889 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.bytesperline = f 890 drivers/media/usb/tm6000/tm6000-video.c (f->fmt.pix.width * fh->fmt->depth) >> 3; f 891 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.sizeimage = f 892 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 908 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_format *f) f 914 drivers/media/usb/tm6000/tm6000-video.c fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 917 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.pixelformat); f 921 drivers/media/usb/tm6000/tm6000-video.c field = f->fmt.pix.field; f 927 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width = dev->width; f 928 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height = dev->height; f 930 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.width &= ~0x01; f 932 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.field = field; f 934 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.bytesperline = f 935 drivers/media/usb/tm6000/tm6000-video.c (f->fmt.pix.width * fmt->depth) >> 3; f 936 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.sizeimage = f 937 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.height * f->fmt.pix.bytesperline; f 938 drivers/media/usb/tm6000/tm6000-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 945 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_format *f) f 949 drivers/media/usb/tm6000/tm6000-video.c int ret = vidioc_try_fmt_vid_cap(file, fh, f); f 953 drivers/media/usb/tm6000/tm6000-video.c fh->fmt = format_by_fourcc(f->fmt.pix.pixelformat); f 954 drivers/media/usb/tm6000/tm6000-video.c fh->width = f->fmt.pix.width; f 955 drivers/media/usb/tm6000/tm6000-video.c fh->height = f->fmt.pix.height; f 956 drivers/media/usb/tm6000/tm6000-video.c fh->vb_vidq.field = f->fmt.pix.field; f 957 drivers/media/usb/tm6000/tm6000-video.c fh->type = f->type; f 959 drivers/media/usb/tm6000/tm6000-video.c dev->fourcc = f->fmt.pix.pixelformat; f 1219 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_frequency *f) f 1226 drivers/media/usb/tm6000/tm6000-video.c if (f->tuner) f 1229 drivers/media/usb/tm6000/tm6000-video.c f->frequency = dev->freq; f 1231 drivers/media/usb/tm6000/tm6000-video.c v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, g_frequency, f); f 1237 drivers/media/usb/tm6000/tm6000-video.c const struct v4l2_frequency *f) f 1244 drivers/media/usb/tm6000/tm6000-video.c if (f->tuner != 0) f 1247 drivers/media/usb/tm6000/tm6000-video.c dev->freq = f->frequency; f 1248 drivers/media/usb/tm6000/tm6000-video.c v4l2_device_call_all(&dev->v4l2_dev, 0, tuner, s_frequency, f); f 631 drivers/media/usb/usbtv/usbtv-video.c struct v4l2_fmtdesc *f) f 633 drivers/media/usb/usbtv/usbtv-video.c if (f->index > 0) f 636 drivers/media/usb/usbtv/usbtv-video.c f->pixelformat = V4L2_PIX_FMT_YUYV; f 641 drivers/media/usb/usbtv/usbtv-video.c struct v4l2_format *f) f 645 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.width = usbtv->width; f 646 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.height = usbtv->height; f 647 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; f 648 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.field = V4L2_FIELD_INTERLACED; f 649 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.bytesperline = usbtv->width * 2; f 650 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.sizeimage = (f->fmt.pix.bytesperline * f->fmt.pix.height); f 651 drivers/media/usb/usbtv/usbtv-video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 474 drivers/media/usb/usbvision/usbvision-core.c unsigned char *f; f 483 drivers/media/usb/usbvision/usbvision-core.c f = frame->data + (frame->v4l2_linesize * frame->curline); f 504 drivers/media/usb/usbvision/usbvision-core.c *f++ = yuyv[0]; /* Y */ f 505 drivers/media/usb/usbvision/usbvision-core.c *f++ = yuyv[3]; /* U */ f 510 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 512 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x07 & (gv >> 3)) | f 516 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 517 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 518 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 521 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 522 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 523 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 524 drivers/media/usb/usbvision/usbvision-core.c f++; f 527 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 529 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x03 & (gv >> 3)) | f 535 drivers/media/usb/usbvision/usbvision-core.c f += stretch_bytes; f 538 drivers/media/usb/usbvision/usbvision-core.c *f++ = yuyv[2]; /* Y */ f 539 drivers/media/usb/usbvision/usbvision-core.c *f++ = yuyv[1]; /* V */ f 544 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 546 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x07 & (gv >> 3)) | f 550 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 551 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 552 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 555 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 556 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 557 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 558 drivers/media/usb/usbvision/usbvision-core.c f++; f 561 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 563 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x03 & (gv >> 3)) | f 569 drivers/media/usb/usbvision/usbvision-core.c f += stretch_bytes; f 681 drivers/media/usb/usbvision/usbvision-core.c unsigned char *f, *u = NULL, *v = NULL; f 695 drivers/media/usb/usbvision/usbvision-core.c f = frame->data + (frame->width * frame->curline); f 697 drivers/media/usb/usbvision/usbvision-core.c f = frame->data + (frame->v4l2_linesize * frame->curline); f 779 drivers/media/usb/usbvision/usbvision-core.c *f++ = Y[idx]; f 780 drivers/media/usb/usbvision/usbvision-core.c *f++ = idx & 0x01 ? U[idx / 2] : V[idx / 2]; f 782 drivers/media/usb/usbvision/usbvision-core.c *f++ = Y[idx]; f 788 drivers/media/usb/usbvision/usbvision-core.c *f++ = Y[idx]; f 799 drivers/media/usb/usbvision/usbvision-core.c *f++ = Y[idx]; f 802 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 804 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x03 & (gv >> 3)) | f 808 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x1F & rv) | f 810 drivers/media/usb/usbvision/usbvision-core.c *f++ = (0x07 & (gv >> 3)) | f 814 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 815 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 816 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 819 drivers/media/usb/usbvision/usbvision-core.c *f++ = rv; f 820 drivers/media/usb/usbvision/usbvision-core.c *f++ = gv; f 821 drivers/media/usb/usbvision/usbvision-core.c *f++ = bv; f 822 drivers/media/usb/usbvision/usbvision-core.c f++; f 1265 drivers/media/usb/usbvision/usbvision-core.c struct usbvision_frame **f; f 1275 drivers/media/usb/usbvision/usbvision-core.c f = &usbvision->cur_frame; f 1280 drivers/media/usb/usbvision/usbvision-core.c if ((*f)) { f 1281 drivers/media/usb/usbvision/usbvision-core.c (*f)->grabstate = frame_state_ready; f 1282 drivers/media/usb/usbvision/usbvision-core.c (*f)->scanstate = scan_state_scanning; f 1298 drivers/media/usb/usbvision/usbvision-core.c if (!(*f)) { f 1299 drivers/media/usb/usbvision/usbvision-core.c (*f) = list_entry(usbvision->inqueue.next, f 740 drivers/media/usb/usbvision/usbvision-video.c struct usbvision_frame *f; f 754 drivers/media/usb/usbvision/usbvision-video.c f = list_entry(usbvision->outqueue.next, f 759 drivers/media/usb/usbvision/usbvision-video.c f->grabstate = frame_state_unused; f 766 drivers/media/usb/usbvision/usbvision-video.c vb->index = f->index; f 767 drivers/media/usb/usbvision/usbvision-video.c vb->sequence = f->sequence; f 768 drivers/media/usb/usbvision/usbvision-video.c vb->timestamp = ns_to_timeval(f->ts); f 770 drivers/media/usb/usbvision/usbvision-video.c vb->bytesused = f->scanlength; f 454 drivers/media/usb/usbvision/usbvision.h #define call_all(usbvision, o, f, args...) \ f 455 drivers/media/usb/usbvision/usbvision.h v4l2_device_call_all(&usbvision->v4l2_dev, 0, o, f, ##args) f 745 drivers/media/usb/zr364xx/zr364xx.c void *priv, struct v4l2_fmtdesc *f) f 747 drivers/media/usb/zr364xx/zr364xx.c if (f->index > 0) f 749 drivers/media/usb/zr364xx/zr364xx.c f->pixelformat = formats[0].fourcc; f 764 drivers/media/usb/zr364xx/zr364xx.c struct v4l2_format *f) f 772 drivers/media/usb/zr364xx/zr364xx.c if (f->fmt.pix.pixelformat != V4L2_PIX_FMT_JPEG) { f 774 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name)); f 778 drivers/media/usb/zr364xx/zr364xx.c if (!(f->fmt.pix.width == 160 && f->fmt.pix.height == 120) && f 779 drivers/media/usb/zr364xx/zr364xx.c !(f->fmt.pix.width == 640 && f->fmt.pix.height == 480)) { f 780 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.width = 320; f 781 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.height = 240; f 784 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field = V4L2_FIELD_NONE; f 785 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 786 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 787 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 789 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name), f 790 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field); f 795 drivers/media/usb/zr364xx/zr364xx.c struct v4l2_format *f) f 803 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.pixelformat = formats[0].fourcc; f 804 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field = V4L2_FIELD_NONE; f 805 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.width = cam->width; f 806 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.height = cam->height; f 807 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 808 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 809 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 814 drivers/media/usb/zr364xx/zr364xx.c struct v4l2_format *f) f 819 drivers/media/usb/zr364xx/zr364xx.c int ret = zr364xx_vidioc_try_fmt_vid_cap(file, cam, f); f 839 drivers/media/usb/zr364xx/zr364xx.c cam->width = f->fmt.pix.width; f 840 drivers/media/usb/zr364xx/zr364xx.c cam->height = f->fmt.pix.height; f 843 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.bytesperline = f->fmt.pix.width * 2; f 844 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; f 845 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 846 drivers/media/usb/zr364xx/zr364xx.c cam->vb_vidq.field = f->fmt.pix.field; f 848 drivers/media/usb/zr364xx/zr364xx.c if (f->fmt.pix.width == 160 && f->fmt.pix.height == 120) f 850 drivers/media/usb/zr364xx/zr364xx.c else if (f->fmt.pix.width == 640 && f->fmt.pix.height == 480) f 902 drivers/media/usb/zr364xx/zr364xx.c decode_fourcc(f->fmt.pix.pixelformat, pixelformat_name), f 903 drivers/media/usb/zr364xx/zr364xx.c f->fmt.pix.field); f 1184 drivers/media/v4l2-core/tuner-core.c static int tuner_s_frequency(struct v4l2_subdev *sd, const struct v4l2_frequency *f) f 1188 drivers/media/v4l2-core/tuner-core.c if (set_mode(t, f->type) == 0) f 1189 drivers/media/v4l2-core/tuner-core.c set_freq(t, f->frequency); f 1203 drivers/media/v4l2-core/tuner-core.c static int tuner_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f) f 1208 drivers/media/v4l2-core/tuner-core.c if (check_mode(t, f->type) == -EINVAL) f 1210 drivers/media/v4l2-core/tuner-core.c if (f->type == t->mode && fe_tuner_ops->get_frequency && !t->standby) { f 1214 drivers/media/v4l2-core/tuner-core.c f->frequency = (V4L2_TUNER_RADIO == t->mode) ? f 1218 drivers/media/v4l2-core/tuner-core.c f->frequency = (V4L2_TUNER_RADIO == f->type) ? f 49 drivers/media/v4l2-core/videobuf-core.c #define CALL(q, f, arg...) \ f 50 drivers/media/v4l2-core/videobuf-core.c ((q->int_ops->f) ? q->int_ops->f(arg) : 0) f 51 drivers/media/v4l2-core/videobuf-core.c #define CALLPTR(q, f, arg...) \ f 52 drivers/media/v4l2-core/videobuf-core.c ((q->int_ops->f) ? q->int_ops->f(arg) : NULL) f 584 drivers/message/fusion/lsi/mpi.h #define MPI_SGE_SET_FLAGS(f) ((U32)(f) << MPI_SGE_FLAGS_SHIFT) f 589 drivers/message/fusion/lsi/mpi.h #define MPI_SGE_SET_FLAGS_LENGTH(f,l) (MPI_SGE_SET_FLAGS(f) | MPI_SGE_LENGTH(l)) f 593 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_SET_FLAGS_LENGTH(psg,f,l) (psg)->FlagsLength = MPI_SGE_SET_FLAGS_LENGTH(f,l) f 595 drivers/message/fusion/lsi/mpi.h #define MPI_pSGE_SET_FLAGS(psg,f) (psg)->FlagsLength |= MPI_SGE_SET_FLAGS(f) f 121 drivers/message/fusion/mptctl.c static long compat_mpctl_ioctl(struct file *f, unsigned cmd, unsigned long arg); f 2805 drivers/message/fusion/mptctl.c static long compat_mpctl_ioctl(struct file *f, unsigned int cmd, unsigned long arg) f 2821 drivers/message/fusion/mptctl.c ret = __mptctl_ioctl(f, cmd, arg); f 2824 drivers/message/fusion/mptctl.c ret = compat_mpt_command(f, cmd, arg); f 2827 drivers/message/fusion/mptctl.c ret = compat_mptfwxfer_ioctl(f, cmd, arg); f 601 drivers/misc/habanalabs/debugfs.c static ssize_t hl_data_read32(struct file *f, char __user *buf, f 604 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 631 drivers/misc/habanalabs/debugfs.c static ssize_t hl_data_write32(struct file *f, const char __user *buf, f 634 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 660 drivers/misc/habanalabs/debugfs.c static ssize_t hl_get_power_state(struct file *f, char __user *buf, f 663 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 684 drivers/misc/habanalabs/debugfs.c static ssize_t hl_set_power_state(struct file *f, const char __user *buf, f 687 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 712 drivers/misc/habanalabs/debugfs.c static ssize_t hl_i2c_data_read(struct file *f, char __user *buf, f 715 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 740 drivers/misc/habanalabs/debugfs.c static ssize_t hl_i2c_data_write(struct file *f, const char __user *buf, f 743 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 764 drivers/misc/habanalabs/debugfs.c static ssize_t hl_led0_write(struct file *f, const char __user *buf, f 767 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 783 drivers/misc/habanalabs/debugfs.c static ssize_t hl_led1_write(struct file *f, const char __user *buf, f 786 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 802 drivers/misc/habanalabs/debugfs.c static ssize_t hl_led2_write(struct file *f, const char __user *buf, f 805 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 821 drivers/misc/habanalabs/debugfs.c static ssize_t hl_device_read(struct file *f, char __user *buf, f 829 drivers/misc/habanalabs/debugfs.c static ssize_t hl_device_write(struct file *f, const char __user *buf, f 832 drivers/misc/habanalabs/debugfs.c struct hl_dbg_device_entry *entry = file_inode(f)->i_private; f 33 drivers/misc/lkdtm/core.c static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, f 35 drivers/misc/lkdtm/core.c static ssize_t direct_entry(struct file *f, const char __user *user_buf, f 40 drivers/misc/lkdtm/core.c static ssize_t lkdtm_debugfs_entry(struct file *f, f 286 drivers/misc/lkdtm/core.c static ssize_t lkdtm_debugfs_entry(struct file *f, f 290 drivers/misc/lkdtm/core.c struct crashpoint *crashpoint = file_inode(f)->i_private; f 326 drivers/misc/lkdtm/core.c static ssize_t lkdtm_debugfs_read(struct file *f, char __user *user_buf, f 356 drivers/misc/lkdtm/core.c static ssize_t direct_entry(struct file *f, const char __user *user_buf, f 498 drivers/misc/mei/bus-fixup.c struct mei_fixup *f; f 504 drivers/misc/mei/bus-fixup.c f = &mei_fixups[i]; f 505 drivers/misc/mei/bus-fixup.c if (uuid_le_cmp(f->uuid, MEI_UUID_ANY) == 0 || f 506 drivers/misc/mei/bus-fixup.c uuid_le_cmp(f->uuid, *uuid) == 0) f 507 drivers/misc/mei/bus-fixup.c f->hook(cldev); f 1289 drivers/misc/mic/scif/scif_api.c static inline void _scif_poll_wait(struct file *f, wait_queue_head_t *wq, f 1300 drivers/misc/mic/scif/scif_api.c poll_wait(f, wq, p); f 1305 drivers/misc/mic/scif/scif_api.c __scif_pollfd(struct file *f, poll_table *wait, struct scif_endpt *ep) f 1316 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->conn_pend_wq, wait, ep); f 1328 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->conwq, wait, ep); f 1339 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->recvwq, wait, ep); f 1341 drivers/misc/mic/scif/scif_api.c _scif_poll_wait(f, &ep->sendwq, wait, ep); f 196 drivers/misc/mic/scif/scif_epd.h __poll_t __scif_pollfd(struct file *f, poll_table *wait, f 11 drivers/misc/mic/scif/scif_fd.c static int scif_fdopen(struct inode *inode, struct file *f) f 17 drivers/misc/mic/scif/scif_fd.c f->private_data = priv; f 21 drivers/misc/mic/scif/scif_fd.c static int scif_fdclose(struct inode *inode, struct file *f) f 23 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 28 drivers/misc/mic/scif/scif_fd.c static int scif_fdmmap(struct file *f, struct vm_area_struct *vma) f 30 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 35 drivers/misc/mic/scif/scif_fd.c static __poll_t scif_fdpoll(struct file *f, poll_table *wait) f 37 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 39 drivers/misc/mic/scif/scif_fd.c return __scif_pollfd(f, wait, priv); f 42 drivers/misc/mic/scif/scif_fd.c static int scif_fdflush(struct file *f, fl_owner_t id) f 44 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *ep = f->private_data; f 72 drivers/misc/mic/scif/scif_fd.c static long scif_fdioctl(struct file *f, unsigned int cmd, unsigned long arg) f 74 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 80 drivers/misc/mic/scif/scif_fd.c non_block = !!(f->f_flags & O_NONBLOCK); f 159 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 204 drivers/misc/mic/scif/scif_fd.c f->private_data = newep; f 209 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 233 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 301 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 332 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 346 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 361 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 376 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 391 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 406 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 428 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 436 drivers/misc/mic/scif/scif_fd.c struct scif_endpt *priv = f->private_data; f 871 drivers/misc/mic/vop/vop_vringh.c static int vop_open(struct inode *inode, struct file *f) f 874 drivers/misc/mic/vop/vop_vringh.c struct vop_info *vi = container_of(f->private_data, f 882 drivers/misc/mic/vop/vop_vringh.c f->private_data = vdev; f 888 drivers/misc/mic/vop/vop_vringh.c static int vop_release(struct inode *inode, struct file *f) f 890 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data, *vdev_tmp; f 913 drivers/misc/mic/vop/vop_vringh.c f->private_data = NULL; f 918 drivers/misc/mic/vop/vop_vringh.c static long vop_ioctl(struct file *f, unsigned int cmd, unsigned long arg) f 920 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; f 1015 drivers/misc/mic/vop/vop_vringh.c static __poll_t vop_poll(struct file *f, poll_table *wait) f 1017 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; f 1025 drivers/misc/mic/vop/vop_vringh.c poll_wait(f, &vdev->waitq, wait); f 1075 drivers/misc/mic/vop/vop_vringh.c static int vop_mmap(struct file *f, struct vm_area_struct *vma) f 1077 drivers/misc/mic/vop/vop_vringh.c struct vop_vdev *vdev = f->private_data; f 20 drivers/misc/sgi-gru/gruprocfs.c #define printstat(s, f) printstat_val(s, &gru_stats.f, #f) f 1657 drivers/misc/vmw_balloon.c static int vmballoon_debug_show(struct seq_file *f, void *offset) f 1659 drivers/misc/vmw_balloon.c struct vmballoon *b = f->private; f 1671 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %#16x\n", "balloon capabilities", f 1673 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %#16lx\n", "used capabilities", b->capabilities); f 1674 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %16s\n", "is resetting", f 1678 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %16lu\n", "target", READ_ONCE(b->target)); f 1679 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %16llu\n", "current", atomic64_read(&b->size)); f 1685 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %16llu (%llu failed)\n", f 1692 drivers/misc/vmw_balloon.c seq_printf(f, "%-22s: %16llu\n", f 1698 drivers/misc/vmw_balloon.c seq_printf(f, "%-18s(%s): %16llu\n", f 151 drivers/mmc/core/quirks.h const struct mmc_fixup *f; f 154 drivers/mmc/core/quirks.h for (f = table; f->vendor_fixup; f++) { f 155 drivers/mmc/core/quirks.h if ((f->manfid == CID_MANFID_ANY || f 156 drivers/mmc/core/quirks.h f->manfid == card->cid.manfid) && f 157 drivers/mmc/core/quirks.h (f->oemid == CID_OEMID_ANY || f 158 drivers/mmc/core/quirks.h f->oemid == card->cid.oemid) && f 159 drivers/mmc/core/quirks.h (f->name == CID_NAME_ANY || f 160 drivers/mmc/core/quirks.h !strncmp(f->name, card->cid.prod_name, f 162 drivers/mmc/core/quirks.h (f->cis_vendor == card->cis.vendor || f 163 drivers/mmc/core/quirks.h f->cis_vendor == (u16) SDIO_ANY_ID) && f 164 drivers/mmc/core/quirks.h (f->cis_device == card->cis.device || f 165 drivers/mmc/core/quirks.h f->cis_device == (u16) SDIO_ANY_ID) && f 166 drivers/mmc/core/quirks.h (f->ext_csd_rev == EXT_CSD_REV_ANY || f 167 drivers/mmc/core/quirks.h f->ext_csd_rev == card->ext_csd.rev) && f 168 drivers/mmc/core/quirks.h rev >= f->rev_start && rev <= f->rev_end) { f 169 drivers/mmc/core/quirks.h dev_dbg(&card->dev, "calling %ps\n", f->vendor_fixup); f 170 drivers/mmc/core/quirks.h f->vendor_fixup(card, f->data); f 98 drivers/mmc/host/cqhci.c #define CQHCI_DUMP(f, x...) \ f 99 drivers/mmc/host/cqhci.c pr_err("%s: " DRV_NAME ": " f, mmc_hostname(mmc), ## x) f 336 drivers/mmc/host/dw_mmc.h #define _SBF(f, v) ((v) << (f)) f 38 drivers/mmc/host/sdhci.c #define DBG(f, x...) \ f 39 drivers/mmc/host/sdhci.c pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) f 41 drivers/mmc/host/sdhci.c #define SDHCI_DUMP(f, x...) \ f 42 drivers/mmc/host/sdhci.c pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) f 57 drivers/mmc/host/sdhci.h #define SDHCI_MAKE_CMD(c, f) (((c & 0xff) << 8) | (f & 0xff)) f 43 drivers/mmc/host/wbsd.c #define DBGF(f, x...) \ f 44 drivers/mmc/host/wbsd.c pr_debug(DRIVER_NAME " [%s()]: " f, __func__ , ##x) f 80 drivers/mtd/chips/cfi_probe.c const struct cfi_early_fixup *f; f 82 drivers/mtd/chips/cfi_probe.c for (f = fixups; f->fixup; f++) { f 83 drivers/mtd/chips/cfi_probe.c if (((f->mfr == CFI_MFR_ANY) || (f->mfr == cfi->mfr)) && f 84 drivers/mtd/chips/cfi_probe.c ((f->id == CFI_ID_ANY) || (f->id == cfi->id))) { f 85 drivers/mtd/chips/cfi_probe.c f->fixup(cfi); f 346 drivers/mtd/chips/cfi_util.c struct cfi_fixup *f; f 348 drivers/mtd/chips/cfi_util.c for (f=fixups; f->fixup; f++) { f 349 drivers/mtd/chips/cfi_util.c if (((f->mfr == CFI_MFR_ANY) || (f->mfr == cfi->mfr)) && f 350 drivers/mtd/chips/cfi_util.c ((f->id == CFI_ID_ANY) || (f->id == cfi->id))) { f 351 drivers/mtd/chips/cfi_util.c f->fixup(mtd); f 1537 drivers/mtd/devices/docg3.c __ATTR(f##id##_dps0_is_keylocked, S_IRUGO, dps0_is_key_locked, NULL), \ f 1538 drivers/mtd/devices/docg3.c __ATTR(f##id##_dps1_is_keylocked, S_IRUGO, dps1_is_key_locked, NULL), \ f 1539 drivers/mtd/devices/docg3.c __ATTR(f##id##_dps0_protection_key, S_IWUSR|S_IWGRP, NULL, dps0_insert_key), \ f 1540 drivers/mtd/devices/docg3.c __ATTR(f##id##_dps1_protection_key, S_IWUSR|S_IWGRP, NULL, dps1_insert_key), \ f 84 drivers/mtd/maps/lantiq-flash.c unsigned char *f = (unsigned char *)map->virt + from; f 90 drivers/mtd/maps/lantiq-flash.c *t++ = *f++; f 98 drivers/mtd/maps/lantiq-flash.c unsigned char *f = (unsigned char *)from; f 104 drivers/mtd/maps/lantiq-flash.c *t++ = *f++; f 459 drivers/mtd/ubi/debug.c static int eraseblk_count_open(struct inode *inode, struct file *f) f 464 drivers/mtd/ubi/debug.c err = seq_open(f, &eraseblk_count_seq_ops); f 468 drivers/mtd/ubi/debug.c s = f->private_data; f 477 drivers/mtd/ubi/debug.c static int eraseblk_count_release(struct inode *inode, struct file *f) f 479 drivers/mtd/ubi/debug.c struct seq_file *s = f->private_data; f 484 drivers/mtd/ubi/debug.c return seq_release(inode, f); f 258 drivers/net/appletalk/ipddp.c struct ipddp_route *f; f 260 drivers/net/appletalk/ipddp.c for(f = ipddp_route_list; f != NULL; f = f->next) f 262 drivers/net/appletalk/ipddp.c if(f->ip == rt->ip && f 263 drivers/net/appletalk/ipddp.c f->at.s_net == rt->at.s_net && f 264 drivers/net/appletalk/ipddp.c f->at.s_node == rt->at.s_node) f 265 drivers/net/appletalk/ipddp.c return f; f 937 drivers/net/appletalk/ltpc.c unsigned long f; f 943 drivers/net/appletalk/ltpc.c f=claim_dma_lock(); f 950 drivers/net/appletalk/ltpc.c release_dma_lock(f); f 957 drivers/net/appletalk/ltpc.c f=claim_dma_lock(); f 964 drivers/net/appletalk/ltpc.c release_dma_lock(f); f 1020 drivers/net/appletalk/ltpc.c unsigned long f; f 1129 drivers/net/appletalk/ltpc.c f=claim_dma_lock(); f 1136 drivers/net/appletalk/ltpc.c release_dma_lock(f); f 111 drivers/net/can/usb/peak_usb/pcan_usb.c static int pcan_usb_send_cmd(struct peak_usb_device *dev, u8 f, u8 n, u8 *p) f 120 drivers/net/can/usb/peak_usb/pcan_usb.c dev->cmd_buf[PCAN_USB_CMD_FUNC] = f; f 134 drivers/net/can/usb/peak_usb/pcan_usb.c f, n, err); f 141 drivers/net/can/usb/peak_usb/pcan_usb.c static int pcan_usb_wait_rsp(struct peak_usb_device *dev, u8 f, u8 n, u8 *p) f 151 drivers/net/can/usb/peak_usb/pcan_usb.c err = pcan_usb_send_cmd(dev, f, n, NULL); f 161 drivers/net/can/usb/peak_usb/pcan_usb.c "waiting rsp f=0x%x n=0x%x failure: %d\n", f, n, err); f 543 drivers/net/can/usb/peak_usb/pcan_usb.c u8 f, n; f 550 drivers/net/can/usb/peak_usb/pcan_usb.c f = mc->ptr[PCAN_USB_CMD_FUNC]; f 566 drivers/net/can/usb/peak_usb/pcan_usb.c switch (f) { f 595 drivers/net/can/usb/peak_usb/pcan_usb.c netdev_err(mc->netdev, "unexpected function %u\n", f); f 1440 drivers/net/ethernet/atheros/alx/main.c int maplen, f, first_idx = txq->write_idx; f 1467 drivers/net/ethernet/atheros/alx/main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) { f 1468 drivers/net/ethernet/atheros/alx/main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1498 drivers/net/ethernet/atheros/alx/main.c f = first_idx; f 1499 drivers/net/ethernet/atheros/alx/main.c while (f != txq->write_idx) { f 1500 drivers/net/ethernet/atheros/alx/main.c alx_free_txbuf(txq, f); f 1501 drivers/net/ethernet/atheros/alx/main.c if (++f == txq->count) f 1502 drivers/net/ethernet/atheros/alx/main.c f = 0; f 2102 drivers/net/ethernet/atheros/atl1c/atl1c_main.c u16 f; f 2152 drivers/net/ethernet/atheros/atl1c/atl1c_main.c for (f = 0; f < nr_frags; f++) { f 2153 drivers/net/ethernet/atheros/atl1c/atl1c_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1703 drivers/net/ethernet/atheros/atl1e/atl1e_main.c u16 f; f 1772 drivers/net/ethernet/atheros/atl1e/atl1e_main.c for (f = 0; f < nr_frags; f++) { f 1773 drivers/net/ethernet/atheros/atl1e/atl1e_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 2194 drivers/net/ethernet/atheros/atlx/atl1.c unsigned int f; f 2258 drivers/net/ethernet/atheros/atlx/atl1.c for (f = 0; f < nr_frags; f++) { f 2259 drivers/net/ethernet/atheros/atlx/atl1.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 2350 drivers/net/ethernet/atheros/atlx/atl1.c unsigned int f; f 2361 drivers/net/ethernet/atheros/atlx/atl1.c for (f = 0; f < nr_frags; f++) { f 2362 drivers/net/ethernet/atheros/atlx/atl1.c unsigned int f_size = skb_frag_size(&skb_shinfo(skb)->frags[f]); f 616 drivers/net/ethernet/broadcom/bnx2x/bnx2x_init_ops.h #define ILT_RANGE(f, l) (((l) << 10) | f) f 10560 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c #define BNX2X_PREV_UNDI_PROD_ADDR_H(f) (BAR_TSTRORM_INTMEM + \ f 10561 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c 0x1848 + ((f) << 4)) f 469 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h #define UPDATE_QSTAT_OLD(f) \ f 471 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h qstats_old->f = qstats->f; \ f 508 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h #define UPDATE_FW_STAT_OLD(f) \ f 510 drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.h fwstats->f = estats->f; \ f 142 drivers/net/ethernet/broadcom/sb1250-mac.c #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \ f 143 drivers/net/ethernet/broadcom/sb1250-mac.c (d)->sbdma_dscrtable : (d)->f+1) f 3139 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfa_flash_attr *attr, *f; f 3142 drivers/net/ethernet/brocade/bna/bfa_ioc.c f = (struct bfa_flash_attr *) flash->dbuf_kva; f 3143 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->status = be32_to_cpu(f->status); f 3144 drivers/net/ethernet/brocade/bna/bfa_ioc.c attr->npart = be32_to_cpu(f->npart); f 3147 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_type); f 3149 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_instance); f 3151 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_off); f 3153 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_size); f 3155 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_len); f 3157 drivers/net/ethernet/brocade/bna/bfa_ioc.c be32_to_cpu(f->part[i].part_status); f 1503 drivers/net/ethernet/cadence/macb_main.c unsigned int f, nr_frags = skb_shinfo(skb)->nr_frags; f 1549 drivers/net/ethernet/cadence/macb_main.c for (f = 0; f < nr_frags; f++) { f 1550 drivers/net/ethernet/cadence/macb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1670 drivers/net/ethernet/cadence/macb_main.c unsigned int nr_frags, f; f 1692 drivers/net/ethernet/cadence/macb_main.c for (f = 0; f < nr_frags; f++) { f 1693 drivers/net/ethernet/cadence/macb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1782 drivers/net/ethernet/cadence/macb_main.c unsigned int desc_cnt, nr_frags, frag_size, f; f 1835 drivers/net/ethernet/cadence/macb_main.c for (f = 0; f < nr_frags; f++) { f 1836 drivers/net/ethernet/cadence/macb_main.c frag_size = skb_frag_size(&skb_shinfo(skb)->frags[f]); f 1942 drivers/net/ethernet/cavium/liquidio/lio_main.c enum octnet_ifflags f = OCTNET_IFFLAG_UNICAST; f 1945 drivers/net/ethernet/cavium/liquidio/lio_main.c f |= OCTNET_IFFLAG_PROMISC; f 1948 drivers/net/ethernet/cavium/liquidio/lio_main.c f |= OCTNET_IFFLAG_ALLMULTI; f 1951 drivers/net/ethernet/cavium/liquidio/lio_main.c f |= OCTNET_IFFLAG_MULTICAST; f 1957 drivers/net/ethernet/cavium/liquidio/lio_main.c f |= OCTNET_IFFLAG_ALLMULTI; f 1961 drivers/net/ethernet/cavium/liquidio/lio_main.c f |= OCTNET_IFFLAG_BROADCAST; f 1963 drivers/net/ethernet/cavium/liquidio/lio_main.c return f; f 1004 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c enum octnet_ifflags f = OCTNET_IFFLAG_UNICAST; f 1007 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c f |= OCTNET_IFFLAG_PROMISC; f 1010 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c f |= OCTNET_IFFLAG_ALLMULTI; f 1013 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c f |= OCTNET_IFFLAG_MULTICAST; f 1019 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c f |= OCTNET_IFFLAG_ALLMULTI; f 1023 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c f |= OCTNET_IFFLAG_BROADCAST; f 1025 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c return f; f 95 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c struct seq_tab *seq_open_tab(struct file *f, unsigned int rows, f 101 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c p = __seq_open_private(f, &seq_tab_ops, sizeof(*p) + rows * width); f 60 drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.h struct seq_tab *seq_open_tab(struct file *f, unsigned int rows, f 56 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static int set_tcb_field(struct adapter *adap, struct filter_entry *f, f 75 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); f 82 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static int set_tcb_tflag(struct adapter *adap, struct filter_entry *f, f 86 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c return set_tcb_field(adap, f, ftid, TCB_T_FLAGS_W, 1ULL << bit_pos, f 120 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static void mk_set_tcb_ulp(struct filter_entry *f, f 132 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c OPCODE_TID(req) = htonl(MK_OPCODE_TID(CPL_SET_TCB_FIELD, f->tid)); f 143 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static int configure_filter_smac(struct adapter *adap, struct filter_entry *f) f 148 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c err = set_tcb_tflag(adap, f, f->tid, TF_CCTRL_CWR_S, 1, 1); f 152 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c err = set_tcb_field(adap, f, f->tid, TCB_SMAC_SEL_W, f 154 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TCB_SMAC_SEL_V(f->smt->idx), 1); f 160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->tid, err); f 164 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static void set_nat_params(struct adapter *adap, struct filter_entry *f, f 169 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { f 170 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_SND_UNA_RAW_W, f 171 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[15] | f 172 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[14] << 8 | f 173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[13] << 16 | f 174 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[12] << 24, 1); f 176 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_SND_UNA_RAW_W + 1, f 177 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[11] | f 178 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[10] << 8 | f 179 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[9] << 16 | f 180 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[8] << 24, 1); f 182 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_SND_UNA_RAW_W + 2, f 183 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[7] | f 184 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[6] << 8 | f 185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[5] << 16 | f 186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[4] << 24, 1); f 188 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_SND_UNA_RAW_W + 3, f 189 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[3] | f 190 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[2] << 8 | f 191 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[1] << 16 | f 192 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[0] << 24, 1); f 194 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_RX_FRAG3_LEN_RAW_W, f 195 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_lip[3] | f 196 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[2] << 8 | f 197 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[1] << 16 | f 198 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_lip[0] << 24, 1); f 203 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { f 204 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_RX_FRAG2_PTR_RAW_W, f 205 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[15] | f 206 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[14] << 8 | f 207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[13] << 16 | f 208 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[12] << 24, 1); f 210 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_RX_FRAG2_PTR_RAW_W + 1, f 211 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[11] | f 212 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[10] << 8 | f 213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[9] << 16 | f 214 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[8] << 24, 1); f 216 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_RX_FRAG2_PTR_RAW_W + 2, f 217 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[7] | f 218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[6] << 8 | f 219 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[5] << 16 | f 220 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[4] << 24, 1); f 222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_RX_FRAG2_PTR_RAW_W + 3, f 223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[3] | f 224 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[2] << 8 | f 225 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[1] << 16 | f 226 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[0] << 24, 1); f 229 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, f 231 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c WORD_MASK, f->fs.nat_fip[3] | f 232 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[2] << 8 | f 233 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[1] << 16 | f 234 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.nat_fip[0] << 24, 1); f 238 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_PDU_HDR_LEN_W, WORD_MASK, f 239 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (dp ? f->fs.nat_lport : 0) | f 240 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (sp ? f->fs.nat_fport << 16 : 0), 1); f 358 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 365 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = adapter->tids.tid_tab[fidx]; f 366 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f) f 377 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[fidx]; f 378 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->valid) f 381 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c tcbaddr = tcb_base + f->tid * TCB_SIZE; f 516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f = &adapter->tids.ftid_tab[fidx]; f 528 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t4_mk_filtdelwr(f->tid, fwr, adapter->sge.fw_evtq.abs_id); f 533 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 1; f 546 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f = &adapter->tids.ftid_tab[fidx]; f 558 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac || f->fs.newvlan) { f 560 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = t4_l2t_alloc_switching(adapter, f->fs.vlan, f 561 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.eport, f->fs.dmac); f 562 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->l2t) { f 571 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) { f 572 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); f 573 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->smt) { f 574 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->l2t) { f 575 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_l2t_release(f->l2t); f 576 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = NULL; f 599 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htonl(FW_FILTER_WR_TID_V(f->tid) | f 600 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_RQTYPE_V(f->fs.type) | f 602 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IQ_V(f->fs.iq)); f 604 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htonl(FW_FILTER_WR_RPTTID_V(f->fs.rpttid) | f 605 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DROP_V(f->fs.action == FILTER_DROP) | f 606 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DIRSTEER_V(f->fs.dirsteer) | f 607 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MASKHASH_V(f->fs.maskhash) | f 608 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DIRSTEERHASH_V(f->fs.dirsteerhash) | f 609 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_LPBK_V(f->fs.action == FILTER_SWITCH) | f 610 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_DMAC_V(f->fs.newdmac) | f 611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_INSVLAN_V(f->fs.newvlan == VLAN_INSERT || f 612 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | f 613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_RMVLAN_V(f->fs.newvlan == VLAN_REMOVE || f 614 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | f 615 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_HITCNTS_V(f->fs.hitcnts) | f 616 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_TXCHAN_V(f->fs.eport) | f 617 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PRIO_V(f->fs.prio) | f 618 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_L2TIX_V(f->l2t ? f->l2t->idx : 0)); f 619 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtype = htons(f->fs.val.ethtype); f 620 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ethtypem = htons(f->fs.mask.ethtype); f 622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (FW_FILTER_WR_FRAG_V(f->fs.val.frag) | f 623 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FRAGM_V(f->fs.mask.frag) | f 624 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IVLAN_VLD_V(f->fs.val.ivlan_vld) | f 625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_OVLAN_VLD_V(f->fs.val.ovlan_vld) | f 626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_IVLAN_VLDM_V(f->fs.mask.ivlan_vld) | f 627 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_OVLAN_VLDM_V(f->fs.mask.ovlan_vld)); f 633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c htonl(FW_FILTER_WR_MACI_V(f->fs.val.macidx) | f 634 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MACIM_V(f->fs.mask.macidx) | f 635 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FCOE_V(f->fs.val.fcoe) | f 636 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_FCOEM_V(f->fs.mask.fcoe) | f 637 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PORT_V(f->fs.val.iport) | f 638 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_PORTM_V(f->fs.mask.iport) | f 639 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MATCHTYPE_V(f->fs.val.matchtype) | f 640 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER_WR_MATCHTYPEM_V(f->fs.mask.matchtype)); f 641 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ptcl = f->fs.val.proto; f 642 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ptclm = f->fs.mask.proto; f 643 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ttyp = f->fs.val.tos; f 644 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ttypm = f->fs.mask.tos; f 645 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlan = htons(f->fs.val.ivlan); f 646 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ivlanm = htons(f->fs.mask.ivlan); f 647 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlan = htons(f->fs.val.ovlan); f 648 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->ovlanm = htons(f->fs.mask.ovlan); f 649 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->lip, f->fs.val.lip, sizeof(fwr->lip)); f 650 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->lipm, f->fs.mask.lip, sizeof(fwr->lipm)); f 651 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->fip, f->fs.val.fip, sizeof(fwr->fip)); f 652 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->fipm, f->fs.mask.fip, sizeof(fwr->fipm)); f 653 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lp = htons(f->fs.val.lport); f 654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->lpm = htons(f->fs.mask.lport); f 655 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fp = htons(f->fs.val.fport); f 656 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->fpm = htons(f->fs.mask.fport); f 660 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER2_WR_ULP_TYPE_V(f->fs.nat_mode ? f 663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c FW_FILTER2_WR_NATMODE_V(f->fs.nat_mode); f 664 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->newlip, f->fs.nat_lip, sizeof(fwr->newlip)); f 665 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(fwr->newfip, f->fs.nat_fip, sizeof(fwr->newfip)); f 666 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newlport = htons(f->fs.nat_lport); f 667 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c fwr->newfport = htons(f->fs.nat_fport); f 673 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 1; f 674 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); f 680 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c int writable_filter(struct filter_entry *f) f 682 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->locked) f 684 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->pending) f 696 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 702 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[fidx]; f 703 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = writable_filter(f); f 706 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) f 715 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c void clear_filter(struct adapter *adap, struct filter_entry *f) f 717 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); f 723 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->l2t) f 724 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_l2t_release(f->l2t); f 726 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->smt) f 727 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_smt_release(f->smt); f 729 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld && f->fs.val.ovlan_vld) f 731 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan & 0x1ff, 0); f 733 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if ((f->fs.hash || is_t6(adap->params.chip)) && f->fs.type) f 734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); f 740 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memset(f, 0, sizeof(*f)); f 749 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f = &adapter->tids.ftid_tab[0]; f 753 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c for (i = 0; i < max_ftid; i++, f++) f 754 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid || f->pending) f 755 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); f 760 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 765 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = (struct filter_entry *) f 768 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f && (f->valid || f->pending)) f 769 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); f 774 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = (struct filter_entry *)adapter->tids.tid_tab[i]; f 776 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f && (f->valid || f->pending)) f 777 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_del_filter(dev, i, &f->fs); f 1010 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static void mk_act_open_req6(struct filter_entry *f, struct sk_buff *skb, f 1020 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_port = cpu_to_be16(f->fs.val.lport); f 1021 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_port = cpu_to_be16(f->fs.val.fport); f 1022 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_ip_hi = *(__be64 *)(&f->fs.val.lip); f 1023 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_ip_lo = *(((__be64 *)&f->fs.val.lip) + 1); f 1024 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_ip_hi = *(__be64 *)(&f->fs.val.fip); f 1025 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_ip_lo = *(((__be64 *)&f->fs.val.fip) + 1); f 1026 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->opt0 = cpu_to_be64(NAGLE_V(f->fs.newvlan == VLAN_REMOVE || f 1027 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | f 1028 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c DELACK_V(f->fs.hitcnts) | f 1029 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c L2T_IDX_V(f->l2t ? f->l2t->idx : 0) | f 1030 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c SMAC_SEL_V((cxgb4_port_viid(f->dev) & f 1032 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_CHAN_V(f->fs.eport) | f 1033 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c NO_CONG_V(f->fs.rpttid) | f 1034 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ULP_MODE_V(f->fs.nat_mode ? f 1037 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t6req->params = cpu_to_be64(FILTER_TUPLE_V(hash_filter_ntuple(&f->fs, f 1038 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->dev))); f 1040 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RSS_QUEUE_V(f->fs.iq) | f 1041 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_QUEUE_V(f->fs.nat_mode) | f 1043 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RX_CHANNEL_V(cxgb4_port_e2cchan(f->dev)) | f 1044 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CONG_CNTRL_V((f->fs.action == FILTER_DROP) | f 1045 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (f->fs.dirsteer << 1)) | f 1046 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c PACE_V((f->fs.maskhash) | f 1047 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ((f->fs.dirsteerhash) << 1)) | f 1048 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CCTRL_ECN_V(f->fs.action == FILTER_SWITCH)); f 1051 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c static void mk_act_open_req(struct filter_entry *f, struct sk_buff *skb, f 1061 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->local_port = cpu_to_be16(f->fs.val.lport); f 1062 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->peer_port = cpu_to_be16(f->fs.val.fport); f 1063 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(&req->local_ip, f->fs.val.lip, 4); f 1064 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c memcpy(&req->peer_ip, f->fs.val.fip, 4); f 1065 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c req->opt0 = cpu_to_be64(NAGLE_V(f->fs.newvlan == VLAN_REMOVE || f 1066 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) | f 1067 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c DELACK_V(f->fs.hitcnts) | f 1068 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c L2T_IDX_V(f->l2t ? f->l2t->idx : 0) | f 1069 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c SMAC_SEL_V((cxgb4_port_viid(f->dev) & f 1071 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_CHAN_V(f->fs.eport) | f 1072 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c NO_CONG_V(f->fs.rpttid) | f 1073 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ULP_MODE_V(f->fs.nat_mode ? f 1077 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t6req->params = cpu_to_be64(FILTER_TUPLE_V(hash_filter_ntuple(&f->fs, f 1078 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->dev))); f 1080 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RSS_QUEUE_V(f->fs.iq) | f 1081 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c TX_QUEUE_V(f->fs.nat_mode) | f 1083 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c RX_CHANNEL_V(cxgb4_port_e2cchan(f->dev)) | f 1084 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CONG_CNTRL_V((f->fs.action == FILTER_DROP) | f 1085 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c (f->fs.dirsteer << 1)) | f 1086 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c PACE_V((f->fs.maskhash) | f 1087 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ((f->fs.dirsteerhash) << 1)) | f 1088 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c CCTRL_ECN_V(f->fs.action == FILTER_SWITCH)); f 1098 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 1114 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f) f 1117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs = *fs; f 1118 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = ctx; f 1119 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->dev = dev; f 1120 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.iq = iq; f 1126 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac || f->fs.newvlan) { f 1128 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = t4_l2t_alloc_switching(adapter, f->fs.vlan, f 1129 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.eport, f->fs.dmac); f 1130 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->l2t) { f 1139 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) { f 1140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = cxgb4_smt_alloc_switching(f->dev, f->fs.smac); f 1141 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->smt) { f 1142 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->l2t) { f 1143 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_l2t_release(f->l2t); f 1144 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = NULL; f 1151 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c atid = cxgb4_alloc_atid(t, f); f 1159 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; f 1160 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; f 1161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = fs->val.pfvf_vld; f 1162 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = fs->mask.pfvf_vld; f 1164 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld) { f 1165 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); f 1172 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.vni, f 1173 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.vni, f 1178 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = ret; f 1179 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = 0xffff; f 1180 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = 1; f 1181 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = 1; f 1186 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.type) { f 1187 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = cxgb4_clip_get(f->dev, (const u32 *)&f->fs.val.lip, 1); f 1197 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c mk_act_open_req6(f, skb, f 1207 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c mk_act_open_req(f, skb, f 1212 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 1; f 1213 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_SETUP, f->fs.val.iport & 0x3); f 1218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); f 1221 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld && f->fs.val.ovlan_vld) f 1222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c t4_free_encap_mac_filt(adapter, pi->viid, f->fs.val.ovlan, 1); f 1228 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->smt) { f 1229 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_smt_release(f->smt); f 1230 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->smt = NULL; f 1234 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->l2t) { f 1235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_l2t_release(f->l2t); f 1236 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->l2t = NULL; f 1240 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c kfree(f); f 1257 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1306 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[fidx]; f 1307 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) { f 1330 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[fidx]; f 1331 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) { f 1346 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[fidx]; f 1347 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) { f 1358 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[filter_id]; f 1359 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) f 1370 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = writable_filter(f); f 1395 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs = *fs; f 1396 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.iq = iq; f 1397 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->dev = dev; f 1401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; f 1402 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; f 1403 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = fs->val.pfvf_vld; f 1404 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = fs->mask.pfvf_vld; f 1406 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.val.encap_vld) { f 1407 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct port_info *pi = netdev_priv(f->dev); f 1414 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.vni, f 1415 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.vni, f 1420 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan = ret; f 1421 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan = 0x1ff; f 1422 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.val.ovlan_vld = 1; f 1423 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.mask.ovlan_vld = 1; f 1430 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = ctx; f 1431 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->tid = fidx; /* Save the actual tid */ f 1437 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adapter, f); f 1443 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (is_t6(adapter->params.chip) && f->fs.type) f 1444 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_clip_release(f->dev, (const u32 *)&f->fs.val.lip, 1); f 1460 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1471 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = lookup_tid(t, filter_id); f 1472 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f) { f 1478 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = writable_filter(f); f 1482 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f->valid) f 1485 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = ctx; f 1486 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 1; f 1494 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); f 1500 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c mk_set_tcb_ulp(f, req, TCB_RSS_INFO_W, TCB_RSS_INFO_V(TCB_RSS_INFO_M), f 1504 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c mk_abort_req_ulp(abort_req, f->tid); f 1506 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c mk_abort_rpl_ulp(abort_rpl, f->tid); f 1522 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1539 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adapter->tids.ftid_tab[filter_id]; f 1540 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ret = writable_filter(f); f 1544 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->valid) { f 1545 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = ctx; f 1547 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.type ? PF_INET6 : PF_INET, f 1611 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f) f 1613 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.hitcnts) f 1614 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_field(adap, f, tid, TCB_TIMESTAMP_W, f 1621 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newdmac) f 1622 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_tflag(adap, f, tid, TF_CCTRL_ECE_S, 1, f 1625 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newvlan == VLAN_INSERT || f 1626 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->fs.newvlan == VLAN_REWRITE) f 1627 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_tcb_tflag(adap, f, tid, TF_CCTRL_RFR_S, 1, f 1629 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) f 1630 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c configure_filter_smac(adap, f); f 1632 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.nat_mode) { f 1633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c switch (f->fs.nat_mode) { f 1635 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, false, false, false); f 1639 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, false, true, false); f 1643 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, true, true, false); f 1646 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, false, true, true); f 1650 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, false, true, false, true); f 1654 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, true, false, true); f 1658 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c set_nat_params(adap, f, tid, true, true, true, true); f 1663 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c __func__, f->fs.nat_mode); f 1677 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1682 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = lookup_tid(t, tid); f 1683 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f) { f 1688 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ctx = f->ctx; f 1689 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = NULL; f 1690 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 1692 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c kfree(f); f 1706 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f; f 1711 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = lookup_atid(t, ftid); f 1712 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (!f) { f 1717 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ctx = f->ctx; f 1718 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = NULL; f 1722 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->tid = tid; f 1723 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 0; f 1724 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->valid = 1; f 1725 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c cxgb4_insert_tid(t, f, f->tid, 0); f 1728 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ctx->tid = f->tid; f 1731 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (configure_filter_tcb(adap, tid, f)) { f 1732 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 1734 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c kfree(f); f 1754 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 1756 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c kfree(f); f 1766 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c struct filter_entry *f = NULL; f 1777 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f = &adap->tids.ftid_tab[idx]; f 1778 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->tid != tid) f 1783 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f) { f 1790 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c ctx = f->ctx; f 1791 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->ctx = NULL; f 1797 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 1803 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c if (f->fs.newsmac) f 1804 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c err = configure_filter_smac(adap, f); f 1807 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->pending = 0; /* async setup completed */ f 1808 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c f->valid = 1; f 1814 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 1824 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c clear_filter(adap, f); f 46 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h void clear_filter(struct adapter *adap, struct filter_entry *f); f 51 drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.h int writable_filter(struct filter_entry *f); f 2481 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct filter_entry *f; f 2494 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f = &adap->tids.ftid_tab[stid]; f 2495 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = writable_filter(f); f 2502 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c if (f->valid) f 2503 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c clear_filter(adap, f); f 2506 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c memset(&f->fs, 0, sizeof(struct ch_filter_specification)); f 2507 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.lport = cpu_to_be16(sport); f 2508 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.lport = ~0; f 2512 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.lip[i] = val[i]; f 2513 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.lip[i] = ~0; f 2516 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.iport = port; f 2517 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.iport = mask; f 2522 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.val.proto = IPPROTO_TCP; f 2523 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.mask.proto = ~0; f 2526 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.dirsteer = 1; f 2527 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.iq = queue; f 2529 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->locked = 1; f 2530 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->fs.rpttid = 1; f 2535 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->tid = stid + adap->tids.ftid_base; f 2538 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c clear_filter(adap, f); f 2549 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c struct filter_entry *f; f 2558 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f = &adap->tids.ftid_tab[stid]; f 2560 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c f->locked = 0; f 41 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h int (*val)(struct ch_filter_specification *f, u32 val, u32 mask); f 45 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv4_tos(struct ch_filter_specification *f, f 48 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.tos = (ntohl(val) >> 16) & 0x000000FF; f 49 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.tos = (ntohl(mask) >> 16) & 0x000000FF; f 54 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv4_frag(struct ch_filter_specification *f, f 64 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.frag = 1; f 65 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.frag = 1; f 67 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.frag = 0; f 68 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.frag = 1; f 76 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv4_proto(struct ch_filter_specification *f, f 79 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.proto = (ntohl(val) >> 16) & 0x000000FF; f 80 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.proto = (ntohl(mask) >> 16) & 0x000000FF; f 85 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv4_src_ip(struct ch_filter_specification *f, f 88 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.fip[0], &val, sizeof(u32)); f 89 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.fip[0], &mask, sizeof(u32)); f 94 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv4_dst_ip(struct ch_filter_specification *f, f 97 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.lip[0], &val, sizeof(u32)); f 98 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.lip[0], &mask, sizeof(u32)); f 113 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_tos(struct ch_filter_specification *f, f 116 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.tos = (ntohl(val) >> 20) & 0x000000FF; f 117 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.tos = (ntohl(mask) >> 20) & 0x000000FF; f 122 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_proto(struct ch_filter_specification *f, f 125 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.proto = (ntohl(val) >> 8) & 0x000000FF; f 126 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.proto = (ntohl(mask) >> 8) & 0x000000FF; f 131 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_src_ip0(struct ch_filter_specification *f, f 134 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.fip[0], &val, sizeof(u32)); f 135 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.fip[0], &mask, sizeof(u32)); f 140 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_src_ip1(struct ch_filter_specification *f, f 143 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.fip[4], &val, sizeof(u32)); f 144 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.fip[4], &mask, sizeof(u32)); f 149 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_src_ip2(struct ch_filter_specification *f, f 152 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.fip[8], &val, sizeof(u32)); f 153 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.fip[8], &mask, sizeof(u32)); f 158 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_src_ip3(struct ch_filter_specification *f, f 161 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.fip[12], &val, sizeof(u32)); f 162 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.fip[12], &mask, sizeof(u32)); f 167 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_dst_ip0(struct ch_filter_specification *f, f 170 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.lip[0], &val, sizeof(u32)); f 171 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.lip[0], &mask, sizeof(u32)); f 176 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_dst_ip1(struct ch_filter_specification *f, f 179 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.lip[4], &val, sizeof(u32)); f 180 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.lip[4], &mask, sizeof(u32)); f 185 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_dst_ip2(struct ch_filter_specification *f, f 188 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.lip[8], &val, sizeof(u32)); f 189 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.lip[8], &mask, sizeof(u32)); f 194 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_ipv6_dst_ip3(struct ch_filter_specification *f, f 197 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->val.lip[12], &val, sizeof(u32)); f 198 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h memcpy(&f->mask.lip[12], &mask, sizeof(u32)); f 218 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h static inline int cxgb4_fill_l4_ports(struct ch_filter_specification *f, f 221 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.fport = ntohl(val) >> 16; f 222 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.fport = ntohl(mask) >> 16; f 223 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->val.lport = ntohl(val) & 0x0000FFFF; f 224 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32_parse.h f->mask.lport = ntohl(mask) & 0x0000FFFF; f 41 drivers/net/ethernet/cisco/enic/enic_res.h #define ENIC_SETTING(enic, f) ((enic->config.flags & VENETF_##f) ? 1 : 0) f 119 drivers/net/ethernet/freescale/enetc/enetc.c unsigned int f; f 190 drivers/net/ethernet/freescale/enetc/enetc.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++, frag++) { f 167 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_mac_filter *f = pf->mac_filter; f 173 drivers/net/ethernet/freescale/enetc/enetc_pf.c for (i = 0; i < MADDR_TYPE; i++, f++) { f 174 drivers/net/ethernet/freescale/enetc/enetc_pf.c bool em = (f->mac_addr_cnt == 1) && (i == UC); f 175 drivers/net/ethernet/freescale/enetc/enetc_pf.c bool clear = !f->mac_addr_cnt; f 191 drivers/net/ethernet/freescale/enetc/enetc_pf.c err = enetc_set_mac_flt_entry(si, pos, f->mac_addr, f 205 drivers/net/ethernet/freescale/enetc/enetc_pf.c enetc_set_mac_ht_flt(si, 0, i, (u32 *)f->mac_hash_table); f 28 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c #define HCLGE_MAC_STATS_FIELD_OFF(f) (offsetof(struct hclge_mac_stats, f)) f 2068 drivers/net/ethernet/ibm/emac/core.c u32 f = dev->phy.features; f 2092 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_10baseT_Half)) f 2095 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_10baseT_Full)) f 2100 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_100baseT_Half)) f 2103 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_100baseT_Full)) f 2108 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_1000baseT_Half)) f 2111 drivers/net/ethernet/ibm/emac/core.c !(f & SUPPORTED_1000baseT_Full)) f 2124 drivers/net/ethernet/ibm/emac/core.c if (!(f & SUPPORTED_Autoneg)) f 2129 drivers/net/ethernet/ibm/emac/core.c (advertising & f) | f 2825 drivers/net/ethernet/ibm/emac/core.c u32 f = dev->phy.def->features; f 2829 drivers/net/ethernet/ibm/emac/core.c if (f & SUPPORTED_1000baseT_Full) { f 2832 drivers/net/ethernet/ibm/emac/core.c } else if (f & SUPPORTED_1000baseT_Half) f 2834 drivers/net/ethernet/ibm/emac/core.c else if (f & SUPPORTED_100baseT_Full) { f 2837 drivers/net/ethernet/ibm/emac/core.c } else if (f & SUPPORTED_100baseT_Half) f 2839 drivers/net/ethernet/ibm/emac/core.c else if (f & SUPPORTED_10baseT_Full) f 32 drivers/net/ethernet/ibm/emac/debug.h # define DBG(d,f,x...) EMAC_DBG(d, emac, f, ##x) f 33 drivers/net/ethernet/ibm/emac/debug.h # define MAL_DBG(d,f,x...) EMAC_DBG(d, mal, f, ##x) f 34 drivers/net/ethernet/ibm/emac/debug.h # define ZMII_DBG(d,f,x...) EMAC_DBG(d, zmii, f, ##x) f 35 drivers/net/ethernet/ibm/emac/debug.h # define RGMII_DBG(d,f,x...) EMAC_DBG(d, rgmii, f, ##x) f 38 drivers/net/ethernet/ibm/emac/debug.h # define DBG(f,x...) ((void)0) f 39 drivers/net/ethernet/ibm/emac/debug.h # define MAL_DBG(d,f,x...) ((void)0) f 40 drivers/net/ethernet/ibm/emac/debug.h # define ZMII_DBG(d,f,x...) ((void)0) f 41 drivers/net/ethernet/ibm/emac/debug.h # define RGMII_DBG(d,f,x...) ((void)0) f 44 drivers/net/ethernet/ibm/emac/debug.h # define DBG2(d,f,x...) DBG(d,f, ##x) f 45 drivers/net/ethernet/ibm/emac/debug.h # define MAL_DBG2(d,f,x...) MAL_DBG(d,f, ##x) f 46 drivers/net/ethernet/ibm/emac/debug.h # define ZMII_DBG2(d,f,x...) ZMII_DBG(d,f, ##x) f 47 drivers/net/ethernet/ibm/emac/debug.h # define RGMII_DBG2(d,f,x...) RGMII_DBG(d,f, ##x) f 49 drivers/net/ethernet/ibm/emac/debug.h # define DBG2(f,x...) ((void)0) f 50 drivers/net/ethernet/ibm/emac/debug.h # define MAL_DBG2(d,f,x...) ((void)0) f 51 drivers/net/ethernet/ibm/emac/debug.h # define ZMII_DBG2(d,f,x...) ((void)0) f 52 drivers/net/ethernet/ibm/emac/debug.h # define RGMII_DBG2(d,f,x...) ((void)0) f 2830 drivers/net/ethernet/intel/e1000/e1000_main.c unsigned int f, bytecount, segs; f 2891 drivers/net/ethernet/intel/e1000/e1000_main.c for (f = 0; f < nr_frags; f++) { f 2892 drivers/net/ethernet/intel/e1000/e1000_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 2908 drivers/net/ethernet/intel/e1000/e1000_main.c if (unlikely(mss && f == (nr_frags-1) && f 3110 drivers/net/ethernet/intel/e1000/e1000_main.c unsigned int f; f 3194 drivers/net/ethernet/intel/e1000/e1000_main.c for (f = 0; f < nr_frags; f++) f 3195 drivers/net/ethernet/intel/e1000/e1000_main.c count += TXD_USE_COUNT(skb_frag_size(&skb_shinfo(skb)->frags[f]), f 5563 drivers/net/ethernet/intel/e1000e/netdev.c unsigned int f, bytecount, segs; f 5592 drivers/net/ethernet/intel/e1000e/netdev.c for (f = 0; f < nr_frags; f++) { f 5593 drivers/net/ethernet/intel/e1000e/netdev.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 5798 drivers/net/ethernet/intel/e1000e/netdev.c unsigned int f; f 5850 drivers/net/ethernet/intel/e1000e/netdev.c for (f = 0; f < nr_frags; f++) f 5851 drivers/net/ethernet/intel/e1000e/netdev.c count += DIV_ROUND_UP(skb_frag_size(&skb_shinfo(skb)->frags[f]), f 1067 drivers/net/ethernet/intel/fm10k/fm10k_main.c unsigned short f; f 1076 drivers/net/ethernet/intel/fm10k/fm10k_main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) { f 1077 drivers/net/ethernet/intel/fm10k/fm10k_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1491 drivers/net/ethernet/intel/fm10k/fm10k_main.c struct fm10k_ring_feature *f; f 1502 drivers/net/ethernet/intel/fm10k/fm10k_main.c f = &interface->ring_feature[RING_F_QOS]; f 1503 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->indices = pcs; f 1504 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(pcs - 1)) - 1; f 1511 drivers/net/ethernet/intel/fm10k/fm10k_main.c f = &interface->ring_feature[RING_F_RSS]; f 1512 drivers/net/ethernet/intel/fm10k/fm10k_main.c rss_i = min_t(u16, rss_i, f->limit); f 1513 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->indices = rss_i; f 1514 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(rss_i - 1)) - 1; f 1536 drivers/net/ethernet/intel/fm10k/fm10k_main.c struct fm10k_ring_feature *f; f 1539 drivers/net/ethernet/intel/fm10k/fm10k_main.c f = &interface->ring_feature[RING_F_RSS]; f 1540 drivers/net/ethernet/intel/fm10k/fm10k_main.c rss_i = min_t(u16, interface->hw.mac.max_queues, f->limit); f 1543 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->indices = rss_i; f 1544 drivers/net/ethernet/intel/fm10k/fm10k_main.c f->mask = BIT(fls(rss_i - 1)) - 1; f 700 drivers/net/ethernet/intel/i40e/i40e.h struct i40e_mac_filter *f; f 1040 drivers/net/ethernet/intel/i40e/i40e.h void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f); f 112 drivers/net/ethernet/intel/i40e/i40e_debugfs.c struct i40e_mac_filter *f; f 147 drivers/net/ethernet/intel/i40e/i40e_debugfs.c hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { f 150 drivers/net/ethernet/intel/i40e/i40e_debugfs.c f->macaddr, f->vlan, f 151 drivers/net/ethernet/intel/i40e/i40e_debugfs.c i40e_filter_state_string[f->state]); f 938 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c int f; f 940 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c for (f = 0; ce_info[f].width != 0; f++) { f 946 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c switch (ce_info[f].size_of) { f 948 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_write_byte(context_bytes, &ce_info[f], dest); f 951 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_write_word(context_bytes, &ce_info[f], dest); f 954 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_write_dword(context_bytes, &ce_info[f], dest); f 957 drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c i40e_write_qword(context_bytes, &ce_info[f], dest); f 1123 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1130 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_possible(vsi->mac_filter_hash, f, hlist, key) { f 1131 drivers/net/ethernet/intel/i40e/i40e_main.c if ((ether_addr_equal(macaddr, f->macaddr)) && f 1132 drivers/net/ethernet/intel/i40e/i40e_main.c (vlan == f->vlan)) f 1133 drivers/net/ethernet/intel/i40e/i40e_main.c return f; f 1148 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1155 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_possible(vsi->mac_filter_hash, f, hlist, key) { f 1156 drivers/net/ethernet/intel/i40e/i40e_main.c if ((ether_addr_equal(macaddr, f->macaddr))) f 1157 drivers/net/ethernet/intel/i40e/i40e_main.c return f; f 1232 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f, *add_head; f 1253 drivers/net/ethernet/intel/i40e/i40e_main.c if (pvid && new->f->vlan != pvid) f 1254 drivers/net/ethernet/intel/i40e/i40e_main.c new->f->vlan = pvid; f 1255 drivers/net/ethernet/intel/i40e/i40e_main.c else if (vlan_filters && new->f->vlan == I40E_VLAN_ANY) f 1256 drivers/net/ethernet/intel/i40e/i40e_main.c new->f->vlan = 0; f 1257 drivers/net/ethernet/intel/i40e/i40e_main.c else if (!vlan_filters && new->f->vlan == 0) f 1258 drivers/net/ethernet/intel/i40e/i40e_main.c new->f->vlan = I40E_VLAN_ANY; f 1262 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 1268 drivers/net/ethernet/intel/i40e/i40e_main.c if ((pvid && f->vlan != pvid) || f 1269 drivers/net/ethernet/intel/i40e/i40e_main.c (vlan_filters && f->vlan == I40E_VLAN_ANY) || f 1270 drivers/net/ethernet/intel/i40e/i40e_main.c (!vlan_filters && f->vlan == 0)) { f 1280 drivers/net/ethernet/intel/i40e/i40e_main.c add_head = i40e_add_filter(vsi, f->macaddr, new_vlan); f 1289 drivers/net/ethernet/intel/i40e/i40e_main.c new->f = add_head; f 1296 drivers/net/ethernet/intel/i40e/i40e_main.c f->state = I40E_FILTER_REMOVE; f 1297 drivers/net/ethernet/intel/i40e/i40e_main.c hash_del(&f->hlist); f 1298 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_add_head(&f->hlist, tmp_del_list); f 1354 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1360 drivers/net/ethernet/intel/i40e/i40e_main.c f = i40e_find_filter(vsi, macaddr, vlan); f 1361 drivers/net/ethernet/intel/i40e/i40e_main.c if (!f) { f 1362 drivers/net/ethernet/intel/i40e/i40e_main.c f = kzalloc(sizeof(*f), GFP_ATOMIC); f 1363 drivers/net/ethernet/intel/i40e/i40e_main.c if (!f) f 1372 drivers/net/ethernet/intel/i40e/i40e_main.c ether_addr_copy(f->macaddr, macaddr); f 1373 drivers/net/ethernet/intel/i40e/i40e_main.c f->vlan = vlan; f 1374 drivers/net/ethernet/intel/i40e/i40e_main.c f->state = I40E_FILTER_NEW; f 1375 drivers/net/ethernet/intel/i40e/i40e_main.c INIT_HLIST_NODE(&f->hlist); f 1378 drivers/net/ethernet/intel/i40e/i40e_main.c hash_add(vsi->mac_filter_hash, &f->hlist, key); f 1392 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_REMOVE) f 1393 drivers/net/ethernet/intel/i40e/i40e_main.c f->state = I40E_FILTER_ACTIVE; f 1395 drivers/net/ethernet/intel/i40e/i40e_main.c return f; f 1413 drivers/net/ethernet/intel/i40e/i40e_main.c void __i40e_del_filter(struct i40e_vsi *vsi, struct i40e_mac_filter *f) f 1415 drivers/net/ethernet/intel/i40e/i40e_main.c if (!f) f 1422 drivers/net/ethernet/intel/i40e/i40e_main.c if ((f->state == I40E_FILTER_FAILED) || f 1423 drivers/net/ethernet/intel/i40e/i40e_main.c (f->state == I40E_FILTER_NEW)) { f 1424 drivers/net/ethernet/intel/i40e/i40e_main.c hash_del(&f->hlist); f 1425 drivers/net/ethernet/intel/i40e/i40e_main.c kfree(f); f 1427 drivers/net/ethernet/intel/i40e/i40e_main.c f->state = I40E_FILTER_REMOVE; f 1448 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1453 drivers/net/ethernet/intel/i40e/i40e_main.c f = i40e_find_filter(vsi, macaddr, vlan); f 1454 drivers/net/ethernet/intel/i40e/i40e_main.c __i40e_del_filter(vsi, f); f 1472 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f, *add = NULL; f 1483 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 1484 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_REMOVE) f 1486 drivers/net/ethernet/intel/i40e/i40e_main.c add = i40e_add_filter(vsi, macaddr, f->vlan); f 1506 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1512 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 1513 drivers/net/ethernet/intel/i40e/i40e_main.c if (ether_addr_equal(macaddr, f->macaddr)) { f 1514 drivers/net/ethernet/intel/i40e/i40e_main.c __i40e_del_filter(vsi, f); f 1968 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 1971 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_for_each_entry_safe(f, h, from, hlist) { f 1972 drivers/net/ethernet/intel/i40e/i40e_main.c u64 key = i40e_addr_to_hkey(f->macaddr); f 1975 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_del(&f->hlist); f 1976 drivers/net/ethernet/intel/i40e/i40e_main.c hash_add(vsi->mac_filter_hash, &f->hlist, key); f 2013 drivers/net/ethernet/intel/i40e/i40e_main.c if (!is_broadcast_ether_addr(next->f->macaddr)) f 2154 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f) f 2156 drivers/net/ethernet/intel/i40e/i40e_main.c bool enable = f->state == I40E_FILTER_NEW; f 2160 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->vlan == I40E_VLAN_ANY) { f 2169 drivers/net/ethernet/intel/i40e/i40e_main.c f->vlan, f 2262 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 2309 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 2310 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_REMOVE) { f 2312 drivers/net/ethernet/intel/i40e/i40e_main.c hash_del(&f->hlist); f 2313 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_add_head(&f->hlist, &tmp_del_list); f 2318 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_NEW) { f 2325 drivers/net/ethernet/intel/i40e/i40e_main.c new->f = f; f 2326 drivers/net/ethernet/intel/i40e/i40e_main.c new->state = f->state; f 2336 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->vlan > 0) f 2360 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_for_each_entry_safe(f, h, &tmp_del_list, hlist) { f 2366 drivers/net/ethernet/intel/i40e/i40e_main.c if (is_broadcast_ether_addr(f->macaddr)) { f 2367 drivers/net/ethernet/intel/i40e/i40e_main.c i40e_aqc_broadcast_filter(vsi, vsi_name, f); f 2369 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_del(&f->hlist); f 2370 drivers/net/ethernet/intel/i40e/i40e_main.c kfree(f); f 2375 drivers/net/ethernet/intel/i40e/i40e_main.c ether_addr_copy(del_list[num_del].mac_addr, f->macaddr); f 2376 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->vlan == I40E_VLAN_ANY) { f 2381 drivers/net/ethernet/intel/i40e/i40e_main.c cpu_to_le16((u16)(f->vlan)); f 2398 drivers/net/ethernet/intel/i40e/i40e_main.c hlist_del(&f->hlist); f 2399 drivers/net/ethernet/intel/i40e/i40e_main.c kfree(f); f 2426 drivers/net/ethernet/intel/i40e/i40e_main.c if (is_broadcast_ether_addr(new->f->macaddr)) { f 2428 drivers/net/ethernet/intel/i40e/i40e_main.c new->f)) f 2440 drivers/net/ethernet/intel/i40e/i40e_main.c new->f->macaddr); f 2441 drivers/net/ethernet/intel/i40e/i40e_main.c if (new->f->vlan == I40E_VLAN_ANY) { f 2446 drivers/net/ethernet/intel/i40e/i40e_main.c cpu_to_le16((u16)(new->f->vlan)); f 2473 drivers/net/ethernet/intel/i40e/i40e_main.c if (new->f->state == I40E_FILTER_NEW) f 2474 drivers/net/ethernet/intel/i40e/i40e_main.c new->f->state = new->state; f 2486 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { f 2487 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_ACTIVE) f 2489 drivers/net/ethernet/intel/i40e/i40e_main.c else if (f->state == I40E_FILTER_FAILED) f 2763 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f, *add_f; f 2767 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 2768 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->state == I40E_FILTER_REMOVE) f 2770 drivers/net/ethernet/intel/i40e/i40e_main.c add_f = i40e_add_filter(vsi, f->macaddr, vid); f 2774 drivers/net/ethernet/intel/i40e/i40e_main.c vid, f->macaddr); f 2834 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 2838 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 2839 drivers/net/ethernet/intel/i40e/i40e_main.c if (f->vlan == vid) f 2840 drivers/net/ethernet/intel/i40e/i40e_main.c __i40e_del_filter(vsi, f); f 7743 drivers/net/ethernet/intel/i40e/i40e_main.c struct flow_cls_offload *f, f 7746 drivers/net/ethernet/intel/i40e/i40e_main.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 13084 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 13292 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) { f 13293 drivers/net/ethernet/intel/i40e/i40e_main.c f->state = I40E_FILTER_NEW; f 13326 drivers/net/ethernet/intel/i40e/i40e_main.c struct i40e_mac_filter *f; f 13370 drivers/net/ethernet/intel/i40e/i40e_main.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) f 13371 drivers/net/ethernet/intel/i40e/i40e_main.c __i40e_del_filter(vsi, f); f 711 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f = NULL; f 745 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f = i40e_add_mac_filter(vsi, f 747 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!f) f 753 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f = i40e_add_mac_filter(vsi, broadcast); f 754 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!f) f 1129 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f; f 1169 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { f 1170 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (f->vlan < 0 || f->vlan > I40E_MAX_VLANID) f 1175 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f->vlan, f 1182 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f->vlan, f 1190 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f->vlan, f 1197 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f->vlan, f 1984 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f; f 1987 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { f 1988 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (f->vlan >= 0 && f->vlan <= I40E_MAX_VLANID) f 2644 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f; f 2646 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f = i40e_find_mac(vsi, al->list[i].addr); f 2647 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!f) { f 2648 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f = i40e_add_mac_filter(vsi, al->list[i].addr); f 2650 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!f) { f 3132 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f; f 3163 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c f = i40e_find_mac(vsi, data.dst_mac); f 3165 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (!f) { f 3173 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, f 3175 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c if (f->vlan == ntohs(data.vlan_id)) { f 3961 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct i40e_mac_filter *f; f 4021 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c hash_for_each_safe(vsi->mac_filter_hash, bkt, h, f, hlist) f 4022 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c __i40e_del_filter(vsi, f); f 212 drivers/net/ethernet/intel/iavf/iavf.h struct virtchnl_filter f; f 618 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_vlan_filter *f; f 620 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry(f, &adapter->vlan_filter_list, list) { f 621 drivers/net/ethernet/intel/iavf/iavf_main.c if (vlan == f->vlan) f 622 drivers/net/ethernet/intel/iavf/iavf_main.c return f; f 637 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_vlan_filter *f = NULL; f 641 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_find_vlan(adapter, vlan); f 642 drivers/net/ethernet/intel/iavf/iavf_main.c if (!f) { f 643 drivers/net/ethernet/intel/iavf/iavf_main.c f = kzalloc(sizeof(*f), GFP_ATOMIC); f 644 drivers/net/ethernet/intel/iavf/iavf_main.c if (!f) f 647 drivers/net/ethernet/intel/iavf/iavf_main.c f->vlan = vlan; f 649 drivers/net/ethernet/intel/iavf/iavf_main.c list_add_tail(&f->list, &adapter->vlan_filter_list); f 650 drivers/net/ethernet/intel/iavf/iavf_main.c f->add = true; f 656 drivers/net/ethernet/intel/iavf/iavf_main.c return f; f 666 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_vlan_filter *f; f 670 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_find_vlan(adapter, vlan); f 671 drivers/net/ethernet/intel/iavf/iavf_main.c if (f) { f 672 drivers/net/ethernet/intel/iavf/iavf_main.c f->remove = true; f 727 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f; f 732 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 733 drivers/net/ethernet/intel/iavf/iavf_main.c if (ether_addr_equal(macaddr, f->macaddr)) f 734 drivers/net/ethernet/intel/iavf/iavf_main.c return f; f 749 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f; f 754 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_find_filter(adapter, macaddr); f 755 drivers/net/ethernet/intel/iavf/iavf_main.c if (!f) { f 756 drivers/net/ethernet/intel/iavf/iavf_main.c f = kzalloc(sizeof(*f), GFP_ATOMIC); f 757 drivers/net/ethernet/intel/iavf/iavf_main.c if (!f) f 758 drivers/net/ethernet/intel/iavf/iavf_main.c return f; f 760 drivers/net/ethernet/intel/iavf/iavf_main.c ether_addr_copy(f->macaddr, macaddr); f 762 drivers/net/ethernet/intel/iavf/iavf_main.c list_add_tail(&f->list, &adapter->mac_filter_list); f 763 drivers/net/ethernet/intel/iavf/iavf_main.c f->add = true; f 766 drivers/net/ethernet/intel/iavf/iavf_main.c f->remove = false; f 769 drivers/net/ethernet/intel/iavf/iavf_main.c return f; f 783 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f; f 794 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_find_filter(adapter, hw->mac.addr); f 795 drivers/net/ethernet/intel/iavf/iavf_main.c if (f) { f 796 drivers/net/ethernet/intel/iavf/iavf_main.c f->remove = true; f 800 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_add_filter(adapter, addr->sa_data); f 804 drivers/net/ethernet/intel/iavf/iavf_main.c if (f) { f 808 drivers/net/ethernet/intel/iavf/iavf_main.c return (f == NULL) ? -ENOMEM : 0; f 840 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f; f 850 drivers/net/ethernet/intel/iavf/iavf_main.c f = iavf_find_filter(adapter, addr); f 851 drivers/net/ethernet/intel/iavf/iavf_main.c if (f) { f 852 drivers/net/ethernet/intel/iavf/iavf_main.c f->remove = true; f 972 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f; f 991 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 992 drivers/net/ethernet/intel/iavf/iavf_main.c f->remove = true; f 1990 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f, *ftmp; f 2015 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry_safe(f, ftmp, &adapter->mac_filter_list, list) { f 2016 drivers/net/ethernet/intel/iavf/iavf_main.c list_del(&f->list); f 2017 drivers/net/ethernet/intel/iavf/iavf_main.c kfree(f); f 2067 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f, *ftmp; f 2187 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry_safe(f, ftmp, &adapter->mac_filter_list, list) { f 2188 drivers/net/ethernet/intel/iavf/iavf_main.c if (ether_addr_equal(f->macaddr, adapter->hw.mac.addr)) { f 2189 drivers/net/ethernet/intel/iavf/iavf_main.c list_del(&f->list); f 2190 drivers/net/ethernet/intel/iavf/iavf_main.c kfree(f); f 2194 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 2195 drivers/net/ethernet/intel/iavf/iavf_main.c f->add = true; f 2688 drivers/net/ethernet/intel/iavf/iavf_main.c struct flow_cls_offload *f, f 2691 drivers/net/ethernet/intel/iavf/iavf_main.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 2699 drivers/net/ethernet/intel/iavf/iavf_main.c struct virtchnl_filter *vf = &filter->f; f 2941 drivers/net/ethernet/intel/iavf/iavf_main.c if (!filter->f.data.tcp_spec.dst_port) { f 2948 drivers/net/ethernet/intel/iavf/iavf_main.c filter->f.action = VIRTCHNL_ACTION_TC_REDIRECT; f 2949 drivers/net/ethernet/intel/iavf/iavf_main.c filter->f.action_meta = tc; f 2984 drivers/net/ethernet/intel/iavf/iavf_main.c memset(&filter->f.mask.tcp_spec, 0, sizeof(struct virtchnl_l4_spec)); f 2986 drivers/net/ethernet/intel/iavf/iavf_main.c filter->f.flow_type = VIRTCHNL_TCP_V4_FLOW; f 3859 drivers/net/ethernet/intel/iavf/iavf_main.c struct iavf_mac_filter *f, *ftmp; f 3920 drivers/net/ethernet/intel/iavf/iavf_main.c list_for_each_entry_safe(f, ftmp, &adapter->mac_filter_list, list) { f 3921 drivers/net/ethernet/intel/iavf/iavf_main.c list_del(&f->list); f 3922 drivers/net/ethernet/intel/iavf/iavf_main.c kfree(f); f 435 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct iavf_mac_filter *f; f 449 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 450 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->add) f 478 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 479 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->add) { f 480 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ether_addr_copy(veal->list[i].addr, f->macaddr); f 482 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c f->add = false; f 505 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct iavf_mac_filter *f, *ftmp; f 519 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->mac_filter_list, list) { f 520 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->remove) f 547 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry_safe(f, ftmp, &adapter->mac_filter_list, list) { f 548 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->remove) { f 549 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ether_addr_copy(veal->list[i].addr, f->macaddr); f 551 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_del(&f->list); f 552 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c kfree(f); f 576 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct iavf_vlan_filter *f; f 588 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->vlan_filter_list, list) { f 589 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->add) f 618 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->vlan_filter_list, list) { f 619 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->add) { f 620 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c vvfl->vlan_id[i] = f->vlan; f 622 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c f->add = false; f 645 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct iavf_vlan_filter *f, *ftmp; f 658 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry(f, &adapter->vlan_filter_list, list) { f 659 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->remove) f 688 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_for_each_entry_safe(f, ftmp, &adapter->vlan_filter_list, list) { f 689 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (f->remove) { f 690 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c vvfl->vlan_id[i] = f->vlan; f 692 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c list_del(&f->list); f 693 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c kfree(f); f 1034 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct virtchnl_filter *f) f 1036 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c switch (f->flow_type) { f 1039 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.dst_mac, f 1040 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.src_mac, f 1041 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.vlan_id), f 1042 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.dst_ip[0], f 1043 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.src_ip[0], f 1044 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.dst_port), f 1045 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.src_port)); f 1049 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.dst_mac, f 1050 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.src_mac, f 1051 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.vlan_id), f 1052 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.dst_ip, f 1053 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &f->data.tcp_spec.src_ip, f 1054 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.dst_port), f 1055 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c ntohs(f->data.tcp_spec.src_port)); f 1070 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct virtchnl_filter *f; f 1092 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c f = kzalloc(len, GFP_KERNEL); f 1093 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (!f) f 1098 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c memcpy(f, &cf->f, sizeof(struct virtchnl_filter)); f 1102 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (u8 *)f, len); f 1105 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c kfree(f); f 1118 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct virtchnl_filter *f; f 1140 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c f = kzalloc(len, GFP_KERNEL); f 1141 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c if (!f) f 1146 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c memcpy(f, &cf->f, sizeof(struct virtchnl_filter)); f 1150 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (u8 *)f, len); f 1153 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c kfree(f); f 1293 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &cf->f); f 1312 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c &cf->f); f 3123 drivers/net/ethernet/intel/ice/ice_common.c int f; f 3125 drivers/net/ethernet/intel/ice/ice_common.c for (f = 0; ce_info[f].width; f++) { f 3130 drivers/net/ethernet/intel/ice/ice_common.c switch (ce_info[f].size_of) { f 3132 drivers/net/ethernet/intel/ice/ice_common.c ice_write_byte(src_ctx, dest_ctx, &ce_info[f]); f 3135 drivers/net/ethernet/intel/ice/ice_common.c ice_write_word(src_ctx, dest_ctx, &ce_info[f]); f 3138 drivers/net/ethernet/intel/ice/ice_common.c ice_write_dword(src_ctx, dest_ctx, &ce_info[f]); f 3141 drivers/net/ethernet/intel/ice/ice_common.c ice_write_qword(src_ctx, dest_ctx, &ce_info[f]); f 2583 drivers/net/ethernet/intel/igb/igb_main.c struct flow_cls_offload *f, f 2587 drivers/net/ethernet/intel/igb/igb_main.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 2589 drivers/net/ethernet/intel/igb/igb_main.c struct netlink_ext_ack *extack = f->common.extack; f 2659 drivers/net/ethernet/intel/igb/igb_main.c input->cookie = f->cookie; f 2668 drivers/net/ethernet/intel/igb/igb_main.c struct igb_nfc_filter *filter, *f; f 2687 drivers/net/ethernet/intel/igb/igb_main.c hlist_for_each_entry(f, &adapter->nfc_filter_list, nfc_node) { f 2688 drivers/net/ethernet/intel/igb/igb_main.c if (!memcmp(&f->filter, &filter->filter, sizeof(f->filter))) { f 2696 drivers/net/ethernet/intel/igb/igb_main.c hlist_for_each_entry(f, &adapter->cls_flower_list, nfc_node) { f 2697 drivers/net/ethernet/intel/igb/igb_main.c if (!memcmp(&f->filter, &filter->filter, sizeof(f->filter))) { f 6066 drivers/net/ethernet/intel/igb/igb_main.c unsigned short f; f 6077 drivers/net/ethernet/intel/igb/igb_main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) f 6079 drivers/net/ethernet/intel/igb/igb_main.c &skb_shinfo(skb)->frags[f])); f 2161 drivers/net/ethernet/intel/igbvf/netdev.c unsigned int f; f 2176 drivers/net/ethernet/intel/igbvf/netdev.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) { f 2184 drivers/net/ethernet/intel/igbvf/netdev.c frag = &skb_shinfo(skb)->frags[f]; f 1103 drivers/net/ethernet/intel/igc/igc_main.c unsigned short f; f 1112 drivers/net/ethernet/intel/igc/igc_main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) f 1114 drivers/net/ethernet/intel/igc/igc_main.c &skb_shinfo(skb)->frags[f])); f 1300 drivers/net/ethernet/intel/ixgb/ixgb_main.c unsigned int f; f 1333 drivers/net/ethernet/intel/ixgb/ixgb_main.c for (f = 0; f < nr_frags; f++) { f 1334 drivers/net/ethernet/intel/ixgb/ixgb_main.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1348 drivers/net/ethernet/intel/ixgb/ixgb_main.c if (unlikely(mss && (f == (nr_frags - 1)) f 424 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c struct ixgbe_ring_feature *f; f 452 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_RSS]; f 453 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = min_t(int, rss_i, f->limit); f 454 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = rss_i; f 455 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->mask = rss_m; f 469 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_FCOE]; f 470 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = min_t(u16, rss_i, f->limit); f 471 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->offset = rss_i * tc; f 622 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c struct ixgbe_ring_feature *f; f 626 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_RSS]; f 627 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = f->limit; f 629 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = rss_i; f 632 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->mask = IXGBE_RSS_16Q_MASK; f 634 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->mask = IXGBE_RSS_64Q_MASK; f 645 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_FDIR]; f 647 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c rss_i = f->indices = f->limit; f 666 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_FCOE]; f 669 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c fcoe_i = min_t(u16, f->limit + rss_i, num_online_cpus()); f 677 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->indices = min_t(u16, fcoe_i, f->limit); f 678 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f->offset = fcoe_i - f->indices; f 983 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c struct ixgbe_ring_feature *f; f 984 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c f = &adapter->ring_feature[RING_F_FCOE]; f 985 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c if ((rxr_idx >= f->offset) && f 986 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c (rxr_idx < f->offset + f->indices)) f 8506 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct ixgbe_ring_feature *f; f 8536 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c f = &adapter->ring_feature[RING_F_FCOE]; f 8541 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c while (txq >= f->indices) f 8542 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c txq -= f->indices; f 8544 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return txq + f->offset; f 8612 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c unsigned short f; f 8625 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) f 8627 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c &skb_shinfo(skb)->frags[f])); f 4119 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c unsigned short f; f 4136 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) { f 4137 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 87 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c const struct mvpp2_cls_flow *f; f 90 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c f = mvpp2_cls_flow_get(entry->flow); f 91 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c if (!f) f 94 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c switch (f->flow_type) { f 127 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c const struct mvpp2_cls_flow *f; f 129 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c f = mvpp2_cls_flow_get(entry->flow); f 130 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c if (!f) f 133 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c seq_printf(s, "%d\n", f->flow_id); f 145 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c const struct mvpp2_cls_flow *f; f 149 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c f = mvpp2_cls_flow_get(entry->dbg_fe->flow); f 150 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c if (!f) f 153 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c flow_index = MVPP2_CLS_FLT_HASH_ENTRY(entry->port->id, f->flow_id); f 171 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c const struct mvpp2_cls_flow *f; f 174 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c f = mvpp2_cls_flow_get(entry->dbg_fe->flow); f 175 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c if (!f) f 178 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c flow_index = MVPP2_CLS_FLT_HASH_ENTRY(entry->port->id, f->flow_id); f 2917 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c int blkaddr, idx, f; f 2931 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (f = 0; f < NIX_LSO_FIELD_MAX; f++) { f 2933 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_LSO_FORMATX_FIELDX(idx, f)); f 2934 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (req->fields[f] != (reg & req->field_mask)) f 2938 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c if (f == NIX_LSO_FIELD_MAX) f 2953 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c for (f = 0; f < NIX_LSO_FIELD_MAX; f++) f 2955 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c NIX_AF_LSO_FORMATX_FIELDX(rsp->lso_format_idx, f), f 2956 drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c req->fields[f]); f 26 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_PROTO(const struct flow_cls_offload *f), f 27 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_ARGS(f), f 30 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h __dynamic_array(int, ids, f->rule ? f 31 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h f->rule->action.num_entries : 0) f 33 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_fast_assign(__entry->cookie = (void *)f->cookie; f 34 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h __entry->num = (f->rule ? f 35 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h f->rule->action.num_entries : 0); f 38 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h f->rule->action.entries, f 39 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h f->rule->action.num_entries); f 49 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_PROTO(const struct flow_cls_offload *f), f 50 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_ARGS(f) f 54 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_PROTO(const struct flow_cls_offload *f), f 55 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_ARGS(f) f 59 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_PROTO(const struct flow_cls_offload *f), f 60 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_ARGS(f), f 66 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h TP_fast_assign(__entry->cookie = (void *)f->cookie; f 67 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h __entry->bytes = f->stats.bytes; f 68 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h __entry->packets = f->stats.pkts; f 69 drivers/net/ethernet/mellanox/mlx5/core/diag/en_tc_tracepoint.h __entry->lastused = f->stats.lastused; f 65 drivers/net/ethernet/mellanox/mlx5/core/en.h #define MLX5_SET_CFG(p, f, v) MLX5_SET(create_flow_group_in, p, f, v) f 475 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct flow_cls_offload *f, f 493 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c err = tunnel->parse_udp_ports(priv, spec, f, f 500 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c err = tunnel->parse_tunnel(priv, spec, f, f 512 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct flow_cls_offload *f, f 516 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 517 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c struct netlink_ext_ack *extack = f->common.extack; f 36 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h struct flow_cls_offload *f, f 41 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h struct flow_cls_offload *f, f 71 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h struct flow_cls_offload *f, f 77 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h struct flow_cls_offload *f, f 23 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f) f 25 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 26 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct netlink_ext_ack *extack = f->common.extack; f 51 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f, f 57 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); f 61 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c return mlx5e_tc_tun_check_udp_dport_geneve(priv, f); f 125 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f) f 127 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 128 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct netlink_ext_ack *extack = f->common.extack; f 157 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f) f 161 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 162 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct netlink_ext_ack *extack = f->common.extack; f 280 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f) f 284 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct netlink_ext_ack *extack = f->common.extack; f 309 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c struct flow_cls_offload *f, f 315 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c err = mlx5e_tc_tun_parse_geneve_params(priv, spec, f); f 319 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c err = mlx5e_tc_tun_parse_geneve_vni(priv, spec, f); f 323 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_geneve.c return mlx5e_tc_tun_parse_geneve_options(priv, spec, f); f 57 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c struct flow_cls_offload *f, f 63 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_gre.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 19 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct flow_cls_offload *f) f 21 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 22 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct netlink_ext_ack *extack = f->common.extack; f 47 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct flow_cls_offload *f, f 53 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); f 57 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c return mlx5e_tc_tun_check_udp_dport_vxlan(priv, f); f 103 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct flow_cls_offload *f, f 107 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 108 drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_vxlan.c struct netlink_ext_ack *extack = f->common.extack; f 388 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c skb_frag_t *f = &info.frags[i]; f 390 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c orig_fsz = skb_frag_size(f); f 398 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c skb_frag_size_set(f, fsz); f 399 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c if (tx_post_resync_dump(sq, f, priv_tx->tisn, fence)) { f 400 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c page_ref_add(skb_frag_page(f), n - 1); f 404 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c skb_frag_off_add(f, fsz); f 408 drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_tx.c page_ref_add(skb_frag_page(f), n - 1); f 325 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int f; f 327 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (f = 0; f < rq->wqe.info.num_frags; f++, frag++) { f 328 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (next_frag.offset + frag_info[f].frag_stride > PAGE_SIZE) { f 337 drivers/net/ethernet/mellanox/mlx5/core/en_main.c next_frag.offset += frag_info[f].frag_stride; f 586 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int f; f 588 drivers/net/ethernet/mellanox/mlx5/core/en_main.c for (f = 0; f < rq->wqe.info.num_frags; f++) { f 589 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u32 frag_size = rq->wqe.info.arr[f].frag_size | f 592 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wqe->data[f].byte_count = cpu_to_be32(frag_size); f 593 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wqe->data[f].lkey = rq->mkey_be; f 597 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wqe->data[f].byte_count = 0; f 598 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wqe->data[f].lkey = cpu_to_be32(MLX5_INVALID_LKEY); f 599 drivers/net/ethernet/mellanox/mlx5/core/en_main.c wqe->data[f].addr = 0; f 3538 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct flow_block_offload *f = type_data; f 3540 drivers/net/ethernet/mellanox/mlx5/core/en_main.c f->unlocked_driver_cb = true; f 4978 drivers/net/ethernet/mellanox/mlx5/core/en_main.c #define FT_CAP(f) MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive.f) f 761 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c struct flow_block_offload *f) f 766 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c if (f->binder_type != FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) f 769 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c f->unlocked_driver_cb = true; f 770 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c f->driver_block_list = &mlx5e_block_cb_list; f 772 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c switch (f->command) { f 795 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c flow_block_cb_add(block_cb, f); f 804 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c block_cb = flow_block_cb_lookup(f->block, f 810 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c flow_block_cb_remove(block_cb, f); f 1252 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c struct flow_block_offload *f = type_data; f 1256 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c f->unlocked_driver_cb = true; f 1654 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 1657 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 1662 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 1665 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_tc_tun_parse(filter_dev, priv, spec, f, f 1799 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 1803 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 1812 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 1846 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (parse_tunnel_attr(priv, spec, f, filter_dev, f 2155 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 2159 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 2170 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = __parse_cls_flower(priv, spec, f, filter_dev, &inner_match_level, f 2344 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct mlx5_fields *f; f 2367 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c f = &fields[i]; f 2372 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c s_masks_p = (void *)set_masks + f->offset; f 2373 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c a_masks_p = (void *)add_masks + f->offset; f 2375 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c memcpy(&s_mask, s_masks_p, f->size); f 2376 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c memcpy(&a_mask, a_masks_p, f->size); f 2384 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c printk(KERN_WARNING "mlx5: can't set and add to the same HW field (%x)\n", f->field); f 2397 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c void *match_mask = headers_c + f->match_offset; f 2398 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c void *match_val = headers_v + f->match_offset; f 2402 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c vals_p = (void *)set_vals + f->offset; f 2405 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c match_mask, f->size)) f 2408 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c memset(s_masks_p, 0, f->size); f 2414 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c vals_p = (void *)add_vals + f->offset; f 2416 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!memcmp(vals_p, &zero, f->size)) f 2419 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c memset(a_masks_p, 0, f->size); f 2424 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c field_bsize = f->size * BITS_PER_BYTE; f 2446 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c MLX5_SET(set_action_in, action, field, f->field); f 3526 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, unsigned long flow_flags, f 3541 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow->cookie = f->cookie; f 3566 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 3573 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c esw_attr->chain = f->common.chain_index; f 3574 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c esw_attr->prio = f->common.prio; f 3588 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 3594 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 3595 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 3602 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, f 3610 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c f, in_rep, in_mdev); f 3613 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c f, filter_dev); f 3638 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c static int mlx5e_tc_add_fdb_peer_flow(struct flow_cls_offload *f, f 3669 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c peer_flow = __mlx5e_add_fdb_flow(peer_priv, f, flow_flags, f 3690 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 3701 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow = __mlx5e_add_fdb_flow(priv, f, flow_flags, filter_dev, in_rep, f 3707 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_tc_add_fdb_peer_flow(f, flow, flow_flags); f 3724 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 3729 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 3730 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 3736 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!tc_cls_can_offload_and_chain0(priv->netdev, &f->common)) f 3741 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_alloc_flow(priv, attr_size, f, flow_flags, f 3748 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c f, filter_dev); f 3775 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, f 3786 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c if (!tc_can_offload_extack(priv->netdev, f->common.extack)) f 3790 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_add_fdb_flow(priv, f, flow_flags, f 3793 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_add_nic_flow(priv, f, flow_flags, f 3800 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, unsigned long flags) f 3802 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct netlink_ext_ack *extack = f->common.extack; f 3808 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow = rhashtable_lookup(tc_ht, &f->cookie, tc_ht_params); f 3815 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c f->cookie); f 3820 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c trace_mlx5e_configure_flower(f); f 3821 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c err = mlx5e_tc_add_flow(priv, f, flags, dev, &flow); f 3847 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, unsigned long flags) f 3854 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow = rhashtable_lookup_fast(tc_ht, &f->cookie, tc_ht_params); f 3870 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c trace_mlx5e_delete_flower(f); f 3881 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c struct flow_cls_offload *f, unsigned long flags) f 3894 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow = mlx5e_flow_get(rhashtable_lookup(tc_ht, &f->cookie, f 3939 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c flow_stats_update(&f->stats, bytes, packets, lastuse); f 3940 drivers/net/ethernet/mellanox/mlx5/core/en_tc.c trace_mlx5e_stats_flower(f); f 59 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h struct flow_cls_offload *f, unsigned long flags); f 61 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h struct flow_cls_offload *f, unsigned long flags); f 64 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h struct flow_cls_offload *f, unsigned long flags); f 67 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h struct tc_cls_matchall_offload *f); f 69 drivers/net/ethernet/mellanox/mlx5/core/en_tc.h struct tc_cls_matchall_offload *f); f 126 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c #define MLX5_SET_RA(p, f, v) MLX5_SET(roce_addr_layout, p, f, v) f 1419 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct tc_cls_matchall_offload *f, f 1423 drivers/net/ethernet/mellanox/mlxsw/spectrum.c __be16 protocol = f->common.protocol; f 1427 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (!flow_offload_has_one_action(&f->rule->action)) { f 1435 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mall_tc_entry->cookie = f->cookie; f 1437 drivers/net/ethernet/mellanox/mlxsw/spectrum.c act = &f->rule->action.entries[0]; f 1450 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_port_add_cls_matchall_sample(mlxsw_sp_port, f, f 1468 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct tc_cls_matchall_offload *f) f 1473 drivers/net/ethernet/mellanox/mlxsw/spectrum.c f->cookie); f 1496 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct tc_cls_matchall_offload *f, f 1499 drivers/net/ethernet/mellanox/mlxsw/spectrum.c switch (f->command) { f 1501 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_port_add_cls_matchall(mlxsw_sp_port, f, f 1504 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_del_cls_matchall(mlxsw_sp_port, f); f 1513 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct flow_cls_offload *f) f 1517 drivers/net/ethernet/mellanox/mlxsw/spectrum.c switch (f->command) { f 1519 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_flower_replace(mlxsw_sp, acl_block, f); f 1521 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_flower_destroy(mlxsw_sp, acl_block, f); f 1524 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_flower_stats(mlxsw_sp, acl_block, f); f 1526 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_flower_tmplt_create(mlxsw_sp, acl_block, f); f 1528 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_flower_tmplt_destroy(mlxsw_sp, acl_block, f); f 1601 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct flow_block_offload *f, bool ingress) f 1609 drivers/net/ethernet/mellanox/mlxsw/spectrum.c block_cb = flow_block_cb_lookup(f->block, f 1613 drivers/net/ethernet/mellanox/mlxsw/spectrum.c acl_block = mlxsw_sp_acl_block_create(mlxsw_sp, f->net); f 1630 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port, ingress, f->extack); f 1640 drivers/net/ethernet/mellanox/mlxsw/spectrum.c flow_block_cb_add(block_cb, f); f 1655 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct flow_block_offload *f, bool ingress) f 1662 drivers/net/ethernet/mellanox/mlxsw/spectrum.c block_cb = flow_block_cb_lookup(f->block, f 1677 drivers/net/ethernet/mellanox/mlxsw/spectrum.c flow_block_cb_remove(block_cb, f); f 1683 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct flow_block_offload *f) f 1690 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) { f 1693 drivers/net/ethernet/mellanox/mlxsw/spectrum.c } else if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS) { f 1700 drivers/net/ethernet/mellanox/mlxsw/spectrum.c f->driver_block_list = &mlxsw_sp_block_cb_list; f 1702 drivers/net/ethernet/mellanox/mlxsw/spectrum.c switch (f->command) { f 1712 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_setup_tc_block_flower_bind(mlxsw_sp_port, f, f 1718 drivers/net/ethernet/mellanox/mlxsw/spectrum.c flow_block_cb_add(block_cb, f); f 1723 drivers/net/ethernet/mellanox/mlxsw/spectrum.c f, ingress); f 1724 drivers/net/ethernet/mellanox/mlxsw/spectrum.c block_cb = flow_block_cb_lookup(f->block, cb, mlxsw_sp_port); f 1728 drivers/net/ethernet/mellanox/mlxsw/spectrum.c flow_block_cb_remove(block_cb, f); f 824 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct flow_cls_offload *f); f 827 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct flow_cls_offload *f); f 830 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct flow_cls_offload *f); f 833 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct flow_cls_offload *f); f 836 drivers/net/ethernet/mellanox/mlxsw/spectrum.h struct flow_cls_offload *f); f 143 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f, f 146 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 156 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Unsupported ingress ifindex mask"); f 163 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Can't find specified ingress port to match on"); f 168 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Can't match on non-mlxsw ingress port"); f 174 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Can't match on a port from different device"); f 186 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 190 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c flow_rule_match_ipv4_addrs(f->rule, &match); f 201 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 205 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c flow_rule_match_ipv6_addrs(f->rule, &match); f 235 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f, f 238 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c const struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 245 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Only UDP and TCP keys are supported"); f 262 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f, f 265 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c const struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 272 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "TCP keys supported only for TCP"); f 280 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "TCP flags match not supported on reserved bits"); f 293 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f, f 296 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c const struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 303 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "IP keys supported only for IPv4/6"); f 327 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 329 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 349 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "Unsupported key"); f 353 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c mlxsw_sp_acl_rulei_priority(rulei, f->common.prio); f 355 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse_meta(rulei, f, block); f 415 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c NL_SET_ERR_MSG_MOD(f->common.extack, "vlan_id key is not supported on egress"); f 437 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c mlxsw_sp_flower_parse_ipv4(rulei, f); f 440 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c mlxsw_sp_flower_parse_ipv6(rulei, f); f 442 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse_ports(mlxsw_sp, rulei, f, ip_proto); f 445 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse_tcp(mlxsw_sp, rulei, f, ip_proto); f 449 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse_ip(mlxsw_sp, rulei, f, n_proto_key & n_proto_mask); f 454 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c &f->rule->action, f 455 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.extack); f 460 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 468 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.chain_index, f 473 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c rule = mlxsw_sp_acl_rule_create(mlxsw_sp, ruleset, f->cookie, NULL, f 474 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.extack); f 481 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse(mlxsw_sp, block, rulei, f); f 507 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 513 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.chain_index, f 518 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c rule = mlxsw_sp_acl_rule_lookup(mlxsw_sp, ruleset, f->cookie); f 529 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 539 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.chain_index, f 544 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c rule = mlxsw_sp_acl_rule_lookup(mlxsw_sp, ruleset, f->cookie); f 553 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c flow_stats_update(&f->stats, bytes, packets, lastuse); f 565 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 572 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c err = mlxsw_sp_flower_parse(mlxsw_sp, block, &rulei, f); f 576 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.chain_index, f 586 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c struct flow_cls_offload *f) f 591 drivers/net/ethernet/mellanox/mlxsw/spectrum_flower.c f->common.chain_index, f 228 drivers/net/ethernet/mscc/ocelot_ace.h struct flow_block_offload *f); f 230 drivers/net/ethernet/mscc/ocelot_ace.h struct flow_block_offload *f); f 16 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_flower_parse_action(struct flow_cls_offload *f, f 22 drivers/net/ethernet/mscc/ocelot_flower.c if (f->rule->action.num_entries != 1) f 25 drivers/net/ethernet/mscc/ocelot_flower.c flow_action_for_each(i, a, &f->rule->action) { f 41 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_flower_parse(struct flow_cls_offload *f, f 44 drivers/net/ethernet/mscc/ocelot_flower.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 66 drivers/net/ethernet/mscc/ocelot_flower.c u16 proto = ntohs(f->common.protocol); f 120 drivers/net/ethernet/mscc/ocelot_flower.c ntohs(f->common.protocol) == ETH_P_IP) { f 139 drivers/net/ethernet/mscc/ocelot_flower.c ntohs(f->common.protocol) == ETH_P_IPV6) { f 165 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->prio = f->common.prio; f 166 drivers/net/ethernet/mscc/ocelot_flower.c ocelot_rule->id = f->cookie; f 167 drivers/net/ethernet/mscc/ocelot_flower.c return ocelot_flower_parse_action(f, ocelot_rule); f 171 drivers/net/ethernet/mscc/ocelot_flower.c struct ocelot_ace_rule *ocelot_ace_rule_create(struct flow_cls_offload *f, f 185 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_flower_replace(struct flow_cls_offload *f, f 191 drivers/net/ethernet/mscc/ocelot_flower.c rule = ocelot_ace_rule_create(f, port_block); f 195 drivers/net/ethernet/mscc/ocelot_flower.c ret = ocelot_flower_parse(f, rule); f 209 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_flower_destroy(struct flow_cls_offload *f, f 215 drivers/net/ethernet/mscc/ocelot_flower.c rule.prio = f->common.prio; f 217 drivers/net/ethernet/mscc/ocelot_flower.c rule.id = f->cookie; f 227 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_flower_stats_update(struct flow_cls_offload *f, f 233 drivers/net/ethernet/mscc/ocelot_flower.c rule.prio = f->common.prio; f 235 drivers/net/ethernet/mscc/ocelot_flower.c rule.id = f->cookie; f 240 drivers/net/ethernet/mscc/ocelot_flower.c flow_stats_update(&f->stats, 0x0, rule.stats.pkts, 0x0); f 244 drivers/net/ethernet/mscc/ocelot_flower.c static int ocelot_setup_tc_cls_flower(struct flow_cls_offload *f, f 247 drivers/net/ethernet/mscc/ocelot_flower.c switch (f->command) { f 249 drivers/net/ethernet/mscc/ocelot_flower.c return ocelot_flower_replace(f, port_block); f 251 drivers/net/ethernet/mscc/ocelot_flower.c return ocelot_flower_destroy(f, port_block); f 253 drivers/net/ethernet/mscc/ocelot_flower.c return ocelot_flower_stats_update(f, port_block); f 304 drivers/net/ethernet/mscc/ocelot_flower.c struct flow_block_offload *f) f 310 drivers/net/ethernet/mscc/ocelot_flower.c if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS) f 313 drivers/net/ethernet/mscc/ocelot_flower.c block_cb = flow_block_cb_lookup(f->block, f 327 drivers/net/ethernet/mscc/ocelot_flower.c flow_block_cb_add(block_cb, f); f 328 drivers/net/ethernet/mscc/ocelot_flower.c list_add_tail(&block_cb->driver_list, f->driver_block_list); f 343 drivers/net/ethernet/mscc/ocelot_flower.c struct flow_block_offload *f) f 347 drivers/net/ethernet/mscc/ocelot_flower.c block_cb = flow_block_cb_lookup(f->block, f 353 drivers/net/ethernet/mscc/ocelot_flower.c flow_block_cb_remove(block_cb, f); f 13 drivers/net/ethernet/mscc/ocelot_tc.c struct tc_cls_matchall_offload *f, f 16 drivers/net/ethernet/mscc/ocelot_tc.c struct netlink_ext_ack *extack = f->common.extack; f 22 drivers/net/ethernet/mscc/ocelot_tc.c __func__, port->chip_port, f->command, f->cookie); f 29 drivers/net/ethernet/mscc/ocelot_tc.c switch (f->command) { f 31 drivers/net/ethernet/mscc/ocelot_tc.c if (!flow_offload_has_one_action(&f->rule->action)) { f 43 drivers/net/ethernet/mscc/ocelot_tc.c action = &f->rule->action.entries[0]; f 50 drivers/net/ethernet/mscc/ocelot_tc.c if (port->tc.police_id && port->tc.police_id != f->cookie) { f 67 drivers/net/ethernet/mscc/ocelot_tc.c port->tc.police_id = f->cookie; f 71 drivers/net/ethernet/mscc/ocelot_tc.c if (port->tc.police_id != f->cookie) f 134 drivers/net/ethernet/mscc/ocelot_tc.c struct flow_block_offload *f) f 141 drivers/net/ethernet/mscc/ocelot_tc.c f->command, f->binder_type); f 143 drivers/net/ethernet/mscc/ocelot_tc.c if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) { f 145 drivers/net/ethernet/mscc/ocelot_tc.c port->tc.block_shared = f->block_shared; f 146 drivers/net/ethernet/mscc/ocelot_tc.c } else if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS) { f 152 drivers/net/ethernet/mscc/ocelot_tc.c f->driver_block_list = &ocelot_block_cb_list; f 154 drivers/net/ethernet/mscc/ocelot_tc.c switch (f->command) { f 163 drivers/net/ethernet/mscc/ocelot_tc.c err = ocelot_setup_tc_block_flower_bind(port, f); f 168 drivers/net/ethernet/mscc/ocelot_tc.c flow_block_cb_add(block_cb, f); f 169 drivers/net/ethernet/mscc/ocelot_tc.c list_add_tail(&block_cb->driver_list, f->driver_block_list); f 172 drivers/net/ethernet/mscc/ocelot_tc.c block_cb = flow_block_cb_lookup(f->block, cb, port); f 176 drivers/net/ethernet/mscc/ocelot_tc.c ocelot_setup_tc_block_flower_unbind(port, f); f 177 drivers/net/ethernet/mscc/ocelot_tc.c flow_block_cb_remove(block_cb, f); f 268 drivers/net/ethernet/netronome/nfp/abm/cls.c struct flow_block_offload *f) f 270 drivers/net/ethernet/netronome/nfp/abm/cls.c return flow_block_cb_setup_simple(f, &nfp_abm_block_cb_list, f 129 drivers/net/ethernet/netronome/nfp/flower/offload.c static bool nfp_flower_check_higher_than_mac(struct flow_cls_offload *f) f 131 drivers/net/ethernet/netronome/nfp/flower/offload.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 139 drivers/net/ethernet/netronome/nfp/flower/offload.c static bool nfp_flower_check_higher_than_l3(struct flow_cls_offload *f) f 141 drivers/net/ethernet/netronome/nfp/flower/offload.c struct flow_rule *rule = flow_cls_offload_flow_rule(f); f 1473 drivers/net/ethernet/netronome/nfp/flower/offload.c struct flow_block_offload *f) f 1479 drivers/net/ethernet/netronome/nfp/flower/offload.c if (f->binder_type != FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) f 1483 drivers/net/ethernet/netronome/nfp/flower/offload.c repr_priv->block_shared = f->block_shared; f 1484 drivers/net/ethernet/netronome/nfp/flower/offload.c f->driver_block_list = &nfp_block_cb_list; f 1486 drivers/net/ethernet/netronome/nfp/flower/offload.c switch (f->command) { f 1497 drivers/net/ethernet/netronome/nfp/flower/offload.c flow_block_cb_add(block_cb, f); f 1501 drivers/net/ethernet/netronome/nfp/flower/offload.c block_cb = flow_block_cb_lookup(f->block, f 1507 drivers/net/ethernet/netronome/nfp/flower/offload.c flow_block_cb_remove(block_cb, f); f 1577 drivers/net/ethernet/netronome/nfp/flower/offload.c struct flow_block_offload *f) f 1583 drivers/net/ethernet/netronome/nfp/flower/offload.c if ((f->binder_type != FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS && f 1585 drivers/net/ethernet/netronome/nfp/flower/offload.c (f->binder_type != FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS && f 1589 drivers/net/ethernet/netronome/nfp/flower/offload.c switch (f->command) { f 1615 drivers/net/ethernet/netronome/nfp/flower/offload.c flow_block_cb_add(block_cb, f); f 1623 drivers/net/ethernet/netronome/nfp/flower/offload.c block_cb = flow_block_cb_lookup(f->block, f 1629 drivers/net/ethernet/netronome/nfp/flower/offload.c flow_block_cb_remove(block_cb, f); f 979 drivers/net/ethernet/netronome/nfp/nfp_net_common.c int f, nr_frags, wr_idx, md_bytes; f 1062 drivers/net/ethernet/netronome/nfp/nfp_net_common.c for (f = 0; f < nr_frags; f++) { f 1063 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[f]; f 1074 drivers/net/ethernet/netronome/nfp/nfp_net_common.c tx_ring->txbufs[wr_idx].fidx = f; f 1080 drivers/net/ethernet/netronome/nfp/nfp_net_common.c ((f == nr_frags - 1) ? PCIE_DESC_TX_EOP : 0); f 1104 drivers/net/ethernet/netronome/nfp/nfp_net_common.c while (--f >= 0) { f 1105 drivers/net/ethernet/netronome/nfp/nfp_net_common.c frag = &skb_shinfo(skb)->frags[f]; f 247 drivers/net/ethernet/pasemi/pasemi_mac.c int f; f 252 drivers/net/ethernet/pasemi/pasemi_mac.c for (f = 0; f < nfrags; f++) { f 253 drivers/net/ethernet/pasemi/pasemi_mac.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 255 drivers/net/ethernet/pasemi/pasemi_mac.c pci_unmap_page(pdev, dmas[f+1], skb_frag_size(frag), PCI_DMA_TODEVICE); f 802 drivers/net/ethernet/pensando/ionic/ionic_lif.c struct ionic_rx_filter *f; f 807 drivers/net/ethernet/pensando/ionic/ionic_lif.c f = ionic_rx_filter_by_addr(lif, addr); f 809 drivers/net/ethernet/pensando/ionic/ionic_lif.c if (f) f 832 drivers/net/ethernet/pensando/ionic/ionic_lif.c struct ionic_rx_filter *f; f 836 drivers/net/ethernet/pensando/ionic/ionic_lif.c f = ionic_rx_filter_by_addr(lif, addr); f 837 drivers/net/ethernet/pensando/ionic/ionic_lif.c if (!f) { f 842 drivers/net/ethernet/pensando/ionic/ionic_lif.c ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(f->filter_id); f 843 drivers/net/ethernet/pensando/ionic/ionic_lif.c ionic_rx_filter_free(lif, f); f 1314 drivers/net/ethernet/pensando/ionic/ionic_lif.c struct ionic_rx_filter *f; f 1318 drivers/net/ethernet/pensando/ionic/ionic_lif.c f = ionic_rx_filter_by_vlan(lif, vid); f 1319 drivers/net/ethernet/pensando/ionic/ionic_lif.c if (!f) { f 1327 drivers/net/ethernet/pensando/ionic/ionic_lif.c ctx.cmd.rx_filter_del.filter_id = cpu_to_le32(f->filter_id); f 1328 drivers/net/ethernet/pensando/ionic/ionic_lif.c ionic_rx_filter_free(lif, f); f 11 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f) f 15 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_del(&f->by_id); f 16 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_del(&f->by_hash); f 17 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c devm_kfree(dev, f); f 20 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c int ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f) f 26 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c .filter_id = cpu_to_le32(f->filter_id), f 49 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c struct ionic_rx_filter *f; f 56 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_for_each_entry_safe(f, tmp, head, by_id) f 57 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c ionic_rx_filter_free(lif, f); f 66 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c struct ionic_rx_filter *f; f 86 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c f = devm_kzalloc(dev, sizeof(*f), GFP_KERNEL); f 87 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c if (!f) f 90 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c f->flow_id = flow_id; f 91 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c f->filter_id = le32_to_cpu(ctx->comp.rx_filter_add.filter_id); f 92 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c f->rxq_index = rxq_index; f 93 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c memcpy(&f->cmd, ac, sizeof(f->cmd)); f 95 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c INIT_HLIST_NODE(&f->by_hash); f 96 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c INIT_HLIST_NODE(&f->by_id); f 102 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_add_head(&f->by_hash, head); f 104 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = f->filter_id & IONIC_RX_FILTER_HLISTS_MASK; f 106 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_add_head(&f->by_id, head); f 115 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c struct ionic_rx_filter *f; f 122 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_for_each_entry(f, head, by_hash) { f 123 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c if (le16_to_cpu(f->cmd.match) != IONIC_RX_FILTER_MATCH_VLAN) f 125 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c if (le16_to_cpu(f->cmd.vlan.vlan) == vid) f 126 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c return f; f 135 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c struct ionic_rx_filter *f; f 142 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c hlist_for_each_entry(f, head, by_hash) { f 143 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c if (le16_to_cpu(f->cmd.match) != IONIC_RX_FILTER_MATCH_MAC) f 145 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c if (memcmp(addr, f->cmd.mac.addr, ETH_ALEN) == 0) f 146 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c return f; f 26 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.h void ionic_rx_filter_free(struct ionic_lif *lif, struct ionic_rx_filter *f); f 27 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.h int ionic_rx_filter_del(struct ionic_lif *lif, struct ionic_rx_filter *f); f 571 drivers/net/ethernet/qlogic/qede/qede.h struct flow_cls_offload *f); f 1946 drivers/net/ethernet/qlogic/qede/qede_filter.c struct flow_cls_offload *f) f 1960 drivers/net/ethernet/qlogic/qede/qede_filter.c if (qede_parse_flow_attr(edev, proto, f->rule, &t)) f 1973 drivers/net/ethernet/qlogic/qede/qede_filter.c if (qede_parse_actions(edev, &f->rule->action)) f 2000 drivers/net/ethernet/qlogic/qede/qede_filter.c n->sw_id = f->cookie; f 551 drivers/net/ethernet/qlogic/qede/qede_main.c qede_set_flower(struct qede_dev *edev, struct flow_cls_offload *f, f 554 drivers/net/ethernet/qlogic/qede/qede_main.c switch (f->command) { f 556 drivers/net/ethernet/qlogic/qede/qede_main.c return qede_add_tc_flower_fltr(edev, proto, f); f 558 drivers/net/ethernet/qlogic/qede/qede_main.c return qede_delete_flow_filter(edev, f->cookie); f 567 drivers/net/ethernet/qlogic/qede/qede_main.c struct flow_cls_offload *f; f 575 drivers/net/ethernet/qlogic/qede/qede_main.c f = type_data; f 576 drivers/net/ethernet/qlogic/qede/qede_main.c return qede_set_flower(edev, f, f->common.protocol); f 20 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83XX_CRB_WIN_FUNC(f) (QLC_83XX_CRB_WIN_BASE+((f)*4)) f 23 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83XX_SEM_LOCK_FUNC(f) (QLC_83XX_SEM_LOCK_BASE+((f)*8)) f 24 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83XX_SEM_UNLOCK_FUNC(f) (QLC_83XX_SEM_UNLOCK_BASE+((f)*8)) f 25 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83XX_LINK_STATE(f) (0x3698+((f) > 7 ? 4 : 0)) f 26 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83XX_LINK_SPEED(f) (0x36E0+(((f) >> 2) * 4)) f 28 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h #define QLC_83xx_FUNC_VAL(v, f) ((v) & (1 << (f * 4))) f 342 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c struct ifla_rmnet_flags f; f 352 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c f.flags = port->data_format; f 354 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c f.flags = 0; f 357 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c f.mask = ~0; f 359 drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c if (nla_put(skb, IFLA_RMNET_FLAGS, sizeof(f), &f)) f 272 drivers/net/ethernet/sfc/tx.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 275 drivers/net/ethernet/sfc/tx.c vaddr = kmap_atomic(skb_frag_page(f)); f 277 drivers/net/ethernet/sfc/tx.c efx_memcpy_toio_aligned_cb(efx, piobuf, vaddr + skb_frag_off(f), f 278 drivers/net/ethernet/sfc/tx.c skb_frag_size(f), copy_buf); f 1084 drivers/net/ethernet/sun/sunvnet_common.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 1088 drivers/net/ethernet/sun/sunvnet_common.c vaddr = kmap_atomic(skb_frag_page(f)); f 1089 drivers/net/ethernet/sun/sunvnet_common.c blen = skb_frag_size(f); f 1091 drivers/net/ethernet/sun/sunvnet_common.c err = ldc_map_single(lp, vaddr + skb_frag_off(f), f 1125 drivers/net/ethernet/sun/sunvnet_common.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 1127 drivers/net/ethernet/sun/sunvnet_common.c docopy |= skb_frag_off(f) & 7; f 75 drivers/net/ethernet/tehuti/tehuti.c static void bdx_rx_alloc_skbs(struct bdx_priv *priv, struct rxf_fifo *f); f 77 drivers/net/ethernet/tehuti/tehuti.c static int bdx_rx_receive(struct bdx_priv *priv, struct rxd_fifo *f, int budget); f 150 drivers/net/ethernet/tehuti/tehuti.c bdx_fifo_init(struct bdx_priv *priv, struct fifo *f, int fsz_type, f 155 drivers/net/ethernet/tehuti/tehuti.c memset(f, 0, sizeof(struct fifo)); f 157 drivers/net/ethernet/tehuti/tehuti.c f->va = pci_alloc_consistent(priv->pdev, f 158 drivers/net/ethernet/tehuti/tehuti.c memsz + FIFO_EXTRA_SPACE, &f->da); f 159 drivers/net/ethernet/tehuti/tehuti.c if (!f->va) { f 163 drivers/net/ethernet/tehuti/tehuti.c f->reg_CFG0 = reg_CFG0; f 164 drivers/net/ethernet/tehuti/tehuti.c f->reg_CFG1 = reg_CFG1; f 165 drivers/net/ethernet/tehuti/tehuti.c f->reg_RPTR = reg_RPTR; f 166 drivers/net/ethernet/tehuti/tehuti.c f->reg_WPTR = reg_WPTR; f 167 drivers/net/ethernet/tehuti/tehuti.c f->rptr = 0; f 168 drivers/net/ethernet/tehuti/tehuti.c f->wptr = 0; f 169 drivers/net/ethernet/tehuti/tehuti.c f->memsz = memsz; f 170 drivers/net/ethernet/tehuti/tehuti.c f->size_mask = memsz - 1; f 171 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, reg_CFG0, (u32) ((f->da & TX_RX_CFG0_BASE) | fsz_type)); f 172 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, reg_CFG1, H32_64(f->da)); f 182 drivers/net/ethernet/tehuti/tehuti.c static void bdx_fifo_free(struct bdx_priv *priv, struct fifo *f) f 185 drivers/net/ethernet/tehuti/tehuti.c if (f->va) { f 187 drivers/net/ethernet/tehuti/tehuti.c f->memsz + FIFO_EXTRA_SPACE, f->va, f->da); f 188 drivers/net/ethernet/tehuti/tehuti.c f->va = NULL; f 1019 drivers/net/ethernet/tehuti/tehuti.c static void bdx_rx_free_skbs(struct bdx_priv *priv, struct rxf_fifo *f) f 1037 drivers/net/ethernet/tehuti/tehuti.c dm->dma, f->m.pktsz, f 1081 drivers/net/ethernet/tehuti/tehuti.c static void bdx_rx_alloc_skbs(struct bdx_priv *priv, struct rxf_fifo *f) f 1092 drivers/net/ethernet/tehuti/tehuti.c skb = netdev_alloc_skb(priv->ndev, f->m.pktsz + NET_IP_ALIGN); f 1101 drivers/net/ethernet/tehuti/tehuti.c skb->data, f->m.pktsz, f 1104 drivers/net/ethernet/tehuti/tehuti.c rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); f 1109 drivers/net/ethernet/tehuti/tehuti.c rxfd->len = CPU_CHIP_SWAP32(f->m.pktsz); f 1112 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr += sizeof(struct rxf_desc); f 1113 drivers/net/ethernet/tehuti/tehuti.c delta = f->m.wptr - f->m.memsz; f 1115 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = delta; f 1117 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va, f->m.va + f->m.memsz, delta); f 1124 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); f 1148 drivers/net/ethernet/tehuti/tehuti.c struct rxf_fifo *f; f 1154 drivers/net/ethernet/tehuti/tehuti.c f = &priv->rxf_fifo0; f 1156 drivers/net/ethernet/tehuti/tehuti.c DBG("db=%p f=%p\n", db, f); f 1159 drivers/net/ethernet/tehuti/tehuti.c rxfd = (struct rxf_desc *)(f->m.va + f->m.wptr); f 1164 drivers/net/ethernet/tehuti/tehuti.c rxfd->len = CPU_CHIP_SWAP32(f->m.pktsz); f 1167 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr += sizeof(struct rxf_desc); f 1168 drivers/net/ethernet/tehuti/tehuti.c delta = f->m.wptr - f->m.memsz; f 1170 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = delta; f 1172 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va, f->m.va + f->m.memsz, delta); f 1192 drivers/net/ethernet/tehuti/tehuti.c static int bdx_rx_receive(struct bdx_priv *priv, struct rxd_fifo *f, int budget) f 1211 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = READ_REG(priv, f->m.reg_WPTR) & TXF_WPTR_WR_PTR; f 1213 drivers/net/ethernet/tehuti/tehuti.c size = f->m.wptr - f->m.rptr; f 1215 drivers/net/ethernet/tehuti/tehuti.c size = f->m.memsz + size; /* size is negative :-) */ f 1219 drivers/net/ethernet/tehuti/tehuti.c rxdd = (struct rxd_desc *)(f->m.va + f->m.rptr); f 1234 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr += tmp_len; f 1236 drivers/net/ethernet/tehuti/tehuti.c tmp_len = f->m.rptr - f->m.memsz; f 1238 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr = tmp_len; f 1241 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr, tmp_len); f 1242 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va + f->m.memsz, f->m.va, tmp_len); f 1295 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); f 1580 drivers/net/ethernet/tehuti/tehuti.c struct txd_fifo *f = &priv->txd_fifo0; f 1583 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr = READ_REG(priv, f->m.reg_RPTR) & TXF_WPTR_WR_PTR; f 1584 drivers/net/ethernet/tehuti/tehuti.c fsize = f->m.rptr - f->m.wptr; f 1586 drivers/net/ethernet/tehuti/tehuti.c fsize = f->m.memsz + fsize; f 1604 drivers/net/ethernet/tehuti/tehuti.c struct txd_fifo *f = &priv->txd_fifo0; f 1621 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(f->m.wptr >= f->m.memsz); /* started with valid wptr */ f 1622 drivers/net/ethernet/tehuti/tehuti.c txdd = (struct txd_desc *)(f->m.va + f->m.wptr); f 1654 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr += txd_sizes[nr_frags].bytes; f 1655 drivers/net/ethernet/tehuti/tehuti.c len = f->m.wptr - f->m.memsz; f 1657 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = len; f 1659 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(len > f->m.memsz); f 1660 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va, f->m.va + f->m.memsz, len); f 1663 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(f->m.wptr >= f->m.memsz); /* finished with valid wptr */ f 1673 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); f 1677 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_WPTR, f 1678 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr & TXF_WPTR_WR_PTR); f 1686 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); f 1714 drivers/net/ethernet/tehuti/tehuti.c struct txf_fifo *f = &priv->txf_fifo0; f 1719 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = READ_REG(priv, f->m.reg_WPTR) & TXF_WPTR_MASK; f 1720 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT(f->m.rptr >= f->m.memsz); /* started with valid rptr */ f 1722 drivers/net/ethernet/tehuti/tehuti.c while (f->m.wptr != f->m.rptr) { f 1723 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr += BDX_TXF_DESC_SZ; f 1724 drivers/net/ethernet/tehuti/tehuti.c f->m.rptr &= f->m.size_mask; f 1743 drivers/net/ethernet/tehuti/tehuti.c BDX_ASSERT((f->m.wptr & TXF_WPTR_WR_PTR) >= f->m.memsz); f 1744 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_RPTR, f->m.rptr & TXF_WPTR_WR_PTR); f 1812 drivers/net/ethernet/tehuti/tehuti.c struct txd_fifo *f = &priv->txd_fifo0; f 1813 drivers/net/ethernet/tehuti/tehuti.c int i = f->m.memsz - f->m.wptr; f 1819 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va + f->m.wptr, data, size); f 1820 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr += size; f 1822 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va + f->m.wptr, data, i); f 1823 drivers/net/ethernet/tehuti/tehuti.c f->m.wptr = size - i; f 1824 drivers/net/ethernet/tehuti/tehuti.c memcpy(f->m.va, data + i, f->m.wptr); f 1826 drivers/net/ethernet/tehuti/tehuti.c WRITE_REG(priv, f->m.reg_WPTR, f->m.wptr & TXF_WPTR_WR_PTR); f 365 drivers/net/plip/plip.c plip_func f; f 369 drivers/net/plip/plip.c f = connection_state_table[nl->connection]; f 370 drivers/net/plip/plip.c if ((r = (*f)(nl->dev, nl, snd, rcv)) != OK && f 131 drivers/net/ppp/bsd_comp.c } f; f 667 drivers/net/ppp/bsd_comp.c if (dictp->f.fcode == fcode) f 689 drivers/net/ppp/bsd_comp.c while (dictp->f.fcode != fcode); f 726 drivers/net/ppp/bsd_comp.c dictp->f.fcode = fcode; f 1025 drivers/net/ppp/bsd_comp.c *--p = dictp->f.hs.suffix; f 1026 drivers/net/ppp/bsd_comp.c finchar = dictp->f.hs.prefix; f 1094 drivers/net/ppp/bsd_comp.c dictp->f.fcode = fcode; f 835 drivers/net/ppp/ppp_async.c int c, i, j, n, s, f; f 859 drivers/net/ppp/ppp_async.c f = 0; f 863 drivers/net/ppp/ppp_async.c if ((f = flags[j]) != 0) f 866 drivers/net/ppp/ppp_async.c if (f != 0) { f 1335 drivers/net/usb/usbnet.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 1337 drivers/net/usb/usbnet.c total_len += skb_frag_size(f); f 1338 drivers/net/usb/usbnet.c sg_set_page(&urb->sg[i + s], skb_frag_page(f), skb_frag_size(f), f 1339 drivers/net/usb/usbnet.c skb_frag_off(f)); f 426 drivers/net/vxlan.c struct vxlan_fdb f = { f 434 drivers/net/vxlan.c vxlan_fdb_notify(vxlan, &f, &remote, RTM_GETNEIGH, true, NULL); f 439 drivers/net/vxlan.c struct vxlan_fdb f = { f 444 drivers/net/vxlan.c memcpy(f.eth_addr, eth_addr, ETH_ALEN); f 446 drivers/net/vxlan.c vxlan_fdb_notify(vxlan, &f, &remote, RTM_GETNEIGH, true, NULL); f 491 drivers/net/vxlan.c struct vxlan_fdb *f; f 493 drivers/net/vxlan.c hlist_for_each_entry_rcu(f, head, hlist) { f 494 drivers/net/vxlan.c if (ether_addr_equal(mac, f->eth_addr)) { f 496 drivers/net/vxlan.c if (vni == f->vni) f 497 drivers/net/vxlan.c return f; f 499 drivers/net/vxlan.c return f; f 510 drivers/net/vxlan.c struct vxlan_fdb *f; f 512 drivers/net/vxlan.c f = __vxlan_find_mac(vxlan, mac, vni); f 513 drivers/net/vxlan.c if (f && f->used != jiffies) f 514 drivers/net/vxlan.c f->used = jiffies; f 516 drivers/net/vxlan.c return f; f 520 drivers/net/vxlan.c static struct vxlan_rdst *vxlan_fdb_find_rdst(struct vxlan_fdb *f, f 526 drivers/net/vxlan.c list_for_each_entry(rd, &f->remotes, list) { f 543 drivers/net/vxlan.c struct vxlan_fdb *f; f 554 drivers/net/vxlan.c f = __vxlan_find_mac(vxlan, eth_addr, vni); f 555 drivers/net/vxlan.c if (!f) { f 560 drivers/net/vxlan.c rdst = first_remote_rcu(f); f 561 drivers/net/vxlan.c vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, NULL, fdb_info); f 571 drivers/net/vxlan.c const struct vxlan_fdb *f, f 578 drivers/net/vxlan.c vxlan_fdb_switchdev_notifier_info(vxlan, f, rdst, extack, &fdb_info); f 590 drivers/net/vxlan.c struct vxlan_fdb *f; f 600 drivers/net/vxlan.c hlist_for_each_entry(f, &vxlan->fdb_head[h], hlist) { f 601 drivers/net/vxlan.c if (f->vni == vni) { f 602 drivers/net/vxlan.c list_for_each_entry(rdst, &f->remotes, list) { f 604 drivers/net/vxlan.c f, rdst, f 625 drivers/net/vxlan.c struct vxlan_fdb *f; f 634 drivers/net/vxlan.c hlist_for_each_entry(f, &vxlan->fdb_head[h], hlist) f 635 drivers/net/vxlan.c if (f->vni == vni) f 636 drivers/net/vxlan.c list_for_each_entry(rdst, &f->remotes, list) f 645 drivers/net/vxlan.c static int vxlan_fdb_replace(struct vxlan_fdb *f, f 651 drivers/net/vxlan.c rd = vxlan_fdb_find_rdst(f, ip, port, vni, ifindex); f 655 drivers/net/vxlan.c rd = list_first_entry_or_null(&f->remotes, struct vxlan_rdst, list); f 670 drivers/net/vxlan.c static int vxlan_fdb_append(struct vxlan_fdb *f, f 676 drivers/net/vxlan.c rd = vxlan_fdb_find_rdst(f, ip, port, vni, ifindex); f 695 drivers/net/vxlan.c list_add_tail_rcu(&rd->list, &f->remotes); f 800 drivers/net/vxlan.c struct vxlan_fdb *f; f 802 drivers/net/vxlan.c f = kmalloc(sizeof(*f), GFP_ATOMIC); f 803 drivers/net/vxlan.c if (!f) f 805 drivers/net/vxlan.c f->state = state; f 806 drivers/net/vxlan.c f->flags = ndm_flags; f 807 drivers/net/vxlan.c f->updated = f->used = jiffies; f 808 drivers/net/vxlan.c f->vni = src_vni; f 809 drivers/net/vxlan.c INIT_LIST_HEAD(&f->remotes); f 810 drivers/net/vxlan.c memcpy(f->eth_addr, mac, ETH_ALEN); f 812 drivers/net/vxlan.c return f; f 816 drivers/net/vxlan.c __be32 src_vni, struct vxlan_fdb *f) f 819 drivers/net/vxlan.c hlist_add_head_rcu(&f->hlist, f 830 drivers/net/vxlan.c struct vxlan_fdb *f; f 838 drivers/net/vxlan.c f = vxlan_fdb_alloc(vxlan, mac, state, src_vni, ndm_flags); f 839 drivers/net/vxlan.c if (!f) f 842 drivers/net/vxlan.c rc = vxlan_fdb_append(f, ip, port, vni, ifindex, &rd); f 844 drivers/net/vxlan.c kfree(f); f 848 drivers/net/vxlan.c *fdb = f; f 853 drivers/net/vxlan.c static void __vxlan_fdb_free(struct vxlan_fdb *f) f 857 drivers/net/vxlan.c list_for_each_entry_safe(rd, nd, &f->remotes, list) { f 861 drivers/net/vxlan.c kfree(f); f 866 drivers/net/vxlan.c struct vxlan_fdb *f = container_of(head, struct vxlan_fdb, rcu); f 868 drivers/net/vxlan.c __vxlan_fdb_free(f); f 871 drivers/net/vxlan.c static void vxlan_fdb_destroy(struct vxlan_dev *vxlan, struct vxlan_fdb *f, f 876 drivers/net/vxlan.c netdev_dbg(vxlan->dev, "delete %pM\n", f->eth_addr); f 880 drivers/net/vxlan.c list_for_each_entry(rd, &f->remotes, list) f 881 drivers/net/vxlan.c vxlan_fdb_notify(vxlan, f, rd, RTM_DELNEIGH, f 884 drivers/net/vxlan.c hlist_del_rcu(&f->hlist); f 885 drivers/net/vxlan.c call_rcu(&f->rcu, vxlan_fdb_free); f 901 drivers/net/vxlan.c struct vxlan_fdb *f, f 916 drivers/net/vxlan.c !(f->flags & NTF_VXLAN_ADDED_BY_USER)) { f 917 drivers/net/vxlan.c if (f->state != state) { f 918 drivers/net/vxlan.c f->state = state; f 919 drivers/net/vxlan.c f->updated = jiffies; f 922 drivers/net/vxlan.c if (f->flags != fdb_flags) { f 923 drivers/net/vxlan.c f->flags = fdb_flags; f 924 drivers/net/vxlan.c f->updated = jiffies; f 931 drivers/net/vxlan.c if (!(is_multicast_ether_addr(f->eth_addr) || f 932 drivers/net/vxlan.c is_zero_ether_addr(f->eth_addr))) { f 933 drivers/net/vxlan.c rc = vxlan_fdb_replace(f, ip, port, vni, f 941 drivers/net/vxlan.c (is_multicast_ether_addr(f->eth_addr) || f 942 drivers/net/vxlan.c is_zero_ether_addr(f->eth_addr))) { f 943 drivers/net/vxlan.c rc = vxlan_fdb_append(f, ip, port, vni, ifindex, &rd); f 951 drivers/net/vxlan.c f->used = jiffies; f 955 drivers/net/vxlan.c rd = first_remote_rtnl(f); f 957 drivers/net/vxlan.c err = vxlan_fdb_notify(vxlan, f, rd, RTM_NEWNEIGH, f 984 drivers/net/vxlan.c struct vxlan_fdb *f; f 994 drivers/net/vxlan.c vni, ifindex, fdb_flags, &f); f 998 drivers/net/vxlan.c vxlan_fdb_insert(vxlan, mac, src_vni, f); f 999 drivers/net/vxlan.c rc = vxlan_fdb_notify(vxlan, f, first_remote_rtnl(f), RTM_NEWNEIGH, f 1007 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, false, false); f 1020 drivers/net/vxlan.c struct vxlan_fdb *f; f 1022 drivers/net/vxlan.c f = __vxlan_find_mac(vxlan, mac, src_vni); f 1023 drivers/net/vxlan.c if (f) { f 1031 drivers/net/vxlan.c vni, ifindex, ndm_flags, f, f 1043 drivers/net/vxlan.c static void vxlan_fdb_dst_destroy(struct vxlan_dev *vxlan, struct vxlan_fdb *f, f 1047 drivers/net/vxlan.c vxlan_fdb_notify(vxlan, f, rd, RTM_DELNEIGH, swdev_notify, NULL); f 1162 drivers/net/vxlan.c struct vxlan_fdb *f; f 1166 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, addr, src_vni); f 1167 drivers/net/vxlan.c if (!f) f 1171 drivers/net/vxlan.c rd = vxlan_fdb_find_rdst(f, &ip, port, vni, ifindex); f 1179 drivers/net/vxlan.c if (rd && !list_is_singular(&f->remotes)) { f 1180 drivers/net/vxlan.c vxlan_fdb_dst_destroy(vxlan, f, rd, swdev_notify); f 1184 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, true, swdev_notify); f 1226 drivers/net/vxlan.c struct vxlan_fdb *f; f 1228 drivers/net/vxlan.c hlist_for_each_entry_rcu(f, &vxlan->fdb_head[h], hlist) { f 1231 drivers/net/vxlan.c list_for_each_entry_rcu(rd, &f->remotes, list) { f 1235 drivers/net/vxlan.c err = vxlan_fdb_info(skb, vxlan, f, f 1259 drivers/net/vxlan.c struct vxlan_fdb *f; f 1270 drivers/net/vxlan.c f = __vxlan_find_mac(vxlan, addr, vni); f 1271 drivers/net/vxlan.c if (!f) { f 1277 drivers/net/vxlan.c err = vxlan_fdb_info(skb, vxlan, f, portid, seq, f 1278 drivers/net/vxlan.c RTM_NEWNEIGH, 0, first_remote_rcu(f)); f 1293 drivers/net/vxlan.c struct vxlan_fdb *f; f 1302 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, src_mac, vni); f 1303 drivers/net/vxlan.c if (likely(f)) { f 1304 drivers/net/vxlan.c struct vxlan_rdst *rdst = first_remote_rcu(f); f 1311 drivers/net/vxlan.c if (f->state & (NUD_PERMANENT | NUD_NOARP)) f 1320 drivers/net/vxlan.c f->updated = jiffies; f 1321 drivers/net/vxlan.c vxlan_fdb_notify(vxlan, f, rdst, RTM_NEWNEIGH, true, NULL); f 1850 drivers/net/vxlan.c struct vxlan_fdb *f; f 1858 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, n->ha, vni); f 1859 drivers/net/vxlan.c if (f && vxlan_addr_any(&(first_remote_rcu(f)->remote_ip))) { f 2009 drivers/net/vxlan.c struct vxlan_fdb *f; f 2017 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, n->ha, vni); f 2018 drivers/net/vxlan.c if (f && vxlan_addr_any(&(first_remote_rcu(f)->remote_ip))) { f 2025 drivers/net/vxlan.c !!(f ? f->flags & NTF_ROUTER : 0)); f 2635 drivers/net/vxlan.c struct vxlan_fdb *f; f 2675 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, eth->h_dest, vni); f 2678 drivers/net/vxlan.c if (f && (f->flags & NTF_ROUTER) && (vxlan->cfg.flags & VXLAN_F_RSC) && f 2683 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, eth->h_dest, vni); f 2686 drivers/net/vxlan.c if (f == NULL) { f 2687 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, all_zeros_mac, vni); f 2688 drivers/net/vxlan.c if (f == NULL) { f 2699 drivers/net/vxlan.c list_for_each_entry_rcu(rdst, &f->remotes, list) { f 2733 drivers/net/vxlan.c struct vxlan_fdb *f f 2737 drivers/net/vxlan.c if (f->state & (NUD_PERMANENT | NUD_NOARP)) f 2740 drivers/net/vxlan.c if (f->flags & NTF_EXT_LEARNED) f 2743 drivers/net/vxlan.c timeout = f->used + vxlan->cfg.age_interval * HZ; f 2747 drivers/net/vxlan.c f->eth_addr); f 2748 drivers/net/vxlan.c f->state = NUD_STALE; f 2749 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, true, true); f 2804 drivers/net/vxlan.c struct vxlan_fdb *f; f 2808 drivers/net/vxlan.c f = __vxlan_find_mac(vxlan, all_zeros_mac, vni); f 2809 drivers/net/vxlan.c if (f) f 2810 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, true, true); f 2861 drivers/net/vxlan.c struct vxlan_fdb *f f 2863 drivers/net/vxlan.c if (!do_all && (f->state & (NUD_PERMANENT | NUD_NOARP))) f 2866 drivers/net/vxlan.c if (!is_zero_ether_addr(f->eth_addr)) f 2867 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, true, true); f 3581 drivers/net/vxlan.c struct vxlan_fdb *f = NULL; f 3602 drivers/net/vxlan.c NTF_SELF, &f); f 3626 drivers/net/vxlan.c if (f) { f 3627 drivers/net/vxlan.c vxlan_fdb_insert(vxlan, all_zeros_mac, dst->remote_vni, f); f 3630 drivers/net/vxlan.c err = vxlan_fdb_notify(vxlan, f, first_remote_rtnl(f), f 3633 drivers/net/vxlan.c vxlan_fdb_destroy(vxlan, f, false, false); f 3652 drivers/net/vxlan.c if (f) f 3653 drivers/net/vxlan.c __vxlan_fdb_free(f); f 4277 drivers/net/vxlan.c struct vxlan_fdb *f; f 4284 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, fdb_info->eth_addr, fdb_info->vni); f 4285 drivers/net/vxlan.c if (!f) f 4288 drivers/net/vxlan.c rdst = vxlan_fdb_find_rdst(f, &fdb_info->remote_ip, f 4333 drivers/net/vxlan.c struct vxlan_fdb *f; f 4340 drivers/net/vxlan.c f = vxlan_find_mac(vxlan, fdb_info->eth_addr, fdb_info->vni); f 4341 drivers/net/vxlan.c if (!f) f 4343 drivers/net/vxlan.c else if (f->flags & NTF_EXT_LEARNED) f 649 drivers/net/wan/lmc/lmc_media.c av->f = ictl->clock_rate; f 662 drivers/net/wan/lmc/lmc_media.c if (av->f == 0) f 665 drivers/net/wan/lmc/lmc_media.c ictl->clock_rate = av->f; /* really, this is the rate we are */ f 156 drivers/net/wan/lmc/lmc_var.h u32 f; f 133 drivers/net/wireless/ath/ath6kl/target.h #define SM(f, v) (((v) << f##_S) & f) f 134 drivers/net/wireless/ath/ath6kl/target.h #define MS(f, v) (((v) & f) >> f##_S) f 3840 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int f[3], t[3]; f 3849 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[0] = 5180; f 3851 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[1] = 5500; f 3853 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[2] = 5785; f 3855 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t, 3); f 3868 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int f[3], t[3]; f 3877 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[0] = 5180; f 3879 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[1] = 5500; f 3881 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[2] = 5785; f 3883 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t, 3); f 4069 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c s32 t[3], f[3] = {5180, 5500, 5785}; f 4081 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c quick_drop = ar9003_hw_power_interpolate(freq, f, t, 3); f 4812 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c int f[8], t[8], t1[3], t2[3], i; f 4850 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[0] = 5180; f 4855 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[1] = 5500; f 4860 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[2] = 5785; f 4863 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t, 3); f 4865 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t1, 3); f 4867 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t2, 3); f 4875 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[i] = FBIN2FREQ(eep->calFreqPier5G[i], 0); f 4878 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t, 8); f 4881 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[0] = 5180; f 4883 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[1] = 5500; f 4885 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f[2] = 5785; f 4887 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c f, t, 3); f 295 drivers/net/wireless/ath/carl9170/debug.c le16_to_cpu(txc->f.mac_control), le32_to_cpu(txc->f.phy_control), f 486 drivers/net/wireless/ath/carl9170/debug.c #define DEBUGFS_HW_TALLY_FILE(name, f) \ f 507 drivers/net/wireless/ath/carl9170/debug.c ADD(buf, *ret, max_len, "%22s = %" f "[+%" f "]\n", \ f 516 drivers/net/wireless/ath/carl9170/debug.c #define DEBUGFS_HW_REG_FILE(name, f) \ f 535 drivers/net/wireless/ath/carl9170/debug.c ADD(buf, *ret, max_len, "%22s = %" f "\n", \ f 1055 drivers/net/wireless/ath/carl9170/phy.c static int carl9170_find_freq_idx(int nfreqs, u8 *freqs, u8 f) f 1060 drivers/net/wireless/ath/carl9170/phy.c if (f >= freqs[idx]) f 1125 drivers/net/wireless/ath/carl9170/phy.c u8 f, tmp; f 1129 drivers/net/wireless/ath/carl9170/phy.c f = channel->center_freq - 2300; f 1135 drivers/net/wireless/ath/carl9170/phy.c f = (channel->center_freq - 4800) / 5; f 1151 drivers/net/wireless/ath/carl9170/phy.c idx = carl9170_find_freq_idx(i, cal_freq_pier, f); f 1176 drivers/net/wireless/ath/carl9170/phy.c vpds[j][i] = carl9170_interpolate_u8(f, f 1182 drivers/net/wireless/ath/carl9170/phy.c pwrs[j][i] = carl9170_interpolate_u8(f, f 1222 drivers/net/wireless/ath/carl9170/phy.c u8 f; f 1224 drivers/net/wireless/ath/carl9170/phy.c f = freq - 2300; f 1226 drivers/net/wireless/ath/carl9170/phy.c f = (freq - 4800) / 5; f 1231 drivers/net/wireless/ath/carl9170/phy.c if (f == edges[i].channel) { f 1236 drivers/net/wireless/ath/carl9170/phy.c if (i > 0 && f < edges[i].channel) { f 1237 drivers/net/wireless/ath/carl9170/phy.c if (f > edges[i - 1].channel && f 1249 drivers/net/wireless/ath/carl9170/phy.c if (f > edges[i - 1].channel && f 1262 drivers/net/wireless/ath/carl9170/phy.c u8 f; f 1267 drivers/net/wireless/ath/carl9170/phy.c f = freq - 2300; f 1269 drivers/net/wireless/ath/carl9170/phy.c f = (freq - 4800) / 5; f 1277 drivers/net/wireless/ath/carl9170/phy.c if (f == edges[i].channel) { f 1436 drivers/net/wireless/ath/carl9170/phy.c u8 f; f 1440 drivers/net/wireless/ath/carl9170/phy.c f = freq - 2300; f 1442 drivers/net/wireless/ath/carl9170/phy.c f = (freq - 4800) / 5; f 1476 drivers/net/wireless/ath/carl9170/phy.c idx = carl9170_find_freq_idx(ntargets, pwr_freqs, f); f 1478 drivers/net/wireless/ath/carl9170/phy.c ctpres[n] = carl9170_interpolate_u8(f, f 1516 drivers/net/wireless/ath/carl9170/phy.c idx = carl9170_find_freq_idx(ntargets, pwr_freqs, f); f 1518 drivers/net/wireless/ath/carl9170/phy.c ctpres[n] = carl9170_interpolate_u8(f, f 422 drivers/net/wireless/ath/carl9170/tx.c if (super->f.mac_control & cpu_to_le16(AR9170_TX_MAC_IMM_BA)) { f 925 drivers/net/wireless/ath/carl9170/tx.c txc->f.phy_control = phy_set; f 935 drivers/net/wireless/ath/carl9170/tx.c txc->f.mac_control |= mac_tmp; f 1068 drivers/net/wireless/ath/carl9170/tx.c txc->f.length = cpu_to_le16(len + FCS_LEN); f 1069 drivers/net/wireless/ath/carl9170/tx.c txc->f.mac_control = mac_tmp; f 1087 drivers/net/wireless/ath/carl9170/tx.c super->f.mac_control |= cpu_to_le16(AR9170_TX_MAC_IMM_BA); f 280 drivers/net/wireless/ath/carl9170/wlan.h struct ar9170_tx_frame f; f 329 drivers/net/wireless/ath/carl9170/wlan.h struct _ar9170_tx_hwdesc f; f 1858 drivers/net/wireless/ath/wil6210/cfg80211.c struct ieee80211_mgmt *f = f 1863 drivers/net/wireless/ath/wil6210/cfg80211.c ies = f->u.probe_resp.variable; f 1755 drivers/net/wireless/ath/wil6210/txrx.c int f, len, hdrlen, headlen; f 1845 drivers/net/wireless/ath/wil6210/txrx.c for (f = headlen ? -1 : 0; f < nr_frags; f++) { f 1851 drivers/net/wireless/ath/wil6210/txrx.c frag = &skb_shinfo(skb)->frags[f]; f 1853 drivers/net/wireless/ath/wil6210/txrx.c wil_dbg_txrx(wil, "TSO: frag[%d]: len %u\n", f, len); f 1920 drivers/net/wireless/ath/wil6210/txrx.c if (rem_data == 0 || (f == nr_frags - 1 && len == 0)) { f 1948 drivers/net/wireless/ath/wil6210/txrx.c if (f < nr_frags - 1 || len > 0) f 2042 drivers/net/wireless/ath/wil6210/txrx.c uint f = 0; f 2094 drivers/net/wireless/ath/wil6210/txrx.c for (; f < nr_frags; f++) { f 2095 drivers/net/wireless/ath/wil6210/txrx.c const skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 2102 drivers/net/wireless/ath/wil6210/txrx.c i = (swhead + f + 1) % ring->size; f 2172 drivers/net/wireless/ath/wil6210/txrx.c nr_frags = f + 1; /* frags mapped + one for skb head */ f 2173 drivers/net/wireless/ath/wil6210/txrx.c for (f = 0; f < nr_frags; f++) { f 2176 drivers/net/wireless/ath/wil6210/txrx.c i = (swhead + f) % ring->size; f 1415 drivers/net/wireless/ath/wil6210/txrx_edma.c int f, hdrlen, headlen; f 1485 drivers/net/wireless/ath/wil6210/txrx_edma.c for (f = 0; f < nr_frags; f++) { f 1486 drivers/net/wireless/ath/wil6210/txrx_edma.c skb_frag_t *frag = &skb_shinfo(skb)->frags[f]; f 1489 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_dbg_txrx(wil, "TSO: frag[%d]: len %u, descs_used %d\n", f, f 1494 drivers/net/wireless/ath/wil6210/txrx_edma.c (f != nr_frags - 1) ? f 2253 drivers/net/wireless/atmel/atmel.c int f = fwrq->m / 100000; f 2257 drivers/net/wireless/atmel/atmel.c fwrq->m = ieee80211_frequency_to_channel(f); f 572 drivers/net/wireless/broadcom/b43/dma.c unsigned char *f = skb->data + ring->frameoffset; f 574 drivers/net/wireless/broadcom/b43/dma.c return ((f[0] & f[1] & f[2] & f[3] & f[4] & f[5] & f[6] & f[7]) == 0xFF); f 2336 drivers/net/wireless/broadcom/b43/phy_g.c s32 m1, m2, f = 256, q, delta; f 2344 drivers/net/wireless/broadcom/b43/phy_g.c q = b43_tssi2dbm_ad(f * 4096 - f 2345 drivers/net/wireless/broadcom/b43/phy_g.c b43_tssi2dbm_ad(m2 * f, 16) * f, 2048); f 2346 drivers/net/wireless/broadcom/b43/phy_g.c delta = abs(q - f); f 2347 drivers/net/wireless/broadcom/b43/phy_g.c f = q; f 2350 drivers/net/wireless/broadcom/b43/phy_g.c entry[index] = clamp_val(b43_tssi2dbm_ad(m1 * f, 8192), -127, 128); f 1946 drivers/net/wireless/broadcom/b43legacy/phy.c s32 f = 256; f 1956 drivers/net/wireless/broadcom/b43legacy/phy.c q = b43legacy_tssi2dbm_ad(f * 4096 - f 1957 drivers/net/wireless/broadcom/b43legacy/phy.c b43legacy_tssi2dbm_ad(m2 * f, 16) * f 1958 drivers/net/wireless/broadcom/b43legacy/phy.c f, 2048); f 1959 drivers/net/wireless/broadcom/b43legacy/phy.c delta = abs(q - f); f 1960 drivers/net/wireless/broadcom/b43legacy/phy.c f = q; f 1963 drivers/net/wireless/broadcom/b43legacy/phy.c entry[index] = clamp_val(b43legacy_tssi2dbm_ad(m1 * f, 8192), f 318 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c static void brcms_c_ffpld_calc_mcs2ampdu_table(struct ampdu_info *ampdu, int f) f 323 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *fifo = (ampdu->fifo_tb + f); f 584 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *f = &du->fifo_tb[fifo]; f 603 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (mcs_2_rate(mcs, true, false) >= f->dmaxferrate) { f 605 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c min_t(u16, f->mcs2ampdu_table[mcs], f 638 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c struct brcms_fifo_info *f; f 664 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c f = &du->fifo_tb[fifo]; f 770 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c if (mcs_2_rate(mcs, true, false) >= f->dmaxferrate) { f 771 drivers/net/wireless/broadcom/brcm80211/brcmsmac/ampdu.c dma_len = min(dma_len, f->ampdu_pld_size); f 174 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c static int brcms_debugfs_entry_open(struct inode *inode, struct file *f) f 178 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.c return single_open(f, entry->read, entry->drvr); f 54 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg(core, l, f, a...) __brcms_dbg(&(core)->dev, l, __func__, f, ##a) f 55 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_info(core, f, a...) __brcms_info(&(core)->dev, f, ##a) f 56 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_warn(core, f, a...) __brcms_warn(&(core)->dev, f, ##a) f 57 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_err(core, f, a...) __brcms_err(&(core)->dev, f, ##a) f 58 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_crit(core, f, a...) __brcms_crit(&(core)->dev, f, ##a) f 60 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_info(core, f, a...) brcms_dbg(core, BRCM_DL_INFO, f, ##a) f 61 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_mac80211(core, f, a...) brcms_dbg(core, BRCM_DL_MAC80211, f, ##a) f 62 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_rx(core, f, a...) brcms_dbg(core, BRCM_DL_RX, f, ##a) f 63 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_tx(core, f, a...) brcms_dbg(core, BRCM_DL_TX, f, ##a) f 64 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_int(core, f, a...) brcms_dbg(core, BRCM_DL_INT, f, ##a) f 65 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_dma(core, f, a...) brcms_dbg(core, BRCM_DL_DMA, f, ##a) f 66 drivers/net/wireless/broadcom/brcm80211/brcmsmac/debug.h #define brcms_dbg_ht(core, f, a...) brcms_dbg(core, BRCM_DL_HT, f, ##a) f 20237 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c wlc_phy_chan2freq_nphy(struct brcms_phy *pi, uint channel, int *f, f 20390 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *f = freq; f 20394 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c *f = WL_CHAN_FREQ_RANGE_2G; f 5796 drivers/net/wireless/cisco/airo.c int f = fwrq->m / 100000; f 5800 drivers/net/wireless/cisco/airo.c fwrq->m = ieee80211_frequency_to_channel(f); f 2194 drivers/net/wireless/intel/ipw2x00/ipw2100.c #define IPW2100_HANDLER(v, f) { v, f, # v } f 2201 drivers/net/wireless/intel/ipw2x00/ipw2100.c #define IPW2100_HANDLER(v, f) { v, f } f 6642 drivers/net/wireless/intel/ipw2x00/ipw2100.c int f = fwrq->m / 100000; f 6646 drivers/net/wireless/intel/ipw2x00/ipw2100.c (f != ipw2100_frequencies[c])) f 97 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_ERROR(f, a...) printk(KERN_ERR DRV_NAME ": " f, ## a) f 98 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_WARNING(f, a...) printk(KERN_WARNING DRV_NAME ": " f, ## a) f 99 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_INFO(f...) IPW_DEBUG(IPW_DL_INFO, ## f) f 100 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_WX(f...) IPW_DEBUG(IPW_DL_WX, ## f) f 101 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_SCAN(f...) IPW_DEBUG(IPW_DL_SCAN, ## f) f 102 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_NOTIF(f...) IPW_DEBUG(IPW_DL_NOTIF, ## f) f 103 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_TRACE(f...) IPW_DEBUG(IPW_DL_TRACE, ## f) f 104 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_RX(f...) IPW_DEBUG(IPW_DL_RX, ## f) f 105 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_TX(f...) IPW_DEBUG(IPW_DL_TX, ## f) f 106 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_ISR(f...) IPW_DEBUG(IPW_DL_ISR, ## f) f 107 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_MANAGEMENT(f...) IPW_DEBUG(IPW_DL_MANAGE, ## f) f 108 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_WEP(f...) IPW_DEBUG(IPW_DL_WEP, ## f) f 109 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_HC(f...) IPW_DEBUG(IPW_DL_HC, ## f) f 110 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_FRAG(f...) IPW_DEBUG(IPW_DL_FRAG, ## f) f 111 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_FW(f...) IPW_DEBUG(IPW_DL_FW, ## f) f 112 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_RF_KILL(f...) IPW_DEBUG(IPW_DL_RF_KILL, ## f) f 113 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_DROP(f...) IPW_DEBUG(IPW_DL_DROP, ## f) f 114 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_IO(f...) IPW_DEBUG(IPW_DL_IO, ## f) f 115 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_IOCTL(f...) IPW_DEBUG(IPW_DL_IOCTL, ## f) f 116 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_STATE(f, a...) IPW_DEBUG(IPW_DL_STATE | IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) f 117 drivers/net/wireless/intel/ipw2x00/ipw2100.h #define IPW_DEBUG_ASSOC(f, a...) IPW_DEBUG(IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) f 1458 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_ERROR(f, a...) printk(KERN_ERR DRV_NAME ": " f, ## a) f 1459 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_WARNING(f, a...) printk(KERN_WARNING DRV_NAME ": " f, ## a) f 1460 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_INFO(f, a...) IPW_DEBUG(IPW_DL_INFO, f, ## a) f 1462 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_WX(f, a...) IPW_DEBUG(IPW_DL_WX, f, ## a) f 1463 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_SCAN(f, a...) IPW_DEBUG(IPW_DL_SCAN, f, ## a) f 1464 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_TRACE(f, a...) IPW_LL_DEBUG(IPW_DL_TRACE, f, ## a) f 1465 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_RX(f, a...) IPW_LL_DEBUG(IPW_DL_RX, f, ## a) f 1466 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_TX(f, a...) IPW_LL_DEBUG(IPW_DL_TX, f, ## a) f 1467 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_ISR(f, a...) IPW_LL_DEBUG(IPW_DL_ISR, f, ## a) f 1468 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_MANAGEMENT(f, a...) IPW_DEBUG(IPW_DL_MANAGE, f, ## a) f 1469 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_LED(f, a...) IPW_LL_DEBUG(IPW_DL_LED, f, ## a) f 1470 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_WEP(f, a...) IPW_LL_DEBUG(IPW_DL_WEP, f, ## a) f 1471 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_HC(f, a...) IPW_LL_DEBUG(IPW_DL_HOST_COMMAND, f, ## a) f 1472 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_FRAG(f, a...) IPW_LL_DEBUG(IPW_DL_FRAG, f, ## a) f 1473 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_FW(f, a...) IPW_LL_DEBUG(IPW_DL_FW, f, ## a) f 1474 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_RF_KILL(f, a...) IPW_DEBUG(IPW_DL_RF_KILL, f, ## a) f 1475 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_DROP(f, a...) IPW_DEBUG(IPW_DL_DROP, f, ## a) f 1476 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_IO(f, a...) IPW_LL_DEBUG(IPW_DL_IO, f, ## a) f 1477 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_ORD(f, a...) IPW_LL_DEBUG(IPW_DL_ORD, f, ## a) f 1478 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_FW_INFO(f, a...) IPW_LL_DEBUG(IPW_DL_FW_INFO, f, ## a) f 1479 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_NOTIF(f, a...) IPW_DEBUG(IPW_DL_NOTIF, f, ## a) f 1480 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_STATE(f, a...) IPW_DEBUG(IPW_DL_STATE | IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) f 1481 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_ASSOC(f, a...) IPW_DEBUG(IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) f 1482 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_STATS(f, a...) IPW_LL_DEBUG(IPW_DL_STATS, f, ## a) f 1483 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_MERGE(f, a...) IPW_LL_DEBUG(IPW_DL_MERGE, f, ## a) f 1484 drivers/net/wireless/intel/ipw2x00/ipw2200.h #define IPW_DEBUG_QOS(f, a...) IPW_LL_DEBUG(IPW_DL_QOS, f, ## a) f 107 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_ERROR(f, a...) printk(KERN_ERR "libipw: " f, ## a) f 108 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_WARNING(f, a...) printk(KERN_WARNING "libipw: " f, ## a) f 109 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_INFO(f, a...) LIBIPW_DEBUG(LIBIPW_DL_INFO, f, ## a) f 111 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_WX(f, a...) LIBIPW_DEBUG(LIBIPW_DL_WX, f, ## a) f 112 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_SCAN(f, a...) LIBIPW_DEBUG(LIBIPW_DL_SCAN, f, ## a) f 113 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_STATE(f, a...) LIBIPW_DEBUG(LIBIPW_DL_STATE, f, ## a) f 114 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_MGMT(f, a...) LIBIPW_DEBUG(LIBIPW_DL_MGMT, f, ## a) f 115 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_FRAG(f, a...) LIBIPW_DEBUG(LIBIPW_DL_FRAG, f, ## a) f 116 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_DROP(f, a...) LIBIPW_DEBUG(LIBIPW_DL_DROP, f, ## a) f 117 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_TX(f, a...) LIBIPW_DEBUG(LIBIPW_DL_TX, f, ## a) f 118 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_RX(f, a...) LIBIPW_DEBUG(LIBIPW_DL_RX, f, ## a) f 119 drivers/net/wireless/intel/ipw2x00/libipw.h #define LIBIPW_DEBUG_QOS(f, a...) LIBIPW_DEBUG(LIBIPW_DL_QOS, f, ## a) f 31 drivers/net/wireless/intel/iwlegacy/common.h #define IL_ERR(f, a...) dev_err(&il->pci_dev->dev, f, ## a) f 32 drivers/net/wireless/intel/iwlegacy/common.h #define IL_WARN(f, a...) dev_warn(&il->pci_dev->dev, f, ## a) f 33 drivers/net/wireless/intel/iwlegacy/common.h #define IL_WARN_ONCE(f, a...) dev_warn_once(&il->pci_dev->dev, f, ## a) f 34 drivers/net/wireless/intel/iwlegacy/common.h #define IL_INFO(f, a...) dev_info(&il->pci_dev->dev, f, ## a) f 3027 drivers/net/wireless/intel/iwlegacy/common.h #define D_INFO(f, a...) IL_DBG(IL_DL_INFO, f, ## a) f 3028 drivers/net/wireless/intel/iwlegacy/common.h #define D_MAC80211(f, a...) IL_DBG(IL_DL_MAC80211, f, ## a) f 3029 drivers/net/wireless/intel/iwlegacy/common.h #define D_MACDUMP(f, a...) IL_DBG(IL_DL_MACDUMP, f, ## a) f 3030 drivers/net/wireless/intel/iwlegacy/common.h #define D_TEMP(f, a...) IL_DBG(IL_DL_TEMP, f, ## a) f 3031 drivers/net/wireless/intel/iwlegacy/common.h #define D_SCAN(f, a...) IL_DBG(IL_DL_SCAN, f, ## a) f 3032 drivers/net/wireless/intel/iwlegacy/common.h #define D_RX(f, a...) IL_DBG(IL_DL_RX, f, ## a) f 3033 drivers/net/wireless/intel/iwlegacy/common.h #define D_TX(f, a...) IL_DBG(IL_DL_TX, f, ## a) f 3034 drivers/net/wireless/intel/iwlegacy/common.h #define D_ISR(f, a...) IL_DBG(IL_DL_ISR, f, ## a) f 3035 drivers/net/wireless/intel/iwlegacy/common.h #define D_LED(f, a...) IL_DBG(IL_DL_LED, f, ## a) f 3036 drivers/net/wireless/intel/iwlegacy/common.h #define D_WEP(f, a...) IL_DBG(IL_DL_WEP, f, ## a) f 3037 drivers/net/wireless/intel/iwlegacy/common.h #define D_HC(f, a...) IL_DBG(IL_DL_HCMD, f, ## a) f 3038 drivers/net/wireless/intel/iwlegacy/common.h #define D_HC_DUMP(f, a...) IL_DBG(IL_DL_HCMD_DUMP, f, ## a) f 3039 drivers/net/wireless/intel/iwlegacy/common.h #define D_EEPROM(f, a...) IL_DBG(IL_DL_EEPROM, f, ## a) f 3040 drivers/net/wireless/intel/iwlegacy/common.h #define D_CALIB(f, a...) IL_DBG(IL_DL_CALIB, f, ## a) f 3041 drivers/net/wireless/intel/iwlegacy/common.h #define D_FW(f, a...) IL_DBG(IL_DL_FW, f, ## a) f 3042 drivers/net/wireless/intel/iwlegacy/common.h #define D_RF_KILL(f, a...) IL_DBG(IL_DL_RF_KILL, f, ## a) f 3043 drivers/net/wireless/intel/iwlegacy/common.h #define D_DROP(f, a...) IL_DBG(IL_DL_DROP, f, ## a) f 3044 drivers/net/wireless/intel/iwlegacy/common.h #define D_AP(f, a...) IL_DBG(IL_DL_AP, f, ## a) f 3045 drivers/net/wireless/intel/iwlegacy/common.h #define D_TXPOWER(f, a...) IL_DBG(IL_DL_TXPOWER, f, ## a) f 3046 drivers/net/wireless/intel/iwlegacy/common.h #define D_RATE(f, a...) IL_DBG(IL_DL_RATE, f, ## a) f 3047 drivers/net/wireless/intel/iwlegacy/common.h #define D_NOTIF(f, a...) IL_DBG(IL_DL_NOTIF, f, ## a) f 3048 drivers/net/wireless/intel/iwlegacy/common.h #define D_ASSOC(f, a...) IL_DBG(IL_DL_ASSOC, f, ## a) f 3049 drivers/net/wireless/intel/iwlegacy/common.h #define D_HT(f, a...) IL_DBG(IL_DL_HT, f, ## a) f 3050 drivers/net/wireless/intel/iwlegacy/common.h #define D_STATS(f, a...) IL_DBG(IL_DL_STATS, f, ## a) f 3051 drivers/net/wireless/intel/iwlegacy/common.h #define D_TX_REPLY(f, a...) IL_DBG(IL_DL_TX_REPLY, f, ## a) f 3052 drivers/net/wireless/intel/iwlegacy/common.h #define D_QOS(f, a...) IL_DBG(IL_DL_QOS, f, ## a) f 3053 drivers/net/wireless/intel/iwlegacy/common.h #define D_RADIO(f, a...) IL_DBG(IL_DL_RADIO, f, ## a) f 3054 drivers/net/wireless/intel/iwlegacy/common.h #define D_POWER(f, a...) IL_DBG(IL_DL_POWER, f, ## a) f 3055 drivers/net/wireless/intel/iwlegacy/common.h #define D_11H(f, a...) IL_DBG(IL_DL_11H, f, ## a) f 38 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define CHECK_FOR_NEWLINE(f) BUILD_BUG_ON(f[sizeof(f) - 2] != '\n') f 41 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_ERR_DEV(d, f, a...) \ f 43 drivers/net/wireless/intel/iwlwifi/iwl-debug.h CHECK_FOR_NEWLINE(f); \ f 44 drivers/net/wireless/intel/iwlwifi/iwl-debug.h __iwl_err((d), false, false, f, ## a); \ f 46 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_ERR(m, f, a...) \ f 47 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_ERR_DEV((m)->dev, f, ## a) f 48 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_WARN(m, f, a...) \ f 50 drivers/net/wireless/intel/iwlwifi/iwl-debug.h CHECK_FOR_NEWLINE(f); \ f 51 drivers/net/wireless/intel/iwlwifi/iwl-debug.h __iwl_warn((m)->dev, f, ## a); \ f 53 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_INFO(m, f, a...) \ f 55 drivers/net/wireless/intel/iwlwifi/iwl-debug.h CHECK_FOR_NEWLINE(f); \ f 56 drivers/net/wireless/intel/iwlwifi/iwl-debug.h __iwl_info((m)->dev, f, ## a); \ f 58 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_CRIT(m, f, a...) \ f 60 drivers/net/wireless/intel/iwlwifi/iwl-debug.h CHECK_FOR_NEWLINE(f); \ f 61 drivers/net/wireless/intel/iwlwifi/iwl-debug.h __iwl_crit((m)->dev, f, ## a); \ f 169 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_INFO(p, f, a...) IWL_DEBUG(p, IWL_DL_INFO, f, ## a) f 170 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TDLS(p, f, a...) IWL_DEBUG(p, IWL_DL_TDLS, f, ## a) f 171 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_MAC80211(p, f, a...) IWL_DEBUG(p, IWL_DL_MAC80211, f, ## a) f 172 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_EXTERNAL(p, f, a...) IWL_DEBUG(p, IWL_DL_EXTERNAL, f, ## a) f 173 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TEMP(p, f, a...) IWL_DEBUG(p, IWL_DL_TEMP, f, ## a) f 174 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_SCAN(p, f, a...) IWL_DEBUG(p, IWL_DL_SCAN, f, ## a) f 175 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RX(p, f, a...) IWL_DEBUG(p, IWL_DL_RX, f, ## a) f 176 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TX(p, f, a...) IWL_DEBUG(p, IWL_DL_TX, f, ## a) f 177 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_ISR(p, f, a...) IWL_DEBUG(p, IWL_DL_ISR, f, ## a) f 178 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_WEP(p, f, a...) IWL_DEBUG(p, IWL_DL_WEP, f, ## a) f 179 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_HC(p, f, a...) IWL_DEBUG(p, IWL_DL_HCMD, f, ## a) f 180 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_QUOTA(p, f, a...) IWL_DEBUG(p, IWL_DL_QUOTA, f, ## a) f 181 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TE(p, f, a...) IWL_DEBUG(p, IWL_DL_TE, f, ## a) f 182 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_EEPROM(d, f, a...) IWL_DEBUG_DEV(d, IWL_DL_EEPROM, f, ## a) f 183 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_CALIB(p, f, a...) IWL_DEBUG(p, IWL_DL_CALIB, f, ## a) f 184 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_FW(p, f, a...) IWL_DEBUG(p, IWL_DL_FW, f, ## a) f 185 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RF_KILL(p, f, a...) IWL_DEBUG(p, IWL_DL_RF_KILL, f, ## a) f 186 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_DROP(p, f, a...) IWL_DEBUG(p, IWL_DL_DROP, f, ## a) f 187 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_DROP_LIMIT(p, f, a...) \ f 188 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG_LIMIT(p, IWL_DL_DROP, f, ## a) f 189 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_COEX(p, f, a...) IWL_DEBUG(p, IWL_DL_COEX, f, ## a) f 190 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RATE(p, f, a...) IWL_DEBUG(p, IWL_DL_RATE, f, ## a) f 191 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RATE_LIMIT(p, f, a...) \ f 192 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG_LIMIT(p, IWL_DL_RATE, f, ## a) f 193 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_ASSOC(p, f, a...) \ f 194 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG(p, IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) f 195 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_ASSOC_LIMIT(p, f, a...) \ f 196 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG_LIMIT(p, IWL_DL_ASSOC | IWL_DL_INFO, f, ## a) f 197 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_HT(p, f, a...) IWL_DEBUG(p, IWL_DL_HT, f, ## a) f 198 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_STATS(p, f, a...) IWL_DEBUG(p, IWL_DL_STATS, f, ## a) f 199 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_STATS_LIMIT(p, f, a...) \ f 200 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG_LIMIT(p, IWL_DL_STATS, f, ## a) f 201 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TX_REPLY(p, f, a...) IWL_DEBUG(p, IWL_DL_TX_REPLY, f, ## a) f 202 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TX_QUEUES(p, f, a...) IWL_DEBUG(p, IWL_DL_TX_QUEUES, f, ## a) f 203 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RADIO(p, f, a...) IWL_DEBUG(p, IWL_DL_RADIO, f, ## a) f 204 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_DEV_RADIO(p, f, a...) IWL_DEBUG_DEV(p, IWL_DL_RADIO, f, ## a) f 205 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_POWER(p, f, a...) IWL_DEBUG(p, IWL_DL_POWER, f, ## a) f 206 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_11H(p, f, a...) IWL_DEBUG(p, IWL_DL_11H, f, ## a) f 207 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_TPT(p, f, a...) IWL_DEBUG(p, IWL_DL_TPT, f, ## a) f 208 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_RPM(p, f, a...) IWL_DEBUG(p, IWL_DL_RPM, f, ## a) f 209 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_LAR(p, f, a...) IWL_DEBUG(p, IWL_DL_LAR, f, ## a) f 210 drivers/net/wireless/intel/iwlwifi/iwl-debug.h #define IWL_DEBUG_FW_INFO(p, f, a...) \ f 211 drivers/net/wireless/intel/iwlwifi/iwl-debug.h IWL_DEBUG(p, IWL_DL_INFO | IWL_DL_FW, f, ## a) f 140 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c #define LWNG_SETVAL(f,i,s,l,d) \ f 141 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hdr->f.did = LWNG_CAP_DID_BASE | (i << 12); \ f 142 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hdr->f.status = s; hdr->f.len = l; hdr->f.data = d f 3161 drivers/net/wireless/intersil/hostap/hostap_hw.c #define HOSTAP_TASKLET_INIT(q, f, d) \ f 3162 drivers/net/wireless/intersil/hostap/hostap_hw.c do { memset((q), 0, sizeof(*(q))); (q)->func = (f); (q)->data = (d); } \ f 18 drivers/net/wireless/intersil/prism54/islpci_mgt.h #define K_DEBUG(f, m, args...) do { if(f & m) printk(KERN_DEBUG args); } while(0) f 19 drivers/net/wireless/intersil/prism54/islpci_mgt.h #define DEBUG(f, args...) K_DEBUG(f, pc_debug, args) f 22 drivers/net/wireless/intersil/prism54/oid_mgt.c channel_of_freq(int f) f 26 drivers/net/wireless/intersil/prism54/oid_mgt.c if ((f >= 2412) && (f <= 2484)) { f 27 drivers/net/wireless/intersil/prism54/oid_mgt.c while ((c < 14) && (f != frequency_list_bg[c])) f 30 drivers/net/wireless/intersil/prism54/oid_mgt.c } else if ((f >= (int) 5000) && (f <= (int) 6000)) { f 31 drivers/net/wireless/intersil/prism54/oid_mgt.c return ( (f - 5000) / 5 ); f 853 drivers/net/wireless/marvell/libertas/debugfs.c static ssize_t lbs_debugfs_write(struct file *f, const char __user *buf, f 862 drivers/net/wireless/marvell/libertas/debugfs.c struct debug_data *d = f->private_data; f 34 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c mt76x02_ampdu_stat_open(struct inode *inode, struct file *f) f 36 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c return single_open(f, mt76x02_ampdu_stat_read, inode->i_private); f 84 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c mt76x02_dfs_stat_open(struct inode *inode, struct file *f) f 86 drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c return single_open(f, mt76x02_dfs_stat_read, inode->i_private); f 77 drivers/net/wireless/mediatek/mt7601u/debugfs.c mt7601u_ampdu_stat_open(struct inode *inode, struct file *f) f 79 drivers/net/wireless/mediatek/mt7601u/debugfs.c return single_open(f, mt7601u_ampdu_stat_read, inode->i_private); f 135 drivers/net/wireless/mediatek/mt7601u/debugfs.c mt7601u_eeprom_param_open(struct inode *inode, struct file *f) f 137 drivers/net/wireless/mediatek/mt7601u/debugfs.c return single_open(f, mt7601u_eeprom_param_read, inode->i_private); f 248 drivers/net/wireless/mediatek/mt7601u/trace.h TP_PROTO(struct mt7601u_dev *dev, struct mt7601u_rxwi *rxwi, u32 f), f 249 drivers/net/wireless/mediatek/mt7601u/trace.h TP_ARGS(dev, rxwi, f), f 258 drivers/net/wireless/mediatek/mt7601u/trace.h __entry->fce_info = f; f 334 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c unsigned long f; f 336 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c spin_lock_irqsave(&priv->rx_queue.lock, f); f 338 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c spin_unlock_irqrestore(&priv->rx_queue.lock, f); f 167 drivers/net/wireless/realtek/rtlwifi/debug.c RTL_DEBUG_IMPL_BB_SERIES(f, 0x0f00); f 521 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 acm = p_aci_aifsn->f.acm; f 311 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 acm = p_aci_aifsn->f.acm; f 305 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 acm = p_aci_aifsn->f.acm; f 514 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 acm = aifs->f.acm; f 238 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 acm = p_aci_aifsn->f.acm; f 313 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 acm = p_aci_aifsn->f.acm; f 556 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 acm = p_aci_aifsn->f.acm; f 617 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 acm = p_aci_aifsn->f.acm; f 862 drivers/net/wireless/realtek/rtlwifi/wifi.h } f; /* Field */ f 606 drivers/net/wireless/realtek/rtw88/debug.c rtw_debug_impl_bb(f, 0x0f00); f 1490 drivers/net/wireless/ti/wlcore/main.c struct wl12xx_rx_filter **f) f 1542 drivers/net/wireless/ti/wlcore/main.c *f = filter; f 1547 drivers/net/wireless/ti/wlcore/main.c *f = NULL; f 1036 drivers/net/xen-netback/netback.c int i, f; f 1078 drivers/net/xen-netback/netback.c for (f = 0; f < skb_shinfo(skb)->nr_frags; f++) f 1079 drivers/net/xen-netback/netback.c skb_frag_unref(skb, f); f 306 drivers/nfc/pn533/pn533.c struct pn533_std_frame *f = frame; f 309 drivers/nfc/pn533/pn533.c if (PN533_STD_IS_EXTENDED(f)) { f 316 drivers/nfc/pn533/pn533.c return sizeof(struct pn533_std_frame) + f->datalen + f 322 drivers/nfc/pn533/pn533.c struct pn533_std_frame *f = frame; f 325 drivers/nfc/pn533/pn533.c if (PN533_STD_IS_EXTENDED(f)) f 328 drivers/nfc/pn533/pn533.c return PN533_FRAME_CMD(f); f 46 drivers/nfc/pn533/pn533.h #define PN533_STD_FRAME_CHECKSUM(f) (f->data[f->datalen]) f 47 drivers/nfc/pn533/pn533.h #define PN533_STD_FRAME_POSTAMBLE(f) (f->data[f->datalen + 1]) f 51 drivers/nfc/pn533/pn533.h #define PN533_EXT_FRAME_CHECKSUM(f) (f->data[be16_to_cpu(f->datalen)]) f 57 drivers/nfc/pn533/pn533.h #define PN533_STD_FRAME_IDENTIFIER(f) (f->data[0]) /* TFI */ f 62 drivers/nfc/pn533/pn533.h #define PN533_FRAME_CMD(f) (f->data[1]) f 319 drivers/nfc/pn533/usb.c struct pn533_acr122_rx_frame *f = frame; f 322 drivers/nfc/pn533/usb.c return sizeof(struct pn533_acr122_rx_frame) + f->ccid.datalen; f 327 drivers/nfc/pn533/usb.c struct pn533_acr122_rx_frame *f = frame; f 329 drivers/nfc/pn533/usb.c return PN533_FRAME_CMD(f); f 48 drivers/nfc/port100.c #define PORT100_FRAME_CHECKSUM(f) (f->data[le16_to_cpu(f->datalen)]) f 49 drivers/nfc/port100.c #define PORT100_FRAME_POSTAMBLE(f) (f->data[le16_to_cpu(f->datalen) + 1]) f 57 drivers/nfc/port100.c #define PORT100_FRAME_DIRECTION(f) (f->data[0]) /* CC */ f 62 drivers/nfc/port100.c #define PORT100_FRAME_CMD(f) (f->data[1]) /* SCC */ f 600 drivers/nfc/port100.c struct port100_frame *f = frame; f 602 drivers/nfc/port100.c return sizeof(struct port100_frame) + le16_to_cpu(f->datalen) + f 608 drivers/nfc/port100.c struct port100_frame *f = frame; f 610 drivers/nfc/port100.c return (PORT100_FRAME_CMD(f) == PORT100_CMD_RESPONSE(dev->cmd->code)); f 93 drivers/nvme/target/io-cmd-file.c struct kiocb *iocb = &req->f.iocb; f 108 drivers/nvme/target/io-cmd-file.c iov_iter_bvec(&iter, rw, req->f.bvec, nr_segs, count); f 119 drivers/nvme/target/io-cmd-file.c struct nvmet_req *req = container_of(iocb, struct nvmet_req, f.iocb); f 122 drivers/nvme/target/io-cmd-file.c if (req->f.bvec != req->inline_bvec) { f 123 drivers/nvme/target/io-cmd-file.c if (likely(req->f.mpool_alloc == false)) f 124 drivers/nvme/target/io-cmd-file.c kfree(req->f.bvec); f 126 drivers/nvme/target/io-cmd-file.c mempool_free(req->f.bvec, req->ns->bvec_pool); f 145 drivers/nvme/target/io-cmd-file.c if (req->f.mpool_alloc && nr_bvec > NVMET_MAX_MPOOL_BVEC) f 154 drivers/nvme/target/io-cmd-file.c memset(&req->f.iocb, 0, sizeof(struct kiocb)); f 156 drivers/nvme/target/io-cmd-file.c nvmet_file_init_bvec(&req->f.bvec[bv_cnt], sg); f 157 drivers/nvme/target/io-cmd-file.c len += req->f.bvec[bv_cnt].bv_len; f 158 drivers/nvme/target/io-cmd-file.c total_len += req->f.bvec[bv_cnt].bv_len; f 191 drivers/nvme/target/io-cmd-file.c req->f.iocb.ki_complete = nvmet_file_io_done; f 214 drivers/nvme/target/io-cmd-file.c nvmet_file_io_done(&req->f.iocb, ret, 0); f 220 drivers/nvme/target/io-cmd-file.c struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); f 227 drivers/nvme/target/io-cmd-file.c INIT_WORK(&req->f.work, nvmet_file_buffered_io_work); f 228 drivers/nvme/target/io-cmd-file.c queue_work(buffered_io_wq, &req->f.work); f 241 drivers/nvme/target/io-cmd-file.c req->f.bvec = kmalloc_array(nr_bvec, sizeof(struct bio_vec), f 244 drivers/nvme/target/io-cmd-file.c req->f.bvec = req->inline_bvec; f 246 drivers/nvme/target/io-cmd-file.c if (unlikely(!req->f.bvec)) { f 248 drivers/nvme/target/io-cmd-file.c req->f.bvec = mempool_alloc(req->ns->bvec_pool, GFP_KERNEL); f 249 drivers/nvme/target/io-cmd-file.c req->f.mpool_alloc = true; f 251 drivers/nvme/target/io-cmd-file.c req->f.mpool_alloc = false; f 254 drivers/nvme/target/io-cmd-file.c if (likely(!req->f.mpool_alloc) && f 269 drivers/nvme/target/io-cmd-file.c struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); f 276 drivers/nvme/target/io-cmd-file.c INIT_WORK(&req->f.work, nvmet_file_flush_work); f 277 drivers/nvme/target/io-cmd-file.c schedule_work(&req->f.work); f 317 drivers/nvme/target/io-cmd-file.c struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); f 334 drivers/nvme/target/io-cmd-file.c INIT_WORK(&req->f.work, nvmet_file_dsm_work); f 335 drivers/nvme/target/io-cmd-file.c schedule_work(&req->f.work); f 340 drivers/nvme/target/io-cmd-file.c struct nvmet_req *req = container_of(w, struct nvmet_req, f.work); f 362 drivers/nvme/target/io-cmd-file.c INIT_WORK(&req->f.work, nvmet_file_write_zeroes_work); f 363 drivers/nvme/target/io-cmd-file.c schedule_work(&req->f.work); f 304 drivers/nvme/target/nvmet.h } f; f 302 drivers/parport/parport_gsc.c #define printmode(x) {if(p->modes&PARPORT_MODE_##x){pr_cont("%s%s",f?",":"",#x);f++;}} f 304 drivers/parport/parport_gsc.c int f = 0; f 402 drivers/parport/parport_ip32.c #define sep (f++ ? ',' : ' ') f 404 drivers/parport/parport_ip32.c unsigned int f = 0; f 2143 drivers/parport/parport_ip32.c printk("%s%s", f++ ? "," : "", #x) f 2145 drivers/parport/parport_ip32.c unsigned int f = 0; f 2161 drivers/parport/parport_pc.c printk(KERN_CONT "%s%s", f ? "," : "", #x);\ f 2162 drivers/parport/parport_pc.c f++;\ f 2167 drivers/parport/parport_pc.c int f = 0; f 216 drivers/parport/procfs.c #define printmode(x) {if(port->modes&PARPORT_MODE_##x){len+=sprintf(buffer+len,"%s%s",f?",":"",#x);f++;}} f 217 drivers/parport/procfs.c int f = 0; f 64 drivers/parport/share.c static size_t dead_write(struct parport *p, const void *b, size_t l, int f) f 66 drivers/parport/share.c static size_t dead_read(struct parport *p, void *b, size_t l, int f) f 28 drivers/pci/access.c # define pci_lock_config(f) do { (void)(f); } while (0) f 29 drivers/pci/access.c # define pci_unlock_config(f) do { (void)(f); } while (0) f 31 drivers/pci/access.c # define pci_lock_config(f) raw_spin_lock_irqsave(&pci_lock, f) f 32 drivers/pci/access.c # define pci_unlock_config(f) raw_spin_unlock_irqrestore(&pci_lock, f) f 111 drivers/pci/controller/pci-ftpci100.c #define PCI_CONF_FUNCTION(f) (((f) & 0x07) << 8) f 49 drivers/pci/controller/pci-mvebu.c #define PCIE_CONF_FUNC(f) (((f) & 0x7) << 8) f 122 drivers/pci/controller/pci-xgene.c unsigned int b, d, f; f 127 drivers/pci/controller/pci-xgene.c f = PCI_FUNC(devfn); f 130 drivers/pci/controller/pci-xgene.c rtdid_val = (b << 8) | (d << 3) | f; f 129 drivers/pci/controller/pcie-rcar.c #define PCIE_CONF_FUNC(f) (((f) & 0x7) << 16) f 56 drivers/pci/quirks.c static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, f 61 drivers/pci/quirks.c for (; f < end; f++) f 62 drivers/pci/quirks.c if ((f->class == (u32) (dev->class >> f->class_shift) || f 63 drivers/pci/quirks.c f->class == (u32) PCI_ANY_ID) && f 64 drivers/pci/quirks.c (f->vendor == dev->vendor || f 65 drivers/pci/quirks.c f->vendor == (u16) PCI_ANY_ID) && f 66 drivers/pci/quirks.c (f->device == dev->device || f 67 drivers/pci/quirks.c f->device == (u16) PCI_ANY_ID)) { f 70 drivers/pci/quirks.c hook = offset_to_ptr(&f->hook_offset); f 72 drivers/pci/quirks.c hook = f->hook; f 440 drivers/pcmcia/cistpl.c #define LINK_SPACE(f) (((struct tuple_flags *)(&(f)))->link_space) f 441 drivers/pcmcia/cistpl.c #define HAS_LINK(f) (((struct tuple_flags *)(&(f)))->has_link) f 442 drivers/pcmcia/cistpl.c #define MFC_FN(f) (((struct tuple_flags *)(&(f)))->mfc_fn) f 443 drivers/pcmcia/cistpl.c #define SPACE(f) (((struct tuple_flags *)(&(f)))->space) f 851 drivers/pcmcia/cistpl.c static int parse_funcid(tuple_t *tuple, cistpl_funcid_t *f) f 857 drivers/pcmcia/cistpl.c f->func = p[0]; f 858 drivers/pcmcia/cistpl.c f->sysinit = p[1]; f 863 drivers/pcmcia/cistpl.c static int parse_funce(tuple_t *tuple, cistpl_funce_t *f) f 870 drivers/pcmcia/cistpl.c f->type = p[0]; f 872 drivers/pcmcia/cistpl.c f->data[i-1] = p[i]; f 168 drivers/pcmcia/i82365.c #define ISA_LOCK(n, f) spin_lock_irqsave(&isa_lock, f) f 169 drivers/pcmcia/i82365.c #define ISA_UNLOCK(n, f) spin_unlock_irqrestore(&isa_lock, f) f 292 drivers/pcmcia/i82365.c #define flip(v,b,f) (v = ((f)<0) ? v : ((f) ? ((v)|(b)) : ((v)&(~b)))) f 1064 drivers/pinctrl/bcm/pinctrl-bcm281xx.c const struct bcm281xx_pin_function *f = &pdata->functions[function]; f 1070 drivers/pinctrl/bcm/pinctrl-bcm281xx.c __func__, f->name, function, pdata->pins[group].name, f 401 drivers/pinctrl/freescale/pinctrl-mxs.c struct mxs_function *f; f 444 drivers/pinctrl/freescale/pinctrl-mxs.c f = &soc->functions[idxf]; f 476 drivers/pinctrl/freescale/pinctrl-mxs.c f = &soc->functions[idxf++]; f 477 drivers/pinctrl/freescale/pinctrl-mxs.c f->name = fn = child->name; f 479 drivers/pinctrl/freescale/pinctrl-mxs.c f->ngroups++; f 499 drivers/pinctrl/freescale/pinctrl-mxs.c f = &soc->functions[idxf++]; f 500 drivers/pinctrl/freescale/pinctrl-mxs.c f->groups = devm_kcalloc(&pdev->dev, f 501 drivers/pinctrl/freescale/pinctrl-mxs.c f->ngroups, f 502 drivers/pinctrl/freescale/pinctrl-mxs.c sizeof(*f->groups), f 504 drivers/pinctrl/freescale/pinctrl-mxs.c if (!f->groups) { f 512 drivers/pinctrl/freescale/pinctrl-mxs.c &f->groups[i++]); f 436 drivers/pinctrl/intel/pinctrl-merrifield.c #define pin_to_bufno(f, p) ((p) - (f)->pin_base) f 24 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h #define BANK_PMX(n, f, l, r, o) \ f 27 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h .first = f, \ f 37 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h #define PMX_DATA(f) \ f 39 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h .func = f, \ f 42 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h #define GROUP(grp, f) \ f 48 drivers/pinctrl/meson/pinctrl-meson-axg-pmx.h PMX_DATA(f), \ f 140 drivers/pinctrl/meson/pinctrl-meson.h #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ f 144 drivers/pinctrl/meson/pinctrl-meson.h .first = f, \ f 158 drivers/pinctrl/meson/pinctrl-meson.h #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ f 159 drivers/pinctrl/meson/pinctrl-meson.h BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0) f 873 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c int i, j, f; f 888 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c for (f = 0; (f < NB_FUNCS) && grp->funcs[f]; f++) { f 892 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c grp->funcs[f]); f 939 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c int f; f 941 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c f = match_string(gp->funcs, NB_FUNCS, name); f 942 drivers/pinctrl/mvebu/pinctrl-armada-37xx.c if (f < 0) f 536 drivers/pinctrl/mvebu/pinctrl-mvebu.c struct mvebu_pinctrl_function *f; f 544 drivers/pinctrl/mvebu/pinctrl-mvebu.c f = mvebu_pinctrl_find_function_by_name(pctl, f 548 drivers/pinctrl/mvebu/pinctrl-mvebu.c if (!f->groups) { f 549 drivers/pinctrl/mvebu/pinctrl-mvebu.c f->groups = devm_kcalloc(&pdev->dev, f 550 drivers/pinctrl/mvebu/pinctrl-mvebu.c f->num_groups, f 553 drivers/pinctrl/mvebu/pinctrl-mvebu.c if (!f->groups) f 558 drivers/pinctrl/mvebu/pinctrl-mvebu.c groups = f->groups; f 897 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c #define NPCM7XX_PINCFG(a, b, c, d, e, f, g, h, i, j, k) \ f 899 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c .fn1 = fn_ ## e, .reg1 = NPCM7XX_GCR_ ## f, .bit1 = g, \ f 400 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,0, SSP0, CLKIN, R, R, R, R, R, I2S1, 0, ND); f 401 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,1, R, R, SSP0, R, GPIO, R, SGPIO, R, 0, ND); f 402 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,2, R, UART3, SSP0, R, GPIO, R, SGPIO, R, 0, ND); f 403 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,3, R, UART3, SSP0, R, GPIO, R, SGPIO, R, 0, ND); f 404 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,4, SSP1, CLKIN, TRACE, R, R, R, I2S0_TX_MCLK,I2S0_RX_SCK, 0, ND); f 405 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,5, R, UART3, SSP1, TRACE, GPIO, R, SGPIO, R, ADC1|4, ND); f 406 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,6, R, UART3, SSP1, TRACE, GPIO, R, SGPIO, I2S1, ADC1|3, ND); f 407 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,7, R, UART3, SSP1, TRACE, GPIO, R, SGPIO, I2S1, ADC1|7, ND); f 408 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,8, R, UART0, CTIN, TRACE, GPIO, R, SGPIO, R, ADC0|2, ND); f 409 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,9, R, UART0, CTOUT, R, GPIO, R, SGPIO, R, ADC1|2, ND); f 410 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,10, R, UART0, R, R, GPIO, R, SDMMC, R, ADC0|5, ND); f 411 drivers/pinctrl/pinctrl-lpc18xx.c LPC_P(f,11, R, UART0, R, R, GPIO, R, SDMMC, R, ADC1|5, ND); f 610 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,0), f 611 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,1), f 612 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,2), f 613 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,3), f 614 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,4), f 615 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,5), f 616 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,6), f 617 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,7), f 618 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,8), f 619 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,9), f 620 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,10), f 621 drivers/pinctrl/pinctrl-lpc18xx.c LPC18XX_PIN_P(f,11), f 407 drivers/pinctrl/pinctrl-ocelot.c int f; f 409 drivers/pinctrl/pinctrl-ocelot.c f = ocelot_pin_function_idx(info, group, selector); f 410 drivers/pinctrl/pinctrl-ocelot.c if (f < 0) f 421 drivers/pinctrl/pinctrl-ocelot.c BIT(p), f << p); f 423 drivers/pinctrl/pinctrl-ocelot.c BIT(p), f << (p - 1)); f 524 drivers/pinctrl/pinctrl-ocelot.c int f, npins, i; f 530 drivers/pinctrl/pinctrl-ocelot.c for (f = 0; f < FUNC_MAX; f++) { f 532 drivers/pinctrl/pinctrl-ocelot.c if (ocelot_pin_function_idx(info, i, f) >= 0) f 539 drivers/pinctrl/pinctrl-ocelot.c info->func[f].ngroups = npins; f 540 drivers/pinctrl/pinctrl-ocelot.c info->func[f].groups = devm_kcalloc(dev, npins, sizeof(char *), f 542 drivers/pinctrl/pinctrl-ocelot.c if (!info->func[f].groups) { f 548 drivers/pinctrl/pinctrl-ocelot.c info->func[f].groups[i] = info->desc->pins[pins[i]].name; f 998 drivers/pinctrl/pinctrl-st.c char f[16]; f 1007 drivers/pinctrl/pinctrl-st.c snprintf(f, 10, "Alt Fn %u", function); f 1009 drivers/pinctrl/pinctrl-st.c snprintf(f, 5, "GPIO"); f 1017 drivers/pinctrl/pinctrl-st.c f, f 78 drivers/pinctrl/pinctrl-xway.c #define FUNC_MUX(f, m) \ f 79 drivers/pinctrl/pinctrl-xway.c { .func = f, .mux = XWAY_MUX_##m, } f 80 drivers/pinctrl/samsung/pinctrl-samsung.h #define PIN_GROUP(n, p, f) \ f 85 drivers/pinctrl/samsung/pinctrl-samsung.h .func = f \ f 245 drivers/pinctrl/sirf/pinctrl-atlas7.c #define MUX(b, pad, f, dr, db, dvr, dvb) \ f 249 drivers/pinctrl/sirf/pinctrl-atlas7.c .func = f, \ f 152 drivers/pinctrl/uniphier/pinctrl-uniphier.h #define UNIPHIER_PINCTRL_PIN(a, b, c, d, e, f, g) \ f 156 drivers/pinctrl/uniphier/pinctrl-uniphier.h .drv_data = (void *)UNIPHIER_PIN_ATTR_PACKED(c, d, e, f, g), \ f 569 drivers/platform/x86/intel_speed_select_if/isst_if_common.c static int isst_if_relase(struct inode *inode, struct file *f) f 456 drivers/pnp/quirks.c struct pnp_fixup *f; f 458 drivers/pnp/quirks.c for (f = pnp_fixups; *f->id; f++) { f 459 drivers/pnp/quirks.c if (!compare_pnp_id(dev->id, f->id)) f 461 drivers/pnp/quirks.c pnp_dbg(&dev->dev, "%s: calling %pS\n", f->id, f 462 drivers/pnp/quirks.c f->quirk_function); f 463 drivers/pnp/quirks.c f->quirk_function(dev); f 331 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD(_name, r, f, m, store) \ f 335 drivers/power/supply/bq24190_charger.c .mask = BQ24190_REG_##r##_##f##_MASK, \ f 336 drivers/power/supply/bq24190_charger.c .shift = BQ24190_REG_##r##_##f##_SHIFT, \ f 339 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD_RW(_name, r, f) \ f 340 drivers/power/supply/bq24190_charger.c BQ24190_SYSFS_FIELD(_name, r, f, S_IWUSR | S_IRUGO, \ f 343 drivers/power/supply/bq24190_charger.c #define BQ24190_SYSFS_FIELD_RO(_name, r, f) \ f 344 drivers/power/supply/bq24190_charger.c BQ24190_SYSFS_FIELD(_name, r, f, S_IRUGO, NULL) f 121 drivers/powercap/intel_rapl_common.c #define PRIMITIVE_INFO_INIT(p, m, s, i, u, f) { \ f 127 drivers/powercap/intel_rapl_common.c .flag = f \ f 877 drivers/powercap/intel_rapl_common.c u64 f, y; /* fraction and exp. used for time unit */ f 884 drivers/powercap/intel_rapl_common.c f = (value & 0x60) >> 5; f 886 drivers/powercap/intel_rapl_common.c value = (1 << y) * (4 + f) * rp->time_unit / 4; f 890 drivers/powercap/intel_rapl_common.c f = div64_u64(4 * (value - (1 << y)), 1 << y); f 891 drivers/powercap/intel_rapl_common.c value = (y & 0x1f) | ((f & 0x3) << 5); f 162 drivers/reset/sti/reset-syscfg.c struct regmap_field *f; f 169 drivers/reset/sti/reset-syscfg.c f = devm_regmap_field_alloc(dev, map, data->channels[i].reset); f 170 drivers/reset/sti/reset-syscfg.c if (IS_ERR(f)) f 171 drivers/reset/sti/reset-syscfg.c return PTR_ERR(f); f 173 drivers/reset/sti/reset-syscfg.c rc->channels[i].reset = f; f 178 drivers/reset/sti/reset-syscfg.c f = devm_regmap_field_alloc(dev, map, data->channels[i].ack); f 179 drivers/reset/sti/reset-syscfg.c if (IS_ERR(f)) f 180 drivers/reset/sti/reset-syscfg.c return PTR_ERR(f); f 182 drivers/reset/sti/reset-syscfg.c rc->channels[i].ack = f; f 962 drivers/rtc/interface.c void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r), f 967 drivers/rtc/interface.c timer->func = f; f 39 drivers/s390/cio/chsc.h u8 f:1; f 663 drivers/s390/cio/device_ops.c if (!chp->desc_fmt1.f) { f 34 drivers/s390/net/ctcm_main.h #define CHANNEL_DIRECTION(f) (f & CHANNEL_FLAGS_RWMASK) f 23 drivers/s390/net/fsm.c fsm *f; f 34 drivers/s390/net/fsm.c f = kzalloc(sizeof(fsm), order); f 35 drivers/s390/net/fsm.c if (f == NULL) { f 41 drivers/s390/net/fsm.c f->nr_events = nr_events; f 42 drivers/s390/net/fsm.c f->nr_states = nr_states; f 43 drivers/s390/net/fsm.c f->event_names = event_names; f 44 drivers/s390/net/fsm.c f->state_names = state_names; f 45 drivers/s390/net/fsm.c this->f = f; f 54 drivers/s390/net/fsm.c f->jumpmatrix = m; f 61 drivers/s390/net/fsm.c name, i, (long)tmpl[i].cond_state, (long)f->nr_states, f 62 drivers/s390/net/fsm.c (long)tmpl[i].cond_event, (long)f->nr_events); f 76 drivers/s390/net/fsm.c if (this->f) { f 77 drivers/s390/net/fsm.c kfree(this->f->jumpmatrix); f 78 drivers/s390/net/fsm.c kfree(this->f); f 103 drivers/s390/net/fsm.c fi->f->state_names[s]); f 106 drivers/s390/net/fsm.c fi->f->state_names[s], f 107 drivers/s390/net/fsm.c fi->f->event_names[e]); f 127 drivers/s390/net/fsm.c if (st >= fi->f->nr_states) f 129 drivers/s390/net/fsm.c return fi->f->state_names[st]; f 65 drivers/s390/net/fsm.h fsm *f; f 149 drivers/s390/net/fsm.h if ((state >= fi->f->nr_states) || f 150 drivers/s390/net/fsm.h (event >= fi->f->nr_events) ) { f 152 drivers/s390/net/fsm.h fi->name, (long)state,(long)fi->f->nr_states, event, f 153 drivers/s390/net/fsm.h (long)fi->f->nr_events); f 159 drivers/s390/net/fsm.h r = fi->f->jumpmatrix[fi->f->nr_states * event + state]; f 163 drivers/s390/net/fsm.h fi->name, fi->f->state_names[state], f 164 drivers/s390/net/fsm.h fi->f->event_names[event]); f 174 drivers/s390/net/fsm.h fi->name, fi->f->event_names[event], f 175 drivers/s390/net/fsm.h fi->f->state_names[state]); f 200 drivers/s390/net/fsm.h fi->f->state_names[newstate]); f 190 drivers/s390/net/qeth_core.h #define qeth_adp_supported(c, f) \ f 191 drivers/s390/net/qeth_core.h qeth_is_adp_supported(&c->options.adp, f) f 192 drivers/s390/net/qeth_core.h #define qeth_is_supported(c, f) \ f 193 drivers/s390/net/qeth_core.h qeth_is_ipa_supported(&c->options.ipa4, f) f 194 drivers/s390/net/qeth_core.h #define qeth_is_enabled(c, f) \ f 195 drivers/s390/net/qeth_core.h qeth_is_ipa_enabled(&c->options.ipa4, f) f 196 drivers/s390/net/qeth_core.h #define qeth_is_supported6(c, f) \ f 197 drivers/s390/net/qeth_core.h qeth_is_ipa_supported(&c->options.ipa6, f) f 198 drivers/s390/net/qeth_core.h #define qeth_is_enabled6(c, f) \ f 199 drivers/s390/net/qeth_core.h qeth_is_ipa_enabled(&c->options.ipa6, f) f 200 drivers/s390/net/qeth_core.h #define qeth_is_ipafunc_supported(c, prot, f) \ f 202 drivers/s390/net/qeth_core.h qeth_is_supported6(c, f) : qeth_is_supported(c, f)) f 203 drivers/s390/net/qeth_core.h #define qeth_is_ipafunc_enabled(c, prot, f) \ f 205 drivers/s390/net/qeth_core.h qeth_is_enabled6(c, f) : qeth_is_enabled(c, f)) f 409 drivers/s390/net/qeth_core_main.c struct qeth_qdio_out_buffer *f = c; f 410 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT(f->q->card, 5, "fp"); f 411 drivers/s390/net/qeth_core_main.c QETH_CARD_TEXT_(f->q->card, 5, "%lx", (long) f); f 417 drivers/s390/net/qeth_core_main.c c = f->next_pending; f 418 drivers/s390/net/qeth_core_main.c WARN_ON_ONCE(head->next_pending != f); f 420 drivers/s390/net/qeth_core_main.c kmem_cache_free(qeth_qdio_outbuf_cache, f); f 199 drivers/s390/scsi/zfcp_reqlist.h void (*f)(struct zfcp_fsf_req *, void *), void *data) f 208 drivers/s390/scsi/zfcp_reqlist.h f(req, data); f 74 drivers/sbus/char/display7seg.c static int d7s_open(struct inode *inode, struct file *f) f 82 drivers/sbus/char/display7seg.c static int d7s_release(struct inode *inode, struct file *f) f 211 drivers/sbus/char/oradax.c static int dax_devmap(struct file *f, struct vm_area_struct *vma); f 212 drivers/sbus/char/oradax.c static int dax_close(struct inode *i, struct file *f); f 372 drivers/sbus/char/oradax.c static int dax_devmap(struct file *f, struct vm_area_struct *vma) f 374 drivers/sbus/char/oradax.c struct dax_ctx *ctx = (struct dax_ctx *)f->private_data; f 524 drivers/sbus/char/oradax.c static int dax_close(struct inode *ino, struct file *f) f 526 drivers/sbus/char/oradax.c struct dax_ctx *ctx = (struct dax_ctx *)f->private_data; f 529 drivers/sbus/char/oradax.c f->private_data = NULL; f 547 drivers/sbus/char/oradax.c static ssize_t dax_read(struct file *f, char __user *buf, f 550 drivers/sbus/char/oradax.c struct dax_ctx *ctx = f->private_data; f 564 drivers/sbus/char/oradax.c static ssize_t dax_write(struct file *f, const char __user *buf, f 567 drivers/sbus/char/oradax.c struct dax_ctx *ctx = f->private_data; f 644 drivers/sbus/char/oradax.c static int dax_open(struct inode *inode, struct file *f) f 674 drivers/sbus/char/oradax.c f->private_data = ctx; f 240 drivers/scsi/aacraid/commctrl.c struct fib_ioctl f; f 247 drivers/scsi/aacraid/commctrl.c if(copy_from_user((void *)&f, arg, sizeof(struct fib_ioctl))) f 264 drivers/scsi/aacraid/commctrl.c if (fibctx->unique == f.fibctx) { /* We found a winner */ f 298 drivers/scsi/aacraid/commctrl.c if (copy_to_user(f.fib, fib->hw_fib_va, sizeof(struct hw_fib))) { f 322 drivers/scsi/aacraid/commctrl.c if (f.wait) { f 1178 drivers/scsi/aacraid/linit.c struct fib_ioctl __user *f; f 1180 drivers/scsi/aacraid/linit.c f = compat_alloc_user_space(sizeof(*f)); f 1182 drivers/scsi/aacraid/linit.c if (clear_user(f, sizeof(*f))) f 1184 drivers/scsi/aacraid/linit.c if (copy_in_user(f, (void __user *)arg, sizeof(struct fib_ioctl) - sizeof(u32))) f 1187 drivers/scsi/aacraid/linit.c ret = aac_do_ioctl(dev, cmd, f); f 2442 drivers/scsi/advansys.c static void asc_prt_hex(char *f, uchar *s, int l) f 2449 drivers/scsi/advansys.c printk("%s: (%d bytes)\n", f, l); f 24 drivers/scsi/am53c974.c #define esp_dma_log(f, a...) \ f 27 drivers/scsi/am53c974.c shost_printk(KERN_DEBUG, esp->host, f, ##a); \ f 307 drivers/scsi/bfa/bfa_cs.h } f; f 309 drivers/scsi/bfa/bfa_cs.h f.fcid = fcid; f 310 drivers/scsi/bfa/bfa_cs.h sprintf(fcid_str, "%02x:%02x:%02x", f.byte[1], f.byte[2], f.byte[3]); f 4372 drivers/scsi/bfa/bfa_ioc.c struct bfa_flash_attr_s *attr, *f; f 4375 drivers/scsi/bfa/bfa_ioc.c f = (struct bfa_flash_attr_s *) flash->dbuf_kva; f 4376 drivers/scsi/bfa/bfa_ioc.c attr->status = be32_to_cpu(f->status); f 4377 drivers/scsi/bfa/bfa_ioc.c attr->npart = be32_to_cpu(f->npart); f 4382 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_type); f 4384 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_instance); f 4386 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_off); f 4388 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_size); f 4390 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_len); f 4392 drivers/scsi/bfa/bfa_ioc.c be32_to_cpu(f->part[i].part_status); f 258 drivers/scsi/device_handler/scsi_dh_rdac.c #define RDAC_LOG(SHIFT, sdev, f, arg...) \ f 261 drivers/scsi/device_handler/scsi_dh_rdac.c sdev_printk(KERN_INFO, sdev, RDAC_NAME ": " f "\n", ## arg); \ f 81 drivers/scsi/esas2r/esas2r_log.h #define esas2r_debug(f, args ...) esas2r_log(ESAS2R_LOG_DEBG, f, ## args) f 82 drivers/scsi/esas2r/esas2r_log.h #define esas2r_hdebug(f, args ...) esas2r_log(ESAS2R_LOG_DEBG, f, ## args) f 84 drivers/scsi/esas2r/esas2r_log.h #define esas2r_debug(f, args ...) f 85 drivers/scsi/esas2r/esas2r_log.h #define esas2r_hdebug(f, args ...) f 108 drivers/scsi/esas2r/esas2r_log.h #define esas2r_trace(f, args ...) esas2r_log(ESAS2R_LOG_TRCE, "(%s:%s:%d): " \ f 109 drivers/scsi/esas2r/esas2r_log.h f, __func__, __FILE__, __LINE__, \ f 115 drivers/scsi/esas2r/esas2r_log.h #define esas2r_trace(f, args ...) f 56 drivers/scsi/esp_scsi.c #define esp_log_intr(f, a...) \ f 58 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 61 drivers/scsi/esp_scsi.c #define esp_log_reset(f, a...) \ f 63 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 66 drivers/scsi/esp_scsi.c #define esp_log_msgin(f, a...) \ f 68 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 71 drivers/scsi/esp_scsi.c #define esp_log_msgout(f, a...) \ f 73 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 76 drivers/scsi/esp_scsi.c #define esp_log_cmddone(f, a...) \ f 78 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 81 drivers/scsi/esp_scsi.c #define esp_log_disconnect(f, a...) \ f 83 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 86 drivers/scsi/esp_scsi.c #define esp_log_datastart(f, a...) \ f 88 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 91 drivers/scsi/esp_scsi.c #define esp_log_datadone(f, a...) \ f 93 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 96 drivers/scsi/esp_scsi.c #define esp_log_reconnect(f, a...) \ f 98 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 101 drivers/scsi/esp_scsi.c #define esp_log_autosense(f, a...) \ f 103 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 106 drivers/scsi/esp_scsi.c #define esp_log_event(f, a...) \ f 108 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 111 drivers/scsi/esp_scsi.c #define esp_log_command(f, a...) \ f 113 drivers/scsi/esp_scsi.c shost_printk(KERN_DEBUG, esp->host, f, ## a); \ f 142 drivers/scsi/fcoe/fcoe_sysfs.c if (ctlr->f->get_fcoe_ctlr_##field) \ f 143 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->f->get_fcoe_ctlr_##field(ctlr); \ f 155 drivers/scsi/fcoe/fcoe_sysfs.c if (ctlr->f->get_fcoe_fcf_##field) \ f 156 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->f->get_fcoe_fcf_##field(fcf); \ f 294 drivers/scsi/fcoe/fcoe_sysfs.c if (!ctlr->f->set_fcoe_ctlr_mode) { f 307 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->f->set_fcoe_ctlr_mode(ctlr); f 351 drivers/scsi/fcoe/fcoe_sysfs.c rc = ctlr->f->set_fcoe_ctlr_enabled(ctlr); f 794 drivers/scsi/fcoe/fcoe_sysfs.c struct fcoe_sysfs_function_template *f, f 806 drivers/scsi/fcoe/fcoe_sysfs.c ctlr->f = f; f 3070 drivers/scsi/gdth.c char *f = NULL; f 3086 drivers/scsi/gdth.c f = async_cache_tab[dvr->eu.async.status]; f 3089 drivers/scsi/gdth.c for (j=0,i=1; i < f[0]; i+=2) { f 3090 drivers/scsi/gdth.c switch (f[i+1]) { f 3092 drivers/scsi/gdth.c stack.b[j++] = *(u32*)&dvr->eu.stream[(int)f[i]]; f 3095 drivers/scsi/gdth.c stack.b[j++] = *(u16*)&dvr->eu.stream[(int)f[i]]; f 3098 drivers/scsi/gdth.c stack.b[j++] = *(u8*)&dvr->eu.stream[(int)f[i]]; f 3106 drivers/scsi/gdth.c printk(&f[(int)f[0]],stack); f 3109 drivers/scsi/gdth.c sprintf(buffer,&f[(int)f[0]],stack); f 201 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 203 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 206 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeSize = (uint16_t) f 209 drivers/scsi/lpfc/lpfc_bsg.c bytes_left -= bpl->tus.f.bdeSize; f 943 drivers/scsi/lpfc/lpfc_bsg.c piocbq->iocb.un.cont64[0].tus.f.bdeSize == 0) f 991 drivers/scsi/lpfc/lpfc_bsg.c iocbq->iocb.un.cont64[i].tus.f.bdeSize; f 1020 drivers/scsi/lpfc/lpfc_bsg.c size = hbqe->bde.tus.f.bdeSize; f 1026 drivers/scsi/lpfc/lpfc_bsg.c size = hbqe->bde.tus.f.bdeSize; f 1033 drivers/scsi/lpfc/lpfc_bsg.c tus.f.bdeSize; f 2691 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeFlags = 0; f 2692 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeSize = ELX_LOOPBACK_HEADER_SZ; f 2918 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeFlags = 0; f 2921 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 2927 drivers/scsi/lpfc/lpfc_bsg.c bpl->tus.f.bdeSize = (ushort) cnt; f 3008 drivers/scsi/lpfc/lpfc_bsg.c cmd->un.quexri64cx.buff.bde.tus.f.bdeSize = f 3020 drivers/scsi/lpfc/lpfc_bsg.c cmd->un.cont64[i].tus.f.bdeSize = f 4869 drivers/scsi/lpfc/lpfc_bsg.c + pmb->un.varBIUdiag.un.s2.xmit_bde64.tus.f.bdeSize); f 4872 drivers/scsi/lpfc/lpfc_bsg.c + pmb->un.varBIUdiag.un.s2.xmit_bde64.tus.f.bdeSize); f 4875 drivers/scsi/lpfc/lpfc_bsg.c receive_length = rdEventLog->rcv_bde64.tus.f.bdeSize; f 4920 drivers/scsi/lpfc/lpfc_bsg.c if (bde->tus.f.bdeSize > f 146 drivers/scsi/lpfc/lpfc_ct.c size = icmd->un.cont64[0].tus.f.bdeSize; f 152 drivers/scsi/lpfc/lpfc_ct.c size = icmd->unsli3.rcvsli3.bde2.tus.f.bdeSize; f 171 drivers/scsi/lpfc/lpfc_ct.c size = icmd->un.cont64[i].tus.f.bdeSize; f 258 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 262 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = (uint16_t) cnt; f 1620 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeFlags = 0; f 1622 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = GID_REQUEST_SZ; f 1624 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = GID_REQUEST_SZ; f 1626 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = GFF_REQUEST_SZ; f 1628 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = GFT_REQUEST_SZ; f 1630 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = RFT_REQUEST_SZ; f 1632 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = RNN_REQUEST_SZ; f 1634 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = RSPN_REQUEST_SZ; f 1636 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = RSNN_REQUEST_SZ; f 1638 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = DA_ID_REQUEST_SZ; f 1640 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = RFF_REQUEST_SZ; f 1642 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = 0; f 3217 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeFlags = 0; f 3218 drivers/scsi/lpfc/lpfc_ct.c bpl->tus.f.bdeSize = size; f 290 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeSize = cmdSize; f 291 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeFlags = 0; f 298 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeSize = FCELSSIZE; f 299 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 5795 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeSize = len; f 5796 drivers/scsi/lpfc/lpfc_els.c bpl->tus.f.bdeFlags = 0; f 3181 drivers/scsi/lpfc/lpfc_hbadisc.c i = la->lilpBde64.tus.f.bdeSize; f 2811 drivers/scsi/lpfc/lpfc_hw.h } f; f 247 drivers/scsi/lpfc/lpfc_hw4.h } f; f 2602 drivers/scsi/lpfc/lpfc_init.c icmd->un.cont64[0].tus.f.bdeSize = FCELSSIZE; f 2608 drivers/scsi/lpfc/lpfc_init.c icmd->un.cont64[1].tus.f.bdeSize = FCELSSIZE; f 300 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varReadTop.lilpBde64.tus.f.bdeSize = LPFC_ALPA_MAP_SIZE; f 627 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRdSparm.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); f 789 drivers/scsi/lpfc/lpfc_mbox.c mb->un.varRegLogin.un.sp64.tus.f.bdeSize = sizeof (struct serv_parm); f 2169 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi->bde.tus.f.bdeSize = sizeof(vport->fc_sparam); f 2170 drivers/scsi/lpfc/lpfc_mbox.c reg_vfi->bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 462 drivers/scsi/lpfc/lpfc_nvme.c if (bde.tus.f.bdeFlags != BUFF_TYPE_BDE_64) f 464 drivers/scsi/lpfc/lpfc_nvme.c xmit_len += bde.tus.f.bdeSize; f 473 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 474 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeSize = first_len; f 640 drivers/scsi/lpfc/lpfc_nvme.c bpl->tus.f.bdeFlags = 0; f 641 drivers/scsi/lpfc/lpfc_nvme.c bpl->tus.f.bdeSize = pnvme_lsreq->rqstlen; f 647 drivers/scsi/lpfc/lpfc_nvme.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 648 drivers/scsi/lpfc/lpfc_nvme.c bpl->tus.f.bdeSize = pnvme_lsreq->rsplen; f 798 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_IMMED; f 799 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeSize = 56; f 838 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 839 drivers/scsi/lpfc/lpfc_nvme.c wqe->generic.bde.tus.f.bdeSize = nCmd->cmdlen; f 1449 drivers/scsi/lpfc/lpfc_nvme.c bde->tus.f.bdeSize = f 1451 drivers/scsi/lpfc/lpfc_nvme.c bde->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 894 drivers/scsi/lpfc/lpfc_nvmet.c bpl.tus.f.bdeSize = rsp->rsplen; f 895 drivers/scsi/lpfc/lpfc_nvmet.c bpl.tus.f.bdeFlags = 0; f 2513 drivers/scsi/lpfc/lpfc_nvmet.c wqe->xmit_sequence.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 2514 drivers/scsi/lpfc/lpfc_nvmet.c wqe->xmit_sequence.bde.tus.f.bdeSize = rspsize; f 2674 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_tsend.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 2675 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_tsend.bde.tus.f.bdeSize = sg_dma_len(sgel); f 2771 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_treceive.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 2772 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_treceive.bde.tus.f.bdeSize = TXRDY_PAYLOAD_LEN; f 2841 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_trsp.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 2842 drivers/scsi/lpfc/lpfc_nvmet.c wqe->fcp_trsp.bde.tus.f.bdeSize = rsp->rsplen; f 2921 drivers/scsi/lpfc/lpfc_nvmet.c bde->tus.f.bdeSize = f 2923 drivers/scsi/lpfc/lpfc_nvmet.c bde->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 399 drivers/scsi/lpfc/lpfc_scsi.c bpl[0].tus.f.bdeSize = sizeof(struct fcp_cmnd); f 400 drivers/scsi/lpfc/lpfc_scsi.c bpl[0].tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 406 drivers/scsi/lpfc/lpfc_scsi.c bpl[1].tus.f.bdeSize = sizeof(struct fcp_rsp); f 407 drivers/scsi/lpfc/lpfc_scsi.c bpl[1].tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 427 drivers/scsi/lpfc/lpfc_scsi.c iocb->unsli3.fcp_ext.rbde.tus.f.bdeFlags = f 429 drivers/scsi/lpfc/lpfc_scsi.c iocb->unsli3.fcp_ext.rbde.tus.f.bdeSize = f 896 drivers/scsi/lpfc/lpfc_scsi.c data_bde->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 897 drivers/scsi/lpfc/lpfc_scsi.c data_bde->tus.f.bdeSize = sg_dma_len(sgel); f 902 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 903 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeSize = sg_dma_len(sgel); f 930 drivers/scsi/lpfc/lpfc_scsi.c data_bde->tus.f.bdeFlags = BUFF_TYPE_BLP_64; f 931 drivers/scsi/lpfc/lpfc_scsi.c data_bde->tus.f.bdeSize = (num_bde * f 1647 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeSize = sg_dma_len(sgde); f 1649 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 1651 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 1857 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeSize = remainder; f 1864 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeSize = protgrp_bytes - subtotal; f 1865 drivers/scsi/lpfc/lpfc_scsi.c split_offset += bpl->tus.f.bdeSize; f 1868 drivers/scsi/lpfc/lpfc_scsi.c subtotal += bpl->tus.f.bdeSize; f 1871 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 1873 drivers/scsi/lpfc/lpfc_scsi.c bpl->tus.f.bdeFlags = BUFF_TYPE_BDE_64I; f 3194 drivers/scsi/lpfc/lpfc_scsi.c bde->tus.f.bdeSize = f 3196 drivers/scsi/lpfc/lpfc_scsi.c bde->tus.f.bdeFlags = BUFF_TYPE_BDE_64; f 2047 drivers/scsi/lpfc/lpfc_sli.c hbqe->bde.tus.f.bdeSize = hbq_buf->total_size; f 2048 drivers/scsi/lpfc/lpfc_sli.c hbqe->bde.tus.f.bdeFlags = 0; f 9227 drivers/scsi/lpfc/lpfc_sli.c sgl->sge_len = cpu_to_le32(bde.tus.f.bdeSize); f 9234 drivers/scsi/lpfc/lpfc_sli.c if (bpl->tus.f.bdeFlags == BUFF_TYPE_BDE_64I) f 9242 drivers/scsi/lpfc/lpfc_sli.c offset += bde.tus.f.bdeSize; f 9336 drivers/scsi/lpfc/lpfc_sli.c xmit_len = wqe->generic.bde.tus.f.bdeSize; f 9340 drivers/scsi/lpfc/lpfc_sli.c total_len += bde.tus.f.bdeSize; f 9507 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeFlags = f 9509 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeSize = sgl->sge_len; f 9571 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeFlags = f 9573 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeSize = sgl->sge_len; f 9628 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeFlags = f 9630 drivers/scsi/lpfc/lpfc_sli.c wqe->generic.bde.tus.f.bdeSize = sgl->sge_len; f 9651 drivers/scsi/lpfc/lpfc_sli.c if (bde.tus.f.bdeFlags != BUFF_TYPE_BDE_64) f 9653 drivers/scsi/lpfc/lpfc_sli.c xmit_len += bde.tus.f.bdeSize; f 12897 drivers/scsi/lpfc/lpfc_sli.c max_response = bde.tus.f.bdeSize; f 12909 drivers/scsi/lpfc/lpfc_sli.c if (bde.tus.f.bdeFlags != BUFF_TYPE_BDE_64) f 12910 drivers/scsi/lpfc/lpfc_sli.c max_response += bde.tus.f.bdeSize; f 17802 drivers/scsi/lpfc/lpfc_sli.c first_iocbq->iocb.un.cont64[0].tus.f.bdeSize = f 17805 drivers/scsi/lpfc/lpfc_sli.c first_iocbq->iocb.un.cont64[0].tus.f.bdeSize = tot_len; f 17831 drivers/scsi/lpfc/lpfc_sli.c pbde->tus.f.bdeSize = LPFC_DATA_BUF_SIZE; f 17833 drivers/scsi/lpfc/lpfc_sli.c pbde->tus.f.bdeSize = len; f 17857 drivers/scsi/lpfc/lpfc_sli.c iocbq->iocb.un.cont64[0].tus.f.bdeSize = f 17860 drivers/scsi/lpfc/lpfc_sli.c iocbq->iocb.un.cont64[0].tus.f.bdeSize = len; f 19403 drivers/scsi/lpfc/lpfc_sli.c wr_object->u.request.bde[i].tus.f.bdeSize = f 19410 drivers/scsi/lpfc/lpfc_sli.c wr_object->u.request.bde[i].tus.f.bdeSize = f 19759 drivers/scsi/lpfc/lpfc_sli.c sgl->sge_len = cpu_to_le32(bde.tus.f.bdeSize); f 19767 drivers/scsi/lpfc/lpfc_sli.c if (bpl->tus.f.bdeFlags == BUFF_TYPE_BDE_64I) f 19775 drivers/scsi/lpfc/lpfc_sli.c offset += bde.tus.f.bdeSize; f 19785 drivers/scsi/lpfc/lpfc_sli.c bpl->tus.f.bdeFlags); f 19789 drivers/scsi/lpfc/lpfc_sli.c offset += bde.tus.f.bdeSize; f 19797 drivers/scsi/lpfc/lpfc_sli.c } else if (wqe->gen_req.bde.tus.f.bdeFlags == BUFF_TYPE_BDE_64) { f 19807 drivers/scsi/lpfc/lpfc_sli.c sgl->sge_len = cpu_to_le32(wqe->gen_req.bde.tus.f.bdeSize); f 1084 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_SGE_SET_FLAGS(f) ((U32)(f) << MPI2_SGE_FLAGS_SHIFT) f 1085 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_SGE_GET_FLAGS(f) (((f) & ~MPI2_SGE_LENGTH_MASK) >> \ f 1087 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_SGE_LENGTH(f) ((f) & MPI2_SGE_LENGTH_MASK) f 1088 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_SGE_CHAIN_LENGTH(f) ((f) & MPI2_SGE_CHAIN_LENGTH_MASK) f 1090 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_SGE_SET_FLAGS_LENGTH(f, l) (MPI2_SGE_SET_FLAGS(f) | \ f 1095 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ f 1096 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_SGE_SET_FLAGS_LENGTH(f, l)) f 1099 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ f 1100 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_SGE_SET_FLAGS(f)) f 1236 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_SGE_SET_FLAGS(f) ((U32)(f) << MPI2_IEEE32_SGE_FLAGS_SHIFT) f 1237 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_SGE_GET_FLAGS(f) (((f) & ~MPI2_IEEE32_SGE_LENGTH_MASK) \ f 1239 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_SGE_LENGTH(f) ((f) & MPI2_IEEE32_SGE_LENGTH_MASK) f 1241 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_SGE_SET_FLAGS_LENGTH(f, l) (MPI2_IEEE32_SGE_SET_FLAGS(f) |\ f 1248 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_SET_FLAGS_LENGTH(psg, f, l) ((psg)->FlagsLength = \ f 1249 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_IEEE32_SGE_SET_FLAGS_LENGTH(f, l)) f 1252 drivers/scsi/mpt3sas/mpi/mpi2.h #define MPI2_IEEE32_pSGE_SET_FLAGS(psg, f) ((psg)->FlagsLength |= \ f 1253 drivers/scsi/mpt3sas/mpi/mpi2.h MPI2_IEEE32_SGE_SET_FLAGS(f)) f 61 drivers/scsi/mvsas/mv_sas.h #define MV_INIT_DELAYED_WORK(w, f, d) INIT_DELAYED_WORK(w, f) f 1028 drivers/scsi/ncr53c8xx.h #define SCR_SET(f) (0x58000000 | (f)) f 1029 drivers/scsi/ncr53c8xx.h #define SCR_CLR(f) (0x60000000 | (f)) f 2018 drivers/scsi/qla1280.c nv->firmware_feature.f.enable_fast_posting = 1; f 2019 drivers/scsi/qla1280.c nv->firmware_feature.f.disable_synchronous_backoff = 1; f 2233 drivers/scsi/qla1280.c mb[1] = nv->firmware_feature.f.enable_fast_posting; f 2234 drivers/scsi/qla1280.c mb[1] |= nv->firmware_feature.f.report_lvd_bus_transition << 1; f 2235 drivers/scsi/qla1280.c mb[1] |= nv->firmware_feature.f.disable_synchronous_backoff << 5; f 410 drivers/scsi/qla1280.h } f; f 578 drivers/scsi/qla2xxx/qla_isr.c fc_port_t *f, *tf; f 580 drivers/scsi/qla2xxx/qla_isr.c f = tf = NULL; f 581 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) f 582 drivers/scsi/qla2xxx/qla_isr.c if (f->loop_id == loop_id) f 583 drivers/scsi/qla2xxx/qla_isr.c return f; f 590 drivers/scsi/qla2xxx/qla_isr.c fc_port_t *f, *tf; f 592 drivers/scsi/qla2xxx/qla_isr.c f = tf = NULL; f 593 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) { f 594 drivers/scsi/qla2xxx/qla_isr.c if (memcmp(f->port_name, wwpn, WWN_SIZE) == 0) { f 596 drivers/scsi/qla2xxx/qla_isr.c return f; f 597 drivers/scsi/qla2xxx/qla_isr.c else if (f->deleted == 0) f 598 drivers/scsi/qla2xxx/qla_isr.c return f; f 608 drivers/scsi/qla2xxx/qla_isr.c fc_port_t *f, *tf; f 610 drivers/scsi/qla2xxx/qla_isr.c f = tf = NULL; f 611 drivers/scsi/qla2xxx/qla_isr.c list_for_each_entry_safe(f, tf, &vha->vp_fcports, list) { f 612 drivers/scsi/qla2xxx/qla_isr.c if (f->d_id.b24 == id->b24) { f 614 drivers/scsi/qla2xxx/qla_isr.c return f; f 615 drivers/scsi/qla2xxx/qla_isr.c else if (f->deleted == 0) f 616 drivers/scsi/qla2xxx/qla_isr.c return f; f 125 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_CRB_WIN_FUNC(f) (QLA8044_CRB_WIN_BASE+((f)*4)) f 128 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_SEM_LOCK_FUNC(f) (QLA8044_SEM_LOCK_BASE+((f)*8)) f 129 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_SEM_UNLOCK_FUNC(f) (QLA8044_SEM_UNLOCK_BASE+((f)*8)) f 130 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_LINK_STATE(f) (0x3698+((f) > 7 ? 4 : 0)) f 131 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_LINK_SPEED(f) (0x36E0+(((f) >> 2) * 4)) f 132 drivers/scsi/qla2xxx/qla_nx2.h #define QLA8044_MAX_LINK_SPEED(f) (0x36F0+(((f) / 4) * 4)) f 108 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_CRB_WIN_FUNC(f) (QLA83XX_CRB_WIN_BASE+((f)*4)) f 111 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_SEM_LOCK_FUNC(f) (QLA83XX_SEM_LOCK_BASE+((f)*8)) f 112 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_SEM_UNLOCK_FUNC(f) (QLA83XX_SEM_UNLOCK_BASE+((f)*8)) f 113 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_LINK_STATE(f) (0x3698+((f) > 7 ? 4 : 0)) f 114 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_LINK_SPEED(f) (0x36E0+(((f) >> 2) * 4)) f 115 drivers/scsi/qla4xxx/ql4_83xx.h #define QLA83XX_MAX_LINK_SPEED(f) (0x36F0+(((f) / 4) * 4)) f 186 drivers/scsi/qla4xxx/ql4_def.h #define OP_STATE(o, f, p) { \ f 187 drivers/scsi/qla4xxx/ql4_def.h p = (o & f) ? "enable" : "disable"; \ f 24 drivers/scsi/raid_class.c struct raid_function_template *f; f 68 drivers/scsi/raid_class.c if (i->f->cookie != sdev->host->hostt) f 71 drivers/scsi/raid_class.c return i->f->is_raid(dev); f 199 drivers/scsi/raid_class.c if (i->f->get_##attr) \ f 200 drivers/scsi/raid_class.c i->f->get_##attr(dev->parent); f 269 drivers/scsi/raid_class.c i->f = ft; f 4576 drivers/scsi/scsi_debug.c int f, j, l; f 4606 drivers/scsi/scsi_debug.c f = find_first_bit(sqp->in_use_bm, sdebug_max_queue); f 4607 drivers/scsi/scsi_debug.c if (f != sdebug_max_queue) { f 4610 drivers/scsi/scsi_debug.c "first,last bits", f, l); f 14 drivers/scsi/scsi_sas_internal.h struct sas_function_template *f; f 315 drivers/scsi/scsi_transport_fc.c struct fc_function_template *f; f 697 drivers/scsi/scsi_transport_fc.c if ((i->f->get_rport_##field) && \ f 701 drivers/scsi/scsi_transport_fc.c i->f->get_rport_##field(rport); \ f 723 drivers/scsi/scsi_transport_fc.c i->f->set_rport_##field(rport, val); \ f 786 drivers/scsi/scsi_transport_fc.c if (i->f->show_rport_##field) \ f 798 drivers/scsi/scsi_transport_fc.c if (!i->f->set_rport_##field) { \ f 803 drivers/scsi/scsi_transport_fc.c if (i->f->show_rport_##field) \ f 877 drivers/scsi/scsi_transport_fc.c i->f->set_rport_dev_loss_tmo(rport, val); f 1015 drivers/scsi/scsi_transport_fc.c else if (i->f->get_starget_##field) \ f 1016 drivers/scsi/scsi_transport_fc.c i->f->get_starget_##field(starget); \ f 1036 drivers/scsi/scsi_transport_fc.c if (i->f->show_starget_##field) \ f 1041 drivers/scsi/scsi_transport_fc.c if (!i->f->set_starget_##field) { \ f 1046 drivers/scsi/scsi_transport_fc.c if (i->f->show_starget_##field) \ f 1067 drivers/scsi/scsi_transport_fc.c if ((i->f->get_vport_##field) && \ f 1069 drivers/scsi/scsi_transport_fc.c i->f->get_vport_##field(vport); \ f 1089 drivers/scsi/scsi_transport_fc.c i->f->set_vport_##field(vport, val); \ f 1110 drivers/scsi/scsi_transport_fc.c i->f->set_vport_##field(vport); \ f 1199 drivers/scsi/scsi_transport_fc.c if (i->f->get_##field) \ f 1213 drivers/scsi/scsi_transport_fc.c if (i->f->field) \ f 1219 drivers/scsi/scsi_transport_fc.c if (!i->f->set_vport_##field) { \ f 1317 drivers/scsi/scsi_transport_fc.c stat = i->f->vport_disable(vport, ((*buf == '0') ? false : true)); f 1335 drivers/scsi/scsi_transport_fc.c if (i->f->get_host_##field) \ f 1336 drivers/scsi/scsi_transport_fc.c i->f->get_host_##field(shost); \ f 1354 drivers/scsi/scsi_transport_fc.c i->f->set_host_##field(shost, val); \ f 1374 drivers/scsi/scsi_transport_fc.c i->f->set_host_##field(shost); \ f 1403 drivers/scsi/scsi_transport_fc.c if (i->f->get_host_##title) \ f 1404 drivers/scsi/scsi_transport_fc.c i->f->get_host_##title(shost); \ f 1417 drivers/scsi/scsi_transport_fc.c if (i->f->show_host_##field) \ f 1429 drivers/scsi/scsi_transport_fc.c if (!i->f->set_host_##field) { \ f 1434 drivers/scsi/scsi_transport_fc.c if (i->f->show_host_##field) \ f 1538 drivers/scsi/scsi_transport_fc.c if (i->f->get_host_active_fc4s) f 1539 drivers/scsi/scsi_transport_fc.c i->f->get_host_active_fc4s(shost); f 1553 drivers/scsi/scsi_transport_fc.c if (i->f->get_host_speed) f 1554 drivers/scsi/scsi_transport_fc.c i->f->get_host_speed(shost); f 1638 drivers/scsi/scsi_transport_fc.c if (i->f->issue_fc_host_lip) { f 1639 drivers/scsi/scsi_transport_fc.c ret = i->f->issue_fc_host_lip(shost); f 1696 drivers/scsi/scsi_transport_fc.c if (i->f->get_fc_host_stats) { f 1697 drivers/scsi/scsi_transport_fc.c stats = (i->f->get_fc_host_stats)(shost); f 1755 drivers/scsi/scsi_transport_fc.c if (i->f->reset_fc_host_stats) { f 1756 drivers/scsi/scsi_transport_fc.c i->f->reset_fc_host_stats(shost); f 2186 drivers/scsi/scsi_transport_fc.c i->f = ft; f 2468 drivers/scsi/scsi_transport_fc.c if (i->f->terminate_rport_io) f 2469 drivers/scsi/scsi_transport_fc.c i->f->terminate_rport_io(rport); f 2549 drivers/scsi/scsi_transport_fc.c (i->f->dev_loss_tmo_callbk)) { f 2556 drivers/scsi/scsi_transport_fc.c i->f->dev_loss_tmo_callbk(rport); f 2593 drivers/scsi/scsi_transport_fc.c size = (sizeof(struct fc_rport) + fci->f->dd_fcrport_size); f 2608 drivers/scsi/scsi_transport_fc.c if (fci->f->dd_fcrport_size) f 2763 drivers/scsi/scsi_transport_fc.c if (fci->f->dd_fcrport_size) f 2765 drivers/scsi/scsi_transport_fc.c fci->f->dd_fcrport_size); f 2871 drivers/scsi/scsi_transport_fc.c if (fci->f->dd_fcrport_size) f 2873 drivers/scsi/scsi_transport_fc.c fci->f->dd_fcrport_size); f 3207 drivers/scsi/scsi_transport_fc.c if (do_callback && i->f->dev_loss_tmo_callbk) f 3208 drivers/scsi/scsi_transport_fc.c i->f->dev_loss_tmo_callbk(rport); f 3247 drivers/scsi/scsi_transport_fc.c !(i->f->disable_target_scan)) { f 3347 drivers/scsi/scsi_transport_fc.c if ( ! fci->f->vport_create) f 3350 drivers/scsi/scsi_transport_fc.c size = (sizeof(struct fc_vport) + fci->f->dd_fcvport_size); f 3363 drivers/scsi/scsi_transport_fc.c if (fci->f->dd_fcvport_size) f 3400 drivers/scsi/scsi_transport_fc.c error = fci->f->vport_create(vport, ids->disable); f 3490 drivers/scsi/scsi_transport_fc.c if (i->f->vport_delete) f 3491 drivers/scsi/scsi_transport_fc.c stat = i->f->vport_delete(vport); f 3568 drivers/scsi/scsi_transport_fc.c if (inflight && i->f->bsg_timeout) { f 3570 drivers/scsi/scsi_transport_fc.c err = i->f->bsg_timeout(job); f 3649 drivers/scsi/scsi_transport_fc.c ret = i->f->bsg_request(job); f 3718 drivers/scsi/scsi_transport_fc.c ret = i->f->bsg_request(job); f 3789 drivers/scsi/scsi_transport_fc.c if (!i->f->bsg_request) f 3796 drivers/scsi/scsi_transport_fc.c i->f->dd_bsg_size); f 3823 drivers/scsi/scsi_transport_fc.c if (!i->f->bsg_request) f 3827 drivers/scsi/scsi_transport_fc.c fc_bsg_job_timeout, i->f->dd_bsg_size); f 186 drivers/scsi/scsi_transport_sas.c to_sas_internal(shost->transportt)->f->smp_handler(job, shost, rphy); f 194 drivers/scsi/scsi_transport_sas.c if (!to_sas_internal(shost->transportt)->f->smp_handler) { f 475 drivers/scsi/scsi_transport_sas.c error = i->f->set_phy_speed(phy, &rates); \ f 501 drivers/scsi/scsi_transport_sas.c error = i->f->get_linkerrors ? i->f->get_linkerrors(phy) : 0; \ f 532 drivers/scsi/scsi_transport_sas.c error = i->f->phy_enable(phy, enable); f 580 drivers/scsi/scsi_transport_sas.c error = i->f->phy_reset(phy, hard_reset); f 627 drivers/scsi/scsi_transport_sas.c if (i->f->phy_setup) f 628 drivers/scsi/scsi_transport_sas.c i->f->phy_setup(phy); f 661 drivers/scsi/scsi_transport_sas.c if (i->f->phy_release) f 662 drivers/scsi/scsi_transport_sas.c i->f->phy_release(phy); f 1188 drivers/scsi/scsi_transport_sas.c error = i->f->get_enclosure_identifier(rphy, &identifier); f 1207 drivers/scsi/scsi_transport_sas.c val = i->f->get_bay_identifier(rphy); f 1706 drivers/scsi/scsi_transport_sas.c SETUP_TEMPLATE(rphy_attrs, field, S_IRUGO, i->f->func) f 1713 drivers/scsi/scsi_transport_sas.c !i->f->set_phy_speed, S_IRUGO) f 1717 drivers/scsi/scsi_transport_sas.c !i->f->func, S_IRUGO) f 1723 drivers/scsi/scsi_transport_sas.c SETUP_TEMPLATE(phy_attrs, field, S_IRUGO, i->f->func) f 1729 drivers/scsi/scsi_transport_sas.c SETUP_TEMPLATE(phy_attrs, field, S_IWUSR, i->f->func) f 1784 drivers/scsi/scsi_transport_sas.c i->f = ft; f 61 drivers/scsi/scsi_transport_spi.c struct spi_function_template *f; f 306 drivers/scsi/scsi_transport_spi.c if (i->f->get_##field) \ f 307 drivers/scsi/scsi_transport_spi.c i->f->get_##field(starget); \ f 322 drivers/scsi/scsi_transport_spi.c if (!i->f->set_##field) \ f 325 drivers/scsi/scsi_transport_spi.c i->f->set_##field(starget, val); \ f 342 drivers/scsi/scsi_transport_spi.c if (i->f->set_##field) \ f 347 drivers/scsi/scsi_transport_spi.c i->f->set_##field(starget, val); \ f 486 drivers/scsi/scsi_transport_spi.c if (i->f->get_period) f 487 drivers/scsi/scsi_transport_spi.c i->f->get_period(starget); f 503 drivers/scsi/scsi_transport_spi.c if (!i->f->set_period) f 511 drivers/scsi/scsi_transport_spi.c i->f->set_period(starget, period); f 530 drivers/scsi/scsi_transport_spi.c if (!i->f->set_period) f 562 drivers/scsi/scsi_transport_spi.c if (i->f->get_signalling) f 563 drivers/scsi/scsi_transport_spi.c i->f->get_signalling(shost); f 575 drivers/scsi/scsi_transport_spi.c if (!i->f->set_signalling) f 579 drivers/scsi/scsi_transport_spi.c i->f->set_signalling(shost, type); f 610 drivers/scsi/scsi_transport_spi.c if(i->f->set_##x) \ f 611 drivers/scsi/scsi_transport_spi.c i->f->set_##x(sdev->sdev_target, y) f 764 drivers/scsi/scsi_transport_spi.c if (i->f->get_iu) f 765 drivers/scsi/scsi_transport_spi.c i->f->get_iu(starget); f 766 drivers/scsi/scsi_transport_spi.c if (i->f->get_qas) f 767 drivers/scsi/scsi_transport_spi.c i->f->get_qas(starget); f 768 drivers/scsi/scsi_transport_spi.c if (i->f->get_period) f 769 drivers/scsi/scsi_transport_spi.c i->f->get_period(sdev->sdev_target); f 774 drivers/scsi/scsi_transport_spi.c if (i->f->set_iu && spi_iu(starget)) { f 777 drivers/scsi/scsi_transport_spi.c } else if (i->f->set_qas && spi_qas(starget)) { f 875 drivers/scsi/scsi_transport_spi.c if (i->f->set_width && max_width) { f 876 drivers/scsi/scsi_transport_spi.c i->f->set_width(starget, 1); f 883 drivers/scsi/scsi_transport_spi.c i->f->set_width(starget, 0); f 892 drivers/scsi/scsi_transport_spi.c if (!i->f->set_period) f 935 drivers/scsi/scsi_transport_spi.c if (i->f->get_signalling) f 936 drivers/scsi/scsi_transport_spi.c i->f->get_signalling(shost); f 952 drivers/scsi/scsi_transport_spi.c if (i->f->get_dt) f 953 drivers/scsi/scsi_transport_spi.c i->f->get_dt(starget); f 1384 drivers/scsi/scsi_transport_spi.c if (i->f->deny_binding && i->f->deny_binding(sdev->sdev_target)) f 1407 drivers/scsi/scsi_transport_spi.c if (i->f->deny_binding && i->f->deny_binding(starget)) f 1444 drivers/scsi/scsi_transport_spi.c if (si->f->set_signalling) f 1454 drivers/scsi/scsi_transport_spi.c (si->f->show_##name ? S_IRUGO : 0) | \ f 1455 drivers/scsi/scsi_transport_spi.c (si->f->set_##name ? S_IWUSR : 0) f 1576 drivers/scsi/scsi_transport_spi.c i->f = ft; f 32 drivers/scsi/scsi_transport_srp.c struct srp_function_template *f; f 164 drivers/scsi/scsi_transport_srp.c if (i->f->rport_delete) { f 165 drivers/scsi/scsi_transport_srp.c i->f->rport_delete(rport); f 416 drivers/scsi/scsi_transport_srp.c if (i->f->terminate_rport_io) f 417 drivers/scsi/scsi_transport_srp.c i->f->terminate_rport_io(rport); f 458 drivers/scsi/scsi_transport_srp.c i->f->rport_delete(rport); f 545 drivers/scsi/scsi_transport_srp.c res = rport->state != SRP_RPORT_LOST ? i->f->reconnect(rport) : -ENODEV; f 608 drivers/scsi/scsi_transport_srp.c i->f->reset_timer_if_blocked && scsi_device_blocked(sdev) ? f 712 drivers/scsi/scsi_transport_srp.c if (i->f->reconnect) f 713 drivers/scsi/scsi_transport_srp.c rport->reconnect_delay = i->f->reconnect_delay ? f 714 drivers/scsi/scsi_transport_srp.c *i->f->reconnect_delay : 10; f 716 drivers/scsi/scsi_transport_srp.c rport->fast_io_fail_tmo = i->f->fast_io_fail_tmo ? f 717 drivers/scsi/scsi_transport_srp.c *i->f->fast_io_fail_tmo : 15; f 718 drivers/scsi/scsi_transport_srp.c rport->dev_loss_tmo = i->f->dev_loss_tmo ? *i->f->dev_loss_tmo : 60; f 846 drivers/scsi/scsi_transport_srp.c i->f = ft; f 510 drivers/scsi/sym53c8xx_2/sym_defs.h #define SCR_SET(f) (0x58000000 | (f)) f 511 drivers/scsi/sym53c8xx_2/sym_defs.h #define SCR_CLR(f) (0x60000000 | (f)) f 292 drivers/scsi/sym53c8xx_2/sym_hipd.c unsigned int f; f 345 drivers/scsi/sym53c8xx_2/sym_hipd.c f = ms ? ((1 << gen) * (4340*4)) / ms : 0; f 352 drivers/scsi/sym53c8xx_2/sym_hipd.c f = (f * 2) / 3; f 356 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_name(np), gen, ms/4, f); f 358 drivers/scsi/sym53c8xx_2/sym_hipd.c return f; f 435 drivers/scsi/sym53c8xx_2/sym_hipd.c int f = 0; f 447 drivers/scsi/sym53c8xx_2/sym_hipd.c f = sym_getfreq(np); f 450 drivers/scsi/sym53c8xx_2/sym_hipd.c np->pciclk_khz = f; f 452 drivers/scsi/sym53c8xx_2/sym_hipd.c return f; f 6572 drivers/scsi/ufs/ufshcd.c struct ufs_dev_fix *f; f 6574 drivers/scsi/ufs/ufshcd.c for (f = ufs_fixups; f->quirk; f++) { f 6575 drivers/scsi/ufs/ufshcd.c if ((f->card.wmanufacturerid == dev_desc->wmanufacturerid || f 6576 drivers/scsi/ufs/ufshcd.c f->card.wmanufacturerid == UFS_ANY_VENDOR) && f 6578 drivers/scsi/ufs/ufshcd.c STR_PRFX_EQUAL(f->card.model, dev_desc->model)) || f 6579 drivers/scsi/ufs/ufshcd.c !strcmp(f->card.model, UFS_ANY_MODEL))) f 6580 drivers/scsi/ufs/ufshcd.c hba->dev_quirks |= f->quirk; f 27 drivers/scsi/wd33c93.h #define DB(f,a) if (hostdata->args & (f)) a; f 29 drivers/scsi/wd33c93.h #define DB(f,a) f 2607 drivers/soc/fsl/qbman/qman.c #define qm_dqrr_drain(p, f, S) \ f 2608 drivers/soc/fsl/qbman/qman.c _qm_dqrr_consume_and_match(p, f, QM_DQRR_STAT_##S, false) f 2610 drivers/soc/fsl/qbman/qman.c #define qm_dqrr_drain_wait(p, f, S) \ f 2611 drivers/soc/fsl/qbman/qman.c _qm_dqrr_consume_and_match(p, f, QM_DQRR_STAT_##S, true) f 348 drivers/spi/spi-nxp-fspi.c static void fspi_writel(struct nxp_fspi *f, u32 val, void __iomem *addr) f 350 drivers/spi/spi-nxp-fspi.c if (f->devtype_data->little_endian) f 356 drivers/spi/spi-nxp-fspi.c static u32 fspi_readl(struct nxp_fspi *f, void __iomem *addr) f 358 drivers/spi/spi-nxp-fspi.c if (f->devtype_data->little_endian) f 366 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = dev_id; f 370 drivers/spi/spi-nxp-fspi.c reg = fspi_readl(f, f->iobase + FSPI_INTR); f 371 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTR_IPCMDDONE, f->iobase + FSPI_INTR); f 374 drivers/spi/spi-nxp-fspi.c complete(&f->c); f 379 drivers/spi/spi-nxp-fspi.c static int nxp_fspi_check_buswidth(struct nxp_fspi *f, u8 width) f 395 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); f 398 drivers/spi/spi-nxp-fspi.c ret = nxp_fspi_check_buswidth(f, op->cmd.buswidth); f 401 drivers/spi/spi-nxp-fspi.c ret |= nxp_fspi_check_buswidth(f, op->addr.buswidth); f 404 drivers/spi/spi-nxp-fspi.c ret |= nxp_fspi_check_buswidth(f, op->dummy.buswidth); f 407 drivers/spi/spi-nxp-fspi.c ret |= nxp_fspi_check_buswidth(f, op->data.buswidth); f 423 drivers/spi/spi-nxp-fspi.c if (op->addr.val >= f->memmap_phy_size) f 433 drivers/spi/spi-nxp-fspi.c (op->data.nbytes > f->devtype_data->ahb_buf_size || f 434 drivers/spi/spi-nxp-fspi.c (op->data.nbytes > f->devtype_data->rxfifo - 4 && f 439 drivers/spi/spi-nxp-fspi.c op->data.nbytes > f->devtype_data->txfifo) f 446 drivers/spi/spi-nxp-fspi.c static int fspi_readl_poll_tout(struct nxp_fspi *f, void __iomem *base, f 452 drivers/spi/spi-nxp-fspi.c if (!f->devtype_data->little_endian) f 468 drivers/spi/spi-nxp-fspi.c static inline void nxp_fspi_invalid(struct nxp_fspi *f) f 473 drivers/spi/spi-nxp-fspi.c reg = fspi_readl(f, f->iobase + FSPI_MCR0); f 474 drivers/spi/spi-nxp-fspi.c fspi_writel(f, reg | FSPI_MCR0_SWRST, f->iobase + FSPI_MCR0); f 477 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_MCR0, f 482 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_prepare_lut(struct nxp_fspi *f, f 485 drivers/spi/spi-nxp-fspi.c void __iomem *base = f->iobase; f 528 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_LUTKEY_VALUE, f->iobase + FSPI_LUTKEY); f 529 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_LCKER_UNLOCK, f->iobase + FSPI_LCKCR); f 533 drivers/spi/spi-nxp-fspi.c fspi_writel(f, lutval[i], base + FSPI_LUT_REG(i)); f 535 drivers/spi/spi-nxp-fspi.c dev_dbg(f->dev, "CMD[%x] lutval[0:%x \t 1:%x \t 2:%x \t 3:%x]\n", f 539 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_LUTKEY_VALUE, f->iobase + FSPI_LUTKEY); f 540 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_LCKER_LOCK, f->iobase + FSPI_LCKCR); f 543 drivers/spi/spi-nxp-fspi.c static int nxp_fspi_clk_prep_enable(struct nxp_fspi *f) f 547 drivers/spi/spi-nxp-fspi.c ret = clk_prepare_enable(f->clk_en); f 551 drivers/spi/spi-nxp-fspi.c ret = clk_prepare_enable(f->clk); f 553 drivers/spi/spi-nxp-fspi.c clk_disable_unprepare(f->clk_en); f 560 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_clk_disable_unprep(struct nxp_fspi *f) f 562 drivers/spi/spi-nxp-fspi.c clk_disable_unprepare(f->clk); f 563 drivers/spi/spi-nxp-fspi.c clk_disable_unprepare(f->clk_en); f 604 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_select_mem(struct nxp_fspi *f, struct spi_device *spi) f 614 drivers/spi/spi-nxp-fspi.c if (f->selected == spi->chip_select) f 618 drivers/spi/spi-nxp-fspi.c fspi_writel(f, 0, f->iobase + FSPI_FLSHA1CR0); f 619 drivers/spi/spi-nxp-fspi.c fspi_writel(f, 0, f->iobase + FSPI_FLSHA2CR0); f 620 drivers/spi/spi-nxp-fspi.c fspi_writel(f, 0, f->iobase + FSPI_FLSHB1CR0); f 621 drivers/spi/spi-nxp-fspi.c fspi_writel(f, 0, f->iobase + FSPI_FLSHB2CR0); f 624 drivers/spi/spi-nxp-fspi.c size_kb = FSPI_FLSHXCR0_SZ(f->memmap_phy_size); f 626 drivers/spi/spi-nxp-fspi.c fspi_writel(f, size_kb, f->iobase + FSPI_FLSHA1CR0 + f 629 drivers/spi/spi-nxp-fspi.c dev_dbg(f->dev, "Slave device [CS:%x] selected\n", spi->chip_select); f 631 drivers/spi/spi-nxp-fspi.c nxp_fspi_clk_disable_unprep(f); f 633 drivers/spi/spi-nxp-fspi.c ret = clk_set_rate(f->clk, rate); f 637 drivers/spi/spi-nxp-fspi.c ret = nxp_fspi_clk_prep_enable(f); f 641 drivers/spi/spi-nxp-fspi.c f->selected = spi->chip_select; f 644 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_read_ahb(struct nxp_fspi *f, const struct spi_mem_op *op) f 649 drivers/spi/spi-nxp-fspi.c memcpy_fromio(op->data.buf.in, (f->ahb_addr + op->addr.val), len); f 652 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_fill_txfifo(struct nxp_fspi *f, f 655 drivers/spi/spi-nxp-fspi.c void __iomem *base = f->iobase; f 660 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_IPTXFCR_CLR, base + FSPI_IPTXFCR); f 669 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, f 674 drivers/spi/spi-nxp-fspi.c fspi_writel(f, *(u32 *) (buf + i), base + FSPI_TFDR); f 675 drivers/spi/spi-nxp-fspi.c fspi_writel(f, *(u32 *) (buf + i + 4), base + FSPI_TFDR + 4); f 676 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTR_IPTXWE, base + FSPI_INTR); f 683 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, f 690 drivers/spi/spi-nxp-fspi.c fspi_writel(f, data, base + FSPI_TFDR + j); f 692 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTR_IPTXWE, base + FSPI_INTR); f 696 drivers/spi/spi-nxp-fspi.c static void nxp_fspi_read_rxfifo(struct nxp_fspi *f, f 699 drivers/spi/spi-nxp-fspi.c void __iomem *base = f->iobase; f 710 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, f 715 drivers/spi/spi-nxp-fspi.c *(u32 *)(buf + i) = fspi_readl(f, base + FSPI_RFDR); f 716 drivers/spi/spi-nxp-fspi.c *(u32 *)(buf + i + 4) = fspi_readl(f, base + FSPI_RFDR + 4); f 718 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTR_IPRXWA, base + FSPI_INTR); f 727 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_INTR, f 734 drivers/spi/spi-nxp-fspi.c tmp = fspi_readl(f, base + FSPI_RFDR + j); f 742 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_IPRXFCR_CLR, base + FSPI_IPRXFCR); f 744 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTR_IPRXWA, base + FSPI_INTR); f 747 drivers/spi/spi-nxp-fspi.c static int nxp_fspi_do_op(struct nxp_fspi *f, const struct spi_mem_op *op) f 749 drivers/spi/spi-nxp-fspi.c void __iomem *base = f->iobase; f 754 drivers/spi/spi-nxp-fspi.c reg = fspi_readl(f, base + FSPI_IPRXFCR); f 758 drivers/spi/spi-nxp-fspi.c fspi_writel(f, reg, base + FSPI_IPRXFCR); f 760 drivers/spi/spi-nxp-fspi.c init_completion(&f->c); f 762 drivers/spi/spi-nxp-fspi.c fspi_writel(f, op->addr.val, base + FSPI_IPCR0); f 768 drivers/spi/spi-nxp-fspi.c fspi_writel(f, op->data.nbytes | f 774 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_IPCMD_TRG, base + FSPI_IPCMD); f 777 drivers/spi/spi-nxp-fspi.c if (!wait_for_completion_timeout(&f->c, msecs_to_jiffies(1000))) f 782 drivers/spi/spi-nxp-fspi.c nxp_fspi_read_rxfifo(f, op); f 789 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); f 792 drivers/spi/spi-nxp-fspi.c mutex_lock(&f->lock); f 795 drivers/spi/spi-nxp-fspi.c err = fspi_readl_poll_tout(f, f->iobase + FSPI_STS0, f 799 drivers/spi/spi-nxp-fspi.c nxp_fspi_select_mem(f, mem->spi); f 801 drivers/spi/spi-nxp-fspi.c nxp_fspi_prepare_lut(f, op); f 807 drivers/spi/spi-nxp-fspi.c if (op->data.nbytes > (f->devtype_data->rxfifo - 4) && f 809 drivers/spi/spi-nxp-fspi.c nxp_fspi_read_ahb(f, op); f 812 drivers/spi/spi-nxp-fspi.c nxp_fspi_fill_txfifo(f, op); f 814 drivers/spi/spi-nxp-fspi.c err = nxp_fspi_do_op(f, op); f 818 drivers/spi/spi-nxp-fspi.c nxp_fspi_invalid(f); f 820 drivers/spi/spi-nxp-fspi.c mutex_unlock(&f->lock); f 827 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); f 830 drivers/spi/spi-nxp-fspi.c if (op->data.nbytes > f->devtype_data->txfifo) f 831 drivers/spi/spi-nxp-fspi.c op->data.nbytes = f->devtype_data->txfifo; f 833 drivers/spi/spi-nxp-fspi.c if (op->data.nbytes > f->devtype_data->ahb_buf_size) f 834 drivers/spi/spi-nxp-fspi.c op->data.nbytes = f->devtype_data->ahb_buf_size; f 835 drivers/spi/spi-nxp-fspi.c else if (op->data.nbytes > (f->devtype_data->rxfifo - 4)) f 842 drivers/spi/spi-nxp-fspi.c static int nxp_fspi_default_setup(struct nxp_fspi *f) f 844 drivers/spi/spi-nxp-fspi.c void __iomem *base = f->iobase; f 849 drivers/spi/spi-nxp-fspi.c nxp_fspi_clk_disable_unprep(f); f 852 drivers/spi/spi-nxp-fspi.c ret = clk_set_rate(f->clk, 20000000); f 856 drivers/spi/spi-nxp-fspi.c ret = nxp_fspi_clk_prep_enable(f); f 862 drivers/spi/spi-nxp-fspi.c ret = fspi_readl_poll_tout(f, f->iobase + FSPI_MCR0, f 867 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_MCR0_MDIS, base + FSPI_MCR0); f 870 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_DLLACR_OVRDEN, base + FSPI_DLLACR); f 871 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_DLLBCR_OVRDEN, base + FSPI_DLLBCR); f 874 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_MCR0_AHB_TIMEOUT(0xFF) | FSPI_MCR0_IP_TIMEOUT(0xFF), f 881 drivers/spi/spi-nxp-fspi.c reg = fspi_readl(f, f->iobase + FSPI_MCR2); f 883 drivers/spi/spi-nxp-fspi.c fspi_writel(f, reg, base + FSPI_MCR2); f 887 drivers/spi/spi-nxp-fspi.c fspi_writel(f, 0, base + FSPI_AHBRX_BUF0CR0 + 4 * i); f 893 drivers/spi/spi-nxp-fspi.c fspi_writel(f, (f->devtype_data->ahb_buf_size / 8 | f 897 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_AHBCR_PREF_EN | FSPI_AHBCR_RDADDROPT, f 901 drivers/spi/spi-nxp-fspi.c fspi_writel(f, SEQID_LUT, base + FSPI_FLSHA1CR2); f 902 drivers/spi/spi-nxp-fspi.c fspi_writel(f, SEQID_LUT, base + FSPI_FLSHA2CR2); f 903 drivers/spi/spi-nxp-fspi.c fspi_writel(f, SEQID_LUT, base + FSPI_FLSHB1CR2); f 904 drivers/spi/spi-nxp-fspi.c fspi_writel(f, SEQID_LUT, base + FSPI_FLSHB2CR2); f 906 drivers/spi/spi-nxp-fspi.c f->selected = -1; f 909 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_INTEN_IPCMDDONE, base + FSPI_INTEN); f 916 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = spi_controller_get_devdata(mem->spi->master); f 921 drivers/spi/spi-nxp-fspi.c if (of_get_available_child_count(f->dev->of_node) == 1) f 922 drivers/spi/spi-nxp-fspi.c return dev_name(f->dev); f 925 drivers/spi/spi-nxp-fspi.c "%s-%d", dev_name(f->dev), f 949 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f; f 952 drivers/spi/spi-nxp-fspi.c ctlr = spi_alloc_master(&pdev->dev, sizeof(*f)); f 959 drivers/spi/spi-nxp-fspi.c f = spi_controller_get_devdata(ctlr); f 960 drivers/spi/spi-nxp-fspi.c f->dev = dev; f 961 drivers/spi/spi-nxp-fspi.c f->devtype_data = of_device_get_match_data(dev); f 962 drivers/spi/spi-nxp-fspi.c if (!f->devtype_data) { f 967 drivers/spi/spi-nxp-fspi.c platform_set_drvdata(pdev, f); f 971 drivers/spi/spi-nxp-fspi.c f->iobase = devm_ioremap_resource(dev, res); f 972 drivers/spi/spi-nxp-fspi.c if (IS_ERR(f->iobase)) { f 973 drivers/spi/spi-nxp-fspi.c ret = PTR_ERR(f->iobase); f 979 drivers/spi/spi-nxp-fspi.c f->ahb_addr = devm_ioremap_resource(dev, res); f 980 drivers/spi/spi-nxp-fspi.c if (IS_ERR(f->ahb_addr)) { f 981 drivers/spi/spi-nxp-fspi.c ret = PTR_ERR(f->ahb_addr); f 986 drivers/spi/spi-nxp-fspi.c f->memmap_phy = res->start; f 987 drivers/spi/spi-nxp-fspi.c f->memmap_phy_size = resource_size(res); f 990 drivers/spi/spi-nxp-fspi.c f->clk_en = devm_clk_get(dev, "fspi_en"); f 991 drivers/spi/spi-nxp-fspi.c if (IS_ERR(f->clk_en)) { f 992 drivers/spi/spi-nxp-fspi.c ret = PTR_ERR(f->clk_en); f 996 drivers/spi/spi-nxp-fspi.c f->clk = devm_clk_get(dev, "fspi"); f 997 drivers/spi/spi-nxp-fspi.c if (IS_ERR(f->clk)) { f 998 drivers/spi/spi-nxp-fspi.c ret = PTR_ERR(f->clk); f 1002 drivers/spi/spi-nxp-fspi.c ret = nxp_fspi_clk_prep_enable(f); f 1014 drivers/spi/spi-nxp-fspi.c nxp_fspi_irq_handler, 0, pdev->name, f); f 1020 drivers/spi/spi-nxp-fspi.c mutex_init(&f->lock); f 1026 drivers/spi/spi-nxp-fspi.c nxp_fspi_default_setup(f); f 1037 drivers/spi/spi-nxp-fspi.c mutex_destroy(&f->lock); f 1040 drivers/spi/spi-nxp-fspi.c nxp_fspi_clk_disable_unprep(f); f 1051 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = platform_get_drvdata(pdev); f 1054 drivers/spi/spi-nxp-fspi.c fspi_writel(f, FSPI_MCR0_MDIS, f->iobase + FSPI_MCR0); f 1056 drivers/spi/spi-nxp-fspi.c nxp_fspi_clk_disable_unprep(f); f 1058 drivers/spi/spi-nxp-fspi.c mutex_destroy(&f->lock); f 1070 drivers/spi/spi-nxp-fspi.c struct nxp_fspi *f = dev_get_drvdata(dev); f 1072 drivers/spi/spi-nxp-fspi.c nxp_fspi_default_setup(f); f 481 drivers/staging/android/ashmem.c struct file *f = range->asma->file; f 483 drivers/staging/android/ashmem.c get_file(f); f 490 drivers/staging/android/ashmem.c f->f_op->fallocate(f, f 493 drivers/staging/android/ashmem.c fput(f); f 341 drivers/staging/axis-fifo/axis-fifo.c static ssize_t axis_fifo_read(struct file *f, char __user *buf, f 344 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; f 437 drivers/staging/axis-fifo/axis-fifo.c static ssize_t axis_fifo_write(struct file *f, const char __user *buf, f 440 drivers/staging/axis-fifo/axis-fifo.c struct axis_fifo *fifo = (struct axis_fifo *)f->private_data; f 642 drivers/staging/axis-fifo/axis-fifo.c static int axis_fifo_open(struct inode *inod, struct file *f) f 646 drivers/staging/axis-fifo/axis-fifo.c f->private_data = fifo; f 648 drivers/staging/axis-fifo/axis-fifo.c if (((f->f_flags & O_ACCMODE) == O_WRONLY) || f 649 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { f 651 drivers/staging/axis-fifo/axis-fifo.c fifo->write_flags = f->f_flags; f 658 drivers/staging/axis-fifo/axis-fifo.c if (((f->f_flags & O_ACCMODE) == O_RDONLY) || f 659 drivers/staging/axis-fifo/axis-fifo.c ((f->f_flags & O_ACCMODE) == O_RDWR)) { f 661 drivers/staging/axis-fifo/axis-fifo.c fifo->read_flags = f->f_flags; f 671 drivers/staging/axis-fifo/axis-fifo.c static int axis_fifo_close(struct inode *inod, struct file *f) f 673 drivers/staging/axis-fifo/axis-fifo.c f->private_data = NULL; f 97 drivers/staging/comedi/drivers/dt2814.c unsigned int f; f 101 drivers/staging/comedi/drivers/dt2814.c f = 10000; /* ns */ f 103 drivers/staging/comedi/drivers/dt2814.c if ((2 * (*ns)) < (f * 11)) f 105 drivers/staging/comedi/drivers/dt2814.c f *= 10; f 108 drivers/staging/comedi/drivers/dt2814.c *ns = f; f 119 drivers/staging/greybus/gb-camera.h #define gb_camera_call(f, op, args...) \ f 120 drivers/staging/greybus/gb-camera.h (!(f) ? -ENODEV : (((f)->ops->op) ? \ f 121 drivers/staging/greybus/gb-camera.h (f)->ops->op((f)->priv, ##args) : -ENOIOCTLCMD)) f 537 drivers/staging/kpc2000/kpc2000_i2c.c u32 f = f 562 drivers/staging/kpc2000/kpc2000_i2c.c return f; f 186 drivers/staging/ks7010/ks_wlan_net.c int f = fwrq->freq.m / 100000; f 189 drivers/staging/ks7010/ks_wlan_net.c while ((c < 14) && (f != frequency_list[c])) f 221 drivers/staging/ks7010/ks_wlan_net.c int f; f 228 drivers/staging/ks7010/ks_wlan_net.c f = (int)priv->current_ap.channel; f 230 drivers/staging/ks7010/ks_wlan_net.c f = (int)priv->reg.channel; f 232 drivers/staging/ks7010/ks_wlan_net.c fwrq->freq.m = frequency_list[f - 1] * 100000; f 2383 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_fmtdesc *f) f 2385 drivers/staging/media/allegro-dvt/allegro-core.c if (f->index) f 2387 drivers/staging/media/allegro-dvt/allegro-core.c switch (f->type) { f 2389 drivers/staging/media/allegro-dvt/allegro-core.c f->pixelformat = V4L2_PIX_FMT_NV12; f 2392 drivers/staging/media/allegro-dvt/allegro-core.c f->pixelformat = V4L2_PIX_FMT_H264; f 2401 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_format *f) f 2405 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; f 2406 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = channel->width; f 2407 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = channel->height; f 2409 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.colorspace = channel->colorspace; f 2410 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.ycbcr_enc = channel->ycbcr_enc; f 2411 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.quantization = channel->quantization; f 2412 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.xfer_func = channel->xfer_func; f 2414 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = channel->codec; f 2415 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = 0; f 2416 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = channel->sizeimage_encoded; f 2422 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_format *f) f 2424 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; f 2426 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, f 2428 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, f 2431 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_H264; f 2432 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = 0; f 2433 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = f 2434 drivers/staging/media/allegro-dvt/allegro-core.c estimate_stream_size(f->fmt.pix.width, f->fmt.pix.height); f 2440 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_format *f) f 2444 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; f 2446 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = channel->width; f 2447 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = channel->height; f 2449 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.colorspace = channel->colorspace; f 2450 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.ycbcr_enc = channel->ycbcr_enc; f 2451 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.quantization = channel->quantization; f 2452 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.xfer_func = channel->xfer_func; f 2454 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = channel->pixelformat; f 2455 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = channel->stride; f 2456 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = channel->sizeimage_raw; f 2462 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_format *f) f 2464 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.field = V4L2_FIELD_NONE; f 2473 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.width = clamp_t(__u32, f->fmt.pix.width, f 2475 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.height = clamp_t(__u32, f->fmt.pix.height, f 2478 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_NV12; f 2479 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline = round_up(f->fmt.pix.width, 32); f 2480 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.sizeimage = f 2481 drivers/staging/media/allegro-dvt/allegro-core.c f->fmt.pix.bytesperline * f->fmt.pix.height * 3 / 2; f 2487 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_format *f) f 2492 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_try_fmt_vid_out(file, fh, f); f 2496 drivers/staging/media/allegro-dvt/allegro-core.c channel->width = f->fmt.pix.width; f 2497 drivers/staging/media/allegro-dvt/allegro-core.c channel->height = f->fmt.pix.height; f 2498 drivers/staging/media/allegro-dvt/allegro-core.c channel->stride = f->fmt.pix.bytesperline; f 2499 drivers/staging/media/allegro-dvt/allegro-core.c channel->sizeimage_raw = f->fmt.pix.sizeimage; f 2501 drivers/staging/media/allegro-dvt/allegro-core.c channel->colorspace = f->fmt.pix.colorspace; f 2502 drivers/staging/media/allegro-dvt/allegro-core.c channel->ycbcr_enc = f->fmt.pix.ycbcr_enc; f 2503 drivers/staging/media/allegro-dvt/allegro-core.c channel->quantization = f->fmt.pix.quantization; f 2504 drivers/staging/media/allegro-dvt/allegro-core.c channel->xfer_func = f->fmt.pix.xfer_func; f 120 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_fmtdesc *f, bool capture) f 146 drivers/staging/media/hantro/hantro_v4l2.c if (j == f->index) { f 148 drivers/staging/media/hantro/hantro_v4l2.c f->pixelformat = fmt->fourcc; f 157 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_fmtdesc *f) f 159 drivers/staging/media/hantro/hantro_v4l2.c return vidioc_enum_fmt(file, priv, f, true); f 163 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_fmtdesc *f) f 165 drivers/staging/media/hantro/hantro_v4l2.c return vidioc_enum_fmt(file, priv, f, false); f 169 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_format *f) f 171 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 174 drivers/staging/media/hantro/hantro_v4l2.c vpu_debug(4, "f->type = %d\n", f->type); f 182 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_format *f) f 184 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 187 drivers/staging/media/hantro/hantro_v4l2.c vpu_debug(4, "f->type = %d\n", f->type); f 194 drivers/staging/media/hantro/hantro_v4l2.c static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f, f 198 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 215 drivers/staging/media/hantro/hantro_v4l2.c f->fmt.pix_mp.pixelformat = fmt->fourcc; f 265 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_format *f) f 267 drivers/staging/media/hantro/hantro_v4l2.c return vidioc_try_fmt(file, priv, f, true); f 271 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_format *f) f 273 drivers/staging/media/hantro/hantro_v4l2.c return vidioc_try_fmt(file, priv, f, false); f 366 drivers/staging/media/hantro/hantro_v4l2.c vidioc_s_fmt_out_mplane(struct file *file, void *priv, struct v4l2_format *f) f 368 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 370 drivers/staging/media/hantro/hantro_v4l2.c struct vb2_queue *vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 375 drivers/staging/media/hantro/hantro_v4l2.c ret = vidioc_try_fmt_out_mplane(file, priv, f); f 440 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_format *f) f 442 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 450 drivers/staging/media/hantro/hantro_v4l2.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 471 drivers/staging/media/hantro/hantro_v4l2.c ret = vidioc_try_fmt_cap_mplane(file, priv, f); f 154 drivers/staging/media/imx/imx-media-capture.c struct v4l2_fmtdesc *f) f 175 drivers/staging/media/imx/imx-media-capture.c ret = imx_media_enum_format(&fourcc, f->index, cs_sel); f 184 drivers/staging/media/imx/imx-media-capture.c if (f->index != 0) f 189 drivers/staging/media/imx/imx-media-capture.c f->pixelformat = fourcc; f 195 drivers/staging/media/imx/imx-media-capture.c struct v4l2_format *f) f 199 drivers/staging/media/imx/imx-media-capture.c *f = priv->vdev.fmt; f 206 drivers/staging/media/imx/imx-media-capture.c struct v4l2_format *f, f 218 drivers/staging/media/imx/imx-media-capture.c fourcc = f->fmt.pix.pixelformat; f 235 drivers/staging/media/imx/imx-media-capture.c if (V4L2_FIELD_IS_INTERLACED(f->fmt.pix.field)) { f 248 drivers/staging/media/imx/imx-media-capture.c imx_media_mbus_fmt_to_pix_fmt(&f->fmt.pix, &fmt_src->format, cc); f 264 drivers/staging/media/imx/imx-media-capture.c struct v4l2_format *f) f 276 drivers/staging/media/imx/imx-media-capture.c return __capture_try_fmt_vid_cap(priv, &fmt_src, f, NULL, NULL); f 280 drivers/staging/media/imx/imx-media-capture.c struct v4l2_format *f) f 297 drivers/staging/media/imx/imx-media-capture.c ret = __capture_try_fmt_vid_cap(priv, &fmt_src, f, &priv->vdev.cc, f 302 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix = f->fmt.pix; f 537 drivers/staging/media/imx/imx-media-capture.c struct v4l2_format f; f 546 drivers/staging/media/imx/imx-media-capture.c v4l2_fill_pix_format(&f.fmt.pix, &fmt_src.format); f 548 drivers/staging/media/imx/imx-media-capture.c ret = __capture_try_fmt_vid_cap(priv, &fmt_src, &f, &cc, &compose); f 552 drivers/staging/media/imx/imx-media-capture.c return (priv->vdev.fmt.fmt.pix.width != f.fmt.pix.width || f 553 drivers/staging/media/imx/imx-media-capture.c priv->vdev.fmt.fmt.pix.height != f.fmt.pix.height || f 162 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_fmtdesc *f) f 167 drivers/staging/media/imx/imx-media-csc-scaler.c ret = imx_media_enum_format(&fourcc, f->index, CS_SEL_ANY); f 171 drivers/staging/media/imx/imx-media-csc-scaler.c f->pixelformat = fourcc; f 177 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_format *f) f 182 drivers/staging/media/imx/imx-media-csc-scaler.c q_data = get_q_data(ctx, f->type); f 184 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix = q_data->cur_fmt; f 190 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_format *f) f 193 drivers/staging/media/imx/imx-media-csc-scaler.c struct ipu_csc_scaler_q_data *q_data = get_q_data(ctx, f->type); f 197 drivers/staging/media/imx/imx-media-csc-scaler.c field = f->fmt.pix.field; f 203 drivers/staging/media/imx/imx-media-csc-scaler.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { f 207 drivers/staging/media/imx/imx-media-csc-scaler.c test_out.pix = f->fmt.pix; f 213 drivers/staging/media/imx/imx-media-csc-scaler.c test_in.pix = f->fmt.pix; f 219 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix = (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) ? f 222 drivers/staging/media/imx/imx-media-csc-scaler.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) { f 223 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.colorspace = q_data->cur_fmt.colorspace; f 224 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.ycbcr_enc = q_data->cur_fmt.ycbcr_enc; f 225 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.xfer_func = q_data->cur_fmt.xfer_func; f 226 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.quantization = q_data->cur_fmt.quantization; f 227 drivers/staging/media/imx/imx-media-csc-scaler.c } else if (f->fmt.pix.colorspace == V4L2_COLORSPACE_DEFAULT) { f 228 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; f 229 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; f 230 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.xfer_func = V4L2_XFER_FUNC_DEFAULT; f 231 drivers/staging/media/imx/imx-media-csc-scaler.c f->fmt.pix.quantization = V4L2_QUANTIZATION_DEFAULT; f 238 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_format *f) f 245 drivers/staging/media/imx/imx-media-csc-scaler.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 252 drivers/staging/media/imx/imx-media-csc-scaler.c q_data = get_q_data(ctx, f->type); f 254 drivers/staging/media/imx/imx-media-csc-scaler.c ret = ipu_csc_scaler_try_fmt(file, priv, f); f 258 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.width = f->fmt.pix.width; f 259 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.height = f->fmt.pix.height; f 260 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.pixelformat = f->fmt.pix.pixelformat; f 261 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.field = f->fmt.pix.field; f 262 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.bytesperline = f->fmt.pix.bytesperline; f 263 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.sizeimage = f->fmt.pix.sizeimage; f 271 drivers/staging/media/imx/imx-media-csc-scaler.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { f 273 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; f 274 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; f 275 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.xfer_func = f->fmt.pix.xfer_func; f 276 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.quantization = f->fmt.pix.quantization; f 279 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.colorspace = f->fmt.pix.colorspace; f 280 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; f 281 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.xfer_func = f->fmt.pix.xfer_func; f 282 drivers/staging/media/imx/imx-media-csc-scaler.c q_data->cur_fmt.quantization = f->fmt.pix.quantization; f 1740 drivers/staging/media/ipu3/ipu3-css-params.c const unsigned int f = IPU3_UAPI_ISP_VEC_ELEMS * 2; f 1776 drivers/staging/media/ipu3/ipu3-css-params.c ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, f); f 1781 drivers/staging/media/ipu3/ipu3-css-params.c (css_pipe->rect[IPU3_CSS_RECT_BDS].width / 2 & ~(f - 1)) + f; f 1787 drivers/staging/media/ipu3/ipu3-css-params.c if ((css_pipe->rect[IPU3_CSS_RECT_BDS].width / f & 1) != f 1788 drivers/staging/media/ipu3/ipu3-css-params.c !!(css_pipe->rect[IPU3_CSS_RECT_BDS].width & (f - 1))) f 1789 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.bds_out_stripes[0].width += f; f 1790 drivers/staging/media/ipu3/ipu3-css-params.c if ((css_pipe->rect[IPU3_CSS_RECT_BDS].width / f & 1) && f 1791 drivers/staging/media/ipu3/ipu3-css-params.c (css_pipe->rect[IPU3_CSS_RECT_BDS].width & (f - 1))) { f 1792 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.bds_out_stripes[0].width += f; f 1793 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.bds_out_stripes[1].width += f; f 1797 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.bds_out_stripes[0].width - 2 * f; f 1819 drivers/staging/media/ipu3/ipu3-css-params.c ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, f); f 1832 drivers/staging/media/ipu3/ipu3-css-params.c if (!IS_ALIGNED(css_pipe->rect[IPU3_CSS_RECT_BDS].width, f)) f 1835 drivers/staging/media/ipu3/ipu3-css-params.c & (f - 1)) - f; f 1851 drivers/staging/media/ipu3/ipu3-css-params.c ALIGN(css_pipe->rect[IPU3_CSS_RECT_BDS].width, 2 * f) / 2; f 1853 drivers/staging/media/ipu3/ipu3-css-params.c DIV_ROUND_UP(css_pipe->rect[IPU3_CSS_RECT_BDS].width, f) f 1854 drivers/staging/media/ipu3/ipu3-css-params.c / 2 * f; f 1859 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.down_scaled_stripes[0].width - f; f 1861 drivers/staging/media/ipu3/ipu3-css-params.c acc->stripe.down_scaled_stripes[1].width - f; f 126 drivers/staging/media/ipu3/ipu3-css.c struct v4l2_pix_format_mplane *const f = &queue->fmt.mpix; f 148 drivers/staging/media/ipu3/ipu3-css.c f->width = ALIGN(clamp_t(u32, f->width, f 150 drivers/staging/media/ipu3/ipu3-css.c f->height = ALIGN(clamp_t(u32, f->height, f 152 drivers/staging/media/ipu3/ipu3-css.c queue->width_pad = ALIGN(f->width, queue->css_fmt->width_align); f 154 drivers/staging/media/ipu3/ipu3-css.c f->plane_fmt[0].bytesperline = DIV_ROUND_UP(queue->width_pad * f 159 drivers/staging/media/ipu3/ipu3-css.c f->plane_fmt[0].bytesperline = f 160 drivers/staging/media/ipu3/ipu3-css.c DIV_ROUND_UP(f->width, f 164 drivers/staging/media/ipu3/ipu3-css.c sizeimage = f->height * f->plane_fmt[0].bytesperline; f 168 drivers/staging/media/ipu3/ipu3-css.c f->plane_fmt[0].sizeimage = sizeimage; f 169 drivers/staging/media/ipu3/ipu3-css.c f->field = V4L2_FIELD_NONE; f 170 drivers/staging/media/ipu3/ipu3-css.c f->num_planes = 1; f 171 drivers/staging/media/ipu3/ipu3-css.c f->colorspace = queue->css_fmt->colorspace; f 172 drivers/staging/media/ipu3/ipu3-css.c f->flags = 0; f 173 drivers/staging/media/ipu3/ipu3-css.c f->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; f 174 drivers/staging/media/ipu3/ipu3-css.c f->quantization = V4L2_QUANTIZATION_DEFAULT; f 175 drivers/staging/media/ipu3/ipu3-css.c f->xfer_func = V4L2_XFER_FUNC_DEFAULT; f 176 drivers/staging/media/ipu3/ipu3-css.c memset(f->reserved, 0, sizeof(f->reserved)); f 570 drivers/staging/media/ipu3/ipu3-v4l2.c static const struct imgu_fmt *find_format(struct v4l2_format *f, u32 type) f 575 drivers/staging/media/ipu3/ipu3-v4l2.c if (formats[i].fourcc == f->fmt.pix_mp.pixelformat && f 596 drivers/staging/media/ipu3/ipu3-v4l2.c static int enum_fmts(struct v4l2_fmtdesc *f, u32 type) f 602 drivers/staging/media/ipu3/ipu3-v4l2.c if (j == f->index) f 609 drivers/staging/media/ipu3/ipu3-v4l2.c f->pixelformat = formats[i].fourcc; f 617 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_fmtdesc *f) f 619 drivers/staging/media/ipu3/ipu3-v4l2.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 622 drivers/staging/media/ipu3/ipu3-v4l2.c return enum_fmts(f, VID_CAPTURE); f 626 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_fmtdesc *f) f 628 drivers/staging/media/ipu3/ipu3-v4l2.c if (f->type != V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 631 drivers/staging/media/ipu3/ipu3-v4l2.c return enum_fmts(f, VID_OUTPUT); f 636 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_format *f) f 640 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt = node->vdev_fmt.fmt; f 650 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_format *f, bool try) f 726 drivers/staging/media/ipu3/ipu3-v4l2.c *fmts[css_q] = f->fmt.pix_mp; f 738 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt.pix_mp = *fmts[css_q]; f 740 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt = imgu_pipe->nodes[node].vdev_fmt.fmt; f 751 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 753 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_pix_format_mplane *pixm = &f->fmt.pix_mp; f 756 drivers/staging/media/ipu3/ipu3-v4l2.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 757 drivers/staging/media/ipu3/ipu3-v4l2.c fmt = find_format(f, VID_CAPTURE); f 758 drivers/staging/media/ipu3/ipu3-v4l2.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 759 drivers/staging/media/ipu3/ipu3-v4l2.c fmt = find_format(f, VID_OUTPUT); f 772 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_format *f) f 777 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 783 drivers/staging/media/ipu3/ipu3-v4l2.c r = imgu_try_fmt(file, fh, f); f 787 drivers/staging/media/ipu3/ipu3-v4l2.c return imgu_fmt(imgu, node->pipe, node->id, f, true); f 790 drivers/staging/media/ipu3/ipu3-v4l2.c static int imgu_vidioc_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 795 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_pix_format_mplane *pix_mp = &f->fmt.pix_mp; f 801 drivers/staging/media/ipu3/ipu3-v4l2.c r = imgu_try_fmt(file, fh, f); f 805 drivers/staging/media/ipu3/ipu3-v4l2.c return imgu_fmt(imgu, node->pipe, node->id, f, false); f 836 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_format *f) f 840 drivers/staging/media/ipu3/ipu3-v4l2.c if (f->type != node->vbq.type) f 843 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt = node->vdev_fmt.fmt; f 1056 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_format *f) f 1066 drivers/staging/media/ipu3/ipu3-v4l2.c f->type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; f 1071 drivers/staging/media/ipu3/ipu3-v4l2.c f->type = V4L2_BUF_TYPE_META_OUTPUT; f 1072 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt.meta.dataformat = V4L2_META_FMT_IPU3_PARAMS; f 1074 drivers/staging/media/ipu3/ipu3-v4l2.c imgu_css_meta_fmt_set(&f->fmt.meta); f 1078 drivers/staging/media/ipu3/ipu3-v4l2.c f->type = V4L2_BUF_TYPE_META_CAPTURE; f 1079 drivers/staging/media/ipu3/ipu3-v4l2.c f->fmt.meta.dataformat = V4L2_META_FMT_IPU3_STAT_3A; f 1081 drivers/staging/media/ipu3/ipu3-v4l2.c imgu_css_meta_fmt_set(&f->fmt.meta); f 1085 drivers/staging/media/ipu3/ipu3-v4l2.c f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE; f 474 drivers/staging/media/meson/vdec/vdec.c struct v4l2_format *f) f 476 drivers/staging/media/meson/vdec/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 484 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 495 drivers/staging/media/meson/vdec/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 537 drivers/staging/media/meson/vdec/vdec.c static int vdec_try_fmt(struct file *file, void *fh, struct v4l2_format *f) f 542 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, sess->core->platform->num_formats, f); f 547 drivers/staging/media/meson/vdec/vdec.c static int vdec_g_fmt(struct file *file, void *fh, struct v4l2_format *f) f 551 drivers/staging/media/meson/vdec/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 553 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 555 drivers/staging/media/meson/vdec/vdec.c else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 558 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 565 drivers/staging/media/meson/vdec/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 570 drivers/staging/media/meson/vdec/vdec.c vdec_try_fmt_common(sess, sess->core->platform->num_formats, f); f 575 drivers/staging/media/meson/vdec/vdec.c static int vdec_s_fmt(struct file *file, void *fh, struct v4l2_format *f) f 579 drivers/staging/media/meson/vdec/vdec.c struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; f 588 drivers/staging/media/meson/vdec/vdec.c fmt_out = vdec_try_fmt_common(sess, num_formats, f); f 590 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 593 drivers/staging/media/meson/vdec/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 606 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 626 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) f 628 drivers/staging/media/meson/vdec/vdec.c else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) f 634 drivers/staging/media/meson/vdec/vdec.c static int vdec_enum_fmt(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 641 drivers/staging/media/meson/vdec/vdec.c memset(f->reserved, 0, sizeof(f->reserved)); f 643 drivers/staging/media/meson/vdec/vdec.c if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { f 644 drivers/staging/media/meson/vdec/vdec.c if (f->index >= platform->num_formats) f 647 drivers/staging/media/meson/vdec/vdec.c fmt_out = &platform->formats[f->index]; f 648 drivers/staging/media/meson/vdec/vdec.c f->pixelformat = fmt_out->pixfmt; f 649 drivers/staging/media/meson/vdec/vdec.c f->flags = fmt_out->flags; f 650 drivers/staging/media/meson/vdec/vdec.c } else if (f->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) { f 652 drivers/staging/media/meson/vdec/vdec.c if (f->index >= 4 || !fmt_out->pixfmts_cap[f->index]) f 655 drivers/staging/media/meson/vdec/vdec.c f->pixelformat = fmt_out->pixfmts_cap[f->index]; f 747 drivers/staging/media/meson/vdec/vdec.c struct v4l2_fract *f) f 755 drivers/staging/media/meson/vdec/vdec.c *f = sess->pixelaspect; f 543 drivers/staging/media/omap4iss/iss_video.c iss_video_enum_format(struct file *file, void *fh, struct v4l2_fmtdesc *f) f 547 drivers/staging/media/omap4iss/iss_video.c unsigned int index = f->index; f 551 drivers/staging/media/omap4iss/iss_video.c if (f->type != video->type) f 565 drivers/staging/media/omap4iss/iss_video.c f->pixelformat = info->pixelformat; f 216 drivers/staging/media/soc_camera/soc_camera.c unsigned long f, flags = cfg->flags; f 220 drivers/staging/media/soc_camera/soc_camera.c f = flags & (V4L2_MBUS_HSYNC_ACTIVE_HIGH | V4L2_MBUS_HSYNC_ACTIVE_LOW); f 221 drivers/staging/media/soc_camera/soc_camera.c if (f == V4L2_MBUS_HSYNC_ACTIVE_HIGH || f == V4L2_MBUS_HSYNC_ACTIVE_LOW) f 226 drivers/staging/media/soc_camera/soc_camera.c f = flags & (V4L2_MBUS_VSYNC_ACTIVE_HIGH | V4L2_MBUS_VSYNC_ACTIVE_LOW); f 227 drivers/staging/media/soc_camera/soc_camera.c if (f == V4L2_MBUS_VSYNC_ACTIVE_HIGH || f == V4L2_MBUS_VSYNC_ACTIVE_LOW) f 232 drivers/staging/media/soc_camera/soc_camera.c f = flags & (V4L2_MBUS_PCLK_SAMPLE_RISING | V4L2_MBUS_PCLK_SAMPLE_FALLING); f 233 drivers/staging/media/soc_camera/soc_camera.c if (f == V4L2_MBUS_PCLK_SAMPLE_RISING || f == V4L2_MBUS_PCLK_SAMPLE_FALLING) f 245 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format *f) f 249 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 261 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->try_fmt(icd, f); f 286 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format *f) f 293 drivers/staging/media/soc_camera/soc_camera.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) f 297 drivers/staging/media/soc_camera/soc_camera.c return soc_camera_try_fmt(icd, f); f 530 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format *f) f 533 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 540 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_try_fmt(icd, f); f 544 drivers/staging/media/soc_camera/soc_camera.c ret = ici->ops->set_fmt(icd, f); f 659 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format f = { f 697 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_set_fmt(icd, &f); f 831 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format *f) f 838 drivers/staging/media/soc_camera/soc_camera.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) { f 839 drivers/staging/media/soc_camera/soc_camera.c dev_warn(icd->pdev, "Wrong buf-type %d\n", f->type); f 851 drivers/staging/media/soc_camera/soc_camera.c ret = soc_camera_set_fmt(icd, f); f 860 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_fmtdesc *f) f 867 drivers/staging/media/soc_camera/soc_camera.c if (f->index >= icd->num_user_formats) f 870 drivers/staging/media/soc_camera/soc_camera.c format = icd->user_formats[f->index].host_fmt; f 872 drivers/staging/media/soc_camera/soc_camera.c f->pixelformat = format->fourcc; f 877 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_format *f) f 880 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_pix_format *pix = &f->fmt.pix; f 884 drivers/staging/media/soc_camera/soc_camera.c if (f->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) f 162 drivers/staging/media/sunxi/cedrus/cedrus_video.c static int cedrus_enum_fmt(struct file *file, struct v4l2_fmtdesc *f, f 184 drivers/staging/media/sunxi/cedrus/cedrus_video.c if (index == f->index) f 192 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->pixelformat = cedrus_formats[i].pixelformat; f 201 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_fmtdesc *f) f 203 drivers/staging/media/sunxi/cedrus/cedrus_video.c return cedrus_enum_fmt(file, f, CEDRUS_DECODE_DST); f 207 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_fmtdesc *f) f 209 drivers/staging/media/sunxi/cedrus/cedrus_video.c return cedrus_enum_fmt(file, f, CEDRUS_DECODE_SRC); f 213 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 219 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_SUNXI_TILED_NV12; f 220 drivers/staging/media/sunxi/cedrus/cedrus_video.c cedrus_prepare_format(&f->fmt.pix); f 225 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix = ctx->dst_fmt; f 231 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 237 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG2_SLICE; f 238 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix.sizeimage = SZ_1K; f 239 drivers/staging/media/sunxi/cedrus/cedrus_video.c cedrus_prepare_format(&f->fmt.pix); f 244 drivers/staging/media/sunxi/cedrus/cedrus_video.c f->fmt.pix = ctx->src_fmt; f 250 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 254 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_pix_format *pix_fmt = &f->fmt.pix; f 266 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 270 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_pix_format *pix_fmt = &f->fmt.pix; f 286 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 293 drivers/staging/media/sunxi/cedrus/cedrus_video.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 297 drivers/staging/media/sunxi/cedrus/cedrus_video.c ret = cedrus_try_fmt_vid_cap(file, priv, f); f 301 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt = f->fmt.pix; f 309 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_format *f) f 315 drivers/staging/media/sunxi/cedrus/cedrus_video.c vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type); f 319 drivers/staging/media/sunxi/cedrus/cedrus_video.c ret = cedrus_try_fmt_vid_out(file, priv, f); f 323 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->src_fmt = f->fmt.pix; f 326 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.colorspace = f->fmt.pix.colorspace; f 327 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.xfer_func = f->fmt.pix.xfer_func; f 328 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.ycbcr_enc = f->fmt.pix.ycbcr_enc; f 329 drivers/staging/media/sunxi/cedrus/cedrus_video.c ctx->dst_fmt.quantization = f->fmt.pix.quantization; f 217 drivers/staging/most/video/video.c static void comp_set_format_struct(struct v4l2_format *f) f 219 drivers/staging/most/video/video.c f->fmt.pix.width = 8; f 220 drivers/staging/most/video/video.c f->fmt.pix.height = 8; f 221 drivers/staging/most/video/video.c f->fmt.pix.pixelformat = V4L2_PIX_FMT_MPEG; f 222 drivers/staging/most/video/video.c f->fmt.pix.bytesperline = 0; f 223 drivers/staging/most/video/video.c f->fmt.pix.sizeimage = 188 * 2; f 224 drivers/staging/most/video/video.c f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; f 225 drivers/staging/most/video/video.c f->fmt.pix.field = V4L2_FIELD_NONE; f 226 drivers/staging/most/video/video.c f->fmt.pix.priv = 0; f 257 drivers/staging/most/video/video.c struct v4l2_fmtdesc *f) f 259 drivers/staging/most/video/video.c if (f->index) f 262 drivers/staging/most/video/video.c strcpy(f->description, "MPEG"); f 263 drivers/staging/most/video/video.c f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE; f 264 drivers/staging/most/video/video.c f->flags = V4L2_FMT_FLAG_COMPRESSED; f 265 drivers/staging/most/video/video.c f->pixelformat = V4L2_PIX_FMT_MPEG; f 271 drivers/staging/most/video/video.c struct v4l2_format *f) f 273 drivers/staging/most/video/video.c comp_set_format_struct(f); f 278 drivers/staging/most/video/video.c struct v4l2_format *f) f 283 drivers/staging/most/video/video.c return comp_set_format(mdev, VIDIOC_TRY_FMT, f); f 287 drivers/staging/most/video/video.c struct v4l2_format *f) f 292 drivers/staging/most/video/video.c return comp_set_format(mdev, VIDIOC_S_FMT, f); f 196 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c struct rt2880_pmx_func **f; f 221 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f = p->func = devm_kcalloc(p->dev, f 227 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c if (!f || !gpio_func.groups) f 235 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c] = &gpio_func; f 241 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c] = &p->groups[i].func[j]; f 242 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c]->groups = devm_kzalloc(p->dev, sizeof(int), f 244 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c]->groups[0] = i; f 245 drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c f[c]->group_count = 1; f 226 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c u8 acm = pAciAifsn->f.acm; f 489 drivers/staging/rtl8192e/rtl819x_BAProc.c pTS->TsCommonInfo.TSpec.f.TSInfo.field.ucTSID; f 79 drivers/staging/rtl8192e/rtl819x_Qos.h } f; f 172 drivers/staging/rtl8192e/rtl819x_Qos.h } f; f 254 drivers/staging/rtl8192e/rtl819x_TSProc.c pRet->TSpec.f.TSInfo.field.ucTSID == TID && f 255 drivers/staging/rtl8192e/rtl819x_TSProc.c pRet->TSpec.f.TSInfo.field.ucDirection == dir) f 296 drivers/staging/rtl8192e/rtl819x_TSProc.c union qos_tsinfo *pTSInfo = &TSpec.f.TSInfo; f 46 drivers/staging/rtl8192e/rtllib_softmac_wx.c int f = fwrq->m / 100000; f 49 drivers/staging/rtl8192e/rtllib_softmac_wx.c while ((c < 14) && (f != rtllib_wlan_frequencies[c])) f 524 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_ERROR(f, a...) printk(KERN_ERR "ieee80211: " f, ## a) f 525 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_WARNING(f, a...) printk(KERN_WARNING "ieee80211: " f, ## a) f 526 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_INFO(f, a...) IEEE80211_DEBUG(IEEE80211_DL_INFO, f, ## a) f 528 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_WX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_WX, f, ## a) f 529 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_SCAN(f, a...) IEEE80211_DEBUG(IEEE80211_DL_SCAN, f, ## a) f 530 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_STATE(f, a...) IEEE80211_DEBUG(IEEE80211_DL_STATE, f, ## a) f 531 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_MGMT(f, a...) IEEE80211_DEBUG(IEEE80211_DL_MGMT, f, ## a) f 532 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_FRAG(f, a...) IEEE80211_DEBUG(IEEE80211_DL_FRAG, f, ## a) f 533 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_EAP(f, a...) IEEE80211_DEBUG(IEEE80211_DL_EAP, f, ## a) f 534 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_DROP(f, a...) IEEE80211_DEBUG(IEEE80211_DL_DROP, f, ## a) f 535 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_TX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_TX, f, ## a) f 536 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_RX(f, a...) IEEE80211_DEBUG(IEEE80211_DL_RX, f, ## a) f 537 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_DEBUG_QOS(f, a...) IEEE80211_DEBUG(IEEE80211_DL_QOS, f, ## a) f 47 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c int f = fwrq->m / 100000; f 50 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac_wx.c while ((c < 14) && (f != ieee80211_wlan_frequencies[c])) f 670 drivers/staging/rtl8712/rtl871x_ioctl_linux.c int f = fwrq->m / 100000; f 673 drivers/staging/rtl8712/rtl871x_ioctl_linux.c while ((c < 14) && (f != frequency_list[c])) f 475 drivers/staging/rtl8723bs/include/rtw_xmit.h #define rtw_wlan_pkt_size(f) rtw_calculate_wlan_pkt_size_by_attribue(&f->attrib) f 181 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static struct mmal_fmt *get_format(struct v4l2_format *f) f 188 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (fmt->fourcc == f->fmt.pix.pixelformat) f 685 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_fmtdesc *f) f 689 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->index >= ARRAY_SIZE(formats)) f 692 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c fmt = &formats[f->index]; f 694 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->pixelformat = fmt->fourcc; f 700 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 704 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win = dev->overlay; f 710 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 714 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.field = V4L2_FIELD_NONE; f 715 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.chromakey = 0; f 716 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.clips = NULL; f 717 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.clipcount = 0; f 718 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.bitmap = NULL; f 720 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.win.w.width, MIN_WIDTH, dev->max_width, 1, f 721 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win.w.height, MIN_HEIGHT, dev->max_height, f 723 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.win.w.left, MIN_WIDTH, dev->max_width, 1, f 724 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win.w.top, MIN_HEIGHT, dev->max_height, f 729 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.w.width, f->fmt.win.w.height, f 730 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.win.w.left, f->fmt.win.w.top); f 735 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.win, f 741 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 745 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c vidioc_try_fmt_vid_overlay(file, priv, f); f 747 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c dev->overlay = f->fmt.win; f 756 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c static int vidioc_overlay(struct file *file, void *f, unsigned int on) f 886 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_fmtdesc *f) f 890 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->index >= ARRAY_SIZE(formats)) f 893 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c fmt = &formats[f->index]; f 895 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->pixelformat = fmt->fourcc; f 901 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 905 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width = dev->capture.width; f 906 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height = dev->capture.height; f 907 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.field = V4L2_FIELD_NONE; f 908 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = dev->capture.fmt->fourcc; f 909 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = dev->capture.stride; f 910 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = dev->capture.buffersize; f 913 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; f 915 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 917 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 918 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.priv = 0; f 920 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix, f 926 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 931 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c mfmt = get_format(f); f 935 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); f 936 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = formats[0].fourcc; f 937 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c mfmt = get_format(f); f 940 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.field = V4L2_FIELD_NONE; f 944 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.pixelformat); f 946 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l_bound_align_image(&f->fmt.pix.width, MIN_WIDTH, dev->max_width, 1, f 947 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c &f->fmt.pix.height, MIN_HEIGHT, dev->max_height, f 949 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = f->fmt.pix.width * mfmt->ybbp; f 956 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = f 957 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c ((f->fmt.pix.width + 15) & ~15) * 3; f 965 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline = f 966 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (f->fmt.pix.bytesperline + align_mask) & f 971 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.bytesperline); f 977 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = ((f->fmt.pix.height + 15) & ~15) * f 978 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (((f->fmt.pix.width + 31) & ~31) * mfmt->depth) >> 3; f 981 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage < MIN_BUFFER_SIZE) f 982 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage = MIN_BUFFER_SIZE; f 984 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_RGB24) f 985 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SRGB; f 986 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c else if (f->fmt.pix.pixelformat == V4L2_PIX_FMT_JPEG) f 987 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_JPEG; f 989 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; f 990 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.priv = 0; f 994 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, f->fmt.pix.pixelformat); f 996 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix, f 1002 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 1007 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct mmal_fmt *mfmt = get_format(f); f 1034 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c if (f->fmt.pix.width <= max_video_width && f 1035 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height <= max_video_height) f 1081 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.width = f->fmt.pix.width; f 1082 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.height = f->fmt.pix.height; f 1085 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.crop.width = f->fmt.pix.width; f 1086 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->es.video.crop.height = f->fmt.pix.height; f 1115 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.width = f->fmt.pix.width; f 1116 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.height = f->fmt.pix.height; f 1119 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.crop.width = f->fmt.pix.width; f 1120 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c preview_port->es.video.crop.height = f->fmt.pix.height; f 1141 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f->fmt.pix.height, f 1142 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); f 1169 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.width = f->fmt.pix.width; f 1170 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.height = f->fmt.pix.height; f 1173 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.crop.width = f->fmt.pix.width; f 1174 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c port->es.video.crop.height = f->fmt.pix.height; f 1201 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.width, f 1202 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.height, f 1203 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat f 1222 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage; f 1228 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage, f 1231 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (f->fmt.pix.sizeimage < f 1233 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c (100 << 10) : f->fmt.pix.sizeimage; f 1238 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.sizeimage); f 1244 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c camera_port->current_buffer.size = f->fmt.pix.sizeimage; f 1250 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c dev->capture.stride = f->fmt.pix.bytesperline; f 1273 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_format *f) f 1280 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c ret = vidioc_try_fmt_vid_cap(file, priv, f); f 1296 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c mfmt = get_format(f); f 1300 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat); f 1301 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c f->fmt.pix.pixelformat = formats[0].fourcc; f 1302 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c mfmt = get_format(f); f 1305 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c ret = mmal_setup_components(dev, f); f 45 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c static int debugfs_log_show(struct seq_file *f, void *offset) f 47 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c int *levp = f->private; f 67 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c seq_printf(f, "%s\n", log_value ? log_value : "(null)"); f 81 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c struct seq_file *f = (struct seq_file *)file->private_data; f 82 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c int *levp = f->private; f 118 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c static int debugfs_usecount_show(struct seq_file *f, void *offset) f 120 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c VCHIQ_INSTANCE_T instance = f->private; f 124 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c seq_printf(f, "%d\n", use_count); f 130 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c static int debugfs_trace_show(struct seq_file *f, void *offset) f 132 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c VCHIQ_INSTANCE_T instance = f->private; f 136 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c seq_printf(f, "%s\n", trace ? "Y" : "N"); f 150 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c struct seq_file *f = (struct seq_file *)file->private_data; f 151 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_debugfs.c VCHIQ_INSTANCE_T instance = f->private; f 97 drivers/staging/wilc1000/wilc_wlan.c struct tcp_ack_filter *f = &vif->ack_filter; f 99 drivers/staging/wilc1000/wilc_wlan.c if (f->tcp_session < 2 * MAX_TCP_SESSION) { f 100 drivers/staging/wilc1000/wilc_wlan.c f->ack_session_info[f->tcp_session].seq_num = seq; f 101 drivers/staging/wilc1000/wilc_wlan.c f->ack_session_info[f->tcp_session].bigger_ack_num = 0; f 102 drivers/staging/wilc1000/wilc_wlan.c f->ack_session_info[f->tcp_session].src_port = src_prt; f 103 drivers/staging/wilc1000/wilc_wlan.c f->ack_session_info[f->tcp_session].dst_port = dst_prt; f 104 drivers/staging/wilc1000/wilc_wlan.c f->tcp_session++; f 110 drivers/staging/wilc1000/wilc_wlan.c struct tcp_ack_filter *f = &vif->ack_filter; f 113 drivers/staging/wilc1000/wilc_wlan.c ack > f->ack_session_info[index].bigger_ack_num) f 114 drivers/staging/wilc1000/wilc_wlan.c f->ack_session_info[index].bigger_ack_num = ack; f 121 drivers/staging/wilc1000/wilc_wlan.c struct tcp_ack_filter *f = &vif->ack_filter; f 122 drivers/staging/wilc1000/wilc_wlan.c u32 i = f->pending_base + f->pending_acks_idx; f 125 drivers/staging/wilc1000/wilc_wlan.c f->pending_acks[i].ack_num = ack; f 126 drivers/staging/wilc1000/wilc_wlan.c f->pending_acks[i].txqe = txqe; f 127 drivers/staging/wilc1000/wilc_wlan.c f->pending_acks[i].session_index = session_index; f 129 drivers/staging/wilc1000/wilc_wlan.c f->pending_acks_idx++; f 141 drivers/staging/wilc1000/wilc_wlan.c struct tcp_ack_filter *f = &vif->ack_filter; f 166 drivers/staging/wilc1000/wilc_wlan.c for (i = 0; i < f->tcp_session; i++) { f 167 drivers/staging/wilc1000/wilc_wlan.c u32 j = f->ack_session_info[i].seq_num; f 175 drivers/staging/wilc1000/wilc_wlan.c if (i == f->tcp_session) f 189 drivers/staging/wilc1000/wilc_wlan.c struct tcp_ack_filter *f = &vif->ack_filter; f 195 drivers/staging/wilc1000/wilc_wlan.c for (i = f->pending_base; f 196 drivers/staging/wilc1000/wilc_wlan.c i < (f->pending_base + f->pending_acks_idx); i++) { f 203 drivers/staging/wilc1000/wilc_wlan.c index = f->pending_acks[i].session_index; f 208 drivers/staging/wilc1000/wilc_wlan.c bigger_ack_num = f->ack_session_info[index].bigger_ack_num; f 210 drivers/staging/wilc1000/wilc_wlan.c if (f->pending_acks[i].ack_num < bigger_ack_num) { f 213 drivers/staging/wilc1000/wilc_wlan.c tqe = f->pending_acks[i].txqe; f 225 drivers/staging/wilc1000/wilc_wlan.c f->pending_acks_idx = 0; f 226 drivers/staging/wilc1000/wilc_wlan.c f->tcp_session = 0; f 228 drivers/staging/wilc1000/wilc_wlan.c if (f->pending_base == 0) f 229 drivers/staging/wilc1000/wilc_wlan.c f->pending_base = MAX_TCP_SESSION; f 231 drivers/staging/wilc1000/wilc_wlan.c f->pending_base = 0; f 125 drivers/staging/wlan-ng/hfa384x.h #define HFA384x_ADDR_CMD_MKPAGE(f) \ f 126 drivers/staging/wlan-ng/hfa384x.h ((u16)((((u32)(f)) & HFA384x_ADDR_FLAT_CMD_PAGE_MASK) >> 16)) f 127 drivers/staging/wlan-ng/hfa384x.h #define HFA384x_ADDR_CMD_MKOFF(f) \ f 128 drivers/staging/wlan-ng/hfa384x.h ((u16)(((u32)(f)) & HFA384x_ADDR_FLAT_CMD_OFF_MASK)) f 500 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_beacon(struct wlan_fr_beacon *f); f 501 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_beacon(struct wlan_fr_beacon *f); f 502 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_disassoc(struct wlan_fr_disassoc *f); f 503 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_disassoc(struct wlan_fr_disassoc *f); f 504 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_assocreq(struct wlan_fr_assocreq *f); f 505 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_assocreq(struct wlan_fr_assocreq *f); f 506 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_assocresp(struct wlan_fr_assocresp *f); f 507 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_assocresp(struct wlan_fr_assocresp *f); f 508 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_reassocreq(struct wlan_fr_reassocreq *f); f 509 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_reassocreq(struct wlan_fr_reassocreq *f); f 510 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_reassocresp(struct wlan_fr_reassocresp *f); f 511 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_reassocresp(struct wlan_fr_reassocresp *f); f 512 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_probereq(struct wlan_fr_probereq *f); f 513 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_probereq(struct wlan_fr_probereq *f); f 514 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_proberesp(struct wlan_fr_proberesp *f); f 515 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_proberesp(struct wlan_fr_proberesp *f); f 516 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_authen(struct wlan_fr_authen *f); f 517 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_authen(struct wlan_fr_authen *f); f 518 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_encode_deauthen(struct wlan_fr_deauthen *f); f 519 drivers/staging/wlan-ng/p80211mgmt.h void wlan_mgmt_decode_deauthen(struct wlan_fr_deauthen *f); f 818 drivers/target/target_core_file.c struct file *f = fd_dev->fd_file; f 819 drivers/target/target_core_file.c struct inode *i = f->f_mapping->host; f 299 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c static long acpi_thermal_rel_ioctl(struct file *f, unsigned int cmd, f 290 drivers/thermal/ti-soc-thermal/ti-bandgap.h #define TI_BANDGAP_HAS(b, f) \ f 291 drivers/thermal/ti-soc-thermal/ti-bandgap.h ((b)->conf->features & TI_BANDGAP_FEATURE_ ## f) f 2409 drivers/tty/n_gsm.c char *f; f 2417 drivers/tty/n_gsm.c for (i = count, dp = cp, f = fp; i; i--, dp++) { f 2418 drivers/tty/n_gsm.c if (f) f 2419 drivers/tty/n_gsm.c flags = *f++; f 1271 drivers/tty/n_r3964.c char *f, flags = TTY_NORMAL; f 1274 drivers/tty/n_r3964.c for (i = count, p = cp, f = fp; i; i--, p++) { f 1275 drivers/tty/n_r3964.c if (f) f 1276 drivers/tty/n_r3964.c flags = *f++; f 85 drivers/tty/n_tty.c # define n_tty_trace(f, args...) trace_printk(f, ##args) f 87 drivers/tty/n_tty.c # define n_tty_trace(f, args...) f 35 drivers/tty/pty.c # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) f 37 drivers/tty/pty.c # define tty_debug_hangup(tty, f, args...) do {} while (0) f 542 drivers/tty/serial/max310x.c static int max310x_update_best_err(unsigned long f, long *besterr) f 545 drivers/tty/serial/max310x.c long err = f % (460800 * 16); f 458 drivers/tty/tty_buffer.c char *f, int count) f 461 drivers/tty/tty_buffer.c count = ld->ops->receive_buf2(ld->tty, p, f, count); f 465 drivers/tty/tty_buffer.c ld->ops->receive_buf(ld->tty, p, f, count); f 475 drivers/tty/tty_buffer.c char *f = NULL; f 479 drivers/tty/tty_buffer.c f = flag_buf_ptr(head, head->read); f 481 drivers/tty/tty_buffer.c n = port->client_ops->receive_buf(port, p, f, count); f 113 drivers/tty/tty_io.c # define tty_debug_hangup(tty, f, args...) tty_debug(tty, f, ##args) f 115 drivers/tty/tty_io.c # define tty_debug_hangup(tty, f, args...) do { } while (0) f 569 drivers/tty/tty_io.c struct file *filp, *f = NULL; f 580 drivers/tty/tty_io.c f = redirect; f 657 drivers/tty/tty_io.c if (f) f 658 drivers/tty/tty_io.c fput(f); f 2297 drivers/tty/tty_io.c struct file *f; f 2299 drivers/tty/tty_io.c f = redirect; f 2302 drivers/tty/tty_io.c if (f) f 2303 drivers/tty/tty_io.c fput(f); f 31 drivers/tty/tty_ioctl.c # define tty_debug_wait_until_sent(tty, f, args...) tty_debug(tty, f, ##args) f 33 drivers/tty/tty_ioctl.c # define tty_debug_wait_until_sent(tty, f, args...) do {} while (0) f 26 drivers/tty/tty_ldisc.c #define tty_ldisc_debug(tty, f, args...) tty_debug(tty, f, ##args) f 28 drivers/tty/tty_ldisc.c #define tty_ldisc_debug(tty, f, args...) f 24 drivers/tty/tty_port.c const unsigned char *f, size_t count) f 38 drivers/tty/tty_port.c ret = tty_ldisc_receive_buf(disc, p, (char *)f, count); f 81 drivers/tty/vcc.c #define vccdbg(f, a...) \ f 84 drivers/tty/vcc.c pr_info(f, ## a); \ f 387 drivers/usb/atm/ueagle-atm.c #define E1_FUNCTION_TYPE(f) ((f) >> 4) f 388 drivers/usb/atm/ueagle-atm.c #define E1_FUNCTION_SUBTYPE(f) ((f) & 0x0f) f 392 drivers/usb/atm/ueagle-atm.c #define E4_FUNCTION_TYPE(f) ((f) >> 8) f 393 drivers/usb/atm/ueagle-atm.c #define E4_FUNCTION_SIZE(f) ((f) & 0x0f) f 394 drivers/usb/atm/ueagle-atm.c #define E4_FUNCTION_SUBTYPE(f) (((f) >> 4) & 0x0f) f 107 drivers/usb/early/xhci-dbc.c static u32 __init xdbc_find_dbgp(int xdbc_num, u32 *b, u32 *d, u32 *f) f 124 drivers/usb/early/xhci-dbc.c *f = func; f 60 drivers/usb/gadget/composite.c function_descriptors(struct usb_function *f, f 72 drivers/usb/gadget/composite.c descriptors = f->ssp_descriptors; f 77 drivers/usb/gadget/composite.c descriptors = f->ss_descriptors; f 82 drivers/usb/gadget/composite.c descriptors = f->hs_descriptors; f 87 drivers/usb/gadget/composite.c descriptors = f->fs_descriptors; f 146 drivers/usb/gadget/composite.c struct usb_function *f, f 157 drivers/usb/gadget/composite.c if (!g || !f || !_ep) f 164 drivers/usb/gadget/composite.c speed_desc = f->ssp_descriptors; f 171 drivers/usb/gadget/composite.c speed_desc = f->ss_descriptors; f 178 drivers/usb/gadget/composite.c speed_desc = f->hs_descriptors; f 183 drivers/usb/gadget/composite.c speed_desc = f->fs_descriptors; f 309 drivers/usb/gadget/composite.c void usb_remove_function(struct usb_configuration *c, struct usb_function *f) f 311 drivers/usb/gadget/composite.c if (f->disable) f 312 drivers/usb/gadget/composite.c f->disable(f); f 314 drivers/usb/gadget/composite.c bitmap_zero(f->endpoints, 32); f 315 drivers/usb/gadget/composite.c list_del(&f->list); f 316 drivers/usb/gadget/composite.c if (f->unbind) f 317 drivers/usb/gadget/composite.c f->unbind(c, f); f 319 drivers/usb/gadget/composite.c if (f->bind_deactivated) f 320 drivers/usb/gadget/composite.c usb_function_activate(f); f 456 drivers/usb/gadget/composite.c struct usb_function *f; f 482 drivers/usb/gadget/composite.c list_for_each_entry(f, &config->functions, list) { f 485 drivers/usb/gadget/composite.c descriptors = function_descriptors(f, speed); f 754 drivers/usb/gadget/composite.c struct usb_function *f; f 758 drivers/usb/gadget/composite.c list_for_each_entry(f, &cdev->config->functions, list) { f 759 drivers/usb/gadget/composite.c if (f->disable) f 760 drivers/usb/gadget/composite.c f->disable(f); f 762 drivers/usb/gadget/composite.c bitmap_zero(f->endpoints, 32); f 811 drivers/usb/gadget/composite.c struct usb_function *f = c->interface[tmp]; f 814 drivers/usb/gadget/composite.c if (!f) f 823 drivers/usb/gadget/composite.c descriptors = function_descriptors(f, gadget->speed); f 835 drivers/usb/gadget/composite.c set_bit(addr, f->endpoints); f 838 drivers/usb/gadget/composite.c result = f->set_alt(f, tmp, 0); f 841 drivers/usb/gadget/composite.c tmp, f->name, f, result); f 850 drivers/usb/gadget/composite.c __func__, tmp, f->name); f 935 drivers/usb/gadget/composite.c struct usb_function *f; f 937 drivers/usb/gadget/composite.c f = list_first_entry(&config->functions, f 939 drivers/usb/gadget/composite.c list_del(&f->list); f 940 drivers/usb/gadget/composite.c if (f->unbind) { f 942 drivers/usb/gadget/composite.c f->name, f); f 943 drivers/usb/gadget/composite.c f->unbind(config, f); f 964 drivers/usb/gadget/composite.c struct usb_function *f = config->interface[i]; f 966 drivers/usb/gadget/composite.c if (!f) f 969 drivers/usb/gadget/composite.c i, f->name, f); f 988 drivers/usb/gadget/composite.c struct usb_function *f; f 990 drivers/usb/gadget/composite.c f = list_first_entry(&config->functions, f 993 drivers/usb/gadget/composite.c usb_remove_function(config, f); f 1081 drivers/usb/gadget/composite.c struct usb_function *f; f 1106 drivers/usb/gadget/composite.c list_for_each_entry(f, &c->functions, list) { f 1107 drivers/usb/gadget/composite.c sp = f->strings; f 1165 drivers/usb/gadget/composite.c list_for_each_entry(f, &c->functions, list) { f 1166 drivers/usb/gadget/composite.c if (!f->strings) f 1168 drivers/usb/gadget/composite.c len = lookup_string(f->strings, buf, language, id); f 1432 drivers/usb/gadget/composite.c struct usb_function *f; f 1435 drivers/usb/gadget/composite.c f = c->interface[i]; f 1436 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { f 1439 drivers/usb/gadget/composite.c if (i != f->os_desc_table[j].if_id) f 1441 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; f 1457 drivers/usb/gadget/composite.c struct usb_function *f; f 1460 drivers/usb/gadget/composite.c f = c->interface[i]; f 1461 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { f 1464 drivers/usb/gadget/composite.c if (i != f->os_desc_table[j].if_id) f 1466 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; f 1488 drivers/usb/gadget/composite.c struct usb_function *f; f 1491 drivers/usb/gadget/composite.c f = c->interface[interface]; f 1492 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { f 1495 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) f 1497 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; f 1506 drivers/usb/gadget/composite.c struct usb_function *f; f 1511 drivers/usb/gadget/composite.c f = c->interface[interface]; f 1512 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { f 1513 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) f 1515 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; f 1524 drivers/usb/gadget/composite.c struct usb_function *f; f 1529 drivers/usb/gadget/composite.c f = c->interface[interface]; f 1532 drivers/usb/gadget/composite.c for (j = 0; j < f->os_desc_n; ++j) { f 1533 drivers/usb/gadget/composite.c if (interface != f->os_desc_table[j].if_id) f 1535 drivers/usb/gadget/composite.c d = f->os_desc_table[j].os_desc; f 1594 drivers/usb/gadget/composite.c struct usb_function *f = NULL; f 1736 drivers/usb/gadget/composite.c f = cdev->config->interface[intf]; f 1737 drivers/usb/gadget/composite.c if (!f) f 1745 drivers/usb/gadget/composite.c if (w_value && !f->get_alt) f 1749 drivers/usb/gadget/composite.c value = f->set_alt(f, w_index, w_value); f 1753 drivers/usb/gadget/composite.c __func__, intf, f->name); f 1765 drivers/usb/gadget/composite.c f = cdev->config->interface[intf]; f 1766 drivers/usb/gadget/composite.c if (!f) f 1769 drivers/usb/gadget/composite.c value = f->get_alt ? f->get_alt(f, w_index) : 0; f 1801 drivers/usb/gadget/composite.c f = cdev->config->interface[intf]; f 1802 drivers/usb/gadget/composite.c if (!f) f 1804 drivers/usb/gadget/composite.c status = f->get_status ? f->get_status(f) : 0; f 1824 drivers/usb/gadget/composite.c f = cdev->config->interface[intf]; f 1825 drivers/usb/gadget/composite.c if (!f) f 1828 drivers/usb/gadget/composite.c if (f->func_suspend) f 1829 drivers/usb/gadget/composite.c value = f->func_suspend(f, w_index >> 8); f 1911 drivers/usb/gadget/composite.c list_for_each_entry(f, &cdev->config->functions, list) f 1912 drivers/usb/gadget/composite.c if (f->req_match && f 1913 drivers/usb/gadget/composite.c f->req_match(f, ctrl, false)) f 1918 drivers/usb/gadget/composite.c list_for_each_entry(f, &c->functions, list) f 1919 drivers/usb/gadget/composite.c if (f->req_match && f 1920 drivers/usb/gadget/composite.c f->req_match(f, ctrl, true)) f 1923 drivers/usb/gadget/composite.c f = NULL; f 1929 drivers/usb/gadget/composite.c f = cdev->config->interface[intf]; f 1936 drivers/usb/gadget/composite.c list_for_each_entry(f, &cdev->config->functions, list) { f 1937 drivers/usb/gadget/composite.c if (test_bit(endp, f->endpoints)) f 1940 drivers/usb/gadget/composite.c if (&f->list == &cdev->config->functions) f 1941 drivers/usb/gadget/composite.c f = NULL; f 1945 drivers/usb/gadget/composite.c if (f && f->setup) f 1946 drivers/usb/gadget/composite.c value = f->setup(f, ctrl); f 1963 drivers/usb/gadget/composite.c f = list_first_entry(&c->functions, struct usb_function, f 1965 drivers/usb/gadget/composite.c if (f->setup) f 1966 drivers/usb/gadget/composite.c value = f->setup(f, ctrl); f 2270 drivers/usb/gadget/composite.c struct usb_function *f; f 2277 drivers/usb/gadget/composite.c list_for_each_entry(f, &cdev->config->functions, list) { f 2278 drivers/usb/gadget/composite.c if (f->suspend) f 2279 drivers/usb/gadget/composite.c f->suspend(f); f 2294 drivers/usb/gadget/composite.c struct usb_function *f; f 2304 drivers/usb/gadget/composite.c list_for_each_entry(f, &cdev->config->functions, list) { f 2305 drivers/usb/gadget/composite.c if (f->resume) f 2306 drivers/usb/gadget/composite.c f->resume(f); f 159 drivers/usb/gadget/config.c int usb_assign_descriptors(struct usb_function *f, f 165 drivers/usb/gadget/config.c struct usb_gadget *g = f->config->cdev->gadget; f 168 drivers/usb/gadget/config.c f->fs_descriptors = usb_copy_descriptors(fs); f 169 drivers/usb/gadget/config.c if (!f->fs_descriptors) f 173 drivers/usb/gadget/config.c f->hs_descriptors = usb_copy_descriptors(hs); f 174 drivers/usb/gadget/config.c if (!f->hs_descriptors) f 178 drivers/usb/gadget/config.c f->ss_descriptors = usb_copy_descriptors(ss); f 179 drivers/usb/gadget/config.c if (!f->ss_descriptors) f 183 drivers/usb/gadget/config.c f->ssp_descriptors = usb_copy_descriptors(ssp); f 184 drivers/usb/gadget/config.c if (!f->ssp_descriptors) f 189 drivers/usb/gadget/config.c usb_free_all_descriptors(f); f 194 drivers/usb/gadget/config.c void usb_free_all_descriptors(struct usb_function *f) f 196 drivers/usb/gadget/config.c usb_free_descriptors(f->fs_descriptors); f 197 drivers/usb/gadget/config.c usb_free_descriptors(f->hs_descriptors); f 198 drivers/usb/gadget/config.c usb_free_descriptors(f->ss_descriptors); f 199 drivers/usb/gadget/config.c usb_free_descriptors(f->ssp_descriptors); f 379 drivers/usb/gadget/configfs.c struct usb_function *f; f 397 drivers/usb/gadget/configfs.c list_for_each_entry(f, &cfg->func_list, list) { f 398 drivers/usb/gadget/configfs.c if (f->fi == fi) { f 404 drivers/usb/gadget/configfs.c f = usb_get_function(fi); f 405 drivers/usb/gadget/configfs.c if (IS_ERR(f)) { f 406 drivers/usb/gadget/configfs.c ret = PTR_ERR(f); f 411 drivers/usb/gadget/configfs.c list_add_tail(&f->list, &cfg->func_list); f 429 drivers/usb/gadget/configfs.c struct usb_function *f; f 442 drivers/usb/gadget/configfs.c list_for_each_entry(f, &cfg->func_list, list) { f 443 drivers/usb/gadget/configfs.c if (f->fi == fi) { f 444 drivers/usb/gadget/configfs.c list_del(&f->list); f 445 drivers/usb/gadget/configfs.c usb_put_function(f); f 1215 drivers/usb/gadget/configfs.c struct usb_function *f, *tmp; f 1220 drivers/usb/gadget/configfs.c list_for_each_entry_safe(f, tmp, &c->functions, list) { f 1222 drivers/usb/gadget/configfs.c list_move_tail(&f->list, &cfg->func_list); f 1223 drivers/usb/gadget/configfs.c if (f->unbind) { f 1226 drivers/usb/gadget/configfs.c f->name, f); f 1227 drivers/usb/gadget/configfs.c f->unbind(c, f); f 1330 drivers/usb/gadget/configfs.c struct usb_function *f; f 1355 drivers/usb/gadget/configfs.c list_for_each_entry_safe(f, tmp, &cfg->func_list, list) { f 1356 drivers/usb/gadget/configfs.c list_del(&f->list); f 1357 drivers/usb/gadget/configfs.c ret = usb_add_function(c, f); f 1359 drivers/usb/gadget/configfs.c list_add(&f->list, &cfg->func_list); f 74 drivers/usb/gadget/function/f_acm.c static inline struct f_acm *func_to_acm(struct usb_function *f) f 76 drivers/usb/gadget/function/f_acm.c return container_of(f, struct f_acm, port.func); f 336 drivers/usb/gadget/function/f_acm.c static int acm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 338 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 339 drivers/usb/gadget/function/f_acm.c struct usb_composite_dev *cdev = f->config->cdev; f 420 drivers/usb/gadget/function/f_acm.c static int acm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 422 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 423 drivers/usb/gadget/function/f_acm.c struct usb_composite_dev *cdev = f->config->cdev; f 433 drivers/usb/gadget/function/f_acm.c if (config_ep_by_speed(cdev->gadget, f, acm->notify)) f 447 drivers/usb/gadget/function/f_acm.c if (config_ep_by_speed(cdev->gadget, f, f 449 drivers/usb/gadget/function/f_acm.c config_ep_by_speed(cdev->gadget, f, f 464 drivers/usb/gadget/function/f_acm.c static void acm_disable(struct usb_function *f) f 466 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 467 drivers/usb/gadget/function/f_acm.c struct usb_composite_dev *cdev = f->config->cdev; f 606 drivers/usb/gadget/function/f_acm.c acm_bind(struct usb_configuration *c, struct usb_function *f) f 609 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 628 drivers/usb/gadget/function/f_acm.c status = usb_interface_id(c, f); f 637 drivers/usb/gadget/function/f_acm.c status = usb_interface_id(c, f); f 686 drivers/usb/gadget/function/f_acm.c status = usb_assign_descriptors(f, acm_fs_function, acm_hs_function, f 704 drivers/usb/gadget/function/f_acm.c ERROR(cdev, "%s/%p: can't bind, err %d\n", f->name, f, status); f 709 drivers/usb/gadget/function/f_acm.c static void acm_unbind(struct usb_configuration *c, struct usb_function *f) f 711 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 714 drivers/usb/gadget/function/f_acm.c usb_free_all_descriptors(f); f 719 drivers/usb/gadget/function/f_acm.c static void acm_free_func(struct usb_function *f) f 721 drivers/usb/gadget/function/f_acm.c struct f_acm *acm = func_to_acm(f); f 63 drivers/usb/gadget/function/f_ecm.c static inline struct f_ecm *func_to_ecm(struct usb_function *f) f 65 drivers/usb/gadget/function/f_ecm.c return container_of(f, struct f_ecm, port.func); f 468 drivers/usb/gadget/function/f_ecm.c static int ecm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 470 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 471 drivers/usb/gadget/function/f_ecm.c struct usb_composite_dev *cdev = f->config->cdev; f 533 drivers/usb/gadget/function/f_ecm.c static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 535 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 536 drivers/usb/gadget/function/f_ecm.c struct usb_composite_dev *cdev = f->config->cdev; f 547 drivers/usb/gadget/function/f_ecm.c if (config_ep_by_speed(cdev->gadget, f, ecm->notify)) f 565 drivers/usb/gadget/function/f_ecm.c if (config_ep_by_speed(cdev->gadget, f, f 567 drivers/usb/gadget/function/f_ecm.c config_ep_by_speed(cdev->gadget, f, f 611 drivers/usb/gadget/function/f_ecm.c static int ecm_get_alt(struct usb_function *f, unsigned intf) f 613 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 620 drivers/usb/gadget/function/f_ecm.c static void ecm_disable(struct usb_function *f) f 622 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 623 drivers/usb/gadget/function/f_ecm.c struct usb_composite_dev *cdev = f->config->cdev; f 683 drivers/usb/gadget/function/f_ecm.c ecm_bind(struct usb_configuration *c, struct usb_function *f) f 686 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 696 drivers/usb/gadget/function/f_ecm.c ecm_opts = container_of(f->fi, struct f_ecm_opts, func_inst); f 727 drivers/usb/gadget/function/f_ecm.c status = usb_interface_id(c, f); f 736 drivers/usb/gadget/function/f_ecm.c status = usb_interface_id(c, f); f 793 drivers/usb/gadget/function/f_ecm.c status = usb_assign_descriptors(f, ecm_fs_function, ecm_hs_function, f 819 drivers/usb/gadget/function/f_ecm.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 859 drivers/usb/gadget/function/f_ecm.c static void ecm_free_inst(struct usb_function_instance *f) f 863 drivers/usb/gadget/function/f_ecm.c opts = container_of(f, struct f_ecm_opts, func_inst); f 892 drivers/usb/gadget/function/f_ecm.c static void ecm_free(struct usb_function *f) f 897 drivers/usb/gadget/function/f_ecm.c ecm = func_to_ecm(f); f 898 drivers/usb/gadget/function/f_ecm.c opts = container_of(f->fi, struct f_ecm_opts, func_inst); f 905 drivers/usb/gadget/function/f_ecm.c static void ecm_unbind(struct usb_configuration *c, struct usb_function *f) f 907 drivers/usb/gadget/function/f_ecm.c struct f_ecm *ecm = func_to_ecm(f); f 911 drivers/usb/gadget/function/f_ecm.c usb_free_all_descriptors(f); f 33 drivers/usb/gadget/function/f_eem.c static inline struct f_eem *func_to_eem(struct usb_function *f) f 35 drivers/usb/gadget/function/f_eem.c return container_of(f, struct f_eem, port.func); f 166 drivers/usb/gadget/function/f_eem.c static int eem_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 168 drivers/usb/gadget/function/f_eem.c struct usb_composite_dev *cdev = f->config->cdev; f 182 drivers/usb/gadget/function/f_eem.c static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 184 drivers/usb/gadget/function/f_eem.c struct f_eem *eem = func_to_eem(f); f 185 drivers/usb/gadget/function/f_eem.c struct usb_composite_dev *cdev = f->config->cdev; f 198 drivers/usb/gadget/function/f_eem.c if (config_ep_by_speed(cdev->gadget, f, f 200 drivers/usb/gadget/function/f_eem.c config_ep_by_speed(cdev->gadget, f, f 225 drivers/usb/gadget/function/f_eem.c static void eem_disable(struct usb_function *f) f 227 drivers/usb/gadget/function/f_eem.c struct f_eem *eem = func_to_eem(f); f 228 drivers/usb/gadget/function/f_eem.c struct usb_composite_dev *cdev = f->config->cdev; f 240 drivers/usb/gadget/function/f_eem.c static int eem_bind(struct usb_configuration *c, struct usb_function *f) f 243 drivers/usb/gadget/function/f_eem.c struct f_eem *eem = func_to_eem(f); f 250 drivers/usb/gadget/function/f_eem.c eem_opts = container_of(f->fi, struct f_eem_opts, func_inst); f 275 drivers/usb/gadget/function/f_eem.c status = usb_interface_id(c, f); f 306 drivers/usb/gadget/function/f_eem.c status = usb_assign_descriptors(f, eem_fs_function, eem_hs_function, f 318 drivers/usb/gadget/function/f_eem.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 559 drivers/usb/gadget/function/f_eem.c static void eem_free_inst(struct usb_function_instance *f) f 563 drivers/usb/gadget/function/f_eem.c opts = container_of(f, struct f_eem_opts, func_inst); f 592 drivers/usb/gadget/function/f_eem.c static void eem_free(struct usb_function *f) f 597 drivers/usb/gadget/function/f_eem.c eem = func_to_eem(f); f 598 drivers/usb/gadget/function/f_eem.c opts = container_of(f->fi, struct f_eem_opts, func_inst); f 605 drivers/usb/gadget/function/f_eem.c static void eem_unbind(struct usb_configuration *c, struct usb_function *f) f 609 drivers/usb/gadget/function/f_eem.c usb_free_all_descriptors(f); f 81 drivers/usb/gadget/function/f_fs.c static struct ffs_function *ffs_func_from_usb(struct usb_function *f) f 83 drivers/usb/gadget/function/f_fs.c return container_of(f, struct ffs_function, function); f 3043 drivers/usb/gadget/function/f_fs.c static inline struct f_fs_opts *ffs_do_functionfs_bind(struct usb_function *f, f 3046 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3048 drivers/usb/gadget/function/f_fs.c container_of(f->fi, struct f_fs_opts, func_inst); f 3091 drivers/usb/gadget/function/f_fs.c struct usb_function *f) f 3093 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3254 drivers/usb/gadget/function/f_fs.c struct usb_function *f) f 3256 drivers/usb/gadget/function/f_fs.c struct f_fs_opts *ffs_opts = ffs_do_functionfs_bind(f, c); f 3257 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3263 drivers/usb/gadget/function/f_fs.c ret = _ffs_func_bind(c, f); f 3280 drivers/usb/gadget/function/f_fs.c static int ffs_func_set_alt(struct usb_function *f, f 3283 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3319 drivers/usb/gadget/function/f_fs.c static void ffs_func_disable(struct usb_function *f) f 3321 drivers/usb/gadget/function/f_fs.c ffs_func_set_alt(f, 0, (unsigned)-1); f 3324 drivers/usb/gadget/function/f_fs.c static int ffs_func_setup(struct usb_function *f, f 3327 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3384 drivers/usb/gadget/function/f_fs.c static bool ffs_func_req_match(struct usb_function *f, f 3388 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3406 drivers/usb/gadget/function/f_fs.c static void ffs_func_suspend(struct usb_function *f) f 3409 drivers/usb/gadget/function/f_fs.c ffs_event_add(ffs_func_from_usb(f)->ffs, FUNCTIONFS_SUSPEND); f 3412 drivers/usb/gadget/function/f_fs.c static void ffs_func_resume(struct usb_function *f) f 3415 drivers/usb/gadget/function/f_fs.c ffs_event_add(ffs_func_from_usb(f)->ffs, FUNCTIONFS_RESUME); f 3517 drivers/usb/gadget/function/f_fs.c static void ffs_free_inst(struct usb_function_instance *f) f 3521 drivers/usb/gadget/function/f_fs.c opts = to_f_fs_opts(f); f 3561 drivers/usb/gadget/function/f_fs.c static void ffs_free(struct usb_function *f) f 3563 drivers/usb/gadget/function/f_fs.c kfree(ffs_func_from_usb(f)); f 3567 drivers/usb/gadget/function/f_fs.c struct usb_function *f) f 3569 drivers/usb/gadget/function/f_fs.c struct ffs_function *func = ffs_func_from_usb(f); f 3572 drivers/usb/gadget/function/f_fs.c container_of(f->fi, struct f_fs_opts, func_inst); f 68 drivers/usb/gadget/function/f_hid.c static inline struct f_hidg *func_to_hidg(struct usb_function *f) f 70 drivers/usb/gadget/function/f_hid.c return container_of(f, struct f_hidg, func); f 496 drivers/usb/gadget/function/f_hid.c static int hidg_setup(struct usb_function *f, f 499 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = func_to_hidg(f); f 500 drivers/usb/gadget/function/f_hid.c struct usb_composite_dev *cdev = f->config->cdev; f 608 drivers/usb/gadget/function/f_hid.c static void hidg_disable(struct usb_function *f) f 610 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = func_to_hidg(f); f 635 drivers/usb/gadget/function/f_hid.c static int hidg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 637 drivers/usb/gadget/function/f_hid.c struct usb_composite_dev *cdev = f->config->cdev; f 638 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = func_to_hidg(f); f 649 drivers/usb/gadget/function/f_hid.c status = config_ep_by_speed(f->config->cdev->gadget, f, f 674 drivers/usb/gadget/function/f_hid.c status = config_ep_by_speed(f->config->cdev->gadget, f, f 744 drivers/usb/gadget/function/f_hid.c static int hidg_bind(struct usb_configuration *c, struct usb_function *f) f 747 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = func_to_hidg(f); f 761 drivers/usb/gadget/function/f_hid.c status = usb_interface_id(c, f); f 810 drivers/usb/gadget/function/f_hid.c status = usb_assign_descriptors(f, hidg_fs_descriptors, f 841 drivers/usb/gadget/function/f_hid.c usb_free_all_descriptors(f); f 843 drivers/usb/gadget/function/f_hid.c ERROR(f->config->cdev, "hidg_bind FAILED\n"); f 1002 drivers/usb/gadget/function/f_hid.c static void hidg_free_inst(struct usb_function_instance *f) f 1006 drivers/usb/gadget/function/f_hid.c opts = container_of(f, struct f_hid_opts, func_inst); f 1061 drivers/usb/gadget/function/f_hid.c static void hidg_free(struct usb_function *f) f 1066 drivers/usb/gadget/function/f_hid.c hidg = func_to_hidg(f); f 1067 drivers/usb/gadget/function/f_hid.c opts = container_of(f->fi, struct f_hid_opts, func_inst); f 1075 drivers/usb/gadget/function/f_hid.c static void hidg_unbind(struct usb_configuration *c, struct usb_function *f) f 1077 drivers/usb/gadget/function/f_hid.c struct f_hidg *hidg = func_to_hidg(f); f 1082 drivers/usb/gadget/function/f_hid.c usb_free_all_descriptors(f); f 38 drivers/usb/gadget/function/f_loopback.c static inline struct f_loopback *func_to_loop(struct usb_function *f) f 40 drivers/usb/gadget/function/f_loopback.c return container_of(f, struct f_loopback, function); f 166 drivers/usb/gadget/function/f_loopback.c static int loopback_bind(struct usb_configuration *c, struct usb_function *f) f 169 drivers/usb/gadget/function/f_loopback.c struct f_loopback *loop = func_to_loop(f); f 174 drivers/usb/gadget/function/f_loopback.c id = usb_interface_id(c, f); f 191 drivers/usb/gadget/function/f_loopback.c f->name, cdev->gadget->name); f 209 drivers/usb/gadget/function/f_loopback.c ret = usb_assign_descriptors(f, fs_loopback_descs, hs_loopback_descs, f 217 drivers/usb/gadget/function/f_loopback.c f->name, loop->in_ep->name, loop->out_ep->name); f 221 drivers/usb/gadget/function/f_loopback.c static void lb_free_func(struct usb_function *f) f 225 drivers/usb/gadget/function/f_loopback.c opts = container_of(f->fi, struct f_lb_opts, func_inst); f 231 drivers/usb/gadget/function/f_loopback.c usb_free_all_descriptors(f); f 232 drivers/usb/gadget/function/f_loopback.c kfree(func_to_loop(f)); f 407 drivers/usb/gadget/function/f_loopback.c static int loopback_set_alt(struct usb_function *f, f 410 drivers/usb/gadget/function/f_loopback.c struct f_loopback *loop = func_to_loop(f); f 411 drivers/usb/gadget/function/f_loopback.c struct usb_composite_dev *cdev = f->config->cdev; f 418 drivers/usb/gadget/function/f_loopback.c static void loopback_disable(struct usb_function *f) f 420 drivers/usb/gadget/function/f_loopback.c struct f_loopback *loop = func_to_loop(f); f 348 drivers/usb/gadget/function/f_mass_storage.c static inline struct fsg_dev *fsg_from_func(struct usb_function *f) f 350 drivers/usb/gadget/function/f_mass_storage.c return container_of(f, struct fsg_dev, function); f 486 drivers/usb/gadget/function/f_mass_storage.c static int fsg_setup(struct usb_function *f, f 489 drivers/usb/gadget/function/f_mass_storage.c struct fsg_dev *fsg = fsg_from_func(f); f 2292 drivers/usb/gadget/function/f_mass_storage.c static int fsg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 2294 drivers/usb/gadget/function/f_mass_storage.c struct fsg_dev *fsg = fsg_from_func(f); f 2300 drivers/usb/gadget/function/f_mass_storage.c static void fsg_disable(struct usb_function *f) f 2302 drivers/usb/gadget/function/f_mass_storage.c struct fsg_dev *fsg = fsg_from_func(f); f 2894 drivers/usb/gadget/function/f_mass_storage.c static int fsg_bind(struct usb_configuration *c, struct usb_function *f) f 2896 drivers/usb/gadget/function/f_mass_storage.c struct fsg_dev *fsg = fsg_from_func(f); f 2912 drivers/usb/gadget/function/f_mass_storage.c opts = fsg_opts_from_func_inst(f->fi); f 2939 drivers/usb/gadget/function/f_mass_storage.c i = usb_interface_id(c, f); f 2973 drivers/usb/gadget/function/f_mass_storage.c ret = usb_assign_descriptors(f, fsg_fs_function, fsg_hs_function, f 2994 drivers/usb/gadget/function/f_mass_storage.c static void fsg_unbind(struct usb_configuration *c, struct usb_function *f) f 2996 drivers/usb/gadget/function/f_mass_storage.c struct fsg_dev *fsg = fsg_from_func(f); f 3395 drivers/usb/gadget/function/f_mass_storage.c static void fsg_free(struct usb_function *f) f 3400 drivers/usb/gadget/function/f_mass_storage.c fsg = container_of(f, struct fsg_dev, function); f 3401 drivers/usb/gadget/function/f_mass_storage.c opts = container_of(f->fi, struct fsg_opts, func_inst); f 105 drivers/usb/gadget/function/f_midi.c static inline struct f_midi *func_to_midi(struct usb_function *f) f 107 drivers/usb/gadget/function/f_midi.c return container_of(f, struct f_midi, func); f 112 drivers/usb/gadget/function/f_midi.c static void f_midi_free_inst(struct usb_function_instance *f); f 338 drivers/usb/gadget/function/f_midi.c struct usb_function *f, f 342 drivers/usb/gadget/function/f_midi.c struct usb_composite_dev *cdev = f->config->cdev; f 346 drivers/usb/gadget/function/f_midi.c err = config_ep_by_speed(midi->gadget, f, ep); f 363 drivers/usb/gadget/function/f_midi.c static int f_midi_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 365 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = func_to_midi(f); f 373 drivers/usb/gadget/function/f_midi.c err = f_midi_start_ep(midi, f, midi->in_ep); f 377 drivers/usb/gadget/function/f_midi.c err = f_midi_start_ep(midi, f, midi->out_ep); f 417 drivers/usb/gadget/function/f_midi.c static void f_midi_disable(struct usb_function *f) f 419 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = func_to_midi(f); f 420 drivers/usb/gadget/function/f_midi.c struct usb_composite_dev *cdev = f->config->cdev; f 865 drivers/usb/gadget/function/f_midi.c static int f_midi_bind(struct usb_configuration *c, struct usb_function *f) f 873 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = func_to_midi(f); f 893 drivers/usb/gadget/function/f_midi.c status = usb_interface_id(c, f); f 898 drivers/usb/gadget/function/f_midi.c status = usb_interface_id(c, f); f 1020 drivers/usb/gadget/function/f_midi.c f->fs_descriptors = usb_copy_descriptors(midi_function); f 1021 drivers/usb/gadget/function/f_midi.c if (!f->fs_descriptors) f 1027 drivers/usb/gadget/function/f_midi.c f->hs_descriptors = usb_copy_descriptors(midi_function); f 1028 drivers/usb/gadget/function/f_midi.c if (!f->hs_descriptors) f 1048 drivers/usb/gadget/function/f_midi.c f->ss_descriptors = usb_copy_descriptors(midi_function); f 1049 drivers/usb/gadget/function/f_midi.c if (!f->ss_descriptors) f 1059 drivers/usb/gadget/function/f_midi.c usb_free_all_descriptors(f); f 1063 drivers/usb/gadget/function/f_midi.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 1199 drivers/usb/gadget/function/f_midi.c static void f_midi_free_inst(struct usb_function_instance *f) f 1204 drivers/usb/gadget/function/f_midi.c opts = container_of(f, struct f_midi_opts, func_inst); f 1243 drivers/usb/gadget/function/f_midi.c static void f_midi_free(struct usb_function *f) f 1249 drivers/usb/gadget/function/f_midi.c midi = func_to_midi(f); f 1250 drivers/usb/gadget/function/f_midi.c opts = container_of(f->fi, struct f_midi_opts, func_inst); f 1269 drivers/usb/gadget/function/f_midi.c static void f_midi_unbind(struct usb_configuration *c, struct usb_function *f) f 1271 drivers/usb/gadget/function/f_midi.c struct usb_composite_dev *cdev = f->config->cdev; f 1272 drivers/usb/gadget/function/f_midi.c struct f_midi *midi = func_to_midi(f); f 1278 drivers/usb/gadget/function/f_midi.c f_midi_disable(f); f 1285 drivers/usb/gadget/function/f_midi.c usb_free_all_descriptors(f); f 80 drivers/usb/gadget/function/f_ncm.c static inline struct f_ncm *func_to_ncm(struct usb_function *f) f 82 drivers/usb/gadget/function/f_ncm.c return container_of(f, struct f_ncm, port.func); f 658 drivers/usb/gadget/function/f_ncm.c struct usb_function *f = req->context; f 659 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 660 drivers/usb/gadget/function/f_ncm.c struct usb_composite_dev *cdev = f->config->cdev; f 684 drivers/usb/gadget/function/f_ncm.c static int ncm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 686 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 687 drivers/usb/gadget/function/f_ncm.c struct usb_composite_dev *cdev = f->config->cdev; f 755 drivers/usb/gadget/function/f_ncm.c req->context = f; f 864 drivers/usb/gadget/function/f_ncm.c static int ncm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 866 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 867 drivers/usb/gadget/function/f_ncm.c struct usb_composite_dev *cdev = f->config->cdev; f 879 drivers/usb/gadget/function/f_ncm.c if (config_ep_by_speed(cdev->gadget, f, ncm->notify)) f 907 drivers/usb/gadget/function/f_ncm.c if (config_ep_by_speed(cdev->gadget, f, f 909 drivers/usb/gadget/function/f_ncm.c config_ep_by_speed(cdev->gadget, f, f 947 drivers/usb/gadget/function/f_ncm.c static int ncm_get_alt(struct usb_function *f, unsigned intf) f 949 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 1319 drivers/usb/gadget/function/f_ncm.c static void ncm_disable(struct usb_function *f) f 1321 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 1322 drivers/usb/gadget/function/f_ncm.c struct usb_composite_dev *cdev = f->config->cdev; f 1386 drivers/usb/gadget/function/f_ncm.c static int ncm_bind(struct usb_configuration *c, struct usb_function *f) f 1389 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 1398 drivers/usb/gadget/function/f_ncm.c ncm_opts = container_of(f->fi, struct f_ncm_opts, func_inst); f 1401 drivers/usb/gadget/function/f_ncm.c f->os_desc_table = kzalloc(sizeof(*f->os_desc_table), f 1403 drivers/usb/gadget/function/f_ncm.c if (!f->os_desc_table) f 1405 drivers/usb/gadget/function/f_ncm.c f->os_desc_n = 1; f 1406 drivers/usb/gadget/function/f_ncm.c f->os_desc_table[0].os_desc = &ncm_opts->ncm_os_desc; f 1438 drivers/usb/gadget/function/f_ncm.c status = usb_interface_id(c, f); f 1448 drivers/usb/gadget/function/f_ncm.c f->os_desc_table[0].if_id = f 1451 drivers/usb/gadget/function/f_ncm.c status = usb_interface_id(c, f); f 1505 drivers/usb/gadget/function/f_ncm.c status = usb_assign_descriptors(f, ncm_fs_function, ncm_hs_function, f 1530 drivers/usb/gadget/function/f_ncm.c kfree(f->os_desc_table); f 1531 drivers/usb/gadget/function/f_ncm.c f->os_desc_n = 0; f 1538 drivers/usb/gadget/function/f_ncm.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 1578 drivers/usb/gadget/function/f_ncm.c static void ncm_free_inst(struct usb_function_instance *f) f 1582 drivers/usb/gadget/function/f_ncm.c opts = container_of(f, struct f_ncm_opts, func_inst); f 1629 drivers/usb/gadget/function/f_ncm.c static void ncm_free(struct usb_function *f) f 1634 drivers/usb/gadget/function/f_ncm.c ncm = func_to_ncm(f); f 1635 drivers/usb/gadget/function/f_ncm.c opts = container_of(f->fi, struct f_ncm_opts, func_inst); f 1642 drivers/usb/gadget/function/f_ncm.c static void ncm_unbind(struct usb_configuration *c, struct usb_function *f) f 1644 drivers/usb/gadget/function/f_ncm.c struct f_ncm *ncm = func_to_ncm(f); f 1650 drivers/usb/gadget/function/f_ncm.c kfree(f->os_desc_table); f 1651 drivers/usb/gadget/function/f_ncm.c f->os_desc_n = 0; f 1654 drivers/usb/gadget/function/f_ncm.c usb_free_all_descriptors(f); f 37 drivers/usb/gadget/function/f_obex.c static inline struct f_obex *func_to_obex(struct usb_function *f) f 39 drivers/usb/gadget/function/f_obex.c return container_of(f, struct f_obex, port.func); f 189 drivers/usb/gadget/function/f_obex.c static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 191 drivers/usb/gadget/function/f_obex.c struct f_obex *obex = func_to_obex(f); f 192 drivers/usb/gadget/function/f_obex.c struct usb_composite_dev *cdev = f->config->cdev; f 214 drivers/usb/gadget/function/f_obex.c if (config_ep_by_speed(cdev->gadget, f, f 216 drivers/usb/gadget/function/f_obex.c config_ep_by_speed(cdev->gadget, f, f 241 drivers/usb/gadget/function/f_obex.c static int obex_get_alt(struct usb_function *f, unsigned intf) f 243 drivers/usb/gadget/function/f_obex.c struct f_obex *obex = func_to_obex(f); f 248 drivers/usb/gadget/function/f_obex.c static void obex_disable(struct usb_function *f) f 250 drivers/usb/gadget/function/f_obex.c struct f_obex *obex = func_to_obex(f); f 251 drivers/usb/gadget/function/f_obex.c struct usb_composite_dev *cdev = f->config->cdev; f 302 drivers/usb/gadget/function/f_obex.c static int obex_bind(struct usb_configuration *c, struct usb_function *f) f 305 drivers/usb/gadget/function/f_obex.c struct f_obex *obex = func_to_obex(f); f 323 drivers/usb/gadget/function/f_obex.c status = usb_interface_id(c, f); f 331 drivers/usb/gadget/function/f_obex.c status = usb_interface_id(c, f); f 363 drivers/usb/gadget/function/f_obex.c status = usb_assign_descriptors(f, fs_function, hs_function, NULL, f 376 drivers/usb/gadget/function/f_obex.c ERROR(cdev, "%s/%p: can't bind, err %d\n", f->name, f, status); f 416 drivers/usb/gadget/function/f_obex.c static void obex_free_inst(struct usb_function_instance *f) f 420 drivers/usb/gadget/function/f_obex.c opts = container_of(f, struct f_serial_opts, func_inst); f 446 drivers/usb/gadget/function/f_obex.c static void obex_free(struct usb_function *f) f 450 drivers/usb/gadget/function/f_obex.c obex = func_to_obex(f); f 454 drivers/usb/gadget/function/f_obex.c static void obex_unbind(struct usb_configuration *c, struct usb_function *f) f 456 drivers/usb/gadget/function/f_obex.c usb_free_all_descriptors(f); f 56 drivers/usb/gadget/function/f_phonet.c static inline struct f_phonet *func_to_pn(struct usb_function *f) f 58 drivers/usb/gadget/function/f_phonet.c return container_of(f, struct f_phonet, function); f 377 drivers/usb/gadget/function/f_phonet.c static void __pn_reset(struct usb_function *f) f 379 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 394 drivers/usb/gadget/function/f_phonet.c static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 396 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 414 drivers/usb/gadget/function/f_phonet.c __pn_reset(f); f 419 drivers/usb/gadget/function/f_phonet.c if (config_ep_by_speed(gadget, f, fp->in_ep) || f 420 drivers/usb/gadget/function/f_phonet.c config_ep_by_speed(gadget, f, fp->out_ep)) { f 444 drivers/usb/gadget/function/f_phonet.c static int pn_get_alt(struct usb_function *f, unsigned intf) f 446 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 464 drivers/usb/gadget/function/f_phonet.c static void pn_disconnect(struct usb_function *f) f 466 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 472 drivers/usb/gadget/function/f_phonet.c __pn_reset(f); f 478 drivers/usb/gadget/function/f_phonet.c static int pn_bind(struct usb_configuration *c, struct usb_function *f) f 482 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 488 drivers/usb/gadget/function/f_phonet.c phonet_opts = container_of(f->fi, struct f_phonet_opts, func_inst); f 506 drivers/usb/gadget/function/f_phonet.c status = usb_interface_id(c, f); f 512 drivers/usb/gadget/function/f_phonet.c status = usb_interface_id(c, f); f 535 drivers/usb/gadget/function/f_phonet.c status = usb_assign_descriptors(f, fs_pn_function, hs_pn_function, f 566 drivers/usb/gadget/function/f_phonet.c usb_free_all_descriptors(f); f 607 drivers/usb/gadget/function/f_phonet.c static void phonet_free_inst(struct usb_function_instance *f) f 611 drivers/usb/gadget/function/f_phonet.c opts = container_of(f, struct f_phonet_opts, func_inst); f 641 drivers/usb/gadget/function/f_phonet.c static void phonet_free(struct usb_function *f) f 645 drivers/usb/gadget/function/f_phonet.c phonet = func_to_pn(f); f 649 drivers/usb/gadget/function/f_phonet.c static void pn_unbind(struct usb_configuration *c, struct usb_function *f) f 651 drivers/usb/gadget/function/f_phonet.c struct f_phonet *fp = func_to_pn(f); f 661 drivers/usb/gadget/function/f_phonet.c usb_free_all_descriptors(f); f 93 drivers/usb/gadget/function/f_printer.c static inline struct printer_dev *func_to_printer(struct usb_function *f) f 95 drivers/usb/gadget/function/f_printer.c return container_of(f, struct printer_dev, function); f 891 drivers/usb/gadget/function/f_printer.c static bool gprinter_req_match(struct usb_function *f, f 895 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 933 drivers/usb/gadget/function/f_printer.c static int printer_func_setup(struct usb_function *f, f 936 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 937 drivers/usb/gadget/function/f_printer.c struct usb_composite_dev *cdev = f->config->cdev; f 1014 drivers/usb/gadget/function/f_printer.c struct usb_function *f) f 1017 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 1028 drivers/usb/gadget/function/f_printer.c id = usb_interface_id(c, f); f 1055 drivers/usb/gadget/function/f_printer.c ret = usb_assign_descriptors(f, fs_printer_function, f 1123 drivers/usb/gadget/function/f_printer.c static int printer_func_set_alt(struct usb_function *f, f 1126 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 1135 drivers/usb/gadget/function/f_printer.c static void printer_func_disable(struct usb_function *f) f 1137 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 1287 drivers/usb/gadget/function/f_printer.c static void gprinter_free_inst(struct usb_function_instance *f) f 1291 drivers/usb/gadget/function/f_printer.c opts = container_of(f, struct f_printer_opts, func_inst); f 1347 drivers/usb/gadget/function/f_printer.c static void gprinter_free(struct usb_function *f) f 1349 drivers/usb/gadget/function/f_printer.c struct printer_dev *dev = func_to_printer(f); f 1352 drivers/usb/gadget/function/f_printer.c opts = container_of(f->fi, struct f_printer_opts, func_inst); f 1360 drivers/usb/gadget/function/f_printer.c struct usb_function *f) f 1365 drivers/usb/gadget/function/f_printer.c dev = func_to_printer(f); f 1400 drivers/usb/gadget/function/f_printer.c usb_free_all_descriptors(f); f 82 drivers/usb/gadget/function/f_rndis.c static inline struct f_rndis *func_to_rndis(struct usb_function *f) f 84 drivers/usb/gadget/function/f_rndis.c return container_of(f, struct f_rndis, port.func); f 463 drivers/usb/gadget/function/f_rndis.c rndis_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 465 drivers/usb/gadget/function/f_rndis.c struct f_rndis *rndis = func_to_rndis(f); f 466 drivers/usb/gadget/function/f_rndis.c struct usb_composite_dev *cdev = f->config->cdev; f 537 drivers/usb/gadget/function/f_rndis.c static int rndis_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 539 drivers/usb/gadget/function/f_rndis.c struct f_rndis *rndis = func_to_rndis(f); f 540 drivers/usb/gadget/function/f_rndis.c struct usb_composite_dev *cdev = f->config->cdev; f 550 drivers/usb/gadget/function/f_rndis.c if (config_ep_by_speed(cdev->gadget, f, rndis->notify)) f 565 drivers/usb/gadget/function/f_rndis.c if (config_ep_by_speed(cdev->gadget, f, f 567 drivers/usb/gadget/function/f_rndis.c config_ep_by_speed(cdev->gadget, f, f 607 drivers/usb/gadget/function/f_rndis.c static void rndis_disable(struct usb_function *f) f 609 drivers/usb/gadget/function/f_rndis.c struct f_rndis *rndis = func_to_rndis(f); f 610 drivers/usb/gadget/function/f_rndis.c struct usb_composite_dev *cdev = f->config->cdev; f 667 drivers/usb/gadget/function/f_rndis.c rndis_bind(struct usb_configuration *c, struct usb_function *f) f 670 drivers/usb/gadget/function/f_rndis.c struct f_rndis *rndis = func_to_rndis(f); f 680 drivers/usb/gadget/function/f_rndis.c rndis_opts = container_of(f->fi, struct f_rndis_opts, func_inst); f 683 drivers/usb/gadget/function/f_rndis.c f->os_desc_table = kzalloc(sizeof(*f->os_desc_table), f 685 drivers/usb/gadget/function/f_rndis.c if (!f->os_desc_table) f 687 drivers/usb/gadget/function/f_rndis.c f->os_desc_n = 1; f 688 drivers/usb/gadget/function/f_rndis.c f->os_desc_table[0].os_desc = &rndis_opts->rndis_os_desc; f 721 drivers/usb/gadget/function/f_rndis.c status = usb_interface_id(c, f); f 731 drivers/usb/gadget/function/f_rndis.c f->os_desc_table[0].if_id = f 734 drivers/usb/gadget/function/f_rndis.c status = usb_interface_id(c, f); f 789 drivers/usb/gadget/function/f_rndis.c status = usb_assign_descriptors(f, eth_fs_function, eth_hs_function, f 820 drivers/usb/gadget/function/f_rndis.c usb_free_all_descriptors(f); f 822 drivers/usb/gadget/function/f_rndis.c kfree(f->os_desc_table); f 823 drivers/usb/gadget/function/f_rndis.c f->os_desc_n = 0; f 830 drivers/usb/gadget/function/f_rndis.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 835 drivers/usb/gadget/function/f_rndis.c void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net) f 839 drivers/usb/gadget/function/f_rndis.c opts = container_of(f, struct f_rndis_opts, func_inst); f 896 drivers/usb/gadget/function/f_rndis.c static void rndis_free_inst(struct usb_function_instance *f) f 900 drivers/usb/gadget/function/f_rndis.c opts = container_of(f, struct f_rndis_opts, func_inst); f 954 drivers/usb/gadget/function/f_rndis.c static void rndis_free(struct usb_function *f) f 959 drivers/usb/gadget/function/f_rndis.c rndis = func_to_rndis(f); f 961 drivers/usb/gadget/function/f_rndis.c opts = container_of(f->fi, struct f_rndis_opts, func_inst); f 968 drivers/usb/gadget/function/f_rndis.c static void rndis_unbind(struct usb_configuration *c, struct usb_function *f) f 970 drivers/usb/gadget/function/f_rndis.c struct f_rndis *rndis = func_to_rndis(f); f 972 drivers/usb/gadget/function/f_rndis.c kfree(f->os_desc_table); f 973 drivers/usb/gadget/function/f_rndis.c f->os_desc_n = 0; f 974 drivers/usb/gadget/function/f_rndis.c usb_free_all_descriptors(f); f 33 drivers/usb/gadget/function/f_serial.c static inline struct f_gser *func_to_gser(struct usb_function *f) f 35 drivers/usb/gadget/function/f_serial.c return container_of(f, struct f_gser, port.func); f 146 drivers/usb/gadget/function/f_serial.c static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 148 drivers/usb/gadget/function/f_serial.c struct f_gser *gser = func_to_gser(f); f 149 drivers/usb/gadget/function/f_serial.c struct usb_composite_dev *cdev = f->config->cdev; f 161 drivers/usb/gadget/function/f_serial.c if (config_ep_by_speed(cdev->gadget, f, gser->port.in) || f 162 drivers/usb/gadget/function/f_serial.c config_ep_by_speed(cdev->gadget, f, gser->port.out)) { f 172 drivers/usb/gadget/function/f_serial.c static void gser_disable(struct usb_function *f) f 174 drivers/usb/gadget/function/f_serial.c struct f_gser *gser = func_to_gser(f); f 175 drivers/usb/gadget/function/f_serial.c struct usb_composite_dev *cdev = f->config->cdev; f 186 drivers/usb/gadget/function/f_serial.c static int gser_bind(struct usb_configuration *c, struct usb_function *f) f 189 drivers/usb/gadget/function/f_serial.c struct f_gser *gser = func_to_gser(f); f 206 drivers/usb/gadget/function/f_serial.c status = usb_interface_id(c, f); f 235 drivers/usb/gadget/function/f_serial.c status = usb_assign_descriptors(f, gser_fs_function, gser_hs_function, f 247 drivers/usb/gadget/function/f_serial.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 287 drivers/usb/gadget/function/f_serial.c static void gser_free_inst(struct usb_function_instance *f) f 291 drivers/usb/gadget/function/f_serial.c opts = container_of(f, struct f_serial_opts, func_inst); f 317 drivers/usb/gadget/function/f_serial.c static void gser_free(struct usb_function *f) f 321 drivers/usb/gadget/function/f_serial.c serial = func_to_gser(f); f 325 drivers/usb/gadget/function/f_serial.c static void gser_unbind(struct usb_configuration *c, struct usb_function *f) f 327 drivers/usb/gadget/function/f_serial.c usb_free_all_descriptors(f); f 53 drivers/usb/gadget/function/f_sourcesink.c static inline struct f_sourcesink *func_to_ss(struct usb_function *f) f 55 drivers/usb/gadget/function/f_sourcesink.c return container_of(f, struct f_sourcesink, function); f 317 drivers/usb/gadget/function/f_sourcesink.c sourcesink_bind(struct usb_configuration *c, struct usb_function *f) f 320 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = func_to_ss(f); f 325 drivers/usb/gadget/function/f_sourcesink.c id = usb_interface_id(c, f); f 336 drivers/usb/gadget/function/f_sourcesink.c f->name, cdev->gadget->name); f 433 drivers/usb/gadget/function/f_sourcesink.c ret = usb_assign_descriptors(f, fs_source_sink_descs, f 441 drivers/usb/gadget/function/f_sourcesink.c f->name, ss->in_ep->name, ss->out_ep->name, f 448 drivers/usb/gadget/function/f_sourcesink.c sourcesink_free_func(struct usb_function *f) f 452 drivers/usb/gadget/function/f_sourcesink.c opts = container_of(f->fi, struct f_ss_opts, func_inst); f 458 drivers/usb/gadget/function/f_sourcesink.c usb_free_all_descriptors(f); f 459 drivers/usb/gadget/function/f_sourcesink.c kfree(func_to_ss(f)); f 735 drivers/usb/gadget/function/f_sourcesink.c static int sourcesink_set_alt(struct usb_function *f, f 738 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = func_to_ss(f); f 739 drivers/usb/gadget/function/f_sourcesink.c struct usb_composite_dev *cdev = f->config->cdev; f 745 drivers/usb/gadget/function/f_sourcesink.c static int sourcesink_get_alt(struct usb_function *f, unsigned intf) f 747 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = func_to_ss(f); f 752 drivers/usb/gadget/function/f_sourcesink.c static void sourcesink_disable(struct usb_function *f) f 754 drivers/usb/gadget/function/f_sourcesink.c struct f_sourcesink *ss = func_to_ss(f); f 761 drivers/usb/gadget/function/f_sourcesink.c static int sourcesink_setup(struct usb_function *f, f 764 drivers/usb/gadget/function/f_sourcesink.c struct usb_configuration *c = f->config; f 55 drivers/usb/gadget/function/f_subset.c static inline struct f_gether *func_to_geth(struct usb_function *f) f 57 drivers/usb/gadget/function/f_subset.c return container_of(f, struct f_gether, port.func); f 253 drivers/usb/gadget/function/f_subset.c static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 255 drivers/usb/gadget/function/f_subset.c struct f_gether *geth = func_to_geth(f); f 256 drivers/usb/gadget/function/f_subset.c struct usb_composite_dev *cdev = f->config->cdev; f 267 drivers/usb/gadget/function/f_subset.c if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) || f 268 drivers/usb/gadget/function/f_subset.c config_ep_by_speed(cdev->gadget, f, geth->port.out_ep)) { f 278 drivers/usb/gadget/function/f_subset.c static void geth_disable(struct usb_function *f) f 280 drivers/usb/gadget/function/f_subset.c struct f_gether *geth = func_to_geth(f); f 281 drivers/usb/gadget/function/f_subset.c struct usb_composite_dev *cdev = f->config->cdev; f 292 drivers/usb/gadget/function/f_subset.c geth_bind(struct usb_configuration *c, struct usb_function *f) f 295 drivers/usb/gadget/function/f_subset.c struct f_gether *geth = func_to_geth(f); f 302 drivers/usb/gadget/function/f_subset.c gether_opts = container_of(f->fi, struct f_gether_opts, func_inst); f 330 drivers/usb/gadget/function/f_subset.c status = usb_interface_id(c, f); f 360 drivers/usb/gadget/function/f_subset.c status = usb_assign_descriptors(f, fs_eth_function, hs_eth_function, f 377 drivers/usb/gadget/function/f_subset.c ERROR(cdev, "%s: can't bind, err %d\n", f->name, status); f 417 drivers/usb/gadget/function/f_subset.c static void geth_free_inst(struct usb_function_instance *f) f 421 drivers/usb/gadget/function/f_subset.c opts = container_of(f, struct f_gether_opts, func_inst); f 451 drivers/usb/gadget/function/f_subset.c static void geth_free(struct usb_function *f) f 455 drivers/usb/gadget/function/f_subset.c eth = func_to_geth(f); f 459 drivers/usb/gadget/function/f_subset.c static void geth_unbind(struct usb_configuration *c, struct usb_function *f) f 462 drivers/usb/gadget/function/f_subset.c usb_free_all_descriptors(f); f 39 drivers/usb/gadget/function/f_tcm.c static inline struct f_uas *to_f_uas(struct usb_function *f) f 41 drivers/usb/gadget/function/f_tcm.c return container_of(f, struct f_uas, function); f 389 drivers/usb/gadget/function/f_tcm.c struct usb_function *f = &fu->function; f 390 drivers/usb/gadget/function/f_tcm.c struct usb_gadget *gadget = f->config->cdev->gadget; f 395 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_in); f 400 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_out); f 419 drivers/usb/gadget/function/f_tcm.c static int usbg_bot_setup(struct usb_function *f, f 422 drivers/usb/gadget/function/f_tcm.c struct f_uas *fu = to_f_uas(f); f 423 drivers/usb/gadget/function/f_tcm.c struct usb_composite_dev *cdev = f->config->cdev; f 843 drivers/usb/gadget/function/f_tcm.c struct usb_function *f = &fu->function; f 844 drivers/usb/gadget/function/f_tcm.c struct usb_gadget *gadget = f->config->cdev->gadget; f 852 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_in); f 857 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_out); f 862 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_cmd); f 866 drivers/usb/gadget/function/f_tcm.c config_ep_by_speed(gadget, f, fu->ep_status); f 1987 drivers/usb/gadget/function/f_tcm.c static int tcm_bind(struct usb_configuration *c, struct usb_function *f) f 1989 drivers/usb/gadget/function/f_tcm.c struct f_uas *fu = to_f_uas(f); f 1997 drivers/usb/gadget/function/f_tcm.c opts = container_of(f->fi, struct f_tcm_opts, func_inst); f 2012 drivers/usb/gadget/function/f_tcm.c iface = usb_interface_id(c, f); f 2057 drivers/usb/gadget/function/f_tcm.c ret = usb_assign_descriptors(f, uasp_fs_function_desc, f 2096 drivers/usb/gadget/function/f_tcm.c static int tcm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 2098 drivers/usb/gadget/function/f_tcm.c struct f_uas *fu = to_f_uas(f); f 2115 drivers/usb/gadget/function/f_tcm.c static void tcm_disable(struct usb_function *f) f 2117 drivers/usb/gadget/function/f_tcm.c struct f_uas *fu = to_f_uas(f); f 2126 drivers/usb/gadget/function/f_tcm.c static int tcm_setup(struct usb_function *f, f 2129 drivers/usb/gadget/function/f_tcm.c struct f_uas *fu = to_f_uas(f); f 2134 drivers/usb/gadget/function/f_tcm.c return usbg_bot_setup(f, ctrl); f 2159 drivers/usb/gadget/function/f_tcm.c static void tcm_free_inst(struct usb_function_instance *f) f 2164 drivers/usb/gadget/function/f_tcm.c opts = container_of(f, struct f_tcm_opts, func_inst); f 2168 drivers/usb/gadget/function/f_tcm.c if (tpg_instances[i].func_inst == f) f 2177 drivers/usb/gadget/function/f_tcm.c static int tcm_register_callback(struct usb_function_instance *f) f 2179 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); f 2188 drivers/usb/gadget/function/f_tcm.c static void tcm_unregister_callback(struct usb_function_instance *f) f 2190 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); f 2201 drivers/usb/gadget/function/f_tcm.c struct usb_function_instance *f = tpg->fi; f 2202 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); f 2205 drivers/usb/gadget/function/f_tcm.c return opts->tcm_register_callback(f); f 2212 drivers/usb/gadget/function/f_tcm.c struct usb_function_instance *f = tpg->fi; f 2213 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); f 2216 drivers/usb/gadget/function/f_tcm.c opts->tcm_unregister_callback(f); f 2219 drivers/usb/gadget/function/f_tcm.c static int tcm_set_name(struct usb_function_instance *f, const char *name) f 2221 drivers/usb/gadget/function/f_tcm.c struct f_tcm_opts *opts = container_of(f, struct f_tcm_opts, func_inst); f 2267 drivers/usb/gadget/function/f_tcm.c static void tcm_free(struct usb_function *f) f 2269 drivers/usb/gadget/function/f_tcm.c struct f_uas *tcm = to_f_uas(f); f 2274 drivers/usb/gadget/function/f_tcm.c static void tcm_unbind(struct usb_configuration *c, struct usb_function *f) f 2276 drivers/usb/gadget/function/f_tcm.c usb_free_all_descriptors(f); f 28 drivers/usb/gadget/function/f_uac1.c static inline struct f_uac1 *func_to_uac1(struct usb_function *f) f 30 drivers/usb/gadget/function/f_uac1.c return container_of(f, struct f_uac1, g_audio.func); f 321 drivers/usb/gadget/function/f_uac1.c static int audio_set_endpoint_req(struct usb_function *f, f 324 drivers/usb/gadget/function/f_uac1.c struct usb_composite_dev *cdev = f->config->cdev; f 357 drivers/usb/gadget/function/f_uac1.c static int audio_get_endpoint_req(struct usb_function *f, f 360 drivers/usb/gadget/function/f_uac1.c struct usb_composite_dev *cdev = f->config->cdev; f 386 drivers/usb/gadget/function/f_uac1.c f_audio_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 388 drivers/usb/gadget/function/f_uac1.c struct usb_composite_dev *cdev = f->config->cdev; f 400 drivers/usb/gadget/function/f_uac1.c value = audio_set_endpoint_req(f, ctrl); f 404 drivers/usb/gadget/function/f_uac1.c value = audio_get_endpoint_req(f, ctrl); f 429 drivers/usb/gadget/function/f_uac1.c static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 431 drivers/usb/gadget/function/f_uac1.c struct usb_composite_dev *cdev = f->config->cdev; f 434 drivers/usb/gadget/function/f_uac1.c struct f_uac1 *uac1 = func_to_uac1(f); f 474 drivers/usb/gadget/function/f_uac1.c static int f_audio_get_alt(struct usb_function *f, unsigned intf) f 476 drivers/usb/gadget/function/f_uac1.c struct usb_composite_dev *cdev = f->config->cdev; f 479 drivers/usb/gadget/function/f_uac1.c struct f_uac1 *uac1 = func_to_uac1(f); f 495 drivers/usb/gadget/function/f_uac1.c static void f_audio_disable(struct usb_function *f) f 497 drivers/usb/gadget/function/f_uac1.c struct f_uac1 *uac1 = func_to_uac1(f); f 508 drivers/usb/gadget/function/f_uac1.c static int f_audio_bind(struct usb_configuration *c, struct usb_function *f) f 512 drivers/usb/gadget/function/f_uac1.c struct f_uac1 *uac1 = func_to_uac1(f); f 513 drivers/usb/gadget/function/f_uac1.c struct g_audio *audio = func_to_g_audio(f); f 521 drivers/usb/gadget/function/f_uac1.c audio_opts = container_of(f->fi, struct f_uac1_opts, func_inst); f 559 drivers/usb/gadget/function/f_uac1.c status = usb_interface_id(c, f); f 566 drivers/usb/gadget/function/f_uac1.c status = usb_interface_id(c, f); f 575 drivers/usb/gadget/function/f_uac1.c status = usb_interface_id(c, f); f 602 drivers/usb/gadget/function/f_uac1.c status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL, f 624 drivers/usb/gadget/function/f_uac1.c usb_free_all_descriptors(f); f 716 drivers/usb/gadget/function/f_uac1.c static void f_audio_free_inst(struct usb_function_instance *f) f 720 drivers/usb/gadget/function/f_uac1.c opts = container_of(f, struct f_uac1_opts, func_inst); f 748 drivers/usb/gadget/function/f_uac1.c static void f_audio_free(struct usb_function *f) f 753 drivers/usb/gadget/function/f_uac1.c audio = func_to_g_audio(f); f 754 drivers/usb/gadget/function/f_uac1.c opts = container_of(f->fi, struct f_uac1_opts, func_inst); f 761 drivers/usb/gadget/function/f_uac1.c static void f_audio_unbind(struct usb_configuration *c, struct usb_function *f) f 763 drivers/usb/gadget/function/f_uac1.c struct g_audio *audio = func_to_g_audio(f); f 766 drivers/usb/gadget/function/f_uac1.c usb_free_all_descriptors(f); f 294 drivers/usb/gadget/function/f_uac1_legacy.c static inline struct f_audio *func_to_audio(struct usb_function *f) f 296 drivers/usb/gadget/function/f_uac1_legacy.c return container_of(f, struct f_audio, card.func); f 382 drivers/usb/gadget/function/f_uac1_legacy.c static int audio_set_intf_req(struct usb_function *f, f 385 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 386 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 418 drivers/usb/gadget/function/f_uac1_legacy.c static int audio_get_intf_req(struct usb_function *f, f 421 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 422 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 456 drivers/usb/gadget/function/f_uac1_legacy.c static int audio_set_endpoint_req(struct usb_function *f, f 459 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 492 drivers/usb/gadget/function/f_uac1_legacy.c static int audio_get_endpoint_req(struct usb_function *f, f 495 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 521 drivers/usb/gadget/function/f_uac1_legacy.c f_audio_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 523 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 535 drivers/usb/gadget/function/f_uac1_legacy.c value = audio_set_intf_req(f, ctrl); f 539 drivers/usb/gadget/function/f_uac1_legacy.c value = audio_get_intf_req(f, ctrl); f 543 drivers/usb/gadget/function/f_uac1_legacy.c value = audio_set_endpoint_req(f, ctrl); f 547 drivers/usb/gadget/function/f_uac1_legacy.c value = audio_get_endpoint_req(f, ctrl); f 572 drivers/usb/gadget/function/f_uac1_legacy.c static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) f 574 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 575 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 584 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); f 604 drivers/usb/gadget/function/f_uac1_legacy.c err = config_ep_by_speed(cdev->gadget, f, out_ep); f 653 drivers/usb/gadget/function/f_uac1_legacy.c static int f_audio_get_alt(struct usb_function *f, unsigned intf) f 655 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 656 drivers/usb/gadget/function/f_uac1_legacy.c struct usb_composite_dev *cdev = f->config->cdev; f 669 drivers/usb/gadget/function/f_uac1_legacy.c static void f_audio_disable(struct usb_function *f) f 698 drivers/usb/gadget/function/f_uac1_legacy.c f_audio_bind(struct usb_configuration *c, struct usb_function *f) f 701 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 707 drivers/usb/gadget/function/f_uac1_legacy.c audio_opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); f 731 drivers/usb/gadget/function/f_uac1_legacy.c status = usb_interface_id(c, f); f 738 drivers/usb/gadget/function/f_uac1_legacy.c status = usb_interface_id(c, f); f 758 drivers/usb/gadget/function/f_uac1_legacy.c status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL, f 927 drivers/usb/gadget/function/f_uac1_legacy.c static void f_audio_free_inst(struct usb_function_instance *f) f 931 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f, struct f_uac1_legacy_opts, func_inst); f 964 drivers/usb/gadget/function/f_uac1_legacy.c static void f_audio_free(struct usb_function *f) f 966 drivers/usb/gadget/function/f_uac1_legacy.c struct f_audio *audio = func_to_audio(f); f 970 drivers/usb/gadget/function/f_uac1_legacy.c opts = container_of(f->fi, struct f_uac1_legacy_opts, func_inst); f 977 drivers/usb/gadget/function/f_uac1_legacy.c static void f_audio_unbind(struct usb_configuration *c, struct usb_function *f) f 979 drivers/usb/gadget/function/f_uac1_legacy.c usb_free_all_descriptors(f); f 51 drivers/usb/gadget/function/f_uac2.c static inline struct f_uac2 *func_to_uac2(struct usb_function *f) f 53 drivers/usb/gadget/function/f_uac2.c return container_of(f, struct f_uac2, g_audio.func); f 1056 drivers/usb/gadget/function/f_uac2.c static void afunc_free_inst(struct usb_function_instance *f) f 1060 drivers/usb/gadget/function/f_uac2.c opts = container_of(f, struct f_uac2_opts, func_inst); f 1088 drivers/usb/gadget/function/f_uac2.c static void afunc_free(struct usb_function *f) f 1093 drivers/usb/gadget/function/f_uac2.c agdev = func_to_g_audio(f); f 1094 drivers/usb/gadget/function/f_uac2.c opts = container_of(f->fi, struct f_uac2_opts, func_inst); f 1101 drivers/usb/gadget/function/f_uac2.c static void afunc_unbind(struct usb_configuration *c, struct usb_function *f) f 1103 drivers/usb/gadget/function/f_uac2.c struct g_audio *agdev = func_to_g_audio(f); f 1106 drivers/usb/gadget/function/f_uac2.c usb_free_all_descriptors(f); f 223 drivers/usb/gadget/function/f_uvc.c uvc_function_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) f 225 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 230 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "invalid request type\n"); f 260 drivers/usb/gadget/function/f_uvc.c uvc_function_get_alt(struct usb_function *f, unsigned interface) f 262 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 264 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "%s(%u)\n", __func__, interface); f 275 drivers/usb/gadget/function/f_uvc.c uvc_function_set_alt(struct usb_function *f, unsigned interface, unsigned alt) f 277 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 278 drivers/usb/gadget/function/f_uvc.c struct usb_composite_dev *cdev = f->config->cdev; f 283 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "%s(%u, %u)\n", __func__, interface, alt); f 289 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "reset UVC Control\n"); f 293 drivers/usb/gadget/function/f_uvc.c if (config_ep_by_speed(cdev->gadget, f, uvc->control_ep)) f 340 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "reset UVC\n"); f 343 drivers/usb/gadget/function/f_uvc.c ret = config_ep_by_speed(f->config->cdev->gadget, f 360 drivers/usb/gadget/function/f_uvc.c uvc_function_disable(struct usb_function *f) f 362 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 365 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "%s()\n", __func__); f 585 drivers/usb/gadget/function/f_uvc.c uvc_function_bind(struct usb_configuration *c, struct usb_function *f) f 588 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 596 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "%s()\n", __func__); f 598 drivers/usb/gadget/function/f_uvc.c opts = fi_to_f_uvc_opts(f->fi); f 609 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "overriding streaming_maxpacket to %d\n", f 649 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "Unable to allocate control EP\n"); f 663 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "Unable to allocate streaming EP\n"); f 685 drivers/usb/gadget/function/f_uvc.c if ((ret = usb_interface_id(c, f)) < 0) f 692 drivers/usb/gadget/function/f_uvc.c if ((ret = usb_interface_id(c, f)) < 0) f 700 drivers/usb/gadget/function/f_uvc.c f->fs_descriptors = uvc_copy_descriptors(uvc, USB_SPEED_FULL); f 701 drivers/usb/gadget/function/f_uvc.c if (IS_ERR(f->fs_descriptors)) { f 702 drivers/usb/gadget/function/f_uvc.c ret = PTR_ERR(f->fs_descriptors); f 703 drivers/usb/gadget/function/f_uvc.c f->fs_descriptors = NULL; f 707 drivers/usb/gadget/function/f_uvc.c f->hs_descriptors = uvc_copy_descriptors(uvc, USB_SPEED_HIGH); f 708 drivers/usb/gadget/function/f_uvc.c if (IS_ERR(f->hs_descriptors)) { f 709 drivers/usb/gadget/function/f_uvc.c ret = PTR_ERR(f->hs_descriptors); f 710 drivers/usb/gadget/function/f_uvc.c f->hs_descriptors = NULL; f 715 drivers/usb/gadget/function/f_uvc.c f->ss_descriptors = uvc_copy_descriptors(uvc, USB_SPEED_SUPER); f 716 drivers/usb/gadget/function/f_uvc.c if (IS_ERR(f->ss_descriptors)) { f 717 drivers/usb/gadget/function/f_uvc.c ret = PTR_ERR(f->ss_descriptors); f 718 drivers/usb/gadget/function/f_uvc.c f->ss_descriptors = NULL; f 736 drivers/usb/gadget/function/f_uvc.c uvcg_err(f, "failed to register V4L2 device\n"); f 748 drivers/usb/gadget/function/f_uvc.c uvcg_err(f, "failed to register video device\n"); f 761 drivers/usb/gadget/function/f_uvc.c usb_free_all_descriptors(f); f 769 drivers/usb/gadget/function/f_uvc.c static void uvc_free_inst(struct usb_function_instance *f) f 771 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts = fi_to_f_uvc_opts(f); f 871 drivers/usb/gadget/function/f_uvc.c static void uvc_free(struct usb_function *f) f 873 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 874 drivers/usb/gadget/function/f_uvc.c struct f_uvc_opts *opts = container_of(f->fi, struct f_uvc_opts, f 880 drivers/usb/gadget/function/f_uvc.c static void uvc_unbind(struct usb_configuration *c, struct usb_function *f) f 883 drivers/usb/gadget/function/f_uvc.c struct uvc_device *uvc = to_uvc(f); f 885 drivers/usb/gadget/function/f_uvc.c uvcg_info(f, "%s\n", __func__); f 894 drivers/usb/gadget/function/f_uvc.c usb_free_all_descriptors(f); f 15 drivers/usb/gadget/function/tcm.h #define fuas_to_gadget(f) (f->function.config->cdev->gadget) f 46 drivers/usb/gadget/function/u_audio.h static inline struct g_audio *func_to_g_audio(struct usb_function *f) f 48 drivers/usb/gadget/function/u_audio.h return container_of(f, struct g_audio, func); f 44 drivers/usb/gadget/function/u_rndis.h void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net); f 20 drivers/usb/gadget/function/u_uvc.h #define fi_to_f_uvc_opts(f) container_of(f, struct f_uvc_opts, func_inst) f 55 drivers/usb/gadget/function/uvc.h #define uvcg_dbg(f, fmt, args...) \ f 56 drivers/usb/gadget/function/uvc.h dev_dbg(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) f 57 drivers/usb/gadget/function/uvc.h #define uvcg_info(f, fmt, args...) \ f 58 drivers/usb/gadget/function/uvc.h dev_info(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) f 59 drivers/usb/gadget/function/uvc.h #define uvcg_warn(f, fmt, args...) \ f 60 drivers/usb/gadget/function/uvc.h dev_warn(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) f 61 drivers/usb/gadget/function/uvc.h #define uvcg_err(f, fmt, args...) \ f 62 drivers/usb/gadget/function/uvc.h dev_err(&(f)->config->cdev->gadget->dev, "%s: " fmt, (f)->name, ##args) f 140 drivers/usb/gadget/function/uvc.h static inline struct uvc_device *to_uvc(struct usb_function *f) f 142 drivers/usb/gadget/function/uvc.h return container_of(f, struct uvc_device, func); f 790 drivers/usb/gadget/function/uvc_configfs.c static ssize_t uvcg_format_bma_controls_show(struct uvcg_format *f, char *page) f 794 drivers/usb/gadget/function/uvc_configfs.c struct mutex *su_mutex = &f->group.cg_subsys->su_mutex; f 800 drivers/usb/gadget/function/uvc_configfs.c opts_item = f->group.cg_item.ci_parent->ci_parent->ci_parent; f 807 drivers/usb/gadget/function/uvc_configfs.c result += sprintf(pg, "%x\n", f->bmaControls[i]); f 1095 drivers/usb/gadget/function/uvc_configfs.c struct uvcg_frame *f = to_uvcg_frame(item); \ f 1098 drivers/usb/gadget/function/uvc_configfs.c struct mutex *su_mutex = &f->item.ci_group->cg_subsys->su_mutex;\ f 1103 drivers/usb/gadget/function/uvc_configfs.c opts_item = f->item.ci_parent->ci_parent->ci_parent->ci_parent; \ f 1107 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", f->frame.cname); \ f 1117 drivers/usb/gadget/function/uvc_configfs.c struct uvcg_frame *f = to_uvcg_frame(item); \ f 1121 drivers/usb/gadget/function/uvc_configfs.c struct mutex *su_mutex = &f->item.ci_group->cg_subsys->su_mutex;\ f 1122 drivers/usb/gadget/function/uvc_configfs.c typeof(f->frame.cname) num; \ f 1131 drivers/usb/gadget/function/uvc_configfs.c opts_item = f->item.ci_parent->ci_parent->ci_parent->ci_parent; \ f 1133 drivers/usb/gadget/function/uvc_configfs.c fmt = to_uvcg_format(f->item.ci_parent); \ f 1141 drivers/usb/gadget/function/uvc_configfs.c f->frame.cname = num; \ f 1154 drivers/usb/gadget/function/uvc_configfs.c struct uvcg_frame *f = to_uvcg_frame(item); f 1159 drivers/usb/gadget/function/uvc_configfs.c struct mutex *su_mutex = &f->item.ci_group->cg_subsys->su_mutex; f 1164 drivers/usb/gadget/function/uvc_configfs.c fmt_item = f->item.ci_parent; f 1176 drivers/usb/gadget/function/uvc_configfs.c result = sprintf(page, "%u\n", f->frame.b_frame_index); f 1986 drivers/usb/gadget/function/uvc_configfs.c struct uvcg_format_ptr *f; f 1999 drivers/usb/gadget/function/uvc_configfs.c list_for_each_entry(f, &h->formats, entry) { f 2000 drivers/usb/gadget/function/uvc_configfs.c ret = fun(f->fmt, priv2, priv3, i++, UVCG_FORMAT); f 2003 drivers/usb/gadget/function/uvc_configfs.c grp = &f->fmt->group; f 2093 drivers/usb/gadget/function/uvc_configfs.c struct uvcg_format_ptr *f; f 2098 drivers/usb/gadget/function/uvc_configfs.c list_for_each_entry(f, &h->formats, entry) { f 2099 drivers/usb/gadget/function/uvc_configfs.c memcpy(*dest, f->fmt->bmaControls, sz); f 59 drivers/usb/gadget/functions.c struct usb_function *f; f 61 drivers/usb/gadget/functions.c f = fi->fd->alloc_func(fi); f 62 drivers/usb/gadget/functions.c if (IS_ERR(f)) f 63 drivers/usb/gadget/functions.c return f; f 64 drivers/usb/gadget/functions.c f->fi = fi; f 65 drivers/usb/gadget/functions.c return f; f 82 drivers/usb/gadget/functions.c void usb_put_function(struct usb_function *f) f 84 drivers/usb/gadget/functions.c if (!f) f 87 drivers/usb/gadget/functions.c f->free_func(f); f 32 drivers/usb/gadget/legacy/hid.c struct usb_function *f; f 101 drivers/usb/gadget/legacy/hid.c e->f = usb_get_function(e->fi); f 102 drivers/usb/gadget/legacy/hid.c if (IS_ERR(e->f)) f 104 drivers/usb/gadget/legacy/hid.c status = usb_add_function(c, e->f); f 106 drivers/usb/gadget/legacy/hid.c usb_put_function(e->f); f 116 drivers/usb/gadget/legacy/hid.c usb_remove_function(c, n->f); f 117 drivers/usb/gadget/legacy/hid.c usb_put_function(n->f); f 208 drivers/usb/gadget/legacy/hid.c usb_put_function(n->f); f 1174 drivers/usb/gadget/legacy/inode.c ep0_fasync (int f, struct file *fd, int on) f 1179 drivers/usb/gadget/legacy/inode.c return fasync_helper (f, fd, on, &dev->fasync); f 95 drivers/usb/gadget/legacy/tcm_usb_gadget.c static int usbg_attach(struct usb_function_instance *f); f 96 drivers/usb/gadget/legacy/tcm_usb_gadget.c static void usbg_detach(struct usb_function_instance *f); f 130 drivers/usb/gadget/legacy/tcm_usb_gadget.c static int usbg_attach(struct usb_function_instance *f) f 135 drivers/usb/gadget/legacy/tcm_usb_gadget.c static void usbg_detach(struct usb_function_instance *f) f 1855 drivers/usb/gadget/udc/omap_udc.c #define HALF_FULL(f) (!((f)&(UDC_NON_ISO_FIFO_FULL|UDC_NON_ISO_FIFO_EMPTY))) f 281 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_IN_BULK(i, adr, c, f, a) PXA_EP_BULK(i, adr, 1, c, f, a) f 282 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_OUT_BULK(i, adr, c, f, a) PXA_EP_BULK(i, adr, 0, c, f, a) f 283 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_IN_ISO(i, adr, c, f, a) PXA_EP_ISO(i, adr, 1, c, f, a) f 284 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_OUT_ISO(i, adr, c, f, a) PXA_EP_ISO(i, adr, 0, c, f, a) f 285 drivers/usb/gadget/udc/pxa27x_udc.h #define PXA_EP_IN_INT(i, adr, c, f, a) PXA_EP_INT(i, adr, 1, c, f, a) f 741 drivers/usb/misc/ftdi-elan.c u8 *f = command->buffer; f 751 drivers/usb/misc/ftdi-elan.c buf[b++] = *f++; f 2977 drivers/usb/misc/sisusbvga/sisusb.c static long sisusb_compat_ioctl(struct file *f, unsigned int cmd, f 2984 drivers/usb/misc/sisusbvga/sisusb.c return sisusb_ioctl(f, cmd, arg); f 294 drivers/usb/renesas_usbhs/common.h #define usbhs_lock(p, f) spin_lock_irqsave(usbhs_priv_to_lock(p), f) f 295 drivers/usb/renesas_usbhs/common.h #define usbhs_unlock(p, f) spin_unlock_irqrestore(usbhs_priv_to_lock(p), f) f 17 drivers/usb/renesas_usbhs/fifo.c #define usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */ f 784 drivers/usb/renesas_usbhs/fifo.c #define usbhsf_dma_start(p, f) __usbhsf_dma_ctrl(p, f, DREQE) f 785 drivers/usb/renesas_usbhs/fifo.c #define usbhsf_dma_stop(p, f) __usbhsf_dma_ctrl(p, f, 0) f 18 drivers/usb/renesas_usbhs/pipe.c #define usbhsp_flags_set(p, f) ((p)->flags |= USBHS_PIPE_FLAGS_##f) f 19 drivers/usb/renesas_usbhs/pipe.c #define usbhsp_flags_clr(p, f) ((p)->flags &= ~USBHS_PIPE_FLAGS_##f) f 20 drivers/usb/renesas_usbhs/pipe.c #define usbhsp_flags_has(p, f) ((p)->flags & USBHS_PIPE_FLAGS_##f) f 313 drivers/usb/serial/iuu_phoenix.c unsigned int G, unsigned int B, u8 f) f 328 drivers/usb/serial/iuu_phoenix.c buf[7] = f; f 480 drivers/usb/storage/usb.c unsigned f = 0; f 515 drivers/usb/storage/usb.c f |= US_FL_SANE_SENSE; f 518 drivers/usb/storage/usb.c f |= US_FL_BAD_SENSE; f 521 drivers/usb/storage/usb.c f |= US_FL_FIX_CAPACITY; f 524 drivers/usb/storage/usb.c f |= US_FL_NO_READ_DISC_INFO; f 527 drivers/usb/storage/usb.c f |= US_FL_NO_READ_CAPACITY_16; f 530 drivers/usb/storage/usb.c f |= US_FL_NO_REPORT_OPCODES; f 533 drivers/usb/storage/usb.c f |= US_FL_MAX_SECTORS_240; f 536 drivers/usb/storage/usb.c f |= US_FL_CAPACITY_HEURISTICS; f 539 drivers/usb/storage/usb.c f |= US_FL_IGNORE_DEVICE; f 542 drivers/usb/storage/usb.c f |= US_FL_NO_REPORT_LUNS; f 545 drivers/usb/storage/usb.c f |= US_FL_NOT_LOCKABLE; f 548 drivers/usb/storage/usb.c f |= US_FL_MAX_SECTORS_64; f 551 drivers/usb/storage/usb.c f |= US_FL_INITIAL_READ10; f 554 drivers/usb/storage/usb.c f |= US_FL_CAPACITY_OK; f 557 drivers/usb/storage/usb.c f |= US_FL_WRITE_CACHE; f 560 drivers/usb/storage/usb.c f |= US_FL_IGNORE_RESIDUE; f 563 drivers/usb/storage/usb.c f |= US_FL_SINGLE_LUN; f 566 drivers/usb/storage/usb.c f |= US_FL_NO_ATA_1X; f 569 drivers/usb/storage/usb.c f |= US_FL_IGNORE_UAS; f 572 drivers/usb/storage/usb.c f |= US_FL_NO_WP_DETECT; f 575 drivers/usb/storage/usb.c f |= US_FL_ALWAYS_SYNC; f 580 drivers/usb/storage/usb.c *fflags = (*fflags & ~mask) | f; f 1075 drivers/vfio/pci/vfio_pci.c struct fd f = fdget(group_fds[i]); f 1076 drivers/vfio/pci/vfio_pci.c if (!f.file) { f 1081 drivers/vfio/pci/vfio_pci.c group = vfio_group_get_external_user(f.file); f 1082 drivers/vfio/pci/vfio_pci.c fdput(f); f 1350 drivers/vfio/vfio.c struct fd f; f 1361 drivers/vfio/vfio.c f = fdget(container_fd); f 1362 drivers/vfio/vfio.c if (!f.file) f 1366 drivers/vfio/vfio.c if (f.file->f_op != &vfio_fops) { f 1367 drivers/vfio/vfio.c fdput(f); f 1371 drivers/vfio/vfio.c container = f.file->private_data; f 1401 drivers/vfio/vfio.c fdput(f); f 1273 drivers/vhost/net.c static int vhost_net_open(struct inode *inode, struct file *f) f 1332 drivers/vhost/net.c f->private_data = n; f 1386 drivers/vhost/net.c static int vhost_net_release(struct inode *inode, struct file *f) f 1388 drivers/vhost/net.c struct vhost_net *n = f->private_data; f 1693 drivers/vhost/net.c static long vhost_net_ioctl(struct file *f, unsigned int ioctl, f 1696 drivers/vhost/net.c struct vhost_net *n = f->private_data; f 1747 drivers/vhost/net.c static long vhost_net_compat_ioctl(struct file *f, unsigned int ioctl, f 1750 drivers/vhost/net.c return vhost_net_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); f 1599 drivers/vhost/scsi.c static int vhost_scsi_open(struct inode *inode, struct file *f) f 1635 drivers/vhost/scsi.c f->private_data = vs; f 1644 drivers/vhost/scsi.c static int vhost_scsi_release(struct inode *inode, struct file *f) f 1646 drivers/vhost/scsi.c struct vhost_scsi *vs = f->private_data; f 1663 drivers/vhost/scsi.c vhost_scsi_ioctl(struct file *f, f 1667 drivers/vhost/scsi.c struct vhost_scsi *vs = f->private_data; f 1731 drivers/vhost/scsi.c static long vhost_scsi_compat_ioctl(struct file *f, unsigned int ioctl, f 1734 drivers/vhost/scsi.c return vhost_scsi_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); f 105 drivers/vhost/test.c static int vhost_test_open(struct inode *inode, struct file *f) f 125 drivers/vhost/test.c f->private_data = n; f 157 drivers/vhost/test.c static int vhost_test_release(struct inode *inode, struct file *f) f 159 drivers/vhost/test.c struct vhost_test *n = f->private_data; f 266 drivers/vhost/test.c static long vhost_test_ioctl(struct file *f, unsigned int ioctl, f 269 drivers/vhost/test.c struct vhost_test *n = f->private_data; f 308 drivers/vhost/test.c static long vhost_test_compat_ioctl(struct file *f, unsigned int ioctl, f 311 drivers/vhost/test.c return vhost_test_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); f 830 drivers/vhost/vhost.c struct iov_iter f; f 844 drivers/vhost/vhost.c iov_iter_init(&f, READ, vq->iotlb_iov, ret, size); f 845 drivers/vhost/vhost.c ret = copy_from_iter(to, size, &f); f 1593 drivers/vhost/vhost.c struct vhost_vring_file f; f 1640 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { f 1644 drivers/vhost/vhost.c eventfp = f.fd == -1 ? NULL : eventfd_fget(f.fd); f 1656 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { f 1660 drivers/vhost/vhost.c ctx = f.fd == -1 ? NULL : eventfd_ctx_fdget(f.fd); f 1668 drivers/vhost/vhost.c if (copy_from_user(&f, argp, sizeof f)) { f 1672 drivers/vhost/vhost.c ctx = f.fd == -1 ? NULL : eventfd_ctx_fdget(f.fd); f 728 drivers/vhost/vsock.c static long vhost_vsock_dev_ioctl(struct file *f, unsigned int ioctl, f 731 drivers/vhost/vsock.c struct vhost_vsock *vsock = f->private_data; f 772 drivers/vhost/vsock.c static long vhost_vsock_dev_compat_ioctl(struct file *f, unsigned int ioctl, f 775 drivers/vhost/vsock.c return vhost_vsock_dev_ioctl(f, ioctl, (unsigned long)compat_ptr(arg)); f 648 drivers/video/console/sticore.c static void *sti_bmode_font_raw(struct sti_cooked_font *f) f 651 drivers/video/console/sticore.c int size = f->raw->bytes_per_char*256+sizeof(struct sti_rom_font); f 657 drivers/video/console/sticore.c q = (unsigned char *)f->raw; f 836 drivers/video/fbdev/atafb.c unsigned long f; /* f/[Hz] */ f 1091 drivers/video/fbdev/atafb.c fb_info.monspecs.hfmin < f25.f) f 1094 drivers/video/fbdev/atafb.c f32.left) * fb_info.monspecs.hfmin < f32.f) f 1097 drivers/video/fbdev/atafb.c fext.left) * fb_info.monspecs.hfmin < fext.f && f 1098 drivers/video/fbdev/atafb.c fext.f) f 1161 drivers/video/fbdev/atafb.c if (pclock->f / plen / 8 * bpp > 32000000L) f 1267 drivers/video/fbdev/atafb.c hfreq = pclock->f / ((par->HHT + 2) * prescale * 2); f 3040 drivers/video/fbdev/atafb.c fext.f = simple_strtoul(this_opt + 7, NULL, 10); f 3042 drivers/video/fbdev/atafb.c fext.t = 1000000000 / fext.f; f 3043 drivers/video/fbdev/atafb.c fext.f *= 1000; f 107 drivers/video/fbdev/atafb_iplan2p2.c int i, j, w, f; f 113 drivers/video/fbdev/atafb_iplan2p2.c f = 0; f 116 drivers/video/fbdev/atafb_iplan2p2.c f = 1; f 120 drivers/video/fbdev/atafb_iplan2p2.c f |= 2; f 126 drivers/video/fbdev/atafb_iplan2p2.c if (f & 1) { f 139 drivers/video/fbdev/atafb_iplan2p2.c if (f & 2) { f 149 drivers/video/fbdev/atafb_iplan2p2.c int i, j, w, f; f 155 drivers/video/fbdev/atafb_iplan2p2.c f = 0; f 158 drivers/video/fbdev/atafb_iplan2p2.c f = 1; f 160 drivers/video/fbdev/atafb_iplan2p2.c f |= 2; f 168 drivers/video/fbdev/atafb_iplan2p2.c if (f & 1) { f 181 drivers/video/fbdev/atafb_iplan2p2.c if (!(f & 2)) { f 107 drivers/video/fbdev/atafb_iplan2p4.c int i, j, w, f; f 113 drivers/video/fbdev/atafb_iplan2p4.c f = 0; f 116 drivers/video/fbdev/atafb_iplan2p4.c f = 1; f 120 drivers/video/fbdev/atafb_iplan2p4.c f |= 2; f 126 drivers/video/fbdev/atafb_iplan2p4.c if (f & 1) { f 145 drivers/video/fbdev/atafb_iplan2p4.c if (f & 2) { f 156 drivers/video/fbdev/atafb_iplan2p4.c int i, j, w, f; f 162 drivers/video/fbdev/atafb_iplan2p4.c f = 0; f 165 drivers/video/fbdev/atafb_iplan2p4.c f = 1; f 167 drivers/video/fbdev/atafb_iplan2p4.c f |= 2; f 175 drivers/video/fbdev/atafb_iplan2p4.c if (f & 1) { f 194 drivers/video/fbdev/atafb_iplan2p4.c if (!(f & 2)) { f 114 drivers/video/fbdev/atafb_iplan2p8.c int i, j, w, f; f 120 drivers/video/fbdev/atafb_iplan2p8.c f = 0; f 123 drivers/video/fbdev/atafb_iplan2p8.c f = 1; f 127 drivers/video/fbdev/atafb_iplan2p8.c f |= 2; f 133 drivers/video/fbdev/atafb_iplan2p8.c if (f & 1) { f 164 drivers/video/fbdev/atafb_iplan2p8.c if (f & 2) { f 177 drivers/video/fbdev/atafb_iplan2p8.c int i, j, w, f; f 183 drivers/video/fbdev/atafb_iplan2p8.c f = 0; f 186 drivers/video/fbdev/atafb_iplan2p8.c f = 1; f 188 drivers/video/fbdev/atafb_iplan2p8.c f |= 2; f 196 drivers/video/fbdev/atafb_iplan2p8.c if (f & 1) { f 227 drivers/video/fbdev/atafb_iplan2p8.c if (!(f & 2)) { f 3142 drivers/video/fbdev/aty/atyfb_base.c int id, tech, f, i, m, default_refresh_rate; f 3238 drivers/video/fbdev/aty/atyfb_base.c f = 0; f 3241 drivers/video/fbdev/aty/atyfb_base.c if (f == 0) { f 3244 drivers/video/fbdev/aty/atyfb_base.c f++; f 35 drivers/video/fbdev/au1100fb.h #define print_err(f, arg...) printk(KERN_ERR DRIVER_NAME ": " f "\n", ## arg) f 36 drivers/video/fbdev/au1100fb.h #define print_warn(f, arg...) printk(KERN_WARNING DRIVER_NAME ": " f "\n", ## arg) f 37 drivers/video/fbdev/au1100fb.h #define print_info(f, arg...) printk(KERN_INFO DRIVER_NAME ": " f "\n", ## arg) f 40 drivers/video/fbdev/au1100fb.h #define print_dbg(f, arg...) printk(__FILE__ ": " f "\n", ## arg) f 42 drivers/video/fbdev/au1100fb.h #define print_dbg(f, arg...) do {} while (0) f 57 drivers/video/fbdev/au1200fb.c #define print_err(f, arg...) printk(KERN_ERR DRIVER_NAME ": " f "\n", ## arg) f 58 drivers/video/fbdev/au1200fb.c #define print_warn(f, arg...) printk(KERN_WARNING DRIVER_NAME ": " f "\n", ## arg) f 59 drivers/video/fbdev/au1200fb.c #define print_info(f, arg...) printk(KERN_INFO DRIVER_NAME ": " f "\n", ## arg) f 62 drivers/video/fbdev/au1200fb.c #define print_dbg(f, arg...) printk(KERN_DEBUG __FILE__ ": " f "\n", ## arg) f 64 drivers/video/fbdev/au1200fb.c #define print_dbg(f, arg...) do {} while (0) f 2619 drivers/video/fbdev/core/fbcon.c struct console_font *f = &vc->vc_font; f 2621 drivers/video/fbdev/core/fbcon.c if (od->fontdata == f->data) f 2623 drivers/video/fbdev/core/fbcon.c return fbcon_do_set_font(vc, f->width, f->height, od->fontdata, od->userfont); f 2705 drivers/video/fbdev/core/fbcon.c const struct font_desc *f; f 2708 drivers/video/fbdev/core/fbcon.c f = get_default_font(info->var.xres, info->var.yres, f 2710 drivers/video/fbdev/core/fbcon.c else if (!(f = find_font(name))) f 2713 drivers/video/fbdev/core/fbcon.c font->width = f->width; f 2714 drivers/video/fbdev/core/fbcon.c font->height = f->height; f 2715 drivers/video/fbdev/core/fbcon.c return fbcon_do_set_font(vc, f->width, f->height, f->data, 0); f 390 drivers/video/fbdev/fsl-diu-fb.c #define DMA_ADDR(p, f) ((p)->dma_addr + offsetof(struct fsl_diu_data, f)) f 257 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_H_FRONT_PORCH(f) (f) f 260 drivers/video/fbdev/mmp/hw/mmp_ctrl.h #define CFG_V_FRONT_PORCH(f) (f) f 205 drivers/video/fbdev/neofb.c int n, d, f; f 209 drivers/video/fbdev/neofb.c for (f = 0; f <= MAX_F; f++) f 215 drivers/video/fbdev/neofb.c f_out = ((14318 * (n + 1)) / (d + 1)) >> f; f 221 drivers/video/fbdev/neofb.c f_best = f; f 270 drivers/video/fbdev/omap2/omapfb/dss/pll.c u32 f = cinfo->fint < 1000000 ? 0x3 : f 276 drivers/video/fbdev/omap2/omapfb/dss/pll.c l = FLD_MOD(l, f, 4, 1); /* PLL_FREQSEL */ f 278 drivers/video/fbdev/omap2/omapfb/dss/pll.c u32 f = cinfo->clkdco < hw->clkdco_low ? 0x2 : 0x4; f 280 drivers/video/fbdev/omap2/omapfb/dss/pll.c l = FLD_MOD(l, f, 3, 1); /* PLL_SELFREQDCO */ f 256 drivers/video/fbdev/pm2fb.c u32 f; f 263 drivers/video/fbdev/pm2fb.c f = PM2_REFERENCE_CLOCK * m / n; f 264 drivers/video/fbdev/pm2fb.c if (f >= 150000 && f <= 300000) { f 265 drivers/video/fbdev/pm2fb.c for (p = 0; p < 5; p++, f >>= 1) { f 266 drivers/video/fbdev/pm2fb.c curr = (clk > f) ? clk - f : f - clk; f 285 drivers/video/fbdev/pm2fb.c u32 f; f 292 drivers/video/fbdev/pm2fb.c f = (PM2_REFERENCE_CLOCK >> (p + 1)) * n / m; f 293 drivers/video/fbdev/pm2fb.c if (clk > f - delta && clk < f + delta) { f 294 drivers/video/fbdev/pm2fb.c delta = (clk > f) ? clk - f : f - clk; f 150 drivers/video/fbdev/pm3fb.c int f, pre, post; f 155 drivers/video/fbdev/pm3fb.c for (f = 1; f < 256; f++) { f 158 drivers/video/fbdev/pm3fb.c freq = ((2*PM3_REF_CLOCK * f) >> post) / pre; f 164 drivers/video/fbdev/pm3fb.c *feedback = f; f 84 drivers/video/fbdev/pxa168fb.h #define CFG_H_FRONT_PORCH(f) (f) f 87 drivers/video/fbdev/pxa168fb.h #define CFG_V_FRONT_PORCH(f) (f) f 106 drivers/video/fbdev/sbuslib.c struct fbtype __user *f = (struct fbtype __user *) arg; f 108 drivers/video/fbdev/sbuslib.c if (put_user(type, &f->fb_type) || f 109 drivers/video/fbdev/sbuslib.c put_user(info->var.yres, &f->fb_height) || f 110 drivers/video/fbdev/sbuslib.c put_user(info->var.xres, &f->fb_width) || f 111 drivers/video/fbdev/sbuslib.c put_user(fb_depth, &f->fb_depth) || f 112 drivers/video/fbdev/sbuslib.c put_user(0, &f->fb_cmsize) || f 113 drivers/video/fbdev/sbuslib.c put_user(fb_size, &f->fb_cmsize)) f 313 drivers/video/fbdev/tdfxfb.c int f = (fref * (n + 2) / (m + 2)) >> k; f 314 drivers/video/fbdev/tdfxfb.c int error = abs(f - freq); f 418 drivers/video/fbdev/tgafb.c int delta = f - (TGA_PLL_BASE_FREQ * (X)) / (r << shift); \ f 427 drivers/video/fbdev/tgafb.c tgafb_set_pll(struct tga_par *par, int f) f 435 drivers/video/fbdev/tgafb.c if (f > TGA_PLL_MAX_FREQ) f 436 drivers/video/fbdev/tgafb.c f = TGA_PLL_MAX_FREQ; f 438 drivers/video/fbdev/tgafb.c if (f >= TGA_PLL_MAX_FREQ / 2) f 440 drivers/video/fbdev/tgafb.c else if (f >= TGA_PLL_MAX_FREQ / 4) f 451 drivers/video/fbdev/tgafb.c if (f <= 120000) { f 455 drivers/video/fbdev/tgafb.c else if (f <= 200000) { f 471 drivers/video/fbdev/tgafb.c target = (f << shift) / TGA_PLL_BASE_FREQ; f 15 drivers/video/fbdev/via/debug.h #define DEBUG_MSG(f, a...) printk(f, ## a) f 17 drivers/video/fbdev/via/debug.h #define DEBUG_MSG(f, a...) f 22 drivers/video/fbdev/via/debug.h #define WARN_MSG(f, a...) printk(f, ## a) f 24 drivers/video/fbdev/via/debug.h #define WARN_MSG(f, a...) f 1378 drivers/video/fbdev/via/hw.c int i, f; f 1384 drivers/video/fbdev/via/hw.c f = abs(get_pll_output_frequency(f0, cur) - clk); f 1388 drivers/video/fbdev/via/hw.c if (abs(get_pll_output_frequency(f0, up) - clk) < f) f 1390 drivers/video/fbdev/via/hw.c else if (abs(get_pll_output_frequency(f0, down) - clk) < f) f 1398 drivers/video/fbdev/via/hw.c f = abs(get_pll_output_frequency(f0, cur) - clk); f 1399 drivers/video/fbdev/via/hw.c if (f < abs(get_pll_output_frequency(f0, best) - clk)) f 270 drivers/video/fbdev/w100fb.c if (status.f.cmdfifo_avail >= entries) f 285 drivers/video/fbdev/w100fb.c if (!status.f.gui_active) f 314 drivers/video/fbdev/w100fb.c dp_cntl.f.dst_x_dir = 1; f 315 drivers/video/fbdev/w100fb.c dp_cntl.f.dst_y_dir = 1; f 316 drivers/video/fbdev/w100fb.c dp_cntl.f.src_x_dir = 1; f 317 drivers/video/fbdev/w100fb.c dp_cntl.f.src_y_dir = 1; f 318 drivers/video/fbdev/w100fb.c dp_cntl.f.dst_major_x = 1; f 319 drivers/video/fbdev/w100fb.c dp_cntl.f.src_major_x = 1; f 323 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_pitch_offset_cntl = 1; f 324 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_pitch_offset_cntl = 1; f 325 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_clipping = 1; f 326 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_clipping = 1; f 327 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_NONE; f 328 drivers/video/fbdev/w100fb.c gmc.f.gmc_dst_datatype = 3; /* from DstType_16Bpp_444 */ f 329 drivers/video/fbdev/w100fb.c gmc.f.gmc_src_datatype = SRC_DATATYPE_EQU_DST; f 330 drivers/video/fbdev/w100fb.c gmc.f.gmc_byte_pix_order = 1; f 331 drivers/video/fbdev/w100fb.c gmc.f.gmc_default_sel = 0; f 332 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_SRCCOPY; f 333 drivers/video/fbdev/w100fb.c gmc.f.gmc_dp_src_source = DP_SRC_MEM_RECTANGULAR; f 334 drivers/video/fbdev/w100fb.c gmc.f.gmc_clr_cmp_fcn_dis = 1; f 335 drivers/video/fbdev/w100fb.c gmc.f.gmc_wr_msk_dis = 1; f 336 drivers/video/fbdev/w100fb.c gmc.f.gmc_dp_op = DP_OP_ROP; f 340 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_dst_datatype = gmc.f.gmc_dst_datatype; f 341 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_brush_datatype = gmc.f.gmc_brush_datatype; f 342 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_src2_type = 0; f 343 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_src2_datatype = gmc.f.gmc_src_datatype; f 344 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_src_datatype = gmc.f.gmc_src_datatype; f 345 drivers/video/fbdev/w100fb.c dp_datatype.f.dp_byte_pix_order = gmc.f.gmc_byte_pix_order; f 348 drivers/video/fbdev/w100fb.c dp_mix.f.dp_src_source = gmc.f.gmc_dp_src_source; f 349 drivers/video/fbdev/w100fb.c dp_mix.f.dp_src2_source = 1; f 350 drivers/video/fbdev/w100fb.c dp_mix.f.dp_rop3 = gmc.f.gmc_rop3; f 351 drivers/video/fbdev/w100fb.c dp_mix.f.dp_op = gmc.f.gmc_dp_op; f 369 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_PATCOPY; f 370 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_SOLID_COLOR; f 397 drivers/video/fbdev/w100fb.c gmc.f.gmc_rop3 = ROP3_SRCCOPY; f 398 drivers/video/fbdev/w100fb.c gmc.f.gmc_brush_datatype = GMC_BRUSH_NONE; f 824 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.db_buf_cntl = 0x1e; f 825 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.update_db_buf = 0; f 826 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.en_db_buf = 0; f 835 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.db_buf_cntl = 0x1e; f 836 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.update_db_buf = 1; f 837 drivers/video/fbdev/w100fb.c disp_db_buf_wr_cntl.f.en_db_buf = 1; f 894 drivers/video/fbdev/w100fb.c cif_write_dbg.f.dis_packer_ful_during_rbbm_timeout = 0; f 895 drivers/video/fbdev/w100fb.c cif_write_dbg.f.en_dword_split_to_rbbm = 1; f 896 drivers/video/fbdev/w100fb.c cif_write_dbg.f.dis_timeout_during_rbbm = 1; f 900 drivers/video/fbdev/w100fb.c cif_read_dbg.f.dis_rd_same_byte_to_trig_fetch = 1; f 904 drivers/video/fbdev/w100fb.c cif_cntl.f.dis_system_bits = 1; f 905 drivers/video/fbdev/w100fb.c cif_cntl.f.dis_mr = 1; f 906 drivers/video/fbdev/w100fb.c cif_cntl.f.en_wait_to_compensate_dq_prop_dly = 0; f 907 drivers/video/fbdev/w100fb.c cif_cntl.f.intb_oe = 1; f 908 drivers/video/fbdev/w100fb.c cif_cntl.f.interrupt_active_high = 1; f 913 drivers/video/fbdev/w100fb.c intf_cntl.f.ad_inc_a = 1; f 914 drivers/video/fbdev/w100fb.c intf_cntl.f.ad_inc_b = 1; f 915 drivers/video/fbdev/w100fb.c intf_cntl.f.rd_data_rdy_a = 0; f 916 drivers/video/fbdev/w100fb.c intf_cntl.f.rd_data_rdy_b = 0; f 920 drivers/video/fbdev/w100fb.c cpu_default.f.access_ind_addr_a = 1; f 921 drivers/video/fbdev/w100fb.c cpu_default.f.access_ind_addr_b = 1; f 922 drivers/video/fbdev/w100fb.c cpu_default.f.access_scratch_reg = 1; f 923 drivers/video/fbdev/w100fb.c cpu_default.f.transition_size = 0; f 930 drivers/video/fbdev/w100fb.c cfgreg_base.f.cfgreg_base = W100_CFG_BASE; f 934 drivers/video/fbdev/w100fb.c wrap_start_dir.f.start_addr = WRAP_BUF_BASE_VALUE >> 1; f 938 drivers/video/fbdev/w100fb.c wrap_top_dir.f.top_addr = WRAP_BUF_TOP_VALUE >> 1; f 1038 drivers/video/fbdev/w100fb.c clk_test_cntl.f.start_check_freq = 0x0; f 1039 drivers/video/fbdev/w100fb.c clk_test_cntl.f.testclk_sel = testclk_sel; f 1040 drivers/video/fbdev/w100fb.c clk_test_cntl.f.tstcount_rst = 0x1; /* set reset */ f 1043 drivers/video/fbdev/w100fb.c clk_test_cntl.f.tstcount_rst = 0x0; /* clear reset */ f 1047 drivers/video/fbdev/w100fb.c clk_test_cntl.f.start_check_freq = 0x1; f 1055 drivers/video/fbdev/w100fb.c clk_test_cntl.f.start_check_freq = 0x0; f 1058 drivers/video/fbdev/w100fb.c return clk_test_cntl.f.test_count; f 1068 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pwdn = 0x0; /* power down */ f 1069 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_reset = 0x0; /* not reset */ f 1070 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_tcpoff = 0x1; /* Hi-Z */ f 1071 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pvg = 0x0; /* VCO gain = 0 */ f 1072 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_vcofr = 0x0; /* VCO frequency range control = off */ f 1073 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ioffset = 0x0; /* current offset inside VCO = 0 */ f 1074 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ring_off = 0x0; f 1082 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_dactal = 0xd; f 1088 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_dactal = 0x7; f 1095 drivers/video/fbdev/w100fb.c if ((w100_pwr_state.pll_cntl.f.pll_vcofr == 0x0) && f 1096 drivers/video/fbdev/w100fb.c ((w100_pwr_state.pll_cntl.f.pll_pvg == 0x7) || f 1097 drivers/video/fbdev/w100fb.c (w100_pwr_state.pll_cntl.f.pll_ioffset == 0x0))) { f 1099 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_vcofr = 0x1; f 1100 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pvg = 0x0; f 1101 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ioffset = 0x0; f 1105 drivers/video/fbdev/w100fb.c if ((w100_pwr_state.pll_cntl.f.pll_ioffset) < 0x3) { f 1106 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ioffset += 0x1; f 1107 drivers/video/fbdev/w100fb.c } else if ((w100_pwr_state.pll_cntl.f.pll_pvg) < 0x7) { f 1108 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ioffset = 0x0; f 1109 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pvg += 0x1; f 1128 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_dactal = 0xa; f 1134 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_tcpoff = 0x0; /* normal */ f 1138 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_dactal = 0x0; f 1155 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_fast_noml_hw_en = 0x0; /* disable fast to normal */ f 1156 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_noml_fast_hw_en = 0x0; /* disable normal to fast */ f 1161 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_src_sel = CLK_SRC_XTAL; f 1164 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_ref_div = pll->M; f 1165 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_fb_div_int = pll->N_int; f 1166 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_fb_div_frac = pll->N_fac; f 1167 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_lock_time = pll->lock_time; f 1170 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_mode_req = 0; f 1177 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_fast_noml_hw_en = 0x1; /* reenable fast to normal */ f 1178 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_noml_fast_hw_en = 0x1; /* reenable normal to fast */ f 1202 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.osc_en = 0x1; f 1203 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.osc_gain = 0x1f; f 1204 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.dont_use_xtalin = 0x0; f 1205 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.xtalin_pm_en = 0x0; f 1206 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.xtalin_dbl_en = par->mach->xtal_dbl ? 1 : 0; f 1207 drivers/video/fbdev/w100fb.c w100_pwr_state.clk_pin_cntl.f.cg_debug = 0x0; f 1210 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_src_sel = CLK_SRC_XTAL; f 1211 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_fast = 0x0; /* Pfast = 1 */ f 1212 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_clkon_hys = 0x3; f 1213 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_slow = 0x0; /* Pslow = 1 */ f 1214 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.disp_cg_ok2switch_en = 0x0; f 1215 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_reg = 0x0; /* Dynamic */ f 1216 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_disp = 0x0; /* Dynamic */ f 1217 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_mc = 0x0; /* Dynamic */ f 1218 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_extmc = 0x0; /* Dynamic */ f 1219 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_cp = 0x0; /* Dynamic */ f 1220 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_e2 = 0x0; /* Dynamic */ f 1221 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_e3 = 0x0; /* Dynamic */ f 1222 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_idct = 0x0; /* Dynamic */ f 1223 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_force_bist = 0x0; /* Dynamic */ f 1224 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.busy_extend_cp = 0x0; f 1225 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.busy_extend_e2 = 0x0; f 1226 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.busy_extend_e3 = 0x0; f 1227 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.busy_extend_idct = 0x0; f 1230 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_src_sel = CLK_SRC_XTAL; f 1231 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_post_div = 0x1; /* P = 2 */ f 1232 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_force_disp = 0x0; /* Dynamic */ f 1235 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_ref_div = 0x0; /* M = 1 */ f 1236 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_fb_div_int = 0x0; /* N = 1.0 */ f 1237 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_fb_div_frac = 0x0; f 1238 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_reset_time = 0x5; f 1239 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_ref_fb_div.f.pll_lock_time = 0xff; f 1242 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pwdn = 0x1; f 1243 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_reset = 0x1; f 1244 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pm_en = 0x0; f 1245 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_mode = 0x0; /* uses VCO clock */ f 1246 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_refclk_sel = 0x0; f 1247 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_fbclk_sel = 0x0; f 1248 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_tcpoff = 0x0; f 1249 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pcp = 0x4; f 1250 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pvg = 0x0; f 1251 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_vcofr = 0x0; f 1252 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ioffset = 0x0; f 1253 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pecc_mode = 0x0; f 1254 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_pecc_scon = 0x0; f 1255 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_dactal = 0x0; /* Hi-Z */ f 1256 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_cp_clip = 0x3; f 1257 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_conf = 0x2; f 1258 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_mbctrl = 0x2; f 1259 drivers/video/fbdev/w100fb.c w100_pwr_state.pll_cntl.f.pll_ring_off = 0x0; f 1262 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_enable = 0x0; f 1263 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_mode_req = 0x1; /* normal mode (0, 1, 3) */ f 1264 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_wakeup_cond = 0x0; f 1265 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_fast_noml_hw_en = 0x0; f 1266 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_noml_fast_hw_en = 0x0; f 1267 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_fast_noml_cond = 0x1; /* PM4,ENG */ f 1268 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_noml_fast_cond = 0x1; /* PM4,ENG */ f 1269 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_idle_timer = 0xFF; f 1270 drivers/video/fbdev/w100fb.c w100_pwr_state.pwrmgt_cntl.f.pwm_busy_timer = 0xFF; f 1287 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_src_sel = mode->sysclk_src; f 1288 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_fast = mode->sysclk_divider; f 1289 drivers/video/fbdev/w100fb.c w100_pwr_state.sclk_cntl.f.sclk_post_div_slow = mode->sysclk_divider; f 1307 drivers/video/fbdev/w100fb.c active_h_disp.f.active_h_start=mode->left_margin; f 1308 drivers/video/fbdev/w100fb.c active_h_disp.f.active_h_end=mode->left_margin + mode->xres; f 1312 drivers/video/fbdev/w100fb.c active_v_disp.f.active_v_start=mode->upper_margin; f 1313 drivers/video/fbdev/w100fb.c active_v_disp.f.active_v_end=mode->upper_margin + mode->yres; f 1317 drivers/video/fbdev/w100fb.c graphic_h_disp.f.graphic_h_start=mode->left_margin; f 1318 drivers/video/fbdev/w100fb.c graphic_h_disp.f.graphic_h_end=mode->left_margin + mode->xres; f 1322 drivers/video/fbdev/w100fb.c graphic_v_disp.f.graphic_v_start=mode->upper_margin; f 1323 drivers/video/fbdev/w100fb.c graphic_v_disp.f.graphic_v_end=mode->upper_margin + mode->yres; f 1327 drivers/video/fbdev/w100fb.c crtc_total.f.crtc_h_total=mode->left_margin + mode->xres + mode->right_margin; f 1328 drivers/video/fbdev/w100fb.c crtc_total.f.crtc_v_total=mode->upper_margin + mode->yres + mode->lower_margin; f 1371 drivers/video/fbdev/w100fb.c intmem_location.f.mc_fb_start = W100_FB_BASE >> 8; f 1372 drivers/video/fbdev/w100fb.c intmem_location.f.mc_fb_top = (W100_FB_BASE+MEM_INT_SIZE) >> 8; f 1377 drivers/video/fbdev/w100fb.c extmem_location.f.mc_ext_mem_start = MEM_EXT_BASE_VALUE >> 8; f 1378 drivers/video/fbdev/w100fb.c extmem_location.f.mc_ext_mem_top = (MEM_EXT_BASE_VALUE-1) >> 8; f 1382 drivers/video/fbdev/w100fb.c intmem_location.f.mc_fb_start = MEM_INT_BASE_VALUE >> 8; f 1383 drivers/video/fbdev/w100fb.c intmem_location.f.mc_fb_top = (MEM_INT_BASE_VALUE+MEM_INT_SIZE) >> 8; f 1387 drivers/video/fbdev/w100fb.c extmem_location.f.mc_ext_mem_start = W100_FB_BASE >> 8; f 1388 drivers/video/fbdev/w100fb.c extmem_location.f.mc_ext_mem_top = (W100_FB_BASE+par->mach->mem->size) >> 8; f 1491 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_src_sel = par->mode->pixclk_src; f 1492 drivers/video/fbdev/w100fb.c w100_pwr_state.pclk_cntl.f.pclk_post_div = divider; f 1516 drivers/video/fbdev/w100fb.c hsync /= (w100_pwr_state.pclk_cntl.f.pclk_post_div + 1); f 1520 drivers/video/fbdev/w100fb.c par->hsync_len = hsync / (crtc_ss.f.ss_end-crtc_ss.f.ss_start); f 248 drivers/video/fbdev/w100fb.h struct wrap_top_dir_t f; f 258 drivers/video/fbdev/w100fb.h struct wrap_start_dir_t f; f 287 drivers/video/fbdev/w100fb.h struct cif_cntl_t f; f 297 drivers/video/fbdev/w100fb.h struct cfgreg_base_t f; f 318 drivers/video/fbdev/w100fb.h struct cif_io_t f; f 350 drivers/video/fbdev/w100fb.h struct cif_read_dbg_t f; f 383 drivers/video/fbdev/w100fb.h struct cif_write_dbg_t f; f 400 drivers/video/fbdev/w100fb.h struct intf_cntl_t f; f 416 drivers/video/fbdev/w100fb.h struct cpu_defaults_t f; f 428 drivers/video/fbdev/w100fb.h struct crtc_total_t f; f 444 drivers/video/fbdev/w100fb.h struct crtc_ss_t f; f 456 drivers/video/fbdev/w100fb.h struct active_h_disp_t f; f 468 drivers/video/fbdev/w100fb.h struct active_v_disp_t f; f 480 drivers/video/fbdev/w100fb.h struct graphic_h_disp_t f; f 492 drivers/video/fbdev/w100fb.h struct graphic_v_disp_t f; f 557 drivers/video/fbdev/w100fb.h struct video_ctrl_t f; f 569 drivers/video/fbdev/w100fb.h struct disp_db_buf_cntl_rd_t f; f 581 drivers/video/fbdev/w100fb.h struct disp_db_buf_cntl_wr_t f; f 593 drivers/video/fbdev/w100fb.h struct gamma_value1_t f; f 605 drivers/video/fbdev/w100fb.h struct gamma_value2_t f; f 622 drivers/video/fbdev/w100fb.h struct gamma_slope_t f; f 632 drivers/video/fbdev/w100fb.h struct mc_ext_mem_location_t f; f 642 drivers/video/fbdev/w100fb.h struct mc_fb_location_t f; f 657 drivers/video/fbdev/w100fb.h struct clk_pin_cntl_t f; f 673 drivers/video/fbdev/w100fb.h struct pll_ref_fb_div_t f; f 699 drivers/video/fbdev/w100fb.h struct pll_cntl_t f; f 727 drivers/video/fbdev/w100fb.h struct sclk_cntl_t f; f 741 drivers/video/fbdev/w100fb.h struct pclk_cntl_t f; f 762 drivers/video/fbdev/w100fb.h struct clk_test_cntl_t f; f 780 drivers/video/fbdev/w100fb.h struct pwrmgt_cntl_t f; f 815 drivers/video/fbdev/w100fb.h struct dp_gui_master_cntl_t f; f 844 drivers/video/fbdev/w100fb.h struct rbbm_status_t f; f 861 drivers/video/fbdev/w100fb.h struct dp_datatype_t f; f 876 drivers/video/fbdev/w100fb.h struct dp_mix_t f; f 893 drivers/video/fbdev/w100fb.h struct eng_cntl_t f; f 908 drivers/video/fbdev/w100fb.h struct dp_cntl_t f; f 920 drivers/video/fbdev/w100fb.h struct dp_cntl_dst_dir_t f; f 211 drivers/virtio/virtio.c unsigned int f = drv->feature_table[i]; f 212 drivers/virtio/virtio.c BUG_ON(f >= 64); f 213 drivers/virtio/virtio.c driver_features |= (1ULL << f); f 220 drivers/virtio/virtio.c unsigned int f = drv->feature_table_legacy[i]; f 221 drivers/virtio/virtio.c BUG_ON(f >= 64); f 222 drivers/virtio/virtio.c driver_features_legacy |= (1ULL << f); f 199 drivers/w1/slaves/w1_therm.c struct w1_family *f; f 218 drivers/w1/slaves/w1_therm.c .f = &w1_therm_family_DS18S20, f 224 drivers/w1/slaves/w1_therm.c .f = &w1_therm_family_DS1822, f 230 drivers/w1/slaves/w1_therm.c .f = &w1_therm_family_DS18B20, f 236 drivers/w1/slaves/w1_therm.c .f = &w1_therm_family_DS28EA00, f 242 drivers/w1/slaves/w1_therm.c .f = &w1_therm_family_DS1825, f 442 drivers/w1/slaves/w1_therm.c if (w1_therm_families[i].f->fid == fid) f 461 drivers/w1/slaves/w1_therm.c if (w1_therm_families[i].f->fid == sl->family->fid) { f 720 drivers/w1/slaves/w1_therm.c err = w1_register_family(w1_therm_families[i].f); f 734 drivers/w1/slaves/w1_therm.c w1_unregister_family(w1_therm_families[i].f); f 721 drivers/w1/w1.c struct w1_family *f; f 752 drivers/w1/w1.c f = w1_family_registered(rn->family); f 753 drivers/w1/w1.c if (!f) { f 754 drivers/w1/w1.c f= &w1_default_family; f 759 drivers/w1/w1.c __w1_family_get(f); f 762 drivers/w1/w1.c sl->family = f; f 876 drivers/w1/w1.c void w1_reconnect_slaves(struct w1_family *f, int attach) f 884 drivers/w1/w1.c "for family %02x.\n", dev->name, f->fid); f 894 drivers/w1/w1.c && sl->reg_num.family == f->fid) || f 895 drivers/w1/w1.c (!attach && sl->family->fid == f->fid)) { f 24 drivers/w1/w1_family.c struct w1_family *f; f 29 drivers/w1/w1_family.c f = list_entry(ent, struct w1_family, family_entry); f 31 drivers/w1/w1_family.c if (f->fid == newf->fid) { f 57 drivers/w1/w1_family.c struct w1_family *f; f 61 drivers/w1/w1_family.c f = list_entry(ent, struct w1_family, family_entry); f 63 drivers/w1/w1_family.c if (f->fid == fent->fid) { f 89 drivers/w1/w1_family.c struct w1_family *f = NULL; f 93 drivers/w1/w1_family.c f = list_entry(ent, struct w1_family, family_entry); f 95 drivers/w1/w1_family.c if (f->fid == fid) { f 101 drivers/w1/w1_family.c return (ret) ? f : NULL; f 104 drivers/w1/w1_family.c static void __w1_family_put(struct w1_family *f) f 106 drivers/w1/w1_family.c atomic_dec(&f->refcnt); f 109 drivers/w1/w1_family.c void w1_family_put(struct w1_family *f) f 112 drivers/w1/w1_family.c __w1_family_put(f); f 117 drivers/w1/w1_family.c void w1_family_get(struct w1_family *f) f 120 drivers/w1/w1_family.c __w1_family_get(f); f 125 drivers/w1/w1_family.c void __w1_family_get(struct w1_family *f) f 128 drivers/w1/w1_family.c atomic_inc(&f->refcnt); f 56 drivers/w1/w1_internal.h void w1_reconnect_slaves(struct w1_family *f, int attach); f 63 drivers/w1/w1_internal.h void w1_family_put(struct w1_family *f); f 64 drivers/w1/w1_internal.h void __w1_family_get(struct w1_family *f); f 370 drivers/watchdog/cpwd.c static int cpwd_open(struct inode *inode, struct file *f) f 399 drivers/watchdog/cpwd.c return stream_open(inode, f); f 152 drivers/xen/mcelog.c static long xen_mce_chrdev_ioctl(struct file *f, unsigned int cmd, f 18 drivers/zorro/gen-devlist.c pq(FILE *f, const char *c) f 22 drivers/zorro/gen-devlist.c fprintf(f, "\\\""); f 24 drivers/zorro/gen-devlist.c fputc(*c, f); f 85 fs/afs/write.c unsigned f, from = pos & (PAGE_SIZE - 1); f 120 fs/afs/write.c t = f = 0; f 123 fs/afs/write.c f = priv & AFS_PRIV_MAX; f 125 fs/afs/write.c ASSERTCMP(f, <=, t); f 128 fs/afs/write.c if (f != t) { f 139 fs/afs/write.c (to < f || from > t)) f 141 fs/afs/write.c if (from < f) f 142 fs/afs/write.c f = from; f 146 fs/afs/write.c f = from; f 151 fs/afs/write.c priv |= f; f 459 fs/afs/write.c unsigned n, offset, to, f, t; f 522 fs/afs/write.c f = priv & AFS_PRIV_MAX; f 524 fs/afs/write.c if (f != 0 && f 855 fs/afs/write.c unsigned int f, t; f 862 fs/afs/write.c f = 0; f 865 fs/afs/write.c f = priv & AFS_PRIV_MAX; f 871 fs/afs/write.c ret = afs_store_data(mapping, page->index, page->index, t, f); f 29 fs/bfs/dir.c static int bfs_readdir(struct file *f, struct dir_context *ctx) f 31 fs/bfs/dir.c struct inode *dir = file_inode(f); f 729 fs/binfmt_misc.c struct file *f; f 731 fs/binfmt_misc.c f = open_exec(e->interpreter); f 732 fs/binfmt_misc.c if (IS_ERR(f)) { f 733 fs/binfmt_misc.c err = PTR_ERR(f); f 740 fs/binfmt_misc.c e->interp_file = f; f 116 fs/ceph/inode.c u32 f) f 127 fs/ceph/inode.c c = ceph_frag_compare(f, frag->frag); f 140 fs/ceph/inode.c frag->frag = f; f 149 fs/ceph/inode.c ceph_vinop(&ci->vfs_inode), f); f 156 fs/ceph/inode.c struct ceph_inode_frag *__ceph_find_frag(struct ceph_inode_info *ci, u32 f) f 163 fs/ceph/inode.c int c = ceph_frag_compare(f, frag->frag); f 310 fs/ceph/inode.c static bool is_frag_child(u32 f, struct ceph_inode_frag *frag) f 313 fs/ceph/inode.c return f == ceph_frag_make(0, 0); f 314 fs/ceph/inode.c if (ceph_frag_bits(f) != ceph_frag_bits(frag->frag) + frag->split_by) f 316 fs/ceph/inode.c return ceph_frag_contains_value(frag->frag, ceph_frag_value(f)); f 611 fs/ceph/super.h u32 f); f 51 fs/char_dev.c void chrdev_show(struct seq_file *f, off_t offset) f 58 fs/char_dev.c seq_printf(f, "%3d %s\n", cd->major, cd->name); f 28 fs/coda/coda_linux.c char * coda_f2s(struct CodaFid *f) f 32 fs/coda/coda_linux.c sprintf(s, "(%08x.%08x.%08x.%08x)", f->opaque[0], f->opaque[1], f->opaque[2], f->opaque[3]); f 47 fs/coda/coda_linux.h int coda_open(struct inode *i, struct file *f); f 48 fs/coda/coda_linux.h int coda_release(struct inode *i, struct file *f); f 55 fs/coda/coda_linux.h char *coda_f2s(struct CodaFid *f); f 58 fs/coda/coda_psdev.h struct file **f); f 110 fs/coda/inode.c struct fd f; f 124 fs/coda/inode.c f = fdget(data->fd); f 125 fs/coda/inode.c if (!f.file) f 127 fs/coda/inode.c inode = file_inode(f.file); f 129 fs/coda/inode.c fdput(f); f 134 fs/coda/inode.c fdput(f); f 999 fs/compat_ioctl.c struct fd f = fdget(fd); f 1001 fs/compat_ioctl.c if (!f.file) f 1005 fs/compat_ioctl.c error = security_file_ioctl(f.file, cmd, arg); f 1025 fs/compat_ioctl.c error = compat_ioctl_preallocate(f.file, compat_ptr(arg)); f 1030 fs/compat_ioctl.c error = ioctl_preallocate(f.file, compat_ptr(arg)); f 1044 fs/compat_ioctl.c if (S_ISREG(file_inode(f.file)->i_mode)) f 1049 fs/compat_ioctl.c if (f.file->f_op->compat_ioctl) { f 1050 fs/compat_ioctl.c error = f.file->f_op->compat_ioctl(f.file, cmd, arg); f 1055 fs/compat_ioctl.c if (!f.file->f_op->unlocked_ioctl) f 1063 fs/compat_ioctl.c error = do_ioctl_trans(cmd, arg, f.file); f 1072 fs/compat_ioctl.c error = do_vfs_ioctl(f.file, fd, cmd, arg); f 1074 fs/compat_ioctl.c fdput(f); f 1157 fs/debugfs/file.c static int debugfs_devm_entry_open(struct inode *inode, struct file *f) f 1161 fs/debugfs/file.c return single_open(f, entry->read, entry->dev); f 220 fs/debugfs/inode.c debugfs_automount_t f; f 221 fs/debugfs/inode.c f = (debugfs_automount_t)path->dentry->d_fsdata; f 222 fs/debugfs/inode.c return f(path->dentry, d_inode(path->dentry)->i_private); f 588 fs/debugfs/inode.c debugfs_automount_t f, f 607 fs/debugfs/inode.c dentry->d_fsdata = (void *)f; f 68 fs/erofs/dir.c static int erofs_readdir(struct file *f, struct dir_context *ctx) f 70 fs/erofs/dir.c struct inode *dir = file_inode(f); f 1336 fs/erofs/zdata.c struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT(inode); f 1342 fs/erofs/zdata.c f.headoffset = (erofs_off_t)page->index << PAGE_SHIFT; f 1344 fs/erofs/zdata.c err = z_erofs_do_read_page(&f, page, &pagepool); f 1345 fs/erofs/zdata.c (void)z_erofs_collector_end(&f.clt); f 1348 fs/erofs/zdata.c z_erofs_submit_and_unzip(inode->i_sb, &f.clt, &pagepool, true); f 1353 fs/erofs/zdata.c if (f.map.mpage) f 1354 fs/erofs/zdata.c put_page(f.map.mpage); f 1376 fs/erofs/zdata.c struct z_erofs_decompress_frontend f = DECOMPRESS_FRONTEND_INIT(inode); f 1384 fs/erofs/zdata.c f.headoffset = (erofs_off_t)lru_to_page(pages)->index << PAGE_SHIFT; f 1415 fs/erofs/zdata.c err = z_erofs_do_read_page(&f, page, &pagepool); f 1423 fs/erofs/zdata.c (void)z_erofs_collector_end(&f.clt); f 1425 fs/erofs/zdata.c z_erofs_submit_and_unzip(inode->i_sb, &f.clt, &pagepool, sync); f 1427 fs/erofs/zdata.c if (f.map.mpage) f 1428 fs/erofs/zdata.c put_page(f.map.mpage); f 314 fs/eventfd.c static void eventfd_show_fdinfo(struct seq_file *m, struct file *f) f 316 fs/eventfd.c struct eventfd_ctx *ctx = f->private_data; f 375 fs/eventfd.c struct fd f = fdget(fd); f 376 fs/eventfd.c if (!f.file) f 378 fs/eventfd.c ctx = eventfd_ctx_fileget(f.file); f 379 fs/eventfd.c fdput(f); f 313 fs/eventpoll.c static inline int is_file_epoll(struct file *f) f 315 fs/eventpoll.c return f->f_op == &eventpoll_fops; f 947 fs/eventpoll.c static void ep_show_fdinfo(struct seq_file *m, struct file *f) f 949 fs/eventpoll.c struct eventpoll *ep = f->private_data; f 2113 fs/eventpoll.c struct fd f, tf; f 2125 fs/eventpoll.c f = fdget(epfd); f 2126 fs/eventpoll.c if (!f.file) f 2149 fs/eventpoll.c if (f.file == tf.file || !is_file_epoll(f.file)) f 2169 fs/eventpoll.c ep = f.file->private_data; f 2188 fs/eventpoll.c if (!list_empty(&f.file->f_ep_links) || f 2254 fs/eventpoll.c fdput(f); f 2268 fs/eventpoll.c struct fd f; f 2280 fs/eventpoll.c f = fdget(epfd); f 2281 fs/eventpoll.c if (!f.file) f 2289 fs/eventpoll.c if (!is_file_epoll(f.file)) f 2296 fs/eventpoll.c ep = f.file->private_data; f 2302 fs/eventpoll.c fdput(f); f 886 fs/exec.c struct file *f = ERR_CAST(filename); f 889 fs/exec.c f = do_open_execat(AT_FDCWD, filename, 0); f 892 fs/exec.c return f; f 988 fs/exec.c struct fd f = fdget(fd); f 991 fs/exec.c if (!f.file) f 994 fs/exec.c ret = kernel_read_file(f.file, buf, size, max_size, id); f 996 fs/exec.c fdput(f); f 149 fs/ext2/ext2.h # define ext2_debug(f, a...) { \ f 152 fs/ext2/ext2.h printk (f, ## a); \ f 155 fs/ext2/ext2.h # define ext2_debug(f, a...) /**/ f 75 fs/ext2/xattr.c # define ea_idebug(inode, f...) do { \ f 78 fs/ext2/xattr.c printk(f); \ f 81 fs/ext2/xattr.c # define ea_bdebug(bh, f...) do { \ f 84 fs/ext2/xattr.c printk(f); \ f 88 fs/ext2/xattr.c # define ea_idebug(inode, f...) no_printk(f) f 89 fs/ext2/xattr.c # define ea_bdebug(bh, f...) no_printk(f) f 73 fs/ext4/ext4.h #define ext4_debug(f, a...) \ f 77 fs/ext4/ext4.h printk(KERN_DEBUG f, ## a); \ f 44 fs/ext4/hash.c #define ROUND(f, a, b, c, d, x, s) \ f 45 fs/ext4/hash.c (a += f(b, c, d) + x, a = rol32(a, s)) f 1055 fs/ext4/ialloc.c ext4_group_t f = ext4_flex_group(sbi, group); f 1058 fs/ext4/ialloc.c f)->used_dirs); f 1346 fs/ext4/namei.c struct fscrypt_name f; f 1354 fs/ext4/namei.c f.usr_fname = fname->usr_fname; f 1355 fs/ext4/namei.c f.disk_name = fname->disk_name; f 1357 fs/ext4/namei.c f.crypto_buf = fname->crypto_buf; f 1372 fs/ext4/namei.c return fscrypt_match_name(&f, de->name, de->name_len); f 1605 fs/f2fs/f2fs.h static inline bool __is_set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) f 1609 fs/f2fs/f2fs.h return ckpt_flags & f; f 1612 fs/f2fs/f2fs.h static inline bool is_set_ckpt_flags(struct f2fs_sb_info *sbi, unsigned int f) f 1614 fs/f2fs/f2fs.h return __is_set_ckpt_flags(F2FS_CKPT(sbi), f); f 1617 fs/f2fs/f2fs.h static inline void __set_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) f 1622 fs/f2fs/f2fs.h ckpt_flags |= f; f 1626 fs/f2fs/f2fs.h static inline void set_ckpt_flags(struct f2fs_sb_info *sbi, unsigned int f) f 1631 fs/f2fs/f2fs.h __set_ckpt_flags(F2FS_CKPT(sbi), f); f 1635 fs/f2fs/f2fs.h static inline void __clear_ckpt_flags(struct f2fs_checkpoint *cp, unsigned int f) f 1640 fs/f2fs/f2fs.h ckpt_flags &= (~f); f 1644 fs/f2fs/f2fs.h static inline void clear_ckpt_flags(struct f2fs_sb_info *sbi, unsigned int f) f 1649 fs/f2fs/f2fs.h __clear_ckpt_flags(F2FS_CKPT(sbi), f); f 450 fs/fcntl.c struct fd f = fdget_raw(fd); f 453 fs/fcntl.c if (!f.file) f 456 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f 461 fs/fcntl.c err = security_file_fcntl(f.file, cmd, arg); f 463 fs/fcntl.c err = do_fcntl(fd, cmd, arg, f.file); f 466 fs/fcntl.c fdput(f); f 476 fs/fcntl.c struct fd f = fdget_raw(fd); f 480 fs/fcntl.c if (!f.file) f 483 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f 488 fs/fcntl.c err = security_file_fcntl(f.file, cmd, arg); f 498 fs/fcntl.c err = fcntl_getlk64(f.file, cmd, &flock); f 509 fs/fcntl.c err = fcntl_setlk64(fd, f.file, cmd, &flock); f 512 fs/fcntl.c err = do_fcntl(fd, cmd, arg, f.file); f 516 fs/fcntl.c fdput(f); f 613 fs/fcntl.c struct fd f = fdget_raw(fd); f 617 fs/fcntl.c if (!f.file) f 620 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f 625 fs/fcntl.c err = security_file_fcntl(f.file, cmd, arg); f 634 fs/fcntl.c err = fcntl_getlk(f.file, convert_fcntl_cmd(cmd), &flock); f 646 fs/fcntl.c err = fcntl_getlk(f.file, convert_fcntl_cmd(cmd), &flock); f 655 fs/fcntl.c err = fcntl_setlk(fd, f.file, convert_fcntl_cmd(cmd), &flock); f 664 fs/fcntl.c err = fcntl_setlk(fd, f.file, convert_fcntl_cmd(cmd), &flock); f 667 fs/fcntl.c err = do_fcntl(fd, cmd, arg, f.file); f 671 fs/fcntl.c fdput(f); f 125 fs/fhandle.c struct fd f = fdget(fd); f 126 fs/fhandle.c if (!f.file) f 128 fs/fhandle.c mnt = mntget(f.file->f_path.mnt); f 129 fs/fhandle.c fdput(f); f 339 fs/file.c struct file *f = *old_fds++; f 340 fs/file.c if (f) { f 341 fs/file.c get_file(f); f 351 fs/file.c rcu_assign_pointer(*new_fds++, f); f 807 fs/file.c void __f_unlock_pos(struct file *f) f 809 fs/file.c mutex_unlock(&f->f_pos_lock); f 997 fs/file.c int (*f)(const void *, struct file *, unsigned), f 1010 fs/file.c res = f(p, file, n); f 47 fs/file_table.c struct file *f = container_of(head, struct file, f_u.fu_rcuhead); f 49 fs/file_table.c put_cred(f->f_cred); f 50 fs/file_table.c kmem_cache_free(filp_cachep, f); f 53 fs/file_table.c static inline void file_free(struct file *f) f 55 fs/file_table.c security_file_free(f); f 56 fs/file_table.c if (!(f->f_mode & FMODE_NOACCOUNT)) f 58 fs/file_table.c call_rcu(&f->f_u.fu_rcuhead, file_free_rcu); f 98 fs/file_table.c struct file *f; f 101 fs/file_table.c f = kmem_cache_zalloc(filp_cachep, GFP_KERNEL); f 102 fs/file_table.c if (unlikely(!f)) f 105 fs/file_table.c f->f_cred = get_cred(cred); f 106 fs/file_table.c error = security_file_alloc(f); f 108 fs/file_table.c file_free_rcu(&f->f_u.fu_rcuhead); f 112 fs/file_table.c atomic_long_set(&f->f_count, 1); f 113 fs/file_table.c rwlock_init(&f->f_owner.lock); f 114 fs/file_table.c spin_lock_init(&f->f_lock); f 115 fs/file_table.c mutex_init(&f->f_pos_lock); f 116 fs/file_table.c eventpoll_init_file(f); f 117 fs/file_table.c f->f_flags = flags; f 118 fs/file_table.c f->f_mode = OPEN_FMODE(flags); f 121 fs/file_table.c return f; f 137 fs/file_table.c struct file *f; f 151 fs/file_table.c f = __alloc_file(flags, cred); f 152 fs/file_table.c if (!IS_ERR(f)) f 155 fs/file_table.c return f; f 173 fs/file_table.c struct file *f = __alloc_file(flags, cred); f 175 fs/file_table.c if (!IS_ERR(f)) f 176 fs/file_table.c f->f_mode |= FMODE_NOACCOUNT; f 178 fs/file_table.c return f; f 244 fs/file_table.c struct file *f = alloc_file(&base->f_path, flags, fops); f 245 fs/file_table.c if (!IS_ERR(f)) { f 246 fs/file_table.c path_get(&f->f_path); f 247 fs/file_table.c f->f_mapping = base->f_mapping; f 249 fs/file_table.c return f; f 305 fs/file_table.c struct file *f, *t; f 307 fs/file_table.c llist_for_each_entry_safe(f, t, node, f_u.fu_llist) f 308 fs/file_table.c __fput(f); f 258 fs/fs_parser.c struct filename *f; f 265 fs/fs_parser.c f = getname_kernel(param->string); f 266 fs/fs_parser.c if (IS_ERR(f)) f 267 fs/fs_parser.c return PTR_ERR(f); f 274 fs/fs_parser.c f = param->name; f 281 fs/fs_parser.c f->refcnt++; /* filename_lookup() drops our ref. */ f 282 fs/fs_parser.c ret = filename_lookup(param->dirfd, f, flags, _path, NULL); f 284 fs/fs_parser.c errorf(fc, "%s: Lookup failure for '%s'", param->key, f->name); f 294 fs/fs_parser.c param->key, f->name); f 300 fs/fs_parser.c putname(f); f 41 fs/fscache/object.c #define WORK_STATE(n, sn, f) \ f 45 fs/fscache/object.c .work = f \ f 322 fs/fsopen.c struct fd f; f 363 fs/fsopen.c f = fdget(fd); f 364 fs/fsopen.c if (!f.file) f 367 fs/fsopen.c if (f.file->f_op != &fscontext_fops) f 370 fs/fsopen.c fc = f.file->private_data; f 473 fs/fsopen.c fdput(f); f 457 fs/hpfs/alloc.c struct fnode *f; f 459 fs/hpfs/alloc.c if (!(f = hpfs_get_sector(s, *fno, bh))) { f 463 fs/hpfs/alloc.c memset(f, 0, 512); f 464 fs/hpfs/alloc.c f->magic = cpu_to_le32(FNODE_MAGIC); f 465 fs/hpfs/alloc.c f->ea_offs = cpu_to_le16(0xc4); f 466 fs/hpfs/alloc.c f->btree.n_free_nodes = 8; f 467 fs/hpfs/alloc.c f->btree.first_free = cpu_to_le16(8); f 468 fs/hpfs/alloc.c return f; f 399 fs/hpfs/anode.c void hpfs_truncate_btree(struct super_block *s, secno f, int fno, unsigned secs) f 405 fs/hpfs/anode.c anode_secno node = f; f 409 fs/hpfs/anode.c if (!(fnode = hpfs_map_fnode(s, f, &bh))) return; f 412 fs/hpfs/anode.c if (!(anode = hpfs_map_anode(s, f, &bh))) return; f 423 fs/hpfs/anode.c } else hpfs_free_sectors(s, f, 1); f 430 fs/hpfs/anode.c if (le32_to_cpu(btree->u.internal[i].file_secno) >= secs) goto f; f 434 fs/hpfs/anode.c f: f 460 fs/hpfs/anode.c hpfs_error(s, "there is an allocation error in file %08x, sector %08x", f, secs); f 75 fs/hpfs/dnode.c static void for_all_poss(struct inode *inode, void (*f)(loff_t *, loff_t, loff_t), f 82 fs/hpfs/dnode.c for (i = hpfs_inode->i_rddir_off; *i; i++) (*f)(*i, p1, p2); f 86 fs/hpfs/dnode.c static void hpfs_pos_subst(loff_t *p, loff_t f, loff_t t) f 88 fs/hpfs/dnode.c if (*p == f) *p = t; f 999 fs/hpfs/dnode.c struct fnode *f, struct quad_buffer_head *qbh) f 1012 fs/hpfs/dnode.c name1 = f->name; f 1017 fs/hpfs/dnode.c if (f->len <= 15) f 1018 fs/hpfs/dnode.c memcpy(name2, name1, name1len = name2len = f->len); f 1025 fs/hpfs/dnode.c if (!(upf = hpfs_map_fnode(s, le32_to_cpu(f->up), &bh))) { f 1031 fs/hpfs/dnode.c hpfs_error(s, "fnode %08x has non-directory parent %08x", fno, le32_to_cpu(f->up)); f 1048 fs/hpfs/dnode.c if (de->down) if (de_down_pointer(de) == downd) goto f; f 1072 fs/hpfs/dnode.c f: f 3736 fs/io_uring.c struct fd f; f 3741 fs/io_uring.c f = fdget(fd); f 3742 fs/io_uring.c if (!f.file) f 3746 fs/io_uring.c if (f.file->f_op != &io_uring_fops) f 3750 fs/io_uring.c ctx = f.file->private_data; f 3789 fs/io_uring.c fdput(f); f 4088 fs/io_uring.c struct fd f; f 4090 fs/io_uring.c f = fdget(fd); f 4091 fs/io_uring.c if (!f.file) f 4095 fs/io_uring.c if (f.file->f_op != &io_uring_fops) f 4098 fs/io_uring.c ctx = f.file->private_data; f 4104 fs/io_uring.c fdput(f); f 708 fs/ioctl.c struct fd f = fdget(fd); f 710 fs/ioctl.c if (!f.file) f 712 fs/ioctl.c error = security_file_ioctl(f.file, cmd, arg); f 714 fs/ioctl.c error = do_vfs_ioctl(f.file, fd, cmd, arg); f 715 fs/ioctl.c fdput(f); f 1863 fs/jbd2/journal.c #define INCOMPAT_FEATURE_ON(f) \ f 1864 fs/jbd2/journal.c ((incompat & (f)) && !(sb->s_feature_incompat & cpu_to_be32(f))) f 1865 fs/jbd2/journal.c #define COMPAT_FEATURE_ON(f) \ f 1866 fs/jbd2/journal.c ((compat & (f)) && !(sb->s_feature_compat & cpu_to_be32(f))) f 148 fs/jffs2/compr.c uint16_t jffs2_compress(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 253 fs/jffs2/compr.c int jffs2_decompress(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 73 fs/jffs2/compr.h uint16_t jffs2_compress(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 77 fs/jffs2/compr.h int jffs2_decompress(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 67 fs/jffs2/debug.c __jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f) f 69 fs/jffs2/debug.c mutex_lock(&f->sem); f 70 fs/jffs2/debug.c __jffs2_dbg_fragtree_paranoia_check_nolock(f); f 71 fs/jffs2/debug.c mutex_unlock(&f->sem); f 75 fs/jffs2/debug.c __jffs2_dbg_fragtree_paranoia_check_nolock(struct jffs2_inode_info *f) f 80 fs/jffs2/debug.c for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { f 116 fs/jffs2/debug.c __jffs2_dbg_dump_fragtree_nolock(f); f 695 fs/jffs2/debug.c __jffs2_dbg_dump_fragtree(struct jffs2_inode_info *f) f 697 fs/jffs2/debug.c mutex_lock(&f->sem); f 698 fs/jffs2/debug.c jffs2_dbg_dump_fragtree_nolock(f); f 699 fs/jffs2/debug.c mutex_unlock(&f->sem); f 703 fs/jffs2/debug.c __jffs2_dbg_dump_fragtree_nolock(struct jffs2_inode_info *f) f 705 fs/jffs2/debug.c struct jffs2_node_frag *this = frag_first(&f->fragtree); f 709 fs/jffs2/debug.c printk(JFFS2_DBG_MSG_PREFIX " dump fragtree of ino #%u\n", f->inocache->ino); f 726 fs/jffs2/debug.c if (f->metadata) f 727 fs/jffs2/debug.c printk(JFFS2_DBG "metadata at 0x%08x\n", ref_offset(f->metadata->raw)); f 181 fs/jffs2/debug.h __jffs2_dbg_fragtree_paranoia_check(struct jffs2_inode_info *f); f 183 fs/jffs2/debug.h __jffs2_dbg_fragtree_paranoia_check_nolock(struct jffs2_inode_info *f); f 210 fs/jffs2/debug.h __jffs2_dbg_dump_fragtree(struct jffs2_inode_info *f); f 212 fs/jffs2/debug.h __jffs2_dbg_dump_fragtree_nolock(struct jffs2_inode_info *f); f 219 fs/jffs2/debug.h #define jffs2_dbg_fragtree_paranoia_check(f) \ f 220 fs/jffs2/debug.h __jffs2_dbg_fragtree_paranoia_check(f) f 221 fs/jffs2/debug.h #define jffs2_dbg_fragtree_paranoia_check_nolock(f) \ f 222 fs/jffs2/debug.h __jffs2_dbg_fragtree_paranoia_check_nolock(f) f 230 fs/jffs2/debug.h #define jffs2_dbg_fragtree_paranoia_check(f) f 231 fs/jffs2/debug.h #define jffs2_dbg_fragtree_paranoia_check_nolock(f) f 246 fs/jffs2/debug.h #define jffs2_dbg_dump_fragtree(f) \ f 247 fs/jffs2/debug.h __jffs2_dbg_dump_fragtree(f); f 248 fs/jffs2/debug.h #define jffs2_dbg_dump_fragtree_nolock(f) \ f 249 fs/jffs2/debug.h __jffs2_dbg_dump_fragtree_nolock(f); f 259 fs/jffs2/debug.h #define jffs2_dbg_dump_fragtree(f) f 260 fs/jffs2/debug.h #define jffs2_dbg_dump_fragtree_nolock(f) f 123 fs/jffs2/dir.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 132 fs/jffs2/dir.c mutex_lock(&f->sem); f 133 fs/jffs2/dir.c for (fd = f->dents; fd; fd = fd->next) { f 153 fs/jffs2/dir.c mutex_unlock(&f->sem); f 164 fs/jffs2/dir.c struct jffs2_inode_info *f, *dir_f; f 190 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); f 198 fs/jffs2/dir.c mutex_unlock(&f->sem); f 200 fs/jffs2/dir.c ret = jffs2_do_create(c, dir_f, f, ri, &dentry->d_name); f 210 fs/jffs2/dir.c f->inocache->pino_nlink, inode->i_mapping->nrpages); f 246 fs/jffs2/dir.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); f 253 fs/jffs2/dir.c if (!f->inocache) f 264 fs/jffs2/dir.c ret = jffs2_do_link(c, dir_f, f->inocache->ino, type, dentry->d_name.name, dentry->d_name.len, now); f 267 fs/jffs2/dir.c mutex_lock(&f->sem); f 268 fs/jffs2/dir.c set_nlink(d_inode(old_dentry), ++f->inocache->pino_nlink); f 269 fs/jffs2/dir.c mutex_unlock(&f->sem); f 281 fs/jffs2/dir.c struct jffs2_inode_info *f, *dir_f; f 326 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); f 337 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, target, targetlen, ALLOC_NORMAL); f 343 fs/jffs2/dir.c mutex_unlock(&f->sem); f 350 fs/jffs2/dir.c f->target = kmemdup(target, targetlen + 1, GFP_KERNEL); f 351 fs/jffs2/dir.c if (!f->target) { f 353 fs/jffs2/dir.c mutex_unlock(&f->sem); f 358 fs/jffs2/dir.c inode->i_link = f->target; f 361 fs/jffs2/dir.c __func__, (char *)f->target); f 366 fs/jffs2/dir.c f->metadata = fn; f 367 fs/jffs2/dir.c mutex_unlock(&f->sem); f 443 fs/jffs2/dir.c struct jffs2_inode_info *f, *dir_f; f 485 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); f 490 fs/jffs2/dir.c f->inocache->pino_nlink = dir_i->i_ino; f 495 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); f 501 fs/jffs2/dir.c mutex_unlock(&f->sem); f 509 fs/jffs2/dir.c f->metadata = fn; f 510 fs/jffs2/dir.c mutex_unlock(&f->sem); f 588 fs/jffs2/dir.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(dentry)); f 593 fs/jffs2/dir.c for (fd = f->dents ; fd; fd = fd->next) { f 599 fs/jffs2/dir.c dentry->d_name.len, f, now); f 610 fs/jffs2/dir.c struct jffs2_inode_info *f, *dir_f; f 654 fs/jffs2/dir.c f = JFFS2_INODE_INFO(inode); f 664 fs/jffs2/dir.c fn = jffs2_write_dnode(c, f, ri, (char *)&dev, devlen, ALLOC_NORMAL); f 670 fs/jffs2/dir.c mutex_unlock(&f->sem); f 678 fs/jffs2/dir.c f->metadata = fn; f 679 fs/jffs2/dir.c mutex_unlock(&f->sem); f 839 fs/jffs2/dir.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(d_inode(old_dentry)); f 840 fs/jffs2/dir.c mutex_lock(&f->sem); f 842 fs/jffs2/dir.c if (f->inocache && !d_is_dir(old_dentry)) f 843 fs/jffs2/dir.c f->inocache->pino_nlink++; f 844 fs/jffs2/dir.c mutex_unlock(&f->sem); f 81 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 94 fs/jffs2/file.c ret = jffs2_read_inode_range(c, f, pg_buf, pg->index << PAGE_SHIFT, f 122 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(pg->mapping->host); f 125 fs/jffs2/file.c mutex_lock(&f->sem); f 127 fs/jffs2/file.c mutex_unlock(&f->sem); f 137 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 164 fs/jffs2/file.c mutex_lock(&f->sem); f 172 fs/jffs2/file.c ri.ino = cpu_to_je32(f->inocache->ino); f 173 fs/jffs2/file.c ri.version = cpu_to_je32(++f->highest_version); f 186 fs/jffs2/file.c fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_NORMAL); f 191 fs/jffs2/file.c mutex_unlock(&f->sem); f 194 fs/jffs2/file.c ret = jffs2_add_full_dnode_to_inode(c, f, fn); f 195 fs/jffs2/file.c if (f->metadata) { f 196 fs/jffs2/file.c jffs2_mark_node_obsolete(c, f->metadata->raw); f 197 fs/jffs2/file.c jffs2_free_full_dnode(f->metadata); f 198 fs/jffs2/file.c f->metadata = NULL; f 206 fs/jffs2/file.c mutex_unlock(&f->sem); f 211 fs/jffs2/file.c mutex_unlock(&f->sem); f 220 fs/jffs2/file.c mutex_lock(&f->sem); f 222 fs/jffs2/file.c mutex_unlock(&f->sem); f 243 fs/jffs2/file.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 292 fs/jffs2/file.c ret = jffs2_write_inode_range(c, f, ri, page_address(pg) + aligned_start, f 35 fs/jffs2/fs.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 60 fs/jffs2/fs.c mutex_lock(&f->sem); f 61 fs/jffs2/fs.c mdatalen = f->metadata->size; f 62 fs/jffs2/fs.c mdata = kmalloc(f->metadata->size, GFP_USER); f 64 fs/jffs2/fs.c mutex_unlock(&f->sem); f 67 fs/jffs2/fs.c ret = jffs2_read_dnode(c, f, f->metadata, mdata, 0, mdatalen); f 69 fs/jffs2/fs.c mutex_unlock(&f->sem); f 73 fs/jffs2/fs.c mutex_unlock(&f->sem); f 93 fs/jffs2/fs.c mutex_lock(&f->sem); f 102 fs/jffs2/fs.c ri->version = cpu_to_je32(++f->highest_version); f 139 fs/jffs2/fs.c new_metadata = jffs2_write_dnode(c, f, ri, mdata, mdatalen, alloc_type); f 146 fs/jffs2/fs.c mutex_unlock(&f->sem); f 158 fs/jffs2/fs.c old_metadata = f->metadata; f 161 fs/jffs2/fs.c jffs2_truncate_fragtree (c, &f->fragtree, iattr->ia_size); f 164 fs/jffs2/fs.c jffs2_add_full_dnode_to_inode(c, f, new_metadata); f 167 fs/jffs2/fs.c f->metadata = NULL; f 169 fs/jffs2/fs.c f->metadata = new_metadata; f 177 fs/jffs2/fs.c mutex_unlock(&f->sem); f 243 fs/jffs2/fs.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 249 fs/jffs2/fs.c jffs2_do_clear_inode(c, f); f 254 fs/jffs2/fs.c struct jffs2_inode_info *f; f 270 fs/jffs2/fs.c f = JFFS2_INODE_INFO(inode); f 273 fs/jffs2/fs.c jffs2_init_inode_info(f); f 274 fs/jffs2/fs.c mutex_lock(&f->sem); f 276 fs/jffs2/fs.c ret = jffs2_do_read_inode(c, f, inode->i_ino, &latest_node); f 288 fs/jffs2/fs.c set_nlink(inode, f->inocache->pino_nlink); f 296 fs/jffs2/fs.c inode->i_link = f->target; f 304 fs/jffs2/fs.c for (fd=f->dents; fd; fd = fd->next) { f 326 fs/jffs2/fs.c if (f->metadata->size != sizeof(jdev.old_id) && f 327 fs/jffs2/fs.c f->metadata->size != sizeof(jdev.new_id)) { f 329 fs/jffs2/fs.c f->metadata->size); f 333 fs/jffs2/fs.c ret = jffs2_read_dnode(c, f, f->metadata, (char *)&jdev, 0, f->metadata->size); f 340 fs/jffs2/fs.c if (f->metadata->size == sizeof(jdev.old_id)) f 357 fs/jffs2/fs.c mutex_unlock(&f->sem); f 366 fs/jffs2/fs.c mutex_unlock(&f->sem); f 427 fs/jffs2/fs.c struct jffs2_inode_info *f; f 440 fs/jffs2/fs.c f = JFFS2_INODE_INFO(inode); f 441 fs/jffs2/fs.c jffs2_init_inode_info(f); f 442 fs/jffs2/fs.c mutex_lock(&f->sem); f 460 fs/jffs2/fs.c mutex_unlock(&f->sem); f 465 fs/jffs2/fs.c ret = jffs2_do_new_inode (c, f, mode, ri); f 467 fs/jffs2/fs.c mutex_unlock(&f->sem); f 484 fs/jffs2/fs.c mutex_unlock(&f->sem); f 615 fs/jffs2/fs.c struct jffs2_inode_info *f) f 617 fs/jffs2/fs.c iput(OFNI_EDONI_2SFFJ(f)); f 29 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fd); f 31 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dirent *fd); f 33 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dirent *fd); f 35 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, f 38 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, f 41 fs/jffs2/gc.c struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f); f 126 fs/jffs2/gc.c struct jffs2_inode_info *f; f 454 fs/jffs2/gc.c f = jffs2_gc_fetch_inode(c, inum, !nlink); f 455 fs/jffs2/gc.c if (IS_ERR(f)) { f 456 fs/jffs2/gc.c ret = PTR_ERR(f); f 459 fs/jffs2/gc.c if (!f) { f 464 fs/jffs2/gc.c ret = jffs2_garbage_collect_live(c, jeb, raw, f); f 466 fs/jffs2/gc.c jffs2_gc_release_inode(c, f); f 498 fs/jffs2/gc.c struct jffs2_raw_node_ref *raw, struct jffs2_inode_info *f) f 506 fs/jffs2/gc.c mutex_lock(&f->sem); f 527 fs/jffs2/gc.c if (f->metadata && f->metadata->raw == raw) { f 528 fs/jffs2/gc.c fn = f->metadata; f 529 fs/jffs2/gc.c ret = jffs2_garbage_collect_metadata(c, jeb, f, fn); f 534 fs/jffs2/gc.c for (frag = frag_first(&f->fragtree); frag; frag = frag_next(frag)) { f 546 fs/jffs2/gc.c ret = jffs2_garbage_collect_pristine(c, f->inocache, raw); f 549 fs/jffs2/gc.c frag->node->raw = f->inocache->nodes; f 557 fs/jffs2/gc.c ret = jffs2_garbage_collect_hole(c, jeb, f, fn, start, end); f 560 fs/jffs2/gc.c ret = jffs2_garbage_collect_dnode(c, jeb, f, fn, start, end); f 566 fs/jffs2/gc.c for (fd = f->dents; fd; fd=fd->next) { f 572 fs/jffs2/gc.c ret = jffs2_garbage_collect_dirent(c, jeb, f, fd); f 574 fs/jffs2/gc.c ret = jffs2_garbage_collect_deletion_dirent(c, jeb, f, fd); f 577 fs/jffs2/gc.c ref_offset(raw), f->inocache->ino); f 586 fs/jffs2/gc.c mutex_unlock(&f->sem); f 759 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) f 770 fs/jffs2/gc.c if (S_ISBLK(JFFS2_F_I_MODE(f)) || f 771 fs/jffs2/gc.c S_ISCHR(JFFS2_F_I_MODE(f)) ) { f 773 fs/jffs2/gc.c mdatalen = jffs2_encode_dev(&dev, JFFS2_F_I_RDEV(f)); f 777 fs/jffs2/gc.c } else if (S_ISLNK(JFFS2_F_I_MODE(f))) { f 784 fs/jffs2/gc.c ret = jffs2_read_dnode(c, f, fn, mdata, 0, mdatalen); f 804 fs/jffs2/gc.c last_frag = frag_last(&f->fragtree); f 810 fs/jffs2/gc.c ilen = JFFS2_F_I_SIZE(f); f 818 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); f 819 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); f 820 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); f 821 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); f 822 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); f 824 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); f 825 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); f 826 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); f 834 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, mdata, mdatalen, ALLOC_GC); f 843 fs/jffs2/gc.c f->metadata = new_fn; f 845 fs/jffs2/gc.c if (S_ISLNK(JFFS2_F_I_MODE(f))) f 851 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) f 864 fs/jffs2/gc.c rd.pino = cpu_to_je32(f->inocache->ino); f 865 fs/jffs2/gc.c rd.version = cpu_to_je32(++f->highest_version); f 869 fs/jffs2/gc.c if (JFFS2_F_I_MTIME(f) == JFFS2_F_I_CTIME(f)) f 870 fs/jffs2/gc.c rd.mctime = cpu_to_je32(JFFS2_F_I_MTIME(f)); f 884 fs/jffs2/gc.c new_fd = jffs2_write_dirent(c, f, &rd, fd->name, rd.nsize, ALLOC_GC); f 891 fs/jffs2/gc.c jffs2_add_fd_to_list(c, new_fd, &f->dents); f 896 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dirent *fd) f 898 fs/jffs2/gc.c struct jffs2_full_dirent **fdp = &f->dents; f 924 fs/jffs2/gc.c for (raw = f->inocache->nodes; raw != (void *)f->inocache; raw = raw->next_in_ino) { f 985 fs/jffs2/gc.c return jffs2_garbage_collect_dirent(c, jeb, f, fd); f 1006 fs/jffs2/gc.c fd->name, f->inocache->ino); f 1014 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, f 1024 fs/jffs2/gc.c f->inocache->ino, start, end); f 1058 fs/jffs2/gc.c start, end, f->inocache->ino); f 1065 fs/jffs2/gc.c start, end, f->inocache->ino); f 1075 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); f 1076 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); f 1083 fs/jffs2/gc.c frag = frag_last(&f->fragtree); f 1089 fs/jffs2/gc.c ilen = JFFS2_F_I_SIZE(f); f 1091 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); f 1092 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); f 1093 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); f 1095 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); f 1096 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); f 1097 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); f 1108 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, NULL, 0, ALLOC_GC); f 1114 fs/jffs2/gc.c if (je32_to_cpu(ri.version) == f->highest_version) { f 1115 fs/jffs2/gc.c jffs2_add_full_dnode_to_inode(c, f, new_fn); f 1116 fs/jffs2/gc.c if (f->metadata) { f 1117 fs/jffs2/gc.c jffs2_mark_node_obsolete(c, f->metadata->raw); f 1118 fs/jffs2/gc.c jffs2_free_full_dnode(f->metadata); f 1119 fs/jffs2/gc.c f->metadata = NULL; f 1133 fs/jffs2/gc.c f->highest_version, je32_to_cpu(ri.ino)); f 1139 fs/jffs2/gc.c for (frag = jffs2_lookup_node_frag(&f->fragtree, fn->ofs); f 1165 fs/jffs2/gc.c struct jffs2_inode_info *f, struct jffs2_full_dnode *fn, f 1168 fs/jffs2/gc.c struct inode *inode = OFNI_EDONI_2SFFJ(f); f 1180 fs/jffs2/gc.c f->inocache->ino, start, end); f 1199 fs/jffs2/gc.c frag = jffs2_lookup_node_frag(&f->fragtree, start); f 1260 fs/jffs2/gc.c frag = jffs2_lookup_node_frag(&f->fragtree, end-1); f 1315 fs/jffs2/gc.c D1(BUG_ON(end > frag_last(&f->fragtree)->ofs + frag_last(&f->fragtree)->size)); f 1328 fs/jffs2/gc.c mutex_unlock(&f->sem); f 1334 fs/jffs2/gc.c mutex_lock(&f->sem); f 1339 fs/jffs2/gc.c mutex_lock(&f->sem); f 1360 fs/jffs2/gc.c comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); f 1367 fs/jffs2/gc.c ri.ino = cpu_to_je32(f->inocache->ino); f 1368 fs/jffs2/gc.c ri.version = cpu_to_je32(++f->highest_version); f 1369 fs/jffs2/gc.c ri.mode = cpu_to_jemode(JFFS2_F_I_MODE(f)); f 1370 fs/jffs2/gc.c ri.uid = cpu_to_je16(JFFS2_F_I_UID(f)); f 1371 fs/jffs2/gc.c ri.gid = cpu_to_je16(JFFS2_F_I_GID(f)); f 1372 fs/jffs2/gc.c ri.isize = cpu_to_je32(JFFS2_F_I_SIZE(f)); f 1373 fs/jffs2/gc.c ri.atime = cpu_to_je32(JFFS2_F_I_ATIME(f)); f 1374 fs/jffs2/gc.c ri.ctime = cpu_to_je32(JFFS2_F_I_CTIME(f)); f 1375 fs/jffs2/gc.c ri.mtime = cpu_to_je32(JFFS2_F_I_MTIME(f)); f 1384 fs/jffs2/gc.c new_fn = jffs2_write_dnode(c, f, &ri, comprbuf, cdatalen, ALLOC_GC); f 1394 fs/jffs2/gc.c ret = jffs2_add_full_dnode_to_inode(c, f, new_fn); f 1396 fs/jffs2/gc.c if (f->metadata) { f 1397 fs/jffs2/gc.c jffs2_mark_node_obsolete(c, f->metadata->raw); f 1398 fs/jffs2/gc.c jffs2_free_full_dnode(f->metadata); f 1399 fs/jffs2/gc.c f->metadata = NULL; f 363 fs/jffs2/nodelist.c int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn) f 379 fs/jffs2/nodelist.c ret = jffs2_add_frag_to_fragtree(c, &f->fragtree, newfrag); f 403 fs/jffs2/nodelist.c jffs2_dbg_fragtree_paranoia_check_nolock(f); f 373 fs/jffs2/nodelist.h int jffs2_add_full_dnode_to_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, struct jffs2_full_dnode *fn); f 396 fs/jffs2/nodelist.h int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, uint32_t mode, struct jffs2_raw_inode *ri); f 398 fs/jffs2/nodelist.h struct jffs2_full_dnode *jffs2_write_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 401 fs/jffs2/nodelist.h struct jffs2_full_dirent *jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 404 fs/jffs2/nodelist.h int jffs2_write_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 407 fs/jffs2/nodelist.h int jffs2_do_create(struct jffs2_sb_info *c, struct jffs2_inode_info *dir_f, struct jffs2_inode_info *f, f 416 fs/jffs2/nodelist.h int jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 419 fs/jffs2/nodelist.h void jffs2_do_clear_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f); f 453 fs/jffs2/nodelist.h int jffs2_read_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 456 fs/jffs2/nodelist.h int jffs2_read_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 458 fs/jffs2/nodelist.h char *jffs2_getlink(struct jffs2_sb_info *c, struct jffs2_inode_info *f); f 23 fs/jffs2/os-linux.h #define OFNI_EDONI_2SFFJ(f) (&(f)->vfs_inode) f 28 fs/jffs2/os-linux.h #define JFFS2_F_I_SIZE(f) (OFNI_EDONI_2SFFJ(f)->i_size) f 29 fs/jffs2/os-linux.h #define JFFS2_F_I_MODE(f) (OFNI_EDONI_2SFFJ(f)->i_mode) f 30 fs/jffs2/os-linux.h #define JFFS2_F_I_UID(f) (i_uid_read(OFNI_EDONI_2SFFJ(f))) f 31 fs/jffs2/os-linux.h #define JFFS2_F_I_GID(f) (i_gid_read(OFNI_EDONI_2SFFJ(f))) f 32 fs/jffs2/os-linux.h #define JFFS2_F_I_RDEV(f) (OFNI_EDONI_2SFFJ(f)->i_rdev) f 38 fs/jffs2/os-linux.h #define JFFS2_F_I_CTIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_ctime) f 39 fs/jffs2/os-linux.h #define JFFS2_F_I_MTIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_mtime) f 40 fs/jffs2/os-linux.h #define JFFS2_F_I_ATIME(f) I_SEC(OFNI_EDONI_2SFFJ(f)->i_atime) f 51 fs/jffs2/os-linux.h static inline void jffs2_init_inode_info(struct jffs2_inode_info *f) f 53 fs/jffs2/os-linux.h f->highest_version = 0; f 54 fs/jffs2/os-linux.h f->fragtree = RB_ROOT; f 55 fs/jffs2/os-linux.h f->metadata = NULL; f 56 fs/jffs2/os-linux.h f->dents = NULL; f 57 fs/jffs2/os-linux.h f->target = NULL; f 58 fs/jffs2/os-linux.h f->flags = 0; f 59 fs/jffs2/os-linux.h f->usercompr = 0; f 87 fs/jffs2/os-linux.h #define jffs2_flash_writev(a,b,c,d,e,f) jffs2_flash_direct_writev(a,b,c,d,e) f 178 fs/jffs2/os-linux.h struct jffs2_inode_info *f); f 183 fs/jffs2/os-linux.h struct jffs2_inode_info *f, f 23 fs/jffs2/read.c int jffs2_read_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 135 fs/jffs2/read.c ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri->csize), je32_to_cpu(ri->dsize)); f 157 fs/jffs2/read.c int jffs2_read_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 165 fs/jffs2/read.c __func__, f->inocache->ino, offset, offset + len); f 167 fs/jffs2/read.c frag = jffs2_lookup_node_frag(&f->fragtree, offset); f 182 fs/jffs2/read.c f->inocache->ino, frag->ofs, offset); f 212 fs/jffs2/read.c ret = jffs2_read_dnode(c, f, frag->node, buf, fragofs + frag->ofs - frag->node->ofs, readlen); f 452 fs/jffs2/readinode.c struct jffs2_inode_info *f, f 518 fs/jffs2/readinode.c ret = jffs2_add_full_dnode_to_inode(c, f, this->fn); f 965 fs/jffs2/readinode.c static int jffs2_get_inode_nodes(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 976 fs/jffs2/readinode.c dbg_readinode("ino #%u\n", f->inocache->ino); f 986 fs/jffs2/readinode.c valid_ref = jffs2_first_valid_node(f->inocache->nodes); f 987 fs/jffs2/readinode.c if (!valid_ref && f->inocache->ino != 1) f 988 fs/jffs2/readinode.c JFFS2_WARNING("Eep. No valid nodes for ino #%u.\n", f->inocache->ino); f 1114 fs/jffs2/readinode.c f->highest_version = rii->highest_version; f 1117 fs/jffs2/readinode.c f->inocache->ino, rii->highest_version, rii->latest_mctime, f 1130 fs/jffs2/readinode.c struct jffs2_inode_info *f, f 1138 fs/jffs2/readinode.c dbg_readinode("ino #%u pino/nlink is %d\n", f->inocache->ino, f 1139 fs/jffs2/readinode.c f->inocache->pino_nlink); f 1144 fs/jffs2/readinode.c ret = jffs2_get_inode_nodes(c, f, &rii); f 1147 fs/jffs2/readinode.c JFFS2_ERROR("cannot read nodes for ino %u, returned error is %d\n", f->inocache->ino, ret); f 1148 fs/jffs2/readinode.c if (f->inocache->state == INO_STATE_READING) f 1149 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT); f 1153 fs/jffs2/readinode.c ret = jffs2_build_inode_fragtree(c, f, &rii); f 1156 fs/jffs2/readinode.c f->inocache->ino, ret); f 1157 fs/jffs2/readinode.c if (f->inocache->state == INO_STATE_READING) f 1158 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT); f 1171 fs/jffs2/readinode.c f->metadata = rii.mdata_tn->fn; f 1179 fs/jffs2/readinode.c f->dents = rii.fds; f 1181 fs/jffs2/readinode.c jffs2_dbg_fragtree_paranoia_check_nolock(f); f 1185 fs/jffs2/readinode.c if (f->inocache->ino != 1) { f 1186 fs/jffs2/readinode.c JFFS2_WARNING("no data nodes found for ino #%u\n", f->inocache->ino); f 1188 fs/jffs2/readinode.c if (f->inocache->state == INO_STATE_READING) f 1189 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT); f 1200 fs/jffs2/readinode.c if (f->inocache->state == INO_STATE_READING) f 1201 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_PRESENT); f 1216 fs/jffs2/readinode.c f->inocache->ino, ref_offset(rii.latest_ref)); f 1232 fs/jffs2/readinode.c new_size = jffs2_truncate_fragtree(c, &f->fragtree, je32_to_cpu(latest_node->isize)); f 1235 fs/jffs2/readinode.c f->inocache->ino, je32_to_cpu(latest_node->isize), new_size); f 1248 fs/jffs2/readinode.c if (f->inocache->state != INO_STATE_CHECKING) { f 1255 fs/jffs2/readinode.c f->target = kmalloc(csize + 1, GFP_KERNEL); f 1256 fs/jffs2/readinode.c if (!f->target) { f 1262 fs/jffs2/readinode.c csize, &retlen, (char *)f->target); f 1267 fs/jffs2/readinode.c kfree(f->target); f 1268 fs/jffs2/readinode.c f->target = NULL; f 1272 fs/jffs2/readinode.c f->target[csize] = '\0'; f 1273 fs/jffs2/readinode.c dbg_readinode("symlink's target '%s' cached\n", f->target); f 1282 fs/jffs2/readinode.c if (f->metadata) { f 1284 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); f 1287 fs/jffs2/readinode.c if (!frag_first(&f->fragtree)) { f 1289 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); f 1293 fs/jffs2/readinode.c if (frag_next(frag_first(&f->fragtree))) { f 1295 fs/jffs2/readinode.c f->inocache->ino, jemode_to_cpu(latest_node->mode)); f 1300 fs/jffs2/readinode.c f->metadata = frag_first(&f->fragtree)->node; f 1301 fs/jffs2/readinode.c jffs2_free_node_frag(frag_first(&f->fragtree)); f 1302 fs/jffs2/readinode.c f->fragtree = RB_ROOT; f 1305 fs/jffs2/readinode.c if (f->inocache->state == INO_STATE_READING) f 1306 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_PRESENT); f 1312 fs/jffs2/readinode.c int jffs2_do_read_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 1319 fs/jffs2/readinode.c f->inocache = jffs2_get_ino_cache(c, ino); f 1321 fs/jffs2/readinode.c if (f->inocache) { f 1323 fs/jffs2/readinode.c switch(f->inocache->state) { f 1326 fs/jffs2/readinode.c f->inocache->state = INO_STATE_READING; f 1334 fs/jffs2/readinode.c dbg_readinode("waiting for ino #%u in state %d\n", ino, f->inocache->state); f 1343 fs/jffs2/readinode.c JFFS2_ERROR("Eep. Trying to read_inode #%u when it's already in state %d!\n", ino, f->inocache->state); f 1345 fs/jffs2/readinode.c f->inocache = NULL; f 1354 fs/jffs2/readinode.c if (!f->inocache && ino == 1) { f 1356 fs/jffs2/readinode.c f->inocache = jffs2_alloc_inode_cache(); f 1357 fs/jffs2/readinode.c if (!f->inocache) { f 1362 fs/jffs2/readinode.c memset(f->inocache, 0, sizeof(struct jffs2_inode_cache)); f 1363 fs/jffs2/readinode.c f->inocache->ino = f->inocache->pino_nlink = 1; f 1364 fs/jffs2/readinode.c f->inocache->nodes = (struct jffs2_raw_node_ref *)f->inocache; f 1365 fs/jffs2/readinode.c f->inocache->state = INO_STATE_READING; f 1366 fs/jffs2/readinode.c jffs2_add_ino_cache(c, f->inocache); f 1368 fs/jffs2/readinode.c if (!f->inocache) { f 1373 fs/jffs2/readinode.c return jffs2_do_read_inode_internal(c, f, latest_node); f 1379 fs/jffs2/readinode.c struct jffs2_inode_info *f = kzalloc(sizeof(*f), GFP_KERNEL); f 1382 fs/jffs2/readinode.c if (!f) f 1385 fs/jffs2/readinode.c mutex_init(&f->sem); f 1386 fs/jffs2/readinode.c mutex_lock(&f->sem); f 1387 fs/jffs2/readinode.c f->inocache = ic; f 1389 fs/jffs2/readinode.c ret = jffs2_do_read_inode_internal(c, f, &n); f 1390 fs/jffs2/readinode.c mutex_unlock(&f->sem); f 1391 fs/jffs2/readinode.c jffs2_do_clear_inode(c, f); f 1393 fs/jffs2/readinode.c kfree (f); f 1397 fs/jffs2/readinode.c void jffs2_do_clear_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f) f 1402 fs/jffs2/readinode.c jffs2_xattr_delete_inode(c, f->inocache); f 1403 fs/jffs2/readinode.c mutex_lock(&f->sem); f 1404 fs/jffs2/readinode.c deleted = f->inocache && !f->inocache->pino_nlink; f 1406 fs/jffs2/readinode.c if (f->inocache && f->inocache->state != INO_STATE_CHECKING) f 1407 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_CLEARING); f 1409 fs/jffs2/readinode.c if (f->metadata) { f 1411 fs/jffs2/readinode.c jffs2_mark_node_obsolete(c, f->metadata->raw); f 1412 fs/jffs2/readinode.c jffs2_free_full_dnode(f->metadata); f 1415 fs/jffs2/readinode.c jffs2_kill_fragtree(&f->fragtree, deleted?c:NULL); f 1417 fs/jffs2/readinode.c fds = f->dents; f 1424 fs/jffs2/readinode.c if (f->inocache && f->inocache->state != INO_STATE_CHECKING) { f 1425 fs/jffs2/readinode.c jffs2_set_inocache_state(c, f->inocache, INO_STATE_CHECKEDABSENT); f 1426 fs/jffs2/readinode.c if (f->inocache->nodes == (void *)f->inocache) f 1427 fs/jffs2/readinode.c jffs2_del_ino_cache(c, f->inocache); f 1430 fs/jffs2/readinode.c mutex_unlock(&f->sem); f 40 fs/jffs2/super.c struct jffs2_inode_info *f; f 42 fs/jffs2/super.c f = kmem_cache_alloc(jffs2_inode_cachep, GFP_KERNEL); f 43 fs/jffs2/super.c if (!f) f 45 fs/jffs2/super.c return &f->vfs_inode; f 50 fs/jffs2/super.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 52 fs/jffs2/super.c kfree(f->target); f 53 fs/jffs2/super.c kmem_cache_free(jffs2_inode_cachep, f); f 58 fs/jffs2/super.c struct jffs2_inode_info *f = foo; f 60 fs/jffs2/super.c mutex_init(&f->sem); f 61 fs/jffs2/super.c inode_init_once(&f->vfs_inode); f 137 fs/jffs2/super.c struct jffs2_inode_info *f; f 142 fs/jffs2/super.c f = JFFS2_INODE_INFO(d_inode(child)); f 144 fs/jffs2/super.c pino = f->inocache->pino_nlink; f 147 fs/jffs2/super.c f->inocache->ino, pino); f 183 fs/jffs2/wbuf.c struct jffs2_inode_info *f, f 198 fs/jffs2/wbuf.c if (f->metadata && f->metadata->raw == raw) { f 199 fs/jffs2/wbuf.c dbg_noderef("Will replace ->raw in f->metadata at %p\n", f->metadata); f 200 fs/jffs2/wbuf.c return &f->metadata->raw; f 202 fs/jffs2/wbuf.c frag = jffs2_lookup_node_frag(&f->fragtree, je32_to_cpu(node->i.offset)); f 213 fs/jffs2/wbuf.c for (fd = f->dents; fd; fd = fd->next) { f 468 fs/jffs2/wbuf.c struct jffs2_inode_info *f = NULL; f 505 fs/jffs2/wbuf.c f = jffs2_gc_fetch_inode(c, ic->ino, !ic->pino_nlink); f 506 fs/jffs2/wbuf.c if (IS_ERR(f)) { f 509 fs/jffs2/wbuf.c ic->ino, PTR_ERR(f)); f 517 fs/jffs2/wbuf.c adjust_ref = jffs2_incore_replace_raw(c, f, raw, f 533 fs/jffs2/wbuf.c if (f) f 534 fs/jffs2/wbuf.c jffs2_gc_release_inode(c, f); f 23 fs/jffs2/write.c int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 35 fs/jffs2/write.c f->inocache = ic; f 36 fs/jffs2/write.c f->inocache->pino_nlink = 1; /* Will be overwritten shortly for directories */ f 37 fs/jffs2/write.c f->inocache->nodes = (struct jffs2_raw_node_ref *)f->inocache; f 38 fs/jffs2/write.c f->inocache->state = INO_STATE_PRESENT; f 40 fs/jffs2/write.c jffs2_add_ino_cache(c, f->inocache); f 41 fs/jffs2/write.c jffs2_dbg(1, "%s(): Assigned ino# %d\n", __func__, f->inocache->ino); f 42 fs/jffs2/write.c ri->ino = cpu_to_je32(f->inocache->ino); f 50 fs/jffs2/write.c f->highest_version = 1; f 51 fs/jffs2/write.c ri->version = cpu_to_je32(f->highest_version); f 59 fs/jffs2/write.c struct jffs2_full_dnode *jffs2_write_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 100 fs/jffs2/write.c if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(ri->version) < f->highest_version)) { f 104 fs/jffs2/write.c je32_to_cpu(ri->version), f->highest_version); f 105 fs/jffs2/write.c ri->version = cpu_to_je32(++f->highest_version); f 110 fs/jffs2/write.c (alloc_mode==ALLOC_GC)?0:f->inocache->ino); f 145 fs/jffs2/write.c mutex_unlock(&f->sem); f 150 fs/jffs2/write.c mutex_lock(&f->sem); f 182 fs/jffs2/write.c fn->raw = jffs2_add_physical_node_ref(c, flash_ofs, PAD(sizeof(*ri)+datalen), f->inocache); f 205 fs/jffs2/write.c struct jffs2_full_dirent *jffs2_write_dirent(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 258 fs/jffs2/write.c if ((alloc_mode!=ALLOC_GC) && (je32_to_cpu(rd->version) < f->highest_version)) { f 262 fs/jffs2/write.c je32_to_cpu(rd->version), f->highest_version); f 263 fs/jffs2/write.c rd->version = cpu_to_je32(++f->highest_version); f 297 fs/jffs2/write.c mutex_unlock(&f->sem); f 302 fs/jffs2/write.c mutex_lock(&f->sem); f 322 fs/jffs2/write.c PAD(sizeof(*rd)+namelen), f->inocache); f 340 fs/jffs2/write.c int jffs2_write_inode_range(struct jffs2_sb_info *c, struct jffs2_inode_info *f, f 348 fs/jffs2/write.c __func__, f->inocache->ino, offset, writelen); f 368 fs/jffs2/write.c mutex_lock(&f->sem); f 373 fs/jffs2/write.c comprtype = jffs2_compress(c, f, buf, &comprbuf, &datalen, &cdatalen); f 380 fs/jffs2/write.c ri->ino = cpu_to_je32(f->inocache->ino); f 381 fs/jffs2/write.c ri->version = cpu_to_je32(++f->highest_version); f 391 fs/jffs2/write.c fn = jffs2_write_dnode(c, f, ri, comprbuf, cdatalen, ALLOC_NORETRY); f 397 fs/jffs2/write.c mutex_unlock(&f->sem); f 407 fs/jffs2/write.c ret = jffs2_add_full_dnode_to_inode(c, f, fn); f 408 fs/jffs2/write.c if (f->metadata) { f 409 fs/jffs2/write.c jffs2_mark_node_obsolete(c, f->metadata->raw); f 410 fs/jffs2/write.c jffs2_free_full_dnode(f->metadata); f 411 fs/jffs2/write.c f->metadata = NULL; f 420 fs/jffs2/write.c mutex_unlock(&f->sem); f 424 fs/jffs2/write.c mutex_unlock(&f->sem); f 442 fs/jffs2/write.c struct jffs2_inode_info *f, struct jffs2_raw_inode *ri, f 460 fs/jffs2/write.c mutex_lock(&f->sem); f 465 fs/jffs2/write.c fn = jffs2_write_dnode(c, f, ri, NULL, 0, ALLOC_NORMAL); f 473 fs/jffs2/write.c mutex_unlock(&f->sem); f 480 fs/jffs2/write.c f->metadata = fn; f 482 fs/jffs2/write.c mutex_unlock(&f->sem); f 485 fs/jffs2/write.c ret = jffs2_init_security(&f->vfs_inode, &dir_f->vfs_inode, qstr); f 488 fs/jffs2/write.c ret = jffs2_init_acl_post(&f->vfs_inode); f 964 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 966 fs/jffs2/xattr.c struct jffs2_inode_cache *ic = f->inocache; f 1034 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 1036 fs/jffs2/xattr.c struct jffs2_inode_cache *ic = f->inocache; f 1096 fs/jffs2/xattr.c struct jffs2_inode_info *f = JFFS2_INODE_INFO(inode); f 1098 fs/jffs2/xattr.c struct jffs2_inode_cache *ic = f->inocache; f 1336 fs/jfs/jfs_dtree.c struct dtslot *f; f 1444 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; f 1445 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) f 1446 fs/jfs/jfs_dtree.c f->next = fsi; f 1447 fs/jfs/jfs_dtree.c f->next = -1; f 1561 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; f 1562 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) f 1563 fs/jfs/jfs_dtree.c f->next = fsi; f 1564 fs/jfs/jfs_dtree.c f->next = -1; f 1643 fs/jfs/jfs_dtree.c struct dtslot *f; f 1772 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; f 1774 fs/jfs/jfs_dtree.c for (n = 0; n < oldstblsize; n++, fsi++, f++) { f 1775 fs/jfs/jfs_dtree.c f->next = last; f 1786 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; f 1787 fs/jfs/jfs_dtree.c for (fsi++; fsi < sp->header.maxslot; f++, fsi++) f 1788 fs/jfs/jfs_dtree.c f->next = fsi; f 1789 fs/jfs/jfs_dtree.c f->next = -1; f 1797 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; f 1798 fs/jfs/jfs_dtree.c fsi = f->next; f 1801 fs/jfs/jfs_dtree.c f->next = n; f 1874 fs/jfs/jfs_dtree.c struct dtslot *f; f 1958 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; f 1959 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) f 1960 fs/jfs/jfs_dtree.c f->next = fsi; f 1961 fs/jfs/jfs_dtree.c f->next = -1; f 1971 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; f 1972 fs/jfs/jfs_dtree.c fsi = f->next; f 1975 fs/jfs/jfs_dtree.c f->next = n; f 2045 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; f 2048 fs/jfs/jfs_dtree.c for (fsi++; fsi < DTROOTMAXSLOT; f++, fsi++) f 2049 fs/jfs/jfs_dtree.c f->next = fsi; f 2050 fs/jfs/jfs_dtree.c f->next = -1; f 2819 fs/jfs/jfs_dtree.c struct dtslot *f; f 2883 fs/jfs/jfs_dtree.c f = &p->slot[fsi]; f 2886 fs/jfs/jfs_dtree.c for (fsi++; fsi < DTROOTMAXSLOT; f++, fsi++) f 2887 fs/jfs/jfs_dtree.c f->next = fsi; f 2888 fs/jfs/jfs_dtree.c f->next = -1; f 36 fs/lockd/svcsubs.c static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) f 38 fs/lockd/svcsubs.c u32 *fhp = (u32*)f->data; f 54 fs/lockd/svcsubs.c static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) f 65 fs/lockd/svcsubs.c static inline unsigned int file_hash(struct nfs_fh *f) f 70 fs/lockd/svcsubs.c tmp += f->data[i]; f 85 fs/lockd/svcsubs.c struct nfs_fh *f) f 91 fs/lockd/svcsubs.c nlm_debug_print_fh("nlm_lookup_file", f); f 93 fs/lockd/svcsubs.c hash = file_hash(f); f 99 fs/lockd/svcsubs.c if (!nfs_compare_fh(&file->f_handle, f)) f 102 fs/lockd/svcsubs.c nlm_debug_print_fh("creating file for", f); f 109 fs/lockd/svcsubs.c memcpy(&file->f_handle, f, sizeof(struct nfs_fh)); f 120 fs/lockd/svcsubs.c if ((nfserr = nlmsvc_ops->fopen(rqstp, f, &file->f_file)) != 0) { f 84 fs/lockd/xdr.c nlm_decode_fh(__be32 *p, struct nfs_fh *f) f 93 fs/lockd/xdr.c f->size = NFS2_FHSIZE; f 94 fs/lockd/xdr.c memset(f->data, 0, sizeof(f->data)); f 95 fs/lockd/xdr.c memcpy(f->data, p, NFS2_FHSIZE); f 84 fs/lockd/xdr4.c nlm4_decode_fh(__be32 *p, struct nfs_fh *f) f 86 fs/lockd/xdr4.c memset(f->data, 0, sizeof(f->data)); f 87 fs/lockd/xdr4.c f->size = ntohl(*p++); f 88 fs/lockd/xdr4.c if (f->size > NFS_MAXFHSIZE) { f 90 fs/lockd/xdr4.c f->size, NFS_MAXFHSIZE); f 93 fs/lockd/xdr4.c memcpy(f->data, p, f->size); f 94 fs/lockd/xdr4.c return p + XDR_QUADLEN(f->size); f 447 fs/locks.c struct file_lock *f; f 458 fs/locks.c list_for_each_entry(f, &new->fl_blocked_requests, fl_blocked_member) f 459 fs/locks.c f->fl_blocker = new; f 2217 fs/locks.c struct fd f = fdget(fd); f 2223 fs/locks.c if (!f.file) f 2231 fs/locks.c !(f.file->f_mode & (FMODE_READ|FMODE_WRITE))) f 2234 fs/locks.c lock = flock_make_lock(f.file, cmd, NULL); f 2243 fs/locks.c error = security_file_lock(f.file, lock->fl_type); f 2247 fs/locks.c if (f.file->f_op->flock) f 2248 fs/locks.c error = f.file->f_op->flock(f.file, f 2252 fs/locks.c error = locks_lock_file_wait(f.file, lock); f 2258 fs/locks.c fdput(f); f 2477 fs/locks.c struct file *f; f 2541 fs/locks.c f = fcheck(fd); f 2543 fs/locks.c if (f != filp) { f 2608 fs/locks.c struct file *f; f 2672 fs/locks.c f = fcheck(fd); f 2674 fs/locks.c if (f != filp) { f 2821 fs/locks.c static void lock_get_status(struct seq_file *f, struct file_lock *fl, f 2826 fs/locks.c struct pid_namespace *proc_pidns = file_inode(f->file)->i_sb->s_fs_info; f 2838 fs/locks.c seq_printf(f, "%lld:%s ", id, pfx); f 2841 fs/locks.c seq_puts(f, "ACCESS"); f 2843 fs/locks.c seq_puts(f, "OFDLCK"); f 2845 fs/locks.c seq_puts(f, "POSIX "); f 2847 fs/locks.c seq_printf(f, " %s ", f 2852 fs/locks.c seq_puts(f, "FLOCK MSNFS "); f 2854 fs/locks.c seq_puts(f, "FLOCK ADVISORY "); f 2858 fs/locks.c seq_puts(f, "DELEG "); f 2860 fs/locks.c seq_puts(f, "LEASE "); f 2863 fs/locks.c seq_puts(f, "BREAKING "); f 2865 fs/locks.c seq_puts(f, "ACTIVE "); f 2867 fs/locks.c seq_puts(f, "BREAKER "); f 2869 fs/locks.c seq_puts(f, "UNKNOWN UNKNOWN "); f 2872 fs/locks.c seq_printf(f, "%s ", f 2879 fs/locks.c seq_printf(f, "%s ", (type == F_WRLCK) ? "WRITE" : f 2884 fs/locks.c seq_printf(f, "%d %02x:%02x:%lu ", fl_pid, f 2888 fs/locks.c seq_printf(f, "%d <none>:0 ", fl_pid); f 2892 fs/locks.c seq_printf(f, "%Ld EOF\n", fl->fl_start); f 2894 fs/locks.c seq_printf(f, "%Ld %Ld\n", fl->fl_start, fl->fl_end); f 2896 fs/locks.c seq_puts(f, "0 EOF\n"); f 2900 fs/locks.c static int locks_show(struct seq_file *f, void *v) f 2902 fs/locks.c struct locks_iterator *iter = f->private; f 2904 fs/locks.c struct pid_namespace *proc_pidns = file_inode(f->file)->i_sb->s_fs_info; f 2911 fs/locks.c lock_get_status(f, fl, iter->li_pos, ""); f 2914 fs/locks.c lock_get_status(f, bfl, iter->li_pos, " ->"); f 2919 fs/locks.c static void __show_fd_locks(struct seq_file *f, f 2934 fs/locks.c seq_puts(f, "lock:\t"); f 2935 fs/locks.c lock_get_status(f, fl, *id, ""); f 2939 fs/locks.c void show_fd_locks(struct seq_file *f, f 2951 fs/locks.c __show_fd_locks(f, &ctx->flc_flock, &id, filp, files); f 2952 fs/locks.c __show_fd_locks(f, &ctx->flc_posix, &id, filp, files); f 2953 fs/locks.c __show_fd_locks(f, &ctx->flc_lease, &id, filp, files); f 2957 fs/locks.c static void *locks_start(struct seq_file *f, loff_t *pos) f 2960 fs/locks.c struct locks_iterator *iter = f->private; f 2968 fs/locks.c static void *locks_next(struct seq_file *f, void *v, loff_t *pos) f 2970 fs/locks.c struct locks_iterator *iter = f->private; f 2976 fs/locks.c static void locks_stop(struct seq_file *f, void *v) f 2220 fs/namei.c struct fd f = fdget_raw(nd->dfd); f 2223 fs/namei.c if (!f.file) f 2226 fs/namei.c dentry = f.file->f_path.dentry; f 2229 fs/namei.c fdput(f); f 2233 fs/namei.c nd->path = f.file->f_path; f 2241 fs/namei.c fdput(f); f 2911 fs/namei.c int (*f)(struct dentry *, umode_t, void *), f 2924 fs/namei.c error = f(dentry, mode, arg); f 1886 fs/namespace.c int iterate_mounts(int (*f)(struct vfsmount *, void *), void *arg, f 1890 fs/namespace.c int res = f(root, arg); f 1894 fs/namespace.c res = f(&mnt->mnt, arg); f 2992 fs/namespace.c const char __user *f = from; f 2999 fs/namespace.c if (__get_user(c, f)) { f 3004 fs/namespace.c f++; f 3380 fs/namespace.c struct fd f; f 3422 fs/namespace.c f = fdget(fs_fd); f 3423 fs/namespace.c if (!f.file) f 3427 fs/namespace.c if (f.file->f_op != &fscontext_fops) f 3430 fs/namespace.c fc = f.file->private_data; f 3504 fs/namespace.c fdput(f); f 10 fs/nfsd/auth.c struct exp_flavor_info *f; f 13 fs/nfsd/auth.c for (f = exp->ex_flavors; f < end; f++) { f 14 fs/nfsd/auth.c if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) f 15 fs/nfsd/auth.c return f->flags; f 461 fs/nfsd/export.c struct exp_flavor_info *f; f 475 fs/nfsd/export.c for (f = exp->ex_flavors; f < exp->ex_flavors + listsize; f++) { f 476 fs/nfsd/export.c err = get_uint(mesg, &f->pseudoflavor); f 485 fs/nfsd/export.c err = get_uint(mesg, &f->flags); f 489 fs/nfsd/export.c if (~NFSEXP_SECINFO_FLAGS & (f->flags ^ exp->ex_flags)) f 892 fs/nfsd/export.c struct knfsd_fh *f, int maxsize) f 927 fs/nfsd/export.c memcpy(f, &fh.fh_handle, sizeof(struct knfsd_fh)); f 955 fs/nfsd/export.c struct exp_flavor_info *f; f 962 fs/nfsd/export.c for (f = exp->ex_flavors; f < end; f++) { f 963 fs/nfsd/export.c if (f->pseudoflavor == rqstp->rq_cred.cr_flavor) f 1144 fs/nfsd/export.c static bool secinfo_flags_equal(int f, int g) f 1146 fs/nfsd/export.c f &= NFSEXP_SECINFO_FLAGS; f 1148 fs/nfsd/export.c return f == g; f 1167 fs/nfsd/export.c struct exp_flavor_info *f; f 1173 fs/nfsd/export.c f = exp->ex_flavors; f 1174 fs/nfsd/export.c flags = show_secinfo_run(m, &f, end); f 1177 fs/nfsd/export.c while (f != end) { f 1178 fs/nfsd/export.c flags = show_secinfo_run(m, &f, end); f 28 fs/nfsd/lockd.c nlm_fopen(struct svc_rqst *rqstp, struct nfs_fh *f, struct file **filp) f 35 fs/nfsd/lockd.c fh.fh_handle.fh_size = f->size; f 36 fs/nfsd/lockd.c memcpy((char*)&fh.fh_handle.fh_base, f->data, f->size); f 146 fs/nfsd/nfs3xdr.c u64 f; f 157 fs/nfsd/nfs3xdr.c f = ((u64*)fhp->fh_export->ex_uuid)[0]; f 158 fs/nfsd/nfs3xdr.c f ^= ((u64*)fhp->fh_export->ex_uuid)[1]; f 159 fs/nfsd/nfs3xdr.c p = xdr_encode_hyper(p, f); f 297 fs/nfsd/nfs4recover.c nfsd4_list_rec_dir(recdir_func *f, struct nfsd_net *nn) f 329 fs/nfsd/nfs4recover.c status = f(dir, dentry, nn); f 436 fs/nfsd/nfs4state.c __nfs4_get_fd(struct nfs4_file *f, int oflag) f 438 fs/nfsd/nfs4state.c if (f->fi_fds[oflag]) f 439 fs/nfsd/nfs4state.c return nfsd_file_get(f->fi_fds[oflag]); f 444 fs/nfsd/nfs4state.c find_writeable_file_locked(struct nfs4_file *f) f 448 fs/nfsd/nfs4state.c lockdep_assert_held(&f->fi_lock); f 450 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_WRONLY); f 452 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); f 457 fs/nfsd/nfs4state.c find_writeable_file(struct nfs4_file *f) f 461 fs/nfsd/nfs4state.c spin_lock(&f->fi_lock); f 462 fs/nfsd/nfs4state.c ret = find_writeable_file_locked(f); f 463 fs/nfsd/nfs4state.c spin_unlock(&f->fi_lock); f 469 fs/nfsd/nfs4state.c find_readable_file_locked(struct nfs4_file *f) f 473 fs/nfsd/nfs4state.c lockdep_assert_held(&f->fi_lock); f 475 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDONLY); f 477 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); f 482 fs/nfsd/nfs4state.c find_readable_file(struct nfs4_file *f) f 486 fs/nfsd/nfs4state.c spin_lock(&f->fi_lock); f 487 fs/nfsd/nfs4state.c ret = find_readable_file_locked(f); f 488 fs/nfsd/nfs4state.c spin_unlock(&f->fi_lock); f 494 fs/nfsd/nfs4state.c find_any_file(struct nfs4_file *f) f 498 fs/nfsd/nfs4state.c spin_lock(&f->fi_lock); f 499 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDWR); f 501 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_WRONLY); f 503 fs/nfsd/nfs4state.c ret = __nfs4_get_fd(f, O_RDONLY); f 505 fs/nfsd/nfs4state.c spin_unlock(&f->fi_lock); f 2351 fs/nfsd/nfs4state.c static void nfs4_show_superblock(struct seq_file *s, struct nfsd_file *f) f 2353 fs/nfsd/nfs4state.c struct inode *inode = f->nf_inode; f 136 fs/nfsd/nfsxdr.c u32 f; f 166 fs/nfsd/nfsxdr.c f = ((u32*)fhp->fh_export->ex_uuid)[0]; f 167 fs/nfsd/nfsxdr.c f ^= ((u32*)fhp->fh_export->ex_uuid)[1]; f 168 fs/nfsd/nfsxdr.c f ^= ((u32*)fhp->fh_export->ex_uuid)[2]; f 169 fs/nfsd/nfsxdr.c f ^= ((u32*)fhp->fh_export->ex_uuid)[3]; f 170 fs/nfsd/nfsxdr.c *p++ = htonl(f); f 661 fs/nfsd/state.h struct nfsd_file *find_any_file(struct nfs4_file *f); f 49 fs/nfsd/xdr4.h #define SET_STATE_ID(c, f) ((c)->sid_flags |= (f)) f 50 fs/nfsd/xdr4.h #define HAS_STATE_ID(c, f) ((c)->sid_flags & (f)) f 51 fs/nfsd/xdr4.h #define CLEAR_STATE_ID(c, f) ((c)->sid_flags &= ~(f)) f 256 fs/notify/dnotify/dnotify.c struct file *f; f 336 fs/notify/dnotify/dnotify.c f = fcheck(fd); f 344 fs/notify/dnotify/dnotify.c if (f != filp) { f 265 fs/notify/fanotify/fanotify_user.c struct file *f = NULL; f 279 fs/notify/fanotify/fanotify_user.c fd = create_fd(group, event, &f); f 302 fs/notify/fanotify/fanotify_user.c fd_install(fd, f); f 314 fs/notify/fanotify/fanotify_user.c fput(f); f 540 fs/notify/fanotify/fanotify_user.c struct fd f = fdget(dfd); f 543 fs/notify/fanotify/fanotify_user.c if (!f.file) f 548 fs/notify/fanotify/fanotify_user.c !(S_ISDIR(file_inode(f.file)->i_mode))) { f 549 fs/notify/fanotify/fanotify_user.c fdput(f); f 553 fs/notify/fanotify/fanotify_user.c *path = f.file->f_path; f 555 fs/notify/fanotify/fanotify_user.c fdput(f); f 953 fs/notify/fanotify/fanotify_user.c struct fd f; f 1005 fs/notify/fanotify/fanotify_user.c f = fdget(fanotify_fd); f 1006 fs/notify/fanotify/fanotify_user.c if (unlikely(!f.file)) f 1011 fs/notify/fanotify/fanotify_user.c if (unlikely(f.file->f_op != &fanotify_fops)) f 1013 fs/notify/fanotify/fanotify_user.c group = f.file->private_data; f 1103 fs/notify/fanotify/fanotify_user.c fdput(f); f 25 fs/notify/fdinfo.c static void show_fdinfo(struct seq_file *m, struct file *f, f 29 fs/notify/fdinfo.c struct fsnotify_group *group = f->private_data; f 47 fs/notify/fdinfo.c } f; f 50 fs/notify/fdinfo.c f.handle.handle_bytes = sizeof(f.pad); f 51 fs/notify/fdinfo.c size = f.handle.handle_bytes >> 2; f 53 fs/notify/fdinfo.c ret = exportfs_encode_inode_fh(inode, (struct fid *)f.handle.f_handle, &size, 0); f 59 fs/notify/fdinfo.c f.handle.handle_type = ret; f 60 fs/notify/fdinfo.c f.handle.handle_bytes = size * sizeof(u32); f 63 fs/notify/fdinfo.c f.handle.handle_bytes, f.handle.handle_type); f 65 fs/notify/fdinfo.c for (i = 0; i < f.handle.handle_bytes; i++) f 66 fs/notify/fdinfo.c seq_printf(m, "%02x", (int)f.handle.f_handle[i]); f 103 fs/notify/fdinfo.c void inotify_show_fdinfo(struct seq_file *m, struct file *f) f 105 fs/notify/fdinfo.c show_fdinfo(m, f, inotify_fdinfo); f 143 fs/notify/fdinfo.c void fanotify_show_fdinfo(struct seq_file *m, struct file *f) f 145 fs/notify/fdinfo.c struct fsnotify_group *group = f->private_data; f 150 fs/notify/fdinfo.c show_fdinfo(m, f, fanotify_fdinfo); f 14 fs/notify/fdinfo.h void inotify_show_fdinfo(struct seq_file *m, struct file *f); f 18 fs/notify/fdinfo.h void fanotify_show_fdinfo(struct seq_file *m, struct file *f); f 704 fs/notify/inotify/inotify_user.c struct fd f; f 724 fs/notify/inotify/inotify_user.c f = fdget(fd); f 725 fs/notify/inotify/inotify_user.c if (unlikely(!f.file)) f 735 fs/notify/inotify/inotify_user.c if (unlikely(f.file->f_op != &inotify_fops)) { f 752 fs/notify/inotify/inotify_user.c group = f.file->private_data; f 758 fs/notify/inotify/inotify_user.c fdput(f); f 766 fs/notify/inotify/inotify_user.c struct fd f; f 769 fs/notify/inotify/inotify_user.c f = fdget(fd); f 770 fs/notify/inotify/inotify_user.c if (unlikely(!f.file)) f 775 fs/notify/inotify/inotify_user.c if (unlikely(f.file->f_op != &inotify_fops)) f 778 fs/notify/inotify/inotify_user.c group = f.file->private_data; f 793 fs/notify/inotify/inotify_user.c fdput(f); f 149 fs/nsfs.c struct file *f; f 174 fs/nsfs.c f = dentry_open(&path, O_RDONLY, current_cred()); f 176 fs/nsfs.c if (IS_ERR(f)) { f 178 fs/nsfs.c fd = PTR_ERR(f); f 180 fs/nsfs.c fd_install(fd, f); f 30 fs/ntfs/debug.h #define ntfs_debug(f, a...) \ f 31 fs/ntfs/debug.h __ntfs_debug(__FILE__, __LINE__, __func__, f, ##a) f 50 fs/ntfs/debug.h #define ntfs_warning(sb, f, a...) __ntfs_warning(__func__, sb, f, ##a) f 55 fs/ntfs/debug.h #define ntfs_error(sb, f, a...) __ntfs_error(__func__, sb, f, ##a) f 744 fs/ocfs2/cluster/heartbeat.c struct o2hb_callback_func *f; f 746 fs/ocfs2/cluster/heartbeat.c list_for_each_entry(f, &hbcall->list, hc_item) { f 747 fs/ocfs2/cluster/heartbeat.c mlog(ML_HEARTBEAT, "calling funcs %p\n", f); f 748 fs/ocfs2/cluster/heartbeat.c (f->hc_func)(node, idx, f->hc_data); f 1770 fs/ocfs2/cluster/heartbeat.c struct fd f; f 1790 fs/ocfs2/cluster/heartbeat.c f = fdget(fd); f 1791 fs/ocfs2/cluster/heartbeat.c if (f.file == NULL) f 1798 fs/ocfs2/cluster/heartbeat.c inode = igrab(f.file->f_mapping->host); f 1805 fs/ocfs2/cluster/heartbeat.c reg->hr_bdev = I_BDEV(f.file->f_mapping->host); f 1916 fs/ocfs2/cluster/heartbeat.c fdput(f); f 2408 fs/ocfs2/cluster/heartbeat.c struct o2hb_callback_func *f; f 2431 fs/ocfs2/cluster/heartbeat.c list_for_each_entry(f, &hbcall->list, hc_item) { f 2432 fs/ocfs2/cluster/heartbeat.c if (hc->hc_priority < f->hc_priority) { f 2433 fs/ocfs2/cluster/heartbeat.c list_add_tail(&hc->hc_item, &f->hc_item); f 199 fs/ocfs2/dlm/dlmapi.h dlm_eviction_func *f, f 241 fs/ocfs2/dlm/dlmcommon.h dlm_workfunc_t *f, void *data) f 244 fs/ocfs2/dlm/dlmcommon.h i->func = f; f 2287 fs/ocfs2/dlm/dlmdomain.c dlm_eviction_func *f, f 2291 fs/ocfs2/dlm/dlmdomain.c cb->ec_func = f; f 147 fs/ocfs2/dlmglue.h #define ocfs2_inode_lock_full(i, r, e, f)\ f 148 fs/ocfs2/dlmglue.h ocfs2_inode_lock_full_nested(i, r, e, f, OI_LS_NORMAL) f 159 fs/open.c struct fd f; f 166 fs/open.c f = fdget(fd); f 167 fs/open.c if (!f.file) f 171 fs/open.c if (f.file->f_flags & O_LARGEFILE) f 174 fs/open.c dentry = f.file->f_path.dentry; f 177 fs/open.c if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) f 187 fs/open.c if (IS_APPEND(file_inode(f.file))) f 191 fs/open.c error = locks_verify_truncate(inode, f.file, length); f 193 fs/open.c error = security_path_truncate(&f.file->f_path); f 195 fs/open.c error = do_truncate(dentry, length, ATTR_MTIME|ATTR_CTIME, f.file); f 198 fs/open.c fdput(f); f 328 fs/open.c struct fd f = fdget(fd); f 331 fs/open.c if (f.file) { f 332 fs/open.c error = vfs_fallocate(f.file, mode, offset, len); f 333 fs/open.c fdput(f); f 486 fs/open.c struct fd f = fdget_raw(fd); f 490 fs/open.c if (!f.file) f 494 fs/open.c if (!d_can_lookup(f.file->f_path.dentry)) f 497 fs/open.c error = inode_permission(file_inode(f.file), MAY_EXEC | MAY_CHDIR); f 499 fs/open.c set_fs_pwd(current->fs, &f.file->f_path); f 501 fs/open.c fdput(f); f 575 fs/open.c struct fd f = fdget(fd); f 578 fs/open.c if (f.file) { f 579 fs/open.c audit_file(f.file); f 580 fs/open.c err = chmod_common(&f.file->f_path, mode); f 581 fs/open.c fdput(f); f 713 fs/open.c struct fd f = fdget(fd); f 716 fs/open.c if (!f.file) f 719 fs/open.c error = mnt_want_write_file(f.file); f 722 fs/open.c audit_file(f.file); f 723 fs/open.c error = chown_common(&f.file->f_path, user, group); f 724 fs/open.c mnt_drop_write_file(f.file); f 726 fs/open.c fdput(f); f 736 fs/open.c static int do_dentry_open(struct file *f, f 743 fs/open.c path_get(&f->f_path); f 744 fs/open.c f->f_inode = inode; f 745 fs/open.c f->f_mapping = inode->i_mapping; f 748 fs/open.c f->f_wb_err = filemap_sample_wb_err(f->f_mapping); f 750 fs/open.c if (unlikely(f->f_flags & O_PATH)) { f 751 fs/open.c f->f_mode = FMODE_PATH | FMODE_OPENED; f 752 fs/open.c f->f_op = &empty_fops; f 757 fs/open.c if (unlikely(f->f_flags & FMODE_EXEC && !S_ISREG(inode->i_mode))) { f 762 fs/open.c if (f->f_mode & FMODE_WRITE && !special_file(inode->i_mode)) { f 766 fs/open.c error = __mnt_want_write(f->f_path.mnt); f 771 fs/open.c f->f_mode |= FMODE_WRITER; f 776 fs/open.c f->f_mode |= FMODE_ATOMIC_POS; f 778 fs/open.c f->f_op = fops_get(inode->i_fop); f 779 fs/open.c if (WARN_ON(!f->f_op)) { f 784 fs/open.c error = security_file_open(f); f 788 fs/open.c error = break_lease(locks_inode(f), f->f_flags); f 793 fs/open.c f->f_mode |= FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE; f 795 fs/open.c open = f->f_op->open; f 797 fs/open.c error = open(inode, f); f 801 fs/open.c f->f_mode |= FMODE_OPENED; f 802 fs/open.c if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) f 804 fs/open.c if ((f->f_mode & FMODE_READ) && f 805 fs/open.c likely(f->f_op->read || f->f_op->read_iter)) f 806 fs/open.c f->f_mode |= FMODE_CAN_READ; f 807 fs/open.c if ((f->f_mode & FMODE_WRITE) && f 808 fs/open.c likely(f->f_op->write || f->f_op->write_iter)) f 809 fs/open.c f->f_mode |= FMODE_CAN_WRITE; f 811 fs/open.c f->f_write_hint = WRITE_LIFE_NOT_SET; f 812 fs/open.c f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); f 814 fs/open.c file_ra_state_init(&f->f_ra, f->f_mapping->host->i_mapping); f 817 fs/open.c if (f->f_flags & O_DIRECT) { f 818 fs/open.c if (!f->f_mapping->a_ops || !f->f_mapping->a_ops->direct_IO) f 826 fs/open.c if ((f->f_mode & FMODE_WRITE) && filemap_nr_thps(inode->i_mapping)) f 834 fs/open.c fops_put(f->f_op); f 835 fs/open.c if (f->f_mode & FMODE_WRITER) { f 837 fs/open.c __mnt_drop_write(f->f_path.mnt); f 840 fs/open.c path_put(&f->f_path); f 841 fs/open.c f->f_path.mnt = NULL; f 842 fs/open.c f->f_path.dentry = NULL; f 843 fs/open.c f->f_inode = NULL; f 918 fs/open.c struct file *f; f 925 fs/open.c f = alloc_empty_file(flags, cred); f 926 fs/open.c if (!IS_ERR(f)) { f 927 fs/open.c error = vfs_open(path, f); f 929 fs/open.c fput(f); f 930 fs/open.c f = ERR_PTR(error); f 933 fs/open.c return f; f 940 fs/open.c struct file *f = alloc_empty_file_noaccount(flags, cred); f 941 fs/open.c if (!IS_ERR(f)) { f 944 fs/open.c f->f_path = *path; f 945 fs/open.c error = do_dentry_open(f, inode, NULL); f 947 fs/open.c fput(f); f 948 fs/open.c f = ERR_PTR(error); f 951 fs/open.c return f; f 1094 fs/open.c struct file *f = do_filp_open(dfd, tmp, &op); f 1095 fs/open.c if (IS_ERR(f)) { f 1097 fs/open.c fd = PTR_ERR(f); f 1099 fs/open.c fsnotify_open(f); f 1100 fs/open.c fd_install(fd, f); f 67 fs/openpromfs/inode.c static int property_show(struct seq_file *f, void *v) f 69 fs/openpromfs/inode.c struct property *prop = f->private; f 80 fs/openpromfs/inode.c seq_printf(f, "%s", (char *) pval); f 87 fs/openpromfs/inode.c seq_printf(f, " + "); f 94 fs/openpromfs/inode.c seq_printf(f, "%02x.", f 97 fs/openpromfs/inode.c seq_printf(f, "%02x", f 106 fs/openpromfs/inode.c seq_printf(f, "%08x.", f 109 fs/openpromfs/inode.c seq_printf(f, "%08x", f 115 fs/openpromfs/inode.c seq_printf(f, "\n"); f 120 fs/openpromfs/inode.c static void *property_start(struct seq_file *f, loff_t *pos) f 127 fs/openpromfs/inode.c static void *property_next(struct seq_file *f, void *v, loff_t *pos) f 133 fs/openpromfs/inode.c static void property_stop(struct seq_file *f, void *v) f 771 fs/pipe.c struct file *f; f 776 fs/pipe.c f = alloc_file_pseudo(inode, pipe_mnt, "", f 779 fs/pipe.c if (IS_ERR(f)) { f 782 fs/pipe.c return PTR_ERR(f); f 785 fs/pipe.c f->private_data = inode->i_pipe; f 787 fs/pipe.c res[0] = alloc_file_clone(f, O_RDONLY | (flags & O_NONBLOCK), f 791 fs/pipe.c fput(f); f 795 fs/pipe.c res[1] = f; f 7 fs/proc/devices.c static int devinfo_show(struct seq_file *f, void *v) f 13 fs/proc/devices.c seq_puts(f, "Character devices:\n"); f 14 fs/proc/devices.c chrdev_show(f, i); f 20 fs/proc/devices.c seq_puts(f, "\nBlock devices:\n"); f 21 fs/proc/devices.c blkdev_show(f, i); f 27 fs/proc/devices.c static void *devinfo_start(struct seq_file *f, loff_t *pos) f 34 fs/proc/devices.c static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) f 42 fs/proc/devices.c static void devinfo_stop(struct seq_file *f, void *v) f 248 fs/proc/fd.c struct file *f; f 253 fs/proc/fd.c f = fcheck_files(files, fd); f 254 fs/proc/fd.c if (!f) f 256 fs/proc/fd.c data.mode = f->f_mode; f 761 fs/proc/generic.c ssize_t proc_simple_write(struct file *f, const char __user *ubuf, size_t size, f 764 fs/proc/generic.c struct proc_dir_entry *pde = PDE(file_inode(f)); f 775 fs/proc/generic.c ret = pde->write(f, buf, size); f 12 fs/proc/interrupts.c static void *int_seq_start(struct seq_file *f, loff_t *pos) f 17 fs/proc/interrupts.c static void *int_seq_next(struct seq_file *f, void *v, loff_t *pos) f 25 fs/proc/interrupts.c static void int_seq_stop(struct seq_file *f, void *v) f 84 fs/proc/proc_net.c static int seq_release_net(struct inode *ino, struct file *f) f 86 fs/proc/proc_net.c struct seq_file *seq = f->private_data; f 89 fs/proc/proc_net.c seq_release_private(ino, f); f 179 fs/proc/proc_net.c static int single_release_net(struct inode *ino, struct file *f) f 181 fs/proc/proc_net.c struct seq_file *seq = f->private_data; f 183 fs/proc/proc_net.c return single_release(ino, f); f 60 fs/pstore/ftrace.c static ssize_t pstore_ftrace_knob_write(struct file *f, const char __user *buf, f 97 fs/pstore/ftrace.c static ssize_t pstore_ftrace_knob_read(struct file *f, char __user *buf, f 307 fs/read_write.c struct fd f = fdget_pos(fd); f 308 fs/read_write.c if (!f.file) f 313 fs/read_write.c loff_t res = vfs_llseek(f.file, offset, whence); f 318 fs/read_write.c fdput_pos(f); f 340 fs/read_write.c struct fd f = fdget_pos(fd); f 343 fs/read_write.c if (!f.file) f 350 fs/read_write.c offset = vfs_llseek(f.file, ((loff_t) offset_high << 32) | offset_low, f 360 fs/read_write.c fdput_pos(f); f 578 fs/read_write.c struct fd f = fdget_pos(fd); f 581 fs/read_write.c if (f.file) { f 582 fs/read_write.c loff_t pos, *ppos = file_ppos(f.file); f 587 fs/read_write.c ret = vfs_read(f.file, buf, count, ppos); f 589 fs/read_write.c f.file->f_pos = pos; f 590 fs/read_write.c fdput_pos(f); f 602 fs/read_write.c struct fd f = fdget_pos(fd); f 605 fs/read_write.c if (f.file) { f 606 fs/read_write.c loff_t pos, *ppos = file_ppos(f.file); f 611 fs/read_write.c ret = vfs_write(f.file, buf, count, ppos); f 613 fs/read_write.c f.file->f_pos = pos; f 614 fs/read_write.c fdput_pos(f); f 629 fs/read_write.c struct fd f; f 635 fs/read_write.c f = fdget(fd); f 636 fs/read_write.c if (f.file) { f 638 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f 639 fs/read_write.c ret = vfs_read(f.file, buf, count, &pos); f 640 fs/read_write.c fdput(f); f 655 fs/read_write.c struct fd f; f 661 fs/read_write.c f = fdget(fd); f 662 fs/read_write.c if (f.file) { f 664 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f 665 fs/read_write.c ret = vfs_write(f.file, buf, count, &pos); f 666 fs/read_write.c fdput(f); f 1025 fs/read_write.c struct fd f = fdget_pos(fd); f 1028 fs/read_write.c if (f.file) { f 1029 fs/read_write.c loff_t pos, *ppos = file_ppos(f.file); f 1034 fs/read_write.c ret = vfs_readv(f.file, vec, vlen, ppos, flags); f 1036 fs/read_write.c f.file->f_pos = pos; f 1037 fs/read_write.c fdput_pos(f); f 1049 fs/read_write.c struct fd f = fdget_pos(fd); f 1052 fs/read_write.c if (f.file) { f 1053 fs/read_write.c loff_t pos, *ppos = file_ppos(f.file); f 1058 fs/read_write.c ret = vfs_writev(f.file, vec, vlen, ppos, flags); f 1060 fs/read_write.c f.file->f_pos = pos; f 1061 fs/read_write.c fdput_pos(f); f 1079 fs/read_write.c struct fd f; f 1085 fs/read_write.c f = fdget(fd); f 1086 fs/read_write.c if (f.file) { f 1088 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f 1089 fs/read_write.c ret = vfs_readv(f.file, vec, vlen, &pos, flags); f 1090 fs/read_write.c fdput(f); f 1102 fs/read_write.c struct fd f; f 1108 fs/read_write.c f = fdget(fd); f 1109 fs/read_write.c if (f.file) { f 1111 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f 1112 fs/read_write.c ret = vfs_writev(f.file, vec, vlen, &pos, flags); f 1113 fs/read_write.c fdput(f); f 1199 fs/read_write.c struct fd f = fdget_pos(fd); f 1203 fs/read_write.c if (!f.file) f 1205 fs/read_write.c pos = f.file->f_pos; f 1206 fs/read_write.c ret = compat_readv(f.file, vec, vlen, &pos, flags); f 1208 fs/read_write.c f.file->f_pos = pos; f 1209 fs/read_write.c fdput_pos(f); f 1225 fs/read_write.c struct fd f; f 1230 fs/read_write.c f = fdget(fd); f 1231 fs/read_write.c if (!f.file) f 1234 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f 1235 fs/read_write.c ret = compat_readv(f.file, vec, vlen, &pos, flags); f 1236 fs/read_write.c fdput(f); f 1309 fs/read_write.c struct fd f = fdget_pos(fd); f 1313 fs/read_write.c if (!f.file) f 1315 fs/read_write.c pos = f.file->f_pos; f 1316 fs/read_write.c ret = compat_writev(f.file, vec, vlen, &pos, flags); f 1318 fs/read_write.c f.file->f_pos = pos; f 1319 fs/read_write.c fdput_pos(f); f 1334 fs/read_write.c struct fd f; f 1339 fs/read_write.c f = fdget(fd); f 1340 fs/read_write.c if (!f.file) f 1343 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f 1344 fs/read_write.c ret = compat_writev(f.file, vec, vlen, &pos, flags); f 1345 fs/read_write.c fdput(f); f 180 fs/readdir.c struct fd f = fdget_pos(fd); f 186 fs/readdir.c if (!f.file) f 189 fs/readdir.c error = iterate_dir(f.file, &buf.ctx); f 193 fs/readdir.c fdput_pos(f); f 270 fs/readdir.c struct fd f; f 281 fs/readdir.c f = fdget_pos(fd); f 282 fs/readdir.c if (!f.file) f 285 fs/readdir.c error = iterate_dir(f.file, &buf.ctx); f 297 fs/readdir.c fdput_pos(f); f 356 fs/readdir.c struct fd f; f 367 fs/readdir.c f = fdget_pos(fd); f 368 fs/readdir.c if (!f.file) f 371 fs/readdir.c error = iterate_dir(f.file, &buf.ctx); f 384 fs/readdir.c fdput_pos(f); f 447 fs/readdir.c struct fd f = fdget_pos(fd); f 453 fs/readdir.c if (!f.file) f 456 fs/readdir.c error = iterate_dir(f.file, &buf.ctx); f 460 fs/readdir.c fdput_pos(f); f 528 fs/readdir.c struct fd f; f 540 fs/readdir.c f = fdget_pos(fd); f 541 fs/readdir.c if (!f.file) f 544 fs/readdir.c error = iterate_dir(f.file, &buf.ctx); f 554 fs/readdir.c fdput_pos(f); f 917 fs/reiserfs/fix_node.c struct buffer_head *l, *f; f 920 fs/reiserfs/fix_node.c if ((f = PATH_H_PPARENT(tb->tb_path, h)) == NULL || f 924 fs/reiserfs/fix_node.c if (f == l) f 928 fs/reiserfs/fix_node.c f = l; f 931 fs/reiserfs/fix_node.c return (MAX_CHILD_SIZE(f) - dc_size(B_N_CHILD(f, order))); f 940 fs/reiserfs/fix_node.c struct buffer_head *r, *f; f 943 fs/reiserfs/fix_node.c if ((f = PATH_H_PPARENT(tb->tb_path, h)) == NULL || f 947 fs/reiserfs/fix_node.c if (f == r) f 951 fs/reiserfs/fix_node.c f = r; f 954 fs/reiserfs/fix_node.c return (MAX_CHILD_SIZE(f) - dc_size(B_N_CHILD(f, order))); f 24 fs/reiserfs/inode.c int reiserfs_commit_write(struct file *f, struct page *page, f 2743 fs/reiserfs/inode.c static int reiserfs_readpage(struct file *f, struct page *page) f 2998 fs/reiserfs/inode.c int reiserfs_commit_write(struct file *f, struct page *page, f 161 fs/reiserfs/ioctl.c int reiserfs_commit_write(struct file *f, struct page *page, f 469 fs/reiserfs/xattr.c int reiserfs_commit_write(struct file *f, struct page *page, f 525 fs/select.c struct fd f; f 530 fs/select.c f = fdget(i); f 531 fs/select.c if (f.file) { f 534 fs/select.c mask = vfs_poll(f.file, wait); f 536 fs/select.c fdput(f); f 847 fs/select.c struct fd f; f 852 fs/select.c f = fdget(fd); f 853 fs/select.c if (!f.file) f 859 fs/select.c mask = vfs_poll(f.file, pwait); f 863 fs/select.c fdput(f); f 398 fs/seq_file.c void seq_vprintf(struct seq_file *m, const char *f, va_list args) f 403 fs/seq_file.c len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); f 413 fs/seq_file.c void seq_printf(struct seq_file *m, const char *f, ...) f 417 fs/seq_file.c va_start(args, f); f 418 fs/seq_file.c seq_vprintf(m, f, args); f 624 fs/seq_file.c void *__seq_open_private(struct file *f, const struct seq_operations *ops, f 635 fs/seq_file.c rc = seq_open(f, ops); f 639 fs/seq_file.c seq = f->private_data; f 242 fs/signalfd.c static void signalfd_show_fdinfo(struct seq_file *m, struct file *f) f 244 fs/signalfd.c struct signalfd_ctx *ctx = f->private_data; f 293 fs/signalfd.c struct fd f = fdget(ufd); f 294 fs/signalfd.c if (!f.file) f 296 fs/signalfd.c ctx = f.file->private_data; f 297 fs/signalfd.c if (f.file->f_op != &signalfd_fops) { f 298 fs/signalfd.c fdput(f); f 306 fs/signalfd.c fdput(f); f 1316 fs/splice.c static int vmsplice_type(struct fd f, int *type) f 1318 fs/splice.c if (!f.file) f 1320 fs/splice.c if (f.file->f_mode & FMODE_WRITE) { f 1322 fs/splice.c } else if (f.file->f_mode & FMODE_READ) { f 1325 fs/splice.c fdput(f); f 1347 fs/splice.c static long do_vmsplice(struct file *f, struct iov_iter *iter, unsigned int flags) f 1356 fs/splice.c return vmsplice_to_pipe(f, iter, flags); f 1358 fs/splice.c return vmsplice_to_user(f, iter, flags); f 1368 fs/splice.c struct fd f; f 1371 fs/splice.c f = fdget(fd); f 1372 fs/splice.c error = vmsplice_type(f, &type); f 1379 fs/splice.c error = do_vmsplice(f.file, &iter, flags); f 1382 fs/splice.c fdput(f); f 1394 fs/splice.c struct fd f; f 1397 fs/splice.c f = fdget(fd); f 1398 fs/splice.c error = vmsplice_type(f, &type); f 1405 fs/splice.c error = do_vmsplice(f.file, &iter, flags); f 1408 fs/splice.c fdput(f); f 137 fs/stat.c struct fd f; f 143 fs/stat.c f = fdget_raw(fd); f 144 fs/stat.c if (f.file) { f 145 fs/stat.c error = vfs_getattr(&f.file->f_path, stat, f 147 fs/stat.c fdput(f); f 115 fs/statfs.c struct fd f = fdget_raw(fd); f 117 fs/statfs.c if (f.file) { f 118 fs/statfs.c error = vfs_statfs(&f.file->f_path, st); f 119 fs/statfs.c fdput(f); f 651 fs/super.c static void __iterate_supers(void (*f)(struct super_block *)) f 662 fs/super.c f(sb); f 681 fs/super.c void iterate_supers(void (*f)(struct super_block *, void *), void *arg) f 694 fs/super.c f(sb, arg); f 717 fs/super.c void (*f)(struct super_block *, void *), void *arg) f 728 fs/super.c f(sb, arg); f 162 fs/sync.c struct fd f = fdget(fd); f 166 fs/sync.c if (!f.file) f 168 fs/sync.c sb = f.file->f_path.dentry->d_sb; f 174 fs/sync.c fdput(f); f 217 fs/sync.c struct fd f = fdget(fd); f 220 fs/sync.c if (f.file) { f 221 fs/sync.c ret = vfs_fsync(f.file, datasync); f 222 fs/sync.c fdput(f); f 368 fs/sync.c struct fd f; f 371 fs/sync.c f = fdget(fd); f 372 fs/sync.c if (f.file) f 373 fs/sync.c ret = sync_file_range(f.file, offset, nbytes, flags); f 375 fs/sync.c fdput(f); f 376 fs/timerfd.c struct fd f = fdget(fd); f 377 fs/timerfd.c if (!f.file) f 379 fs/timerfd.c if (f.file->f_op != &timerfd_fops) { f 380 fs/timerfd.c fdput(f); f 383 fs/timerfd.c *p = f; f 439 fs/timerfd.c struct fd f; f 447 fs/timerfd.c ret = timerfd_fget(ufd, &f); f 450 fs/timerfd.c ctx = f.file->private_data; f 453 fs/timerfd.c fdput(f); f 503 fs/timerfd.c fdput(f); f 509 fs/timerfd.c struct fd f; f 511 fs/timerfd.c int ret = timerfd_fget(ufd, &f); f 514 fs/timerfd.c ctx = f.file->private_data; f 535 fs/timerfd.c fdput(f); f 627 fs/ubifs/budget.c int divisor, factor, f; f 642 fs/ubifs/budget.c f = c->fanout > 3 ? c->fanout >> 1 : 2; f 645 fs/ubifs/budget.c divisor += (c->max_idx_node_sz * 3) / (f - 1); f 421 fs/ubifs/key.h const union ubifs_key *f = from; f 423 fs/ubifs/key.h to->u32[0] = le32_to_cpu(f->j32[0]); f 424 fs/ubifs/key.h to->u32[1] = le32_to_cpu(f->j32[1]); f 81 fs/ufs/ufs.h # define UFSD(f, a...) { \ f 84 fs/ufs/ufs.h pr_debug(f, ## a); \ f 87 fs/ufs/ufs.h # define UFSD(f, a...) /**/ f 1895 fs/userfaultfd.c static void userfaultfd_show_fdinfo(struct seq_file *m, struct file *f) f 1897 fs/userfaultfd.c struct userfaultfd_ctx *ctx = f->private_data; f 102 fs/utimes.c struct fd f; f 107 fs/utimes.c f = fdget(dfd); f 109 fs/utimes.c if (!f.file) f 112 fs/utimes.c error = utimes_common(&f.file->f_path, times); f 113 fs/utimes.c fdput(f); f 498 fs/xattr.c struct fd f = fdget(fd); f 501 fs/xattr.c if (!f.file) f 503 fs/xattr.c audit_file(f.file); f 504 fs/xattr.c error = mnt_want_write_file(f.file); f 506 fs/xattr.c error = setxattr(f.file->f_path.dentry, name, value, size, flags); f 507 fs/xattr.c mnt_drop_write_file(f.file); f 509 fs/xattr.c fdput(f); f 590 fs/xattr.c struct fd f = fdget(fd); f 593 fs/xattr.c if (!f.file) f 595 fs/xattr.c audit_file(f.file); f 596 fs/xattr.c error = getxattr(f.file->f_path.dentry, name, value, size); f 597 fs/xattr.c fdput(f); f 665 fs/xattr.c struct fd f = fdget(fd); f 668 fs/xattr.c if (!f.file) f 670 fs/xattr.c audit_file(f.file); f 671 fs/xattr.c error = listxattr(f.file->f_path.dentry, list, size); f 672 fs/xattr.c fdput(f); f 730 fs/xattr.c struct fd f = fdget(fd); f 733 fs/xattr.c if (!f.file) f 735 fs/xattr.c audit_file(f.file); f 736 fs/xattr.c error = mnt_want_write_file(f.file); f 738 fs/xattr.c error = removexattr(f.file->f_path.dentry, name); f 739 fs/xattr.c mnt_drop_write_file(f.file); f 741 fs/xattr.c fdput(f); f 2113 fs/xfs/libxfs/xfs_alloc.c uint32_t f = be32_to_cpu(agf->agf_flfirst); f 2128 fs/xfs/libxfs/xfs_alloc.c if (f >= agfl_size || l >= agfl_size) f 2137 fs/xfs/libxfs/xfs_alloc.c if (c && l >= f) f 2138 fs/xfs/libxfs/xfs_alloc.c active = l - f + 1; f 2140 fs/xfs/libxfs/xfs_alloc.c active = agfl_size - f + l + 1; f 1302 fs/xfs/libxfs/xfs_format.h } f; f 67 fs/xfs/libxfs/xfs_ialloc.c rec.inobt.ir_u.f.ir_freecount = cpu_to_be32(irec->ir_freecount); f 93 fs/xfs/libxfs/xfs_ialloc.c be32_to_cpu(rec->inobt.ir_u.f.ir_freecount); f 201 fs/xfs/libxfs/xfs_ialloc_btree.c rec->inobt.ir_u.f.ir_freecount = f 1728 fs/xfs/xfs_bmap_util.c uint64_t f; f 1865 fs/xfs/xfs_bmap_util.c f = ip->i_d.di_flags2 & XFS_DIFLAG2_REFLINK; f 1869 fs/xfs/xfs_bmap_util.c tip->i_d.di_flags2 |= f & XFS_DIFLAG2_REFLINK; f 59 fs/xfs/xfs_ioctl.c struct fd f = {NULL}; f 65 fs/xfs/xfs_ioctl.c f = fdget(hreq->fd); f 66 fs/xfs/xfs_ioctl.c if (!f.file) f 68 fs/xfs/xfs_ioctl.c inode = file_inode(f.file); f 118 fs/xfs/xfs_ioctl.c fdput(f); f 1941 fs/xfs/xfs_ioctl.c struct fd f, tmp; f 1945 fs/xfs/xfs_ioctl.c f = fdget((int)sxp->sx_fdtarget); f 1946 fs/xfs/xfs_ioctl.c if (!f.file) { f 1951 fs/xfs/xfs_ioctl.c if (!(f.file->f_mode & FMODE_WRITE) || f 1952 fs/xfs/xfs_ioctl.c !(f.file->f_mode & FMODE_READ) || f 1953 fs/xfs/xfs_ioctl.c (f.file->f_flags & O_APPEND)) { f 1971 fs/xfs/xfs_ioctl.c if (IS_SWAPFILE(file_inode(f.file)) || f 1982 fs/xfs/xfs_ioctl.c if (f.file->f_op != &xfs_file_operations || f 1988 fs/xfs/xfs_ioctl.c ip = XFS_I(file_inode(f.file)); f 2011 fs/xfs/xfs_ioctl.c fdput(f); f 105 fs/xfs/xfs_linux.h #define current_test_flags(f) (current->flags & (f)) f 106 fs/xfs/xfs_linux.h #define current_set_flags_nested(sp, f) \ f 107 fs/xfs/xfs_linux.h (*(sp) = current->flags, current->flags |= (f)) f 108 fs/xfs/xfs_linux.h #define current_clear_flags_nested(sp, f) \ f 109 fs/xfs/xfs_linux.h (*(sp) = current->flags, current->flags &= ~(f)) f 110 fs/xfs/xfs_linux.h #define current_restore_flags_nested(sp, f) \ f 111 fs/xfs/xfs_linux.h (current->flags = ((current->flags & ~(f)) | (*(sp) & (f)))) f 60 fs/xfs/xfs_message.h extern void assfail(char *expr, char *f, int l); f 61 fs/xfs/xfs_message.h extern void asswarn(char *expr, char *f, int l); f 299 fs/xfs/xfs_mount.h #define xfs_force_shutdown(m,f) \ f 300 fs/xfs/xfs_mount.h xfs_do_force_shutdown(m, f, __FILE__, __LINE__) f 155 fs/xfs/xfs_quota.h #define xfs_trans_reserve_quota(tp, mp, ud, gd, pd, nb, ni, f) \ f 157 fs/xfs/xfs_quota.h f | XFS_QMOPT_RES_REGBLKS) f 139 fs/xfs/xfs_rtalloc.h # define xfs_rtallocate_extent(t,b,min,max,l,f,p,rb) (ENOSYS) f 143 fs/xfs/xfs_rtalloc.h # define xfs_rtalloc_query_range(t,l,h,f,p) (ENOSYS) f 144 fs/xfs/xfs_rtalloc.h # define xfs_rtalloc_query_all(t,f,p) (ENOSYS) f 142 fs/xfs/xfs_stats.h #define xfsstats_offset(f) (offsetof(struct __xfsstats, f)/sizeof(uint32_t)) f 376 include/acpi/actbl.h #define ACPI_FADT_OFFSET(f) (u16) ACPI_OFFSET (struct acpi_table_fadt, f) f 511 include/acpi/actypes.h #define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0) f 134 include/drm/drm_modes.h #define DRM_MODE(nm, t, c, hd, hss, hse, ht, hsk, vd, vss, vse, vt, vs, f) \ f 139 include/drm/drm_modes.h .vscan = (vs), .flags = (f) f 88 include/drm/drm_print.h void drm_printf(struct drm_printer *p, const char *f, ...); f 188 include/drm/drm_print.h static inline struct drm_printer drm_seq_file_printer(struct seq_file *f) f 193 include/drm/drm_print.h .arg = f, f 161 include/drm/gpu_scheduler.h struct drm_sched_fence *to_drm_sched_fence(struct dma_fence *f); f 15 include/dt-bindings/pinctrl/r7s72100-pinctrl.h #define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) f 40 include/dt-bindings/pinctrl/r7s9210-pinctrl.h #define RZA2_PINMUX(b, p, f) ((b) * RZA2_PINS_PER_PORT + (p) | (f << 16)) f 651 include/linux/bpf.h struct bpf_map *__bpf_map_get(struct fd f); f 303 include/linux/cdrom.h static inline void lba_to_msf(int lba, u8 *m, u8 *s, u8 *f) f 310 include/linux/cdrom.h *f = lba % CD_FRAMES; f 313 include/linux/cdrom.h static inline int msf_to_lba(u8 m, u8 s, u8 f) f 315 include/linux/cdrom.h return (((m * CD_SECS) + s) * CD_FRAMES + f) - CD_MSF_OFFSET; f 27 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_bits(__u32 f) f 29 include/linux/ceph/ceph_frag.h return f >> 24; f 31 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_value(__u32 f) f 33 include/linux/ceph/ceph_frag.h return f & 0xffffffu; f 35 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_mask(__u32 f) f 37 include/linux/ceph/ceph_frag.h return (0xffffffu << (24-ceph_frag_bits(f))) & 0xffffffu; f 39 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_mask_shift(__u32 f) f 41 include/linux/ceph/ceph_frag.h return 24 - ceph_frag_bits(f); f 44 include/linux/ceph/ceph_frag.h static inline bool ceph_frag_contains_value(__u32 f, __u32 v) f 46 include/linux/ceph/ceph_frag.h return (v & ceph_frag_mask(f)) == ceph_frag_value(f); f 49 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_make_child(__u32 f, int by, int i) f 51 include/linux/ceph/ceph_frag.h int newbits = ceph_frag_bits(f) + by; f 53 include/linux/ceph/ceph_frag.h ceph_frag_value(f) | (i << (24 - newbits))); f 55 include/linux/ceph/ceph_frag.h static inline bool ceph_frag_is_leftmost(__u32 f) f 57 include/linux/ceph/ceph_frag.h return ceph_frag_value(f) == 0; f 59 include/linux/ceph/ceph_frag.h static inline bool ceph_frag_is_rightmost(__u32 f) f 61 include/linux/ceph/ceph_frag.h return ceph_frag_value(f) == ceph_frag_mask(f); f 63 include/linux/ceph/ceph_frag.h static inline __u32 ceph_frag_next(__u32 f) f 65 include/linux/ceph/ceph_frag.h return ceph_frag_make(ceph_frag_bits(f), f 66 include/linux/ceph/ceph_frag.h ceph_frag_value(f) + (0x1000000 >> ceph_frag_bits(f))); f 203 include/linux/ceph/rados.h #define __CEPH_FORALL_OSD_OPS(f) \ f 206 include/linux/ceph/rados.h f(READ, __CEPH_OSD_OP(RD, DATA, 1), "read") \ f 207 include/linux/ceph/rados.h f(STAT, __CEPH_OSD_OP(RD, DATA, 2), "stat") \ f 208 include/linux/ceph/rados.h f(MAPEXT, __CEPH_OSD_OP(RD, DATA, 3), "mapext") \ f 211 include/linux/ceph/rados.h f(MASKTRUNC, __CEPH_OSD_OP(RD, DATA, 4), "masktrunc") \ f 212 include/linux/ceph/rados.h f(SPARSE_READ, __CEPH_OSD_OP(RD, DATA, 5), "sparse-read") \ f 214 include/linux/ceph/rados.h f(NOTIFY, __CEPH_OSD_OP(RD, DATA, 6), "notify") \ f 215 include/linux/ceph/rados.h f(NOTIFY_ACK, __CEPH_OSD_OP(RD, DATA, 7), "notify-ack") \ f 218 include/linux/ceph/rados.h f(ASSERT_VER, __CEPH_OSD_OP(RD, DATA, 8), "assert-version") \ f 220 include/linux/ceph/rados.h f(LIST_WATCHERS, __CEPH_OSD_OP(RD, DATA, 9), "list-watchers") \ f 222 include/linux/ceph/rados.h f(LIST_SNAPS, __CEPH_OSD_OP(RD, DATA, 10), "list-snaps") \ f 225 include/linux/ceph/rados.h f(SYNC_READ, __CEPH_OSD_OP(RD, DATA, 11), "sync_read") \ f 228 include/linux/ceph/rados.h f(WRITE, __CEPH_OSD_OP(WR, DATA, 1), "write") \ f 229 include/linux/ceph/rados.h f(WRITEFULL, __CEPH_OSD_OP(WR, DATA, 2), "writefull") \ f 230 include/linux/ceph/rados.h f(TRUNCATE, __CEPH_OSD_OP(WR, DATA, 3), "truncate") \ f 231 include/linux/ceph/rados.h f(ZERO, __CEPH_OSD_OP(WR, DATA, 4), "zero") \ f 232 include/linux/ceph/rados.h f(DELETE, __CEPH_OSD_OP(WR, DATA, 5), "delete") \ f 235 include/linux/ceph/rados.h f(APPEND, __CEPH_OSD_OP(WR, DATA, 6), "append") \ f 236 include/linux/ceph/rados.h f(SETTRUNC, __CEPH_OSD_OP(WR, DATA, 8), "settrunc") \ f 237 include/linux/ceph/rados.h f(TRIMTRUNC, __CEPH_OSD_OP(WR, DATA, 9), "trimtrunc") \ f 239 include/linux/ceph/rados.h f(TMAPUP, __CEPH_OSD_OP(RMW, DATA, 10), "tmapup") \ f 240 include/linux/ceph/rados.h f(TMAPPUT, __CEPH_OSD_OP(WR, DATA, 11), "tmapput") \ f 241 include/linux/ceph/rados.h f(TMAPGET, __CEPH_OSD_OP(RD, DATA, 12), "tmapget") \ f 243 include/linux/ceph/rados.h f(CREATE, __CEPH_OSD_OP(WR, DATA, 13), "create") \ f 244 include/linux/ceph/rados.h f(ROLLBACK, __CEPH_OSD_OP(WR, DATA, 14), "rollback") \ f 246 include/linux/ceph/rados.h f(WATCH, __CEPH_OSD_OP(WR, DATA, 15), "watch") \ f 249 include/linux/ceph/rados.h f(OMAPGETKEYS, __CEPH_OSD_OP(RD, DATA, 17), "omap-get-keys") \ f 250 include/linux/ceph/rados.h f(OMAPGETVALS, __CEPH_OSD_OP(RD, DATA, 18), "omap-get-vals") \ f 251 include/linux/ceph/rados.h f(OMAPGETHEADER, __CEPH_OSD_OP(RD, DATA, 19), "omap-get-header") \ f 252 include/linux/ceph/rados.h f(OMAPGETVALSBYKEYS, __CEPH_OSD_OP(RD, DATA, 20), "omap-get-vals-by-keys") \ f 253 include/linux/ceph/rados.h f(OMAPSETVALS, __CEPH_OSD_OP(WR, DATA, 21), "omap-set-vals") \ f 254 include/linux/ceph/rados.h f(OMAPSETHEADER, __CEPH_OSD_OP(WR, DATA, 22), "omap-set-header") \ f 255 include/linux/ceph/rados.h f(OMAPCLEAR, __CEPH_OSD_OP(WR, DATA, 23), "omap-clear") \ f 256 include/linux/ceph/rados.h f(OMAPRMKEYS, __CEPH_OSD_OP(WR, DATA, 24), "omap-rm-keys") \ f 257 include/linux/ceph/rados.h f(OMAP_CMP, __CEPH_OSD_OP(RD, DATA, 25), "omap-cmp") \ f 260 include/linux/ceph/rados.h f(COPY_FROM, __CEPH_OSD_OP(WR, DATA, 26), "copy-from") \ f 261 include/linux/ceph/rados.h f(COPY_GET_CLASSIC, __CEPH_OSD_OP(RD, DATA, 27), "copy-get-classic") \ f 262 include/linux/ceph/rados.h f(UNDIRTY, __CEPH_OSD_OP(WR, DATA, 28), "undirty") \ f 263 include/linux/ceph/rados.h f(ISDIRTY, __CEPH_OSD_OP(RD, DATA, 29), "isdirty") \ f 264 include/linux/ceph/rados.h f(COPY_GET, __CEPH_OSD_OP(RD, DATA, 30), "copy-get") \ f 265 include/linux/ceph/rados.h f(CACHE_FLUSH, __CEPH_OSD_OP(CACHE, DATA, 31), "cache-flush") \ f 266 include/linux/ceph/rados.h f(CACHE_EVICT, __CEPH_OSD_OP(CACHE, DATA, 32), "cache-evict") \ f 267 include/linux/ceph/rados.h f(CACHE_TRY_FLUSH, __CEPH_OSD_OP(CACHE, DATA, 33), "cache-try-flush") \ f 270 include/linux/ceph/rados.h f(TMAP2OMAP, __CEPH_OSD_OP(RMW, DATA, 34), "tmap2omap") \ f 273 include/linux/ceph/rados.h f(SETALLOCHINT, __CEPH_OSD_OP(WR, DATA, 35), "set-alloc-hint") \ f 276 include/linux/ceph/rados.h f(CLONERANGE, __CEPH_OSD_OP(WR, MULTI, 1), "clonerange") \ f 277 include/linux/ceph/rados.h f(ASSERT_SRC_VERSION, __CEPH_OSD_OP(RD, MULTI, 2), "assert-src-version") \ f 278 include/linux/ceph/rados.h f(SRC_CMPXATTR, __CEPH_OSD_OP(RD, MULTI, 3), "src-cmpxattr") \ f 282 include/linux/ceph/rados.h f(GETXATTR, __CEPH_OSD_OP(RD, ATTR, 1), "getxattr") \ f 283 include/linux/ceph/rados.h f(GETXATTRS, __CEPH_OSD_OP(RD, ATTR, 2), "getxattrs") \ f 284 include/linux/ceph/rados.h f(CMPXATTR, __CEPH_OSD_OP(RD, ATTR, 3), "cmpxattr") \ f 287 include/linux/ceph/rados.h f(SETXATTR, __CEPH_OSD_OP(WR, ATTR, 1), "setxattr") \ f 288 include/linux/ceph/rados.h f(SETXATTRS, __CEPH_OSD_OP(WR, ATTR, 2), "setxattrs") \ f 289 include/linux/ceph/rados.h f(RESETXATTRS, __CEPH_OSD_OP(WR, ATTR, 3), "resetxattrs") \ f 290 include/linux/ceph/rados.h f(RMXATTR, __CEPH_OSD_OP(WR, ATTR, 4), "rmxattr") \ f 293 include/linux/ceph/rados.h f(PULL, __CEPH_OSD_OP1(SUB, 1), "pull") \ f 294 include/linux/ceph/rados.h f(PUSH, __CEPH_OSD_OP1(SUB, 2), "push") \ f 295 include/linux/ceph/rados.h f(BALANCEREADS, __CEPH_OSD_OP1(SUB, 3), "balance-reads") \ f 296 include/linux/ceph/rados.h f(UNBALANCEREADS, __CEPH_OSD_OP1(SUB, 4), "unbalance-reads") \ f 297 include/linux/ceph/rados.h f(SCRUB, __CEPH_OSD_OP1(SUB, 5), "scrub") \ f 298 include/linux/ceph/rados.h f(SCRUB_RESERVE, __CEPH_OSD_OP1(SUB, 6), "scrub-reserve") \ f 299 include/linux/ceph/rados.h f(SCRUB_UNRESERVE, __CEPH_OSD_OP1(SUB, 7), "scrub-unreserve") \ f 300 include/linux/ceph/rados.h f(SCRUB_STOP, __CEPH_OSD_OP1(SUB, 8), "scrub-stop") \ f 301 include/linux/ceph/rados.h f(SCRUB_MAP, __CEPH_OSD_OP1(SUB, 9), "scrub-map") \ f 304 include/linux/ceph/rados.h f(WRLOCK, __CEPH_OSD_OP(WR, LOCK, 1), "wrlock") \ f 305 include/linux/ceph/rados.h f(WRUNLOCK, __CEPH_OSD_OP(WR, LOCK, 2), "wrunlock") \ f 306 include/linux/ceph/rados.h f(RDLOCK, __CEPH_OSD_OP(WR, LOCK, 3), "rdlock") \ f 307 include/linux/ceph/rados.h f(RDUNLOCK, __CEPH_OSD_OP(WR, LOCK, 4), "rdunlock") \ f 308 include/linux/ceph/rados.h f(UPLOCK, __CEPH_OSD_OP(WR, LOCK, 5), "uplock") \ f 309 include/linux/ceph/rados.h f(DNLOCK, __CEPH_OSD_OP(WR, LOCK, 6), "dnlock") \ f 313 include/linux/ceph/rados.h f(CALL, __CEPH_OSD_OP(RD, EXEC, 1), "call") \ f 316 include/linux/ceph/rados.h f(PGLS, __CEPH_OSD_OP(RD, PG, 1), "pgls") \ f 317 include/linux/ceph/rados.h f(PGLS_FILTER, __CEPH_OSD_OP(RD, PG, 2), "pgls-filter") \ f 318 include/linux/ceph/rados.h f(PG_HITSET_LS, __CEPH_OSD_OP(RD, PG, 3), "pg-hitset-ls") \ f 319 include/linux/ceph/rados.h f(PG_HITSET_GET, __CEPH_OSD_OP(RD, PG, 4), "pg-hitset-get") f 17 include/linux/compiler.h void ftrace_likely_update(struct ftrace_likely_data *f, int val, f 81 include/linux/debugfs.h debugfs_automount_t f, f 206 include/linux/debugfs.h struct vfsmount *(*f)(void *), f 576 include/linux/dma-fence.h #define DMA_FENCE_TRACE(f, fmt, args...) \ f 578 include/linux/dma-fence.h struct dma_fence *__ff = (f); \ f 584 include/linux/dma-fence.h #define DMA_FENCE_WARN(f, fmt, args...) \ f 586 include/linux/dma-fence.h struct dma_fence *__ff = (f); \ f 591 include/linux/dma-fence.h #define DMA_FENCE_ERR(f, fmt, args...) \ f 593 include/linux/dma-fence.h struct dma_fence *__ff = (f); \ f 113 include/linux/dmi.h extern bool dmi_match(enum dmi_field f, const char *str); f 140 include/linux/dmi.h static inline bool dmi_match(enum dmi_field f, const char *str) f 1670 include/linux/efi.h #define efi_call_virt_pointer(p, f, args...) \ f 1678 include/linux/efi.h __s = arch_efi_call_virt(p, f, args); \ f 1679 include/linux/efi.h efi_call_virt_check_flags(__flags, __stringify(f)); \ f 1686 include/linux/efi.h #define __efi_call_virt_pointer(p, f, args...) \ f 1693 include/linux/efi.h arch_efi_call_virt(p, f, args); \ f 1694 include/linux/efi.h efi_call_virt_check_flags(__flags, __stringify(f)); \ f 75 include/linux/file.h static inline void fdput_pos(struct fd f) f 77 include/linux/file.h if (f.flags & FDPUT_POS_UNLOCK) f 78 include/linux/file.h __f_unlock_pos(f.file); f 79 include/linux/file.h fdput(f); f 984 include/linux/fs.h static inline struct file *get_file(struct file *f) f 986 include/linux/fs.h atomic_long_inc(&f->f_count); f 987 include/linux/fs.h return f; f 1134 include/linux/fs.h #define locks_inode(f) file_inode(f) f 1178 include/linux/fs.h extern void show_fd_locks(struct seq_file *f, f 1313 include/linux/fs.h static inline void show_fd_locks(struct seq_file *f, f 1317 include/linux/fs.h static inline struct inode *file_inode(const struct file *f) f 1319 include/linux/fs.h return f->f_inode; f 1726 include/linux/fs.h int (*f)(struct dentry *, umode_t, void *), f 1852 include/linux/fs.h void (*show_fdinfo)(struct seq_file *m, struct file *f); f 2302 include/linux/fs.h #define replace_fops(f, fops) \ f 2304 include/linux/fs.h struct file *__file = (f); \ f 2374 include/linux/fs.h struct file *f, f 2381 include/linux/fs.h return locks_mandatory_area(inode, f, size, inode->i_size - 1, f 2384 include/linux/fs.h return locks_mandatory_area(inode, f, inode->i_size, size - 1, f 2615 include/linux/fs.h static inline void iterate_bdevs(void (*f)(struct block_device *, void *), void *arg) f 41 include/linux/fscrypt.h #define FSTR_TO_QSTR(f) QSTR_INIT((f)->name, (f)->len) f 389 include/linux/hugetlb.h static inline struct hstate *hstate_file(struct file *f) f 391 include/linux/hugetlb.h return hstate_inode(file_inode(f)); f 626 include/linux/hugetlb.h static inline struct hstate *hstate_file(struct file *f) f 728 include/linux/hugetlb.h static inline void hugetlb_report_usage(struct seq_file *f, struct mm_struct *m) f 13 include/linux/if_tap.h static inline struct socket *tap_get_socket(struct file *f) f 17 include/linux/if_tap.h static inline struct ptr_ring *tap_get_ptr_ring(struct file *f) f 39 include/linux/if_tun.h static inline struct socket *tun_get_socket(struct file *f) f 43 include/linux/if_tun.h static inline struct ptr_ring *tun_get_tx_ring(struct file *f) f 17 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_1(f, f1, ...) \ f 19 include/linux/indirect_call_wrapper.h likely(f == f1) ? f1(__VA_ARGS__) : f(__VA_ARGS__); \ f 21 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_2(f, f2, f1, ...) \ f 23 include/linux/indirect_call_wrapper.h likely(f == f2) ? f2(__VA_ARGS__) : \ f 24 include/linux/indirect_call_wrapper.h INDIRECT_CALL_1(f, f1, __VA_ARGS__); \ f 27 include/linux/indirect_call_wrapper.h #define INDIRECT_CALLABLE_DECLARE(f) f f 31 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_1(f, f1, ...) f(__VA_ARGS__) f 32 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_2(f, f2, f1, ...) f(__VA_ARGS__) f 33 include/linux/indirect_call_wrapper.h #define INDIRECT_CALLABLE_DECLARE(f) f 43 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_INET(f, f2, f1, ...) \ f 44 include/linux/indirect_call_wrapper.h INDIRECT_CALL_2(f, f2, f1, __VA_ARGS__) f 46 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_INET(f, f2, f1, ...) INDIRECT_CALL_1(f, f1, __VA_ARGS__) f 48 include/linux/indirect_call_wrapper.h #define INDIRECT_CALL_INET(f, f2, f1, ...) f(__VA_ARGS__) f 291 include/linux/iommu.h bool (*dev_has_feat)(struct device *dev, enum iommu_dev_features f); f 292 include/linux/iommu.h bool (*dev_feat_enabled)(struct device *dev, enum iommu_dev_features f); f 293 include/linux/iommu.h int (*dev_enable_feat)(struct device *dev, enum iommu_dev_features f); f 294 include/linux/iommu.h int (*dev_disable_feat)(struct device *dev, enum iommu_dev_features f); f 594 include/linux/iommu.h bool iommu_dev_has_feature(struct device *dev, enum iommu_dev_features f); f 595 include/linux/iommu.h int iommu_dev_enable_feature(struct device *dev, enum iommu_dev_features f); f 596 include/linux/iommu.h int iommu_dev_disable_feature(struct device *dev, enum iommu_dev_features f); f 597 include/linux/iommu.h bool iommu_dev_feature_enabled(struct device *dev, enum iommu_dev_features f); f 89 include/linux/kernel.h #define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f)) f 10 include/linux/memfd.h static inline long memfd_fcntl(struct file *f, unsigned int c, unsigned long a) f 307 include/linux/memory_hotplug.h static inline void pgdat_resize_lock(struct pglist_data *p, unsigned long *f) {} f 308 include/linux/memory_hotplug.h static inline void pgdat_resize_unlock(struct pglist_data *p, unsigned long *f) {} f 45 include/linux/mfd/palmas.h #define PALMAS_PMIC_HAS(b, f) \ f 46 include/linux/mfd/palmas.h ((b)->features & PALMAS_PMIC_FEATURE_ ## f) f 166 include/linux/mmc/sdio.h #define SDIO_FBR_BASE(f) ((f) * 0x100) /* base of function f's FBRs */ f 60 include/linux/mmc/sdio_func.h #define sdio_func_present(f) ((f)->state & SDIO_STATE_PRESENT) f 62 include/linux/mmc/sdio_func.h #define sdio_func_set_present(f) ((f)->state |= SDIO_STATE_PRESENT) f 64 include/linux/mmc/sdio_func.h #define sdio_func_id(f) (dev_name(&(f)->dev)) f 66 include/linux/mmc/sdio_func.h #define sdio_get_drvdata(f) dev_get_drvdata(&(f)->dev) f 67 include/linux/mmc/sdio_func.h #define sdio_set_drvdata(f,d) dev_set_drvdata(&(f)->dev, d) f 18 include/linux/mtd/sh_flctl.h #define FLCMNCR(f) (f->reg + 0x0) f 19 include/linux/mtd/sh_flctl.h #define FLCMDCR(f) (f->reg + 0x4) f 20 include/linux/mtd/sh_flctl.h #define FLCMCDR(f) (f->reg + 0x8) f 21 include/linux/mtd/sh_flctl.h #define FLADR(f) (f->reg + 0xC) f 22 include/linux/mtd/sh_flctl.h #define FLADR2(f) (f->reg + 0x3C) f 23 include/linux/mtd/sh_flctl.h #define FLDATAR(f) (f->reg + 0x10) f 24 include/linux/mtd/sh_flctl.h #define FLDTCNTR(f) (f->reg + 0x14) f 25 include/linux/mtd/sh_flctl.h #define FLINTDMACR(f) (f->reg + 0x18) f 26 include/linux/mtd/sh_flctl.h #define FLBSYTMR(f) (f->reg + 0x1C) f 27 include/linux/mtd/sh_flctl.h #define FLBSYCNT(f) (f->reg + 0x20) f 28 include/linux/mtd/sh_flctl.h #define FLDTFIFO(f) (f->reg + 0x24) f 29 include/linux/mtd/sh_flctl.h #define FLECFIFO(f) (f->reg + 0x28) f 30 include/linux/mtd/sh_flctl.h #define FLTRCR(f) (f->reg + 0x2C) f 31 include/linux/mtd/sh_flctl.h #define FLHOLDCR(f) (f->reg + 0x38) f 32 include/linux/mtd/sh_flctl.h #define FL4ECCRESULT0(f) (f->reg + 0x80) f 33 include/linux/mtd/sh_flctl.h #define FL4ECCRESULT1(f) (f->reg + 0x84) f 34 include/linux/mtd/sh_flctl.h #define FL4ECCRESULT2(f) (f->reg + 0x88) f 35 include/linux/mtd/sh_flctl.h #define FL4ECCRESULT3(f) (f->reg + 0x8C) f 36 include/linux/mtd/sh_flctl.h #define FL4ECCCR(f) (f->reg + 0x90) f 37 include/linux/mtd/sh_flctl.h #define FL4ECCCNT(f) (f->reg + 0x94) f 38 include/linux/mtd/sh_flctl.h #define FLERRADR(f) (f->reg + 0x98) f 2133 include/linux/netdevice.h void (*f)(struct net_device *, f 2141 include/linux/netdevice.h f(dev, &dev->_tx[i], arg); f 126 include/linux/nubus.h #define for_each_func_rsrc(f) \ f 127 include/linux/nubus.h for (f = nubus_first_rsrc_or_null(); f; f = nubus_next_rsrc_or_null(f)) f 129 include/linux/nubus.h #define for_each_board_func_rsrc(b, f) \ f 130 include/linux/nubus.h for_each_func_rsrc(f) if (f->board != b) {} else f 424 include/linux/ptr_ring.h #define __PTR_RING_PEEK_CALL(r, f) ((f)(__ptr_ring_peek(r))) f 426 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL(r, f) ({ \ f 427 include/linux/ptr_ring.h typeof((f)(NULL)) __PTR_RING_PEEK_CALL_v; \ f 430 include/linux/ptr_ring.h __PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \ f 435 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_IRQ(r, f) ({ \ f 436 include/linux/ptr_ring.h typeof((f)(NULL)) __PTR_RING_PEEK_CALL_v; \ f 439 include/linux/ptr_ring.h __PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \ f 444 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_BH(r, f) ({ \ f 445 include/linux/ptr_ring.h typeof((f)(NULL)) __PTR_RING_PEEK_CALL_v; \ f 448 include/linux/ptr_ring.h __PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \ f 453 include/linux/ptr_ring.h #define PTR_RING_PEEK_CALL_ANY(r, f) ({ \ f 454 include/linux/ptr_ring.h typeof((f)(NULL)) __PTR_RING_PEEK_CALL_v; \ f 458 include/linux/ptr_ring.h __PTR_RING_PEEK_CALL_v = __PTR_RING_PEEK_CALL(r, f); \ f 887 include/linux/rcupdate.h rcu_head_after_call_rcu(struct rcu_head *rhp, rcu_callback_t f) f 891 include/linux/rcupdate.h if (func == f) f 204 include/linux/rtc.h void rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r), f 390 include/linux/skbuff.h #define skb_frag_foreach_page(f, f_off, f_len, p, p_off, p_len, copied) \ f 391 include/linux/skbuff.h for (p = skb_frag_page(f) + ((f_off) >> PAGE_SHIFT), \ f 2963 include/linux/skbuff.h static inline void skb_frag_ref(struct sk_buff *skb, int f) f 2965 include/linux/skbuff.h __skb_frag_ref(&skb_shinfo(skb)->frags[f]); f 2986 include/linux/skbuff.h static inline void skb_frag_unref(struct sk_buff *skb, int f) f 2988 include/linux/skbuff.h __skb_frag_unref(&skb_shinfo(skb)->frags[f]); f 3050 include/linux/skbuff.h static inline void skb_frag_set_page(struct sk_buff *skb, int f, f 3053 include/linux/skbuff.h __skb_frag_set_page(&skb_shinfo(skb)->frags[f], page); f 78 include/linux/sunrpc/stats.h const struct file_operations *f) { return NULL; } f 45 include/linux/torture.h int torture_onoff_init(long ooholdoff, long oointerval, torture_ofl_func *f); f 80 include/linux/torture.h char *f, struct task_struct **tp); f 124 include/linux/tty.h #define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f)) f 125 include/linux/tty.h #define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f)) f 126 include/linux/tty.h #define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f)) f 127 include/linux/tty.h #define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f)) f 718 include/linux/tty.h char *f, int count); f 785 include/linux/tty.h #define tty_msg(fn, tty, f, ...) \ f 786 include/linux/tty.h fn("%s %s: " f, tty_driver_name(tty), tty_name(tty), ##__VA_ARGS__) f 788 include/linux/tty.h #define tty_debug(tty, f, ...) tty_msg(pr_debug, tty, f, ##__VA_ARGS__) f 789 include/linux/tty.h #define tty_info(tty, f, ...) tty_msg(pr_info, tty, f, ##__VA_ARGS__) f 790 include/linux/tty.h #define tty_notice(tty, f, ...) tty_msg(pr_notice, tty, f, ##__VA_ARGS__) f 791 include/linux/tty.h #define tty_warn(tty, f, ...) tty_msg(pr_warn, tty, f, ##__VA_ARGS__) f 792 include/linux/tty.h #define tty_err(tty, f, ...) tty_msg(pr_err, tty, f, ##__VA_ARGS__) f 794 include/linux/tty.h #define tty_info_ratelimited(tty, f, ...) \ f 795 include/linux/tty.h tty_msg(pr_info_ratelimited, tty, f, ##__VA_ARGS__) f 285 include/linux/uio.h int (*f)(struct kvec *vec, void *context), f 215 include/linux/usb/composite.h void (*free_func)(struct usb_function *f); f 252 include/linux/usb/composite.h int config_ep_by_speed(struct usb_gadget *g, struct usb_function *f, f 595 include/linux/usb/composite.h void usb_function_unregister(struct usb_function_driver *f); f 598 include/linux/usb/composite.h void usb_put_function(struct usb_function *f); f 606 include/linux/usb/composite.h void usb_remove_function(struct usb_configuration *c, struct usb_function *f); f 802 include/linux/usb/gadget.h int usb_assign_descriptors(struct usb_function *f, f 807 include/linux/usb/gadget.h void usb_free_all_descriptors(struct usb_function *f); f 176 include/linux/wimax/debug.h #define _d_printf(l, tag, dev, f, a...) \ f 182 include/linux/wimax/debug.h printk(KERN_ERR "%s%s%s: " f, head, __func__, tag, ##a); \ f 361 include/linux/wimax/debug.h #define d_fnstart(l, _dev, f, a...) _d_printf(l, " FNSTART", _dev, f, ## a) f 371 include/linux/wimax/debug.h #define d_fnend(l, _dev, f, a...) _d_printf(l, " FNEND", _dev, f, ## a) f 381 include/linux/wimax/debug.h #define d_printf(l, _dev, f, a...) _d_printf(l, "", _dev, f, ## a) f 184 include/linux/workqueue.h #define __WORK_INITIALIZER(n, f) { \ f 187 include/linux/workqueue.h .func = (f), \ f 191 include/linux/workqueue.h #define __DELAYED_WORK_INITIALIZER(n, f, tflags) { \ f 192 include/linux/workqueue.h .work = __WORK_INITIALIZER((n).work, (f)), \ f 197 include/linux/workqueue.h #define DECLARE_WORK(n, f) \ f 198 include/linux/workqueue.h struct work_struct n = __WORK_INITIALIZER(n, f) f 200 include/linux/workqueue.h #define DECLARE_DELAYED_WORK(n, f) \ f 201 include/linux/workqueue.h struct delayed_work n = __DELAYED_WORK_INITIALIZER(n, f, 0) f 203 include/linux/workqueue.h #define DECLARE_DEFERRABLE_WORK(n, f) \ f 204 include/linux/workqueue.h struct delayed_work n = __DELAYED_WORK_INITIALIZER(n, f, TIMER_DEFERRABLE) f 242 include/media/tpg/v4l2-tpg.h void tpg_set_font(const u8 *f); f 250 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_p(v4l2_dev, sd, cond, o, f, args...) \ f 253 include/media/v4l2-device.h if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \ f 254 include/media/v4l2-device.h (sd)->ops->o->f((sd) , ##args); \ f 275 include/media/v4l2-device.h #define __v4l2_device_call_subdevs(v4l2_dev, cond, o, f, args...) \ f 280 include/media/v4l2-device.h f , ##args); \ f 307 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_until_err_p(v4l2_dev, sd, cond, o, f, args...) \ f 312 include/media/v4l2-device.h if ((cond) && (sd)->ops->o && (sd)->ops->o->f) \ f 313 include/media/v4l2-device.h __err = (sd)->ops->o->f((sd) , ##args); \ f 342 include/media/v4l2-device.h #define __v4l2_device_call_subdevs_until_err(v4l2_dev, cond, o, f, args...) \ f 346 include/media/v4l2-device.h f , ##args); \ f 369 include/media/v4l2-device.h #define v4l2_device_call_all(v4l2_dev, grpid, o, f, args...) \ f 374 include/media/v4l2-device.h (grpid) == 0 || __sd->grp_id == (grpid), o, f , \ f 402 include/media/v4l2-device.h #define v4l2_device_call_until_err(v4l2_dev, grpid, o, f, args...) \ f 406 include/media/v4l2-device.h (grpid) == 0 || __sd->grp_id == (grpid), o, f , \ f 429 include/media/v4l2-device.h #define v4l2_device_mask_call_all(v4l2_dev, grpmsk, o, f, args...) \ f 435 include/media/v4l2-device.h f , ##args); \ f 461 include/media/v4l2-device.h #define v4l2_device_mask_call_until_err(v4l2_dev, grpmsk, o, f, args...) \ f 466 include/media/v4l2-device.h f , ##args); \ f 483 include/media/v4l2-device.h #define v4l2_device_has_op(v4l2_dev, grpid, o, f) \ f 490 include/media/v4l2-device.h if (v4l2_subdev_has_op(__sd, o, f)) { \ f 511 include/media/v4l2-device.h #define v4l2_device_mask_has_op(v4l2_dev, grpmsk, o, f) \ f 518 include/media/v4l2-device.h if (v4l2_subdev_has_op(__sd, o, f)) { \ f 305 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 307 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 309 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 311 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 313 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 315 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 317 include/media/v4l2-ioctl.h struct v4l2_fmtdesc *f); f 321 include/media/v4l2-ioctl.h struct v4l2_format *f); f 323 include/media/v4l2-ioctl.h struct v4l2_format *f); f 325 include/media/v4l2-ioctl.h struct v4l2_format *f); f 327 include/media/v4l2-ioctl.h struct v4l2_format *f); f 329 include/media/v4l2-ioctl.h struct v4l2_format *f); f 331 include/media/v4l2-ioctl.h struct v4l2_format *f); f 333 include/media/v4l2-ioctl.h struct v4l2_format *f); f 335 include/media/v4l2-ioctl.h struct v4l2_format *f); f 337 include/media/v4l2-ioctl.h struct v4l2_format *f); f 339 include/media/v4l2-ioctl.h struct v4l2_format *f); f 341 include/media/v4l2-ioctl.h struct v4l2_format *f); f 343 include/media/v4l2-ioctl.h struct v4l2_format *f); f 345 include/media/v4l2-ioctl.h struct v4l2_format *f); f 347 include/media/v4l2-ioctl.h struct v4l2_format *f); f 351 include/media/v4l2-ioctl.h struct v4l2_format *f); f 353 include/media/v4l2-ioctl.h struct v4l2_format *f); f 355 include/media/v4l2-ioctl.h struct v4l2_format *f); f 357 include/media/v4l2-ioctl.h struct v4l2_format *f); f 359 include/media/v4l2-ioctl.h struct v4l2_format *f); f 361 include/media/v4l2-ioctl.h struct v4l2_format *f); f 363 include/media/v4l2-ioctl.h struct v4l2_format *f); f 365 include/media/v4l2-ioctl.h struct v4l2_format *f); f 367 include/media/v4l2-ioctl.h struct v4l2_format *f); f 369 include/media/v4l2-ioctl.h struct v4l2_format *f); f 371 include/media/v4l2-ioctl.h struct v4l2_format *f); f 373 include/media/v4l2-ioctl.h struct v4l2_format *f); f 375 include/media/v4l2-ioctl.h struct v4l2_format *f); f 377 include/media/v4l2-ioctl.h struct v4l2_format *f); f 381 include/media/v4l2-ioctl.h struct v4l2_format *f); f 383 include/media/v4l2-ioctl.h struct v4l2_format *f); f 385 include/media/v4l2-ioctl.h struct v4l2_format *f); f 387 include/media/v4l2-ioctl.h struct v4l2_format *f); f 389 include/media/v4l2-ioctl.h struct v4l2_format *f); f 391 include/media/v4l2-ioctl.h struct v4l2_format *f); f 393 include/media/v4l2-ioctl.h struct v4l2_format *f); f 395 include/media/v4l2-ioctl.h struct v4l2_format *f); f 397 include/media/v4l2-ioctl.h struct v4l2_format *f); f 399 include/media/v4l2-ioctl.h struct v4l2_format *f); f 401 include/media/v4l2-ioctl.h struct v4l2_format *f); f 403 include/media/v4l2-ioctl.h struct v4l2_format *f); f 405 include/media/v4l2-ioctl.h struct v4l2_format *f); f 407 include/media/v4l2-ioctl.h struct v4l2_format *f); f 1100 include/media/v4l2-subdev.h #define v4l2_subdev_call(sd, o, f, args...) \ f 1106 include/media/v4l2-subdev.h else if (!(__sd->ops->o && __sd->ops->o->f)) \ f 1109 include/media/v4l2-subdev.h v4l2_subdev_call_wrappers.o->f) \ f 1110 include/media/v4l2-subdev.h __result = v4l2_subdev_call_wrappers.o->f( \ f 1113 include/media/v4l2-subdev.h __result = __sd->ops->o->f(__sd, ##args); \ f 1125 include/media/v4l2-subdev.h #define v4l2_subdev_has_op(sd, o, f) \ f 1126 include/media/v4l2-subdev.h ((sd)->ops->o && (sd)->ops->o->f) f 53 include/media/videobuf2-dvb.h int vb2_dvb_register_bus(struct vb2_dvb_frontends *f, f 61 include/media/videobuf2-dvb.h void vb2_dvb_unregister_bus(struct vb2_dvb_frontends *f); f 63 include/media/videobuf2-dvb.h struct vb2_dvb_frontend *vb2_dvb_alloc_frontend(struct vb2_dvb_frontends *f, int id); f 64 include/media/videobuf2-dvb.h void vb2_dvb_dealloc_frontends(struct vb2_dvb_frontends *f); f 66 include/media/videobuf2-dvb.h struct vb2_dvb_frontend *vb2_dvb_get_frontend(struct vb2_dvb_frontends *f, int id); f 67 include/media/videobuf2-dvb.h int vb2_dvb_find_frontend(struct vb2_dvb_frontends *f, struct dvb_frontend *p); f 2299 include/net/bluetooth/hci.h #define hci_handle_pack(h, f) ((__u16) ((h & 0x0fff)|(f << 12))) f 7345 include/net/cfg80211.h void cfg80211_free_nan_func(struct cfg80211_nan_func *f); f 70 include/net/dn_fib.h #define DN_FIB_INFO(f) ((f)->fn_info) f 340 include/net/flow_offload.h int flow_block_cb_setup_simple(struct flow_block_offload *f, f 15 include/net/inet_frag.h struct inet_frags *f; f 115 include/net/inet_frag.h int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net); f 100 include/net/netfilter/nf_log.h __printf(2, 3) int nf_log_buf_add(struct nf_log_buf *m, const char *f, ...); f 302 include/net/sch_generic.h void (*put)(struct tcf_proto *tp, void *f); f 166 include/rdma/uverbs_types.h void uverbs_close_fd(struct file *f); f 50 include/scsi/fcoe_sysfs.h struct fcoe_sysfs_function_template *f; f 111 include/scsi/fcoe_sysfs.h struct fcoe_sysfs_function_template *f, f 71 include/trace/events/bridge.h TP_PROTO(struct net_bridge *br, struct net_bridge_fdb_entry *f), f 73 include/trace/events/bridge.h TP_ARGS(br, f), f 77 include/trace/events/bridge.h __string(dev, f->dst ? f->dst->dev->name : "null") f 84 include/trace/events/bridge.h __assign_str(dev, f->dst ? f->dst->dev->name : "null"); f 85 include/trace/events/bridge.h memcpy(__entry->addr, f->key.addr.addr, ETH_ALEN); f 86 include/trace/events/bridge.h __entry->vid = f->key.vlan_id; f 145 include/trace/events/libata.h #define __parse_qc_flags(f) libata_trace_parse_qc_flags(p, f) f 149 include/trace/events/libata.h #define __parse_subcmd(c,f,h) libata_trace_parse_subcmd(p, c, f, h) f 612 include/uapi/drm/radeon_drm.h float f[5]; f 35 include/uapi/linux/if_tunnel.h #define GRE_IS_CSUM(f) ((f) & GRE_CSUM) f 36 include/uapi/linux/if_tunnel.h #define GRE_IS_ROUTING(f) ((f) & GRE_ROUTING) f 37 include/uapi/linux/if_tunnel.h #define GRE_IS_KEY(f) ((f) & GRE_KEY) f 38 include/uapi/linux/if_tunnel.h #define GRE_IS_SEQ(f) ((f) & GRE_SEQ) f 39 include/uapi/linux/if_tunnel.h #define GRE_IS_STRICT(f) ((f) & GRE_STRICT) f 40 include/uapi/linux/if_tunnel.h #define GRE_IS_REC(f) ((f) & GRE_REC) f 41 include/uapi/linux/if_tunnel.h #define GRE_IS_ACK(f) ((f) & GRE_ACK) f 98 include/uapi/linux/map_to_7segment.h #define _SEG7(l,a,b,c,d,e,f,g) \ f 100 include/uapi/linux/map_to_7segment.h e<<BIT_SEG7_E | f<<BIT_SEG7_F | g<<BIT_SEG7_G ) f 66 include/uapi/linux/mroute6.h #define IF_COPY(f, t) bcopy(f, t, sizeof(*(f))) f 70 include/uapi/linux/netfilter/nfnetlink_osf.h struct nf_osf_user_finger f; f 85 include/video/gbe.h #define SET(v, f, msb, lsb) \ f 86 include/video/gbe.h ( (v) = ((v)&~MASK(msb,lsb)) | (( (u32)(f)<<(lsb) ) & MASK(msb,lsb)) ) f 90 include/video/gbe.h #define SET_GBE_FIELD(reg, field, v, f) \ f 91 include/video/gbe.h SET((v), (f), GBE_##reg##_##field##_MSB, GBE_##reg##_##field##_LSB) f 8 include/video/trident.h #define debug(f, a...) printk("%s:" f, __func__ , ## a); f 10 include/video/trident.h #define debug(f, a...) f 13 include/video/trident.h #define output(f, a...) pr_info("tridentfb: " f, ## a) f 984 ipc/mqueue.c struct fd f; f 1005 ipc/mqueue.c f = fdget(mqdes); f 1006 ipc/mqueue.c if (unlikely(!f.file)) { f 1011 ipc/mqueue.c inode = file_inode(f.file); f 1012 ipc/mqueue.c if (unlikely(f.file->f_op != &mqueue_file_operations)) { f 1017 ipc/mqueue.c audit_file(f.file); f 1019 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { f 1059 ipc/mqueue.c if (f.file->f_flags & O_NONBLOCK) { f 1093 ipc/mqueue.c fdput(f); f 1104 ipc/mqueue.c struct fd f; f 1118 ipc/mqueue.c f = fdget(mqdes); f 1119 ipc/mqueue.c if (unlikely(!f.file)) { f 1124 ipc/mqueue.c inode = file_inode(f.file); f 1125 ipc/mqueue.c if (unlikely(f.file->f_op != &mqueue_file_operations)) { f 1130 ipc/mqueue.c audit_file(f.file); f 1132 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_READ))) { f 1162 ipc/mqueue.c if (f.file->f_flags & O_NONBLOCK) { f 1195 ipc/mqueue.c fdput(f); f 1236 ipc/mqueue.c struct fd f; f 1274 ipc/mqueue.c f = fdget(notification->sigev_signo); f 1275 ipc/mqueue.c if (!f.file) { f 1279 ipc/mqueue.c sock = netlink_getsockbyfilp(f.file); f 1280 ipc/mqueue.c fdput(f); f 1297 ipc/mqueue.c f = fdget(mqdes); f 1298 ipc/mqueue.c if (!f.file) { f 1303 ipc/mqueue.c inode = file_inode(f.file); f 1304 ipc/mqueue.c if (unlikely(f.file->f_op != &mqueue_file_operations)) { f 1345 ipc/mqueue.c fdput(f); f 1370 ipc/mqueue.c struct fd f; f 1377 ipc/mqueue.c f = fdget(mqdes); f 1378 ipc/mqueue.c if (!f.file) f 1381 ipc/mqueue.c if (unlikely(f.file->f_op != &mqueue_file_operations)) { f 1382 ipc/mqueue.c fdput(f); f 1386 ipc/mqueue.c inode = file_inode(f.file); f 1393 ipc/mqueue.c old->mq_flags = f.file->f_flags & O_NONBLOCK; f 1397 ipc/mqueue.c spin_lock(&f.file->f_lock); f 1399 ipc/mqueue.c f.file->f_flags |= O_NONBLOCK; f 1401 ipc/mqueue.c f.file->f_flags &= ~O_NONBLOCK; f 1402 ipc/mqueue.c spin_unlock(&f.file->f_lock); f 1408 ipc/mqueue.c fdput(f); f 63 kernel/auditfilter.c static void audit_free_lsm_field(struct audit_field *f) f 65 kernel/auditfilter.c switch (f->type) { f 76 kernel/auditfilter.c kfree(f->lsm_str); f 77 kernel/auditfilter.c security_audit_rule_free(f->lsm_rule); f 152 kernel/auditfilter.c struct audit_field *f) f 156 kernel/auditfilter.c (f->op != Audit_equal && f->op != Audit_not_equal)) f 159 kernel/auditfilter.c krule->inode_f = f; f 323 kernel/auditfilter.c static int audit_field_valid(struct audit_entry *entry, struct audit_field *f) f 325 kernel/auditfilter.c switch (f->type) { f 339 kernel/auditfilter.c switch(f->type) { f 349 kernel/auditfilter.c switch (f->type) { f 383 kernel/auditfilter.c if (f->op == Audit_bitmask || f->op == Audit_bittest) f 403 kernel/auditfilter.c if (f->op != Audit_not_equal && f->op != Audit_equal) f 412 kernel/auditfilter.c switch (f->type) { f 414 kernel/auditfilter.c if ((f->val != 0) && (f->val != 1)) f 418 kernel/auditfilter.c if (f->val & ~15) f 422 kernel/auditfilter.c if (f->val & ~S_IFMT) f 426 kernel/auditfilter.c if (f->val > AUDIT_MAX_FIELD_COMPARE) f 430 kernel/auditfilter.c if (f->val >= AF_MAX) f 458 kernel/auditfilter.c struct audit_field *f = &entry->rule.fields[i]; f 463 kernel/auditfilter.c f->op = audit_to_op(data->fieldflags[i]); f 464 kernel/auditfilter.c if (f->op == Audit_bad) f 467 kernel/auditfilter.c f->type = data->fields[i]; f 471 kernel/auditfilter.c if ((f->type == AUDIT_LOGINUID) && (f_val == AUDIT_UID_UNSET)) { f 472 kernel/auditfilter.c f->type = AUDIT_LOGINUID_SET; f 477 kernel/auditfilter.c err = audit_field_valid(entry, f); f 482 kernel/auditfilter.c switch (f->type) { f 489 kernel/auditfilter.c f->uid = make_kuid(current_user_ns(), f_val); f 490 kernel/auditfilter.c if (!uid_valid(f->uid)) f 498 kernel/auditfilter.c f->gid = make_kgid(current_user_ns(), f_val); f 499 kernel/auditfilter.c if (!gid_valid(f->gid)) f 503 kernel/auditfilter.c f->val = f_val; f 504 kernel/auditfilter.c entry->rule.arch_f = f; f 522 kernel/auditfilter.c f->lsm_str = str; f 523 kernel/auditfilter.c err = security_audit_rule_init(f->type, f->op, str, f 524 kernel/auditfilter.c (void **)&f->lsm_rule); f 540 kernel/auditfilter.c err = audit_to_watch(&entry->rule, str, f_val, f->op); f 553 kernel/auditfilter.c err = audit_make_tree(&entry->rule, str, f->op); f 560 kernel/auditfilter.c f->val = f_val; f 561 kernel/auditfilter.c err = audit_to_inode(&entry->rule, f); f 594 kernel/auditfilter.c f->val = f_val; f 642 kernel/auditfilter.c struct audit_field *f = &krule->fields[i]; f 644 kernel/auditfilter.c data->fields[i] = f->type; f 645 kernel/auditfilter.c data->fieldflags[i] = audit_ops[f->op]; f 646 kernel/auditfilter.c switch(f->type) { f 658 kernel/auditfilter.c audit_pack_string(&bufp, f->lsm_str); f 679 kernel/auditfilter.c if (krule->pflags & AUDIT_LOGINUID_LEGACY && !f->val) { f 686 kernel/auditfilter.c data->values[i] = f->val; f 1332 kernel/auditfilter.c struct audit_field *f = &e->rule.fields[i]; f 1336 kernel/auditfilter.c switch (f->type) { f 1339 kernel/auditfilter.c result = audit_comparator(pid, f->op, f->val); f 1342 kernel/auditfilter.c result = audit_uid_comparator(current_uid(), f->op, f->uid); f 1345 kernel/auditfilter.c result = audit_gid_comparator(current_gid(), f->op, f->gid); f 1349 kernel/auditfilter.c f->op, f->uid); f 1353 kernel/auditfilter.c f->op, f->val); f 1356 kernel/auditfilter.c result = audit_comparator(msgtype, f->op, f->val); f 1363 kernel/auditfilter.c if (f->lsm_rule) { f 1366 kernel/auditfilter.c f->type, f->op, f->lsm_rule); f 1371 kernel/auditfilter.c if (f->op == Audit_not_equal) f 308 kernel/auditsc.c struct audit_field *f, f 315 kernel/auditsc.c rc = audit_uid_comparator(uid, f->op, name->uid); f 322 kernel/auditsc.c rc = audit_uid_comparator(uid, f->op, n->uid); f 332 kernel/auditsc.c struct audit_field *f, f 339 kernel/auditsc.c rc = audit_gid_comparator(gid, f->op, name->gid); f 346 kernel/auditsc.c rc = audit_gid_comparator(gid, f->op, n->gid); f 356 kernel/auditsc.c struct audit_field *f, f 360 kernel/auditsc.c switch (f->val) { f 363 kernel/auditsc.c return audit_compare_uid(cred->uid, name, f, ctx); f 365 kernel/auditsc.c return audit_compare_gid(cred->gid, name, f, ctx); f 367 kernel/auditsc.c return audit_compare_uid(cred->euid, name, f, ctx); f 369 kernel/auditsc.c return audit_compare_gid(cred->egid, name, f, ctx); f 371 kernel/auditsc.c return audit_compare_uid(audit_get_loginuid(tsk), name, f, ctx); f 373 kernel/auditsc.c return audit_compare_uid(cred->suid, name, f, ctx); f 375 kernel/auditsc.c return audit_compare_gid(cred->sgid, name, f, ctx); f 377 kernel/auditsc.c return audit_compare_uid(cred->fsuid, name, f, ctx); f 379 kernel/auditsc.c return audit_compare_gid(cred->fsgid, name, f, ctx); f 382 kernel/auditsc.c return audit_uid_comparator(cred->uid, f->op, f 385 kernel/auditsc.c return audit_uid_comparator(cred->uid, f->op, cred->euid); f 387 kernel/auditsc.c return audit_uid_comparator(cred->uid, f->op, cred->suid); f 389 kernel/auditsc.c return audit_uid_comparator(cred->uid, f->op, cred->fsuid); f 392 kernel/auditsc.c return audit_uid_comparator(audit_get_loginuid(tsk), f->op, f 395 kernel/auditsc.c return audit_uid_comparator(audit_get_loginuid(tsk), f->op, f 398 kernel/auditsc.c return audit_uid_comparator(audit_get_loginuid(tsk), f->op, f 402 kernel/auditsc.c return audit_uid_comparator(cred->euid, f->op, cred->suid); f 404 kernel/auditsc.c return audit_uid_comparator(cred->euid, f->op, cred->fsuid); f 407 kernel/auditsc.c return audit_uid_comparator(cred->suid, f->op, cred->fsuid); f 410 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->egid); f 412 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->sgid); f 414 kernel/auditsc.c return audit_gid_comparator(cred->gid, f->op, cred->fsgid); f 417 kernel/auditsc.c return audit_gid_comparator(cred->egid, f->op, cred->sgid); f 419 kernel/auditsc.c return audit_gid_comparator(cred->egid, f->op, cred->fsgid); f 422 kernel/auditsc.c return audit_gid_comparator(cred->sgid, f->op, cred->fsgid); f 453 kernel/auditsc.c struct audit_field *f = &rule->fields[i]; f 458 kernel/auditsc.c switch (f->type) { f 461 kernel/auditsc.c result = audit_comparator(pid, f->op, f->val); f 467 kernel/auditsc.c result = audit_comparator(ctx->ppid, f->op, f->val); f 472 kernel/auditsc.c if (f->op == Audit_not_equal) f 476 kernel/auditsc.c result = audit_uid_comparator(cred->uid, f->op, f->uid); f 479 kernel/auditsc.c result = audit_uid_comparator(cred->euid, f->op, f->uid); f 482 kernel/auditsc.c result = audit_uid_comparator(cred->suid, f->op, f->uid); f 485 kernel/auditsc.c result = audit_uid_comparator(cred->fsuid, f->op, f->uid); f 488 kernel/auditsc.c result = audit_gid_comparator(cred->gid, f->op, f->gid); f 489 kernel/auditsc.c if (f->op == Audit_equal) { f 491 kernel/auditsc.c result = groups_search(cred->group_info, f->gid); f 492 kernel/auditsc.c } else if (f->op == Audit_not_equal) { f 494 kernel/auditsc.c result = !groups_search(cred->group_info, f->gid); f 498 kernel/auditsc.c result = audit_gid_comparator(cred->egid, f->op, f->gid); f 499 kernel/auditsc.c if (f->op == Audit_equal) { f 501 kernel/auditsc.c result = groups_search(cred->group_info, f->gid); f 502 kernel/auditsc.c } else if (f->op == Audit_not_equal) { f 504 kernel/auditsc.c result = !groups_search(cred->group_info, f->gid); f 508 kernel/auditsc.c result = audit_gid_comparator(cred->sgid, f->op, f->gid); f 511 kernel/auditsc.c result = audit_gid_comparator(cred->fsgid, f->op, f->gid); f 515 kernel/auditsc.c result = audit_comparator(sessionid, f->op, f->val); f 518 kernel/auditsc.c result = audit_comparator(tsk->personality, f->op, f->val); f 522 kernel/auditsc.c result = audit_comparator(ctx->arch, f->op, f->val); f 527 kernel/auditsc.c result = audit_comparator(ctx->return_code, f->op, f->val); f 531 kernel/auditsc.c if (f->val) f 532 kernel/auditsc.c result = audit_comparator(ctx->return_valid, f->op, AUDITSC_SUCCESS); f 534 kernel/auditsc.c result = audit_comparator(ctx->return_valid, f->op, AUDITSC_FAILURE); f 539 kernel/auditsc.c if (audit_comparator(MAJOR(name->dev), f->op, f->val) || f 540 kernel/auditsc.c audit_comparator(MAJOR(name->rdev), f->op, f->val)) f 544 kernel/auditsc.c if (audit_comparator(MAJOR(n->dev), f->op, f->val) || f 545 kernel/auditsc.c audit_comparator(MAJOR(n->rdev), f->op, f->val)) { f 554 kernel/auditsc.c if (audit_comparator(MINOR(name->dev), f->op, f->val) || f 555 kernel/auditsc.c audit_comparator(MINOR(name->rdev), f->op, f->val)) f 559 kernel/auditsc.c if (audit_comparator(MINOR(n->dev), f->op, f->val) || f 560 kernel/auditsc.c audit_comparator(MINOR(n->rdev), f->op, f->val)) { f 569 kernel/auditsc.c result = audit_comparator(name->ino, f->op, f->val); f 572 kernel/auditsc.c if (audit_comparator(n->ino, f->op, f->val)) { f 581 kernel/auditsc.c result = audit_uid_comparator(name->uid, f->op, f->uid); f 584 kernel/auditsc.c if (audit_uid_comparator(n->uid, f->op, f->uid)) { f 593 kernel/auditsc.c result = audit_gid_comparator(name->gid, f->op, f->gid); f 596 kernel/auditsc.c if (audit_gid_comparator(n->gid, f->op, f->gid)) { f 608 kernel/auditsc.c if (f->op == Audit_not_equal) f 615 kernel/auditsc.c if (f->op == Audit_not_equal) f 621 kernel/auditsc.c f->op, f->uid); f 624 kernel/auditsc.c result = audit_comparator(audit_loginuid_set(tsk), f->op, f->val); f 629 kernel/auditsc.c f->op, f->val); f 641 kernel/auditsc.c if (f->lsm_rule) { f 646 kernel/auditsc.c result = security_audit_rule_match(sid, f->type, f 647 kernel/auditsc.c f->op, f 648 kernel/auditsc.c f->lsm_rule); f 658 kernel/auditsc.c if (f->lsm_rule) { f 663 kernel/auditsc.c f->type, f 664 kernel/auditsc.c f->op, f 665 kernel/auditsc.c f->lsm_rule); f 670 kernel/auditsc.c f->type, f 671 kernel/auditsc.c f->op, f 672 kernel/auditsc.c f->lsm_rule)) { f 682 kernel/auditsc.c f->type, f->op, f 683 kernel/auditsc.c f->lsm_rule)) f 692 kernel/auditsc.c result = audit_comparator(ctx->argv[f->type-AUDIT_ARG0], f->op, f->val); f 699 kernel/auditsc.c result = audit_match_perm(ctx, f->val); f 700 kernel/auditsc.c if (f->op == Audit_not_equal) f 704 kernel/auditsc.c result = audit_match_filetype(ctx, f->val); f 705 kernel/auditsc.c if (f->op == Audit_not_equal) f 709 kernel/auditsc.c result = audit_field_compare(tsk, cred, f, ctx, name); f 1961 kernel/auditsc.c struct audit_field *f = &e->rule.fields[i]; f 1963 kernel/auditsc.c if (f->type == AUDIT_FSTYPE f 1965 kernel/auditsc.c f->op, f->val) f 2079 kernel/auditsc.c struct audit_field *f = &e->rule.fields[i]; f 2081 kernel/auditsc.c if (f->type == AUDIT_FSTYPE f 2083 kernel/auditsc.c f->op, f->val) f 3439 kernel/bpf/btf.c struct fd f; f 3441 kernel/bpf/btf.c f = fdget(fd); f 3443 kernel/bpf/btf.c if (!f.file) f 3446 kernel/bpf/btf.c if (f.file->f_op != &btf_fops) { f 3447 kernel/bpf/btf.c fdput(f); f 3451 kernel/bpf/btf.c btf = f.file->private_data; f 3453 kernel/bpf/btf.c fdput(f); f 289 kernel/bpf/cpumap.c void *f = frames[i]; f 290 kernel/bpf/cpumap.c struct page *page = virt_to_page(f); f 13 kernel/bpf/map_in_map.c struct fd f; f 15 kernel/bpf/map_in_map.c f = fdget(inner_map_ufd); f 16 kernel/bpf/map_in_map.c inner_map = __bpf_map_get(f); f 27 kernel/bpf/map_in_map.c fdput(f); f 33 kernel/bpf/map_in_map.c fdput(f); f 38 kernel/bpf/map_in_map.c fdput(f); f 49 kernel/bpf/map_in_map.c fdput(f); f 68 kernel/bpf/map_in_map.c fdput(f); f 93 kernel/bpf/map_in_map.c struct fd f; f 95 kernel/bpf/map_in_map.c f = fdget(ufd); f 96 kernel/bpf/map_in_map.c inner_map = __bpf_map_get(f); f 105 kernel/bpf/map_in_map.c fdput(f); f 359 kernel/bpf/syscall.c static fmode_t map_get_sys_perms(struct bpf_map *map, struct fd f) f 361 kernel/bpf/syscall.c fmode_t mode = f.file->f_mode; f 646 kernel/bpf/syscall.c struct bpf_map *__bpf_map_get(struct fd f) f 648 kernel/bpf/syscall.c if (!f.file) f 650 kernel/bpf/syscall.c if (f.file->f_op != &bpf_map_fops) { f 651 kernel/bpf/syscall.c fdput(f); f 655 kernel/bpf/syscall.c return f.file->private_data; f 675 kernel/bpf/syscall.c struct fd f = fdget(ufd); f 678 kernel/bpf/syscall.c map = __bpf_map_get(f); f 683 kernel/bpf/syscall.c fdput(f); f 747 kernel/bpf/syscall.c struct fd f; f 756 kernel/bpf/syscall.c f = fdget(ufd); f 757 kernel/bpf/syscall.c map = __bpf_map_get(f); f 760 kernel/bpf/syscall.c if (!(map_get_sys_perms(map, f) & FMODE_CAN_READ)) { f 857 kernel/bpf/syscall.c fdput(f); f 882 kernel/bpf/syscall.c struct fd f; f 888 kernel/bpf/syscall.c f = fdget(ufd); f 889 kernel/bpf/syscall.c map = __bpf_map_get(f); f 892 kernel/bpf/syscall.c if (!(map_get_sys_perms(map, f) & FMODE_CAN_WRITE)) { f 952 kernel/bpf/syscall.c err = bpf_fd_array_map_update_elem(map, f.file, key, value, f 957 kernel/bpf/syscall.c err = bpf_fd_htab_map_update_elem(map, f.file, key, value, f 981 kernel/bpf/syscall.c fdput(f); f 992 kernel/bpf/syscall.c struct fd f; f 999 kernel/bpf/syscall.c f = fdget(ufd); f 1000 kernel/bpf/syscall.c map = __bpf_map_get(f); f 1003 kernel/bpf/syscall.c if (!(map_get_sys_perms(map, f) & FMODE_CAN_WRITE)) { f 1030 kernel/bpf/syscall.c fdput(f); f 1044 kernel/bpf/syscall.c struct fd f; f 1050 kernel/bpf/syscall.c f = fdget(ufd); f 1051 kernel/bpf/syscall.c map = __bpf_map_get(f); f 1054 kernel/bpf/syscall.c if (!(map_get_sys_perms(map, f) & FMODE_CAN_READ)) { f 1097 kernel/bpf/syscall.c fdput(f); f 1111 kernel/bpf/syscall.c struct fd f; f 1117 kernel/bpf/syscall.c f = fdget(ufd); f 1118 kernel/bpf/syscall.c map = __bpf_map_get(f); f 1121 kernel/bpf/syscall.c if (!(map_get_sys_perms(map, f) & FMODE_CAN_WRITE)) { f 1161 kernel/bpf/syscall.c fdput(f); f 1171 kernel/bpf/syscall.c struct fd f; f 1176 kernel/bpf/syscall.c f = fdget(ufd); f 1177 kernel/bpf/syscall.c map = __bpf_map_get(f); f 1191 kernel/bpf/syscall.c fdput(f); f 1449 kernel/bpf/syscall.c static struct bpf_prog *____bpf_prog_get(struct fd f) f 1451 kernel/bpf/syscall.c if (!f.file) f 1453 kernel/bpf/syscall.c if (f.file->f_op != &bpf_prog_fops) { f 1454 kernel/bpf/syscall.c fdput(f); f 1458 kernel/bpf/syscall.c return f.file->private_data; f 1525 kernel/bpf/syscall.c struct fd f = fdget(ufd); f 1528 kernel/bpf/syscall.c prog = ____bpf_prog_get(f); f 1538 kernel/bpf/syscall.c fdput(f); f 2664 kernel/bpf/syscall.c struct fd f; f 2670 kernel/bpf/syscall.c f = fdget(ufd); f 2671 kernel/bpf/syscall.c if (!f.file) f 2674 kernel/bpf/syscall.c if (f.file->f_op == &bpf_prog_fops) f 2675 kernel/bpf/syscall.c err = bpf_prog_get_info_by_fd(f.file->private_data, attr, f 2677 kernel/bpf/syscall.c else if (f.file->f_op == &bpf_map_fops) f 2678 kernel/bpf/syscall.c err = bpf_map_get_info_by_fd(f.file->private_data, attr, f 2680 kernel/bpf/syscall.c else if (f.file->f_op == &btf_fops) f 2681 kernel/bpf/syscall.c err = bpf_btf_get_info_by_fd(f.file->private_data, attr, uattr); f 2685 kernel/bpf/syscall.c fdput(f); f 8001 kernel/bpf/verifier.c struct fd f; f 8027 kernel/bpf/verifier.c f = fdget(insn[0].imm); f 8028 kernel/bpf/verifier.c map = __bpf_map_get(f); f 8037 kernel/bpf/verifier.c fdput(f); f 8049 kernel/bpf/verifier.c fdput(f); f 8055 kernel/bpf/verifier.c fdput(f); f 8063 kernel/bpf/verifier.c fdput(f); f 8078 kernel/bpf/verifier.c fdput(f); f 8084 kernel/bpf/verifier.c fdput(f); f 8095 kernel/bpf/verifier.c fdput(f); f 8105 kernel/bpf/verifier.c fdput(f); f 8109 kernel/bpf/verifier.c fdput(f); f 6292 kernel/cgroup/cgroup.c struct file *f; f 6294 kernel/cgroup/cgroup.c f = fget_raw(fd); f 6295 kernel/cgroup/cgroup.c if (!f) f 6298 kernel/cgroup/cgroup.c css = css_tryget_online_from_dir(f->f_path.dentry, NULL); f 6299 kernel/cgroup/cgroup.c fput(f); f 59 kernel/debug/kdb/kdb_io.c get_char_func *f, *f_escape = NULL; f 62 kernel/debug/kdb/kdb_io.c for (f = &kdb_poll_funcs[0]; ; ++f) { f 63 kernel/debug/kdb/kdb_io.c if (*f == NULL) { f 66 kernel/debug/kdb/kdb_io.c f = &kdb_poll_funcs[0]; f 79 kernel/debug/kdb/kdb_io.c key = (*f)(); f 97 kernel/debug/kdb/kdb_io.c f_escape = f; f 101 kernel/debug/kdb/kdb_io.c if (f_escape != f) { f 474 kernel/debug/kdb/kdb_io.c get_char_func *f; f 481 kernel/debug/kdb/kdb_io.c for (f = &kdb_poll_funcs[0]; *f; ++f) { f 482 kernel/debug/kdb/kdb_io.c res = (*f)(); f 905 kernel/events/core.c struct fd f = fdget(fd); f 908 kernel/events/core.c if (!f.file) f 911 kernel/events/core.c css = css_tryget_online_from_dir(f.file->f_path.dentry, f 931 kernel/events/core.c fdput(f); f 5145 kernel/events/core.c struct fd f = fdget(fd); f 5146 kernel/events/core.c if (!f.file) f 5149 kernel/events/core.c if (f.file->f_op != &perf_fops) { f 5150 kernel/events/core.c fdput(f); f 5153 kernel/events/core.c *p = f; f 1475 kernel/exit.c struct fd f; f 1478 kernel/exit.c f = fdget(fd); f 1479 kernel/exit.c if (!f.file) f 1482 kernel/exit.c pid = pidfd_pid(f.file); f 1486 kernel/exit.c fdput(f); f 1694 kernel/fork.c static void pidfd_show_fdinfo(struct seq_file *m, struct file *f) f 1697 kernel/fork.c struct pid *pid = f->private_data; f 6 kernel/irq/debug.h #define ___P(f) if (desc->status_use_accessors & f) printk("%14s set\n", #f) f 7 kernel/irq/debug.h #define ___PS(f) if (desc->istate & f) printk("%14s set\n", #f) f 9 kernel/irq/debug.h #define ___PD(f) do { } while (0) f 950 kernel/kprobes.c #define unoptimize_kprobe(p, f) do {} while (0) f 2359 kernel/kprobes.c static void *kprobe_seq_start(struct seq_file *f, loff_t *pos) f 2364 kernel/kprobes.c static void *kprobe_seq_next(struct seq_file *f, void *v, loff_t *pos) f 2372 kernel/kprobes.c static void kprobe_seq_stop(struct seq_file *f, void *v) f 892 kernel/locking/lockdep.c struct list_head *f; f 894 kernel/locking/lockdep.c list_for_each(f, h) { f 895 kernel/locking/lockdep.c if (e == f) f 209 kernel/rcu/rcu.h rcu_callback_t f; f 220 kernel/rcu/rcu.h f = head->func; f 222 kernel/rcu/rcu.h f(head); f 498 kernel/rcu/tree.c static void force_qs_rnp(int (*f)(struct rcu_data *rdp)); f 2258 kernel/rcu/tree.c static void force_qs_rnp(int (*f)(struct rcu_data *rdp)) f 2287 kernel/rcu/tree.c if (f(per_cpu_ptr(&rcu_data, cpu))) f 259 kernel/seccomp.c struct seccomp_filter *f = f 263 kernel/seccomp.c if (WARN_ON(f == NULL)) f 271 kernel/seccomp.c for (; f; f = f->prev) { f 272 kernel/seccomp.c u32 cur_ret = BPF_PROG_RUN(f->prog, sd); f 276 kernel/seccomp.c *match = f; f 3721 kernel/signal.c struct fd f; f 3729 kernel/signal.c f = fdget(pidfd); f 3730 kernel/signal.c if (!f.file) f 3734 kernel/signal.c pid = pidfd_to_pid(f.file); f 3765 kernel/signal.c fdput(f); f 397 kernel/taskstats.c struct fd f; f 404 kernel/taskstats.c f = fdget(fd); f 405 kernel/taskstats.c if (!f.file) f 426 kernel/taskstats.c rc = cgroupstats_build(stats, f.file->f_path.dentry); f 435 kernel/taskstats.c fdput(f); f 238 kernel/torture.c int torture_onoff_init(long ooholdoff, long oointerval, torture_ofl_func *f) f 243 kernel/torture.c onoff_f = f; f 776 kernel/torture.c char *f, struct task_struct **tp) f 784 kernel/torture.c VERBOSE_TOROUT_ERRSTRING(f); f 31 kernel/trace/trace_branch.c probe_likely_condition(struct ftrace_likely_data *f, int val, int expect) f 72 kernel/trace/trace_branch.c p = f->data.file + strlen(f->data.file); f 73 kernel/trace/trace_branch.c while (p >= f->data.file && *p != '/') f 77 kernel/trace/trace_branch.c strncpy(entry->func, f->data.func, TRACE_FUNC_SIZE); f 81 kernel/trace/trace_branch.c entry->constant = f->constant; f 82 kernel/trace/trace_branch.c entry->line = f->data.line; f 94 kernel/trace/trace_branch.c void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) f 99 kernel/trace/trace_branch.c probe_likely_condition(f, val, expect); f 200 kernel/trace/trace_branch.c void trace_likely_condition(struct ftrace_likely_data *f, int val, int expect) f 205 kernel/trace/trace_branch.c void ftrace_likely_update(struct ftrace_likely_data *f, int val, f 212 kernel/trace/trace_branch.c f->constant++; f 221 kernel/trace/trace_branch.c trace_likely_condition(f, val, expect); f 225 kernel/trace/trace_branch.c f->data.correct++; f 227 kernel/trace/trace_branch.c f->data.incorrect++; f 262 kernel/trace/trace_branch.c const char *f; f 265 kernel/trace/trace_branch.c f = p->file + strlen(p->file); f 266 kernel/trace/trace_branch.c while (f >= p->file && *f != '/') f 267 kernel/trace/trace_branch.c f--; f 268 kernel/trace/trace_branch.c return ++f; f 272 kernel/trace/trace_branch.c struct ftrace_branch_data *p, const char *f) f 286 kernel/trace/trace_branch.c seq_printf(m, "%-30.30s %-20.20s %d\n", p->func, f, p->line); f 290 kernel/trace/trace_branch.c struct ftrace_branch_data *p, const char *f) f 293 kernel/trace/trace_branch.c branch_stat_show(m, p, f); f 300 kernel/trace/trace_branch.c const char *f; f 303 kernel/trace/trace_branch.c f = branch_stat_process_file(&p->data); f 306 kernel/trace/trace_branch.c return branch_stat_show_normal(m, &p->data, f); f 313 kernel/trace/trace_branch.c branch_stat_show(m, &p->data, f); f 428 kernel/trace/trace_branch.c const char *f; f 430 kernel/trace/trace_branch.c f = branch_stat_process_file(p); f 431 kernel/trace/trace_branch.c return branch_stat_show_normal(m, p, f); f 2108 kernel/trace/trace_events_filter.c .e = ve, .f = vf, .g = vg, .h = vh }, \ f 12 kernel/trace/trace_events_filter_test.h TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h), f 14 kernel/trace/trace_events_filter_test.h TP_ARGS(a, b, c, d, e, f, g, h), f 22 kernel/trace/trace_events_filter_test.h __field(int, f) f 33 kernel/trace/trace_events_filter_test.h __entry->f = f; f 40 kernel/trace/trace_events_filter_test.h __entry->e, __entry->f, __entry->g, __entry->h) f 263 kernel/trace/trace_stat.c static int tracing_stat_release(struct inode *i, struct file *f) f 269 kernel/trace/trace_stat.c return seq_release(i, f); f 649 lib/bch.c unsigned int a, b, c, d, e = 0, f, a2, b2, c2, e4; f 666 lib/bch.c f = gf_div(bch, c, a); f 667 lib/bch.c l = a_log(bch, f); f 677 lib/bch.c d = a_pow(bch, 2*l)^gf_mul(bch, b, f)^d; f 698 lib/bch.c f = a ? gf_inv(bch, roots[i]) : roots[i]; f 699 lib/bch.c roots[i] = a_ilog(bch, f^e); f 806 lib/bch.c const struct gf_poly *f, struct gf_poly *z, f 818 lib/bch.c memset(out, 0, GF_POLY_SZ(f->deg)); f 821 lib/bch.c gf_poly_logrep(bch, f, bch->cache); f 836 lib/bch.c gf_poly_mod(bch, z, f, bch->cache); f 848 lib/bch.c static void factor_polynomial(struct bch_control *bch, int k, struct gf_poly *f, f 857 lib/bch.c dbg("factoring %s...\n", gf_poly_str(f)); f 859 lib/bch.c *g = f; f 863 lib/bch.c compute_trace_bk_mod(bch, k, f, z, tk); f 867 lib/bch.c gf_poly_copy(f2, f); f 869 lib/bch.c if (gcd->deg < f->deg) { f 871 lib/bch.c gf_poly_div(bch, f, gcd, q); f 873 lib/bch.c *h = &((struct gf_poly_deg1 *)f)[gcd->deg].poly; f 48 lib/crypto/sha256.c u32 a, b, c, d, e, f, g, h, t1, t2; f 62 lib/crypto/sha256.c e = state[4]; f = state[5]; g = state[6]; h = state[7]; f 65 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0x428a2f98 + W[0]; f 67 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0x71374491 + W[1]; f 69 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]; f 70 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 72 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 74 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 76 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 78 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 79 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0xab1c5ed5 + W[7]; f 82 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0xd807aa98 + W[8]; f 84 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0x12835b01 + W[9]; f 86 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0x243185be + W[10]; f 87 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 89 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 91 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 93 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 95 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 96 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0xc19bf174 + W[15]; f 99 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0xe49b69c1 + W[16]; f 101 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0xefbe4786 + W[17]; f 103 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0x0fc19dc6 + W[18]; f 104 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 106 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 108 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 110 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 112 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 113 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0x76f988da + W[23]; f 116 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0x983e5152 + W[24]; f 118 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0xa831c66d + W[25]; f 120 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0xb00327c8 + W[26]; f 121 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 123 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 125 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 127 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 129 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 130 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0x14292967 + W[31]; f 133 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0x27b70a85 + W[32]; f 135 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0x2e1b2138 + W[33]; f 137 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0x4d2c6dfc + W[34]; f 138 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 140 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 142 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 144 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 146 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 147 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0x92722c85 + W[39]; f 150 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0xa2bfe8a1 + W[40]; f 152 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0xa81a664b + W[41]; f 154 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0xc24b8b70 + W[42]; f 155 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 157 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 159 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 161 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 163 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 164 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0x106aa070 + W[47]; f 167 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0x19a4c116 + W[48]; f 169 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0x1e376c08 + W[49]; f 171 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0x2748774c + W[50]; f 172 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 174 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 176 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 178 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 180 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 181 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0x682e6ff3 + W[55]; f 184 lib/crypto/sha256.c t1 = h + e1(e) + Ch(e, f, g) + 0x748f82ee + W[56]; f 186 lib/crypto/sha256.c t1 = g + e1(d) + Ch(d, e, f) + 0x78a5636f + W[57]; f 188 lib/crypto/sha256.c t1 = f + e1(c) + Ch(c, d, e) + 0x84c87814 + W[58]; f 189 lib/crypto/sha256.c t2 = e0(g) + Maj(g, h, a); b += t1; f = t1 + t2; f 191 lib/crypto/sha256.c t2 = e0(f) + Maj(f, g, h); a += t1; e = t1 + t2; f 193 lib/crypto/sha256.c t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; f 195 lib/crypto/sha256.c t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; f 197 lib/crypto/sha256.c t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; f 198 lib/crypto/sha256.c t1 = a + e1(f) + Ch(f, g, h) + 0xc67178f2 + W[63]; f 202 lib/crypto/sha256.c state[4] += e; state[5] += f; state[6] += g; state[7] += h; f 205 lib/crypto/sha256.c a = b = c = d = e = f = g = h = t1 = t2 = 0; f 110 lib/fonts/fonts.c const struct font_desc *f, *g; f 115 lib/fonts/fonts.c f = fonts[i]; f 116 lib/fonts/fonts.c c = f->pref; f 119 lib/fonts/fonts.c if (MACH_IS_AMIGA && f->idx == PEARL8x8_IDX) f 123 lib/fonts/fonts.c if (MACH_IS_MAC && xres < 640 && f->idx == VGA6x11_IDX) f 127 lib/fonts/fonts.c if ((yres < 400) == (f->height <= 8)) f 131 lib/fonts/fonts.c res = (xres / f->width) * (yres / f->height) / 1000; f 135 lib/fonts/fonts.c if ((font_w & (1 << (f->width - 1))) && f 136 lib/fonts/fonts.c (font_h & (1 << (f->height - 1)))) f 141 lib/fonts/fonts.c g = f; f 338 lib/inflate.c unsigned f; /* i repeats in table every f entries */ f 471 lib/inflate.c if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ f 474 lib/inflate.c f -= a + 1; /* deduct codes from patterns left */ f 479 lib/inflate.c if ((f <<= 1) <= *++xp) f 481 lib/inflate.c f -= *xp; /* else deduct codes from patterns */ f 535 lib/inflate.c f = 1 << (k - w); f 536 lib/inflate.c for (j = i >> w; j < z; j += f) f 1699 lib/iov_iter.c int (*f)(struct kvec *vec, void *context), f 1710 lib/iov_iter.c err = f(&w, context); f 1714 lib/iov_iter.c err = f(&w, context);}) f 387 lib/kstrtox.c #define kstrto_from_user(f, g, type) \ f 388 lib/kstrtox.c int f(const char __user *s, size_t count, unsigned int base, type *res) \ f 399 lib/kstrtox.c EXPORT_SYMBOL(f) f 108 lib/test_firmware.c static ssize_t test_fw_misc_read(struct file *f, char __user *buf, f 167 lib/test_hexdump.c int ae, he, e, f, r; f 188 lib/test_hexdump.c f = min_t(int, e + 1, buflen); f 191 lib/test_hexdump.c test[f - 1] = '\0'; f 193 lib/test_hexdump.c memset(test + f, FILL_CHAR, sizeof(test) - f); f 880 lib/vsprintf.c char *file_dentry_name(char *buf, char *end, const struct file *f, f 883 lib/vsprintf.c if (check_pointer(&buf, end, f, spec)) f 886 lib/vsprintf.c return dentry_name(buf, end, f->f_path.dentry, spec, fmt); f 64 lib/xz/xz_dec_test.c static int xz_dec_test_open(struct inode *i, struct file *f) f 83 lib/xz/xz_dec_test.c static int xz_dec_test_release(struct inode *i, struct file *f) f 422 lib/zlib_deflate/deftree.c ush f; /* frequency */ f 444 lib/zlib_deflate/deftree.c f = tree[n].Freq; f 445 lib/zlib_deflate/deftree.c s->opt_len += (ulg)f * (bits + xbits); f 446 lib/zlib_deflate/deftree.c if (stree) s->static_len += (ulg)f * (stree[n].Len + xbits); f 64 lib/zstd/fse_decompress.c #define CHECK_F(f) \ f 66 lib/zstd/fse_decompress.c size_t const e = f; \ f 56 lib/zstd/huf_compress.c #define CHECK_V_F(e, f) \ f 57 lib/zstd/huf_compress.c size_t const e = f; \ f 59 lib/zstd/huf_compress.c return f f 60 lib/zstd/huf_compress.c #define CHECK_F(f) \ f 62 lib/zstd/huf_compress.c CHECK_V_F(_var_err__, f); \ f 41 lib/zstd/zstd_internal.h #define CHECK_F(f) \ f 43 lib/zstd/zstd_internal.h size_t const errcod = f; \ f 47 lib/zstd/zstd_internal.h #define CHECK_E(f, e) \ f 49 lib/zstd/zstd_internal.h size_t const errcod = f; \ f 195 mm/fadvise.c struct fd f = fdget(fd); f 198 mm/fadvise.c if (!f.file) f 201 mm/fadvise.c ret = vfs_fadvise(f.file, offset, len, advice); f 203 mm/fadvise.c fdput(f); f 262 mm/hugetlb.c static long region_add(struct resv_map *resv, long f, long t) f 271 mm/hugetlb.c if (f <= rg->to) f 288 mm/hugetlb.c nrg->from = f; f 292 mm/hugetlb.c add += t - f; f 297 mm/hugetlb.c if (f > rg->from) f 298 mm/hugetlb.c f = rg->from; f 324 mm/hugetlb.c add += (nrg->from - f); /* Added to beginning of region */ f 325 mm/hugetlb.c nrg->from = f; f 358 mm/hugetlb.c static long region_chg(struct resv_map *resv, long f, long t) f 395 mm/hugetlb.c if (f <= rg->to) f 409 mm/hugetlb.c nrg->from = f; f 410 mm/hugetlb.c nrg->to = f; f 416 mm/hugetlb.c chg = t - f; f 421 mm/hugetlb.c if (f > rg->from) f 422 mm/hugetlb.c f = rg->from; f 423 mm/hugetlb.c chg = t - f; f 463 mm/hugetlb.c static void region_abort(struct resv_map *resv, long f, long t) f 485 mm/hugetlb.c static long region_del(struct resv_map *resv, long f, long t) f 502 mm/hugetlb.c if (rg->to <= f && (rg->to != rg->from || rg->to != f)) f 508 mm/hugetlb.c if (f > rg->from && t < rg->to) { /* Must split region */ f 530 mm/hugetlb.c del += t - f; f 538 mm/hugetlb.c rg->to = f; f 545 mm/hugetlb.c if (f <= rg->from && t >= rg->to) { /* Remove entire region */ f 552 mm/hugetlb.c if (f <= rg->from) { /* Trim beginning of region */ f 556 mm/hugetlb.c del += rg->to - f; f 557 mm/hugetlb.c rg->to = f; f 592 mm/hugetlb.c static long region_count(struct resv_map *resv, long f, long t) f 604 mm/hugetlb.c if (rg->to <= f) f 609 mm/hugetlb.c seg_from = max(rg->from, f); f 826 mm/madvise.c struct file *f; f 833 mm/madvise.c f = vma->vm_file; f 835 mm/madvise.c if (!f || !f->f_mapping || !f->f_mapping->host) { f 851 mm/madvise.c get_file(f); f 856 mm/madvise.c error = vfs_fallocate(f, f 859 mm/madvise.c fput(f); f 4433 mm/memory.c struct file *f = vma->vm_file; f 4438 mm/memory.c p = file_path(f, buf, PAGE_SIZE); f 581 mm/readahead.c struct fd f; f 584 mm/readahead.c f = fdget(fd); f 585 mm/readahead.c if (!f.file || !(f.file->f_mode & FMODE_READ)) f 594 mm/readahead.c if (!f.file->f_mapping || !f.file->f_mapping->a_ops || f 595 mm/readahead.c !S_ISREG(file_inode(f.file)->i_mode)) f 598 mm/readahead.c ret = vfs_fadvise(f.file, offset, count, POSIX_FADV_WILLNEED); f 600 mm/readahead.c fdput(f); f 286 mm/swapfile.c unsigned int c, unsigned int f) f 288 mm/swapfile.c info->flags = f; f 304 mm/swapfile.c unsigned int n, unsigned int f) f 306 mm/swapfile.c info->flags = f; f 3116 mm/vmalloc.c size, f, ptes ? &ptes : NULL)) { f 217 net/8021q/vlan_netlink.c struct ifla_vlan_flags f; f 226 net/8021q/vlan_netlink.c f.flags = vlan->flags; f 227 net/8021q/vlan_netlink.c f.mask = ~0; f 228 net/8021q/vlan_netlink.c if (nla_put(skb, IFLA_VLAN_FLAGS, sizeof(f), &f)) f 1175 net/bluetooth/6lowpan.c static int lowpan_control_show(struct seq_file *f, void *ptr) f 1184 net/bluetooth/6lowpan.c seq_printf(f, "%pMR (type %u)\n", f 122 net/bluetooth/bnep/core.c struct bnep_proto_filter *f = s->proto_filter; f 126 net/bluetooth/bnep/core.c f[i].start = get_unaligned_be16(data++); f 127 net/bluetooth/bnep/core.c f[i].end = get_unaligned_be16(data++); f 130 net/bluetooth/bnep/core.c f[i].start, f[i].end); f 134 net/bluetooth/bnep/core.c memset(f + i, 0, sizeof(*f)); f 151 net/bluetooth/bnep/netdev.c struct bnep_proto_filter *f = s->proto_filter; f 154 net/bluetooth/bnep/netdev.c for (i = 0; i < BNEP_MAX_PROTO_FILTERS && f[i].end; i++) { f 155 net/bluetooth/bnep/netdev.c if (proto >= f[i].start && proto <= f[i].end) f 76 net/bluetooth/hci_debugfs.c static int __name ## _show(struct seq_file *f, void *ptr) \ f 78 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; \ f 81 net/bluetooth/hci_debugfs.c seq_printf(f, "%s\n", hdev->__field ? : ""); \ f 89 net/bluetooth/hci_debugfs.c static int features_show(struct seq_file *f, void *ptr) f 91 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 96 net/bluetooth/hci_debugfs.c seq_printf(f, "%2u: %8ph\n", p, hdev->features[p]); f 98 net/bluetooth/hci_debugfs.c seq_printf(f, "LE: %8ph\n", hdev->le_features); f 106 net/bluetooth/hci_debugfs.c static int device_id_show(struct seq_file *f, void *ptr) f 108 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 111 net/bluetooth/hci_debugfs.c seq_printf(f, "%4.4x:%4.4x:%4.4x:%4.4x\n", hdev->devid_source, f 120 net/bluetooth/hci_debugfs.c static int device_list_show(struct seq_file *f, void *ptr) f 122 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 128 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); f 130 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u) %u\n", &p->addr, p->addr_type, f 140 net/bluetooth/hci_debugfs.c static int blacklist_show(struct seq_file *f, void *p) f 142 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 147 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); f 155 net/bluetooth/hci_debugfs.c static int uuids_show(struct seq_file *f, void *p) f 157 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 171 net/bluetooth/hci_debugfs.c seq_printf(f, "%pUb\n", val); f 180 net/bluetooth/hci_debugfs.c static int remote_oob_show(struct seq_file *f, void *ptr) f 182 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 187 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u) %u %*phN %*phN %*phN %*phN\n", f 337 net/bluetooth/hci_debugfs.c static int inquiry_cache_show(struct seq_file *f, void *p) f 339 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 347 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR %d %d %d 0x%.2x%.2x%.2x 0x%.4x %d %d %u\n", f 363 net/bluetooth/hci_debugfs.c static int link_keys_show(struct seq_file *f, void *ptr) f 365 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 370 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR %u %*phN %u\n", &key->bdaddr, key->type, f 379 net/bluetooth/hci_debugfs.c static int dev_class_show(struct seq_file *f, void *ptr) f 381 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 384 net/bluetooth/hci_debugfs.c seq_printf(f, "0x%.2x%.2x%.2x\n", hdev->dev_class[2], f 593 net/bluetooth/hci_debugfs.c static int identity_show(struct seq_file *f, void *p) f 595 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 603 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u) %*phN %pMR\n", &addr, addr_type, f 644 net/bluetooth/hci_debugfs.c static int random_address_show(struct seq_file *f, void *p) f 646 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 649 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR\n", &hdev->random_addr); f 657 net/bluetooth/hci_debugfs.c static int static_address_show(struct seq_file *f, void *p) f 659 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 662 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR\n", &hdev->static_addr); f 713 net/bluetooth/hci_debugfs.c static int white_list_show(struct seq_file *f, void *ptr) f 715 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 720 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); f 728 net/bluetooth/hci_debugfs.c static int resolv_list_show(struct seq_file *f, void *ptr) f 730 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 735 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u)\n", &b->bdaddr, b->bdaddr_type); f 743 net/bluetooth/hci_debugfs.c static int identity_resolving_keys_show(struct seq_file *f, void *ptr) f 745 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 750 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u) %*phN %pMR\n", f 761 net/bluetooth/hci_debugfs.c static int long_term_keys_show(struct seq_file *f, void *ptr) f 763 net/bluetooth/hci_debugfs.c struct hci_dev *hdev = f->private; f 768 net/bluetooth/hci_debugfs.c seq_printf(f, "%pMR (type %u) %u 0x%02x %u %.4x %.16llx %*phN\n", f 1862 net/bluetooth/hci_sock.c struct hci_filter *f = &hci_pi(sk)->filter; f 1864 net/bluetooth/hci_sock.c uf.type_mask = f->type_mask; f 1865 net/bluetooth/hci_sock.c uf.opcode = f->opcode; f 1866 net/bluetooth/hci_sock.c uf.event_mask[0] = *((u32 *) f->event_mask + 0); f 1867 net/bluetooth/hci_sock.c uf.event_mask[1] = *((u32 *) f->event_mask + 1); f 1883 net/bluetooth/hci_sock.c struct hci_filter *f = &hci_pi(sk)->filter; f 1885 net/bluetooth/hci_sock.c f->type_mask = uf.type_mask; f 1886 net/bluetooth/hci_sock.c f->opcode = uf.opcode; f 1887 net/bluetooth/hci_sock.c *((u32 *) f->event_mask + 0) = uf.event_mask[0]; f 1888 net/bluetooth/hci_sock.c *((u32 *) f->event_mask + 1) = uf.event_mask[1]; f 1947 net/bluetooth/hci_sock.c struct hci_filter *f = &hci_pi(sk)->filter; f 1950 net/bluetooth/hci_sock.c uf.type_mask = f->type_mask; f 1951 net/bluetooth/hci_sock.c uf.opcode = f->opcode; f 1952 net/bluetooth/hci_sock.c uf.event_mask[0] = *((u32 *) f->event_mask + 0); f 1953 net/bluetooth/hci_sock.c uf.event_mask[1] = *((u32 *) f->event_mask + 1); f 7690 net/bluetooth/l2cap_core.c static int l2cap_debugfs_show(struct seq_file *f, void *p) f 7697 net/bluetooth/l2cap_core.c seq_printf(f, "%pMR (%u) %pMR (%u) %d %d 0x%4.4x 0x%4.4x %d %d %d %d\n", f 176 net/bluetooth/rfcomm/core.c u8 f = __crc(data); f 179 net/bluetooth/rfcomm/core.c f = rfcomm_crc_table[f ^ data[2]]; f 181 net/bluetooth/rfcomm/core.c return rfcomm_crc_table[f ^ fcs] != 0xcf; f 2148 net/bluetooth/rfcomm/core.c static int rfcomm_dlc_debugfs_show(struct seq_file *f, void *x) f 2158 net/bluetooth/rfcomm/core.c seq_printf(f, "%pMR %pMR %ld %d %d %d %d\n", f 1006 net/bluetooth/rfcomm/sock.c static int rfcomm_sock_debugfs_show(struct seq_file *f, void *p) f 1013 net/bluetooth/rfcomm/sock.c seq_printf(f, "%pMR %pMR %d %d\n", f 1160 net/bluetooth/sco.c static int sco_debugfs_show(struct seq_file *f, void *p) f 1167 net/bluetooth/sco.c seq_printf(f, "%pMR %pMR %d\n", &sco_pi(sk)->src, f 186 net/bridge/br_arp_nd_proxy.c struct net_bridge_fdb_entry *f; f 193 net/bridge/br_arp_nd_proxy.c f = br_fdb_find_rcu(br, n->ha, vid); f 194 net/bridge/br_arp_nd_proxy.c if (f) { f 198 net/bridge/br_arp_nd_proxy.c (f->dst && (f->dst->flags & (BR_PROXYARP_WIFI | f 441 net/bridge/br_arp_nd_proxy.c struct net_bridge_fdb_entry *f; f 448 net/bridge/br_arp_nd_proxy.c f = br_fdb_find_rcu(br, n->ha, vid); f 449 net/bridge/br_arp_nd_proxy.c if (f) { f 452 net/bridge/br_arp_nd_proxy.c if (f->dst && (f->dst->flags & BR_NEIGH_SUPPRESS)) { f 123 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 134 net/bridge/br_fdb.c f = br_fdb_find_rcu(br, addr, vid); f 135 net/bridge/br_fdb.c if (f && f->dst) f 136 net/bridge/br_fdb.c dev = f->dst->dev; f 195 net/bridge/br_fdb.c static void fdb_delete(struct net_bridge *br, struct net_bridge_fdb_entry *f, f 198 net/bridge/br_fdb.c trace_fdb_delete(br, f); f 200 net/bridge/br_fdb.c if (f->is_static) f 201 net/bridge/br_fdb.c fdb_del_hw_addr(br, f->key.addr.addr); f 203 net/bridge/br_fdb.c hlist_del_init_rcu(&f->fdb_node); f 204 net/bridge/br_fdb.c rhashtable_remove_fast(&br->fdb_hash_tbl, &f->rhnode, f 206 net/bridge/br_fdb.c fdb_notify(br, f, RTM_DELNEIGH, swdev_notify); f 207 net/bridge/br_fdb.c call_rcu(&f->rcu, fdb_rcu_free); f 213 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f) f 215 net/bridge/br_fdb.c const unsigned char *addr = f->key.addr.addr; f 219 net/bridge/br_fdb.c u16 vid = f->key.vlan_id; f 226 net/bridge/br_fdb.c f->dst = op; f 227 net/bridge/br_fdb.c f->added_by_user = 0; f 237 net/bridge/br_fdb.c f->dst = NULL; f 238 net/bridge/br_fdb.c f->added_by_user = 0; f 242 net/bridge/br_fdb.c fdb_delete(br, f, true); f 249 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 252 net/bridge/br_fdb.c f = br_fdb_find(br, addr, vid); f 253 net/bridge/br_fdb.c if (f && f->is_local && !f->added_by_user && f->dst == p) f 254 net/bridge/br_fdb.c fdb_delete_local(br, p, f); f 261 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 267 net/bridge/br_fdb.c hlist_for_each_entry(f, &br->fdb_list, fdb_node) { f 268 net/bridge/br_fdb.c if (f->dst == p && f->is_local && !f->added_by_user) { f 270 net/bridge/br_fdb.c fdb_delete_local(br, p, f); f 302 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 308 net/bridge/br_fdb.c f = br_fdb_find(br, br->dev->dev_addr, 0); f 309 net/bridge/br_fdb.c if (f && f->is_local && !f->dst && !f->added_by_user) f 310 net/bridge/br_fdb.c fdb_delete_local(br, NULL, f); f 323 net/bridge/br_fdb.c f = br_fdb_find(br, br->dev->dev_addr, v->vid); f 324 net/bridge/br_fdb.c if (f && f->is_local && !f->dst && !f->added_by_user) f 325 net/bridge/br_fdb.c fdb_delete_local(br, NULL, f); f 336 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f = NULL; f 346 net/bridge/br_fdb.c hlist_for_each_entry_rcu(f, &br->fdb_list, fdb_node) { f 349 net/bridge/br_fdb.c if (f->is_static || f->added_by_external_learn) f 351 net/bridge/br_fdb.c this_timer = f->updated + delay; f 356 net/bridge/br_fdb.c if (!hlist_unhashed(&f->fdb_node)) f 357 net/bridge/br_fdb.c fdb_delete(br, f, true); f 371 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 375 net/bridge/br_fdb.c hlist_for_each_entry_safe(f, tmp, &br->fdb_list, fdb_node) { f 376 net/bridge/br_fdb.c if (!f->is_static) f 377 net/bridge/br_fdb.c fdb_delete(br, f, true); f 391 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 395 net/bridge/br_fdb.c hlist_for_each_entry_safe(f, tmp, &br->fdb_list, fdb_node) { f 396 net/bridge/br_fdb.c if (f->dst != p) f 400 net/bridge/br_fdb.c if (f->is_static || (vid && f->key.vlan_id != vid)) f 403 net/bridge/br_fdb.c if (f->is_local) f 404 net/bridge/br_fdb.c fdb_delete_local(br, p, f); f 406 net/bridge/br_fdb.c fdb_delete(br, f, true); f 442 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 449 net/bridge/br_fdb.c hlist_for_each_entry_rcu(f, &br->fdb_list, fdb_node) { f 453 net/bridge/br_fdb.c if (has_expired(br, f)) f 457 net/bridge/br_fdb.c if (!f->dst) f 466 net/bridge/br_fdb.c memcpy(fe->mac_addr, f->key.addr.addr, ETH_ALEN); f 469 net/bridge/br_fdb.c fe->port_no = f->dst->port_no; f 470 net/bridge/br_fdb.c fe->port_hi = f->dst->port_no >> 8; f 472 net/bridge/br_fdb.c fe->is_local = f->is_local; f 473 net/bridge/br_fdb.c if (!f->is_static) f 474 net/bridge/br_fdb.c fe->ageing_timer_value = jiffies_delta_to_clock_t(jiffies - f->updated); f 726 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 739 net/bridge/br_fdb.c hlist_for_each_entry_rcu(f, &br->fdb_list, fdb_node) { f 742 net/bridge/br_fdb.c if (filter_dev && (!f->dst || f->dst->dev != filter_dev)) { f 750 net/bridge/br_fdb.c if (f->dst) f 753 net/bridge/br_fdb.c if (!filter_dev && f->dst) f 756 net/bridge/br_fdb.c err = fdb_fill_info(skb, br, f, f 779 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 783 net/bridge/br_fdb.c f = br_fdb_find_rcu(br, addr, vid); f 784 net/bridge/br_fdb.c if (!f) { f 790 net/bridge/br_fdb.c err = fdb_fill_info(skb, br, f, portid, seq, f 1058 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f, *tmp; f 1065 net/bridge/br_fdb.c hlist_for_each_entry_rcu(f, &br->fdb_list, fdb_node) { f 1067 net/bridge/br_fdb.c if (!f->is_static) f 1069 net/bridge/br_fdb.c err = dev_uc_add(p->dev, f->key.addr.addr); f 1083 net/bridge/br_fdb.c if (tmp == f) f 1093 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 1098 net/bridge/br_fdb.c hlist_for_each_entry_rcu(f, &br->fdb_list, fdb_node) { f 1100 net/bridge/br_fdb.c if (!f->is_static) f 1103 net/bridge/br_fdb.c dev_uc_del(p->dev, f->key.addr.addr); f 1197 net/bridge/br_fdb.c struct net_bridge_fdb_entry *f; f 1207 net/bridge/br_fdb.c hlist_for_each_entry(f, &p->br->fdb_list, fdb_node) { f 1208 net/bridge/br_fdb.c if (f->dst == p && f->key.vlan_id == vid) f 1209 net/bridge/br_fdb.c f->offloaded = 0; f 261 net/can/j1939/socket.c const struct j1939_filter *f = jsk->filters; f 268 net/can/j1939/socket.c for (; nfilter; ++f, --nfilter) { f 269 net/can/j1939/socket.c if ((skcb->addr.pgn & f->pgn_mask) != f->pgn) f 271 net/can/j1939/socket.c if ((skcb->addr.sa & f->addr_mask) != f->addr) f 273 net/can/j1939/socket.c if ((skcb->addr.src_name & f->name_mask) != f->name) f 662 net/can/j1939/socket.c struct j1939_filter *f; f 677 net/can/j1939/socket.c for (f = filters, c = count; c; f++, c--) { f 678 net/can/j1939/socket.c f->name &= f->name_mask; f 679 net/can/j1939/socket.c f->pgn &= f->pgn_mask; f 680 net/can/j1939/socket.c f->addr &= f->addr_mask; f 326 net/compat.c struct sock_fprog f; f 330 net/compat.c memset(&f, 0, sizeof(f)); f 331 net/compat.c f.len = f32.len; f 332 net/compat.c f.filter = compat_ptr(f32.filter); f 333 net/compat.c if (copy_to_user(kfprog, &f, sizeof(struct sock_fprog))) f 246 net/core/flow_offload.c int flow_block_cb_setup_simple(struct flow_block_offload *f, f 255 net/core/flow_offload.c f->binder_type != FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) f 258 net/core/flow_offload.c f->driver_block_list = driver_block_list; f 260 net/core/flow_offload.c switch (f->command) { f 269 net/core/flow_offload.c flow_block_cb_add(block_cb, f); f 273 net/core/flow_offload.c block_cb = flow_block_cb_lookup(f->block, cb, cb_ident); f 277 net/core/flow_offload.c flow_block_cb_remove(block_cb, f); f 827 net/core/pktgen.c static __u32 pktgen_read_flag(const char *f, bool *disable) f 831 net/core/pktgen.c if (f[0] == '!') { f 833 net/core/pktgen.c f++; f 844 net/core/pktgen.c if (strcmp(f, pkt_flag_names[i]) == 0) f 848 net/core/pktgen.c if (strcmp(f, "FLOW_RND") == 0) { f 1172 net/core/pktgen.c char f[32]; f 1174 net/core/pktgen.c memset(f, 0, 32); f 1175 net/core/pktgen.c len = strn_len(&user_buffer[i], sizeof(f) - 1); f 1179 net/core/pktgen.c if (copy_from_user(f, &user_buffer[i], len)) f 1183 net/core/pktgen.c if (strcmp(f, "start_xmit") == 0) { f 1185 net/core/pktgen.c } else if (strcmp(f, "netif_receive") == 0) { f 1201 net/core/pktgen.c } else if (strcmp(f, "queue_xmit") == 0) { f 1207 net/core/pktgen.c f, "start_xmit, netif_receive\n"); f 1210 net/core/pktgen.c sprintf(pg_result, "OK: xmit_mode=%s", f); f 1215 net/core/pktgen.c char f[32]; f 1218 net/core/pktgen.c memset(f, 0, 32); f 1219 net/core/pktgen.c len = strn_len(&user_buffer[i], sizeof(f) - 1); f 1223 net/core/pktgen.c if (copy_from_user(f, &user_buffer[i], len)) f 1227 net/core/pktgen.c flag = pktgen_read_flag(f, &disable); f 1237 net/core/pktgen.c f, f 1800 net/core/pktgen.c char f[32]; f 1801 net/core/pktgen.c memset(f, 0, 32); f 1802 net/core/pktgen.c len = strn_len(&user_buffer[i], sizeof(f) - 1); f 1807 net/core/pktgen.c if (copy_from_user(f, &user_buffer[i], len)) f 1811 net/core/pktgen.c ret = pktgen_add_device(t, f); f 1815 net/core/pktgen.c sprintf(pg_result, "OK: add_device=%s", f); f 1817 net/core/pktgen.c sprintf(pg_result, "ERROR: can not add device %s", f); f 1373 net/core/skbuff.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 1378 net/core/skbuff.c skb_frag_foreach_page(f, skb_frag_off(f), skb_frag_size(f), f 2210 net/core/skbuff.c skb_frag_t *f = &skb_shinfo(skb)->frags[i]; f 2214 net/core/skbuff.c end = start + skb_frag_size(f); f 2223 net/core/skbuff.c skb_frag_foreach_page(f, f 2224 net/core/skbuff.c skb_frag_off(f) + offset - start, f 2397 net/core/skbuff.c const skb_frag_t *f = &skb_shinfo(skb)->frags[seg]; f 2399 net/core/skbuff.c if (__splice_segment(skb_frag_page(f), f 2400 net/core/skbuff.c skb_frag_off(f), skb_frag_size(f), f 67 net/core/sock_map.c struct fd f; f 70 net/core/sock_map.c f = fdget(ufd); f 71 net/core/sock_map.c map = __bpf_map_get(f); f 75 net/core/sock_map.c fdput(f); f 616 net/dccp/ccids/lib/tfrc_equation.c u32 f; f 635 net/dccp/ccids/lib/tfrc_equation.c f = tfrc_calc_x_lookup[index][1]; f 640 net/dccp/ccids/lib/tfrc_equation.c f = tfrc_calc_x_lookup[index][0]; f 653 net/dccp/ccids/lib/tfrc_equation.c return scaled_div32(result, f); f 73 net/decnet/dn_table.c #define DN_FIB_SCAN(f, fp) \ f 74 net/decnet/dn_table.c for( ; ((f) = *(fp)) != NULL; (fp) = &(f)->fn_next) f 76 net/decnet/dn_table.c #define DN_FIB_SCAN_KEY(f, fp, key) \ f 77 net/decnet/dn_table.c for( ; ((f) = *(fp)) != NULL && dn_key_eq((f)->fn_key, (key)); (fp) = &(f)->fn_next) f 127 net/decnet/dn_table.c struct dn_fib_node *f, **fp, *next; f 131 net/decnet/dn_table.c for(f = old_ht[i]; f; f = next) { f 132 net/decnet/dn_table.c next = f->fn_next; f 133 net/decnet/dn_table.c for(fp = dn_chain_p(f->fn_key, dz); f 134 net/decnet/dn_table.c *fp && dn_key_leq((*fp)->fn_key, f->fn_key); f 137 net/decnet/dn_table.c f->fn_next = *fp; f 138 net/decnet/dn_table.c *fp = f; f 180 net/decnet/dn_table.c static void dn_free_node(struct dn_fib_node *f) f 182 net/decnet/dn_table.c dn_fib_release_info(DN_FIB_INFO(f)); f 183 net/decnet/dn_table.c kmem_cache_free(dn_hash_kmem, f); f 382 net/decnet/dn_table.c static void dn_rtmsg_fib(int event, struct dn_fib_node *f, int z, u32 tb_id, f 389 net/decnet/dn_table.c skb = nlmsg_new(dn_fib_nlmsg_size(DN_FIB_INFO(f)), GFP_KERNEL); f 394 net/decnet/dn_table.c f->fn_type, f->fn_scope, &f->fn_key, z, f 395 net/decnet/dn_table.c DN_FIB_INFO(f), 0); f 413 net/decnet/dn_table.c struct dn_fib_node *f) f 418 net/decnet/dn_table.c for(i = 0; f; i++, f = f->fn_next) { f 421 net/decnet/dn_table.c if (f->fn_state & DN_S_ZOMBIE) f 427 net/decnet/dn_table.c (f->fn_state & DN_S_ZOMBIE) ? 0 : f->fn_type, f 428 net/decnet/dn_table.c f->fn_scope, &f->fn_key, dz->dz_order, f 429 net/decnet/dn_table.c f->fn_info, NLM_F_MULTI) < 0) { f 533 net/decnet/dn_table.c struct dn_fib_node *new_f, *f, **fp, **del_fp; f 566 net/decnet/dn_table.c DN_FIB_SCAN(f, fp) { f 567 net/decnet/dn_table.c if (dn_key_leq(key, f->fn_key)) f 573 net/decnet/dn_table.c if (f && (f->fn_state & DN_S_ZOMBIE) && f 574 net/decnet/dn_table.c dn_key_eq(f->fn_key, key)) { f 576 net/decnet/dn_table.c fp = &f->fn_next; f 577 net/decnet/dn_table.c f = *fp; f 581 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { f 582 net/decnet/dn_table.c if (fi->fib_priority <= DN_FIB_INFO(f)->fib_priority) f 586 net/decnet/dn_table.c if (f && dn_key_eq(f->fn_key, key) && f 587 net/decnet/dn_table.c fi->fib_priority == DN_FIB_INFO(f)->fib_priority) { f 596 net/decnet/dn_table.c fp = &f->fn_next; f 597 net/decnet/dn_table.c f = *fp; f 604 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { f 605 net/decnet/dn_table.c if (fi->fib_priority != DN_FIB_INFO(f)->fib_priority) f 607 net/decnet/dn_table.c if (f->fn_type == type && f 608 net/decnet/dn_table.c f->fn_scope == r->rtm_scope && f 609 net/decnet/dn_table.c DN_FIB_INFO(f) == fi) f 615 net/decnet/dn_table.c f = *fp; f 635 net/decnet/dn_table.c new_f->fn_next = f; f 642 net/decnet/dn_table.c f = *del_fp; f 644 net/decnet/dn_table.c *del_fp = f->fn_next; f 647 net/decnet/dn_table.c if (!(f->fn_state & DN_S_ZOMBIE)) f 648 net/decnet/dn_table.c dn_rtmsg_fib(RTM_DELROUTE, f, z, tb->n, n, req); f 649 net/decnet/dn_table.c if (f->fn_state & DN_S_ACCESSED) f 651 net/decnet/dn_table.c dn_free_node(f); f 670 net/decnet/dn_table.c struct dn_fib_node **fp, **del_fp, *f; f 693 net/decnet/dn_table.c DN_FIB_SCAN(f, fp) { f 694 net/decnet/dn_table.c if (dn_key_eq(f->fn_key, key)) f 696 net/decnet/dn_table.c if (dn_key_leq(key, f->fn_key)) f 702 net/decnet/dn_table.c DN_FIB_SCAN_KEY(f, fp, key) { f 703 net/decnet/dn_table.c struct dn_fib_info *fi = DN_FIB_INFO(f); f 705 net/decnet/dn_table.c if (f->fn_state & DN_S_ZOMBIE) f 711 net/decnet/dn_table.c (!r->rtm_type || f->fn_type == r->rtm_type) && f 712 net/decnet/dn_table.c (r->rtm_scope == RT_SCOPE_NOWHERE || f->fn_scope == r->rtm_scope) && f 720 net/decnet/dn_table.c f = *del_fp; f 721 net/decnet/dn_table.c dn_rtmsg_fib(RTM_DELROUTE, f, z, tb->n, n, req); f 725 net/decnet/dn_table.c *del_fp = f->fn_next; f 728 net/decnet/dn_table.c if (f->fn_state & DN_S_ACCESSED) f 730 net/decnet/dn_table.c dn_free_node(f); f 733 net/decnet/dn_table.c f->fn_state |= DN_S_ZOMBIE; f 734 net/decnet/dn_table.c if (f->fn_state & DN_S_ACCESSED) { f 735 net/decnet/dn_table.c f->fn_state &= ~DN_S_ACCESSED; f 751 net/decnet/dn_table.c struct dn_fib_node *f; f 753 net/decnet/dn_table.c while((f = *fp) != NULL) { f 754 net/decnet/dn_table.c struct dn_fib_info *fi = DN_FIB_INFO(f); f 756 net/decnet/dn_table.c if (fi && ((f->fn_state & DN_S_ZOMBIE) || (fi->fib_flags & RTNH_F_DEAD))) { f 758 net/decnet/dn_table.c *fp = f->fn_next; f 761 net/decnet/dn_table.c dn_free_node(f); f 765 net/decnet/dn_table.c fp = &f->fn_next; f 798 net/decnet/dn_table.c struct dn_fib_node *f; f 801 net/decnet/dn_table.c for(f = dz_chain(k, dz); f; f = f->fn_next) { f 802 net/decnet/dn_table.c if (!dn_key_eq(k, f->fn_key)) { f 803 net/decnet/dn_table.c if (dn_key_leq(k, f->fn_key)) f 809 net/decnet/dn_table.c f->fn_state |= DN_S_ACCESSED; f 811 net/decnet/dn_table.c if (f->fn_state&DN_S_ZOMBIE) f 814 net/decnet/dn_table.c if (f->fn_scope < flp->flowidn_scope) f 817 net/decnet/dn_table.c err = dn_fib_semantic_match(f->fn_type, DN_FIB_INFO(f), flp, res); f 820 net/decnet/dn_table.c res->type = f->fn_type; f 821 net/decnet/dn_table.c res->scope = f->fn_scope; f 992 net/dsa/slave.c struct flow_block_offload *f) f 997 net/dsa/slave.c if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_INGRESS) f 999 net/dsa/slave.c else if (f->binder_type == FLOW_BLOCK_BINDER_TYPE_CLSACT_EGRESS) f 1004 net/dsa/slave.c f->driver_block_list = &dsa_slave_block_cb_list; f 1006 net/dsa/slave.c switch (f->command) { f 1015 net/dsa/slave.c flow_block_cb_add(block_cb, f); f 1019 net/dsa/slave.c block_cb = flow_block_cb_lookup(f->block, cb, dev); f 1023 net/dsa/slave.c flow_block_cb_remove(block_cb, f); f 28 net/ieee802154/netlink.c unsigned long f; f 33 net/ieee802154/netlink.c spin_lock_irqsave(&ieee802154_seq_lock, f); f 36 net/ieee802154/netlink.c spin_unlock_irqrestore(&ieee802154_seq_lock, f); f 102 net/ipv4/inet_fragment.c int inet_frags_init(struct inet_frags *f) f 104 net/ipv4/inet_fragment.c f->frags_cachep = kmem_cache_create(f->frags_cache_name, f->qsize, 0, 0, f 106 net/ipv4/inet_fragment.c if (!f->frags_cachep) f 109 net/ipv4/inet_fragment.c refcount_set(&f->refcnt, 1); f 110 net/ipv4/inet_fragment.c init_completion(&f->completion); f 115 net/ipv4/inet_fragment.c void inet_frags_fini(struct inet_frags *f) f 117 net/ipv4/inet_fragment.c if (refcount_dec_and_test(&f->refcnt)) f 118 net/ipv4/inet_fragment.c complete(&f->completion); f 120 net/ipv4/inet_fragment.c wait_for_completion(&f->completion); f 122 net/ipv4/inet_fragment.c kmem_cache_destroy(f->frags_cachep); f 123 net/ipv4/inet_fragment.c f->frags_cachep = NULL; f 151 net/ipv4/inet_fragment.c struct inet_frags *f = fqdir->f; f 161 net/ipv4/inet_fragment.c if (refcount_dec_and_test(&f->refcnt)) f 162 net/ipv4/inet_fragment.c complete(&f->completion); f 167 net/ipv4/inet_fragment.c int fqdir_init(struct fqdir **fqdirp, struct inet_frags *f, struct net *net) f 174 net/ipv4/inet_fragment.c fqdir->f = f; f 176 net/ipv4/inet_fragment.c res = rhashtable_init(&fqdir->rhashtable, &fqdir->f->rhash_params); f 181 net/ipv4/inet_fragment.c refcount_inc(&f->refcnt); f 211 net/ipv4/inet_fragment.c fqdir->f->rhash_params); f 225 net/ipv4/inet_fragment.c struct inet_frags *f = q->fqdir->f; f 227 net/ipv4/inet_fragment.c if (f->destructor) f 228 net/ipv4/inet_fragment.c f->destructor(q); f 229 net/ipv4/inet_fragment.c kmem_cache_free(f->frags_cachep, q); f 258 net/ipv4/inet_fragment.c struct inet_frags *f; f 265 net/ipv4/inet_fragment.c f = fqdir->f; f 267 net/ipv4/inet_fragment.c sum = sum_truesize + f->qsize; f 276 net/ipv4/inet_fragment.c struct inet_frags *f, f 281 net/ipv4/inet_fragment.c q = kmem_cache_zalloc(f->frags_cachep, GFP_ATOMIC); f 286 net/ipv4/inet_fragment.c f->constructor(q, arg); f 287 net/ipv4/inet_fragment.c add_frag_mem_limit(fqdir, f->qsize); f 289 net/ipv4/inet_fragment.c timer_setup(&q->timer, f->frag_expire, 0); f 300 net/ipv4/inet_fragment.c struct inet_frags *f = fqdir->f; f 303 net/ipv4/inet_fragment.c q = inet_frag_alloc(fqdir, f, arg); f 311 net/ipv4/inet_fragment.c &q->node, f->rhash_params); f 331 net/ipv4/inet_fragment.c prev = rhashtable_lookup(&fqdir->rhashtable, key, fqdir->f->rhash_params); f 1101 net/ipv4/ping.c static void ping_v4_format_sock(struct sock *sp, struct seq_file *f, f 1110 net/ipv4/ping.c seq_printf(f, "%5d: %08X:%04X %08X:%04X" f 1116 net/ipv4/ping.c from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)), f 3826 net/ipv4/tcp.c const skb_frag_t *f = &shi->frags[i]; f 3827 net/ipv4/tcp.c unsigned int offset = skb_frag_off(f); f 3828 net/ipv4/tcp.c struct page *page = skb_frag_page(f) + (offset >> PAGE_SHIFT); f 3830 net/ipv4/tcp.c sg_set_page(&sg, page, skb_frag_size(f), f 3832 net/ipv4/tcp.c ahash_request_set_crypt(req, &sg, NULL, skb_frag_size(f)); f 2399 net/ipv4/tcp_ipv4.c struct seq_file *f, int i) f 2404 net/ipv4/tcp_ipv4.c seq_printf(f, "%4d: %08X:%04X %08X:%04X" f 2416 net/ipv4/tcp_ipv4.c from_kuid_munged(seq_user_ns(f), f 2424 net/ipv4/tcp_ipv4.c static void get_tcp4_sock(struct sock *sk, struct seq_file *f, int i) f 2465 net/ipv4/tcp_ipv4.c seq_printf(f, "%4d: %08X:%04X %08X:%04X %02X %08X:%08X %02X:%08lX " f 2473 net/ipv4/tcp_ipv4.c from_kuid_munged(seq_user_ns(f), sock_i_uid(sk)), f 2487 net/ipv4/tcp_ipv4.c struct seq_file *f, int i) f 2498 net/ipv4/tcp_ipv4.c seq_printf(f, "%4d: %08X:%04X %08X:%04X" f 2902 net/ipv4/udp.c static void udp4_format_sock(struct sock *sp, struct seq_file *f, f 2911 net/ipv4/udp.c seq_printf(f, "%5d: %08X:%04X %08X:%04X" f 2917 net/ipv4/udp.c from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)), f 24 net/ipv6/ip6_offload.c #define INDIRECT_CALL_L4(f, f2, f1, ...) INDIRECT_CALL_2(f, f2, f1, __VA_ARGS__) f 26 net/ipv6/ip6_offload.c #define INDIRECT_CALL_L4(f, f2, f1, ...) INDIRECT_CALL_1(f, f2, __VA_ARGS__) f 3756 net/key/af_key.c static int pfkey_seq_show(struct seq_file *f, void *v) f 3761 net/key/af_key.c seq_printf(f ,"sk RefCnt Rmem Wmem User Inode\n"); f 3763 net/key/af_key.c seq_printf(f, "%pK %-6d %-6u %-6u %-6u %-6lu\n", f 3768 net/key/af_key.c from_kuid_munged(seq_user_ns(f), sock_i_uid(s)), f 3774 net/key/af_key.c static void *pfkey_seq_start(struct seq_file *f, loff_t *ppos) f 3777 net/key/af_key.c struct net *net = seq_file_net(f); f 3784 net/key/af_key.c static void *pfkey_seq_next(struct seq_file *f, void *v, loff_t *ppos) f 3786 net/key/af_key.c struct net *net = seq_file_net(f); f 3792 net/key/af_key.c static void pfkey_seq_stop(struct seq_file *f, void *v) f 867 net/mac80211/debugfs_sta.c #define PRINT_NSS_SUPP(f, n) \ f 870 net/mac80211/debugfs_sta.c u16 v = le16_to_cpu(nss->f); \ f 583 net/mac80211/rx.c #define HE_PREP(f, val) le16_encode_bits(val, IEEE80211_RADIOTAP_HE_##f) f 446 net/mac80211/status.c #define HE_PREP(f, val) le16_encode_bits(val, IEEE80211_RADIOTAP_HE_##f) f 189 net/netfilter/ipset/ip_set_core.c #define family_name(f) ((f) == NFPROTO_IPV4 ? "inet" : \ f 190 net/netfilter/ipset/ip_set_core.c (f) == NFPROTO_IPV6 ? "inet6" : "any") f 1345 net/netfilter/ipset/ip_set_core.c u32 f = ip_set_get_h32(cda[IPSET_ATTR_FLAGS]); f 1347 net/netfilter/ipset/ip_set_core.c dump_type |= (f << 16); f 376 net/netfilter/ipset/ip_set_list_set.c u32 f = ip_set_get_h32(tb[IPSET_ATTR_CADT_FLAGS]); f 378 net/netfilter/ipset/ip_set_list_set.c e.before = f & IPSET_FLAG_BEFORE; f 84 net/netfilter/ipvs/ip_vs_core.c #define SNAT_CALL(f, ...) \ f 85 net/netfilter/ipvs/ip_vs_core.c INDIRECT_CALL_2(f, tcp_snat_handler, udp_snat_handler, __VA_ARGS__) f 87 net/netfilter/ipvs/ip_vs_core.c #define SNAT_CALL(f, ...) INDIRECT_CALL_1(f, tcp_snat_handler, __VA_ARGS__) f 89 net/netfilter/ipvs/ip_vs_core.c #define SNAT_CALL(f, ...) INDIRECT_CALL_1(f, udp_snat_handler, __VA_ARGS__) f 91 net/netfilter/ipvs/ip_vs_core.c #define SNAT_CALL(f, ...) f(__VA_ARGS__) f 110 net/netfilter/nf_conntrack_h323_asn1.c static int decode_nul(struct bitstr *bs, const struct field_t *f, char *base, int level); f 111 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bool(struct bitstr *bs, const struct field_t *f, char *base, int level); f 112 net/netfilter/nf_conntrack_h323_asn1.c static int decode_oid(struct bitstr *bs, const struct field_t *f, char *base, int level); f 113 net/netfilter/nf_conntrack_h323_asn1.c static int decode_int(struct bitstr *bs, const struct field_t *f, char *base, int level); f 114 net/netfilter/nf_conntrack_h323_asn1.c static int decode_enum(struct bitstr *bs, const struct field_t *f, char *base, int level); f 115 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bitstr(struct bitstr *bs, const struct field_t *f, char *base, int level); f 116 net/netfilter/nf_conntrack_h323_asn1.c static int decode_numstr(struct bitstr *bs, const struct field_t *f, char *base, int level); f 117 net/netfilter/nf_conntrack_h323_asn1.c static int decode_octstr(struct bitstr *bs, const struct field_t *f, char *base, int level); f 118 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bmpstr(struct bitstr *bs, const struct field_t *f, char *base, int level); f 119 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seq(struct bitstr *bs, const struct field_t *f, char *base, int level); f 120 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seqof(struct bitstr *bs, const struct field_t *f, char *base, int level); f 121 net/netfilter/nf_conntrack_h323_asn1.c static int decode_choice(struct bitstr *bs, const struct field_t *f, char *base, int level); f 276 net/netfilter/nf_conntrack_h323_asn1.c static int decode_nul(struct bitstr *bs, const struct field_t *f, f 279 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 284 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bool(struct bitstr *bs, const struct field_t *f, f 287 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 295 net/netfilter/nf_conntrack_h323_asn1.c static int decode_oid(struct bitstr *bs, const struct field_t *f, f 300 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 314 net/netfilter/nf_conntrack_h323_asn1.c static int decode_int(struct bitstr *bs, const struct field_t *f, f 319 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s", level * TAB_SIZE, " ", f->name); f 321 net/netfilter/nf_conntrack_h323_asn1.c switch (f->sz) { f 335 net/netfilter/nf_conntrack_h323_asn1.c if (base && (f->attr & DECODE)) { /* timeToLive */ f 336 net/netfilter/nf_conntrack_h323_asn1.c unsigned int v = get_uint(bs, len) + f->lb; f 338 net/netfilter/nf_conntrack_h323_asn1.c *((unsigned int *)(base + f->offset)) = v; f 350 net/netfilter/nf_conntrack_h323_asn1.c INC_BITS(bs, f->sz); f 361 net/netfilter/nf_conntrack_h323_asn1.c static int decode_enum(struct bitstr *bs, const struct field_t *f, f 364 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 366 net/netfilter/nf_conntrack_h323_asn1.c if ((f->attr & EXT) && get_bit(bs)) { f 369 net/netfilter/nf_conntrack_h323_asn1.c INC_BITS(bs, f->sz); f 377 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bitstr(struct bitstr *bs, const struct field_t *f, f 382 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 385 net/netfilter/nf_conntrack_h323_asn1.c switch (f->sz) { f 387 net/netfilter/nf_conntrack_h323_asn1.c len = f->lb; f 393 net/netfilter/nf_conntrack_h323_asn1.c len += (*bs->cur++) + f->lb; f 413 net/netfilter/nf_conntrack_h323_asn1.c static int decode_numstr(struct bitstr *bs, const struct field_t *f, f 418 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 421 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 423 net/netfilter/nf_conntrack_h323_asn1.c len = get_bits(bs, f->sz) + f->lb; f 433 net/netfilter/nf_conntrack_h323_asn1.c static int decode_octstr(struct bitstr *bs, const struct field_t *f, f 438 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s", level * TAB_SIZE, " ", f->name); f 440 net/netfilter/nf_conntrack_h323_asn1.c switch (f->sz) { f 442 net/netfilter/nf_conntrack_h323_asn1.c if (f->lb > 2) { f 444 net/netfilter/nf_conntrack_h323_asn1.c if (base && (f->attr & DECODE)) { f 446 net/netfilter/nf_conntrack_h323_asn1.c IFTHEN(f->lb == 4, f 451 net/netfilter/nf_conntrack_h323_asn1.c *((unsigned int *)(base + f->offset)) = f 455 net/netfilter/nf_conntrack_h323_asn1.c len = f->lb; f 461 net/netfilter/nf_conntrack_h323_asn1.c len = (*bs->cur++) + f->lb; f 467 net/netfilter/nf_conntrack_h323_asn1.c len = get_len(bs) + f->lb; f 470 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 472 net/netfilter/nf_conntrack_h323_asn1.c len = get_bits(bs, f->sz) + f->lb; f 486 net/netfilter/nf_conntrack_h323_asn1.c static int decode_bmpstr(struct bitstr *bs, const struct field_t *f, f 491 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 493 net/netfilter/nf_conntrack_h323_asn1.c switch (f->sz) { f 498 net/netfilter/nf_conntrack_h323_asn1.c len = (*bs->cur++) + f->lb; f 501 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 503 net/netfilter/nf_conntrack_h323_asn1.c len = get_bits(bs, f->sz) + f->lb; f 515 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seq(struct bitstr *bs, const struct field_t *f, f 523 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 526 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; f 531 net/netfilter/nf_conntrack_h323_asn1.c ext = (f->attr & EXT) ? get_bit(bs) : 0; f 534 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 536 net/netfilter/nf_conntrack_h323_asn1.c bmp = get_bitmap(bs, f->sz); f 541 net/netfilter/nf_conntrack_h323_asn1.c for (i = opt = 0, son = f->fields; i < f->lb; i++, son++) { f 593 net/netfilter/nf_conntrack_h323_asn1.c bmp |= bmp2 >> f->sz; f 601 net/netfilter/nf_conntrack_h323_asn1.c if (i >= f->ub) { /* Newer Version? */ f 644 net/netfilter/nf_conntrack_h323_asn1.c static int decode_seqof(struct bitstr *bs, const struct field_t *f, f 652 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 655 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; f 658 net/netfilter/nf_conntrack_h323_asn1.c switch (f->sz) { f 680 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 682 net/netfilter/nf_conntrack_h323_asn1.c count = get_bits(bs, f->sz); f 685 net/netfilter/nf_conntrack_h323_asn1.c count += f->lb; f 689 net/netfilter/nf_conntrack_h323_asn1.c effective_count = count > f->ub ? f->ub : count; f 695 net/netfilter/nf_conntrack_h323_asn1.c son = f->fields; f 740 net/netfilter/nf_conntrack_h323_asn1.c static int decode_choice(struct bitstr *bs, const struct field_t *f, f 748 net/netfilter/nf_conntrack_h323_asn1.c PRINT("%*.s%s\n", level * TAB_SIZE, " ", f->name); f 751 net/netfilter/nf_conntrack_h323_asn1.c base = (base && (f->attr & DECODE)) ? base + f->offset : NULL; f 756 net/netfilter/nf_conntrack_h323_asn1.c if ((f->attr & EXT) && get_bit(bs)) { f 760 net/netfilter/nf_conntrack_h323_asn1.c type = get_bits(bs, 7) + f->lb; f 763 net/netfilter/nf_conntrack_h323_asn1.c if (nf_h323_error_boundary(bs, 0, f->sz)) f 765 net/netfilter/nf_conntrack_h323_asn1.c type = get_bits(bs, f->sz); f 766 net/netfilter/nf_conntrack_h323_asn1.c if (type >= f->lb) f 775 net/netfilter/nf_conntrack_h323_asn1.c if (type >= f->ub) { /* Newer version? */ f 787 net/netfilter/nf_conntrack_h323_asn1.c son = &f->fields[type]; f 276 net/netfilter/nf_log.c __printf(2, 3) int nf_log_buf_add(struct nf_log_buf *m, const char *f, ...) f 282 net/netfilter/nf_log.c va_start(args, f); f 283 net/netfilter/nf_log.c len = vsnprintf(m->buf + m->count, S_SIZE - m->count, f, args); f 65 net/netfilter/nfnetlink_osf.c const struct nf_osf_user_finger *f, f 75 net/netfilter/nfnetlink_osf.c if (ctx->totlen != f->ss || !nf_osf_ttl(skb, ttl_check, f->ttl)) f 81 net/netfilter/nfnetlink_osf.c if (f->wss.wc >= OSF_WSS_MAX) f 87 net/netfilter/nfnetlink_osf.c for (optnum = 0; optnum < f->opt_num; ++optnum) f 88 net/netfilter/nfnetlink_osf.c foptsize += f->opt[optnum].length; f 95 net/netfilter/nfnetlink_osf.c check_WSS = f->wss.wc; f 97 net/netfilter/nfnetlink_osf.c for (optnum = 0; optnum < f->opt_num; ++optnum) { f 98 net/netfilter/nfnetlink_osf.c if (f->opt[optnum].kind == *ctx->optp) { f 99 net/netfilter/nfnetlink_osf.c __u32 len = f->opt[optnum].length; f 129 net/netfilter/nfnetlink_osf.c if (f->wss.val == 0 || ctx->window == f->wss.val) f 141 net/netfilter/nfnetlink_osf.c if (ctx->window == f->wss.val * mss || f 142 net/netfilter/nfnetlink_osf.c ctx->window == f->wss.val * SMART_MSS_1 || f 143 net/netfilter/nfnetlink_osf.c ctx->window == f->wss.val * SMART_MSS_2) f 147 net/netfilter/nfnetlink_osf.c if (ctx->window == f->wss.val * (mss + 40) || f 148 net/netfilter/nfnetlink_osf.c ctx->window == f->wss.val * (SMART_MSS_1 + 40) || f 149 net/netfilter/nfnetlink_osf.c ctx->window == f->wss.val * (SMART_MSS_2 + 40)) f 153 net/netfilter/nfnetlink_osf.c if ((ctx->window % f->wss.val) == 0) f 201 net/netfilter/nfnetlink_osf.c const struct nf_osf_user_finger *f; f 220 net/netfilter/nfnetlink_osf.c f = &kf->finger; f 222 net/netfilter/nfnetlink_osf.c if (!(info->flags & NF_OSF_LOG) && strcmp(info->genre, f->genre)) f 225 net/netfilter/nfnetlink_osf.c if (!nf_osf_match_one(skb, f, ttl_check, &ctx)) f 236 net/netfilter/nfnetlink_osf.c f->genre, f->version, f->subtype, f 239 net/netfilter/nfnetlink_osf.c f->ttl - ip->ttl); f 264 net/netfilter/nfnetlink_osf.c const struct nf_osf_user_finger *f; f 278 net/netfilter/nfnetlink_osf.c f = &kf->finger; f 279 net/netfilter/nfnetlink_osf.c if (!nf_osf_match_one(skb, f, ttl_check, &ctx)) f 282 net/netfilter/nfnetlink_osf.c data->genre = f->genre; f 283 net/netfilter/nfnetlink_osf.c data->version = f->version; f 300 net/netfilter/nfnetlink_osf.c struct nf_osf_user_finger *f; f 313 net/netfilter/nfnetlink_osf.c f = nla_data(osf_attrs[OSF_ATTR_FINGER]); f 319 net/netfilter/nfnetlink_osf.c memcpy(&kf->finger, f, sizeof(struct nf_osf_user_finger)); f 321 net/netfilter/nfnetlink_osf.c list_for_each_entry(sf, &nf_osf_fingers[!!f->df], finger_entry) { f 322 net/netfilter/nfnetlink_osf.c if (memcmp(&sf->finger, f, sizeof(struct nf_osf_user_finger))) f 337 net/netfilter/nfnetlink_osf.c list_add_tail_rcu(&kf->finger_entry, &nf_osf_fingers[!!f->df]); f 348 net/netfilter/nfnetlink_osf.c struct nf_osf_user_finger *f; f 358 net/netfilter/nfnetlink_osf.c f = nla_data(osf_attrs[OSF_ATTR_FINGER]); f 360 net/netfilter/nfnetlink_osf.c list_for_each_entry(sf, &nf_osf_fingers[!!f->df], finger_entry) { f 361 net/netfilter/nfnetlink_osf.c if (memcmp(&sf->finger, f, sizeof(struct nf_osf_user_finger))) f 418 net/netfilter/nfnetlink_osf.c struct nf_osf_finger *f; f 425 net/netfilter/nfnetlink_osf.c list_for_each_entry_rcu(f, &nf_osf_fingers[i], finger_entry) { f 426 net/netfilter/nfnetlink_osf.c list_del_rcu(&f->finger_entry); f 427 net/netfilter/nfnetlink_osf.c kfree_rcu(f, rcu_head); f 38 net/netfilter/xt_set.c #define ADT_OPT(n, f, d, fs, cfs, t, p, b, po, bo) \ f 40 net/netfilter/xt_set.c .family = f, \ f 994 net/netlink/genetlink.c struct genl_family *f; f 1000 net/netlink/genetlink.c idr_for_each_entry(&genl_fam_idr, f, id) { f 1001 net/netlink/genetlink.c if (group >= f->mcgrp_offset && f 1002 net/netlink/genetlink.c group < f->mcgrp_offset + f->n_mcgrps) { f 1003 net/netlink/genetlink.c int fam_grp = group - f->mcgrp_offset; f 1005 net/netlink/genetlink.c if (!f->netnsok && net != &init_net) f 1007 net/netlink/genetlink.c else if (f->mcast_bind) f 1008 net/netlink/genetlink.c err = f->mcast_bind(net, fam_grp); f 1021 net/netlink/genetlink.c struct genl_family *f; f 1026 net/netlink/genetlink.c idr_for_each_entry(&genl_fam_idr, f, id) { f 1027 net/netlink/genetlink.c if (group >= f->mcgrp_offset && f 1028 net/netlink/genetlink.c group < f->mcgrp_offset + f->n_mcgrps) { f 1029 net/netlink/genetlink.c int fam_grp = group - f->mcgrp_offset; f 1031 net/netlink/genetlink.c if (f->mcast_unbind) f 1032 net/netlink/genetlink.c f->mcast_unbind(net, fam_grp); f 1317 net/packet/af_packet.c static unsigned int fanout_demux_hash(struct packet_fanout *f, f 1324 net/packet/af_packet.c static unsigned int fanout_demux_lb(struct packet_fanout *f, f 1328 net/packet/af_packet.c unsigned int val = atomic_inc_return(&f->rr_cur); f 1333 net/packet/af_packet.c static unsigned int fanout_demux_cpu(struct packet_fanout *f, f 1340 net/packet/af_packet.c static unsigned int fanout_demux_rnd(struct packet_fanout *f, f 1347 net/packet/af_packet.c static unsigned int fanout_demux_rollover(struct packet_fanout *f, f 1355 net/packet/af_packet.c po = pkt_sk(f->arr[idx]); f 1367 net/packet/af_packet.c po_next = pkt_sk(f->arr[i]); f 1386 net/packet/af_packet.c static unsigned int fanout_demux_qm(struct packet_fanout *f, f 1393 net/packet/af_packet.c static unsigned int fanout_demux_bpf(struct packet_fanout *f, f 1401 net/packet/af_packet.c prog = rcu_dereference(f->bpf_prog); f 1409 net/packet/af_packet.c static bool fanout_has_flag(struct packet_fanout *f, u16 flag) f 1411 net/packet/af_packet.c return f->flags & (flag >> 8); f 1417 net/packet/af_packet.c struct packet_fanout *f = pt->af_packet_priv; f 1418 net/packet/af_packet.c unsigned int num = READ_ONCE(f->num_members); f 1419 net/packet/af_packet.c struct net *net = read_pnet(&f->net); f 1428 net/packet/af_packet.c if (fanout_has_flag(f, PACKET_FANOUT_FLAG_DEFRAG)) { f 1433 net/packet/af_packet.c switch (f->type) { f 1436 net/packet/af_packet.c idx = fanout_demux_hash(f, skb, num); f 1439 net/packet/af_packet.c idx = fanout_demux_lb(f, skb, num); f 1442 net/packet/af_packet.c idx = fanout_demux_cpu(f, skb, num); f 1445 net/packet/af_packet.c idx = fanout_demux_rnd(f, skb, num); f 1448 net/packet/af_packet.c idx = fanout_demux_qm(f, skb, num); f 1451 net/packet/af_packet.c idx = fanout_demux_rollover(f, skb, 0, false, num); f 1455 net/packet/af_packet.c idx = fanout_demux_bpf(f, skb, num); f 1459 net/packet/af_packet.c if (fanout_has_flag(f, PACKET_FANOUT_FLAG_ROLLOVER)) f 1460 net/packet/af_packet.c idx = fanout_demux_rollover(f, skb, idx, true, num); f 1462 net/packet/af_packet.c po = pkt_sk(f->arr[idx]); f 1473 net/packet/af_packet.c struct packet_fanout *f = po->fanout; f 1475 net/packet/af_packet.c spin_lock(&f->lock); f 1476 net/packet/af_packet.c f->arr[f->num_members] = sk; f 1478 net/packet/af_packet.c f->num_members++; f 1479 net/packet/af_packet.c if (f->num_members == 1) f 1480 net/packet/af_packet.c dev_add_pack(&f->prot_hook); f 1481 net/packet/af_packet.c spin_unlock(&f->lock); f 1486 net/packet/af_packet.c struct packet_fanout *f = po->fanout; f 1489 net/packet/af_packet.c spin_lock(&f->lock); f 1490 net/packet/af_packet.c for (i = 0; i < f->num_members; i++) { f 1491 net/packet/af_packet.c if (f->arr[i] == sk) f 1494 net/packet/af_packet.c BUG_ON(i >= f->num_members); f 1495 net/packet/af_packet.c f->arr[i] = f->arr[f->num_members - 1]; f 1496 net/packet/af_packet.c f->num_members--; f 1497 net/packet/af_packet.c if (f->num_members == 0) f 1498 net/packet/af_packet.c __dev_remove_pack(&f->prot_hook); f 1499 net/packet/af_packet.c spin_unlock(&f->lock); f 1510 net/packet/af_packet.c static void fanout_init_data(struct packet_fanout *f) f 1512 net/packet/af_packet.c switch (f->type) { f 1514 net/packet/af_packet.c atomic_set(&f->rr_cur, 0); f 1518 net/packet/af_packet.c RCU_INIT_POINTER(f->bpf_prog, NULL); f 1523 net/packet/af_packet.c static void __fanout_set_data_bpf(struct packet_fanout *f, struct bpf_prog *new) f 1527 net/packet/af_packet.c spin_lock(&f->lock); f 1528 net/packet/af_packet.c old = rcu_dereference_protected(f->bpf_prog, lockdep_is_held(&f->lock)); f 1529 net/packet/af_packet.c rcu_assign_pointer(f->bpf_prog, new); f 1530 net/packet/af_packet.c spin_unlock(&f->lock); f 1594 net/packet/af_packet.c static void fanout_release_data(struct packet_fanout *f) f 1596 net/packet/af_packet.c switch (f->type) { f 1599 net/packet/af_packet.c __fanout_set_data_bpf(f, NULL); f 1605 net/packet/af_packet.c struct packet_fanout *f; f 1607 net/packet/af_packet.c list_for_each_entry(f, &fanout_list, list) { f 1608 net/packet/af_packet.c if (f->id == candidate_id && f 1609 net/packet/af_packet.c read_pnet(&f->net) == sock_net(sk)) { f 1637 net/packet/af_packet.c struct packet_fanout *f, *match; f 1689 net/packet/af_packet.c list_for_each_entry(f, &fanout_list, list) { f 1690 net/packet/af_packet.c if (f->id == id && f 1691 net/packet/af_packet.c read_pnet(&f->net) == sock_net(sk)) { f 1692 net/packet/af_packet.c match = f; f 1758 net/packet/af_packet.c struct packet_fanout *f; f 1761 net/packet/af_packet.c f = po->fanout; f 1762 net/packet/af_packet.c if (f) { f 1765 net/packet/af_packet.c if (refcount_dec_and_test(&f->sk_ref)) f 1766 net/packet/af_packet.c list_del(&f->list); f 1768 net/packet/af_packet.c f = NULL; f 1772 net/packet/af_packet.c return f; f 3015 net/packet/af_packet.c struct packet_fanout *f; f 3057 net/packet/af_packet.c f = fanout_release(sk); f 3062 net/packet/af_packet.c if (f) { f 3063 net/packet/af_packet.c fanout_release_data(f); f 3064 net/packet/af_packet.c kfree(f); f 44 net/sched/cls_basic.c struct basic_filter *f; f 46 net/sched/cls_basic.c list_for_each_entry_rcu(f, &head->flist, link) { f 47 net/sched/cls_basic.c __this_cpu_inc(f->pf->rcnt); f 48 net/sched/cls_basic.c if (!tcf_em_tree_match(skb, &f->ematches, NULL)) f 50 net/sched/cls_basic.c __this_cpu_inc(f->pf->rhit); f 51 net/sched/cls_basic.c *res = f->res; f 52 net/sched/cls_basic.c r = tcf_exts_exec(skb, &f->exts, res); f 63 net/sched/cls_basic.c struct basic_filter *f; f 65 net/sched/cls_basic.c list_for_each_entry(f, &head->flist, link) { f 66 net/sched/cls_basic.c if (f->handle == handle) { f 67 net/sched/cls_basic.c return f; f 87 net/sched/cls_basic.c static void __basic_delete_filter(struct basic_filter *f) f 89 net/sched/cls_basic.c tcf_exts_destroy(&f->exts); f 90 net/sched/cls_basic.c tcf_em_tree_destroy(&f->ematches); f 91 net/sched/cls_basic.c tcf_exts_put_net(&f->exts); f 92 net/sched/cls_basic.c free_percpu(f->pf); f 93 net/sched/cls_basic.c kfree(f); f 98 net/sched/cls_basic.c struct basic_filter *f = container_of(to_rcu_work(work), f 102 net/sched/cls_basic.c __basic_delete_filter(f); f 110 net/sched/cls_basic.c struct basic_filter *f, *n; f 112 net/sched/cls_basic.c list_for_each_entry_safe(f, n, &head->flist, link) { f 113 net/sched/cls_basic.c list_del_rcu(&f->link); f 114 net/sched/cls_basic.c tcf_unbind_filter(tp, &f->res); f 115 net/sched/cls_basic.c idr_remove(&head->handle_idr, f->handle); f 116 net/sched/cls_basic.c if (tcf_exts_get_net(&f->exts)) f 117 net/sched/cls_basic.c tcf_queue_work(&f->rwork, basic_delete_filter_work); f 119 net/sched/cls_basic.c __basic_delete_filter(f); f 129 net/sched/cls_basic.c struct basic_filter *f = arg; f 131 net/sched/cls_basic.c list_del_rcu(&f->link); f 132 net/sched/cls_basic.c tcf_unbind_filter(tp, &f->res); f 133 net/sched/cls_basic.c idr_remove(&head->handle_idr, f->handle); f 134 net/sched/cls_basic.c tcf_exts_get_net(&f->exts); f 135 net/sched/cls_basic.c tcf_queue_work(&f->rwork, basic_delete_filter_work); f 146 net/sched/cls_basic.c struct basic_filter *f, unsigned long base, f 153 net/sched/cls_basic.c err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, true, extack); f 157 net/sched/cls_basic.c err = tcf_em_tree_validate(tp, tb[TCA_BASIC_EMATCHES], &f->ematches); f 162 net/sched/cls_basic.c f->res.classid = nla_get_u32(tb[TCA_BASIC_CLASSID]); f 163 net/sched/cls_basic.c tcf_bind_filter(tp, &f->res, base); f 166 net/sched/cls_basic.c f->tp = tp; f 251 net/sched/cls_basic.c struct basic_filter *f; f 253 net/sched/cls_basic.c list_for_each_entry(f, &head->flist, link) { f 257 net/sched/cls_basic.c if (arg->fn(tp, f, arg) < 0) { f 269 net/sched/cls_basic.c struct basic_filter *f = fh; f 271 net/sched/cls_basic.c if (f && f->res.classid == classid) { f 273 net/sched/cls_basic.c __tcf_bind_filter(q, &f->res, base); f 275 net/sched/cls_basic.c __tcf_unbind_filter(q, &f->res); f 283 net/sched/cls_basic.c struct basic_filter *f = fh; f 287 net/sched/cls_basic.c if (f == NULL) f 290 net/sched/cls_basic.c t->tcm_handle = f->handle; f 296 net/sched/cls_basic.c if (f->res.classid && f 297 net/sched/cls_basic.c nla_put_u32(skb, TCA_BASIC_CLASSID, f->res.classid)) f 301 net/sched/cls_basic.c struct tc_basic_pcnt *pf = per_cpu_ptr(f->pf, cpu); f 312 net/sched/cls_basic.c if (tcf_exts_dump(skb, &f->exts) < 0 || f 313 net/sched/cls_basic.c tcf_em_tree_dump(skb, &f->ematches, TCA_BASIC_EMATCHES) < 0) f 318 net/sched/cls_basic.c if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 299 net/sched/cls_flow.c struct flow_filter *f; f 305 net/sched/cls_flow.c list_for_each_entry_rcu(f, &head->filters, list) { f 309 net/sched/cls_flow.c if (!tcf_em_tree_match(skb, &f->ematches, NULL)) f 312 net/sched/cls_flow.c keymask = f->keymask; f 316 net/sched/cls_flow.c for (n = 0; n < f->nkeys; n++) { f 322 net/sched/cls_flow.c if (f->mode == FLOW_MODE_HASH) f 323 net/sched/cls_flow.c classid = jhash2(keys, f->nkeys, f->hashrnd); f 326 net/sched/cls_flow.c classid = (classid & f->mask) ^ f->xor; f 327 net/sched/cls_flow.c classid = (classid >> f->rshift) + f->addend; f 330 net/sched/cls_flow.c if (f->divisor) f 331 net/sched/cls_flow.c classid %= f->divisor; f 334 net/sched/cls_flow.c res->classid = TC_H_MAKE(f->baseclass, f->baseclass + classid); f 336 net/sched/cls_flow.c r = tcf_exts_exec(skb, &f->exts, res); f 346 net/sched/cls_flow.c struct flow_filter *f = from_timer(f, t, perturb_timer); f 348 net/sched/cls_flow.c get_random_bytes(&f->hashrnd, 4); f 349 net/sched/cls_flow.c if (f->perturb_period) f 350 net/sched/cls_flow.c mod_timer(&f->perturb_timer, jiffies + f->perturb_period); f 368 net/sched/cls_flow.c static void __flow_destroy_filter(struct flow_filter *f) f 370 net/sched/cls_flow.c del_timer_sync(&f->perturb_timer); f 371 net/sched/cls_flow.c tcf_exts_destroy(&f->exts); f 372 net/sched/cls_flow.c tcf_em_tree_destroy(&f->ematches); f 373 net/sched/cls_flow.c tcf_exts_put_net(&f->exts); f 374 net/sched/cls_flow.c kfree(f); f 379 net/sched/cls_flow.c struct flow_filter *f = container_of(to_rcu_work(work), f 383 net/sched/cls_flow.c __flow_destroy_filter(f); f 570 net/sched/cls_flow.c struct flow_filter *f = arg; f 572 net/sched/cls_flow.c list_del_rcu(&f->list); f 573 net/sched/cls_flow.c tcf_exts_get_net(&f->exts); f 574 net/sched/cls_flow.c tcf_queue_work(&f->rwork, flow_destroy_filter_work); f 595 net/sched/cls_flow.c struct flow_filter *f, *next; f 597 net/sched/cls_flow.c list_for_each_entry_safe(f, next, &head->filters, list) { f 598 net/sched/cls_flow.c list_del_rcu(&f->list); f 599 net/sched/cls_flow.c if (tcf_exts_get_net(&f->exts)) f 600 net/sched/cls_flow.c tcf_queue_work(&f->rwork, flow_destroy_filter_work); f 602 net/sched/cls_flow.c __flow_destroy_filter(f); f 610 net/sched/cls_flow.c struct flow_filter *f; f 612 net/sched/cls_flow.c list_for_each_entry(f, &head->filters, list) f 613 net/sched/cls_flow.c if (f->handle == handle) f 614 net/sched/cls_flow.c return f; f 621 net/sched/cls_flow.c struct flow_filter *f = fh; f 624 net/sched/cls_flow.c if (f == NULL) f 627 net/sched/cls_flow.c t->tcm_handle = f->handle; f 633 net/sched/cls_flow.c if (nla_put_u32(skb, TCA_FLOW_KEYS, f->keymask) || f 634 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_MODE, f->mode)) f 637 net/sched/cls_flow.c if (f->mask != ~0 || f->xor != 0) { f 638 net/sched/cls_flow.c if (nla_put_u32(skb, TCA_FLOW_MASK, f->mask) || f 639 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_XOR, f->xor)) f 642 net/sched/cls_flow.c if (f->rshift && f 643 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_RSHIFT, f->rshift)) f 645 net/sched/cls_flow.c if (f->addend && f 646 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_ADDEND, f->addend)) f 649 net/sched/cls_flow.c if (f->divisor && f 650 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_DIVISOR, f->divisor)) f 652 net/sched/cls_flow.c if (f->baseclass && f 653 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_BASECLASS, f->baseclass)) f 656 net/sched/cls_flow.c if (f->perturb_period && f 657 net/sched/cls_flow.c nla_put_u32(skb, TCA_FLOW_PERTURB, f->perturb_period / HZ)) f 660 net/sched/cls_flow.c if (tcf_exts_dump(skb, &f->exts) < 0) f 663 net/sched/cls_flow.c if (f->ematches.hdr.nmatches && f 664 net/sched/cls_flow.c tcf_em_tree_dump(skb, &f->ematches, TCA_FLOW_EMATCHES) < 0) f 669 net/sched/cls_flow.c if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 683 net/sched/cls_flow.c struct flow_filter *f; f 685 net/sched/cls_flow.c list_for_each_entry(f, &head->filters, list) { f 688 net/sched/cls_flow.c if (arg->fn(tp, f, arg) < 0) { f 257 net/sched/cls_flower.c struct cls_fl_filter *filter, *f; f 266 net/sched/cls_flower.c f = __fl_lookup(mask, mkey); f 267 net/sched/cls_flower.c if (f) f 268 net/sched/cls_flower.c return f; f 303 net/sched/cls_flower.c struct cls_fl_filter *f; f 322 net/sched/cls_flower.c f = fl_lookup(mask, &skb_mkey, &skb_key); f 323 net/sched/cls_flower.c if (f && !tc_skip_sw(f->flags)) { f 324 net/sched/cls_flower.c *res = f->res; f 325 net/sched/cls_flower.c return tcf_exts_exec(skb, &f->exts, res); f 400 net/sched/cls_flower.c static void __fl_destroy_filter(struct cls_fl_filter *f) f 402 net/sched/cls_flower.c tcf_exts_destroy(&f->exts); f 403 net/sched/cls_flower.c tcf_exts_put_net(&f->exts); f 404 net/sched/cls_flower.c kfree(f); f 409 net/sched/cls_flower.c struct cls_fl_filter *f = container_of(to_rcu_work(work), f 412 net/sched/cls_flower.c __fl_destroy_filter(f); f 415 net/sched/cls_flower.c static void fl_hw_destroy_filter(struct tcf_proto *tp, struct cls_fl_filter *f, f 421 net/sched/cls_flower.c tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, extack); f 423 net/sched/cls_flower.c cls_flower.cookie = (unsigned long) f; f 426 net/sched/cls_flower.c &f->flags, &f->in_hw_count, rtnl_held); f 431 net/sched/cls_flower.c struct cls_fl_filter *f, bool rtnl_held, f 436 net/sched/cls_flower.c bool skip_sw = tc_skip_sw(f->flags); f 439 net/sched/cls_flower.c cls_flower.rule = flow_rule_alloc(tcf_exts_num_actions(&f->exts)); f 443 net/sched/cls_flower.c tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, extack); f 445 net/sched/cls_flower.c cls_flower.cookie = (unsigned long) f; f 446 net/sched/cls_flower.c cls_flower.rule->match.dissector = &f->mask->dissector; f 447 net/sched/cls_flower.c cls_flower.rule->match.mask = &f->mask->key; f 448 net/sched/cls_flower.c cls_flower.rule->match.key = &f->mkey; f 449 net/sched/cls_flower.c cls_flower.classid = f->res.classid; f 451 net/sched/cls_flower.c err = tc_setup_flow_action(&cls_flower.rule->action, &f->exts, f 463 net/sched/cls_flower.c skip_sw, &f->flags, &f->in_hw_count, rtnl_held); f 468 net/sched/cls_flower.c fl_hw_destroy_filter(tp, f, rtnl_held, NULL); f 472 net/sched/cls_flower.c if (skip_sw && !(f->flags & TCA_CLS_FLAGS_IN_HW)) f 478 net/sched/cls_flower.c static void fl_hw_update_stats(struct tcf_proto *tp, struct cls_fl_filter *f, f 484 net/sched/cls_flower.c tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, NULL); f 486 net/sched/cls_flower.c cls_flower.cookie = (unsigned long) f; f 487 net/sched/cls_flower.c cls_flower.classid = f->res.classid; f 492 net/sched/cls_flower.c tcf_exts_stats_update(&f->exts, cls_flower.stats.bytes, f 497 net/sched/cls_flower.c static void __fl_put(struct cls_fl_filter *f) f 499 net/sched/cls_flower.c if (!refcount_dec_and_test(&f->refcnt)) f 502 net/sched/cls_flower.c if (tcf_exts_get_net(&f->exts)) f 503 net/sched/cls_flower.c tcf_queue_work(&f->rwork, fl_destroy_filter_work); f 505 net/sched/cls_flower.c __fl_destroy_filter(f); f 510 net/sched/cls_flower.c struct cls_fl_filter *f; f 513 net/sched/cls_flower.c f = idr_find(&head->handle_idr, handle); f 514 net/sched/cls_flower.c if (f && !refcount_inc_not_zero(&f->refcnt)) f 515 net/sched/cls_flower.c f = NULL; f 518 net/sched/cls_flower.c return f; f 521 net/sched/cls_flower.c static int __fl_delete(struct tcf_proto *tp, struct cls_fl_filter *f, f 530 net/sched/cls_flower.c if (f->deleted) { f 535 net/sched/cls_flower.c f->deleted = true; f 536 net/sched/cls_flower.c rhashtable_remove_fast(&f->mask->ht, &f->ht_node, f 537 net/sched/cls_flower.c f->mask->filter_ht_params); f 538 net/sched/cls_flower.c idr_remove(&head->handle_idr, f->handle); f 539 net/sched/cls_flower.c list_del_rcu(&f->list); f 542 net/sched/cls_flower.c *last = fl_mask_put(head, f->mask); f 543 net/sched/cls_flower.c if (!tc_skip_hw(f->flags)) f 544 net/sched/cls_flower.c fl_hw_destroy_filter(tp, f, rtnl_held, extack); f 545 net/sched/cls_flower.c tcf_unbind_filter(tp, &f->res); f 546 net/sched/cls_flower.c __fl_put(f); f 567 net/sched/cls_flower.c struct cls_fl_filter *f, *next; f 571 net/sched/cls_flower.c list_for_each_entry_safe(f, next, &mask->filters, list) { f 572 net/sched/cls_flower.c __fl_delete(tp, f, &last, rtnl_held, extack); f 585 net/sched/cls_flower.c struct cls_fl_filter *f = arg; f 587 net/sched/cls_flower.c __fl_put(f); f 1469 net/sched/cls_flower.c struct cls_fl_filter *f, struct fl_flow_mask *mask, f 1477 net/sched/cls_flower.c err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, rtnl_held, f 1483 net/sched/cls_flower.c f->res.classid = nla_get_u32(tb[TCA_FLOWER_CLASSID]); f 1486 net/sched/cls_flower.c tcf_bind_filter(tp, &f->res, base); f 1491 net/sched/cls_flower.c err = fl_set_key(net, tb, &f->key, &mask->key, extack); f 1496 net/sched/cls_flower.c fl_set_masked_key(&f->mkey, &f->key, mask); f 1724 net/sched/cls_flower.c struct cls_fl_filter *f = arg; f 1728 net/sched/cls_flower.c err = __fl_delete(tp, f, &last_on_mask, rtnl_held, extack); f 1730 net/sched/cls_flower.c __fl_put(f); f 1740 net/sched/cls_flower.c struct cls_fl_filter *f; f 1744 net/sched/cls_flower.c idr_for_each_entry_continue_ul(&head->handle_idr, f, tmp, id) { f 1746 net/sched/cls_flower.c if (!refcount_inc_not_zero(&f->refcnt)) f 1748 net/sched/cls_flower.c if (arg->fn(tp, f, arg) < 0) { f 1749 net/sched/cls_flower.c __fl_put(f); f 1753 net/sched/cls_flower.c __fl_put(f); f 1760 net/sched/cls_flower.c fl_get_next_hw_filter(struct tcf_proto *tp, struct cls_fl_filter *f, bool add) f 1770 net/sched/cls_flower.c if (!f) f 1771 net/sched/cls_flower.c f = list_entry(&head->hw_filters, struct cls_fl_filter, f 1773 net/sched/cls_flower.c list_for_each_entry_continue(f, &head->hw_filters, hw_list) { f 1774 net/sched/cls_flower.c if (!(add && f->deleted) && refcount_inc_not_zero(&f->refcnt)) { f 1776 net/sched/cls_flower.c return f; f 1789 net/sched/cls_flower.c struct cls_fl_filter *f = NULL; f 1798 net/sched/cls_flower.c while ((f = fl_get_next_hw_filter(tp, f, add))) { f 1800 net/sched/cls_flower.c flow_rule_alloc(tcf_exts_num_actions(&f->exts)); f 1802 net/sched/cls_flower.c __fl_put(f); f 1806 net/sched/cls_flower.c tc_cls_common_offload_init(&cls_flower.common, tp, f->flags, f 1810 net/sched/cls_flower.c cls_flower.cookie = (unsigned long)f; f 1811 net/sched/cls_flower.c cls_flower.rule->match.dissector = &f->mask->dissector; f 1812 net/sched/cls_flower.c cls_flower.rule->match.mask = &f->mask->key; f 1813 net/sched/cls_flower.c cls_flower.rule->match.key = &f->mkey; f 1815 net/sched/cls_flower.c err = tc_setup_flow_action(&cls_flower.rule->action, &f->exts, f 1819 net/sched/cls_flower.c if (tc_skip_sw(f->flags)) { f 1821 net/sched/cls_flower.c __fl_put(f); f 1827 net/sched/cls_flower.c cls_flower.classid = f->res.classid; f 1831 net/sched/cls_flower.c cb_priv, &f->flags, f 1832 net/sched/cls_flower.c &f->in_hw_count); f 1837 net/sched/cls_flower.c __fl_put(f); f 1841 net/sched/cls_flower.c __fl_put(f); f 1850 net/sched/cls_flower.c struct cls_fl_filter *f = f 1855 net/sched/cls_flower.c list_add(&f->hw_list, &head->hw_filters); f 1862 net/sched/cls_flower.c struct cls_fl_filter *f = f 1866 net/sched/cls_flower.c if (!list_empty(&f->hw_list)) f 1867 net/sched/cls_flower.c list_del_init(&f->hw_list); f 2436 net/sched/cls_flower.c struct cls_fl_filter *f = fh; f 2441 net/sched/cls_flower.c if (!f) f 2444 net/sched/cls_flower.c t->tcm_handle = f->handle; f 2452 net/sched/cls_flower.c if (f->res.classid && f 2453 net/sched/cls_flower.c nla_put_u32(skb, TCA_FLOWER_CLASSID, f->res.classid)) f 2456 net/sched/cls_flower.c key = &f->key; f 2457 net/sched/cls_flower.c mask = &f->mask->key; f 2458 net/sched/cls_flower.c skip_hw = tc_skip_hw(f->flags); f 2463 net/sched/cls_flower.c if (f->flags && nla_put_u32(skb, TCA_FLOWER_FLAGS, f->flags)) f 2469 net/sched/cls_flower.c fl_hw_update_stats(tp, f, rtnl_held); f 2471 net/sched/cls_flower.c if (nla_put_u32(skb, TCA_FLOWER_IN_HW_COUNT, f->in_hw_count)) f 2474 net/sched/cls_flower.c if (tcf_exts_dump(skb, &f->exts)) f 2479 net/sched/cls_flower.c if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 2519 net/sched/cls_flower.c struct cls_fl_filter *f = fh; f 2521 net/sched/cls_flower.c if (f && f->res.classid == classid) { f 2523 net/sched/cls_flower.c __tcf_bind_filter(q, &f->res, base); f 2525 net/sched/cls_flower.c __tcf_unbind_filter(q, &f->res); f 54 net/sched/cls_fw.c struct fw_filter *f; f 61 net/sched/cls_fw.c for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; f 62 net/sched/cls_fw.c f = rcu_dereference_bh(f->next)) { f 63 net/sched/cls_fw.c if (f->id == id) { f 64 net/sched/cls_fw.c *res = f->res; f 65 net/sched/cls_fw.c if (!tcf_match_indev(skb, f->ifindex)) f 67 net/sched/cls_fw.c r = tcf_exts_exec(skb, &f->exts, res); f 92 net/sched/cls_fw.c struct fw_filter *f; f 97 net/sched/cls_fw.c f = rtnl_dereference(head->ht[fw_hash(handle)]); f 98 net/sched/cls_fw.c for (; f; f = rtnl_dereference(f->next)) { f 99 net/sched/cls_fw.c if (f->id == handle) f 100 net/sched/cls_fw.c return f; f 113 net/sched/cls_fw.c static void __fw_delete_filter(struct fw_filter *f) f 115 net/sched/cls_fw.c tcf_exts_destroy(&f->exts); f 116 net/sched/cls_fw.c tcf_exts_put_net(&f->exts); f 117 net/sched/cls_fw.c kfree(f); f 122 net/sched/cls_fw.c struct fw_filter *f = container_of(to_rcu_work(work), f 126 net/sched/cls_fw.c __fw_delete_filter(f); f 134 net/sched/cls_fw.c struct fw_filter *f; f 141 net/sched/cls_fw.c while ((f = rtnl_dereference(head->ht[h])) != NULL) { f 143 net/sched/cls_fw.c rtnl_dereference(f->next)); f 144 net/sched/cls_fw.c tcf_unbind_filter(tp, &f->res); f 145 net/sched/cls_fw.c if (tcf_exts_get_net(&f->exts)) f 146 net/sched/cls_fw.c tcf_queue_work(&f->rwork, fw_delete_filter_work); f 148 net/sched/cls_fw.c __fw_delete_filter(f); f 158 net/sched/cls_fw.c struct fw_filter *f = arg; f 164 net/sched/cls_fw.c if (head == NULL || f == NULL) f 167 net/sched/cls_fw.c fp = &head->ht[fw_hash(f->id)]; f 171 net/sched/cls_fw.c if (pfp == f) { f 172 net/sched/cls_fw.c RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); f 173 net/sched/cls_fw.c tcf_unbind_filter(tp, &f->res); f 174 net/sched/cls_fw.c tcf_exts_get_net(&f->exts); f 175 net/sched/cls_fw.c tcf_queue_work(&f->rwork, fw_delete_filter_work); f 200 net/sched/cls_fw.c struct fw_filter *f, struct nlattr **tb, f 208 net/sched/cls_fw.c err = tcf_exts_validate(net, tp, tb, tca[TCA_RATE], &f->exts, ovr, f 214 net/sched/cls_fw.c f->res.classid = nla_get_u32(tb[TCA_FW_CLASSID]); f 215 net/sched/cls_fw.c tcf_bind_filter(tp, &f->res, base); f 223 net/sched/cls_fw.c f->ifindex = ret; f 244 net/sched/cls_fw.c struct fw_filter *f = *arg; f 257 net/sched/cls_fw.c if (f) { f 261 net/sched/cls_fw.c if (f->id != handle && handle) f 268 net/sched/cls_fw.c fnew->id = f->id; f 269 net/sched/cls_fw.c fnew->res = f->res; f 270 net/sched/cls_fw.c fnew->ifindex = f->ifindex; f 271 net/sched/cls_fw.c fnew->tp = f->tp; f 290 net/sched/cls_fw.c if (pfp == f) f 295 net/sched/cls_fw.c tcf_unbind_filter(tp, &f->res); f 296 net/sched/cls_fw.c tcf_exts_get_net(&f->exts); f 297 net/sched/cls_fw.c tcf_queue_work(&f->rwork, fw_delete_filter_work); f 319 net/sched/cls_fw.c f = kzalloc(sizeof(struct fw_filter), GFP_KERNEL); f 320 net/sched/cls_fw.c if (f == NULL) f 323 net/sched/cls_fw.c err = tcf_exts_init(&f->exts, net, TCA_FW_ACT, TCA_FW_POLICE); f 326 net/sched/cls_fw.c f->id = handle; f 327 net/sched/cls_fw.c f->tp = tp; f 329 net/sched/cls_fw.c err = fw_set_parms(net, tp, f, tb, tca, base, ovr, extack); f 333 net/sched/cls_fw.c RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]); f 334 net/sched/cls_fw.c rcu_assign_pointer(head->ht[fw_hash(handle)], f); f 336 net/sched/cls_fw.c *arg = f; f 340 net/sched/cls_fw.c tcf_exts_destroy(&f->exts); f 341 net/sched/cls_fw.c kfree(f); f 358 net/sched/cls_fw.c struct fw_filter *f; f 360 net/sched/cls_fw.c for (f = rtnl_dereference(head->ht[h]); f; f 361 net/sched/cls_fw.c f = rtnl_dereference(f->next)) { f 366 net/sched/cls_fw.c if (arg->fn(tp, f, arg) < 0) { f 379 net/sched/cls_fw.c struct fw_filter *f = fh; f 382 net/sched/cls_fw.c if (f == NULL) f 385 net/sched/cls_fw.c t->tcm_handle = f->id; f 387 net/sched/cls_fw.c if (!f->res.classid && !tcf_exts_has_actions(&f->exts)) f 394 net/sched/cls_fw.c if (f->res.classid && f 395 net/sched/cls_fw.c nla_put_u32(skb, TCA_FW_CLASSID, f->res.classid)) f 397 net/sched/cls_fw.c if (f->ifindex) { f 399 net/sched/cls_fw.c dev = __dev_get_by_index(net, f->ifindex); f 407 net/sched/cls_fw.c if (tcf_exts_dump(skb, &f->exts) < 0) f 412 net/sched/cls_fw.c if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 425 net/sched/cls_fw.c struct fw_filter *f = fh; f 427 net/sched/cls_fw.c if (f && f->res.classid == classid) { f 429 net/sched/cls_fw.c __tcf_bind_filter(q, &f->res, base); f 431 net/sched/cls_fw.c __tcf_unbind_filter(q, &f->res); f 77 net/sched/cls_route.c struct route4_filter *f) f 85 net/sched/cls_route.c head->fastmap[h].filter = f; f 111 net/sched/cls_route.c *res = f->res; \ f 112 net/sched/cls_route.c if (tcf_exts_has_actions(&f->exts)) { \ f 113 net/sched/cls_route.c int r = tcf_exts_exec(skb, &f->exts, res); \ f 120 net/sched/cls_route.c route4_set_fastmap(head, id, iif, f); \ f 130 net/sched/cls_route.c struct route4_filter *f; f 147 net/sched/cls_route.c (f = head->fastmap[h].filter) != NULL) { f 148 net/sched/cls_route.c if (f == ROUTE4_FAILURE) { f 153 net/sched/cls_route.c *res = f->res; f 164 net/sched/cls_route.c for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); f 165 net/sched/cls_route.c f; f 166 net/sched/cls_route.c f = rcu_dereference_bh(f->next)) f 167 net/sched/cls_route.c if (f->id == id) f 170 net/sched/cls_route.c for (f = rcu_dereference_bh(b->ht[route4_hash_iif(iif)]); f 171 net/sched/cls_route.c f; f 172 net/sched/cls_route.c f = rcu_dereference_bh(f->next)) f 173 net/sched/cls_route.c if (f->iif == iif) f 176 net/sched/cls_route.c for (f = rcu_dereference_bh(b->ht[route4_hash_wild()]); f 177 net/sched/cls_route.c f; f 178 net/sched/cls_route.c f = rcu_dereference_bh(f->next)) f 219 net/sched/cls_route.c struct route4_filter *f; f 232 net/sched/cls_route.c for (f = rtnl_dereference(b->ht[h2]); f 233 net/sched/cls_route.c f; f 234 net/sched/cls_route.c f = rtnl_dereference(f->next)) f 235 net/sched/cls_route.c if (f->handle == handle) f 236 net/sched/cls_route.c return f; f 253 net/sched/cls_route.c static void __route4_delete_filter(struct route4_filter *f) f 255 net/sched/cls_route.c tcf_exts_destroy(&f->exts); f 256 net/sched/cls_route.c tcf_exts_put_net(&f->exts); f 257 net/sched/cls_route.c kfree(f); f 262 net/sched/cls_route.c struct route4_filter *f = container_of(to_rcu_work(work), f 266 net/sched/cls_route.c __route4_delete_filter(f); f 270 net/sched/cls_route.c static void route4_queue_work(struct route4_filter *f) f 272 net/sched/cls_route.c tcf_queue_work(&f->rwork, route4_delete_filter_work); f 290 net/sched/cls_route.c struct route4_filter *f; f 292 net/sched/cls_route.c while ((f = rtnl_dereference(b->ht[h2])) != NULL) { f 295 net/sched/cls_route.c next = rtnl_dereference(f->next); f 297 net/sched/cls_route.c tcf_unbind_filter(tp, &f->res); f 298 net/sched/cls_route.c if (tcf_exts_get_net(&f->exts)) f 299 net/sched/cls_route.c route4_queue_work(f); f 301 net/sched/cls_route.c __route4_delete_filter(f); f 315 net/sched/cls_route.c struct route4_filter *f = arg; f 322 net/sched/cls_route.c if (!head || !f) f 325 net/sched/cls_route.c h = f->handle; f 326 net/sched/cls_route.c b = f->bkt; f 331 net/sched/cls_route.c if (nf == f) { f 333 net/sched/cls_route.c RCU_INIT_POINTER(*fp, rtnl_dereference(f->next)); f 342 net/sched/cls_route.c tcf_unbind_filter(tp, &f->res); f 343 net/sched/cls_route.c tcf_exts_get_net(&f->exts); f 344 net/sched/cls_route.c tcf_queue_work(&f->rwork, route4_delete_filter_work); f 382 net/sched/cls_route.c unsigned long base, struct route4_filter *f, f 393 net/sched/cls_route.c err = tcf_exts_validate(net, tp, tb, est, &f->exts, ovr, true, extack); f 441 net/sched/cls_route.c if (fp->handle == f->handle) f 446 net/sched/cls_route.c f->id = to; f 449 net/sched/cls_route.c f->id = to | id<<16; f 451 net/sched/cls_route.c f->iif = id; f 453 net/sched/cls_route.c f->handle = nhandle; f 454 net/sched/cls_route.c f->bkt = b; f 455 net/sched/cls_route.c f->tp = tp; f 458 net/sched/cls_route.c f->res.classid = nla_get_u32(tb[TCA_ROUTE4_CLASSID]); f 459 net/sched/cls_route.c tcf_bind_filter(tp, &f->res, base); f 472 net/sched/cls_route.c struct route4_filter *fold, *f1, *pfp, *f = NULL; f 493 net/sched/cls_route.c f = kzalloc(sizeof(struct route4_filter), GFP_KERNEL); f 494 net/sched/cls_route.c if (!f) f 497 net/sched/cls_route.c err = tcf_exts_init(&f->exts, net, TCA_ROUTE4_ACT, TCA_ROUTE4_POLICE); f 502 net/sched/cls_route.c f->id = fold->id; f 503 net/sched/cls_route.c f->iif = fold->iif; f 504 net/sched/cls_route.c f->res = fold->res; f 505 net/sched/cls_route.c f->handle = fold->handle; f 507 net/sched/cls_route.c f->tp = fold->tp; f 508 net/sched/cls_route.c f->bkt = fold->bkt; f 512 net/sched/cls_route.c err = route4_set_parms(net, tp, base, f, handle, head, tb, f 517 net/sched/cls_route.c h = from_hash(f->handle >> 16); f 518 net/sched/cls_route.c fp = &f->bkt->ht[h]; f 522 net/sched/cls_route.c if (f->handle < f1->handle) f 526 net/sched/cls_route.c rcu_assign_pointer(f->next, f1); f 527 net/sched/cls_route.c rcu_assign_pointer(*fp, f); f 529 net/sched/cls_route.c if (fold && fold->handle && f->handle != fold->handle) { f 546 net/sched/cls_route.c *arg = f; f 555 net/sched/cls_route.c if (f) f 556 net/sched/cls_route.c tcf_exts_destroy(&f->exts); f 557 net/sched/cls_route.c kfree(f); f 575 net/sched/cls_route.c struct route4_filter *f; f 577 net/sched/cls_route.c for (f = rtnl_dereference(b->ht[h1]); f 578 net/sched/cls_route.c f; f 579 net/sched/cls_route.c f = rtnl_dereference(f->next)) { f 584 net/sched/cls_route.c if (arg->fn(tp, f, arg) < 0) { f 598 net/sched/cls_route.c struct route4_filter *f = fh; f 602 net/sched/cls_route.c if (f == NULL) f 605 net/sched/cls_route.c t->tcm_handle = f->handle; f 611 net/sched/cls_route.c if (!(f->handle & 0x8000)) { f 612 net/sched/cls_route.c id = f->id & 0xFF; f 616 net/sched/cls_route.c if (f->handle & 0x80000000) { f 617 net/sched/cls_route.c if ((f->handle >> 16) != 0xFFFF && f 618 net/sched/cls_route.c nla_put_u32(skb, TCA_ROUTE4_IIF, f->iif)) f 621 net/sched/cls_route.c id = f->id >> 16; f 625 net/sched/cls_route.c if (f->res.classid && f 626 net/sched/cls_route.c nla_put_u32(skb, TCA_ROUTE4_CLASSID, f->res.classid)) f 629 net/sched/cls_route.c if (tcf_exts_dump(skb, &f->exts) < 0) f 634 net/sched/cls_route.c if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 647 net/sched/cls_route.c struct route4_filter *f = fh; f 649 net/sched/cls_route.c if (f && f->res.classid == classid) { f 651 net/sched/cls_route.c __tcf_bind_filter(q, &f->res, base); f 653 net/sched/cls_route.c __tcf_unbind_filter(q, &f->res); f 120 net/sched/cls_rsvp.h int r = tcf_exts_exec(skb, &f->exts, res); \ f 132 net/sched/cls_rsvp.h struct rsvp_filter *f; f 183 net/sched/cls_rsvp.h for (f = rcu_dereference_bh(s->ht[h2]); f; f 184 net/sched/cls_rsvp.h f = rcu_dereference_bh(f->next)) { f 185 net/sched/cls_rsvp.h if (src[RSVP_DST_LEN-1] == f->src[RSVP_DST_LEN - 1] && f 186 net/sched/cls_rsvp.h !(f->spi.mask & (*(u32 *)(xprt + f->spi.offset) ^ f->spi.key)) f 189 net/sched/cls_rsvp.h src[0] == f->src[0] && f 190 net/sched/cls_rsvp.h src[1] == f->src[1] && f 191 net/sched/cls_rsvp.h src[2] == f->src[2] f 194 net/sched/cls_rsvp.h *res = f->res; f 198 net/sched/cls_rsvp.h if (f->tunnelhdr == 0) f 201 net/sched/cls_rsvp.h tunnelid = f->res.classid; f 202 net/sched/cls_rsvp.h nhptr = (void *)(xprt + f->tunnelhdr - sizeof(*nhptr)); f 208 net/sched/cls_rsvp.h for (f = rcu_dereference_bh(s->ht[16]); f; f 209 net/sched/cls_rsvp.h f = rcu_dereference_bh(f->next)) { f 210 net/sched/cls_rsvp.h *res = f->res; f 251 net/sched/cls_rsvp.h struct rsvp_filter *f; f 260 net/sched/cls_rsvp.h for (f = rtnl_dereference(s->ht[h2]); f; f 261 net/sched/cls_rsvp.h f = rtnl_dereference(f->next)) { f 262 net/sched/cls_rsvp.h if (f->handle == handle) f 263 net/sched/cls_rsvp.h return f; f 281 net/sched/cls_rsvp.h static void __rsvp_delete_filter(struct rsvp_filter *f) f 283 net/sched/cls_rsvp.h tcf_exts_destroy(&f->exts); f 284 net/sched/cls_rsvp.h tcf_exts_put_net(&f->exts); f 285 net/sched/cls_rsvp.h kfree(f); f 290 net/sched/cls_rsvp.h struct rsvp_filter *f = container_of(to_rcu_work(work), f 294 net/sched/cls_rsvp.h __rsvp_delete_filter(f); f 298 net/sched/cls_rsvp.h static void rsvp_delete_filter(struct tcf_proto *tp, struct rsvp_filter *f) f 300 net/sched/cls_rsvp.h tcf_unbind_filter(tp, &f->res); f 305 net/sched/cls_rsvp.h if (tcf_exts_get_net(&f->exts)) f 306 net/sched/cls_rsvp.h tcf_queue_work(&f->rwork, rsvp_delete_filter_work); f 308 net/sched/cls_rsvp.h __rsvp_delete_filter(f); f 327 net/sched/cls_rsvp.h struct rsvp_filter *f; f 329 net/sched/cls_rsvp.h while ((f = rtnl_dereference(s->ht[h2])) != NULL) { f 330 net/sched/cls_rsvp.h rcu_assign_pointer(s->ht[h2], f->next); f 331 net/sched/cls_rsvp.h rsvp_delete_filter(tp, f); f 344 net/sched/cls_rsvp.h struct rsvp_filter *nfp, *f = arg; f 346 net/sched/cls_rsvp.h unsigned int h = f->handle; f 348 net/sched/cls_rsvp.h struct rsvp_session *nsp, *s = f->sess; f 354 net/sched/cls_rsvp.h if (nfp == f) { f 355 net/sched/cls_rsvp.h RCU_INIT_POINTER(*fp, f->next); f 356 net/sched/cls_rsvp.h rsvp_delete_filter(tp, f); f 432 net/sched/cls_rsvp.h struct rsvp_filter *f; f 434 net/sched/cls_rsvp.h for (f = rtnl_dereference(s->ht[h2]); f; f 435 net/sched/cls_rsvp.h f = rtnl_dereference(f->next)) { f 436 net/sched/cls_rsvp.h if (f->tunnelhdr == 0) f 438 net/sched/cls_rsvp.h data->tgenerator = f->res.classid; f 479 net/sched/cls_rsvp.h struct rsvp_filter *f, *nfp; f 507 net/sched/cls_rsvp.h f = *arg; f 508 net/sched/cls_rsvp.h if (f) { f 512 net/sched/cls_rsvp.h if (f->handle != handle && handle) f 515 net/sched/cls_rsvp.h n = kmemdup(f, sizeof(*f), GFP_KERNEL); f 546 net/sched/cls_rsvp.h f = kzalloc(sizeof(struct rsvp_filter), GFP_KERNEL); f 547 net/sched/cls_rsvp.h if (f == NULL) f 550 net/sched/cls_rsvp.h err = tcf_exts_init(&f->exts, net, TCA_RSVP_ACT, TCA_RSVP_POLICE); f 555 net/sched/cls_rsvp.h memcpy(f->src, nla_data(tb[TCA_RSVP_SRC]), sizeof(f->src)); f 556 net/sched/cls_rsvp.h h2 = hash_src(f->src); f 560 net/sched/cls_rsvp.h f->spi = pinfo->spi; f 561 net/sched/cls_rsvp.h f->tunnelhdr = pinfo->tunnelhdr; f 564 net/sched/cls_rsvp.h f->res.classid = nla_get_u32(tb[TCA_RSVP_CLASSID]); f 570 net/sched/cls_rsvp.h if ((f->handle = gen_handle(tp, h1 | (h2<<8))) == 0) f 573 net/sched/cls_rsvp.h if (f->tunnelhdr) { f 575 net/sched/cls_rsvp.h if (f->res.classid > 255) f 579 net/sched/cls_rsvp.h if (f->res.classid == 0 && f 580 net/sched/cls_rsvp.h (f->res.classid = gen_tunnel(data)) == 0) f 602 net/sched/cls_rsvp.h f->sess = s; f 603 net/sched/cls_rsvp.h if (f->tunnelhdr == 0) f 604 net/sched/cls_rsvp.h tcf_bind_filter(tp, &f->res, base); f 606 net/sched/cls_rsvp.h tcf_exts_change(&f->exts, &e); f 611 net/sched/cls_rsvp.h __u32 mask = nfp->spi.mask & f->spi.mask; f 613 net/sched/cls_rsvp.h if (mask != f->spi.mask) f 616 net/sched/cls_rsvp.h RCU_INIT_POINTER(f->next, nfp); f 617 net/sched/cls_rsvp.h rcu_assign_pointer(*fp, f); f 619 net/sched/cls_rsvp.h *arg = f; f 649 net/sched/cls_rsvp.h tcf_exts_destroy(&f->exts); f 650 net/sched/cls_rsvp.h kfree(f); f 671 net/sched/cls_rsvp.h struct rsvp_filter *f; f 673 net/sched/cls_rsvp.h for (f = rtnl_dereference(s->ht[h1]); f; f 674 net/sched/cls_rsvp.h f = rtnl_dereference(f->next)) { f 679 net/sched/cls_rsvp.h if (arg->fn(tp, f, arg) < 0) { f 693 net/sched/cls_rsvp.h struct rsvp_filter *f = fh; f 698 net/sched/cls_rsvp.h if (f == NULL) f 700 net/sched/cls_rsvp.h s = f->sess; f 702 net/sched/cls_rsvp.h t->tcm_handle = f->handle; f 711 net/sched/cls_rsvp.h pinfo.spi = f->spi; f 714 net/sched/cls_rsvp.h pinfo.tunnelhdr = f->tunnelhdr; f 718 net/sched/cls_rsvp.h if (f->res.classid && f 719 net/sched/cls_rsvp.h nla_put_u32(skb, TCA_RSVP_CLASSID, f->res.classid)) f 721 net/sched/cls_rsvp.h if (((f->handle >> 8) & 0xFF) != 16 && f 722 net/sched/cls_rsvp.h nla_put(skb, TCA_RSVP_SRC, sizeof(f->src), f->src)) f 725 net/sched/cls_rsvp.h if (tcf_exts_dump(skb, &f->exts) < 0) f 730 net/sched/cls_rsvp.h if (tcf_exts_dump_stats(skb, &f->exts) < 0) f 742 net/sched/cls_rsvp.h struct rsvp_filter *f = fh; f 744 net/sched/cls_rsvp.h if (f && f->res.classid == classid) { f 746 net/sched/cls_rsvp.h __tcf_bind_filter(q, &f->res, base); f 748 net/sched/cls_rsvp.h __tcf_unbind_filter(q, &f->res); f 83 net/sched/cls_tcindex.c struct tcindex_filter_result *f = p->perfect + key; f 85 net/sched/cls_tcindex.c return tcindex_filter_is_set(f) ? f : NULL; f 88 net/sched/cls_tcindex.c struct tcindex_filter *f; f 91 net/sched/cls_tcindex.c for (f = rcu_dereference_bh_rtnl(*fp); f 92 net/sched/cls_tcindex.c f; f 93 net/sched/cls_tcindex.c fp = &f->next, f = rcu_dereference_bh_rtnl(*fp)) f 94 net/sched/cls_tcindex.c if (f->key == key) f 95 net/sched/cls_tcindex.c return &f->result; f 106 net/sched/cls_tcindex.c struct tcindex_filter_result *f; f 112 net/sched/cls_tcindex.c f = tcindex_lookup(p, key); f 113 net/sched/cls_tcindex.c if (!f) { f 123 net/sched/cls_tcindex.c *res = f->res; f 126 net/sched/cls_tcindex.c return tcf_exts_exec(skb, &f->exts, res); f 179 net/sched/cls_tcindex.c static void __tcindex_destroy_fexts(struct tcindex_filter *f) f 181 net/sched/cls_tcindex.c tcf_exts_destroy(&f->result.exts); f 182 net/sched/cls_tcindex.c tcf_exts_put_net(&f->result.exts); f 183 net/sched/cls_tcindex.c kfree(f); f 188 net/sched/cls_tcindex.c struct tcindex_filter *f = container_of(to_rcu_work(work), f 193 net/sched/cls_tcindex.c __tcindex_destroy_fexts(f); f 203 net/sched/cls_tcindex.c struct tcindex_filter *f = NULL; f 214 net/sched/cls_tcindex.c for (f = rtnl_dereference(*walk); f; f 215 net/sched/cls_tcindex.c walk = &f->next, f = rtnl_dereference(*walk)) { f 216 net/sched/cls_tcindex.c if (&f->result == r) f 223 net/sched/cls_tcindex.c rcu_assign_pointer(*walk, rtnl_dereference(f->next)); f 230 net/sched/cls_tcindex.c if (f) { f 231 net/sched/cls_tcindex.c if (tcf_exts_get_net(&f->result.exts)) f 232 net/sched/cls_tcindex.c tcf_queue_work(&f->rwork, tcindex_destroy_fexts_work); f 234 net/sched/cls_tcindex.c __tcindex_destroy_fexts(f); f 334 net/sched/cls_tcindex.c struct tcindex_filter *f = NULL; /* make gcc behave */ f 457 net/sched/cls_tcindex.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 458 net/sched/cls_tcindex.c if (!f) f 460 net/sched/cls_tcindex.c f->key = handle; f 461 net/sched/cls_tcindex.c f->next = NULL; f 462 net/sched/cls_tcindex.c err = tcindex_filter_result_init(&f->result, cp, net); f 464 net/sched/cls_tcindex.c kfree(f); f 477 net/sched/cls_tcindex.c kfree(f); f 492 net/sched/cls_tcindex.c f->result.res = r->res; f 493 net/sched/cls_tcindex.c tcf_exts_change(&f->result.exts, &r->exts); f 501 net/sched/cls_tcindex.c rcu_assign_pointer(*fp, f); f 554 net/sched/cls_tcindex.c struct tcindex_filter *f, *next; f 574 net/sched/cls_tcindex.c for (f = rtnl_dereference(p->h[i]); f; f = next) { f 575 net/sched/cls_tcindex.c next = rtnl_dereference(f->next); f 577 net/sched/cls_tcindex.c if (walker->fn(tp, &f->result, walker) < 0) { f 617 net/sched/cls_tcindex.c struct tcindex_filter *f, *next; f 620 net/sched/cls_tcindex.c for (f = rtnl_dereference(p->h[i]); f; f = next) { f 621 net/sched/cls_tcindex.c next = rtnl_dereference(f->next); f 622 net/sched/cls_tcindex.c tcindex_delete(tp, &f->result, &last, rtnl_held, NULL); f 657 net/sched/cls_tcindex.c struct tcindex_filter *f; f 664 net/sched/cls_tcindex.c for (f = rtnl_dereference(*fp); f 665 net/sched/cls_tcindex.c !t->tcm_handle && f; f 666 net/sched/cls_tcindex.c fp = &f->next, f = rtnl_dereference(*fp)) { f 667 net/sched/cls_tcindex.c if (&f->result == r) f 668 net/sched/cls_tcindex.c t->tcm_handle = f->key; f 130 net/sched/sch_fq.c static void fq_flow_set_detached(struct fq_flow *f) f 132 net/sched/sch_fq.c f->next = &detached; f 133 net/sched/sch_fq.c f->age = jiffies; f 136 net/sched/sch_fq.c static bool fq_flow_is_detached(const struct fq_flow *f) f 138 net/sched/sch_fq.c return f->next == &detached; f 141 net/sched/sch_fq.c static bool fq_flow_is_throttled(const struct fq_flow *f) f 143 net/sched/sch_fq.c return f->next == &throttled; f 156 net/sched/sch_fq.c static void fq_flow_unset_throttled(struct fq_sched_data *q, struct fq_flow *f) f 158 net/sched/sch_fq.c rb_erase(&f->rate_node, &q->delayed); f 160 net/sched/sch_fq.c fq_flow_add_tail(&q->old_flows, f); f 163 net/sched/sch_fq.c static void fq_flow_set_throttled(struct fq_sched_data *q, struct fq_flow *f) f 172 net/sched/sch_fq.c if (f->time_next_packet >= aux->time_next_packet) f 177 net/sched/sch_fq.c rb_link_node(&f->rate_node, parent, p); f 178 net/sched/sch_fq.c rb_insert_color(&f->rate_node, &q->delayed); f 182 net/sched/sch_fq.c f->next = &throttled; f 183 net/sched/sch_fq.c if (q->time_next_delayed_flow > f->time_next_packet) f 184 net/sched/sch_fq.c q->time_next_delayed_flow = f->time_next_packet; f 195 net/sched/sch_fq.c static bool fq_gc_candidate(const struct fq_flow *f) f 197 net/sched/sch_fq.c return fq_flow_is_detached(f) && f 198 net/sched/sch_fq.c time_after(jiffies, f->age + FQ_GC_AGE); f 205 net/sched/sch_fq.c struct fq_flow *f, *tofree[FQ_GC_MAX]; f 214 net/sched/sch_fq.c f = rb_entry(parent, struct fq_flow, fq_node); f 215 net/sched/sch_fq.c if (f->sk == sk) f 218 net/sched/sch_fq.c if (fq_gc_candidate(f)) { f 219 net/sched/sch_fq.c tofree[fcnt++] = f; f 224 net/sched/sch_fq.c if (f->sk > sk) f 234 net/sched/sch_fq.c struct fq_flow *f = tofree[--fcnt]; f 236 net/sched/sch_fq.c rb_erase(&f->fq_node, root); f 237 net/sched/sch_fq.c kmem_cache_free(fq_flow_cachep, f); f 246 net/sched/sch_fq.c struct fq_flow *f; f 293 net/sched/sch_fq.c f = rb_entry(parent, struct fq_flow, fq_node); f 294 net/sched/sch_fq.c if (f->sk == sk) { f 301 net/sched/sch_fq.c f->socket_hash != sk->sk_hash)) { f 302 net/sched/sch_fq.c f->credit = q->initial_quantum; f 303 net/sched/sch_fq.c f->socket_hash = sk->sk_hash; f 307 net/sched/sch_fq.c if (fq_flow_is_throttled(f)) f 308 net/sched/sch_fq.c fq_flow_unset_throttled(q, f); f 309 net/sched/sch_fq.c f->time_next_packet = 0ULL; f 311 net/sched/sch_fq.c return f; f 313 net/sched/sch_fq.c if (f->sk > sk) f 319 net/sched/sch_fq.c f = kmem_cache_zalloc(fq_flow_cachep, GFP_ATOMIC | __GFP_NOWARN); f 320 net/sched/sch_fq.c if (unlikely(!f)) { f 326 net/sched/sch_fq.c fq_flow_set_detached(f); f 327 net/sched/sch_fq.c f->sk = sk; f 329 net/sched/sch_fq.c f->socket_hash = sk->sk_hash; f 334 net/sched/sch_fq.c f->credit = q->initial_quantum; f 336 net/sched/sch_fq.c rb_link_node(&f->fq_node, parent, p); f 337 net/sched/sch_fq.c rb_insert_color(&f->fq_node, root); f 341 net/sched/sch_fq.c return f; f 424 net/sched/sch_fq.c struct fq_flow *f; f 429 net/sched/sch_fq.c f = fq_classify(skb, q); f 430 net/sched/sch_fq.c if (unlikely(f->qlen >= q->flow_plimit && f != &q->internal)) { f 435 net/sched/sch_fq.c f->qlen++; f 437 net/sched/sch_fq.c if (fq_flow_is_detached(f)) { f 438 net/sched/sch_fq.c fq_flow_add_tail(&q->new_flows, f); f 439 net/sched/sch_fq.c if (time_after(jiffies, f->age + q->flow_refill_delay)) f 440 net/sched/sch_fq.c f->credit = max_t(u32, f->credit, q->quantum); f 445 net/sched/sch_fq.c flow_queue_add(f, skb); f 447 net/sched/sch_fq.c if (unlikely(f == &q->internal)) { f 472 net/sched/sch_fq.c struct fq_flow *f = rb_entry(p, struct fq_flow, rate_node); f 474 net/sched/sch_fq.c if (f->time_next_packet > now) { f 475 net/sched/sch_fq.c q->time_next_delayed_flow = f->time_next_packet; f 478 net/sched/sch_fq.c fq_flow_unset_throttled(q, f); f 487 net/sched/sch_fq.c struct fq_flow *f; f 512 net/sched/sch_fq.c f = head->first; f 514 net/sched/sch_fq.c if (f->credit <= 0) { f 515 net/sched/sch_fq.c f->credit += q->quantum; f 516 net/sched/sch_fq.c head->first = f->next; f 517 net/sched/sch_fq.c fq_flow_add_tail(&q->old_flows, f); f 521 net/sched/sch_fq.c skb = fq_peek(f); f 524 net/sched/sch_fq.c f->time_next_packet); f 527 net/sched/sch_fq.c head->first = f->next; f 528 net/sched/sch_fq.c f->time_next_packet = time_next_packet; f 529 net/sched/sch_fq.c fq_flow_set_throttled(q, f); f 539 net/sched/sch_fq.c skb = fq_dequeue_head(sch, f); f 541 net/sched/sch_fq.c head->first = f->next; f 544 net/sched/sch_fq.c fq_flow_add_tail(&q->old_flows, f); f 546 net/sched/sch_fq.c fq_flow_set_detached(f); f 553 net/sched/sch_fq.c f->credit -= plen; f 569 net/sched/sch_fq.c f->credit = 0; f 572 net/sched/sch_fq.c if (f->credit > 0) f 593 net/sched/sch_fq.c if (f->time_next_packet) f 594 net/sched/sch_fq.c len -= min(len/2, now - f->time_next_packet); f 595 net/sched/sch_fq.c f->time_next_packet = now + len; f 623 net/sched/sch_fq.c struct fq_flow *f; f 637 net/sched/sch_fq.c f = rb_entry(p, struct fq_flow, fq_node); f 640 net/sched/sch_fq.c fq_flow_purge(f); f 642 net/sched/sch_fq.c kmem_cache_free(fq_flow_cachep, f); f 669 net/sched/sch_hfsc.c u64 vt, f, cur_time; f 734 net/sched/sch_hfsc.c f = max(cl->cl_myf, cl->cl_cfmin); f 735 net/sched/sch_hfsc.c if (f != cl->cl_f) { f 736 net/sched/sch_hfsc.c cl->cl_f = f; f 746 net/sched/sch_hfsc.c u64 f; /* , myf_bound, delta; */ f 822 net/sched/sch_hfsc.c f = max(cl->cl_myf, cl->cl_cfmin); f 823 net/sched/sch_hfsc.c if (f != cl->cl_f) { f 824 net/sched/sch_hfsc.c cl->cl_f = f; f 481 net/socket.c struct fd f = fdget(fd); f 485 net/socket.c if (f.file) { f 486 net/socket.c sock = sock_from_file(f.file, err); f 488 net/socket.c *fput_needed = f.flags; f 491 net/socket.c fdput(f); f 20 net/sunrpc/debugfs.c tasks_show(struct seq_file *f, void *v) f 33 net/sunrpc/debugfs.c seq_printf(f, "%5u %04x %6d 0x%x 0x%x %8ld %ps %sv%u %s a:%ps q:%s\n", f 42 net/sunrpc/debugfs.c tasks_start(struct seq_file *f, loff_t *ppos) f 45 net/sunrpc/debugfs.c struct rpc_clnt *clnt = f->private; f 57 net/sunrpc/debugfs.c tasks_next(struct seq_file *f, void *v, loff_t *pos) f 59 net/sunrpc/debugfs.c struct rpc_clnt *clnt = f->private; f 72 net/sunrpc/debugfs.c tasks_stop(struct seq_file *f, void *v) f 75 net/sunrpc/debugfs.c struct rpc_clnt *clnt = f->private; f 174 net/sunrpc/debugfs.c xprt_info_show(struct seq_file *f, void *v) f 176 net/sunrpc/debugfs.c struct rpc_xprt *xprt = f->private; f 178 net/sunrpc/debugfs.c seq_printf(f, "netid: %s\n", xprt->address_strings[RPC_DISPLAY_NETID]); f 179 net/sunrpc/debugfs.c seq_printf(f, "addr: %s\n", xprt->address_strings[RPC_DISPLAY_ADDR]); f 180 net/sunrpc/debugfs.c seq_printf(f, "port: %s\n", xprt->address_strings[RPC_DISPLAY_PORT]); f 181 net/sunrpc/debugfs.c seq_printf(f, "state: 0x%lx\n", xprt->state); f 284 net/tipc/trace.h TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq), f 286 net/tipc/trace.h TP_ARGS(r, f, t, tq), f 299 net/tipc/trace.h __entry->from = f; f 312 net/tipc/trace.h TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq), f 313 net/tipc/trace.h TP_ARGS(r, f, t, tq) f 317 net/tipc/trace.h TP_PROTO(struct tipc_link *r, u16 f, u16 t, struct sk_buff_head *tq), f 318 net/tipc/trace.h TP_ARGS(r, f, t, tq), f 2536 net/unix/af_unix.c struct file *f; f 2555 net/unix/af_unix.c f = dentry_open(&path, O_PATH, current_cred()); f 2556 net/unix/af_unix.c if (IS_ERR(f)) { f 2558 net/unix/af_unix.c fd = PTR_ERR(f); f 2562 net/unix/af_unix.c fd_install(fd, f); f 1121 net/wireless/scan.c const struct cfg80211_bss_ies *f; f 1132 net/wireless/scan.c f = rcu_access_pointer(new->pub.beacon_ies); f 1133 net/wireless/scan.c kfree_rcu((struct cfg80211_bss_ies *)f, rcu_head); f 1921 net/wireless/util.c void cfg80211_free_nan_func(struct cfg80211_nan_func *f) f 1925 net/wireless/util.c if (!f) f 1928 net/wireless/util.c kfree(f->serv_spec_info); f 1929 net/wireless/util.c kfree(f->srf_bf); f 1930 net/wireless/util.c kfree(f->srf_macs); f 1931 net/wireless/util.c for (i = 0; i < f->num_rx_filters; i++) f 1932 net/wireless/util.c kfree(f->rx_filters[i].filter); f 1934 net/wireless/util.c for (i = 0; i < f->num_tx_filters; i++) f 1935 net/wireless/util.c kfree(f->tx_filters[i].filter); f 1937 net/wireless/util.c kfree(f->rx_filters); f 1938 net/wireless/util.c kfree(f->tx_filters); f 1939 net/wireless/util.c kfree(f); f 133 net/x25/x25_proc.c struct x25_forward *f = list_entry(v, struct x25_forward, node); f 140 net/x25/x25_proc.c f = v; f 143 net/x25/x25_proc.c f->lci, f->dev1->name, f->dev2->name); f 1113 net/xfrm/xfrm_user.c u32 *f; f 1120 net/xfrm/xfrm_user.c f = nlmsg_data(nlh); f 1121 net/xfrm/xfrm_user.c *f = flags; f 1236 net/xfrm/xfrm_user.c u32 *f; f 1242 net/xfrm/xfrm_user.c f = nlmsg_data(nlh); f 1243 net/xfrm/xfrm_user.c *f = flags; f 100 samples/bpf/sock_example.c FILE *f; f 102 samples/bpf/sock_example.c f = popen("ping -4 -c5 localhost", "r"); f 103 samples/bpf/sock_example.c (void)f; f 17 samples/bpf/sockex1_user.c FILE *f; f 32 samples/bpf/sockex1_user.c f = popen("ping -4 -c5 localhost", "r"); f 33 samples/bpf/sockex1_user.c (void) f; f 24 samples/bpf/sockex2_user.c FILE *f; f 40 samples/bpf/sockex2_user.c f = popen("ping -4 -c5 localhost", "r"); f 41 samples/bpf/sockex2_user.c (void) f; f 35 samples/bpf/sockex3_user.c FILE *f; f 61 samples/bpf/sockex3_user.c f = popen("ping -4 -c5 localhost", "r"); f 63 samples/bpf/sockex3_user.c f = popen("netperf -l 4 localhost", "r"); f 64 samples/bpf/sockex3_user.c (void) f; f 497 samples/bpf/test_lru_dist.c int f; f 527 samples/bpf/test_lru_dist.c for (f = 0; f < sizeof(map_flags) / sizeof(*map_flags); f++) { f 528 samples/bpf/test_lru_dist.c test_lru_loss0(BPF_MAP_TYPE_LRU_HASH, map_flags[f]); f 529 samples/bpf/test_lru_dist.c test_lru_loss1(BPF_MAP_TYPE_LRU_HASH, map_flags[f]); f 530 samples/bpf/test_lru_dist.c test_parallel_lru_loss(BPF_MAP_TYPE_LRU_HASH, map_flags[f], f 532 samples/bpf/test_lru_dist.c test_parallel_lru_dist(BPF_MAP_TYPE_LRU_HASH, map_flags[f], f 212 samples/bpf/test_lwt_bpf.c uint64_t f = 0xFFFFFFFFFFFFFFFF; f 214 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 0, &f, sizeof(f), 0); f 215 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 8, &f, sizeof(f), 0); f 216 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 16, &f, sizeof(f), 0); f 217 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 24, &f, sizeof(f), 0); f 218 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 32, &f, sizeof(f), 0); f 219 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 40, &f, sizeof(f), 0); f 220 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 48, &f, sizeof(f), 0); f 221 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 56, &f, sizeof(f), 0); f 222 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 64, &f, sizeof(f), 0); f 223 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 72, &f, sizeof(f), 0); f 224 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 80, &f, sizeof(f), 0); f 225 samples/bpf/test_lwt_bpf.c bpf_skb_store_bytes(skb, 88, &f, sizeof(f), 0); f 62 samples/bpf/trace_output_user.c FILE *f; f 80 samples/bpf/trace_output_user.c f = popen("taskset 1 dd if=/dev/zero of=/dev/null", "r"); f 81 samples/bpf/trace_output_user.c (void) f; f 10 samples/bpf/tracex1_user.c FILE *f; f 20 samples/bpf/tracex1_user.c f = popen("taskset 1 ping -c5 localhost", "r"); f 21 samples/bpf/tracex1_user.c (void) f; f 120 samples/bpf/tracex2_user.c FILE *f; f 134 samples/bpf/tracex2_user.c f = popen("ping -4 -c5 localhost", "r"); f 135 samples/bpf/tracex2_user.c (void) f; f 138 samples/bpf/tracex2_user.c f = popen("dd if=/dev/zero of=/dev/null count=5000000", "r"); f 139 samples/bpf/tracex2_user.c (void) f; f 30 samples/bpf/tracex5_user.c FILE *f; f 44 samples/bpf/tracex5_user.c f = popen("dd if=/dev/zero of=/dev/null count=5", "r"); f 45 samples/bpf/tracex5_user.c (void) f; f 11 samples/bpf/tracex7_user.c FILE *f; f 24 samples/bpf/tracex7_user.c f = popen(command, "r"); f 25 samples/bpf/tracex7_user.c ret = pclose(f); f 38 samples/connector/ucon.c #define ulog(f, a...) fprintf(stdout, f, ##a) f 40 samples/connector/ucon.c #define ulog(f, a...) do {} while (0) f 352 samples/v4l/v4l2-pci-skeleton.c struct v4l2_format *f) f 355 samples/v4l/v4l2-pci-skeleton.c struct v4l2_pix_format *pix = &f->fmt.pix; f 370 samples/v4l/v4l2-pci-skeleton.c struct v4l2_format *f) f 375 samples/v4l/v4l2-pci-skeleton.c ret = skeleton_try_fmt_vid_cap(file, priv, f); f 387 samples/v4l/v4l2-pci-skeleton.c skel->format = f->fmt.pix; f 392 samples/v4l/v4l2-pci-skeleton.c struct v4l2_format *f) f 396 samples/v4l/v4l2-pci-skeleton.c f->fmt.pix = skel->format; f 401 samples/v4l/v4l2-pci-skeleton.c struct v4l2_fmtdesc *f) f 403 samples/v4l/v4l2-pci-skeleton.c if (f->index != 0) f 406 samples/v4l/v4l2-pci-skeleton.c f->pixelformat = V4L2_PIX_FMT_YUYV; f 79 scripts/dtc/data.c struct data data_copy_file(FILE *f, size_t maxlen) f 84 scripts/dtc/data.c while (!feof(f) && (d.len < maxlen)) { f 93 scripts/dtc/data.c ret = fread(d.val + d.len, 1, chunksize, f); f 95 scripts/dtc/data.c if (ferror(f)) f 306 scripts/dtc/dtc-parser.y FILE *f = srcfile_relative_open($4.val, NULL); f 310 scripts/dtc/dtc-parser.y if (fseek(f, $6, SEEK_SET) != 0) f 315 scripts/dtc/dtc-parser.y d = data_copy_file(f, $8); f 318 scripts/dtc/dtc-parser.y fclose(f); f 322 scripts/dtc/dtc-parser.y FILE *f = srcfile_relative_open($4.val, NULL); f 325 scripts/dtc/dtc-parser.y d = data_copy_file(f, -1); f 328 scripts/dtc/dtc-parser.y fclose(f); f 134 scripts/dtc/dtc.c FILE *f; f 145 scripts/dtc/dtc.c f = fopen(fname, "r"); f 146 scripts/dtc/dtc.c if (f == NULL) f 148 scripts/dtc/dtc.c if (fread(&magic, 4, 1, f) != 1) { f 149 scripts/dtc/dtc.c fclose(f); f 152 scripts/dtc/dtc.c fclose(f); f 105 scripts/dtc/dtc.h struct data data_copy_file(FILE *f, size_t len); f 283 scripts/dtc/dtc.h void dt_to_blob(FILE *f, struct dt_info *dti, int version); f 284 scripts/dtc/dtc.h void dt_to_asm(FILE *f, struct dt_info *dti, int version); f 290 scripts/dtc/dtc.h void dt_to_source(FILE *f, struct dt_info *dti); f 291 scripts/dtc/dtc.h struct dt_info *dt_from_source(const char *f); f 295 scripts/dtc/dtc.h void dt_to_yaml(FILE *f, struct dt_info *dti); f 102 scripts/dtc/flattree.c static void emit_label(FILE *f, const char *prefix, const char *label) f 104 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s_%s\n", prefix, label); f 105 scripts/dtc/flattree.c fprintf(f, "%s_%s:\n", prefix, label); f 106 scripts/dtc/flattree.c fprintf(f, "_%s_%s:\n", prefix, label); f 109 scripts/dtc/flattree.c static void emit_offset_label(FILE *f, const char *label, int offset) f 111 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s\n", label); f 112 scripts/dtc/flattree.c fprintf(f, "%s\t= . + %d\n", label, offset); f 115 scripts/dtc/flattree.c #define ASM_EMIT_BELONG(f, fmt, ...) \ f 117 scripts/dtc/flattree.c fprintf((f), "\t.byte\t((" fmt ") >> 24) & 0xff\n", __VA_ARGS__); \ f 118 scripts/dtc/flattree.c fprintf((f), "\t.byte\t((" fmt ") >> 16) & 0xff\n", __VA_ARGS__); \ f 119 scripts/dtc/flattree.c fprintf((f), "\t.byte\t((" fmt ") >> 8) & 0xff\n", __VA_ARGS__); \ f 120 scripts/dtc/flattree.c fprintf((f), "\t.byte\t(" fmt ") & 0xff\n", __VA_ARGS__); \ f 125 scripts/dtc/flattree.c FILE *f = e; f 127 scripts/dtc/flattree.c fprintf(f, "\t.byte 0x%02x; .byte 0x%02x; .byte 0x%02x; .byte 0x%02x\n", f 134 scripts/dtc/flattree.c FILE *f = e; f 137 scripts/dtc/flattree.c fprintf(f, "\t.string\t\"%.*s\"\n", len, str); f 139 scripts/dtc/flattree.c fprintf(f, "\t.string\t\"%s\"\n", str); f 144 scripts/dtc/flattree.c FILE *f = e; f 146 scripts/dtc/flattree.c fprintf(f, "\t.balign\t%d, 0\n", a); f 151 scripts/dtc/flattree.c FILE *f = e; f 156 scripts/dtc/flattree.c emit_offset_label(f, m->ref, m->offset); f 164 scripts/dtc/flattree.c fprintf(f, "\t.byte\t0x%hhx\n", d.val[off]); f 173 scripts/dtc/flattree.c FILE *f = e; f 177 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s\n", l->label); f 178 scripts/dtc/flattree.c fprintf(f, "%s:\n", l->label); f 180 scripts/dtc/flattree.c fprintf(f, "\t/* FDT_BEGIN_NODE */\n"); f 186 scripts/dtc/flattree.c FILE *f = e; f 189 scripts/dtc/flattree.c fprintf(f, "\t/* FDT_END_NODE */\n"); f 192 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s_end\n", l->label); f 193 scripts/dtc/flattree.c fprintf(f, "%s_end:\n", l->label); f 199 scripts/dtc/flattree.c FILE *f = e; f 203 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s\n", l->label); f 204 scripts/dtc/flattree.c fprintf(f, "%s:\n", l->label); f 206 scripts/dtc/flattree.c fprintf(f, "\t/* FDT_PROP */\n"); f 345 scripts/dtc/flattree.c void dt_to_blob(FILE *f, struct dt_info *dti, int version) f 417 scripts/dtc/flattree.c if (fwrite(blob.val, blob.len, 1, f) != 1) { f 418 scripts/dtc/flattree.c if (ferror(f)) f 432 scripts/dtc/flattree.c static void dump_stringtable_asm(FILE *f, struct data strbuf) f 441 scripts/dtc/flattree.c fprintf(f, "\t.string \"%s\"\n", p); f 446 scripts/dtc/flattree.c void dt_to_asm(FILE *f, struct dt_info *dti, int version) f 461 scripts/dtc/flattree.c fprintf(f, "/* autogenerated by dtc, do not edit */\n\n"); f 463 scripts/dtc/flattree.c emit_label(f, symprefix, "blob_start"); f 464 scripts/dtc/flattree.c emit_label(f, symprefix, "header"); f 465 scripts/dtc/flattree.c fprintf(f, "\t/* magic */\n"); f 466 scripts/dtc/flattree.c asm_emit_cell(f, FDT_MAGIC); f 467 scripts/dtc/flattree.c fprintf(f, "\t/* totalsize */\n"); f 468 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_blob_abs_end - _%s_blob_start", f 470 scripts/dtc/flattree.c fprintf(f, "\t/* off_dt_struct */\n"); f 471 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_struct_start - _%s_blob_start", f 473 scripts/dtc/flattree.c fprintf(f, "\t/* off_dt_strings */\n"); f 474 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_strings_start - _%s_blob_start", f 476 scripts/dtc/flattree.c fprintf(f, "\t/* off_mem_rsvmap */\n"); f 477 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_reserve_map - _%s_blob_start", f 479 scripts/dtc/flattree.c fprintf(f, "\t/* version */\n"); f 480 scripts/dtc/flattree.c asm_emit_cell(f, vi->version); f 481 scripts/dtc/flattree.c fprintf(f, "\t/* last_comp_version */\n"); f 482 scripts/dtc/flattree.c asm_emit_cell(f, vi->last_comp_version); f 485 scripts/dtc/flattree.c fprintf(f, "\t/* boot_cpuid_phys */\n"); f 486 scripts/dtc/flattree.c asm_emit_cell(f, dti->boot_cpuid_phys); f 490 scripts/dtc/flattree.c fprintf(f, "\t/* size_dt_strings */\n"); f 491 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_strings_end - _%s_strings_start", f 496 scripts/dtc/flattree.c fprintf(f, "\t/* size_dt_struct */\n"); f 497 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "_%s_struct_end - _%s_struct_start", f 507 scripts/dtc/flattree.c asm_emit_align(f, 8); f 508 scripts/dtc/flattree.c emit_label(f, symprefix, "reserve_map"); f 510 scripts/dtc/flattree.c fprintf(f, "/* Memory reserve map from source file */\n"); f 520 scripts/dtc/flattree.c fprintf(f, "\t.globl\t%s\n", l->label); f 521 scripts/dtc/flattree.c fprintf(f, "%s:\n", l->label); f 523 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->address >> 32)); f 524 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "0x%08x", f 526 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size >> 32)); f 527 scripts/dtc/flattree.c ASM_EMIT_BELONG(f, "0x%08x", (unsigned int)(re->size & 0xffffffff)); f 530 scripts/dtc/flattree.c fprintf(f, "\t.long\t0, 0\n\t.long\t0, 0\n"); f 533 scripts/dtc/flattree.c fprintf(f, "\t.long\t0, 0\n\t.long\t0, 0\n"); f 535 scripts/dtc/flattree.c emit_label(f, symprefix, "struct_start"); f 536 scripts/dtc/flattree.c flatten_tree(dti->dt, &asm_emitter, f, &strbuf, vi); f 538 scripts/dtc/flattree.c fprintf(f, "\t/* FDT_END */\n"); f 539 scripts/dtc/flattree.c asm_emit_cell(f, FDT_END); f 540 scripts/dtc/flattree.c emit_label(f, symprefix, "struct_end"); f 542 scripts/dtc/flattree.c emit_label(f, symprefix, "strings_start"); f 543 scripts/dtc/flattree.c dump_stringtable_asm(f, strbuf); f 544 scripts/dtc/flattree.c emit_label(f, symprefix, "strings_end"); f 546 scripts/dtc/flattree.c emit_label(f, symprefix, "blob_end"); f 552 scripts/dtc/flattree.c fprintf(f, "\t.space\t%d - (_%s_blob_end - _%s_blob_start), 0\n", f 556 scripts/dtc/flattree.c fprintf(f, "\t.space\t%d, 0\n", padsize); f 559 scripts/dtc/flattree.c asm_emit_align(f, alignsize); f 560 scripts/dtc/flattree.c emit_label(f, symprefix, "blob_abs_end"); f 797 scripts/dtc/flattree.c FILE *f; f 813 scripts/dtc/flattree.c f = srcfile_relative_open(fname, NULL); f 815 scripts/dtc/flattree.c rc = fread(&magic_buf, sizeof(magic_buf), 1, f); f 816 scripts/dtc/flattree.c if (ferror(f)) f 820 scripts/dtc/flattree.c if (feof(f)) f 830 scripts/dtc/flattree.c rc = fread(&totalsize_buf, sizeof(totalsize_buf), 1, f); f 831 scripts/dtc/flattree.c if (ferror(f)) f 834 scripts/dtc/flattree.c if (feof(f)) f 854 scripts/dtc/flattree.c if (feof(f)) f 858 scripts/dtc/flattree.c rc = fread(p, 1, sizeleft, f); f 859 scripts/dtc/flattree.c if (ferror(f)) f 922 scripts/dtc/flattree.c fclose(f); f 15 scripts/dtc/include-prefixes/dt-bindings/pinctrl/r7s72100-pinctrl.h #define RZA1_PINMUX(b, p, f) ((b) * RZA1_PINS_PER_PORT + (p) | (f << 16)) f 40 scripts/dtc/include-prefixes/dt-bindings/pinctrl/r7s9210-pinctrl.h #define RZA2_PINMUX(b, p, f) ((b) * RZA2_PINS_PER_PORT + (p) | (f << 16)) f 148 scripts/dtc/srcpos.c FILE *f; f 152 scripts/dtc/srcpos.c f = stdin; f 155 scripts/dtc/srcpos.c fullname = fopen_any_on_path(fname, &f); f 156 scripts/dtc/srcpos.c if (!f) f 169 scripts/dtc/srcpos.c return f; f 181 scripts/dtc/srcpos.c srcfile->f = srcfile_relative_open(fname, &srcfile->name); f 202 scripts/dtc/srcpos.c if (fclose(srcfile->f)) f 397 scripts/dtc/srcpos.c void srcpos_set_line(char *f, int l) f 399 scripts/dtc/srcpos.c current_srcfile->name = f; f 404 scripts/dtc/srcpos.c set_initial_path(f); f 14 scripts/dtc/srcpos.h FILE *f; f 101 scripts/dtc/srcpos.h extern void srcpos_set_line(char *f, int l); f 22 scripts/dtc/treesource.c yyin = current_srcfile->f; f 34 scripts/dtc/treesource.c static void write_prefix(FILE *f, int level) f 39 scripts/dtc/treesource.c fputc('\t', f); f 49 scripts/dtc/treesource.c static void write_propval_string(FILE *f, const char *s, size_t len) f 58 scripts/dtc/treesource.c fprintf(f, "\""); f 63 scripts/dtc/treesource.c fprintf(f, "\\a"); f 66 scripts/dtc/treesource.c fprintf(f, "\\b"); f 69 scripts/dtc/treesource.c fprintf(f, "\\t"); f 72 scripts/dtc/treesource.c fprintf(f, "\\n"); f 75 scripts/dtc/treesource.c fprintf(f, "\\v"); f 78 scripts/dtc/treesource.c fprintf(f, "\\f"); f 81 scripts/dtc/treesource.c fprintf(f, "\\r"); f 84 scripts/dtc/treesource.c fprintf(f, "\\\\"); f 87 scripts/dtc/treesource.c fprintf(f, "\\\""); f 90 scripts/dtc/treesource.c fprintf(f, "\\0"); f 94 scripts/dtc/treesource.c fprintf(f, "%c", c); f 96 scripts/dtc/treesource.c fprintf(f, "\\x%02"PRIx8, c); f 99 scripts/dtc/treesource.c fprintf(f, "\""); f 102 scripts/dtc/treesource.c static void write_propval_int(FILE *f, const char *p, size_t len, size_t width) f 110 scripts/dtc/treesource.c fprintf(f, "%02"PRIx8, *(const uint8_t*)p); f 113 scripts/dtc/treesource.c fprintf(f, "0x%02"PRIx16, fdt16_to_cpu(*(const fdt16_t*)p)); f 116 scripts/dtc/treesource.c fprintf(f, "0x%02"PRIx32, fdt32_to_cpu(*(const fdt32_t*)p)); f 119 scripts/dtc/treesource.c fprintf(f, "0x%02"PRIx64, fdt64_to_cpu(*(const fdt64_t*)p)); f 123 scripts/dtc/treesource.c fputc(' ', f); f 196 scripts/dtc/treesource.c static void write_propval(FILE *f, struct property *prop) f 205 scripts/dtc/treesource.c fprintf(f, ";"); f 209 scripts/dtc/treesource.c fprintf(f, " /* %s */", srcstr); f 213 scripts/dtc/treesource.c fprintf(f, "\n"); f 217 scripts/dtc/treesource.c fprintf(f, " ="); f 235 scripts/dtc/treesource.c fprintf(f, " %s", delim_start[emit_type]); f 237 scripts/dtc/treesource.c fprintf(f, " %s:", m->ref); f 239 scripts/dtc/treesource.c fputc(' ', f); f 248 scripts/dtc/treesource.c write_propval_int(f, p, chunk_len, 2); f 251 scripts/dtc/treesource.c write_propval_int(f, p, chunk_len, 4); f 254 scripts/dtc/treesource.c write_propval_int(f, p, chunk_len, 8); f 257 scripts/dtc/treesource.c write_propval_string(f, p, chunk_len); f 260 scripts/dtc/treesource.c write_propval_int(f, p, chunk_len, 1); f 265 scripts/dtc/treesource.c fprintf(f, pos == len ? "%s" : "%s,", f 270 scripts/dtc/treesource.c fprintf(f, ";"); f 274 scripts/dtc/treesource.c fprintf(f, " /* %s */", srcstr); f 278 scripts/dtc/treesource.c fprintf(f, "\n"); f 281 scripts/dtc/treesource.c static void write_tree_source_node(FILE *f, struct node *tree, int level) f 288 scripts/dtc/treesource.c write_prefix(f, level); f 290 scripts/dtc/treesource.c fprintf(f, "%s: ", l->label); f 292 scripts/dtc/treesource.c fprintf(f, "%s {", tree->name); f 294 scripts/dtc/treesource.c fprintf(f, "/ {"); f 299 scripts/dtc/treesource.c fprintf(f, " /* %s */", srcstr); f 303 scripts/dtc/treesource.c fprintf(f, "\n"); f 306 scripts/dtc/treesource.c write_prefix(f, level+1); f 308 scripts/dtc/treesource.c fprintf(f, "%s: ", l->label); f 309 scripts/dtc/treesource.c fprintf(f, "%s", prop->name); f 310 scripts/dtc/treesource.c write_propval(f, prop); f 313 scripts/dtc/treesource.c fprintf(f, "\n"); f 314 scripts/dtc/treesource.c write_tree_source_node(f, child, level+1); f 316 scripts/dtc/treesource.c write_prefix(f, level); f 317 scripts/dtc/treesource.c fprintf(f, "};"); f 321 scripts/dtc/treesource.c fprintf(f, " /* %s */", srcstr); f 325 scripts/dtc/treesource.c fprintf(f, "\n"); f 328 scripts/dtc/treesource.c void dt_to_source(FILE *f, struct dt_info *dti) f 332 scripts/dtc/treesource.c fprintf(f, "/dts-v1/;\n\n"); f 338 scripts/dtc/treesource.c fprintf(f, "%s: ", l->label); f 339 scripts/dtc/treesource.c fprintf(f, "/memreserve/\t0x%016llx 0x%016llx;\n", f 344 scripts/dtc/treesource.c write_tree_source_node(f, dti->dt, 0); f 205 scripts/dtc/yamltree.c void dt_to_yaml(FILE *f, struct dt_info *dti) f 211 scripts/dtc/yamltree.c yaml_emitter_set_output_file(&emitter, f); f 110 scripts/extract-cert.c FILE *f = fopen(cert_dst, "wb"); f 111 scripts/extract-cert.c ERR(!f, "%s", cert_dst); f 112 scripts/extract-cert.c fclose(f); f 57 scripts/genksyms/genksyms.c static void print_list(FILE * f, struct string_list *list); f 408 scripts/genksyms/genksyms.c static struct string_list *read_node(FILE *f) f 416 scripts/genksyms/genksyms.c while ((c = fgetc(f)) != EOF) { f 426 scripts/genksyms/genksyms.c ungetc(c, f); f 456 scripts/genksyms/genksyms.c static void read_reference(FILE *f) f 458 scripts/genksyms/genksyms.c while (!feof(f)) { f 464 scripts/genksyms/genksyms.c sym = read_node(f); f 469 scripts/genksyms/genksyms.c sym = read_node(f); f 473 scripts/genksyms/genksyms.c def = read_node(f); f 478 scripts/genksyms/genksyms.c def = read_node(f); f 483 scripts/genksyms/genksyms.c def = read_node(f); f 492 scripts/genksyms/genksyms.c static void print_node(FILE * f, struct string_list *list) f 495 scripts/genksyms/genksyms.c putc(symbol_types[list->tag].n, f); f 496 scripts/genksyms/genksyms.c putc('#', f); f 498 scripts/genksyms/genksyms.c fputs(list->string, f); f 501 scripts/genksyms/genksyms.c static void print_list(FILE * f, struct string_list *list) f 508 scripts/genksyms/genksyms.c fputs("(nil)", f); f 525 scripts/genksyms/genksyms.c print_node(f, *b++); f 526 scripts/genksyms/genksyms.c putc(' ', f); f 93 scripts/insert-sys-cert.c static void get_symbol_from_map(Elf_Ehdr *hdr, FILE *f, char *name, f 102 scripts/insert-sys-cert.c if (fseek(f, 0, SEEK_SET) != 0) { f 106 scripts/insert-sys-cert.c while (fgets(l, LINE_SIZE, f)) { f 57 scripts/kconfig/lkc_proto.h void env_write_dep(FILE *f, const char *auto_conf_name); f 51 scripts/kconfig/lxdialog/util.c #define DLG_COLOR(dialog, f, b, h) \ f 53 scripts/kconfig/lxdialog/util.c dlg.dialog.fg = (f); \ f 90 scripts/kconfig/preprocess.c void env_write_dep(FILE *f, const char *autoconfig_name) f 95 scripts/kconfig/preprocess.c fprintf(f, "ifneq \"$(%s)\" \"%s\"\n", e->name, e->value); f 96 scripts/kconfig/preprocess.c fprintf(f, "%s: FORCE\n", autoconfig_name); f 97 scripts/kconfig/preprocess.c fprintf(f, "endif\n"); f 204 scripts/kconfig/preprocess.c const struct function *f; f 208 scripts/kconfig/preprocess.c f = &function_table[i]; f 209 scripts/kconfig/preprocess.c if (strcmp(f->name, name)) f 212 scripts/kconfig/preprocess.c if (argc < f->min_args) f 216 scripts/kconfig/preprocess.c if (argc > f->max_args) f 220 scripts/kconfig/preprocess.c return f->func(argc, argv); f 68 scripts/mod/file2alias.c #define DEF_FIELD(m, devid, f) \ f 69 scripts/mod/file2alias.c typeof(((struct devid *)0)->f) f = TO_NATIVE(*(typeof(f) *)((m) + OFF_##devid##_##f)) f 75 scripts/mod/file2alias.c #define DEF_FIELD_ADDR_VAR(m, devid, f, v) \ f 76 scripts/mod/file2alias.c typeof(((struct devid *)0)->f) *v = ((m) + OFF_##devid##_##f) f 82 scripts/mod/file2alias.c #define DEF_FIELD_ADDR(m, devid, f) \ f 83 scripts/mod/file2alias.c DEF_FIELD_ADDR_VAR(m, devid, f, f) f 442 security/apparmor/apparmorfs.c static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, f 445 security/apparmor/apparmorfs.c struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); f 459 security/apparmor/apparmorfs.c static ssize_t profile_replace(struct file *f, const char __user *buf, f 462 security/apparmor/apparmorfs.c struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); f 476 security/apparmor/apparmorfs.c static ssize_t profile_remove(struct file *f, const char __user *buf, f 482 security/apparmor/apparmorfs.c struct aa_ns *ns = aa_get_ns(f->f_inode->i_private); f 2099 security/apparmor/apparmorfs.c static void *p_start(struct seq_file *f, loff_t *pos) f 2104 security/apparmor/apparmorfs.c f->private = root; f 2127 security/apparmor/apparmorfs.c static void *p_next(struct seq_file *f, void *p, loff_t *pos) f 2130 security/apparmor/apparmorfs.c struct aa_ns *ns = f->private; f 2143 security/apparmor/apparmorfs.c static void p_stop(struct seq_file *f, void *p) f 2146 security/apparmor/apparmorfs.c struct aa_ns *root = f->private, *ns; f 2163 security/apparmor/apparmorfs.c static int seq_show_profile(struct seq_file *f, void *p) f 2166 security/apparmor/apparmorfs.c struct aa_ns *root = f->private; f 2168 security/apparmor/apparmorfs.c aa_label_seq_xprint(f, root, &profile->label, f 2170 security/apparmor/apparmorfs.c seq_putc(f, '\n'); f 214 security/apparmor/audit.c struct audit_field *f = &rule->fields[i]; f 216 security/apparmor/audit.c switch (f->type) { f 318 security/apparmor/include/label.h void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, f 323 security/apparmor/include/label.h void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp); f 1737 security/apparmor/label.c void aa_label_seq_xprint(struct seq_file *f, struct aa_ns *ns, f 1740 security/apparmor/label.c AA_BUG(!f); f 1752 security/apparmor/label.c seq_printf(f, "%s", str); f 1755 security/apparmor/label.c seq_printf(f, "%s (%s)", label->hname, f 1758 security/apparmor/label.c seq_printf(f, "%s", label->hname); f 1792 security/apparmor/label.c void aa_label_seq_print(struct seq_file *f, struct aa_label *label, gfp_t gfp) f 1796 security/apparmor/label.c aa_label_seq_xprint(f, ns, label, FLAG_VIEW_SUBNS, gfp); f 413 security/integrity/ima/ima_crypto.c struct file *f = file; f 431 security/integrity/ima/ima_crypto.c f = dentry_open(&file->f_path, flags, file->f_cred); f 432 security/integrity/ima/ima_crypto.c if (IS_ERR(f)) { f 438 security/integrity/ima/ima_crypto.c f = file; f 439 security/integrity/ima/ima_crypto.c f->f_mode |= FMODE_READ; f 446 security/integrity/ima/ima_crypto.c i_size = i_size_read(file_inode(f)); f 449 security/integrity/ima/ima_crypto.c rc = ima_calc_file_ahash(f, hash); f 454 security/integrity/ima/ima_crypto.c rc = ima_calc_file_shash(f, hash); f 457 security/integrity/ima/ima_crypto.c fput(f); f 459 security/integrity/ima/ima_crypto.c f->f_mode &= ~FMODE_READ; f 3385 security/selinux/ss/services.c struct audit_field *f = &rule->fields[i]; f 3386 security/selinux/ss/services.c switch (f->type) { f 4369 security/smack/smack_lsm.c struct audit_field *f; f 4373 security/smack/smack_lsm.c f = &krule->fields[i]; f 4375 security/smack/smack_lsm.c if (f->type == AUDIT_SUBJ_USER || f->type == AUDIT_OBJ_USER) f 314 security/tomoyo/tomoyo.c static int tomoyo_file_open(struct file *f) f 319 security/tomoyo/tomoyo.c return tomoyo_check_open_permission(tomoyo_domain(), &f->f_path, f 320 security/tomoyo/tomoyo.c f->f_flags); f 832 security/tomoyo/util.c static bool tomoyo_path_matches_pattern2(const char *f, const char *p) f 837 security/tomoyo/util.c while (*f && *p) { f 838 security/tomoyo/util.c f_delimiter = strchr(f, '/'); f 840 security/tomoyo/util.c f_delimiter = f + strlen(f); f 846 security/tomoyo/util.c if (!tomoyo_file_matches_pattern(f, f_delimiter, p, f 849 security/tomoyo/util.c f = f_delimiter; f 850 security/tomoyo/util.c if (*f) f 851 security/tomoyo/util.c f++; f 860 security/tomoyo/util.c return !*f && !*p; f 873 security/tomoyo/util.c if (!tomoyo_file_matches_pattern(f, f_delimiter, p + 2, f 877 security/tomoyo/util.c f = f_delimiter; f 878 security/tomoyo/util.c if (!*f) f 880 security/tomoyo/util.c f++; f 882 security/tomoyo/util.c if (tomoyo_path_matches_pattern2(f, p_delimiter + 1)) f 884 security/tomoyo/util.c f_delimiter = strchr(f, '/'); f 918 security/tomoyo/util.c const char *f = filename->name; f 929 security/tomoyo/util.c if (strncmp(f, p, len)) f 931 security/tomoyo/util.c f += len; f 933 security/tomoyo/util.c return tomoyo_path_matches_pattern2(f, p); f 77 sound/core/compress_offload.c static int snd_compr_open(struct inode *inode, struct file *f) f 86 sound/core/compress_offload.c if ((f->f_flags & O_ACCMODE) == O_WRONLY) f 88 sound/core/compress_offload.c else if ((f->f_flags & O_ACCMODE) == O_RDONLY) f 131 sound/core/compress_offload.c f->private_data = (void *)data; f 143 sound/core/compress_offload.c static int snd_compr_free(struct inode *inode, struct file *f) f 145 sound/core/compress_offload.c struct snd_compr_file *data = f->private_data; f 281 sound/core/compress_offload.c static ssize_t snd_compr_write(struct file *f, const char __user *buf, f 284 sound/core/compress_offload.c struct snd_compr_file *data = f->private_data; f 332 sound/core/compress_offload.c static ssize_t snd_compr_read(struct file *f, char __user *buf, f 335 sound/core/compress_offload.c struct snd_compr_file *data = f->private_data; f 382 sound/core/compress_offload.c static int snd_compr_mmap(struct file *f, struct vm_area_struct *vma) f 395 sound/core/compress_offload.c static __poll_t snd_compr_poll(struct file *f, poll_table *wait) f 397 sound/core/compress_offload.c struct snd_compr_file *data = f->private_data; f 418 sound/core/compress_offload.c poll_wait(f, &stream->runtime->sleep, wait); f 893 sound/core/compress_offload.c static long snd_compr_ioctl(struct file *f, unsigned int cmd, unsigned long arg) f 895 sound/core/compress_offload.c struct snd_compr_file *data = f->private_data; f 1840 sound/core/oss/pcm_oss.c int f = snd_pcm_oss_format_to((__force snd_pcm_format_t)fmt); f 1841 sound/core/oss/pcm_oss.c if (f >= 0) f 1842 sound/core/oss/pcm_oss.c formats |= f; f 356 sound/core/oss/pcm_plugin.c snd_pcm_format_t f = preferred_formats[i]; f 358 sound/core/oss/pcm_plugin.c if (!snd_mask_test(format_mask, (__force int)f)) f 360 sound/core/oss/pcm_plugin.c w = snd_pcm_format_width(f); f 365 sound/core/oss/pcm_plugin.c badness += snd_pcm_format_unsigned(f) != unsignd; f 366 sound/core/oss/pcm_plugin.c badness += snd_pcm_format_big_endian(f) != big; f 368 sound/core/oss/pcm_plugin.c best_format = f; f 1997 sound/core/pcm_native.c struct fd f = fdget(fd); f 1999 sound/core/pcm_native.c if (!f.file) f 2001 sound/core/pcm_native.c if (!is_pcm_file(f.file)) { f 2005 sound/core/pcm_native.c pcm_file = f.file->private_data; f 2051 sound/core/pcm_native.c fdput(f); f 20 sound/core/seq/seq_fifo.c struct snd_seq_fifo *f; f 22 sound/core/seq/seq_fifo.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 23 sound/core/seq/seq_fifo.c if (!f) f 26 sound/core/seq/seq_fifo.c f->pool = snd_seq_pool_new(poolsize); f 27 sound/core/seq/seq_fifo.c if (f->pool == NULL) { f 28 sound/core/seq/seq_fifo.c kfree(f); f 31 sound/core/seq/seq_fifo.c if (snd_seq_pool_init(f->pool) < 0) { f 32 sound/core/seq/seq_fifo.c snd_seq_pool_delete(&f->pool); f 33 sound/core/seq/seq_fifo.c kfree(f); f 37 sound/core/seq/seq_fifo.c spin_lock_init(&f->lock); f 38 sound/core/seq/seq_fifo.c snd_use_lock_init(&f->use_lock); f 39 sound/core/seq/seq_fifo.c init_waitqueue_head(&f->input_sleep); f 40 sound/core/seq/seq_fifo.c atomic_set(&f->overflow, 0); f 42 sound/core/seq/seq_fifo.c f->head = NULL; f 43 sound/core/seq/seq_fifo.c f->tail = NULL; f 44 sound/core/seq/seq_fifo.c f->cells = 0; f 46 sound/core/seq/seq_fifo.c return f; f 51 sound/core/seq/seq_fifo.c struct snd_seq_fifo *f; f 55 sound/core/seq/seq_fifo.c f = *fifo; f 56 sound/core/seq/seq_fifo.c if (snd_BUG_ON(!f)) f 60 sound/core/seq/seq_fifo.c if (f->pool) f 61 sound/core/seq/seq_fifo.c snd_seq_pool_mark_closing(f->pool); f 63 sound/core/seq/seq_fifo.c snd_seq_fifo_clear(f); f 66 sound/core/seq/seq_fifo.c if (waitqueue_active(&f->input_sleep)) f 67 sound/core/seq/seq_fifo.c wake_up(&f->input_sleep); f 72 sound/core/seq/seq_fifo.c if (f->pool) { f 73 sound/core/seq/seq_fifo.c snd_seq_pool_done(f->pool); f 74 sound/core/seq/seq_fifo.c snd_seq_pool_delete(&f->pool); f 77 sound/core/seq/seq_fifo.c kfree(f); f 80 sound/core/seq/seq_fifo.c static struct snd_seq_event_cell *fifo_cell_out(struct snd_seq_fifo *f); f 83 sound/core/seq/seq_fifo.c void snd_seq_fifo_clear(struct snd_seq_fifo *f) f 88 sound/core/seq/seq_fifo.c atomic_set(&f->overflow, 0); f 90 sound/core/seq/seq_fifo.c snd_use_lock_sync(&f->use_lock); f 91 sound/core/seq/seq_fifo.c spin_lock_irq(&f->lock); f 93 sound/core/seq/seq_fifo.c while ((cell = fifo_cell_out(f)) != NULL) { f 96 sound/core/seq/seq_fifo.c spin_unlock_irq(&f->lock); f 101 sound/core/seq/seq_fifo.c int snd_seq_fifo_event_in(struct snd_seq_fifo *f, f 108 sound/core/seq/seq_fifo.c if (snd_BUG_ON(!f)) f 111 sound/core/seq/seq_fifo.c snd_use_lock_use(&f->use_lock); f 112 sound/core/seq/seq_fifo.c err = snd_seq_event_dup(f->pool, event, &cell, 1, NULL, NULL); /* always non-blocking */ f 115 sound/core/seq/seq_fifo.c atomic_inc(&f->overflow); f 116 sound/core/seq/seq_fifo.c snd_use_lock_free(&f->use_lock); f 121 sound/core/seq/seq_fifo.c spin_lock_irqsave(&f->lock, flags); f 122 sound/core/seq/seq_fifo.c if (f->tail != NULL) f 123 sound/core/seq/seq_fifo.c f->tail->next = cell; f 124 sound/core/seq/seq_fifo.c f->tail = cell; f 125 sound/core/seq/seq_fifo.c if (f->head == NULL) f 126 sound/core/seq/seq_fifo.c f->head = cell; f 128 sound/core/seq/seq_fifo.c f->cells++; f 129 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 132 sound/core/seq/seq_fifo.c if (waitqueue_active(&f->input_sleep)) f 133 sound/core/seq/seq_fifo.c wake_up(&f->input_sleep); f 135 sound/core/seq/seq_fifo.c snd_use_lock_free(&f->use_lock); f 142 sound/core/seq/seq_fifo.c static struct snd_seq_event_cell *fifo_cell_out(struct snd_seq_fifo *f) f 146 sound/core/seq/seq_fifo.c if ((cell = f->head) != NULL) { f 147 sound/core/seq/seq_fifo.c f->head = cell->next; f 150 sound/core/seq/seq_fifo.c if (f->tail == cell) f 151 sound/core/seq/seq_fifo.c f->tail = NULL; f 154 sound/core/seq/seq_fifo.c f->cells--; f 161 sound/core/seq/seq_fifo.c int snd_seq_fifo_cell_out(struct snd_seq_fifo *f, f 168 sound/core/seq/seq_fifo.c if (snd_BUG_ON(!f)) f 173 sound/core/seq/seq_fifo.c spin_lock_irqsave(&f->lock, flags); f 174 sound/core/seq/seq_fifo.c while ((cell = fifo_cell_out(f)) == NULL) { f 177 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 181 sound/core/seq/seq_fifo.c add_wait_queue(&f->input_sleep, &wait); f 182 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 184 sound/core/seq/seq_fifo.c spin_lock_irqsave(&f->lock, flags); f 185 sound/core/seq/seq_fifo.c remove_wait_queue(&f->input_sleep, &wait); f 187 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 191 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 198 sound/core/seq/seq_fifo.c void snd_seq_fifo_cell_putback(struct snd_seq_fifo *f, f 204 sound/core/seq/seq_fifo.c spin_lock_irqsave(&f->lock, flags); f 205 sound/core/seq/seq_fifo.c cell->next = f->head; f 206 sound/core/seq/seq_fifo.c f->head = cell; f 207 sound/core/seq/seq_fifo.c if (!f->tail) f 208 sound/core/seq/seq_fifo.c f->tail = cell; f 209 sound/core/seq/seq_fifo.c f->cells++; f 210 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 216 sound/core/seq/seq_fifo.c int snd_seq_fifo_poll_wait(struct snd_seq_fifo *f, struct file *file, f 219 sound/core/seq/seq_fifo.c poll_wait(file, &f->input_sleep, wait); f 220 sound/core/seq/seq_fifo.c return (f->cells > 0); f 224 sound/core/seq/seq_fifo.c int snd_seq_fifo_resize(struct snd_seq_fifo *f, int poolsize) f 229 sound/core/seq/seq_fifo.c if (snd_BUG_ON(!f || !f->pool)) f 241 sound/core/seq/seq_fifo.c spin_lock_irq(&f->lock); f 243 sound/core/seq/seq_fifo.c oldpool = f->pool; f 244 sound/core/seq/seq_fifo.c oldhead = f->head; f 246 sound/core/seq/seq_fifo.c f->pool = newpool; f 247 sound/core/seq/seq_fifo.c f->head = NULL; f 248 sound/core/seq/seq_fifo.c f->tail = NULL; f 249 sound/core/seq/seq_fifo.c f->cells = 0; f 251 sound/core/seq/seq_fifo.c spin_unlock_irq(&f->lock); f 255 sound/core/seq/seq_fifo.c snd_use_lock_sync(&f->use_lock); f 268 sound/core/seq/seq_fifo.c int snd_seq_fifo_unused_cells(struct snd_seq_fifo *f) f 273 sound/core/seq/seq_fifo.c if (!f) f 276 sound/core/seq/seq_fifo.c snd_use_lock_use(&f->use_lock); f 277 sound/core/seq/seq_fifo.c spin_lock_irqsave(&f->lock, flags); f 278 sound/core/seq/seq_fifo.c cells = snd_seq_unused_cells(f->pool); f 279 sound/core/seq/seq_fifo.c spin_unlock_irqrestore(&f->lock, flags); f 280 sound/core/seq/seq_fifo.c snd_use_lock_free(&f->use_lock); f 31 sound/core/seq/seq_fifo.h void snd_seq_fifo_delete(struct snd_seq_fifo **f); f 35 sound/core/seq/seq_fifo.h int snd_seq_fifo_event_in(struct snd_seq_fifo *f, struct snd_seq_event *event); f 42 sound/core/seq/seq_fifo.h int snd_seq_fifo_cell_out(struct snd_seq_fifo *f, struct snd_seq_event_cell **cellp, int nonblock); f 45 sound/core/seq/seq_fifo.h void snd_seq_fifo_cell_putback(struct snd_seq_fifo *f, struct snd_seq_event_cell *cell); f 48 sound/core/seq/seq_fifo.h void snd_seq_fifo_clear(struct snd_seq_fifo *f); f 51 sound/core/seq/seq_fifo.h int snd_seq_fifo_poll_wait(struct snd_seq_fifo *f, struct file *file, poll_table *wait); f 54 sound/core/seq/seq_fifo.h int snd_seq_fifo_resize(struct snd_seq_fifo *f, int poolsize); f 57 sound/core/seq/seq_fifo.h int snd_seq_fifo_unused_cells(struct snd_seq_fifo *f); f 44 sound/core/seq/seq_prioq.c struct snd_seq_prioq *f; f 46 sound/core/seq/seq_prioq.c f = kzalloc(sizeof(*f), GFP_KERNEL); f 47 sound/core/seq/seq_prioq.c if (!f) f 50 sound/core/seq/seq_prioq.c spin_lock_init(&f->lock); f 51 sound/core/seq/seq_prioq.c f->head = NULL; f 52 sound/core/seq/seq_prioq.c f->tail = NULL; f 53 sound/core/seq/seq_prioq.c f->cells = 0; f 55 sound/core/seq/seq_prioq.c return f; f 61 sound/core/seq/seq_prioq.c struct snd_seq_prioq *f = *fifo; f 64 sound/core/seq/seq_prioq.c if (f == NULL) { f 72 sound/core/seq/seq_prioq.c if (f->cells > 0) { f 74 sound/core/seq/seq_prioq.c while (f->cells > 0) f 75 sound/core/seq/seq_prioq.c snd_seq_cell_free(snd_seq_prioq_cell_out(f, NULL)); f 78 sound/core/seq/seq_prioq.c kfree(f); f 131 sound/core/seq/seq_prioq.c int snd_seq_prioq_cell_in(struct snd_seq_prioq * f, f 139 sound/core/seq/seq_prioq.c if (snd_BUG_ON(!f || !cell)) f 145 sound/core/seq/seq_prioq.c spin_lock_irqsave(&f->lock, flags); f 150 sound/core/seq/seq_prioq.c if (f->tail && !prior) { f 151 sound/core/seq/seq_prioq.c if (compare_timestamp(&cell->event, &f->tail->event)) { f 153 sound/core/seq/seq_prioq.c f->tail->next = cell; f 154 sound/core/seq/seq_prioq.c f->tail = cell; f 156 sound/core/seq/seq_prioq.c f->cells++; f 157 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 165 sound/core/seq/seq_prioq.c cur = f->head; /* cursor */ f 182 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 193 sound/core/seq/seq_prioq.c if (f->head == cur) /* this is the first cell, set head to it */ f 194 sound/core/seq/seq_prioq.c f->head = cell; f 196 sound/core/seq/seq_prioq.c f->tail = cell; f 197 sound/core/seq/seq_prioq.c f->cells++; f 198 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 212 sound/core/seq/seq_prioq.c struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f, f 218 sound/core/seq/seq_prioq.c if (f == NULL) { f 222 sound/core/seq/seq_prioq.c spin_lock_irqsave(&f->lock, flags); f 224 sound/core/seq/seq_prioq.c cell = f->head; f 228 sound/core/seq/seq_prioq.c f->head = cell->next; f 231 sound/core/seq/seq_prioq.c if (f->tail == cell) f 232 sound/core/seq/seq_prioq.c f->tail = NULL; f 235 sound/core/seq/seq_prioq.c f->cells--; f 238 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 243 sound/core/seq/seq_prioq.c int snd_seq_prioq_avail(struct snd_seq_prioq * f) f 245 sound/core/seq/seq_prioq.c if (f == NULL) { f 249 sound/core/seq/seq_prioq.c return f->cells; f 275 sound/core/seq/seq_prioq.c void snd_seq_prioq_leave(struct snd_seq_prioq * f, int client, int timestamp) f 283 sound/core/seq/seq_prioq.c spin_lock_irqsave(&f->lock, flags); f 284 sound/core/seq/seq_prioq.c cell = f->head; f 289 sound/core/seq/seq_prioq.c if (cell == f->head) { f 290 sound/core/seq/seq_prioq.c f->head = cell->next; f 294 sound/core/seq/seq_prioq.c if (cell == f->tail) f 295 sound/core/seq/seq_prioq.c f->tail = cell->next; f 296 sound/core/seq/seq_prioq.c f->cells--; f 318 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 384 sound/core/seq/seq_prioq.c void snd_seq_prioq_remove_events(struct snd_seq_prioq * f, int client, f 393 sound/core/seq/seq_prioq.c spin_lock_irqsave(&f->lock, flags); f 394 sound/core/seq/seq_prioq.c cell = f->head; f 402 sound/core/seq/seq_prioq.c if (cell == f->head) { f 403 sound/core/seq/seq_prioq.c f->head = cell->next; f 408 sound/core/seq/seq_prioq.c if (cell == f->tail) f 409 sound/core/seq/seq_prioq.c f->tail = cell->next; f 410 sound/core/seq/seq_prioq.c f->cells--; f 426 sound/core/seq/seq_prioq.c spin_unlock_irqrestore(&f->lock, flags); f 29 sound/core/seq/seq_prioq.h int snd_seq_prioq_cell_in(struct snd_seq_prioq *f, struct snd_seq_event_cell *cell); f 32 sound/core/seq/seq_prioq.h struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f, f 36 sound/core/seq/seq_prioq.h int snd_seq_prioq_avail(struct snd_seq_prioq *f); f 39 sound/core/seq/seq_prioq.h void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp); f 42 sound/core/seq/seq_prioq.h void snd_seq_prioq_remove_events(struct snd_seq_prioq *f, int client, f 300 sound/firewire/amdtp-am824.c unsigned int f, port; f 303 sound/firewire/amdtp-am824.c for (f = 0; f < frames; f++) { f 306 sound/firewire/amdtp-am824.c port = (data_block_counter + f) % 8; f 307 sound/firewire/amdtp-am824.c if (f < MAX_MIDI_RX_BLOCKS && f 330 sound/firewire/amdtp-am824.c int f; f 332 sound/firewire/amdtp-am824.c for (f = 0; f < frames; f++) { f 333 sound/firewire/amdtp-am824.c unsigned int port = f; f 252 sound/firewire/digi00x/amdtp-dot.c unsigned int f, port; f 256 sound/firewire/digi00x/amdtp-dot.c for (f = 0; f < data_blocks; f++) { f 257 sound/firewire/digi00x/amdtp-dot.c port = (data_block_counter + f) % 8; f 296 sound/firewire/digi00x/amdtp-dot.c unsigned int f, port, len; f 299 sound/firewire/digi00x/amdtp-dot.c for (f = 0; f < data_blocks; f++) { f 346 sound/pci/asihpi/hpi_internal.h #define HPI_ADAPTER_FAMILY_ASI(f) (f & HPI_ADAPTER_FAMILY_MASK) f 347 sound/pci/asihpi/hpi_internal.h #define HPI_MODULE_FAMILY_ASI(f) (f & HPI_MODULE_FAMILY_MASK) f 348 sound/pci/asihpi/hpi_internal.h #define HPI_ADAPTER_ASI(f) (f) f 797 sound/pci/au88x0/au88x0_core.c int empty, int valid, int f) f 834 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); f 837 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); f 838 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); f 841 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); f 842 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); f 848 sound/pci/au88x0/au88x0_core.c temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); f 852 sound/pci/au88x0/au88x0_core.c ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; f 856 sound/pci/au88x0/au88x0_core.c ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; f 898 sound/pci/au88x0/au88x0_core.c int empty, int valid, int f) f 927 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfffbffff) | ((f & 1) << 0x12); f 930 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xf7ffffff) | ((f & 1) << 0x1b); f 931 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xefffffff) | ((f & 1) << 0x1c); f 934 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfeffffff) | ((f & 1) << 0x18); f 935 sound/pci/au88x0/au88x0_core.c temp = (temp & 0xfdffffff) | ((f & 1) << 0x19); f 941 sound/pci/au88x0/au88x0_core.c temp = ((f & 1) << 0x12) | (temp & 0xfffbffef); f 945 sound/pci/au88x0/au88x0_core.c ((f & 1) << 0x1b) | (temp & 0xe7ffffef) | FIFO_BITS; f 949 sound/pci/au88x0/au88x0_core.c ((f & 1) << 0x18) | (temp & 0xfcffffef) | FIFO_BITS; f 111 sound/pci/echoaudio/echoaudio.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 120 sound/pci/echoaudio/echoaudio.c return snd_mask_refine(f, &fmt); f 126 sound/pci/echoaudio/echoaudio.c return snd_mask_refine(f, &fmt); f 139 sound/pci/echoaudio/echoaudio.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 145 sound/pci/echoaudio/echoaudio.c if (f->bits[0] == SNDRV_PCM_FMTBIT_S32_BE) { f 156 sound/pci/echoaudio/echoaudio.c if (f->bits[0] == SNDRV_PCM_FMTBIT_U8) { f 173 sound/pci/echoaudio/echoaudio.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 198 sound/pci/echoaudio/echoaudio.c return snd_mask_refine(f, &fmt); f 208 sound/pci/echoaudio/echoaudio.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 214 sound/pci/echoaudio/echoaudio.c fmask = f->bits[0] + ((u64)f->bits[1] << 32); f 147 sound/pci/oxygen/oxygen_regs.h #define OXYGEN_I2S_MCLK(f) (((f) & 3) << OXYGEN_I2S_MCLK_SHIFT) f 990 sound/pci/oxygen/xonar_wm87x6.c #define WM8776_FIELD_CTL_VOLUME(a, b, c, d, e, f, g, h, tlv_p) { \ f 991 sound/pci/oxygen/xonar_wm87x6.c _WM8776_FIELD_CTL(a " Capture Volume", b, c, d, e, f, g, h), \ f 244 sound/pci/riptide/riptide.c #define SEND_SETF(p,b,c,d,e,f,g) sendcmd(p,PARM,SETF|WORD1(b)|BYTE3(c),d|BYTE1(e)|BYTE2(f)|BYTE3(g),RET(0)) /* set sample format at mixer */ f 251 sound/pci/riptide/riptide.c #define SEND_LSEL(p,b,c,d,e,f,g,h) sendcmd(p,PARM,LSEL|BYTE1(b)|BYTE2(c)|BYTE3(d),BYTE0(e)|BYTE1(f)|BYTE2(g)|BYTE3(h),RET(0)) /* select paths for internal connections */ f 262 sound/pci/riptide/riptide.c #define SEND_TXAC(p,b,c,d,e,f) sendcmd(p,PARM,TXAC|BYTE1(b)|WORD2(c),WORD0(d)|BYTE2(e)|BYTE3(f),RET(0)) f 1476 sound/pci/riptide/riptide.c unsigned int i, j, size, pages, f, pt, period; f 1481 sound/pci/riptide/riptide.c f = PAGE_SIZE; f 1482 sound/pci/riptide/riptide.c while ((size + (f >> 1) - 1) <= (f << 7) && (f << 1) > period) f 1483 sound/pci/riptide/riptide.c f = f >> 1; f 1484 sound/pci/riptide/riptide.c pages = DIV_ROUND_UP(size, f); f 1489 sound/pci/riptide/riptide.c size, pages, f, period); f 1504 sound/pci/riptide/riptide.c pt = (pt + f) % PAGE_SIZE; f 1507 sound/pci/riptide/riptide.c c->dwSegLen = cpu_to_le32(f); f 1512 sound/pci/riptide/riptide.c size -= f; f 95 sound/ppc/beep.c int i, j, f; f 139 sound/ppc/beep.c f = ncycles * 65536 / nsamples; f 144 sound/ppc/beep.c j = (j + f) & 0xffff; f 952 sound/soc/codecs/tscs42xx.c #define PLL_CTL(f, rt, rd, r1b_l, r9, ra, rb, \ f 955 sound/soc/codecs/tscs42xx.c .input_freq = f, \ f 524 sound/soc/codecs/tscs454.c #define PLL_CTL(f, t, c1, r1, o1, f1l, f1h, c2, r2, o2, f2l, f2h) \ f 526 sound/soc/codecs/tscs454.c .freq_in = f, \ f 421 sound/soc/codecs/wm8974.c unsigned int f; f 429 sound/soc/codecs/wm8974.c f = wm8974_get_mclkdiv(priv->mclk, fs256, &mclkdiv); f 431 sound/soc/codecs/wm8974.c if (f != priv->mclk) { f 318 sound/soc/intel/atom/sst-atom-controls.h dst.location_id.f = (loc_id)) f 346 sound/soc/intel/atom/sst-atom-controls.h u16 f; /* full */ f 695 sound/soc/sh/rcar/rsnd.h #define rsnd_flags_has(p, f) ((p)->flags & (f)) f 696 sound/soc/sh/rcar/rsnd.h #define rsnd_flags_set(p, f) ((p)->flags |= (f)) f 697 sound/soc/sh/rcar/rsnd.h #define rsnd_flags_del(p, f) ((p)->flags &= ~(f)) f 2015 sound/sparc/dbri.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 2021 sound/sparc/dbri.c return snd_mask_refine(f, &fmt); f 2031 sound/sparc/dbri.c struct snd_mask *f = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT); f 2035 sound/sparc/dbri.c if (!(f->bits[0] & SNDRV_PCM_FMTBIT_S16_BE)) { f 1081 sound/usb/endpoint.c unsigned int f; f 1163 sound/usb/endpoint.c f = le32_to_cpup(urb->transfer_buffer); f 1165 sound/usb/endpoint.c f &= 0x00ffffff; f 1167 sound/usb/endpoint.c f &= 0x0fffffff; f 1169 sound/usb/endpoint.c if (f == 0) f 1178 sound/usb/endpoint.c if (f < ep->freqn - 0x8000) f 1179 sound/usb/endpoint.c f += 0xf000; f 1180 sound/usb/endpoint.c else if (f > ep->freqn + 0x8000) f 1181 sound/usb/endpoint.c f -= 0xf000; f 1190 sound/usb/endpoint.c while (f < ep->freqn - ep->freqn / 4) { f 1191 sound/usb/endpoint.c f <<= 1; f 1194 sound/usb/endpoint.c while (f > ep->freqn + ep->freqn / 2) { f 1195 sound/usb/endpoint.c f >>= 1; f 1200 sound/usb/endpoint.c f <<= ep->freqshift; f 1202 sound/usb/endpoint.c f >>= -ep->freqshift; f 1204 sound/usb/endpoint.c if (likely(f >= ep->freqn - ep->freqn / 8 && f <= ep->freqmax)) { f 1210 sound/usb/endpoint.c ep->freqm = f; f 2894 sound/usb/mixer.c struct uac3_badd_profile *f, f 2901 sound/usb/mixer.c if (f->c_chmask < 0 && f->p_chmask < 0) { f 2904 sound/usb/mixer.c f->name); f 2910 sound/usb/mixer.c if ((f->c_chmask < 0 && !c_chmask) || f 2911 sound/usb/mixer.c (f->c_chmask >= 0 && f->c_chmask != c_chmask)) { f 2913 sound/usb/mixer.c f->name); f 2916 sound/usb/mixer.c if ((f->p_chmask < 0 && !p_chmask) || f 2917 sound/usb/mixer.c (f->p_chmask >= 0 && f->p_chmask != p_chmask)) { f 2919 sound/usb/mixer.c f->name); f 2938 sound/usb/mixer.c struct uac3_badd_profile *f; f 3024 sound/usb/mixer.c for (f = uac3_badd_profiles; f->name; f++) { f 3025 sound/usb/mixer.c if (badd_profile == f->subclass) f 3028 sound/usb/mixer.c if (!f->name) f 3030 sound/usb/mixer.c if (!uac3_badd_func_has_valid_channels(mixer, f, c_chmask, p_chmask)) f 3032 sound/usb/mixer.c st_chmask = f->st_chmask; f 3065 sound/usb/mixer.c if (f->subclass == UAC3_FUNCTION_SUBCLASS_HEADSET_ADAPTER) { f 234 sound/usb/validate.c #define FUNC(p, t, f) { .protocol = (p), .type = (t), .func = (f) } f 189 tools/arch/s390/include/uapi/asm/ptrace.h float f; f 216 tools/bpf/bpf_dbg.c static void bpf_disasm(const struct sock_filter f, unsigned int i) f 219 tools/bpf/bpf_dbg.c int val = f.k; f 222 tools/bpf/bpf_dbg.c switch (f.code) { f 302 tools/bpf/bpf_dbg.c val = i + 1 + f.k; f 423 tools/bpf/bpf_dbg.c val = f.code; f 431 tools/bpf/bpf_dbg.c if ((BPF_CLASS(f.code) == BPF_JMP && BPF_OP(f.code) != BPF_JA)) f 433 tools/bpf/bpf_dbg.c i + 1 + f.jt, i + 1 + f.jf); f 438 tools/bpf/bpf_dbg.c static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) f 444 tools/bpf/bpf_dbg.c f->code, f->jt, f->jf, f->k); f 446 tools/bpf/bpf_dbg.c bpf_disasm(*f, r->Pc); f 448 tools/bpf/bpf_dbg.c if (f->jt || f->jf) { f 450 tools/bpf/bpf_dbg.c bpf_disasm(*(f + f->jt + 1), r->Pc + f->jt + 1); f 452 tools/bpf/bpf_dbg.c bpf_disasm(*(f + f->jf + 1), r->Pc + f->jf + 1); f 480 tools/bpf/bpf_dbg.c static void bpf_disasm_all(const struct sock_filter *f, unsigned int len) f 485 tools/bpf/bpf_dbg.c bpf_disasm(f[i], i); f 488 tools/bpf/bpf_dbg.c static void bpf_dump_all(const struct sock_filter *f, unsigned int len) f 495 tools/bpf/bpf_dbg.c f[i].code, f[i].jt, f[i].jf, f[i].k); f 498 tools/bpf/bpf_dbg.c static bool bpf_runnable(struct sock_filter *f, unsigned int len) f 502 tools/bpf/bpf_dbg.c .filter = f, f 518 tools/bpf/bpf_dbg.c if (BPF_CLASS(f[i].code) == BPF_LD && f 519 tools/bpf/bpf_dbg.c f[i].k > SKF_AD_OFF) { f 632 tools/bpf/bpf_dbg.c static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f, f 636 tools/bpf/bpf_dbg.c uint32_t K = f->k; f 639 tools/bpf/bpf_dbg.c switch (f->code) { f 734 tools/bpf/bpf_dbg.c r->Pc += r->A > r->X ? f->jt : f->jf; f 737 tools/bpf/bpf_dbg.c r->Pc += r->A > K ? f->jt : f->jf; f 740 tools/bpf/bpf_dbg.c r->Pc += r->A >= r->X ? f->jt : f->jf; f 743 tools/bpf/bpf_dbg.c r->Pc += r->A >= K ? f->jt : f->jf; f 746 tools/bpf/bpf_dbg.c r->Pc += r->A == r->X ? f->jt : f->jf; f 749 tools/bpf/bpf_dbg.c r->Pc += r->A == K ? f->jt : f->jf; f 752 tools/bpf/bpf_dbg.c r->Pc += r->A & r->X ? f->jt : f->jf; f 755 tools/bpf/bpf_dbg.c r->Pc += r->A & K ? f->jt : f->jf; f 804 tools/bpf/bpf_dbg.c switch (f->code) { f 854 tools/bpf/bpf_dbg.c static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f, f 859 tools/bpf/bpf_dbg.c bpf_dump_curr(r, &f[r->Pc]); f 866 tools/bpf/bpf_dbg.c static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, f 875 tools/bpf/bpf_dbg.c stop = bpf_handle_breakpoint(&bpf_curr, f, pkt, f 878 tools/bpf/bpf_dbg.c bpf_single_step(&bpf_curr, &f[bpf_curr.Pc], pkt, pkt_caplen, f 886 tools/bpf/bpf_dbg.c static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, f 897 tools/bpf/bpf_dbg.c stop = bpf_handle_breakpoint(&bpf_curr, f, pkt, f 900 tools/bpf/bpf_dbg.c bpf_single_step(&bpf_curr, &f[bpf_curr.Pc], pkt, pkt_caplen, f 317 tools/bpf/bpftool/cgroup.c FILE *f; f 319 tools/bpf/bpftool/cgroup.c f = fopen("/proc/mounts", "r"); f 320 tools/bpf/bpftool/cgroup.c if (f == NULL) f 323 tools/bpf/bpftool/cgroup.c while ((mnt = getmntent(f))) { f 325 tools/bpf/bpftool/cgroup.c fclose(f); f 330 tools/bpf/bpftool/cgroup.c fclose(f); f 93 tools/bpf/bpftool/json_writer.c json_writer_t *jsonw_new(FILE *f) f 97 tools/bpf/bpftool/json_writer.c self->out = f; f 23 tools/bpf/bpftool/json_writer.h json_writer_t *jsonw_new(FILE *f); f 149 tools/bpf/bpftool/main.c void fprint_hex(FILE *f, void *arg, unsigned int n, const char *sep) f 160 tools/bpf/bpftool/main.c fprintf(f, "\n"); f 162 tools/bpf/bpftool/main.c fprintf(f, " "); f 166 tools/bpf/bpftool/main.c fprintf(f, "%s%02hhx", i ? pfx : "", data[i]); f 106 tools/bpf/bpftool/main.h void fprint_hex(FILE *f, void *arg, unsigned int n, const char *sep); f 771 tools/bpf/bpftool/prog.c FILE *f; f 780 tools/bpf/bpftool/prog.c f = stdin; f 782 tools/bpf/bpftool/prog.c f = fopen(fname, "r"); f 783 tools/bpf/bpftool/prog.c if (!f) { f 795 tools/bpf/bpftool/prog.c while ((nb_read += fread(*data_ptr + nb_read, 1, block_size, f))) { f 796 tools/bpf/bpftool/prog.c if (feof(f)) f 798 tools/bpf/bpftool/prog.c if (ferror(f)) { f 820 tools/bpf/bpftool/prog.c if (f != stdin) f 821 tools/bpf/bpftool/prog.c fclose(f); f 830 tools/bpf/bpftool/prog.c if (f != stdin) f 831 tools/bpf/bpftool/prog.c fclose(f); f 835 tools/bpf/bpftool/prog.c static void hex_print(void *data, unsigned int size, FILE *f) f 842 tools/bpf/bpftool/prog.c fprintf(f, "%07zx\t", i); f 846 tools/bpf/bpftool/prog.c fprintf(f, "%02x%s", *(uint8_t *)(data + j), f 849 tools/bpf/bpftool/prog.c fprintf(f, " %s", j % 2 ? " " : ""); f 852 tools/bpf/bpftool/prog.c fprintf(f, "| "); f 857 tools/bpf/bpftool/prog.c fprintf(f, "%c%s", c, j == i + 7 ? " " : ""); f 860 tools/bpf/bpftool/prog.c fprintf(f, "\n"); f 869 tools/bpf/bpftool/prog.c FILE *f; f 875 tools/bpf/bpftool/prog.c f = stdout; f 880 tools/bpf/bpftool/prog.c hex_print(data, size, f); f 885 tools/bpf/bpftool/prog.c f = fopen(fname, "w"); f 886 tools/bpf/bpftool/prog.c if (!f) { f 891 tools/bpf/bpftool/prog.c nb_written = fwrite(data, 1, size, f); f 892 tools/bpf/bpftool/prog.c fclose(f); f 8 tools/build/tests/ex/ex.c int f(void); f 18 tools/build/tests/ex/ex.c f(); f 694 tools/firewire/nosy-dump.c const struct packet_field *f = &pi->fields[i]; f 697 tools/firewire/nosy-dump.c if (f->flags & exclude_flags) f 699 tools/firewire/nosy-dump.c if (include_flags && !(f->flags & include_flags)) f 702 tools/firewire/nosy-dump.c if (f->offset < 0) f 703 tools/firewire/nosy-dump.c offset = length * 8 + f->offset - 32; f 705 tools/firewire/nosy-dump.c offset = f->offset; f 707 tools/firewire/nosy-dump.c if (f->value_names != NULL) { f 710 tools/firewire/nosy-dump.c bits = get_bits(packet, offset, f->width); f 711 tools/firewire/nosy-dump.c printf("%s", f->value_names[bits]); f 712 tools/firewire/nosy-dump.c } else if (f->width == 0) { f 713 tools/firewire/nosy-dump.c printf("%s=[", f->name); f 720 tools/firewire/nosy-dump.c if ((offset & ~31) != ((offset + f->width - 1) & ~31)) { f 723 tools/firewire/nosy-dump.c low_width = f->width - high_width; f 729 tools/firewire/nosy-dump.c bits = get_bits(packet, offset, f->width); f 732 tools/firewire/nosy-dump.c printf("%s=0x%0*llx", f->name, (f->width + 3) / 4, bits); f 734 tools/firewire/nosy-dump.c if (f->flags & PACKET_FIELD_DATA_LENGTH) f 1083 tools/hv/hv_kvp_daemon.c static int kvp_write_file(FILE *f, char *s1, char *s2, char *s3) f 1087 tools/hv/hv_kvp_daemon.c ret = fprintf(f, "%s%s%s%s\n", s1, s2, "=", s3); f 1096 tools/hv/hv_kvp_daemon.c static int process_ip_string(FILE *f, char *ip_string, int type) f 1165 tools/hv/hv_kvp_daemon.c error = kvp_write_file(f, str, sub_str, addr); f 37 tools/include/linux/irqflags.h #define trace_lock_acquire(a, b, c, d, e, f, g) f 19 tools/include/linux/spinlock.h #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x) f 20 tools/include/linux/spinlock.h #define spin_unlock_irqrestore(x, f) (void)f, pthread_mutex_unlock(x) f 147 tools/io_uring/io_uring-bench.c struct file *f; f 156 tools/io_uring/io_uring-bench.c f = &s->files[0]; f 158 tools/io_uring/io_uring-bench.c f = &s->files[s->cur_file]; f 159 tools/io_uring/io_uring-bench.c if (f->pending_ios >= file_depth(s)) { f 163 tools/io_uring/io_uring-bench.c f = &s->files[s->cur_file]; f 166 tools/io_uring/io_uring-bench.c f->pending_ios++; f 169 tools/io_uring/io_uring-bench.c offset = (r % (f->max_blocks - 1)) * BS; f 173 tools/io_uring/io_uring-bench.c sqe->fd = f->fixed_fd; f 176 tools/io_uring/io_uring-bench.c sqe->fd = f->real_fd; f 191 tools/io_uring/io_uring-bench.c sqe->user_data = (unsigned long) f; f 222 tools/io_uring/io_uring-bench.c static int get_file_size(struct file *f) f 226 tools/io_uring/io_uring-bench.c if (fstat(f->real_fd, &st) < 0) f 231 tools/io_uring/io_uring-bench.c if (ioctl(f->real_fd, BLKGETSIZE64, &bytes) != 0) f 234 tools/io_uring/io_uring-bench.c f->max_blocks = bytes / BS; f 237 tools/io_uring/io_uring-bench.c f->max_blocks = st.st_size / BS; f 252 tools/io_uring/io_uring-bench.c struct file *f; f 259 tools/io_uring/io_uring-bench.c f = (struct file *) (uintptr_t) cqe->user_data; f 260 tools/io_uring/io_uring-bench.c f->pending_ios--; f 471 tools/io_uring/io_uring-bench.c struct file *f = &s->files[i]; f 474 tools/io_uring/io_uring-bench.c p += sprintf(p, "%d", f->pending_ios); f 476 tools/io_uring/io_uring-bench.c p += sprintf(p, "%d, ", f->pending_ios); f 499 tools/io_uring/io_uring-bench.c struct file *f; f 511 tools/io_uring/io_uring-bench.c f = &s->files[s->nr_files]; f 512 tools/io_uring/io_uring-bench.c f->real_fd = fd; f 513 tools/io_uring/io_uring-bench.c if (get_file_size(f)) { f 517 tools/io_uring/io_uring-bench.c if (f->max_blocks <= 1) { f 521 tools/io_uring/io_uring-bench.c f->max_blocks--; f 193 tools/lib/api/fs/fs.c static void mem_toupper(char *f, size_t len) f 196 tools/lib/api/fs/fs.c *f = toupper(*f); f 197 tools/lib/api/fs/fs.c f++; f 35 tools/lib/bpf/bpf_prog_linfo.c __u32 f; /* Index to ksym_func */ f 46 tools/lib/bpf/bpf_prog_linfo.c for (prev_i = 0, i = 1, f = 1; f 47 tools/lib/bpf/bpf_prog_linfo.c i < nr_linfo && f < nr_jited_func; f 53 tools/lib/bpf/bpf_prog_linfo.c if (ksym_func[f] == *jited_linfo) { f 54 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->jited_linfo_func_idx[f] = i; f 57 tools/lib/bpf/bpf_prog_linfo.c if (last_jited_linfo - ksym_func[f - 1] + 1 > f 58 tools/lib/bpf/bpf_prog_linfo.c ksym_len[f - 1]) f 61 tools/lib/bpf/bpf_prog_linfo.c prog_linfo->nr_jited_linfo_per_func[f - 1] = f 69 tools/lib/bpf/bpf_prog_linfo.c f++; f 76 tools/lib/bpf/bpf_prog_linfo.c if (f != nr_jited_func) f 2830 tools/lib/bpf/libbpf.c FILE *f; f 2839 tools/lib/bpf/libbpf.c f = fopen(path, "rb"); f 2840 tools/lib/bpf/libbpf.c if (!f) { f 2845 tools/lib/bpf/libbpf.c read_cnt = fread(data, 1, st.st_size, f); f 2846 tools/lib/bpf/libbpf.c fclose(f); f 4972 tools/lib/bpf/libbpf.c FILE *f; f 4974 tools/lib/bpf/libbpf.c f = fopen(file, "r"); f 4975 tools/lib/bpf/libbpf.c if (!f) { f 4981 tools/lib/bpf/libbpf.c err = fscanf(f, fmt, &ret); f 4986 tools/lib/bpf/libbpf.c fclose(f); f 4989 tools/lib/bpf/libbpf.c fclose(f); f 126 tools/lib/subcmd/parse-options.h #define OPT_BOOLEAN_FLAG(s, l, v, h, f) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), .value = check_vtype(v, bool *), .help = (h), .flags = (f) } f 152 tools/lib/subcmd/parse-options.h #define OPT_CALLBACK(s, l, v, a, h, f) \ f 153 tools/lib/subcmd/parse-options.h { .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f) } f 154 tools/lib/subcmd/parse-options.h #define OPT_CALLBACK_NOOPT(s, l, v, a, h, f) \ f 155 tools/lib/subcmd/parse-options.h { .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .flags = PARSE_OPT_NOARG } f 156 tools/lib/subcmd/parse-options.h #define OPT_CALLBACK_DEFAULT(s, l, v, a, h, f, d) \ f 157 tools/lib/subcmd/parse-options.h { .type = OPTION_CALLBACK, .short_name = (s), .long_name = (l), .value = (v), .argh = (a), .help = (h), .callback = (f), .defval = (intptr_t)d, .flags = PARSE_OPT_LASTARG_DEFAULT } f 158 tools/lib/subcmd/parse-options.h #define OPT_CALLBACK_DEFAULT_NOOPT(s, l, v, a, h, f, d) \ f 160 tools/lib/subcmd/parse-options.h .value = (v), .arg = (a), .help = (h), .callback = (f), .defval = (intptr_t)d,\ f 162 tools/lib/subcmd/parse-options.h #define OPT_CALLBACK_OPTARG(s, l, v, d, a, h, f) \ f 164 tools/lib/subcmd/parse-options.h .value = (v), .argh = (a), .help = (h), .callback = (f), \ f 21 tools/lib/subcmd/sigchain.c static int sigchain_push(int sig, sigchain_fun f) f 27 tools/lib/subcmd/sigchain.c s->old[s->n] = signal(sig, f); f 47 tools/lib/subcmd/sigchain.c void sigchain_push_common(sigchain_fun f) f 49 tools/lib/subcmd/sigchain.c sigchain_push(SIGINT, f); f 50 tools/lib/subcmd/sigchain.c sigchain_push(SIGHUP, f); f 51 tools/lib/subcmd/sigchain.c sigchain_push(SIGTERM, f); f 52 tools/lib/subcmd/sigchain.c sigchain_push(SIGQUIT, f); f 53 tools/lib/subcmd/sigchain.c sigchain_push(SIGPIPE, f); f 9 tools/lib/subcmd/sigchain.h void sigchain_push_common(sigchain_fun f); f 4133 tools/lib/traceevent/event-parse.c struct tep_format_field *f; f 4135 tools/lib/traceevent/event-parse.c f = tep_find_any_field(event, arg->string.string); f 4136 tools/lib/traceevent/event-parse.c arg->string.offset = f->offset; f 4151 tools/lib/traceevent/event-parse.c struct tep_format_field *f; f 4153 tools/lib/traceevent/event-parse.c f = tep_find_any_field(event, arg->bitmask.bitmask); f 4154 tools/lib/traceevent/event-parse.c arg->bitmask.offset = f->offset; f 32 tools/lib/traceevent/plugins/plugin_mac80211.c struct tep_format_field *f = tep_find_field(event, name); f 36 tools/lib/traceevent/plugins/plugin_mac80211.c if (!f) { f 41 tools/lib/traceevent/plugins/plugin_mac80211.c offset = f->offset; f 42 tools/lib/traceevent/plugins/plugin_mac80211.c length = f->size; f 44 tools/lib/traceevent/plugins/plugin_mac80211.c if (!strncmp(f->type, "__data_loc", 10)) { f 46 tools/lib/traceevent/plugins/plugin_mac80211.c if (tep_read_number_field(f, data, &v)) { f 230 tools/perf/builtin-inject.c inject_handler f = evsel->handler; f 231 tools/perf/builtin-inject.c return f(tool, event, sample, evsel, machine); f 963 tools/perf/builtin-kmem.c tracepoint_handler f = evsel->handler; f 964 tools/perf/builtin-kmem.c err = f(evsel, sample); f 830 tools/perf/builtin-lock.c tracepoint_handler f = evsel->handler; f 831 tools/perf/builtin-lock.c err = f(evsel, sample); f 1746 tools/perf/builtin-sched.c tracepoint_handler f = evsel->handler; f 1747 tools/perf/builtin-sched.c err = f(tool, evsel, sample, machine); f 2924 tools/perf/builtin-sched.c sched_handler f = evsel->handler; f 2926 tools/perf/builtin-sched.c err = f(tool, event, evsel, sample, machine); f 484 tools/perf/builtin-timechart.c FILE *f = open_memstream(&p, &p_len); f 486 tools/perf/builtin-timechart.c if (!f) { f 535 tools/perf/builtin-timechart.c fprintf(f, "..... %016" PRIx64 " %s\n", ip, tal.sym->name); f 537 tools/perf/builtin-timechart.c fprintf(f, "..... %016" PRIx64 "\n", ip); f 542 tools/perf/builtin-timechart.c fclose(f); f 568 tools/perf/builtin-timechart.c tracepoint_handler f = evsel->handler; f 569 tools/perf/builtin-timechart.c return f(tchart, evsel, sample, f 2249 tools/perf/builtin-trace.c char *f = realloc(ttrace->filename.name, filename_len + 1); f 2251 tools/perf/builtin-trace.c if (f == NULL) f 2255 tools/perf/builtin-trace.c ttrace->filename.name = f; f 2433 tools/perf/builtin-trace.c static void print_location(FILE *f, struct perf_sample *sample, f 2439 tools/perf/builtin-trace.c fprintf(f, "%s@", al->map->dso->long_name); f 2442 tools/perf/builtin-trace.c fprintf(f, "%s+0x%" PRIx64, al->sym->name, f 2445 tools/perf/builtin-trace.c fprintf(f, "0x%" PRIx64, al->addr); f 2447 tools/perf/builtin-trace.c fprintf(f, "0x%" PRIx64, sample->addr); f 198 tools/perf/pmu-events/jevents.c struct field *f; f 201 tools/perf/pmu-events/jevents.c for (f = fields; f->field; f++) f 202 tools/perf/pmu-events/jevents.c if (json_streq(map, field, f->field) && nz) { f 204 tools/perf/pmu-events/jevents.c addfield(map, event, ",", f->kernel, &newval); f 134 tools/perf/tests/code-reading.c static int read_objdump_output(FILE *f, void *buf, size_t *len, u64 start_addr) f 146 tools/perf/tests/code-reading.c ret = getline(&line, &line_len, f); f 147 tools/perf/tests/code-reading.c if (feof(f)) f 191 tools/perf/tests/code-reading.c FILE *f; f 205 tools/perf/tests/code-reading.c f = popen(cmd, "r"); f 206 tools/perf/tests/code-reading.c if (!f) { f 211 tools/perf/tests/code-reading.c ret = read_objdump_output(f, buf, &len, addr); f 218 tools/perf/tests/code-reading.c pclose(f); f 490 tools/perf/tests/code-reading.c FILE *f; f 494 tools/perf/tests/code-reading.c f = fopen(test_file_name, "w+"); f 495 tools/perf/tests/code-reading.c if (f) { f 496 tools/perf/tests/code-reading.c fclose(f); f 50 tools/perf/util/config.c FILE *f; f 53 tools/perf/util/config.c if ((f = config_file) != NULL) { f 54 tools/perf/util/config.c c = fgetc(f); f 57 tools/perf/util/config.c c = fgetc(f); f 59 tools/perf/util/config.c ungetc(c, f); f 471 tools/perf/util/config.c FILE *f = fopen(filename, "r"); f 474 tools/perf/util/config.c if (f) { f 475 tools/perf/util/config.c config_file = f; f 480 tools/perf/util/config.c fclose(f); f 132 tools/perf/util/cpumap.c int (*f)(struct perf_cpu_map *map, int cpu, void *data), f 145 tools/perf/util/cpumap.c s1 = f(cpus, cpu, data); f 58 tools/perf/util/cpumap.h int (*f)(struct perf_cpu_map *map, int cpu, void *data), f 21 tools/perf/util/intel-pt-decoder/intel-pt-log.c static FILE *f; f 27 tools/perf/util/intel-pt-decoder/intel-pt-log.c return f; f 37 tools/perf/util/intel-pt-decoder/intel-pt-log.c if (f) f 38 tools/perf/util/intel-pt-decoder/intel-pt-log.c fflush(f); f 54 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 56 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " %08" PRIx64 ": ", pos); f 58 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " %02x", buf[i]); f 60 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 61 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 69 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 71 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " %08" PRIx64 ": ", pos); f 73 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 74 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, " "); f 82 tools/perf/util/intel-pt-decoder/intel-pt-log.c if (f) f 88 tools/perf/util/intel-pt-decoder/intel-pt-log.c f = fopen(log_name, "w+"); f 89 tools/perf/util/intel-pt-decoder/intel-pt-log.c if (!f) { f 107 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, "%s\n", desc); f 122 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, "%s\n", desc); f 124 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, "Bad instruction!\n"); f 137 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, "%s\n", desc); f 139 tools/perf/util/intel-pt-decoder/intel-pt-log.c fprintf(f, "Bad instruction!\n"); f 150 tools/perf/util/intel-pt-decoder/intel-pt-log.c vfprintf(f, fmt, args); f 228 tools/perf/util/intel-pt.c FILE *f = intel_pt_log_fp(); f 230 tools/perf/util/intel-pt.c if (!intel_pt_enable_logging || !f) f 233 tools/perf/util/intel-pt.c perf_event__fprintf(event, f); f 71 tools/perf/util/namespaces.c FILE *f = NULL; f 102 tools/perf/util/namespaces.c f = fopen(spath, "r"); f 103 tools/perf/util/namespaces.c if (f == NULL) f 106 tools/perf/util/namespaces.c while (getline(&statln, &linesz, f) != -1) { f 123 tools/perf/util/namespaces.c if (f != NULL) f 124 tools/perf/util/namespaces.c (void) fclose(f); f 927 tools/perf/util/probe-event.c #define show_one_line_with_num(f,l) _show_one_line(f,l,false,true) f 928 tools/perf/util/probe-event.c #define show_one_line(f,l) _show_one_line(f,l,false,false) f 929 tools/perf/util/probe-event.c #define skip_one_line(f,l) _show_one_line(f,l,true,false) f 930 tools/perf/util/probe-event.c #define show_one_line_or_eof(f,l) __show_one_line(f,l,false,false) f 48 tools/perf/util/s390-cpumsf-kernel.h unsigned int f:1; /* 0 - Block Full Indicator */ f 330 tools/perf/util/s390-cpumsf.c local.f = flags >> 63 & 0x1; f 349 tools/perf/util/s390-cpumsf.c te->f ? 'F' : ' ', f 545 tools/perf/util/scripting-engines/trace-event-perl.c struct tep_format_field *f; f 627 tools/perf/util/scripting-engines/trace-event-perl.c for (f = event->format.fields; f; f = f->next) { f 633 tools/perf/util/scripting-engines/trace-event-perl.c fprintf(ofp, "$%s", f->name); f 646 tools/perf/util/scripting-engines/trace-event-perl.c for (f = event->format.fields; f; f = f->next) { f 654 tools/perf/util/scripting-engines/trace-event-perl.c fprintf(ofp, "%s=", f->name); f 655 tools/perf/util/scripting-engines/trace-event-perl.c if (f->flags & TEP_FIELD_IS_STRING || f 656 tools/perf/util/scripting-engines/trace-event-perl.c f->flags & TEP_FIELD_IS_FLAG || f 657 tools/perf/util/scripting-engines/trace-event-perl.c f->flags & TEP_FIELD_IS_SYMBOLIC) f 659 tools/perf/util/scripting-engines/trace-event-perl.c else if (f->flags & TEP_FIELD_IS_SIGNED) f 670 tools/perf/util/scripting-engines/trace-event-perl.c for (f = event->format.fields; f; f = f->next) { f 677 tools/perf/util/scripting-engines/trace-event-perl.c if (f->flags & TEP_FIELD_IS_FLAG) { f 685 tools/perf/util/scripting-engines/trace-event-perl.c fprintf(ofp, "\"%s\", $%s)", f->name, f 686 tools/perf/util/scripting-engines/trace-event-perl.c f->name); f 687 tools/perf/util/scripting-engines/trace-event-perl.c } else if (f->flags & TEP_FIELD_IS_SYMBOLIC) { f 695 tools/perf/util/scripting-engines/trace-event-perl.c fprintf(ofp, "\"%s\", $%s)", f->name, f 696 tools/perf/util/scripting-engines/trace-event-perl.c f->name); f 698 tools/perf/util/scripting-engines/trace-event-perl.c fprintf(ofp, "$%s", f->name); f 1693 tools/perf/util/scripting-engines/trace-event-python.c struct tep_format_field *f; f 1757 tools/perf/util/scripting-engines/trace-event-python.c for (f = event->format.fields; f; f = f->next) { f 1763 tools/perf/util/scripting-engines/trace-event-python.c fprintf(ofp, "%s", f->name); f 1782 tools/perf/util/scripting-engines/trace-event-python.c for (f = event->format.fields; f; f = f->next) { f 1790 tools/perf/util/scripting-engines/trace-event-python.c fprintf(ofp, "%s=", f->name); f 1791 tools/perf/util/scripting-engines/trace-event-python.c if (f->flags & TEP_FIELD_IS_STRING || f 1792 tools/perf/util/scripting-engines/trace-event-python.c f->flags & TEP_FIELD_IS_FLAG || f 1793 tools/perf/util/scripting-engines/trace-event-python.c f->flags & TEP_FIELD_IS_ARRAY || f 1794 tools/perf/util/scripting-engines/trace-event-python.c f->flags & TEP_FIELD_IS_SYMBOLIC) f 1796 tools/perf/util/scripting-engines/trace-event-python.c else if (f->flags & TEP_FIELD_IS_SIGNED) f 1807 tools/perf/util/scripting-engines/trace-event-python.c for (f = event->format.fields; f; f = f->next) { f 1814 tools/perf/util/scripting-engines/trace-event-python.c if (f->flags & TEP_FIELD_IS_FLAG) { f 1822 tools/perf/util/scripting-engines/trace-event-python.c fprintf(ofp, "\"%s\", %s)", f->name, f 1823 tools/perf/util/scripting-engines/trace-event-python.c f->name); f 1824 tools/perf/util/scripting-engines/trace-event-python.c } else if (f->flags & TEP_FIELD_IS_SYMBOLIC) { f 1832 tools/perf/util/scripting-engines/trace-event-python.c fprintf(ofp, "\"%s\", %s)", f->name, f 1833 tools/perf/util/scripting-engines/trace-event-python.c f->name); f 1835 tools/perf/util/scripting-engines/trace-event-python.c fprintf(ofp, "%s", f->name); f 726 tools/perf/util/session.c #define bswap_safe(f, n) \ f 727 tools/perf/util/session.c (attr->size > (offsetof(struct perf_event_attr, f) + \ f 728 tools/perf/util/session.c sizeof(attr->f) * (n))) f 729 tools/perf/util/session.c #define bswap_field(f, sz) \ f 731 tools/perf/util/session.c if (bswap_safe(f, 0)) \ f 732 tools/perf/util/session.c attr->f = bswap_##sz(attr->f); \ f 734 tools/perf/util/session.c #define bswap_field_16(f) bswap_field(f, 16) f 735 tools/perf/util/session.c #define bswap_field_32(f) bswap_field(f, 32) f 736 tools/perf/util/session.c #define bswap_field_64(f) bswap_field(f, 64) f 287 tools/perf/util/symbol-elf.c struct symbol *f; f 398 tools/perf/util/symbol-elf.c f = symbol__new(plt_offset, plt_entry_size, f 400 tools/perf/util/symbol-elf.c if (!f) f 404 tools/perf/util/symbol-elf.c symbols__insert(&dso->symbols, f); f 424 tools/perf/util/symbol-elf.c f = symbol__new(plt_offset, plt_entry_size, f 426 tools/perf/util/symbol-elf.c if (!f) f 430 tools/perf/util/symbol-elf.c symbols__insert(&dso->symbols, f); f 1067 tools/perf/util/symbol-elf.c struct symbol *f; f 1141 tools/perf/util/symbol-elf.c f = symbol__new(sym.st_value, sym.st_size, f 1145 tools/perf/util/symbol-elf.c if (!f) f 1148 tools/perf/util/symbol-elf.c arch__sym_update(f, &sym); f 1150 tools/perf/util/symbol-elf.c __symbols__insert(&curr_dso->symbols, f, dso->kernel); f 161 tools/perf/util/vdso.c static int vdso__do_copy_compat(FILE *f, int fd) f 167 tools/perf/util/vdso.c count = fread(buf, 1, sizeof(buf), f); f 168 tools/perf/util/vdso.c if (ferror(f)) f 170 tools/perf/util/vdso.c if (feof(f)) f 181 tools/perf/util/vdso.c FILE *f; f 184 tools/perf/util/vdso.c f = popen(prog, "r"); f 185 tools/perf/util/vdso.c if (!f) f 188 tools/perf/util/vdso.c err = vdso__do_copy_compat(f, fd); f 190 tools/perf/util/vdso.c if (pclose(f) == -1) f 7 tools/testing/selftests/bpf/prog_tests/attach_probe.c FILE *f; f 9 tools/testing/selftests/bpf/prog_tests/attach_probe.c f = fopen("/proc/self/maps", "r"); f 10 tools/testing/selftests/bpf/prog_tests/attach_probe.c if (!f) f 13 tools/testing/selftests/bpf/prog_tests/attach_probe.c while (fscanf(f, "%zx-%*x %s %zx %*[^\n]\n", f 16 tools/testing/selftests/bpf/prog_tests/attach_probe.c fclose(f); f 21 tools/testing/selftests/bpf/prog_tests/attach_probe.c fclose(f); f 89 tools/testing/selftests/bpf/prog_tests/core_reloc.c .f = (void *)5, \ f 120 tools/testing/selftests/bpf/prog_tests/core_reloc.c .f = { [1] = 6 }, \ f 127 tools/testing/selftests/bpf/prog_tests/core_reloc.c .e = 5, .f = 6, .g = 7, .h = 8, \ f 7 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c FILE *f; f 9 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c f = fopen("/proc/sys/kernel/perf_event_max_sample_rate", "r"); f 10 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c if (f == NULL) f 12 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c fscanf(f, "%llu", &sample_freq); f 13 tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c fclose(f); f 38 tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c unsigned f: 30; /* this gets aligned on 4-byte boundary */ f 65 tools/testing/selftests/bpf/progs/btf_dump_test_case_bitfields.c int f; f 87 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c void *f; f 105 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c fn_ptr1_t f; f 143 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c } f; f 172 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c int f; f 186 tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c volatile long int f; f 407 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 414 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 422 tools/testing/selftests/bpf/progs/core_reloc_types.h void (*f)(int); /* incompatible function prototype */ f 434 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 442 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 450 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 458 tools/testing/selftests/bpf/progs/core_reloc_types.h int (*f)(const char *); f 465 tools/testing/selftests/bpf/progs/core_reloc_types.h int a, b, c, d, e, f, g, h; f 488 tools/testing/selftests/bpf/progs/core_reloc_types.h arr_t f; f 499 tools/testing/selftests/bpf/progs/core_reloc_types.h int f[3]; f 525 tools/testing/selftests/bpf/progs/core_reloc_types.h arr4_t f; f 16 tools/testing/selftests/bpf/progs/test_core_reloc_mods.c int a, b, c, d, e, f, g, h; f 39 tools/testing/selftests/bpf/progs/test_core_reloc_mods.c arr_t f; f 55 tools/testing/selftests/bpf/progs/test_core_reloc_mods.c BPF_CORE_READ(&out->f, &in->f[1]) || f 25 tools/testing/selftests/bpf/progs/test_core_reloc_primitives.c int (*f)(const char *); f 38 tools/testing/selftests/bpf/progs/test_core_reloc_primitives.c BPF_CORE_READ(&out->f, &in->f)) f 63 tools/testing/selftests/bpf/test_btf_dump.c FILE *f = NULL; f 84 tools/testing/selftests/bpf/test_btf_dump.c f = fdopen(fd, "w"); f 85 tools/testing/selftests/bpf/test_btf_dump.c if (CHECK(f == NULL, "failed to open temp output file: %s(%d)\n", f 91 tools/testing/selftests/bpf/test_btf_dump.c test_case->opts.ctx = f; f 93 tools/testing/selftests/bpf/test_btf_dump.c fclose(f); f 875 tools/testing/selftests/bpf/test_lru_map.c int t, f; f 883 tools/testing/selftests/bpf/test_lru_map.c for (f = 0; f < sizeof(map_flags) / sizeof(*map_flags); f++) { f 884 tools/testing/selftests/bpf/test_lru_map.c unsigned int tgt_free = (map_flags[f] & BPF_F_NO_COMMON_LRU) ? f 888 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity0(map_types[t], map_flags[f]); f 889 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity1(map_types[t], map_flags[f], tgt_free); f 890 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity2(map_types[t], map_flags[f], tgt_free); f 891 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity3(map_types[t], map_flags[f], tgt_free); f 892 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity4(map_types[t], map_flags[f], tgt_free); f 893 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity5(map_types[t], map_flags[f]); f 894 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity6(map_types[t], map_flags[f], tgt_free); f 895 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity7(map_types[t], map_flags[f]); f 896 tools/testing/selftests/bpf/test_lru_map.c test_lru_sanity8(map_types[t], map_flags[f]); f 1530 tools/testing/selftests/bpf/test_maps.c int map_fd, err, t, f; f 1649 tools/testing/selftests/bpf/test_maps.c for (f = 0; f < ARRAY_SIZE(grpa_fds64); f++) f 1650 tools/testing/selftests/bpf/test_maps.c close(grpa_fds64[f]); f 703 tools/testing/selftests/bpf/test_select_reuseport.c int t, f, err; f 705 tools/testing/selftests/bpf/test_select_reuseport.c for (f = 0; f < ARRAY_SIZE(families); f++) { f 706 tools/testing/selftests/bpf/test_select_reuseport.c unsigned short family = families[f]; f 713 tools/testing/selftests/bpf/test_select_reuseport.c family_strings[f], type_strings[t], f 98 tools/testing/selftests/bpf/test_sockmap_kern.h int len, *f, ret, zero = 0; f 107 tools/testing/selftests/bpf/test_sockmap_kern.h f = bpf_map_lookup_elem(&sock_skb_opts, &zero); f 108 tools/testing/selftests/bpf/test_sockmap_kern.h if (f && *f) { f 110 tools/testing/selftests/bpf/test_sockmap_kern.h flags = *f; f 271 tools/testing/selftests/bpf/test_sockmap_kern.h int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; f 296 tools/testing/selftests/bpf/test_sockmap_kern.h f = bpf_map_lookup_elem(&sock_redir_flags, &zero); f 297 tools/testing/selftests/bpf/test_sockmap_kern.h if (f && *f) { f 299 tools/testing/selftests/bpf/test_sockmap_kern.h flags = *f; f 311 tools/testing/selftests/bpf/test_sockmap_kern.h int *bytes, *start, *end, *start_push, *end_push, *start_pop, *pop, *f; f 371 tools/testing/selftests/bpf/test_sockmap_kern.h f = bpf_map_lookup_elem(&sock_redir_flags, &zero); f 372 tools/testing/selftests/bpf/test_sockmap_kern.h if (f && *f) { f 374 tools/testing/selftests/bpf/test_sockmap_kern.h flags = *f; f 24 tools/testing/selftests/bpf/trace_helpers.c FILE *f = fopen("/proc/kallsyms", "r"); f 30 tools/testing/selftests/bpf/trace_helpers.c if (!f) f 33 tools/testing/selftests/bpf/trace_helpers.c while (fgets(buf, sizeof(buf), f)) { f 42 tools/testing/selftests/bpf/trace_helpers.c fclose(f); f 75 tools/testing/selftests/gpio/gpio-mockup-chardev.c FILE *f; f 84 tools/testing/selftests/gpio/gpio-mockup-chardev.c f = fopen(debugfs, "r"); f 85 tools/testing/selftests/gpio/gpio-mockup-chardev.c if (!f) f 91 tools/testing/selftests/gpio/gpio-mockup-chardev.c while (getline(&line, &len, f) != -1) { f 118 tools/testing/selftests/gpio/gpio-mockup-chardev.c fclose(f); f 1636 tools/testing/selftests/kvm/lib/kvm_util.c FILE *f; f 1640 tools/testing/selftests/kvm/lib/kvm_util.c f = fopen(KVM_DEV_PATH, "r"); f 1641 tools/testing/selftests/kvm/lib/kvm_util.c TEST_ASSERT(f != NULL, "Error in opening KVM dev file: %d", f 1643 tools/testing/selftests/kvm/lib/kvm_util.c fclose(f); f 1646 tools/testing/selftests/kvm/lib/kvm_util.c f = fopen("/sys/module/kvm_intel/parameters/unrestricted_guest", "r"); f 1647 tools/testing/selftests/kvm/lib/kvm_util.c if (f) { f 1648 tools/testing/selftests/kvm/lib/kvm_util.c count = fread(&val, sizeof(char), 1, f); f 1650 tools/testing/selftests/kvm/lib/kvm_util.c fclose(f); f 32 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c FILE *f; f 35 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c f = fopen("/sys/devices/system/cpu/smt/control", "r"); f 36 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c if (f) { f 37 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c if (fread(buf, sizeof(*buf), sizeof(buf), f) > 0) { f 42 tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c fclose(f); f 82 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c FILE *f; f 84 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c f = popen("dmesg | grep \"WARNING:\" | wc -l", "r"); f 85 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c fscanf(f, "%d", &warnings); f 86 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c fclose(f); f 24 tools/testing/selftests/memfd/common.c FILE *f = fopen("/proc/meminfo", "r"); f 26 tools/testing/selftests/memfd/common.c if (!f) f 28 tools/testing/selftests/memfd/common.c while (getline(&line, &linelen, f) > 0) { f 36 tools/testing/selftests/memfd/common.c fclose(f); f 37 tools/testing/selftests/networking/timestamping/hwtstamp_config.c static void list_names(FILE *f, const char **names, int size) f 43 tools/testing/selftests/networking/timestamping/hwtstamp_config.c fprintf(f, " %s\n", names[value]); f 55 tools/testing/selftests/networking/timestamping/rxtimestamp.c #define SOF_FLAG(f) { f, #f } f 126 tools/testing/selftests/networking/timestamping/rxtimestamp.c int f = 0; f 135 tools/testing/selftests/networking/timestamping/rxtimestamp.c for (f = 0; f < ARRAY_SIZE(sof_flags); f++) f 136 tools/testing/selftests/networking/timestamping/rxtimestamp.c if (t->sockopt.so_timestamping & sof_flags[f].mask) f 137 tools/testing/selftests/networking/timestamping/rxtimestamp.c printf(" %s |", sof_flags[f].name); f 91 tools/testing/selftests/pidfd/pidfd_open_test.c FILE *f; f 98 tools/testing/selftests/pidfd/pidfd_open_test.c f = fopen(path, "re"); f 99 tools/testing/selftests/pidfd/pidfd_open_test.c if (!f) f 102 tools/testing/selftests/pidfd/pidfd_open_test.c while (getline(&line, &n, f) != -1) { f 118 tools/testing/selftests/pidfd/pidfd_open_test.c fclose(f); f 66 tools/testing/selftests/powerpc/benchmarks/null_syscall.c FILE *f; f 76 tools/testing/selftests/powerpc/benchmarks/null_syscall.c f = fopen("/proc/cpuinfo", "r"); f 77 tools/testing/selftests/powerpc/benchmarks/null_syscall.c if (f == NULL) f 82 tools/testing/selftests/powerpc/benchmarks/null_syscall.c while (fgets(line, sizeof(line), f) != NULL) { f 106 tools/testing/selftests/powerpc/benchmarks/null_syscall.c fclose(f); f 262 tools/testing/selftests/powerpc/mm/tlbie_test.c FILE *f; f 273 tools/testing/selftests/powerpc/mm/tlbie_test.c f = fopen(path, "w"); f 275 tools/testing/selftests/powerpc/mm/tlbie_test.c if (!f) { f 279 tools/testing/selftests/powerpc/mm/tlbie_test.c fp[tid] = f; f 281 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "----------------------------------------------------------\n"); f 282 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "PID = %d\n", rim_process_pid); f 283 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread id = %02d\n", tid); f 284 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Chunk Start Addr = 0x%016lx\n", (unsigned long)chunk_start); f 285 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Chunk Size = %d\n", size); f 286 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Next Store Addr = 0x%016lx\n", (unsigned long)addr); f 287 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Current sweep-id = 0x%08x\n", cur_sweep_id); f 288 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Previous sweep-id = 0x%08x\n", prev_sweep_id); f 289 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "----------------------------------------------------------\n"); f 295 tools/testing/selftests/powerpc/mm/tlbie_test.c FILE *f = fp[tid]; f 297 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Addr 0x%lx: Expected 0x%x, Observed 0x%x\n", f 299 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected Thread id = %02d\n", tid, extract_tid(expected)); f 300 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Observed Thread id = %02d\n", tid, extract_tid(observed)); f 301 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected Word offset = %03d\n", tid, extract_word_offset(expected)); f 302 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Observed Word offset = %03d\n", tid, extract_word_offset(observed)); f 303 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Expected sweep-id = 0x%x\n", tid, extract_sweep_id(expected)); f 304 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "Thread %02d: Observed sweep-id = 0x%x\n", tid, extract_sweep_id(observed)); f 305 tools/testing/selftests/powerpc/mm/tlbie_test.c fprintf(f, "----------------------------------------------------------\n"); f 310 tools/testing/selftests/powerpc/mm/tlbie_test.c FILE *f = fp[tid]; f 315 tools/testing/selftests/powerpc/mm/tlbie_test.c fclose(f); f 156 tools/testing/selftests/powerpc/pmu/lib.c FILE *f; f 159 tools/testing/selftests/powerpc/pmu/lib.c f = fopen("/proc/self/maps", "r"); f 160 tools/testing/selftests/powerpc/pmu/lib.c if (!f) { f 167 tools/testing/selftests/powerpc/pmu/lib.c rc = fscanf(f, "%lx-%lx %*c%*c%c%*c %*x %*d:%*d %*d %127s\n", f 184 tools/testing/selftests/powerpc/pmu/lib.c fclose(f); f 195 tools/testing/selftests/powerpc/pmu/lib.c FILE *f; f 200 tools/testing/selftests/powerpc/pmu/lib.c f = fopen(PARANOID_PATH, "r"); f 201 tools/testing/selftests/powerpc/pmu/lib.c if (!f) { f 206 tools/testing/selftests/powerpc/pmu/lib.c if (!fgets(buf, sizeof(buf), f)) { f 223 tools/testing/selftests/powerpc/pmu/lib.c fclose(f); f 352 tools/testing/selftests/powerpc/ptrace/core-pkey.c FILE *f; f 354 tools/testing/selftests/powerpc/ptrace/core-pkey.c f = fopen(core_pattern_file, "w"); f 355 tools/testing/selftests/powerpc/ptrace/core-pkey.c SKIP_IF_MSG(!f, "Try with root privileges"); f 357 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = fwrite(core_pattern, 1, len, f); f 358 tools/testing/selftests/powerpc/ptrace/core-pkey.c fclose(f); f 369 tools/testing/selftests/powerpc/ptrace/core-pkey.c FILE *f; f 379 tools/testing/selftests/powerpc/ptrace/core-pkey.c f = fopen(core_pattern_file, "r"); f 380 tools/testing/selftests/powerpc/ptrace/core-pkey.c if (!f) { f 386 tools/testing/selftests/powerpc/ptrace/core-pkey.c ret = fread(core_pattern, 1, PATH_MAX, f); f 387 tools/testing/selftests/powerpc/ptrace/core-pkey.c fclose(f); f 113 tools/testing/selftests/proc/read.c f(dd, level + 1); f 143 tools/testing/selftests/proc/read.c f(d, 0); f 51 tools/testing/selftests/proc/setns-dcache.c atexit(f); f 50 tools/testing/selftests/proc/setns-sysvipc.c atexit(f); f 54 tools/testing/selftests/proc/thread-self.c f((void *)0); f 59 tools/testing/selftests/proc/thread-self.c pid = clone(f, stack + PAGE_SIZE, CLONE_THREAD|CLONE_SIGHAND|CLONE_VM, (void *)1); f 76 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define INIT_WORK(w, f) \ f 79 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h (w)->func = (f); \ f 82 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define INIT_DELAYED_WORK(w, f) INIT_WORK(&(w)->work, (f)) f 84 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define __WORK_INITIALIZER(n, f) { \ f 87 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h .func = f \ f 91 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define __DELAYED_WORK_INITIALIZER(n, f, tflags) { \ f 92 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h .work = __WORK_INITIALIZER((n).work, (f)), \ f 95 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define DECLARE_WORK(n, f) \ f 98 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h #define DECLARE_DELAYED_WORK(n, f) \ f 99 tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/workqueues.h struct delayed_work n = __DELAYED_WORK_INITIALIZER(n, f, 0) f 48 tools/testing/selftests/vm/mlock-random-test.c FILE *f; f 53 tools/testing/selftests/vm/mlock-random-test.c f = fopen("/proc/self/status", "r"); f 54 tools/testing/selftests/vm/mlock-random-test.c if (!f) { f 59 tools/testing/selftests/vm/mlock-random-test.c while (fgets(line, 1024, f)) { f 65 tools/testing/selftests/vm/mlock-random-test.c fclose(f); f 68 tools/testing/selftests/vm/mlock-random-test.c fclose(f); f 74 tools/testing/selftests/vm/mlock-random-test.c fclose(f); f 82 tools/testing/selftests/vm/thuge-gen.c FILE *f = fopen("/proc/meminfo", "r"); f 83 tools/testing/selftests/vm/thuge-gen.c if (!f) f 85 tools/testing/selftests/vm/thuge-gen.c while (getline(&line, &linelen, f) > 0) { f 113 tools/testing/selftests/vm/thuge-gen.c FILE *f; f 121 tools/testing/selftests/vm/thuge-gen.c f = fopen(buf, "r"); f 122 tools/testing/selftests/vm/thuge-gen.c if (!f) { f 127 tools/testing/selftests/vm/thuge-gen.c if (getline(&line, &linelen, f) > 0) { f 130 tools/testing/selftests/vm/thuge-gen.c fclose(f); f 1234 tools/testing/selftests/vm/userfaultfd.c FILE *f = fopen("/proc/meminfo", "r"); f 1236 tools/testing/selftests/vm/userfaultfd.c if (!f) f 1238 tools/testing/selftests/vm/userfaultfd.c while (getline(&line, &linelen, f) > 0) { f 1246 tools/testing/selftests/vm/userfaultfd.c fclose(f); f 291 tools/usb/usbip/libsrc/names.c static void parse(FILE *f) f 302 tools/usb/usbip/libsrc/names.c while (fgets(buf, sizeof(buf), f)) { f 477 tools/usb/usbip/libsrc/names.c FILE *f; f 479 tools/usb/usbip/libsrc/names.c f = fopen(n, "r"); f 480 tools/usb/usbip/libsrc/names.c if (!f) f 483 tools/usb/usbip/libsrc/names.c parse(f); f 484 tools/usb/usbip/libsrc/names.c fclose(f); f 268 tools/usb/usbip/libsrc/usbip_common.c int usbip_names_init(char *f) f 270 tools/usb/usbip/libsrc/usbip_common.c return names_init(f); f 16 tools/virtio/linux/dma-mapping.h #define dma_alloc_coherent(d, s, hp, f) ({ \ f 17 tools/virtio/linux/dma-mapping.h void *__dma_alloc_coherent_p = kmalloc((s), (f)); \ f 102 tools/virtio/ringtest/ptr_ring.c static void spin_lock_irqsave(spinlock_t *lock, unsigned long f) f 107 tools/virtio/ringtest/ptr_ring.c static void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f) f 1048 tools/vm/page-types.c int walk_tree(const char *name, const struct stat *st, int type, struct FTW *f) f 1050 tools/vm/page-types.c (void)f; f 158 tools/vm/slabinfo.c FILE *f = fopen(name, "r"); f 160 tools/vm/slabinfo.c if (!f) f 163 tools/vm/slabinfo.c if (!fgets(buffer, sizeof(buffer), f)) f 165 tools/vm/slabinfo.c fclose(f); f 206 tools/vm/slabinfo.c FILE *f; f 209 tools/vm/slabinfo.c f = fopen(x, "w"); f 210 tools/vm/slabinfo.c if (!f) f 213 tools/vm/slabinfo.c fprintf(f, "%d\n", n); f 214 tools/vm/slabinfo.c fclose(f); f 220 tools/vm/slabinfo.c FILE *f; f 224 tools/vm/slabinfo.c f = fopen(x, "r"); f 225 tools/vm/slabinfo.c if (!f) { f 229 tools/vm/slabinfo.c l = fread(buffer, 1, sizeof(buffer), f); f 231 tools/vm/slabinfo.c fclose(f); f 58 tools/wmi/dell-smbios-example.c FILE *f; f 66 tools/wmi/dell-smbios-example.c f = fopen(value_sysfs, "rb"); f 67 tools/wmi/dell-smbios-example.c if (!f) { f 71 tools/wmi/dell-smbios-example.c fread(buf, 1, 4096, f); f 72 tools/wmi/dell-smbios-example.c fclose(f); f 80 tools/wmi/dell-smbios-example.c f = fopen(location_sysfs, "rb"); f 81 tools/wmi/dell-smbios-example.c if (!f) { f 85 tools/wmi/dell-smbios-example.c fread(buf, 1, 4096, f); f 86 tools/wmi/dell-smbios-example.c fclose(f); f 145 tools/wmi/dell-smbios-example.c FILE *f; f 147 tools/wmi/dell-smbios-example.c f = fopen(ioctl_devfs, "rb"); f 148 tools/wmi/dell-smbios-example.c if (!f) f 150 tools/wmi/dell-smbios-example.c fread(buffer_size, sizeof(__u64), 1, f); f 151 tools/wmi/dell-smbios-example.c fclose(f); f 285 virt/kvm/eventfd.c struct fd f; f 308 virt/kvm/eventfd.c f = fdget(args->fd); f 309 virt/kvm/eventfd.c if (!f.file) { f 314 virt/kvm/eventfd.c eventfd = eventfd_ctx_fileget(f.file); f 401 virt/kvm/eventfd.c events = vfs_poll(f.file, &irqfd->pt); f 426 virt/kvm/eventfd.c fdput(f); f 439 virt/kvm/eventfd.c fdput(f); f 190 virt/kvm/vfio.c struct fd f; f 199 virt/kvm/vfio.c f = fdget(fd); f 200 virt/kvm/vfio.c if (!f.file) f 203 virt/kvm/vfio.c vfio_group = kvm_vfio_group_get_external_user(f.file); f 204 virt/kvm/vfio.c fdput(f); f 243 virt/kvm/vfio.c f = fdget(fd); f 244 virt/kvm/vfio.c if (!f.file) f 253 virt/kvm/vfio.c f.file)) f 271 virt/kvm/vfio.c fdput(f); f 283 virt/kvm/vfio.c struct fd f; f 290 virt/kvm/vfio.c f = fdget(param.groupfd); f 291 virt/kvm/vfio.c if (!f.file) f 294 virt/kvm/vfio.c vfio_group = kvm_vfio_group_get_external_user(f.file); f 295 virt/kvm/vfio.c fdput(f);