fc 107 arch/alpha/math-emu/math.c unsigned long fa, fb, fc, func, mode, src; fc 113 arch/alpha/math-emu/math.c fc = (insn >> 0) & 0x1f; /* destination register */ fc 277 arch/alpha/math-emu/math.c alpha_write_fp_reg_s(fc, vc); fc 285 arch/alpha/math-emu/math.c alpha_write_fp_reg(fc, vc); fc 2181 arch/arm/mach-omap2/omap_hwmod.c struct device_node *fc; fc 2184 arch/arm/mach-omap2/omap_hwmod.c res = of_dev_hwmod_lookup(np0, oh, &i, &fc); fc 2186 arch/arm/mach-omap2/omap_hwmod.c *found = fc; fc 102 arch/ia64/include/uapi/asm/intrinsics.h #define ia64_fc IA64_INTRINSIC_API(fc) fc 604 arch/ia64/kernel/perfmon.c static int pfmfs_init_fs_context(struct fs_context *fc) fc 606 arch/ia64/kernel/perfmon.c struct pseudo_fs_context *ctx = init_pseudo(fc, PFMFS_MAGIC); fc 181 arch/powerpc/math-emu/math_efp.c unsigned long type, func, fc, fa, fb, src, speinsn; fc 194 arch/powerpc/math-emu/math_efp.c fc = (speinsn >> 21) & 0x1f; fc 199 arch/powerpc/math-emu/math_efp.c vc.wp[0] = current->thread.evr[fc]; fc 200 arch/powerpc/math-emu/math_efp.c vc.wp[1] = regs->gpr[fc]; fc 681 arch/powerpc/math-emu/math_efp.c current->thread.evr[fc] = vc.wp[0]; fc 682 arch/powerpc/math-emu/math_efp.c regs->gpr[fc] = vc.wp[1]; fc 728 arch/powerpc/math-emu/math_efp.c unsigned long speinsn, type, fb, fc, fptype, func; fc 750 arch/powerpc/math-emu/math_efp.c fc = (speinsn >> 21) & 0x1f; fc 751 arch/powerpc/math-emu/math_efp.c s_lo = regs->gpr[fc] & SIGN_BIT_S; fc 752 arch/powerpc/math-emu/math_efp.c s_hi = current->thread.evr[fc] & SIGN_BIT_S; fc 753 arch/powerpc/math-emu/math_efp.c fgpr.wp[0] = current->thread.evr[fc]; fc 754 arch/powerpc/math-emu/math_efp.c fgpr.wp[1] = regs->gpr[fc]; fc 879 arch/powerpc/math-emu/math_efp.c current->thread.evr[fc] = fgpr.wp[0]; fc 880 arch/powerpc/math-emu/math_efp.c regs->gpr[fc] = fgpr.wp[1]; fc 619 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 621 arch/powerpc/platforms/cell/spufs/inode.c struct spufs_fs_context *ctx = fc->fs_private; fc 622 arch/powerpc/platforms/cell/spufs/inode.c struct spufs_sb_info *sbi = fc->s_fs_info; fc 628 arch/powerpc/platforms/cell/spufs/inode.c opt = fs_parse(fc, &spufs_fs_parameters, param, &result); fc 636 arch/powerpc/platforms/cell/spufs/inode.c return invalf(fc, "Unknown uid"); fc 642 arch/powerpc/platforms/cell/spufs/inode.c return invalf(fc, "Unknown gid"); fc 687 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_create_root(struct super_block *sb, struct fs_context *fc) fc 689 arch/powerpc/platforms/cell/spufs/inode.c struct spufs_fs_context *ctx = fc->fs_private; fc 720 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_fill_super(struct super_block *sb, struct fs_context *fc) fc 728 arch/powerpc/platforms/cell/spufs/inode.c return spufs_create_root(sb, fc); fc 731 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_get_tree(struct fs_context *fc) fc 733 arch/powerpc/platforms/cell/spufs/inode.c return get_tree_single(fc, spufs_fill_super); fc 736 arch/powerpc/platforms/cell/spufs/inode.c static void spufs_free_fc(struct fs_context *fc) fc 738 arch/powerpc/platforms/cell/spufs/inode.c kfree(fc->s_fs_info); fc 747 arch/powerpc/platforms/cell/spufs/inode.c static int spufs_init_fs_context(struct fs_context *fc) fc 764 arch/powerpc/platforms/cell/spufs/inode.c fc->fs_private = ctx; fc 765 arch/powerpc/platforms/cell/spufs/inode.c fc->s_fs_info = sbi; fc 766 arch/powerpc/platforms/cell/spufs/inode.c fc->ops = &spufs_context_ops; fc 45 arch/s390/crypto/aes_s390.c unsigned long fc; fc 56 arch/s390/crypto/aes_s390.c unsigned long fc; fc 94 arch/s390/crypto/aes_s390.c unsigned long fc; fc 97 arch/s390/crypto/aes_s390.c fc = (key_len == 16) ? CPACF_KM_AES_128 : fc 102 arch/s390/crypto/aes_s390.c sctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; fc 103 arch/s390/crypto/aes_s390.c if (!sctx->fc) fc 115 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) { fc 119 arch/s390/crypto/aes_s390.c cpacf_km(sctx->fc, &sctx->key, out, in, AES_BLOCK_SIZE); fc 126 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) { fc 130 arch/s390/crypto/aes_s390.c cpacf_km(sctx->fc | CPACF_DECRYPT, fc 241 arch/s390/crypto/aes_s390.c unsigned long fc; fc 244 arch/s390/crypto/aes_s390.c fc = (key_len == 16) ? CPACF_KM_AES_128 : fc 249 arch/s390/crypto/aes_s390.c sctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; fc 250 arch/s390/crypto/aes_s390.c if (!sctx->fc) fc 269 arch/s390/crypto/aes_s390.c cpacf_km(sctx->fc | modifier, sctx->key, fc 284 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 298 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 356 arch/s390/crypto/aes_s390.c unsigned long fc; fc 359 arch/s390/crypto/aes_s390.c fc = (key_len == 16) ? CPACF_KMC_AES_128 : fc 364 arch/s390/crypto/aes_s390.c sctx->fc = (fc && cpacf_test_func(&kmc_functions, fc)) ? fc : 0; fc 365 arch/s390/crypto/aes_s390.c if (!sctx->fc) fc 390 arch/s390/crypto/aes_s390.c cpacf_kmc(sctx->fc | modifier, ¶m, fc 405 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 419 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 512 arch/s390/crypto/aes_s390.c unsigned long fc; fc 526 arch/s390/crypto/aes_s390.c fc = (key_len == 32) ? CPACF_KM_XTS_128 : fc 530 arch/s390/crypto/aes_s390.c xts_ctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; fc 531 arch/s390/crypto/aes_s390.c if (!xts_ctx->fc) fc 567 arch/s390/crypto/aes_s390.c cpacf_pcc(xts_ctx->fc, pcc_param.key + offset); fc 575 arch/s390/crypto/aes_s390.c cpacf_km(xts_ctx->fc | modifier, xts_param.key + offset, fc 592 arch/s390/crypto/aes_s390.c if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) fc 609 arch/s390/crypto/aes_s390.c if (unlikely(!xts_ctx->fc || (nbytes % XTS_BLOCK_SIZE) != 0)) fc 667 arch/s390/crypto/aes_s390.c unsigned long fc; fc 670 arch/s390/crypto/aes_s390.c fc = (key_len == 16) ? CPACF_KMCTR_AES_128 : fc 675 arch/s390/crypto/aes_s390.c sctx->fc = (fc && cpacf_test_func(&kmctr_functions, fc)) ? fc : 0; fc 676 arch/s390/crypto/aes_s390.c if (!sctx->fc) fc 715 arch/s390/crypto/aes_s390.c cpacf_kmctr(sctx->fc | modifier, sctx->key, fc 730 arch/s390/crypto/aes_s390.c cpacf_kmctr(sctx->fc | modifier, sctx->key, fc 748 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 762 arch/s390/crypto/aes_s390.c if (unlikely(!sctx->fc)) fc 800 arch/s390/crypto/aes_s390.c ctx->fc = CPACF_KMA_GCM_AES_128; fc 803 arch/s390/crypto/aes_s390.c ctx->fc = CPACF_KMA_GCM_AES_192; fc 806 arch/s390/crypto/aes_s390.c ctx->fc = CPACF_KMA_GCM_AES_256; fc 1064 arch/s390/crypto/aes_s390.c cpacf_kma(ctx->fc | flags, ¶m, fc 82 arch/s390/crypto/des_s390.c static int ecb_desall_crypt(struct blkcipher_desc *desc, unsigned long fc, fc 93 arch/s390/crypto/des_s390.c cpacf_km(fc, ctx->key, walk->dst.virt.addr, fc 100 arch/s390/crypto/des_s390.c static int cbc_desall_crypt(struct blkcipher_desc *desc, unsigned long fc, fc 117 arch/s390/crypto/des_s390.c cpacf_kmc(fc, ¶m, walk->dst.virt.addr, fc 367 arch/s390/crypto/des_s390.c static int ctr_desall_crypt(struct blkcipher_desc *desc, unsigned long fc, fc 383 arch/s390/crypto/des_s390.c cpacf_kmctr(fc, ctx->key, walk->dst.virt.addr, fc 395 arch/s390/crypto/des_s390.c cpacf_kmctr(fc, ctx->key, buf, walk->src.virt.addr, fc 84 arch/s390/crypto/paes_s390.c unsigned long fc; fc 90 arch/s390/crypto/paes_s390.c unsigned long fc; fc 110 arch/s390/crypto/paes_s390.c unsigned long fc; fc 116 arch/s390/crypto/paes_s390.c fc = (ctx->pk.type == PKEY_KEYTYPE_AES_128) ? CPACF_KM_PAES_128 : fc 121 arch/s390/crypto/paes_s390.c ctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; fc 123 arch/s390/crypto/paes_s390.c return ctx->fc ? 0 : -EINVAL; fc 172 arch/s390/crypto/paes_s390.c k = cpacf_km(ctx->fc | modifier, ctx->pk.protkey, fc 245 arch/s390/crypto/paes_s390.c unsigned long fc; fc 251 arch/s390/crypto/paes_s390.c fc = (ctx->pk.type == PKEY_KEYTYPE_AES_128) ? CPACF_KMC_PAES_128 : fc 256 arch/s390/crypto/paes_s390.c ctx->fc = (fc && cpacf_test_func(&kmc_functions, fc)) ? fc : 0; fc 258 arch/s390/crypto/paes_s390.c return ctx->fc ? 0 : -EINVAL; fc 296 arch/s390/crypto/paes_s390.c k = cpacf_kmc(ctx->fc | modifier, ¶m, fc 374 arch/s390/crypto/paes_s390.c unsigned long fc; fc 384 arch/s390/crypto/paes_s390.c fc = (ctx->pk[0].type == PKEY_KEYTYPE_AES_128) ? CPACF_KM_PXTS_128 : fc 389 arch/s390/crypto/paes_s390.c ctx->fc = (fc && cpacf_test_func(&km_functions, fc)) ? fc : 0; fc 391 arch/s390/crypto/paes_s390.c return ctx->fc ? 0 : -EINVAL; fc 458 arch/s390/crypto/paes_s390.c cpacf_pcc(ctx->fc, pcc_param.key + offset); fc 466 arch/s390/crypto/paes_s390.c k = cpacf_km(ctx->fc | modifier, xts_param.key + offset, fc 541 arch/s390/crypto/paes_s390.c unsigned long fc; fc 547 arch/s390/crypto/paes_s390.c fc = (ctx->pk.type == PKEY_KEYTYPE_AES_128) ? CPACF_KMCTR_PAES_128 : fc 553 arch/s390/crypto/paes_s390.c ctx->fc = (fc && cpacf_test_func(&kmctr_functions, fc)) ? fc : 0; fc 555 arch/s390/crypto/paes_s390.c return ctx->fc ? 0 : -EINVAL; fc 607 arch/s390/crypto/paes_s390.c k = cpacf_kmctr(ctx->fc | modifier, ctx->pk.protkey, fc 632 arch/s390/crypto/paes_s390.c if (cpacf_kmctr(ctx->fc | modifier, fc 223 arch/s390/hypfs/inode.c static int hypfs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 225 arch/s390/hypfs/inode.c struct hypfs_sb_info *hypfs_info = fc->s_fs_info; fc 231 arch/s390/hypfs/inode.c opt = fs_parse(fc, &hypfs_fs_parameters, param, &result); fc 239 arch/s390/hypfs/inode.c return invalf(fc, "Unknown uid"); fc 245 arch/s390/hypfs/inode.c return invalf(fc, "Unknown gid"); fc 261 arch/s390/hypfs/inode.c static int hypfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 296 arch/s390/hypfs/inode.c static int hypfs_get_tree(struct fs_context *fc) fc 298 arch/s390/hypfs/inode.c return get_tree_single(fc, hypfs_fill_super); fc 301 arch/s390/hypfs/inode.c static void hypfs_free_fc(struct fs_context *fc) fc 303 arch/s390/hypfs/inode.c kfree(fc->s_fs_info); fc 312 arch/s390/hypfs/inode.c static int hypfs_init_fs_context(struct fs_context *fc) fc 324 arch/s390/hypfs/inode.c fc->s_fs_info = sbi; fc 325 arch/s390/hypfs/inode.c fc->ops = &hypfs_context_ops; fc 185 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (opcode) fc 262 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KM) fc 292 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KMC) fc 318 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KIMD) fc 341 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KLMD) fc 367 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KMAC) fc 400 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KMCTR) fc 431 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), fc 457 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [opc] "i" (CPACF_PRNO) fc 476 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_PCC) fc 496 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_PCKMO) fc 528 arch/s390/include/asm/cpacf.h : [fc] "d" (r0), [pba] "a" (r1), [opc] "i" (CPACF_KMA) fc 76 arch/s390/include/asm/nmi.h u64 fc : 1; /* 43 fp control register validity */ fc 87 arch/s390/include/asm/pci_insn.h u8 fc; /* function controls */ fc 187 arch/s390/include/asm/sysinfo.h int stsi(void *sysinfo, int fc, int sel1, int sel2); fc 45 arch/s390/include/asm/topology.h int topology_set_cpu_management(int fc); fc 91 arch/s390/include/asm/trace/zcrypt.h TP_PROTO(void *ptr, u32 fc, u32 rc, u16 dev, u16 dom), fc 92 arch/s390/include/asm/trace/zcrypt.h TP_ARGS(ptr, fc, rc, dev, dom), fc 95 arch/s390/include/asm/trace/zcrypt.h __field(u32, fc) fc 101 arch/s390/include/asm/trace/zcrypt.h __entry->fc = fc; fc 107 arch/s390/include/asm/trace/zcrypt.h (unsigned int) __entry->fc, fc 160 arch/s390/include/uapi/asm/vtoc.h __u16 fc; /* number of whole cylinders in free ext. */ fc 227 arch/s390/kernel/nmi.c if (!mci.fc) { fc 26 arch/s390/kernel/sysinfo.c static inline int __stsi(void *sysinfo, int fc, int sel1, int sel2, int *lvl) fc 28 arch/s390/kernel/sysinfo.c register int r0 asm("0") = (fc << 28) | sel1; fc 51 arch/s390/kernel/sysinfo.c int stsi(void *sysinfo, int fc, int sel1, int sel2) fc 55 arch/s390/kernel/sysinfo.c rc = __stsi(sysinfo, fc, sel1, sel2, &lvl); fc 58 arch/s390/kernel/sysinfo.c return fc ? 0 : lvl; fc 476 arch/s390/kernel/sysinfo.c #define STSI_FILE(fc, s1, s2) \ fc 477 arch/s390/kernel/sysinfo.c static int stsi_open_##fc##_##s1##_##s2(struct inode *inode, struct file *file)\ fc 482 arch/s390/kernel/sysinfo.c if (stsi(file->private_data, fc, s1, s2)) { \ fc 490 arch/s390/kernel/sysinfo.c static const struct file_operations stsi_##fc##_##s1##_##s2##_fs_ops = { \ fc 491 arch/s390/kernel/sysinfo.c .open = stsi_open_##fc##_##s1##_##s2, \ fc 218 arch/s390/kernel/topology.c static int ptf(unsigned long fc) fc 227 arch/s390/kernel/topology.c : "d" (fc) : "cc"); fc 231 arch/s390/kernel/topology.c int topology_set_cpu_management(int fc) fc 237 arch/s390/kernel/topology.c if (fc) fc 75 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 91 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 107 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 118 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 133 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 149 arch/s390/kvm/gaccess.c unsigned long fc : 1; /* Format-Control */ fc 712 arch/s390/kvm/gaccess.c if (rtte.fc && edat2) { fc 740 arch/s390/kvm/gaccess.c if (ste.fc && edat1) { fc 1097 arch/s390/kvm/gaccess.c if (rtte.fc && sg->edat_level >= 2) { fc 1133 arch/s390/kvm/gaccess.c if (ste.fc && sg->edat_level >= 1) { fc 616 arch/s390/kvm/priv.c uint8_t fc; fc 633 arch/s390/kvm/priv.c fc = (reg0 >> 24) & 0xff; fc 634 arch/s390/kvm/priv.c if (fc != 0x03) fc 834 arch/s390/kvm/priv.c u8 fc, u8 sel1, u16 sel2) fc 839 arch/s390/kvm/priv.c vcpu->run->s390_stsi.fc = fc; fc 846 arch/s390/kvm/priv.c int fc = (vcpu->run->s.regs.gprs[0] & 0xf0000000) >> 28; fc 855 arch/s390/kvm/priv.c VCPU_EVENT(vcpu, 3, "STSI: fc: %u sel1: %u sel2: %u", fc, sel1, sel2); fc 860 arch/s390/kvm/priv.c if (fc > 3) { fc 869 arch/s390/kvm/priv.c if (fc == 0) { fc 880 arch/s390/kvm/priv.c switch (fc) { fc 886 arch/s390/kvm/priv.c if (stsi((void *) mem, fc, sel1, sel2)) fc 905 arch/s390/kvm/priv.c insert_stsi_usr_data(vcpu, operand2, ar, fc, sel1, sel2); fc 908 arch/s390/kvm/priv.c trace_kvm_s390_handle_stsi(vcpu, fc, sel1, sel2, operand2); fc 394 arch/s390/kvm/trace.h TP_PROTO(VCPU_PROTO_COMMON, int fc, int sel1, int sel2, u64 addr), fc 395 arch/s390/kvm/trace.h TP_ARGS(VCPU_ARGS_COMMON, fc, sel1, sel2, addr), fc 399 arch/s390/kvm/trace.h __field(int, fc) fc 407 arch/s390/kvm/trace.h __entry->fc = fc; fc 414 arch/s390/kvm/trace.h __entry->fc, __entry->sel1, __entry->sel2, fc 52 arch/x86/kernel/cpu/resctrl/internal.h static inline struct rdt_fs_context *rdt_fc2context(struct fs_context *fc) fc 54 arch/x86/kernel/cpu/resctrl/internal.h struct kernfs_fs_context *kfc = fc->fs_private; fc 1957 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdt_get_tree(struct fs_context *fc) fc 1959 arch/x86/kernel/cpu/resctrl/rdtgroup.c struct rdt_fs_context *ctx = rdt_fc2context(fc); fc 2004 arch/x86/kernel/cpu/resctrl/rdtgroup.c ret = kernfs_get_tree(fc); fc 2065 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdt_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 2067 arch/x86/kernel/cpu/resctrl/rdtgroup.c struct rdt_fs_context *ctx = rdt_fc2context(fc); fc 2071 arch/x86/kernel/cpu/resctrl/rdtgroup.c opt = fs_parse(fc, &rdt_fs_parameters, param, &result); fc 2092 arch/x86/kernel/cpu/resctrl/rdtgroup.c static void rdt_fs_context_free(struct fs_context *fc) fc 2094 arch/x86/kernel/cpu/resctrl/rdtgroup.c struct rdt_fs_context *ctx = rdt_fc2context(fc); fc 2096 arch/x86/kernel/cpu/resctrl/rdtgroup.c kernfs_free_fs_context(fc); fc 2106 arch/x86/kernel/cpu/resctrl/rdtgroup.c static int rdt_init_fs_context(struct fs_context *fc) fc 2116 arch/x86/kernel/cpu/resctrl/rdtgroup.c fc->fs_private = &ctx->kfc; fc 2117 arch/x86/kernel/cpu/resctrl/rdtgroup.c fc->ops = &rdt_fs_context_ops; fc 2118 arch/x86/kernel/cpu/resctrl/rdtgroup.c put_user_ns(fc->user_ns); fc 2119 arch/x86/kernel/cpu/resctrl/rdtgroup.c fc->user_ns = get_user_ns(&init_user_ns); fc 2120 arch/x86/kernel/cpu/resctrl/rdtgroup.c fc->global = true; fc 90 arch/x86/platform/uv/bios_uv.c s64 uv_bios_get_sn_info(int fc, int *uvtype, long *partid, long *coher, fc 97 arch/x86/platform/uv/bios_uv.c ret = uv_bios_call_irqsave(UV_BIOS_GET_SN_INFO, fc, fc 351 drivers/bcma/driver_chipcommon_pmu.c u32 tmp, div, ndiv, p1, p2, fc; fc 378 drivers/bcma/driver_chipcommon_pmu.c fc = bcma_pmu_get_alp_clock(cc) / 1000000; fc 379 drivers/bcma/driver_chipcommon_pmu.c fc = (p1 * ndiv * fc) / p2; fc 382 drivers/bcma/driver_chipcommon_pmu.c return (fc / div) * 1000000; fc 227 drivers/clk/mmp/clk.h #define DEFINE_MIX_REG_INFO(w_d, s_d, w_m, s_m, fc) \ fc 233 drivers/clk/mmp/clk.h .bit_fc = (fc), \ fc 163 drivers/crypto/chelsio/chtls/chtls_io.c struct fw_flowc_wr fc; fc 174 drivers/crypto/chelsio/chtls/chtls_io.c flowc = &sflowc.fc; fc 66 drivers/crypto/nx/nx-842-powernv.c unsigned int *outlenp, void *workmem, int fc); fc 451 drivers/crypto/nx/nx-842-powernv.c void *workmem, int fc) fc 481 drivers/crypto/nx/nx-842-powernv.c ccw = SET_FIELD(CCW_FC_842, ccw, fc); fc 554 drivers/crypto/nx/nx-842-powernv.c void *workmem, int fc) fc 576 drivers/crypto/nx/nx-842-powernv.c ccw = SET_FIELD(CCW_FC_842, ccw, fc); fc 382 drivers/crypto/nx/nx.c if (msc->fc >= NX_MAX_FC || msc->mode >= NX_MAX_MODE) { fc 384 drivers/crypto/nx/nx.c "combo: %d/%d (ignored)\n", msc->fc, fc 399 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].databytelen = fc 401 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][0].sglen = fc 405 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].databytelen = fc 407 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = fc 411 drivers/crypto/nx/nx.c if (msc->fc == NX_FC_AES) { fc 412 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2]. fc 414 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = fc 416 drivers/crypto/nx/nx.c } else if (msc->fc == NX_FC_AES_HMAC || fc 417 drivers/crypto/nx/nx.c msc->fc == NX_FC_SHA) { fc 418 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1]. fc 420 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][1].sglen = fc 425 drivers/crypto/nx/nx.c ": (%u/256)\n", msc->fc); fc 429 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].databytelen = fc 431 drivers/crypto/nx/nx.c props->ap[msc->fc][msc->mode][2].sglen = fc 436 drivers/crypto/nx/nx.c "len combo: (%u/%u)\n", msc->fc, fc 488 drivers/crypto/nx/nx.c static bool nx_check_prop(struct device *dev, u32 fc, u32 mode, int slot) fc 490 drivers/crypto/nx/nx.c struct alg_props *props = &nx_driver.of.ap[fc][mode][slot]; fc 495 drivers/crypto/nx/nx.c "%u/%u (ignored)\n", fc, mode, slot, fc 503 drivers/crypto/nx/nx.c static bool nx_check_props(struct device *dev, u32 fc, u32 mode) fc 508 drivers/crypto/nx/nx.c if (!nx_check_prop(dev, fc, mode, i)) fc 514 drivers/crypto/nx/nx.c static int nx_register_alg(struct crypto_alg *alg, u32 fc, u32 mode) fc 516 drivers/crypto/nx/nx.c return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? fc 520 drivers/crypto/nx/nx.c static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) fc 522 drivers/crypto/nx/nx.c return nx_check_props(&nx_driver.viodev->dev, fc, mode) ? fc 526 drivers/crypto/nx/nx.c static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) fc 529 drivers/crypto/nx/nx.c fc, mode, slot) : fc 530 drivers/crypto/nx/nx.c nx_check_props(&nx_driver.viodev->dev, fc, mode)) ? fc 534 drivers/crypto/nx/nx.c static void nx_unregister_alg(struct crypto_alg *alg, u32 fc, u32 mode) fc 536 drivers/crypto/nx/nx.c if (nx_check_props(NULL, fc, mode)) fc 540 drivers/crypto/nx/nx.c static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) fc 542 drivers/crypto/nx/nx.c if (nx_check_props(NULL, fc, mode)) fc 546 drivers/crypto/nx/nx.c static void nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, fc 549 drivers/crypto/nx/nx.c if (slot >= 0 ? nx_check_prop(NULL, fc, mode, slot) : fc 550 drivers/crypto/nx/nx.c nx_check_props(NULL, fc, mode)) fc 652 drivers/crypto/nx/nx.c static int nx_crypto_ctx_init(struct nx_crypto_ctx *nx_ctx, u32 fc, u32 mode) fc 686 drivers/crypto/nx/nx.c memcpy(nx_ctx->props, nx_driver.of.ap[fc][mode], fc 37 drivers/crypto/nx/nx.h u32 fc; fc 473 drivers/dax/super.c static int dax_init_fs_context(struct fs_context *fc) fc 475 drivers/dax/super.c struct pseudo_fs_context *ctx = init_pseudo(fc, DAXFS_MAGIC); fc 63 drivers/dma-buf/dma-buf.c static int dma_buf_fs_init_context(struct fs_context *fc) fc 67 drivers/dma-buf/dma-buf.c ctx = init_pseudo(fc, DMA_BUF_MAGIC); fc 1331 drivers/dma/amba-pl08x.c u32 fc; fc 1335 drivers/dma/amba-pl08x.c fc = PL080_FLOW_MEM2MEM; fc 1337 drivers/dma/amba-pl08x.c fc = (txd->ccfg & PL080_CONFIG_FLOW_CONTROL_MASK) >> fc 1339 drivers/dma/amba-pl08x.c if (!((fc >= PL080_FLOW_SRC2DST_DST) && fc 1340 drivers/dma/amba-pl08x.c (fc <= PL080_FLOW_SRC2DST_SRC))) { fc 566 drivers/firmware/arm_scmi/perf.c struct scmi_fc_info *fc; fc 568 drivers/firmware/arm_scmi/perf.c fc = devm_kzalloc(handle->dev, sizeof(*fc), GFP_KERNEL); fc 569 drivers/firmware/arm_scmi/perf.c if (!fc) fc 573 drivers/firmware/arm_scmi/perf.c &fc->level_set_addr, &fc->level_set_db); fc 575 drivers/firmware/arm_scmi/perf.c &fc->level_get_addr, NULL); fc 577 drivers/firmware/arm_scmi/perf.c &fc->limit_set_addr, &fc->limit_set_db); fc 579 drivers/firmware/arm_scmi/perf.c &fc->limit_get_addr, NULL); fc 580 drivers/firmware/arm_scmi/perf.c *p_fc = fc; fc 537 drivers/gpu/drm/drm_drv.c static int drm_fs_init_fs_context(struct fs_context *fc) fc 539 drivers/gpu/drm/drm_drv.c return init_pseudo(fc, 0x010203ff) ? 0 : -ENOMEM; fc 3367 drivers/infiniband/hw/mlx5/main.c struct mlx5_fc *fc = read_attr->hw_cntrs_hndl; fc 3370 drivers/infiniband/hw/mlx5/main.c return mlx5_fc_query(dev->mdev, fc, fc 510 drivers/infiniband/hw/qib/qib_fs.c static int qibfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 538 drivers/infiniband/hw/qib/qib_fs.c static int qibfs_get_tree(struct fs_context *fc) fc 540 drivers/infiniband/hw/qib/qib_fs.c int ret = get_tree_single(fc, qibfs_fill_super); fc 542 drivers/infiniband/hw/qib/qib_fs.c qib_super = fc->root->d_sb; fc 550 drivers/infiniband/hw/qib/qib_fs.c static int qibfs_init_fs_context(struct fs_context *fc) fc 552 drivers/infiniband/hw/qib/qib_fs.c fc->ops = &qibfs_context_ops; fc 172 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 175 drivers/isdn/hardware/mISDN/avmfritz.c outb(idx, fc->addr + CHIP_INDEX); fc 176 drivers/isdn/hardware/mISDN/avmfritz.c return inb(fc->addr + CHIP_WINDOW + (offset & 0xf)); fc 182 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 185 drivers/isdn/hardware/mISDN/avmfritz.c outb(idx, fc->addr + CHIP_INDEX); fc 186 drivers/isdn/hardware/mISDN/avmfritz.c outb(value, fc->addr + CHIP_WINDOW + (offset & 0xf)); fc 192 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 194 drivers/isdn/hardware/mISDN/avmfritz.c outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); fc 195 drivers/isdn/hardware/mISDN/avmfritz.c insb(fc->addr + CHIP_WINDOW, data, size); fc 201 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 203 drivers/isdn/hardware/mISDN/avmfritz.c outb(AVM_ISAC_FIFO, fc->addr + CHIP_INDEX); fc 204 drivers/isdn/hardware/mISDN/avmfritz.c outsb(fc->addr + CHIP_WINDOW, data, size); fc 210 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 212 drivers/isdn/hardware/mISDN/avmfritz.c outl(offset, fc->addr + AVM_ISACX_INDEX); fc 213 drivers/isdn/hardware/mISDN/avmfritz.c return 0xff & inl(fc->addr + AVM_ISACX_DATA); fc 219 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 221 drivers/isdn/hardware/mISDN/avmfritz.c outl(offset, fc->addr + AVM_ISACX_INDEX); fc 222 drivers/isdn/hardware/mISDN/avmfritz.c outl(value, fc->addr + AVM_ISACX_DATA); fc 228 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 231 drivers/isdn/hardware/mISDN/avmfritz.c outl(off, fc->addr + AVM_ISACX_INDEX); fc 233 drivers/isdn/hardware/mISDN/avmfritz.c data[i] = 0xff & inl(fc->addr + AVM_ISACX_DATA); fc 239 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = p; fc 242 drivers/isdn/hardware/mISDN/avmfritz.c outl(off, fc->addr + AVM_ISACX_INDEX); fc 244 drivers/isdn/hardware/mISDN/avmfritz.c outl(data[i], fc->addr + AVM_ISACX_DATA); fc 248 drivers/isdn/hardware/mISDN/avmfritz.c Sel_BCS(struct fritzcard *fc, u32 channel) fc 250 drivers/isdn/hardware/mISDN/avmfritz.c if (test_bit(FLG_ACTIVE, &fc->bch[0].Flags) && fc 251 drivers/isdn/hardware/mISDN/avmfritz.c (fc->bch[0].nr & channel)) fc 252 drivers/isdn/hardware/mISDN/avmfritz.c return &fc->bch[0]; fc 253 drivers/isdn/hardware/mISDN/avmfritz.c else if (test_bit(FLG_ACTIVE, &fc->bch[1].Flags) && fc 254 drivers/isdn/hardware/mISDN/avmfritz.c (fc->bch[1].nr & channel)) fc 255 drivers/isdn/hardware/mISDN/avmfritz.c return &fc->bch[1]; fc 261 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pci(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { fc 264 drivers/isdn/hardware/mISDN/avmfritz.c outl(idx, fc->addr + CHIP_INDEX); fc 265 drivers/isdn/hardware/mISDN/avmfritz.c outl(hdlc->ctrl.ctrl, fc->addr + CHIP_WINDOW + HDLC_STATUS); fc 269 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pciv2(struct fritzcard *fc, struct hdlc_hw *hdlc, u32 channel) { fc 270 drivers/isdn/hardware/mISDN/avmfritz.c outl(hdlc->ctrl.ctrl, fc->addr + (channel == 2 ? AVM_HDLC_STATUS_2 : fc 276 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 279 drivers/isdn/hardware/mISDN/avmfritz.c hdlc = &fc->hdlc[(bch->nr - 1) & 1]; fc 280 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr, fc 282 drivers/isdn/hardware/mISDN/avmfritz.c switch (fc->type) { fc 284 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pciv2(fc, hdlc, bch->nr); fc 287 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pci(fc, hdlc, bch->nr); fc 309 drivers/isdn/hardware/mISDN/avmfritz.c read_status(struct fritzcard *fc, u32 channel) fc 311 drivers/isdn/hardware/mISDN/avmfritz.c switch (fc->type) { fc 313 drivers/isdn/hardware/mISDN/avmfritz.c return __read_status_pciv2(fc->addr, channel); fc 315 drivers/isdn/hardware/mISDN/avmfritz.c return __read_status_pci(fc->addr, channel); fc 322 drivers/isdn/hardware/mISDN/avmfritz.c enable_hwirq(struct fritzcard *fc) fc 324 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg |= AVM_STATUS0_ENA_IRQ; fc 325 drivers/isdn/hardware/mISDN/avmfritz.c outb(fc->ctrlreg, fc->addr + 2); fc 329 drivers/isdn/hardware/mISDN/avmfritz.c disable_hwirq(struct fritzcard *fc) fc 331 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg &= ~AVM_STATUS0_ENA_IRQ; fc 332 drivers/isdn/hardware/mISDN/avmfritz.c outb(fc->ctrlreg, fc->addr + 2); fc 338 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 342 drivers/isdn/hardware/mISDN/avmfritz.c hdlc = &fc->hdlc[(bch->nr - 1) & 1]; fc 343 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: hdlc %c protocol %x-->%x ch %d\n", fc->name, fc 346 drivers/isdn/hardware/mISDN/avmfritz.c mode = (fc->type == AVM_FRITZ_PCIV2) ? HDLC_FIFO_SIZE_128 : 0; fc 383 drivers/isdn/hardware/mISDN/avmfritz.c pr_info("%s: protocol not known %x\n", fc->name, protocol); fc 396 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 398 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: %s %d\n", fc->name, __func__, count); fc 406 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, bch->nr, count); fc 412 drivers/isdn/hardware/mISDN/avmfritz.c if (fc->type == AVM_FRITZ_PCIV2) fc 413 drivers/isdn/hardware/mISDN/avmfritz.c addr = fc->addr + (bch->nr == 2 ? fc 416 drivers/isdn/hardware/mISDN/avmfritz.c addr = fc->addr + CHIP_WINDOW; fc 417 drivers/isdn/hardware/mISDN/avmfritz.c outl(bch->nr == 2 ? AVM_HDLC_2 : AVM_HDLC_1, fc->addr); fc 429 drivers/isdn/hardware/mISDN/avmfritz.c snprintf(fc->log, LOG_SIZE, "B%1d-recv %s %d ", fc 430 drivers/isdn/hardware/mISDN/avmfritz.c bch->nr, fc->name, count); fc 431 drivers/isdn/hardware/mISDN/avmfritz.c print_hex_dump_bytes(fc->log, DUMP_PREFIX_OFFSET, p, count); fc 438 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 446 drivers/isdn/hardware/mISDN/avmfritz.c hdlc = &fc->hdlc[idx]; fc 447 drivers/isdn/hardware/mISDN/avmfritz.c fs = (fc->type == AVM_FRITZ_PCIV2) ? fc 470 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count, fc 474 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s.B%d: fillempty %d\n", fc->name, bch->nr, count); fc 477 drivers/isdn/hardware/mISDN/avmfritz.c if (fc->type == AVM_FRITZ_PCIV2) { fc 478 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pciv2(fc, hdlc, bch->nr); fc 479 drivers/isdn/hardware/mISDN/avmfritz.c addr = fc->addr + (bch->nr == 2 ? fc 482 drivers/isdn/hardware/mISDN/avmfritz.c __write_ctrl_pci(fc, hdlc, bch->nr); fc 483 drivers/isdn/hardware/mISDN/avmfritz.c addr = fc->addr + CHIP_WINDOW; fc 500 drivers/isdn/hardware/mISDN/avmfritz.c snprintf(fc->log, LOG_SIZE, "B%1d-send %s %d ", fc 501 drivers/isdn/hardware/mISDN/avmfritz.c bch->nr, fc->name, count); fc 502 drivers/isdn/hardware/mISDN/avmfritz.c print_hex_dump_bytes(fc->log, DUMP_PREFIX_OFFSET, p, count); fc 525 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 530 drivers/isdn/hardware/mISDN/avmfritz.c hdlc = &fc->hdlc[(bch->nr - 1) & 1]; fc 531 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: ch%d stat %#x\n", fc->name, bch->nr, stat); fc 532 drivers/isdn/hardware/mISDN/avmfritz.c if (fc->type == AVM_FRITZ_PCIV2) { fc 542 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, bch->nr, stat); fc 565 drivers/isdn/hardware/mISDN/avmfritz.c fc->name); fc 577 drivers/isdn/hardware/mISDN/avmfritz.c pr_warning("%s: ch%d stat %x XDU %s\n", fc->name, bch->nr, fc 596 drivers/isdn/hardware/mISDN/avmfritz.c HDLC_irq_main(struct fritzcard *fc) fc 601 drivers/isdn/hardware/mISDN/avmfritz.c stat = read_status(fc, 1); fc 603 drivers/isdn/hardware/mISDN/avmfritz.c bch = Sel_BCS(fc, 1); fc 607 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: spurious ch1 IRQ\n", fc->name); fc 609 drivers/isdn/hardware/mISDN/avmfritz.c stat = read_status(fc, 2); fc 611 drivers/isdn/hardware/mISDN/avmfritz.c bch = Sel_BCS(fc, 2); fc 615 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: spurious ch2 IRQ\n", fc->name); fc 622 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = dev_id; fc 626 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock(&fc->lock); fc 627 drivers/isdn/hardware/mISDN/avmfritz.c sval = inb(fc->addr + 2); fc 628 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: irq stat0 %x\n", fc->name, sval); fc 631 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock(&fc->lock); fc 634 drivers/isdn/hardware/mISDN/avmfritz.c fc->irqcnt++; fc 637 drivers/isdn/hardware/mISDN/avmfritz.c val = ReadISAC_V1(fc, ISAC_ISTA); fc 638 drivers/isdn/hardware/mISDN/avmfritz.c mISDNisac_irq(&fc->isac, val); fc 641 drivers/isdn/hardware/mISDN/avmfritz.c HDLC_irq_main(fc); fc 642 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock(&fc->lock); fc 649 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = dev_id; fc 653 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock(&fc->lock); fc 654 drivers/isdn/hardware/mISDN/avmfritz.c sval = inb(fc->addr + 2); fc 655 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: irq stat0 %x\n", fc->name, sval); fc 658 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock(&fc->lock); fc 661 drivers/isdn/hardware/mISDN/avmfritz.c fc->irqcnt++; fc 664 drivers/isdn/hardware/mISDN/avmfritz.c HDLC_irq_main(fc); fc 666 drivers/isdn/hardware/mISDN/avmfritz.c val = ReadISAC_V2(fc, ISACX_ISTA); fc 667 drivers/isdn/hardware/mISDN/avmfritz.c mISDNisac_irq(&fc->isac, val); fc 670 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: timer irq\n", fc->name); fc 671 drivers/isdn/hardware/mISDN/avmfritz.c outb(fc->ctrlreg | AVM_STATUS0_RES_TIMER, fc->addr + 2); fc 673 drivers/isdn/hardware/mISDN/avmfritz.c outb(fc->ctrlreg, fc->addr + 2); fc 675 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock(&fc->lock); fc 683 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 690 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&fc->lock, flags); fc 696 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 699 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&fc->lock, flags); fc 704 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 710 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&fc->lock, flags); fc 713 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 725 drivers/isdn/hardware/mISDN/avmfritz.c inithdlc(struct fritzcard *fc) fc 727 drivers/isdn/hardware/mISDN/avmfritz.c modehdlc(&fc->bch[0], -1); fc 728 drivers/isdn/hardware/mISDN/avmfritz.c modehdlc(&fc->bch[1], -1); fc 732 drivers/isdn/hardware/mISDN/avmfritz.c clear_pending_hdlc_ints(struct fritzcard *fc) fc 736 drivers/isdn/hardware/mISDN/avmfritz.c val = read_status(fc, 1); fc 737 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: HDLC 1 STA %x\n", fc->name, val); fc 738 drivers/isdn/hardware/mISDN/avmfritz.c val = read_status(fc, 2); fc 739 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: HDLC 2 STA %x\n", fc->name, val); fc 743 drivers/isdn/hardware/mISDN/avmfritz.c reset_avm(struct fritzcard *fc) fc 745 drivers/isdn/hardware/mISDN/avmfritz.c switch (fc->type) { fc 747 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg = AVM_STATUS0_RESET | AVM_STATUS0_DIS_TIMER; fc 750 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg = AVM_STATUS0_RESET; fc 754 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: reset\n", fc->name); fc 755 drivers/isdn/hardware/mISDN/avmfritz.c disable_hwirq(fc); fc 757 drivers/isdn/hardware/mISDN/avmfritz.c switch (fc->type) { fc 759 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg = AVM_STATUS0_DIS_TIMER | AVM_STATUS0_RES_TIMER; fc 760 drivers/isdn/hardware/mISDN/avmfritz.c disable_hwirq(fc); fc 761 drivers/isdn/hardware/mISDN/avmfritz.c outb(AVM_STATUS1_ENA_IOM, fc->addr + 3); fc 764 drivers/isdn/hardware/mISDN/avmfritz.c fc->ctrlreg = 0; fc 765 drivers/isdn/hardware/mISDN/avmfritz.c disable_hwirq(fc); fc 770 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: S0/S1 %x/%x\n", fc->name, fc 771 drivers/isdn/hardware/mISDN/avmfritz.c inb(fc->addr + 2), inb(fc->addr + 3)); fc 775 drivers/isdn/hardware/mISDN/avmfritz.c init_card(struct fritzcard *fc) fc 780 drivers/isdn/hardware/mISDN/avmfritz.c reset_avm(fc); /* disable IRQ */ fc 781 drivers/isdn/hardware/mISDN/avmfritz.c if (fc->type == AVM_FRITZ_PCIV2) fc 782 drivers/isdn/hardware/mISDN/avmfritz.c ret = request_irq(fc->irq, avm_fritzv2_interrupt, fc 783 drivers/isdn/hardware/mISDN/avmfritz.c IRQF_SHARED, fc->name, fc); fc 785 drivers/isdn/hardware/mISDN/avmfritz.c ret = request_irq(fc->irq, avm_fritz_interrupt, fc 786 drivers/isdn/hardware/mISDN/avmfritz.c IRQF_SHARED, fc->name, fc); fc 789 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, fc->irq); fc 793 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&fc->lock, flags); fc 794 drivers/isdn/hardware/mISDN/avmfritz.c ret = fc->isac.init(&fc->isac); fc 796 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 798 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, ret); fc 801 drivers/isdn/hardware/mISDN/avmfritz.c clear_pending_hdlc_ints(fc); fc 802 drivers/isdn/hardware/mISDN/avmfritz.c inithdlc(fc); fc 803 drivers/isdn/hardware/mISDN/avmfritz.c enable_hwirq(fc); fc 805 drivers/isdn/hardware/mISDN/avmfritz.c if (fc->type == AVM_FRITZ_PCIV2) { fc 806 drivers/isdn/hardware/mISDN/avmfritz.c WriteISAC_V2(fc, ISACX_MASK, 0); fc 807 drivers/isdn/hardware/mISDN/avmfritz.c WriteISAC_V2(fc, ISACX_CMDRD, 0x41); fc 809 drivers/isdn/hardware/mISDN/avmfritz.c WriteISAC_V1(fc, ISAC_MASK, 0); fc 810 drivers/isdn/hardware/mISDN/avmfritz.c WriteISAC_V1(fc, ISAC_CMDR, 0x41); fc 812 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 816 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: IRQ %d count %d\n", fc->name, fc 817 drivers/isdn/hardware/mISDN/avmfritz.c fc->irq, fc->irqcnt); fc 818 drivers/isdn/hardware/mISDN/avmfritz.c if (!fc->irqcnt) { fc 820 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, fc->irq, 3 - cnt); fc 821 drivers/isdn/hardware/mISDN/avmfritz.c reset_avm(fc); fc 825 drivers/isdn/hardware/mISDN/avmfritz.c free_irq(fc->irq, fc); fc 839 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = bch->hw; fc 843 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: %s cmd:%x %p\n", fc->name, __func__, cmd, arg); fc 848 drivers/isdn/hardware/mISDN/avmfritz.c spin_lock_irqsave(&fc->lock, flags); fc 851 drivers/isdn/hardware/mISDN/avmfritz.c spin_unlock_irqrestore(&fc->lock, flags); fc 861 drivers/isdn/hardware/mISDN/avmfritz.c pr_info("%s: %s unknown prim(%x)\n", fc->name, __func__, cmd); fc 867 drivers/isdn/hardware/mISDN/avmfritz.c channel_ctrl(struct fritzcard *fc, struct mISDN_ctrl_req *cq) fc 881 drivers/isdn/hardware/mISDN/avmfritz.c ret = fc->isac.ctrl(&fc->isac, HW_TESTLOOP, cq->channel); fc 884 drivers/isdn/hardware/mISDN/avmfritz.c ret = fc->isac.ctrl(&fc->isac, HW_TIMER3_VALUE, cq->p1); fc 887 drivers/isdn/hardware/mISDN/avmfritz.c pr_info("%s: %s unknown Op %x\n", fc->name, __func__, cq->op); fc 895 drivers/isdn/hardware/mISDN/avmfritz.c open_bchannel(struct fritzcard *fc, struct channel_req *rq) fc 903 drivers/isdn/hardware/mISDN/avmfritz.c bch = &fc->bch[rq->adr.channel - 1]; fc 919 drivers/isdn/hardware/mISDN/avmfritz.c struct fritzcard *fc = dch->hw; fc 923 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: %s cmd:%x %p\n", fc->name, __func__, cmd, arg); fc 928 drivers/isdn/hardware/mISDN/avmfritz.c err = fc->isac.open(&fc->isac, rq); fc 930 drivers/isdn/hardware/mISDN/avmfritz.c err = open_bchannel(fc, rq); fc 934 drivers/isdn/hardware/mISDN/avmfritz.c pr_info("%s: cannot get module\n", fc->name); fc 937 drivers/isdn/hardware/mISDN/avmfritz.c pr_debug("%s: dev(%d) close from %p\n", fc->name, dch->dev.id, fc 942 drivers/isdn/hardware/mISDN/avmfritz.c err = channel_ctrl(fc, arg); fc 946 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, __func__, cmd); fc 953 drivers/isdn/hardware/mISDN/avmfritz.c setup_fritz(struct fritzcard *fc) fc 957 drivers/isdn/hardware/mISDN/avmfritz.c if (!request_region(fc->addr, 32, fc->name)) { fc 959 drivers/isdn/hardware/mISDN/avmfritz.c fc->name, fc->addr, fc->addr + 31); fc 962 drivers/isdn/hardware/mISDN/avmfritz.c switch (fc->type) { fc 964 drivers/isdn/hardware/mISDN/avmfritz.c val = inl(fc->addr); fc 965 drivers/isdn/hardware/mISDN/avmfritz.c outl(AVM_HDLC_1, fc->addr + CHIP_INDEX); fc 966 drivers/isdn/hardware/mISDN/avmfritz.c ver = inl(fc->addr + CHIP_WINDOW + HDLC_STATUS) >> 24; fc 968 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: PCI stat %#x\n", fc->name, val); fc 969 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: PCI Class %X Rev %d\n", fc->name, fc 971 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: HDLC version %x\n", fc->name, ver & 0xf); fc 973 drivers/isdn/hardware/mISDN/avmfritz.c ASSIGN_FUNC(V1, ISAC, fc->isac); fc 974 drivers/isdn/hardware/mISDN/avmfritz.c fc->isac.type = IPAC_TYPE_ISAC; fc 977 drivers/isdn/hardware/mISDN/avmfritz.c val = inl(fc->addr); fc 978 drivers/isdn/hardware/mISDN/avmfritz.c ver = inl(fc->addr + AVM_HDLC_STATUS_1) >> 24; fc 980 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: PCI V2 stat %#x\n", fc->name, val); fc 981 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: PCI V2 Class %X Rev %d\n", fc->name, fc 983 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: HDLC version %x\n", fc->name, ver & 0xf); fc 985 drivers/isdn/hardware/mISDN/avmfritz.c ASSIGN_FUNC(V2, ISAC, fc->isac); fc 986 drivers/isdn/hardware/mISDN/avmfritz.c fc->isac.type = IPAC_TYPE_ISACX; fc 989 drivers/isdn/hardware/mISDN/avmfritz.c release_region(fc->addr, 32); fc 990 drivers/isdn/hardware/mISDN/avmfritz.c pr_info("%s: AVM unknown type %d\n", fc->name, fc->type); fc 993 drivers/isdn/hardware/mISDN/avmfritz.c pr_notice("%s: %s config irq:%d base:0x%X\n", fc->name, fc 994 drivers/isdn/hardware/mISDN/avmfritz.c (fc->type == AVM_FRITZ_PCI) ? "AVM Fritz!CARD PCI" : fc 995 drivers/isdn/hardware/mISDN/avmfritz.c "AVM Fritz!CARD PCIv2", fc->irq, fc->addr); fc 18 drivers/md/dm-flakey.c #define all_corrupt_bio_flags_match(bio, fc) \ fc 19 drivers/md/dm-flakey.c (((bio)->bi_opf & (fc)->corrupt_bio_flags) == (fc)->corrupt_bio_flags) fc 47 drivers/md/dm-flakey.c static int parse_features(struct dm_arg_set *as, struct flakey_c *fc, fc 82 drivers/md/dm-flakey.c if (test_and_set_bit(DROP_WRITES, &fc->flags)) { fc 85 drivers/md/dm-flakey.c } else if (test_bit(ERROR_WRITES, &fc->flags)) { fc 97 drivers/md/dm-flakey.c if (test_and_set_bit(ERROR_WRITES, &fc->flags)) { fc 101 drivers/md/dm-flakey.c } else if (test_bit(DROP_WRITES, &fc->flags)) { fc 118 drivers/md/dm-flakey.c r = dm_read_arg(_args + 1, as, &fc->corrupt_bio_byte, &ti->error); fc 128 drivers/md/dm-flakey.c fc->corrupt_bio_rw = WRITE; fc 130 drivers/md/dm-flakey.c fc->corrupt_bio_rw = READ; fc 140 drivers/md/dm-flakey.c r = dm_read_arg(_args + 2, as, &fc->corrupt_bio_value, &ti->error); fc 148 drivers/md/dm-flakey.c r = dm_read_arg(_args + 3, as, &fc->corrupt_bio_flags, &ti->error); fc 160 drivers/md/dm-flakey.c if (test_bit(DROP_WRITES, &fc->flags) && (fc->corrupt_bio_rw == WRITE)) { fc 164 drivers/md/dm-flakey.c } else if (test_bit(ERROR_WRITES, &fc->flags) && (fc->corrupt_bio_rw == WRITE)) { fc 192 drivers/md/dm-flakey.c struct flakey_c *fc; fc 206 drivers/md/dm-flakey.c fc = kzalloc(sizeof(*fc), GFP_KERNEL); fc 207 drivers/md/dm-flakey.c if (!fc) { fc 211 drivers/md/dm-flakey.c fc->start_time = jiffies; fc 220 drivers/md/dm-flakey.c fc->start = tmpll; fc 222 drivers/md/dm-flakey.c r = dm_read_arg(_args, &as, &fc->up_interval, &ti->error); fc 226 drivers/md/dm-flakey.c r = dm_read_arg(_args, &as, &fc->down_interval, &ti->error); fc 230 drivers/md/dm-flakey.c if (!(fc->up_interval + fc->down_interval)) { fc 236 drivers/md/dm-flakey.c if (fc->up_interval + fc->down_interval < fc->up_interval) { fc 242 drivers/md/dm-flakey.c r = parse_features(&as, fc, ti); fc 246 drivers/md/dm-flakey.c r = dm_get_device(ti, devname, dm_table_get_mode(ti->table), &fc->dev); fc 255 drivers/md/dm-flakey.c ti->private = fc; fc 259 drivers/md/dm-flakey.c kfree(fc); fc 265 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 267 drivers/md/dm-flakey.c dm_put_device(ti, fc->dev); fc 268 drivers/md/dm-flakey.c kfree(fc); fc 273 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 275 drivers/md/dm-flakey.c return fc->start + dm_target_offset(ti, bi_sector); fc 280 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 282 drivers/md/dm-flakey.c bio_set_dev(bio, fc->dev->bdev); fc 288 drivers/md/dm-flakey.c static void corrupt_bio_data(struct bio *bio, struct flakey_c *fc) fc 290 drivers/md/dm-flakey.c unsigned int corrupt_bio_byte = fc->corrupt_bio_byte - 1; fc 306 drivers/md/dm-flakey.c segment[corrupt_bio_byte] = fc->corrupt_bio_value; fc 309 drivers/md/dm-flakey.c bio, fc->corrupt_bio_value, fc->corrupt_bio_byte, fc 320 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 330 drivers/md/dm-flakey.c elapsed = (jiffies - fc->start_time) / HZ; fc 331 drivers/md/dm-flakey.c if (elapsed % (fc->up_interval + fc->down_interval) >= fc->up_interval) { fc 342 drivers/md/dm-flakey.c if (!fc->corrupt_bio_byte && !test_bit(DROP_WRITES, &fc->flags) && fc 343 drivers/md/dm-flakey.c !test_bit(ERROR_WRITES, &fc->flags)) fc 351 drivers/md/dm-flakey.c if (test_bit(DROP_WRITES, &fc->flags)) { fc 355 drivers/md/dm-flakey.c else if (test_bit(ERROR_WRITES, &fc->flags)) { fc 363 drivers/md/dm-flakey.c if (fc->corrupt_bio_byte && (fc->corrupt_bio_rw == WRITE)) { fc 364 drivers/md/dm-flakey.c if (all_corrupt_bio_flags_match(bio, fc)) fc 365 drivers/md/dm-flakey.c corrupt_bio_data(bio, fc); fc 384 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 391 drivers/md/dm-flakey.c if (fc->corrupt_bio_byte && (fc->corrupt_bio_rw == READ) && fc 392 drivers/md/dm-flakey.c all_corrupt_bio_flags_match(bio, fc)) { fc 396 drivers/md/dm-flakey.c corrupt_bio_data(bio, fc); fc 398 drivers/md/dm-flakey.c } else if (!test_bit(DROP_WRITES, &fc->flags) && fc 399 drivers/md/dm-flakey.c !test_bit(ERROR_WRITES, &fc->flags)) { fc 415 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 424 drivers/md/dm-flakey.c DMEMIT("%s %llu %u %u ", fc->dev->name, fc 425 drivers/md/dm-flakey.c (unsigned long long)fc->start, fc->up_interval, fc 426 drivers/md/dm-flakey.c fc->down_interval); fc 428 drivers/md/dm-flakey.c drop_writes = test_bit(DROP_WRITES, &fc->flags); fc 429 drivers/md/dm-flakey.c error_writes = test_bit(ERROR_WRITES, &fc->flags); fc 430 drivers/md/dm-flakey.c DMEMIT("%u ", drop_writes + error_writes + (fc->corrupt_bio_byte > 0) * 5); fc 437 drivers/md/dm-flakey.c if (fc->corrupt_bio_byte) fc 439 drivers/md/dm-flakey.c fc->corrupt_bio_byte, fc 440 drivers/md/dm-flakey.c (fc->corrupt_bio_rw == WRITE) ? 'w' : 'r', fc 441 drivers/md/dm-flakey.c fc->corrupt_bio_value, fc->corrupt_bio_flags); fc 449 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 451 drivers/md/dm-flakey.c *bdev = fc->dev->bdev; fc 456 drivers/md/dm-flakey.c if (fc->start || fc 466 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 470 drivers/md/dm-flakey.c ret = blkdev_report_zones(fc->dev->bdev, flakey_map_sector(ti, sector), fc 476 drivers/md/dm-flakey.c dm_remap_zone_report(ti, fc->start, zones, nr_zones); fc 483 drivers/md/dm-flakey.c struct flakey_c *fc = ti->private; fc 485 drivers/md/dm-flakey.c return fn(ti, fc->dev, fc->start, ti->len, data); fc 663 drivers/md/raid10.c int fc; fc 665 drivers/md/raid10.c fc = sector_div(chunk, geo->far_copies); fc 666 drivers/md/raid10.c dev -= fc * geo->near_copies; fc 3577 drivers/md/raid10.c int nc, fc, fo; fc 3604 drivers/md/raid10.c fc = (layout >> 8) & 255; fc 3608 drivers/md/raid10.c geo->far_copies = fc; fc 3616 drivers/md/raid10.c geo->far_set_size = disks/fc; fc 3617 drivers/md/raid10.c WARN(geo->far_set_size < fc, fc 3621 drivers/md/raid10.c geo->far_set_size = fc * nc; fc 3628 drivers/md/raid10.c return nc*fc; fc 3748 drivers/md/raid10.c int fc, fo; fc 3750 drivers/md/raid10.c fc = (mddev->layout >> 8) & 255; fc 3752 drivers/md/raid10.c if (fc > 1 || fo > 0) { fc 50 drivers/media/common/b2c2/flexcop-common.h struct flexcop_device *fc; fc 104 drivers/media/common/b2c2/flexcop-common.h int (*get_mac_addr) (struct flexcop_device *fc, int extended); fc 111 drivers/media/common/b2c2/flexcop-common.h void flexcop_pass_dmx_data(struct flexcop_device *fc, u8 *buf, u32 len); fc 112 drivers/media/common/b2c2/flexcop-common.h void flexcop_pass_dmx_packets(struct flexcop_device *fc, u8 *buf, u32 no); fc 118 drivers/media/common/b2c2/flexcop-common.h void flexcop_device_exit(struct flexcop_device *fc); fc 119 drivers/media/common/b2c2/flexcop-common.h void flexcop_reset_block_300(struct flexcop_device *fc); fc 126 drivers/media/common/b2c2/flexcop-common.h int flexcop_dma_control_timer_irq(struct flexcop_device *fc, fc 128 drivers/media/common/b2c2/flexcop-common.h int flexcop_dma_control_size_irq(struct flexcop_device *fc, fc 130 drivers/media/common/b2c2/flexcop-common.h int flexcop_dma_config(struct flexcop_device *fc, struct flexcop_dma *dma, fc 132 drivers/media/common/b2c2/flexcop-common.h int flexcop_dma_xfer_control(struct flexcop_device *fc, fc 135 drivers/media/common/b2c2/flexcop-common.h int flexcop_dma_config_timer(struct flexcop_device *fc, fc 140 drivers/media/common/b2c2/flexcop-common.h int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended); fc 151 drivers/media/common/b2c2/flexcop-common.h int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, fc 153 drivers/media/common/b2c2/flexcop-common.h void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s); fc 154 drivers/media/common/b2c2/flexcop-common.h void flexcop_sram_ctrl(struct flexcop_device *fc, fc 159 drivers/media/common/b2c2/flexcop-common.h int flexcop_frontend_init(struct flexcop_device *fc); fc 160 drivers/media/common/b2c2/flexcop-common.h void flexcop_frontend_exit(struct flexcop_device *fc); fc 163 drivers/media/common/b2c2/flexcop-common.h int flexcop_i2c_init(struct flexcop_device *fc); fc 164 drivers/media/common/b2c2/flexcop-common.h void flexcop_i2c_exit(struct flexcop_device *fc); fc 167 drivers/media/common/b2c2/flexcop-common.h int flexcop_sram_init(struct flexcop_device *fc); fc 170 drivers/media/common/b2c2/flexcop-common.h void flexcop_determine_revision(struct flexcop_device *fc); fc 171 drivers/media/common/b2c2/flexcop-common.h void flexcop_device_name(struct flexcop_device *fc, fc 173 drivers/media/common/b2c2/flexcop-common.h void flexcop_dump_reg(struct flexcop_device *fc, fc 177 drivers/media/common/b2c2/flexcop-common.h int flexcop_pid_feed_control(struct flexcop_device *fc, fc 179 drivers/media/common/b2c2/flexcop-common.h void flexcop_hw_filter_init(struct flexcop_device *fc); fc 181 drivers/media/common/b2c2/flexcop-common.h void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff); fc 183 drivers/media/common/b2c2/flexcop-common.h void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]); fc 184 drivers/media/common/b2c2/flexcop-common.h void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff); fc 90 drivers/media/common/b2c2/flexcop-eeprom.c static int flexcop_eeprom_read(struct flexcop_device *fc, fc 93 drivers/media/common/b2c2/flexcop-eeprom.c return fc->i2c_request(fc,FC_READ,FC_I2C_PORT_EEPROM,0x50,addr,buf,len); fc 107 drivers/media/common/b2c2/flexcop-eeprom.c static int flexcop_eeprom_request(struct flexcop_device *fc, fc 113 drivers/media/common/b2c2/flexcop-eeprom.c ret = fc->i2c_request(&fc->fc_i2c_adap[1], op, chipaddr, fc 121 drivers/media/common/b2c2/flexcop-eeprom.c static int flexcop_eeprom_lrc_read(struct flexcop_device *fc, u16 addr, fc 124 drivers/media/common/b2c2/flexcop-eeprom.c int ret = flexcop_eeprom_request(fc, FC_READ, addr, buf, len, retries); fc 133 drivers/media/common/b2c2/flexcop-eeprom.c int flexcop_eeprom_check_mac_addr(struct flexcop_device *fc, int extended) fc 138 drivers/media/common/b2c2/flexcop-eeprom.c if ((ret = flexcop_eeprom_lrc_read(fc,0x3f8,buf,8,4)) == 0) { fc 143 drivers/media/common/b2c2/flexcop-eeprom.c memcpy(fc->dvb_adapter.proposed_mac,buf,6); fc 34 drivers/media/common/b2c2/flexcop-fe-tuner.c struct flexcop_device *fc = fe->dvb->priv; fc 36 drivers/media/common/b2c2/flexcop-fe-tuner.c return request_firmware(fw, name, fc->dev); fc 45 drivers/media/common/b2c2/flexcop-fe-tuner.c struct flexcop_device *fc = fe->dvb->priv; fc 49 drivers/media/common/b2c2/flexcop-fe-tuner.c v = fc->read_ibi_reg(fc, misc_204); fc 66 drivers/media/common/b2c2/flexcop-fe-tuner.c return fc->write_ibi_reg(fc, misc_204, v); fc 73 drivers/media/common/b2c2/flexcop-fe-tuner.c struct flexcop_device *fc = fe->dvb->priv; fc 74 drivers/media/common/b2c2/flexcop-fe-tuner.c if (fc->fe_sleep) fc 75 drivers/media/common/b2c2/flexcop-fe-tuner.c return fc->fe_sleep(fe); fc 85 drivers/media/common/b2c2/flexcop-fe-tuner.c struct flexcop_device *fc = fe->dvb->priv; fc 106 drivers/media/common/b2c2/flexcop-fe-tuner.c return fc->write_ibi_reg(fc,lnb_switch_freq_200,v); fc 170 drivers/media/common/b2c2/flexcop-fe-tuner.c static int skystar2_rev23_attach(struct flexcop_device *fc, fc 175 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(mt312_attach, &skystar23_samsung_tbdu18132_config, i2c); fc 176 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 179 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, i2c, fc 183 drivers/media/common/b2c2/flexcop-fe-tuner.c ops = &fc->fe->ops; fc 188 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe_sleep = ops->sleep; fc 283 drivers/media/common/b2c2/flexcop-fe-tuner.c static int skystar2_rev26_attach(struct flexcop_device *fc, fc 286 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(stv0299_attach, &samsung_tbmu24112_config, i2c); fc 287 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 290 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, i2c, fc 294 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe->ops.set_voltage = flexcop_set_voltage; fc 295 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe_sleep = fc->fe->ops.sleep; fc 296 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe->ops.sleep = flexcop_sleep; fc 317 drivers/media/common/b2c2/flexcop-fe-tuner.c static int skystar2_rev27_attach(struct flexcop_device *fc, fc 324 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[0].no_base_addr = 1; fc 325 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(s5h1420_attach, &skystar2_rev2_7_s5h1420_config, fc 327 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 330 drivers/media/common/b2c2/flexcop-fe-tuner.c i2c_tuner = s5h1420_get_tuner_i2c_adapter(fc->fe); fc 334 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe_sleep = fc->fe->ops.sleep; fc 335 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe->ops.sleep = flexcop_sleep; fc 338 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 1; fc 339 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, fc 348 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->write_ibi_reg(fc, tw_sm_c_108, r108); fc 349 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(itd1000_attach, fc->fe, i2c_tuner, fc 360 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 0; fc 363 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[0].no_base_addr = 0; fc 383 drivers/media/common/b2c2/flexcop-fe-tuner.c static int skystar2_rev28_attach(struct flexcop_device *fc, fc 388 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(cx24123_attach, &skystar2_rev2_8_cx24123_config, fc 390 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 393 drivers/media/common/b2c2/flexcop-fe-tuner.c i2c_tuner = cx24123_get_tuner_i2c_adapter(fc->fe); fc 397 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(cx24113_attach, fc->fe, &skystar2_rev2_8_cx24113_config, fc 404 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 1; fc 405 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, fc 408 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 0; fc 444 drivers/media/common/b2c2/flexcop-fe-tuner.c static int airstar_dvbt_attach(struct flexcop_device *fc, fc 447 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(mt352_attach, &samsung_tdtc9251dh0_config, i2c); fc 448 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 451 drivers/media/common/b2c2/flexcop-fe-tuner.c return !!dvb_attach(dvb_pll_attach, fc->fe, 0x61, NULL, fc 465 drivers/media/common/b2c2/flexcop-fe-tuner.c static int airstar_atsc1_attach(struct flexcop_device *fc, fc 468 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(bcm3510_attach, &air2pc_atsc_first_gen_config, i2c); fc 469 drivers/media/common/b2c2/flexcop-fe-tuner.c return fc->fe != NULL; fc 481 drivers/media/common/b2c2/flexcop-fe-tuner.c static int airstar_atsc2_attach(struct flexcop_device *fc, fc 484 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(nxt200x_attach, &samsung_tbmv_config, i2c); fc 485 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 488 drivers/media/common/b2c2/flexcop-fe-tuner.c return !!dvb_attach(dvb_pll_attach, fc->fe, 0x61, NULL, fc 503 drivers/media/common/b2c2/flexcop-fe-tuner.c static int airstar_atsc3_attach(struct flexcop_device *fc, fc 506 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(lgdt330x_attach, &air2pc_atsc_hd5000_config, fc 508 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 511 drivers/media/common/b2c2/flexcop-fe-tuner.c return !!dvb_attach(simple_tuner_attach, fc->fe, i2c, 0x61, fc 598 drivers/media/common/b2c2/flexcop-fe-tuner.c static int cablestar2_attach(struct flexcop_device *fc, fc 601 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[0].no_base_addr = 1; fc 602 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(stv0297_attach, &alps_tdee4_stv0297_config, i2c); fc 603 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 608 drivers/media/common/b2c2/flexcop-fe-tuner.c if (fc->fe->ops.i2c_gate_ctrl) fc 609 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe->ops.i2c_gate_ctrl(fc->fe, 0); fc 610 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe->ops.i2c_gate_ctrl = NULL; fc 612 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(dvb_pll_attach, fc->fe, 0x61, fc 613 drivers/media/common/b2c2/flexcop-fe-tuner.c &fc->fc_i2c_adap[2].i2c_adap, DVB_PLL_TDEE4)) fc 620 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[0].no_base_addr = 0; fc 637 drivers/media/common/b2c2/flexcop-fe-tuner.c static int skystarS2_rev33_attach(struct flexcop_device *fc, fc 640 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = dvb_attach(cx24120_attach, fc 642 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!fc->fe) fc 645 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->dev_type = FC_SKYS2_REV33; fc 646 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 1; fc 647 drivers/media/common/b2c2/flexcop-fe-tuner.c if (!dvb_attach(isl6421_attach, fc->fe, &fc->fc_i2c_adap[2].i2c_adap, fc 650 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fc_i2c_adap[2].no_base_addr = 0; fc 655 drivers/media/common/b2c2/flexcop-fe-tuner.c if (fc->has_32_hw_pid_filter) fc 656 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->skip_6_hw_pid_filter = 1; fc 681 drivers/media/common/b2c2/flexcop-fe-tuner.c int flexcop_frontend_init(struct flexcop_device *fc) fc 689 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->dev_type = flexcop_frontends[i].type; fc 690 drivers/media/common/b2c2/flexcop-fe-tuner.c if (flexcop_frontends[i].attach(fc, &fc->fc_i2c_adap[0].i2c_adap)) fc 693 drivers/media/common/b2c2/flexcop-fe-tuner.c if (fc->fe) { fc 694 drivers/media/common/b2c2/flexcop-fe-tuner.c dvb_frontend_detach(fc->fe); fc 695 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = NULL; fc 698 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->dev_type = FC_UNK; fc 703 drivers/media/common/b2c2/flexcop-fe-tuner.c info("found '%s' .", fc->fe->ops.info.name); fc 704 drivers/media/common/b2c2/flexcop-fe-tuner.c if (dvb_register_frontend(&fc->dvb_adapter, fc->fe)) { fc 706 drivers/media/common/b2c2/flexcop-fe-tuner.c dvb_frontend_detach(fc->fe); fc 707 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->fe = NULL; fc 710 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->init_state |= FC_STATE_FE_INIT; fc 714 drivers/media/common/b2c2/flexcop-fe-tuner.c void flexcop_frontend_exit(struct flexcop_device *fc) fc 716 drivers/media/common/b2c2/flexcop-fe-tuner.c if (fc->init_state & FC_STATE_FE_INIT) { fc 717 drivers/media/common/b2c2/flexcop-fe-tuner.c dvb_unregister_frontend(fc->fe); fc 718 drivers/media/common/b2c2/flexcop-fe-tuner.c dvb_frontend_detach(fc->fe); fc 720 drivers/media/common/b2c2/flexcop-fe-tuner.c fc->init_state &= ~FC_STATE_FE_INIT; fc 9 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff) fc 15 drivers/media/common/b2c2/flexcop-hw-filter.c void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff) fc 20 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) fc 25 drivers/media/common/b2c2/flexcop-hw-filter.c void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6]) fc 28 drivers/media/common/b2c2/flexcop-hw-filter.c v41c = fc->read_ibi_reg(fc, mac_address_41c); fc 37 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, mac_address_418, v418); fc 38 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, mac_address_41c, v41c); fc 41 drivers/media/common/b2c2/flexcop-hw-filter.c void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff) fc 46 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_group_filter(struct flexcop_device *fc, fc 53 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, pid_filter_30c, v30c); fc 56 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_group_filter_ctrl(struct flexcop_device *fc, int onoff) fc 66 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_ibi_value vpid = fc->read_ibi_reg(fc, vregname), \ fc 67 drivers/media/common/b2c2/flexcop-hw-filter.c v208 = fc->read_ibi_reg(fc, ctrl_208); \ fc 71 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, vregname, vpid); \ fc 72 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, ctrl_208, v208); fc 74 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_Stream1_PID_ctrl(struct flexcop_device *fc, fc 81 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_Stream2_PID_ctrl(struct flexcop_device *fc, fc 88 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_PCR_PID_ctrl(struct flexcop_device *fc, fc 94 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_PMT_PID_ctrl(struct flexcop_device *fc, fc 100 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_EMM_PID_ctrl(struct flexcop_device *fc, fc 106 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_ECM_PID_ctrl(struct flexcop_device *fc, fc 112 drivers/media/common/b2c2/flexcop-hw-filter.c static void flexcop_pid_control(struct flexcop_device *fc, fc 122 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->skip_6_hw_pid_filter) fc 129 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_Stream1_PID_ctrl(fc, pid, onoff); fc 132 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_Stream2_PID_ctrl(fc, pid, onoff); fc 135 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_PCR_PID_ctrl(fc, pid, onoff); fc 138 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_PMT_PID_ctrl(fc, pid, onoff); fc 141 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_EMM_PID_ctrl(fc, pid, onoff); fc 144 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_ECM_PID_ctrl(fc, pid, onoff); fc 147 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->has_32_hw_pid_filter && index < 38) { fc 151 drivers/media/common/b2c2/flexcop-hw-filter.c vid = fc->read_ibi_reg(fc, index_reg_310); fc 153 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, index_reg_310, vid); fc 155 drivers/media/common/b2c2/flexcop-hw-filter.c vpid = fc->read_ibi_reg(fc, pid_n_reg_314); fc 158 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, pid_n_reg_314, vpid); fc 164 drivers/media/common/b2c2/flexcop-hw-filter.c static int flexcop_toggle_fullts_streaming(struct flexcop_device *fc, int onoff) fc 166 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->fullts_streaming_state != onoff) { fc 168 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_group_filter(fc, 0, 0x1fe0 * (!onoff)); fc 169 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_group_filter_ctrl(fc, onoff); fc 170 drivers/media/common/b2c2/flexcop-hw-filter.c fc->fullts_streaming_state = onoff; fc 175 drivers/media/common/b2c2/flexcop-hw-filter.c int flexcop_pid_feed_control(struct flexcop_device *fc, fc 180 drivers/media/common/b2c2/flexcop-hw-filter.c max_pid_filter -= 6 * fc->skip_6_hw_pid_filter; fc 181 drivers/media/common/b2c2/flexcop-hw-filter.c max_pid_filter += 32 * fc->has_32_hw_pid_filter; fc 183 drivers/media/common/b2c2/flexcop-hw-filter.c fc->feedcount += onoff ? 1 : -1; /* the number of PIDs/Feed currently requested */ fc 185 drivers/media/common/b2c2/flexcop-hw-filter.c fc->extra_feedcount += onoff ? 1 : -1; fc 193 drivers/media/common/b2c2/flexcop-hw-filter.c if (!fc->pid_filtering && fc->feedcount == onoff) fc 194 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_toggle_fullts_streaming(fc, onoff); fc 196 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->pid_filtering) { fc 198 drivers/media/common/b2c2/flexcop-hw-filter.c (fc, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); fc 200 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->extra_feedcount > 0) fc 201 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_toggle_fullts_streaming(fc, 1); fc 203 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_toggle_fullts_streaming(fc, onoff); fc 205 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_toggle_fullts_streaming(fc, 0); fc 209 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->feedcount == onoff) { fc 210 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_rcv_data_ctrl(fc, onoff); fc 211 drivers/media/common/b2c2/flexcop-hw-filter.c if (fc->stream_control) /* device specific stream control */ fc 212 drivers/media/common/b2c2/flexcop-hw-filter.c fc->stream_control(fc, onoff); fc 216 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_reset_block_300(fc); fc 217 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_hw_filter_init(fc); fc 224 drivers/media/common/b2c2/flexcop-hw-filter.c void flexcop_hw_filter_init(struct flexcop_device *fc) fc 230 drivers/media/common/b2c2/flexcop-hw-filter.c max_pid_filter -= 6 * fc->skip_6_hw_pid_filter; fc 231 drivers/media/common/b2c2/flexcop-hw-filter.c max_pid_filter += 32 * fc->has_32_hw_pid_filter; fc 234 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_control(fc, i, 0x1fff, 0); fc 236 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_group_filter(fc, 0, 0x1fe0); fc 237 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_pid_group_filter_ctrl(fc, 0); fc 239 drivers/media/common/b2c2/flexcop-hw-filter.c v = fc->read_ibi_reg(fc, pid_filter_308); fc 242 drivers/media/common/b2c2/flexcop-hw-filter.c fc->write_ibi_reg(fc, pid_filter_308, v); fc 244 drivers/media/common/b2c2/flexcop-hw-filter.c flexcop_null_filter_ctrl(fc, 1); fc 11 drivers/media/common/b2c2/flexcop-i2c.c static int flexcop_i2c_operation(struct flexcop_device *fc, fc 20 drivers/media/common/b2c2/flexcop-i2c.c fc->write_ibi_reg(fc, tw_sm_c_100, ibi_zero); fc 21 drivers/media/common/b2c2/flexcop-i2c.c fc->write_ibi_reg(fc, tw_sm_c_100, *r100); /* initiating i2c operation */ fc 24 drivers/media/common/b2c2/flexcop-i2c.c r = fc->read_ibi_reg(fc, tw_sm_c_100); fc 59 drivers/media/common/b2c2/flexcop-i2c.c if (i2c->fc->dev_type == FC_SKY_REV27) fc 62 drivers/media/common/b2c2/flexcop-i2c.c ret = flexcop_i2c_operation(i2c->fc, &r100); fc 66 drivers/media/common/b2c2/flexcop-i2c.c ret = flexcop_i2c_operation(i2c->fc, &r100); fc 76 drivers/media/common/b2c2/flexcop-i2c.c r104 = i2c->fc->read_ibi_reg(i2c->fc, tw_sm_c_104); fc 87 drivers/media/common/b2c2/flexcop-i2c.c static int flexcop_i2c_write4(struct flexcop_device *fc, fc 103 drivers/media/common/b2c2/flexcop-i2c.c fc->write_ibi_reg(fc, tw_sm_c_104, r104); fc 104 drivers/media/common/b2c2/flexcop-i2c.c return flexcop_i2c_operation(fc, &r100); fc 147 drivers/media/common/b2c2/flexcop-i2c.c ret = flexcop_i2c_write4(i2c->fc, r100, p); fc 180 drivers/media/common/b2c2/flexcop-i2c.c if (mutex_lock_interruptible(&i2c->fc->i2c_mutex)) fc 186 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c->fc->i2c_request(i2c, FC_READ, msgs[i].addr, fc 191 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c->fc->i2c_request(i2c, FC_WRITE, msgs[i].addr, fc 200 drivers/media/common/b2c2/flexcop-i2c.c mutex_unlock(&i2c->fc->i2c_mutex); fc 217 drivers/media/common/b2c2/flexcop-i2c.c int flexcop_i2c_init(struct flexcop_device *fc) fc 220 drivers/media/common/b2c2/flexcop-i2c.c mutex_init(&fc->i2c_mutex); fc 222 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[0].fc = fc; fc 223 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[1].fc = fc; fc 224 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[2].fc = fc; fc 225 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[0].port = FC_I2C_PORT_DEMOD; fc 226 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[1].port = FC_I2C_PORT_EEPROM; fc 227 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[2].port = FC_I2C_PORT_TUNER; fc 229 drivers/media/common/b2c2/flexcop-i2c.c strscpy(fc->fc_i2c_adap[0].i2c_adap.name, "B2C2 FlexCop I2C to demod", fc 230 drivers/media/common/b2c2/flexcop-i2c.c sizeof(fc->fc_i2c_adap[0].i2c_adap.name)); fc 231 drivers/media/common/b2c2/flexcop-i2c.c strscpy(fc->fc_i2c_adap[1].i2c_adap.name, "B2C2 FlexCop I2C to eeprom", fc 232 drivers/media/common/b2c2/flexcop-i2c.c sizeof(fc->fc_i2c_adap[1].i2c_adap.name)); fc 233 drivers/media/common/b2c2/flexcop-i2c.c strscpy(fc->fc_i2c_adap[2].i2c_adap.name, "B2C2 FlexCop I2C to tuner", fc 234 drivers/media/common/b2c2/flexcop-i2c.c sizeof(fc->fc_i2c_adap[2].i2c_adap.name)); fc 236 drivers/media/common/b2c2/flexcop-i2c.c i2c_set_adapdata(&fc->fc_i2c_adap[0].i2c_adap, &fc->fc_i2c_adap[0]); fc 237 drivers/media/common/b2c2/flexcop-i2c.c i2c_set_adapdata(&fc->fc_i2c_adap[1].i2c_adap, &fc->fc_i2c_adap[1]); fc 238 drivers/media/common/b2c2/flexcop-i2c.c i2c_set_adapdata(&fc->fc_i2c_adap[2].i2c_adap, &fc->fc_i2c_adap[2]); fc 240 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[0].i2c_adap.algo = fc 241 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[1].i2c_adap.algo = fc 242 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[2].i2c_adap.algo = &flexcop_algo; fc 243 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[0].i2c_adap.algo_data = fc 244 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[1].i2c_adap.algo_data = fc 245 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[2].i2c_adap.algo_data = NULL; fc 246 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[0].i2c_adap.dev.parent = fc 247 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[1].i2c_adap.dev.parent = fc 248 drivers/media/common/b2c2/flexcop-i2c.c fc->fc_i2c_adap[2].i2c_adap.dev.parent = fc->dev; fc 250 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c_add_adapter(&fc->fc_i2c_adap[0].i2c_adap); fc 254 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c_add_adapter(&fc->fc_i2c_adap[1].i2c_adap); fc 258 drivers/media/common/b2c2/flexcop-i2c.c ret = i2c_add_adapter(&fc->fc_i2c_adap[2].i2c_adap); fc 262 drivers/media/common/b2c2/flexcop-i2c.c fc->init_state |= FC_STATE_I2C_INIT; fc 266 drivers/media/common/b2c2/flexcop-i2c.c i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); fc 268 drivers/media/common/b2c2/flexcop-i2c.c i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); fc 272 drivers/media/common/b2c2/flexcop-i2c.c void flexcop_i2c_exit(struct flexcop_device *fc) fc 274 drivers/media/common/b2c2/flexcop-i2c.c if (fc->init_state & FC_STATE_I2C_INIT) { fc 275 drivers/media/common/b2c2/flexcop-i2c.c i2c_del_adapter(&fc->fc_i2c_adap[2].i2c_adap); fc 276 drivers/media/common/b2c2/flexcop-i2c.c i2c_del_adapter(&fc->fc_i2c_adap[1].i2c_adap); fc 277 drivers/media/common/b2c2/flexcop-i2c.c i2c_del_adapter(&fc->fc_i2c_adap[0].i2c_adap); fc 279 drivers/media/common/b2c2/flexcop-i2c.c fc->init_state &= ~FC_STATE_I2C_INIT; fc 9 drivers/media/common/b2c2/flexcop-misc.c void flexcop_determine_revision(struct flexcop_device *fc) fc 11 drivers/media/common/b2c2/flexcop-misc.c flexcop_ibi_value v = fc->read_ibi_reg(fc,misc_204); fc 16 drivers/media/common/b2c2/flexcop-misc.c fc->rev = FLEXCOP_II; fc 20 drivers/media/common/b2c2/flexcop-misc.c fc->rev = FLEXCOP_IIB; fc 24 drivers/media/common/b2c2/flexcop-misc.c fc->rev = FLEXCOP_III; fc 32 drivers/media/common/b2c2/flexcop-misc.c if ((fc->has_32_hw_pid_filter = v.misc_204.Rev_N_sig_caps)) fc 65 drivers/media/common/b2c2/flexcop-misc.c void flexcop_device_name(struct flexcop_device *fc, fc 69 drivers/media/common/b2c2/flexcop-misc.c prefix, flexcop_device_names[fc->dev_type], fc 70 drivers/media/common/b2c2/flexcop-misc.c flexcop_bus_names[fc->bus_type], fc 71 drivers/media/common/b2c2/flexcop-misc.c flexcop_revision_names[fc->rev], suffix); fc 74 drivers/media/common/b2c2/flexcop-misc.c void flexcop_dump_reg(struct flexcop_device *fc, fc 80 drivers/media/common/b2c2/flexcop-misc.c v = fc->read_ibi_reg(fc, reg+4*i); fc 163 drivers/media/common/b2c2/flexcop-reg.h flexcop_ibi_value v = fc->read_ibi_reg(fc,reg); \ fc 165 drivers/media/common/b2c2/flexcop-reg.h fc->write_ibi_reg(fc,reg,v); \ fc 9 drivers/media/common/b2c2/flexcop-sram.c static void flexcop_sram_set_chip(struct flexcop_device *fc, fc 15 drivers/media/common/b2c2/flexcop-sram.c int flexcop_sram_init(struct flexcop_device *fc) fc 17 drivers/media/common/b2c2/flexcop-sram.c switch (fc->rev) { fc 20 drivers/media/common/b2c2/flexcop-sram.c flexcop_sram_set_chip(fc, FC_SRAM_1_32KB); fc 23 drivers/media/common/b2c2/flexcop-sram.c flexcop_sram_set_chip(fc, FC_SRAM_1_48KB); fc 31 drivers/media/common/b2c2/flexcop-sram.c int flexcop_sram_set_dest(struct flexcop_device *fc, flexcop_sram_dest_t dest, fc 35 drivers/media/common/b2c2/flexcop-sram.c v = fc->read_ibi_reg(fc, sram_dest_reg_714); fc 37 drivers/media/common/b2c2/flexcop-sram.c if (fc->rev != FLEXCOP_III && target == FC_SRAM_DEST_TARGET_FC3_CA) { fc 52 drivers/media/common/b2c2/flexcop-sram.c fc->write_ibi_reg(fc,sram_dest_reg_714,v); fc 59 drivers/media/common/b2c2/flexcop-sram.c void flexcop_wan_set_speed(struct flexcop_device *fc, flexcop_wan_speed_t s) fc 65 drivers/media/common/b2c2/flexcop-sram.c void flexcop_sram_ctrl(struct flexcop_device *fc, int usb_wan, int sramdma, int maximumfill) fc 67 drivers/media/common/b2c2/flexcop-sram.c flexcop_ibi_value v = fc->read_ibi_reg(fc,sram_dest_reg_714); fc 71 drivers/media/common/b2c2/flexcop-sram.c fc->write_ibi_reg(fc,sram_dest_reg_714,v); fc 306 drivers/media/common/b2c2/flexcop-sram.c static int flexcop_sram_detect(struct flexcop_device *fc) fc 309 drivers/media/common/b2c2/flexcop-sram.c r208 = fc->read_ibi_reg(fc, ctrl_208); fc 310 drivers/media/common/b2c2/flexcop-sram.c fc->write_ibi_reg(fc, ctrl_208, ibi_zero); fc 312 drivers/media/common/b2c2/flexcop-sram.c r71c_0 = fc->read_ibi_reg(fc, wan_ctrl_reg_71c); fc 56 drivers/media/common/b2c2/flexcop.c struct flexcop_device *fc = dvbdmxfeed->demux->priv; fc 57 drivers/media/common/b2c2/flexcop.c return flexcop_pid_feed_control(fc, dvbdmxfeed, 1); fc 62 drivers/media/common/b2c2/flexcop.c struct flexcop_device *fc = dvbdmxfeed->demux->priv; fc 63 drivers/media/common/b2c2/flexcop.c return flexcop_pid_feed_control(fc, dvbdmxfeed, 0); fc 66 drivers/media/common/b2c2/flexcop.c static int flexcop_dvb_init(struct flexcop_device *fc) fc 68 drivers/media/common/b2c2/flexcop.c int ret = dvb_register_adapter(&fc->dvb_adapter, fc 69 drivers/media/common/b2c2/flexcop.c "FlexCop Digital TV device", fc->owner, fc 70 drivers/media/common/b2c2/flexcop.c fc->dev, adapter_nr); fc 75 drivers/media/common/b2c2/flexcop.c fc->dvb_adapter.priv = fc; fc 77 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.capabilities = (DMX_TS_FILTERING | DMX_SECTION_FILTERING fc 79 drivers/media/common/b2c2/flexcop.c fc->demux.priv = fc; fc 80 drivers/media/common/b2c2/flexcop.c fc->demux.filternum = fc->demux.feednum = FC_MAX_FEED; fc 81 drivers/media/common/b2c2/flexcop.c fc->demux.start_feed = flexcop_dvb_start_feed; fc 82 drivers/media/common/b2c2/flexcop.c fc->demux.stop_feed = flexcop_dvb_stop_feed; fc 83 drivers/media/common/b2c2/flexcop.c fc->demux.write_to_decoder = NULL; fc 85 drivers/media/common/b2c2/flexcop.c ret = dvb_dmx_init(&fc->demux); fc 91 drivers/media/common/b2c2/flexcop.c fc->hw_frontend.source = DMX_FRONTEND_0; fc 93 drivers/media/common/b2c2/flexcop.c fc->dmxdev.filternum = fc->demux.feednum; fc 94 drivers/media/common/b2c2/flexcop.c fc->dmxdev.demux = &fc->demux.dmx; fc 95 drivers/media/common/b2c2/flexcop.c fc->dmxdev.capabilities = 0; fc 96 drivers/media/common/b2c2/flexcop.c ret = dvb_dmxdev_init(&fc->dmxdev, &fc->dvb_adapter); fc 102 drivers/media/common/b2c2/flexcop.c ret = fc->demux.dmx.add_frontend(&fc->demux.dmx, &fc->hw_frontend); fc 108 drivers/media/common/b2c2/flexcop.c fc->mem_frontend.source = DMX_MEMORY_FE; fc 109 drivers/media/common/b2c2/flexcop.c ret = fc->demux.dmx.add_frontend(&fc->demux.dmx, &fc->mem_frontend); fc 115 drivers/media/common/b2c2/flexcop.c ret = fc->demux.dmx.connect_frontend(&fc->demux.dmx, &fc->hw_frontend); fc 121 drivers/media/common/b2c2/flexcop.c ret = dvb_net_init(&fc->dvb_adapter, &fc->dvbnet, &fc->demux.dmx); fc 127 drivers/media/common/b2c2/flexcop.c fc->init_state |= FC_STATE_DVB_INIT; fc 131 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.disconnect_frontend(&fc->demux.dmx); fc 133 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.remove_frontend(&fc->demux.dmx, &fc->mem_frontend); fc 135 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.remove_frontend(&fc->demux.dmx, &fc->hw_frontend); fc 137 drivers/media/common/b2c2/flexcop.c dvb_dmxdev_release(&fc->dmxdev); fc 139 drivers/media/common/b2c2/flexcop.c dvb_dmx_release(&fc->demux); fc 141 drivers/media/common/b2c2/flexcop.c dvb_unregister_adapter(&fc->dvb_adapter); fc 145 drivers/media/common/b2c2/flexcop.c static void flexcop_dvb_exit(struct flexcop_device *fc) fc 147 drivers/media/common/b2c2/flexcop.c if (fc->init_state & FC_STATE_DVB_INIT) { fc 148 drivers/media/common/b2c2/flexcop.c dvb_net_release(&fc->dvbnet); fc 150 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.close(&fc->demux.dmx); fc 151 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.remove_frontend(&fc->demux.dmx, fc 152 drivers/media/common/b2c2/flexcop.c &fc->mem_frontend); fc 153 drivers/media/common/b2c2/flexcop.c fc->demux.dmx.remove_frontend(&fc->demux.dmx, fc 154 drivers/media/common/b2c2/flexcop.c &fc->hw_frontend); fc 155 drivers/media/common/b2c2/flexcop.c dvb_dmxdev_release(&fc->dmxdev); fc 156 drivers/media/common/b2c2/flexcop.c dvb_dmx_release(&fc->demux); fc 157 drivers/media/common/b2c2/flexcop.c dvb_unregister_adapter(&fc->dvb_adapter); fc 160 drivers/media/common/b2c2/flexcop.c fc->init_state &= ~FC_STATE_DVB_INIT; fc 165 drivers/media/common/b2c2/flexcop.c void flexcop_pass_dmx_data(struct flexcop_device *fc, u8 *buf, u32 len) fc 167 drivers/media/common/b2c2/flexcop.c dvb_dmx_swfilter(&fc->demux, buf, len); fc 171 drivers/media/common/b2c2/flexcop.c void flexcop_pass_dmx_packets(struct flexcop_device *fc, u8 *buf, u32 no) fc 173 drivers/media/common/b2c2/flexcop.c dvb_dmx_swfilter_packets(&fc->demux, buf, no); fc 177 drivers/media/common/b2c2/flexcop.c static void flexcop_reset(struct flexcop_device *fc) fc 182 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,ctrl_208,ibi_zero); fc 195 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,sw_reset_210,v210); fc 200 drivers/media/common/b2c2/flexcop.c v204 = fc->read_ibi_reg(fc,misc_204); fc 202 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,misc_204,v204); fc 205 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,misc_204,v204); fc 208 drivers/media/common/b2c2/flexcop.c void flexcop_reset_block_300(struct flexcop_device *fc) fc 210 drivers/media/common/b2c2/flexcop.c flexcop_ibi_value v208_save = fc->read_ibi_reg(fc, ctrl_208), fc 211 drivers/media/common/b2c2/flexcop.c v210 = fc->read_ibi_reg(fc, sw_reset_210); fc 214 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,ctrl_208,ibi_zero); fc 219 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,sw_reset_210,v210); fc 220 drivers/media/common/b2c2/flexcop.c fc->write_ibi_reg(fc,ctrl_208,v208_save); fc 226 drivers/media/common/b2c2/flexcop.c struct flexcop_device *fc = kzalloc(sizeof(struct flexcop_device), fc 228 drivers/media/common/b2c2/flexcop.c if (!fc) { fc 236 drivers/media/common/b2c2/flexcop.c kfree(fc); fc 240 drivers/media/common/b2c2/flexcop.c fc->bus_specific = bus; fc 242 drivers/media/common/b2c2/flexcop.c return fc; fc 246 drivers/media/common/b2c2/flexcop.c void flexcop_device_kfree(struct flexcop_device *fc) fc 248 drivers/media/common/b2c2/flexcop.c kfree(fc->bus_specific); fc 249 drivers/media/common/b2c2/flexcop.c kfree(fc); fc 253 drivers/media/common/b2c2/flexcop.c int flexcop_device_initialize(struct flexcop_device *fc) fc 258 drivers/media/common/b2c2/flexcop.c flexcop_reset(fc); fc 259 drivers/media/common/b2c2/flexcop.c flexcop_determine_revision(fc); fc 260 drivers/media/common/b2c2/flexcop.c flexcop_sram_init(fc); fc 261 drivers/media/common/b2c2/flexcop.c flexcop_hw_filter_init(fc); fc 262 drivers/media/common/b2c2/flexcop.c flexcop_smc_ctrl(fc, 0); fc 264 drivers/media/common/b2c2/flexcop.c ret = flexcop_dvb_init(fc); fc 270 drivers/media/common/b2c2/flexcop.c ret = flexcop_i2c_init(fc); fc 275 drivers/media/common/b2c2/flexcop.c if (fc->get_mac_addr(fc, 0) == 0) { fc 276 drivers/media/common/b2c2/flexcop.c u8 *b = fc->dvb_adapter.proposed_mac; fc 278 drivers/media/common/b2c2/flexcop.c flexcop_set_mac_filter(fc,b); fc 279 drivers/media/common/b2c2/flexcop.c flexcop_mac_filter_ctrl(fc,1); fc 283 drivers/media/common/b2c2/flexcop.c ret = flexcop_frontend_init(fc); fc 287 drivers/media/common/b2c2/flexcop.c flexcop_device_name(fc,"initialization of","complete"); fc 291 drivers/media/common/b2c2/flexcop.c flexcop_device_exit(fc); fc 296 drivers/media/common/b2c2/flexcop.c void flexcop_device_exit(struct flexcop_device *fc) fc 298 drivers/media/common/b2c2/flexcop.c flexcop_frontend_exit(fc); fc 299 drivers/media/common/b2c2/flexcop.c flexcop_i2c_exit(fc); fc 300 drivers/media/common/b2c2/flexcop.c flexcop_dvb_exit(fc); fc 42 drivers/media/pci/b2c2/flexcop-dma.c int flexcop_dma_config(struct flexcop_device *fc, fc 54 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma1_000, v0x0); fc 55 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma1_004, v0x4); fc 56 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma1_00c, v0xc); fc 58 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma2_010, v0x0); fc 59 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma2_014, v0x4); fc 60 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, dma2_01c, v0xc); fc 72 drivers/media/pci/b2c2/flexcop-dma.c int flexcop_dma_xfer_control(struct flexcop_device *fc, fc 92 drivers/media/pci/b2c2/flexcop-dma.c v0x0 = fc->read_ibi_reg(fc, r0x0); fc 93 drivers/media/pci/b2c2/flexcop-dma.c v0xc = fc->read_ibi_reg(fc, r0xc); fc 104 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, r0x0, v0x0); fc 105 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, r0xc, v0xc); fc 113 drivers/media/pci/b2c2/flexcop-dma.c static int flexcop_dma_remap(struct flexcop_device *fc, fc 118 drivers/media/pci/b2c2/flexcop-dma.c flexcop_ibi_value v = fc->read_ibi_reg(fc, r); fc 122 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, r, v); fc 126 drivers/media/pci/b2c2/flexcop-dma.c int flexcop_dma_control_size_irq(struct flexcop_device *fc, fc 130 drivers/media/pci/b2c2/flexcop-dma.c flexcop_ibi_value v = fc->read_ibi_reg(fc, ctrl_208); fc 138 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, ctrl_208, v); fc 143 drivers/media/pci/b2c2/flexcop-dma.c int flexcop_dma_control_timer_irq(struct flexcop_device *fc, fc 147 drivers/media/pci/b2c2/flexcop-dma.c flexcop_ibi_value v = fc->read_ibi_reg(fc, ctrl_208); fc 155 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, ctrl_208, v); fc 161 drivers/media/pci/b2c2/flexcop-dma.c int flexcop_dma_config_timer(struct flexcop_device *fc, fc 165 drivers/media/pci/b2c2/flexcop-dma.c flexcop_ibi_value v = fc->read_ibi_reg(fc, r); fc 167 drivers/media/pci/b2c2/flexcop-dma.c flexcop_dma_remap(fc, dma_idx, 0); fc 171 drivers/media/pci/b2c2/flexcop-dma.c fc->write_ibi_reg(fc, r, v); fc 76 drivers/media/pci/b2c2/flexcop-pci.c static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc, fc 79 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc 91 drivers/media/pci/b2c2/flexcop-pci.c static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc, fc 94 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc 109 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_device *fc = fc_pci->fc_dev; fc 111 drivers/media/pci/b2c2/flexcop-pci.c if (fc->feedcount) { fc 119 drivers/media/pci/b2c2/flexcop-pci.c spin_lock_irq(&fc->demux.lock); fc 120 drivers/media/pci/b2c2/flexcop-pci.c list_for_each_entry(feed, &fc->demux.feed_list, fc 122 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pid_feed_control(fc, feed, 0); fc 125 drivers/media/pci/b2c2/flexcop-pci.c list_for_each_entry(feed, &fc->demux.feed_list, fc 127 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pid_feed_control(fc, feed, 1); fc 129 drivers/media/pci/b2c2/flexcop-pci.c spin_unlock_irq(&fc->demux.lock); fc 149 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_device *fc = fc_pci->fc_dev; fc 155 drivers/media/pci/b2c2/flexcop-pci.c v = fc->read_ibi_reg(fc, irq_20c); fc 186 drivers/media/pci/b2c2/flexcop-pci.c fc->read_ibi_reg(fc,dma1_008).dma_0x8.dma_cur_addr << 2; fc 232 drivers/media/pci/b2c2/flexcop-pci.c static int flexcop_pci_stream_control(struct flexcop_device *fc, int onoff) fc 234 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc 236 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_config(fc, &fc_pci->dma[0], FC_DMA_1); fc 237 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_config(fc, &fc_pci->dma[1], FC_DMA_2); fc 238 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_config_timer(fc, FC_DMA_1, 0); fc 239 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_xfer_control(fc, FC_DMA_1, fc 244 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_control_timer_irq(fc, FC_DMA_1, 1); fc 248 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_control_timer_irq(fc, FC_DMA_1, 0); fc 251 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_xfer_control(fc, FC_DMA_1, fc 343 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_device *fc; fc 347 drivers/media/pci/b2c2/flexcop-pci.c if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_pci))) == NULL) { fc 353 drivers/media/pci/b2c2/flexcop-pci.c fc_pci = fc->bus_specific; fc 354 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->fc_dev = fc; fc 356 drivers/media/pci/b2c2/flexcop-pci.c fc->read_ibi_reg = flexcop_pci_read_ibi_reg; fc 357 drivers/media/pci/b2c2/flexcop-pci.c fc->write_ibi_reg = flexcop_pci_write_ibi_reg; fc 358 drivers/media/pci/b2c2/flexcop-pci.c fc->i2c_request = flexcop_i2c_request; fc 359 drivers/media/pci/b2c2/flexcop-pci.c fc->get_mac_addr = flexcop_eeprom_check_mac_addr; fc 360 drivers/media/pci/b2c2/flexcop-pci.c fc->stream_control = flexcop_pci_stream_control; fc 367 drivers/media/pci/b2c2/flexcop-pci.c fc->pid_filtering = enable_pid_filtering; fc 368 drivers/media/pci/b2c2/flexcop-pci.c fc->bus_type = FC_PCI; fc 369 drivers/media/pci/b2c2/flexcop-pci.c fc->dev = &pdev->dev; fc 370 drivers/media/pci/b2c2/flexcop-pci.c fc->owner = THIS_MODULE; fc 378 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = flexcop_device_initialize(fc)) != 0) fc 395 drivers/media/pci/b2c2/flexcop-pci.c flexcop_device_exit(fc); fc 399 drivers/media/pci/b2c2/flexcop-pci.c flexcop_device_kfree(fc); fc 69 drivers/media/usb/b2c2/flexcop-usb.c static int flexcop_usb_readwrite_dw(struct flexcop_device *fc, u16 wRegOffsPCI, u32 *val, u8 read) fc 71 drivers/media/usb/b2c2/flexcop-usb.c struct flexcop_usb *fc_usb = fc->bus_specific; fc 223 drivers/media/usb/b2c2/flexcop-usb.c static int flexcop_usb_get_mac_addr(struct flexcop_device *fc, int extended) fc 225 drivers/media/usb/b2c2/flexcop-usb.c return flexcop_usb_memory_req(fc->bus_specific, B2C2_USB_READ_V8_MEM, fc 227 drivers/media/usb/b2c2/flexcop-usb.c fc->dvb_adapter.proposed_mac, 6); fc 235 drivers/media/usb/b2c2/flexcop-usb.c struct flexcop_usb *fc_usb = i2c->fc->bus_specific; fc 303 drivers/media/usb/b2c2/flexcop-usb.c static flexcop_ibi_value flexcop_usb_read_ibi_reg(struct flexcop_device *fc, fc 308 drivers/media/usb/b2c2/flexcop-usb.c flexcop_usb_readwrite_dw(fc, reg, &val.raw, 1); fc 312 drivers/media/usb/b2c2/flexcop-usb.c static int flexcop_usb_write_ibi_reg(struct flexcop_device *fc, fc 315 drivers/media/usb/b2c2/flexcop-usb.c return flexcop_usb_readwrite_dw(fc, reg, &val.raw, 0); fc 406 drivers/media/usb/b2c2/flexcop-usb.c static int flexcop_usb_stream_control(struct flexcop_device *fc, int onoff) fc 547 drivers/media/usb/b2c2/flexcop-usb.c struct flexcop_device *fc = NULL; fc 550 drivers/media/usb/b2c2/flexcop-usb.c if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_usb))) == NULL) { fc 556 drivers/media/usb/b2c2/flexcop-usb.c fc_usb = fc->bus_specific; fc 557 drivers/media/usb/b2c2/flexcop-usb.c fc_usb->fc_dev = fc; fc 560 drivers/media/usb/b2c2/flexcop-usb.c fc->read_ibi_reg = flexcop_usb_read_ibi_reg; fc 561 drivers/media/usb/b2c2/flexcop-usb.c fc->write_ibi_reg = flexcop_usb_write_ibi_reg; fc 562 drivers/media/usb/b2c2/flexcop-usb.c fc->i2c_request = flexcop_usb_i2c_request; fc 563 drivers/media/usb/b2c2/flexcop-usb.c fc->get_mac_addr = flexcop_usb_get_mac_addr; fc 565 drivers/media/usb/b2c2/flexcop-usb.c fc->stream_control = flexcop_usb_stream_control; fc 567 drivers/media/usb/b2c2/flexcop-usb.c fc->pid_filtering = 1; fc 568 drivers/media/usb/b2c2/flexcop-usb.c fc->bus_type = FC_USB; fc 570 drivers/media/usb/b2c2/flexcop-usb.c fc->dev = &udev->dev; fc 571 drivers/media/usb/b2c2/flexcop-usb.c fc->owner = THIS_MODULE; fc 580 drivers/media/usb/b2c2/flexcop-usb.c if ((ret = flexcop_device_initialize(fc)) != 0) fc 591 drivers/media/usb/b2c2/flexcop-usb.c flexcop_device_exit(fc); fc 595 drivers/media/usb/b2c2/flexcop-usb.c flexcop_device_kfree(fc); fc 852 drivers/media/v4l2-core/videobuf-core.c unsigned int *fc = CALLPTR(q, vaddr, buf); fc 859 drivers/media/v4l2-core/videobuf-core.c fc += (buf->size >> 2) - 1; fc 860 drivers/media/v4l2-core/videobuf-core.c *fc = buf->field_count >> 1; fc 861 drivers/media/v4l2-core/videobuf-core.c dprintk(1, "vbihack: %d\n", *fc); fc 6658 drivers/message/fusion/mptbase.c int scsi, fc, sas, lan, ctl, targ, dmp; fc 6664 drivers/message/fusion/mptbase.c scsi = fc = sas = lan = ctl = targ = dmp = 0; fc 6673 drivers/message/fusion/mptbase.c if (!fc++) drvname = "FC host"; fc 288 drivers/message/fusion/mptfc.c FCDevicePage0_t *ppage0_alloc, *fc; fc 384 drivers/message/fusion/mptfc.c fc = *(pp0_array+ii); fc 385 drivers/message/fusion/mptfc.c func(ioc, ioc_port, fc); fc 37 drivers/misc/cxl/api.c static int cxl_fs_init_fs_context(struct fs_context *fc) fc 39 drivers/misc/cxl/api.c return init_pseudo(fc, CXL_PSEUDO_FS_MAGIC) ? 0 : -ENOMEM; fc 78 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_fill_super(struct super_block *sb, struct fs_context *fc); fc 80 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_get_tree(struct fs_context *fc) fc 82 drivers/misc/ibmasm/ibmasmfs.c return get_tree_single(fc, ibmasmfs_fill_super); fc 89 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_init_fs_context(struct fs_context *fc) fc 91 drivers/misc/ibmasm/ibmasmfs.c fc->ops = &ibmasmfs_context_ops; fc 110 drivers/misc/ibmasm/ibmasmfs.c static int ibmasmfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 1738 drivers/misc/vmw_balloon.c static int vmballoon_init_fs_context(struct fs_context *fc) fc 1740 drivers/misc/vmw_balloon.c return init_pseudo(fc, BALLOON_VMW_MAGIC) ? 0 : -ENOMEM; fc 25 drivers/mtd/mtdsuper.c static int mtd_test_super(struct super_block *sb, struct fs_context *fc) fc 27 drivers/mtd/mtdsuper.c struct mtd_info *mtd = fc->sget_key; fc 29 drivers/mtd/mtdsuper.c if (sb->s_mtd == fc->sget_key) { fc 45 drivers/mtd/mtdsuper.c static int mtd_set_super(struct super_block *sb, struct fs_context *fc) fc 47 drivers/mtd/mtdsuper.c sb->s_mtd = fc->sget_key; fc 56 drivers/mtd/mtdsuper.c static int mtd_get_sb(struct fs_context *fc, fc 64 drivers/mtd/mtdsuper.c fc->sget_key = mtd; fc 65 drivers/mtd/mtdsuper.c sb = sget_fc(fc, mtd_test_super, mtd_set_super); fc 79 drivers/mtd/mtdsuper.c ret = fill_super(sb, fc); fc 86 drivers/mtd/mtdsuper.c BUG_ON(fc->root); fc 87 drivers/mtd/mtdsuper.c fc->root = dget(sb->s_root); fc 98 drivers/mtd/mtdsuper.c static int mtd_get_sb_by_nr(struct fs_context *fc, int mtdnr, fc 106 drivers/mtd/mtdsuper.c errorf(fc, "MTDSB: Device #%u doesn't appear to exist\n", mtdnr); fc 110 drivers/mtd/mtdsuper.c return mtd_get_sb(fc, mtd, fill_super); fc 118 drivers/mtd/mtdsuper.c int get_tree_mtd(struct fs_context *fc, fc 120 drivers/mtd/mtdsuper.c struct fs_context *fc)) fc 128 drivers/mtd/mtdsuper.c if (!fc->source) fc 129 drivers/mtd/mtdsuper.c return invalf(fc, "No source specified"); fc 131 drivers/mtd/mtdsuper.c pr_debug("MTDSB: dev_name \"%s\"\n", fc->source); fc 138 drivers/mtd/mtdsuper.c if (fc->source[0] == 'm' && fc 139 drivers/mtd/mtdsuper.c fc->source[1] == 't' && fc 140 drivers/mtd/mtdsuper.c fc->source[2] == 'd') { fc 141 drivers/mtd/mtdsuper.c if (fc->source[3] == ':') { fc 146 drivers/mtd/mtdsuper.c fc->source + 4); fc 148 drivers/mtd/mtdsuper.c mtd = get_mtd_device_nm(fc->source + 4); fc 150 drivers/mtd/mtdsuper.c return mtd_get_sb(fc, mtd, fill_super); fc 152 drivers/mtd/mtdsuper.c errorf(fc, "MTD: MTD device with name \"%s\" not found", fc 153 drivers/mtd/mtdsuper.c fc->source + 4); fc 155 drivers/mtd/mtdsuper.c } else if (isdigit(fc->source[3])) { fc 159 drivers/mtd/mtdsuper.c mtdnr = simple_strtoul(fc->source + 3, &endptr, 0); fc 163 drivers/mtd/mtdsuper.c return mtd_get_sb_by_nr(fc, mtdnr, fill_super); fc 172 drivers/mtd/mtdsuper.c bdev = lookup_bdev(fc->source); fc 175 drivers/mtd/mtdsuper.c errorf(fc, "MTD: Couldn't look up '%s': %d", fc->source, ret); fc 185 drivers/mtd/mtdsuper.c return mtd_get_sb_by_nr(fc, mtdnr, fill_super); fc 189 drivers/mtd/mtdsuper.c if (!(fc->sb_flags & SB_SILENT)) fc 190 drivers/mtd/mtdsuper.c errorf(fc, "MTD: Attempt to mount non-MTD device \"%s\"", fc 191 drivers/mtd/mtdsuper.c fc->source); fc 1502 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c u8 fc; fc 1521 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c fc = mii_resolve_flowctrl_fdx(lcl_adv, rmt_adv); fc 1522 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (fc & FLOW_CTRL_TX) fc 1524 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c if (fc & FLOW_CTRL_RX) fc 484 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c u32 fc = aq_nic->aq_nic_cfg.flow_control; fc 488 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c pause->rx_pause = !!(fc & AQ_NIC_FC_RX); fc 489 drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c pause->tx_pause = !!(fc & AQ_NIC_FC_TX); fc 238 drivers/net/ethernet/aquantia/atlantic/aq_hw.h int (*hw_set_fc)(struct aq_hw_s *self, u32 fc, u32 tc); fc 137 drivers/net/ethernet/aquantia/atlantic/aq_nic.c u32 fc = 0; fc 153 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->aq_fw_ops->get_flow_control(self->aq_hw, &fc); fc 155 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->aq_hw_ops->hw_set_fc(self->aq_hw, fc, 0); fc 104 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c static int hw_atl_b0_set_fc(struct aq_hw_s *self, u32 fc, u32 tc) fc 106 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c hw_atl_rpb_rx_xoff_en_per_tc_set(self, !!(fc & AQ_NIC_FC_RX), tc); fc 226 drivers/net/ethernet/atheros/alx/ethtool.c u8 fc = 0; fc 229 drivers/net/ethernet/atheros/alx/ethtool.c fc |= ALX_FC_TX; fc 231 drivers/net/ethernet/atheros/alx/ethtool.c fc |= ALX_FC_RX; fc 233 drivers/net/ethernet/atheros/alx/ethtool.c fc |= ALX_FC_ANEG; fc 239 drivers/net/ethernet/atheros/alx/ethtool.c if (!((fc ^ hw->flowctrl) & ALX_FC_ANEG)) fc 241 drivers/net/ethernet/atheros/alx/ethtool.c if (fc & hw->flowctrl & ALX_FC_ANEG && fc 242 drivers/net/ethernet/atheros/alx/ethtool.c (fc ^ hw->flowctrl) & (ALX_FC_RX | ALX_FC_TX)) fc 247 drivers/net/ethernet/atheros/alx/ethtool.c err = alx_setup_speed_duplex(hw, hw->adv_cfg, fc); fc 253 drivers/net/ethernet/atheros/alx/ethtool.c if ((fc ^ hw->flowctrl) & (ALX_FC_RX | ALX_FC_TX)) fc 254 drivers/net/ethernet/atheros/alx/ethtool.c alx_cfg_mac_flowcontrol(hw, fc); fc 256 drivers/net/ethernet/atheros/alx/ethtool.c hw->flowctrl = fc; fc 629 drivers/net/ethernet/atheros/alx/hw.c void alx_cfg_mac_flowcontrol(struct alx_hw *hw, u8 fc) fc 631 drivers/net/ethernet/atheros/alx/hw.c if (fc & ALX_FC_RX) fc 636 drivers/net/ethernet/atheros/alx/hw.c if (fc & ALX_FC_TX) fc 558 drivers/net/ethernet/atheros/alx/hw.h void alx_cfg_mac_flowcontrol(struct alx_hw *hw, u8 fc); fc 294 drivers/net/ethernet/broadcom/sb1250-mac.c enum sbmac_fc fc); fc 1874 drivers/net/ethernet/broadcom/sb1250-mac.c enum sbmac_fc fc) fc 1883 drivers/net/ethernet/broadcom/sb1250-mac.c s->sbm_fc = fc; fc 1903 drivers/net/ethernet/broadcom/sb1250-mac.c switch (fc) { fc 1923 drivers/net/ethernet/broadcom/sb1250-mac.c switch (fc) { fc 2363 drivers/net/ethernet/broadcom/sb1250-mac.c enum sbmac_fc fc; fc 2388 drivers/net/ethernet/broadcom/sb1250-mac.c fc = sbmac_fc_frame; fc 2390 drivers/net/ethernet/broadcom/sb1250-mac.c fc = sbmac_fc_disabled; fc 2392 drivers/net/ethernet/broadcom/sb1250-mac.c fc = sbmac_fc_collision; fc 2393 drivers/net/ethernet/broadcom/sb1250-mac.c fc_chg = (sc->sbm_fc != fc); fc 2402 drivers/net/ethernet/broadcom/sb1250-mac.c sc->sbm_fc = fc; fc 4420 drivers/net/ethernet/broadcom/tg3.c u32 adv, fc; fc 4436 drivers/net/ethernet/broadcom/tg3.c fc = FLOW_CTRL_TX | FLOW_CTRL_RX; fc 4443 drivers/net/ethernet/broadcom/tg3.c fc = tp->link_config.flowctrl; fc 4446 drivers/net/ethernet/broadcom/tg3.c tg3_phy_autoneg_cfg(tp, adv, fc); fc 100 drivers/net/ethernet/brocade/bna/bfa_defs_cna.h struct bfa_port_fc_stats fc; fc 214 drivers/net/ethernet/chelsio/cxgb/common.h unsigned char fc; /* actual link flow control */ fc 85 drivers/net/ethernet/chelsio/cxgb/cphy.h int *duplex, int *fc); fc 679 drivers/net/ethernet/chelsio/cxgb/cxgb2.c epause->rx_pause = (p->link_config.fc & PAUSE_RX) != 0; fc 680 drivers/net/ethernet/chelsio/cxgb/cxgb2.c epause->tx_pause = (p->link_config.fc & PAUSE_TX) != 0; fc 705 drivers/net/ethernet/chelsio/cxgb/cxgb2.c lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 708 drivers/net/ethernet/chelsio/cxgb/cxgb2.c lc->fc); fc 113 drivers/net/ethernet/chelsio/cxgb/gmac.h int (*set_speed_duplex_fc)(struct cmac *, int speed, int duplex, int fc); fc 115 drivers/net/ethernet/chelsio/cxgb/gmac.h int *fc); fc 242 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c int *speed, int *duplex, int *fc) fc 269 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c if (fc) fc 270 drivers/net/ethernet/chelsio/cxgb/mv88e1xxx.c *fc = pause; fc 172 drivers/net/ethernet/chelsio/cxgb/mv88x201x.c int *speed, int *duplex, int *fc) fc 188 drivers/net/ethernet/chelsio/cxgb/mv88x201x.c if (fc) fc 189 drivers/net/ethernet/chelsio/cxgb/mv88x201x.c *fc = PAUSE_RX | PAUSE_TX; fc 111 drivers/net/ethernet/chelsio/cxgb/my3126.c int *link_ok, int *speed, int *duplex, int *fc) fc 147 drivers/net/ethernet/chelsio/cxgb/my3126.c if (fc) fc 148 drivers/net/ethernet/chelsio/cxgb/my3126.c *fc = PAUSE_RX | PAUSE_TX; fc 90 drivers/net/ethernet/chelsio/cxgb/pm3393.c u8 fc; fc 270 drivers/net/ethernet/chelsio/cxgb/pm3393.c if (cmac->instance->fc & PAUSE_RX) fc 272 drivers/net/ethernet/chelsio/cxgb/pm3393.c if (cmac->instance->fc & PAUSE_TX) fc 398 drivers/net/ethernet/chelsio/cxgb/pm3393.c int *duplex, int *fc) fc 404 drivers/net/ethernet/chelsio/cxgb/pm3393.c if (fc) fc 405 drivers/net/ethernet/chelsio/cxgb/pm3393.c *fc = cmac->instance->fc; fc 410 drivers/net/ethernet/chelsio/cxgb/pm3393.c int fc) fc 416 drivers/net/ethernet/chelsio/cxgb/pm3393.c if (fc & ~(PAUSE_TX | PAUSE_RX)) fc 419 drivers/net/ethernet/chelsio/cxgb/pm3393.c if (fc != cmac->instance->fc) { fc 420 drivers/net/ethernet/chelsio/cxgb/pm3393.c cmac->instance->fc = (u8) fc; fc 598 drivers/net/ethernet/chelsio/cxgb/pm3393.c cmac->instance->fc = PAUSE_TX | PAUSE_RX; fc 152 drivers/net/ethernet/chelsio/cxgb/subr.c int link_ok, speed, duplex, fc; fc 156 drivers/net/ethernet/chelsio/cxgb/subr.c phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); fc 161 drivers/net/ethernet/chelsio/cxgb/subr.c fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 167 drivers/net/ethernet/chelsio/cxgb/subr.c mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc); fc 168 drivers/net/ethernet/chelsio/cxgb/subr.c lc->fc = (unsigned char)fc; fc 170 drivers/net/ethernet/chelsio/cxgb/subr.c t1_link_negotiated(adapter, port_id, link_ok, speed, duplex, fc); fc 625 drivers/net/ethernet/chelsio/cxgb/subr.c unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 629 drivers/net/ethernet/chelsio/cxgb/subr.c if (fc) { fc 630 drivers/net/ethernet/chelsio/cxgb/subr.c if (fc == ((PAUSE_RX | PAUSE_TX) & fc 635 drivers/net/ethernet/chelsio/cxgb/subr.c if (fc == PAUSE_RX) fc 644 drivers/net/ethernet/chelsio/cxgb/subr.c lc->fc = (unsigned char)fc; fc 646 drivers/net/ethernet/chelsio/cxgb/subr.c lc->duplex, fc); fc 657 drivers/net/ethernet/chelsio/cxgb/subr.c mac->ops->set_speed_duplex_fc(mac, -1, -1, fc); fc 658 drivers/net/ethernet/chelsio/cxgb/subr.c lc->fc = (unsigned char)fc; fc 1036 drivers/net/ethernet/chelsio/cxgb/subr.c lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; fc 460 drivers/net/ethernet/chelsio/cxgb/vsc7326.c int fc) fc 518 drivers/net/ethernet/chelsio/cxgb/vsc7326.c if (fc & PAUSE_RX) fc 520 drivers/net/ethernet/chelsio/cxgb/vsc7326.c if (fc & PAUSE_TX) fc 522 drivers/net/ethernet/chelsio/cxgb/vsc7326.c if (fc == (PAUSE_RX | PAUSE_TX)) fc 310 drivers/net/ethernet/chelsio/cxgb3/adapter.h int speed, int duplex, int fc); fc 177 drivers/net/ethernet/chelsio/cxgb3/ael1002.c int *duplex, int *fc) fc 835 drivers/net/ethernet/chelsio/cxgb3/ael1002.c int *duplex, int *fc) fc 896 drivers/net/ethernet/chelsio/cxgb3/ael1002.c int *speed, int *duplex, int *fc) fc 208 drivers/net/ethernet/chelsio/cxgb3/aq100x.c int *speed, int *duplex, int *fc) fc 434 drivers/net/ethernet/chelsio/cxgb3/common.h unsigned char fc; /* actual link flow control */ fc 532 drivers/net/ethernet/chelsio/cxgb3/common.h int *duplex, int *fc); fc 716 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc); fc 1921 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c epause->rx_pause = (p->link_config.fc & PAUSE_RX) != 0; fc 1922 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c epause->tx_pause = (p->link_config.fc & PAUSE_TX) != 0; fc 1946 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c lc->fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 1948 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_speed_duplex_fc(&p->mac, -1, -1, lc->fc); fc 1242 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int link_ok, speed, duplex, fc; fc 1248 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); fc 1268 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c fc &= lc->requested_fc; fc 1270 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 1273 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c duplex == lc->duplex && fc == lc->fc) fc 1289 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_mac_set_speed_duplex_fc(mac, speed, duplex, fc); fc 1290 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c lc->fc = fc; fc 1294 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c speed, duplex, fc); fc 1303 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c int link_ok, speed, duplex, fc, link_fault; fc 1323 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c fc = lc->fc; fc 1325 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c phy->ops->get_link_status(phy, &link_ok, &speed, &duplex, &fc); fc 1365 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int fc = lc->requested_fc & (PAUSE_RX | PAUSE_TX); fc 1370 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (fc) { fc 1372 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (fc & PAUSE_RX) fc 1380 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c lc->fc = (unsigned char)fc; fc 1382 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c fc); fc 1388 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c t3_mac_set_speed_duplex_fc(mac, -1, -1, fc); fc 1389 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c lc->fc = (unsigned char)fc; fc 3497 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; fc 131 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c int *speed, int *duplex, int *fc) fc 177 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c if (fc && dplx == DUPLEX_FULL) { fc 201 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c if (fc) fc 202 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c *fc = pause; fc 207 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c int *speed, int *duplex, int *fc) fc 254 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c if (fc && dplx == DUPLEX_FULL) { fc 269 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c if (fc) fc 270 drivers/net/ethernet/chelsio/cxgb3/vsc8211.c *fc = pause; fc 428 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) fc 454 drivers/net/ethernet/chelsio/cxgb3/xgmac.c if (fc & PAUSE_TX) { fc 463 drivers/net/ethernet/chelsio/cxgb3/xgmac.c (fc & PAUSE_RX) ? F_TXPAUSEEN : 0); fc 505 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h enum cc_pause fc; /* actual link flow control */ fc 192 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static const char *fc[] = { "no", "Rx", "Tx", "Tx/Rx" }; fc 226 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c fc[p->link_cfg.fc]); fc 4171 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; fc 4175 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; fc 8570 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int speed, fc, fec, adv_fc; fc 8616 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c fc = fwcap_to_cc_pause(linkattr); fc 8672 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c fc != lc->fc || adv_fc != lc->advertised_fc || fc 8685 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c lc->fc = fc; fc 8898 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; fc 155 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c const char *fc; fc 185 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c switch ((int)pi->link_cfg.fc) { fc 187 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fc = "RX"; fc 191 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fc = "TX"; fc 195 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fc = "RX/TX"; fc 199 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c fc = "no"; fc 203 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c netdev_info(dev, "link up, %s, full-duplex, %s PAUSE\n", s, fc); fc 137 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h enum cc_pause fc; /* actual link flow control */ fc 465 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c lc->requested_fc = lc->fc = PAUSE_RX | PAUSE_TX; fc 1919 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c unsigned int speed, fc, fec, adv_fc; fc 1986 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c fc = fwcap_to_cc_pause(linkattr); fc 2016 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c fc != lc->fc || adv_fc != lc->advertised_fc || fc 2029 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c lc->fc = fc; fc 256 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (hw->fc == E1000_FC_RX_PAUSE) { fc 258 drivers/net/ethernet/intel/e1000/e1000_ethtool.c } else if (hw->fc == E1000_FC_TX_PAUSE) { fc 260 drivers/net/ethernet/intel/e1000/e1000_ethtool.c } else if (hw->fc == E1000_FC_FULL) { fc 279 drivers/net/ethernet/intel/e1000/e1000_ethtool.c hw->fc = E1000_FC_FULL; fc 281 drivers/net/ethernet/intel/e1000/e1000_ethtool.c hw->fc = E1000_FC_RX_PAUSE; fc 283 drivers/net/ethernet/intel/e1000/e1000_ethtool.c hw->fc = E1000_FC_TX_PAUSE; fc 285 drivers/net/ethernet/intel/e1000/e1000_ethtool.c hw->fc = E1000_FC_NONE; fc 287 drivers/net/ethernet/intel/e1000/e1000_ethtool.c hw->original_fc = hw->fc; fc 701 drivers/net/ethernet/intel/e1000/e1000_hw.c if (hw->fc == E1000_FC_DEFAULT) { fc 709 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_NONE; fc 712 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_TX_PAUSE; fc 714 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_FULL; fc 722 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc &= (~E1000_FC_TX_PAUSE); fc 725 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc &= (~E1000_FC_RX_PAUSE); fc 727 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->original_fc = hw->fc; fc 729 drivers/net/ethernet/intel/e1000/e1000_hw.c e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc); fc 773 drivers/net/ethernet/intel/e1000/e1000_hw.c if (!(hw->fc & E1000_FC_TX_PAUSE)) { fc 849 drivers/net/ethernet/intel/e1000/e1000_hw.c switch (hw->fc) { fc 1582 drivers/net/ethernet/intel/e1000/e1000_hw.c switch (hw->fc) { fc 1653 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_NONE; fc 1655 drivers/net/ethernet/intel/e1000/e1000_hw.c e_dbg("hw->fc = %d\n", hw->fc); fc 2010 drivers/net/ethernet/intel/e1000/e1000_hw.c switch (hw->fc) { fc 2153 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_FULL; fc 2156 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_RX_PAUSE; fc 2173 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_TX_PAUSE; fc 2189 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_RX_PAUSE; fc 2218 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_NONE; fc 2221 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_RX_PAUSE; fc 2239 drivers/net/ethernet/intel/e1000/e1000_hw.c hw->fc = E1000_FC_NONE; fc 1337 drivers/net/ethernet/intel/e1000/e1000_hw.h e1000_fc_type fc; fc 672 drivers/net/ethernet/intel/e1000/e1000_main.c hw->fc = hw->original_fc; fc 348 drivers/net/ethernet/intel/e1000/e1000_param.c unsigned int fc = FlowControl[bd]; fc 349 drivers/net/ethernet/intel/e1000/e1000_param.c e1000_validate_option(&fc, &opt, adapter); fc 350 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->hw.fc = adapter->hw.original_fc = fc; fc 352 drivers/net/ethernet/intel/e1000/e1000_param.c adapter->hw.fc = adapter->hw.original_fc = opt.def; fc 1402 drivers/net/ethernet/intel/e1000e/82571.c if (hw->fc.requested_mode == e1000_fc_default) fc 1403 drivers/net/ethernet/intel/e1000e/82571.c hw->fc.requested_mode = e1000_fc_full; fc 305 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_default; fc 349 drivers/net/ethernet/intel/e1000e/ethtool.c if (hw->fc.current_mode == e1000_fc_rx_pause) { fc 351 drivers/net/ethernet/intel/e1000e/ethtool.c } else if (hw->fc.current_mode == e1000_fc_tx_pause) { fc 353 drivers/net/ethernet/intel/e1000e/ethtool.c } else if (hw->fc.current_mode == e1000_fc_full) { fc 374 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_default; fc 383 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_full; fc 385 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_rx_pause; fc 387 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_tx_pause; fc 389 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.requested_mode = e1000_fc_none; fc 391 drivers/net/ethernet/intel/e1000e/ethtool.c hw->fc.current_mode = hw->fc.requested_mode; fc 677 drivers/net/ethernet/intel/e1000e/hw.h struct e1000_fc_info fc; fc 4931 drivers/net/ethernet/intel/e1000e/ich8lan.c if (hw->fc.requested_mode == e1000_fc_default) { fc 4934 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->fc.requested_mode = e1000_fc_rx_pause; fc 4936 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->fc.requested_mode = e1000_fc_full; fc 4942 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->fc.current_mode = hw->fc.requested_mode; fc 4944 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); fc 4951 drivers/net/ethernet/intel/e1000e/ich8lan.c ew32(FCTTV, hw->fc.pause_time); fc 4956 drivers/net/ethernet/intel/e1000e/ich8lan.c ew32(FCRTV_PCH, hw->fc.refresh_time); fc 4959 drivers/net/ethernet/intel/e1000e/ich8lan.c hw->fc.pause_time); fc 649 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.requested_mode = e1000_fc_none; fc 651 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.requested_mode = e1000_fc_tx_pause; fc 653 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.requested_mode = e1000_fc_full; fc 681 drivers/net/ethernet/intel/e1000e/mac.c if (hw->fc.requested_mode == e1000_fc_default) { fc 690 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = hw->fc.requested_mode; fc 692 drivers/net/ethernet/intel/e1000e/mac.c e_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); fc 709 drivers/net/ethernet/intel/e1000e/mac.c ew32(FCTTV, hw->fc.pause_time); fc 742 drivers/net/ethernet/intel/e1000e/mac.c switch (hw->fc.current_mode) { fc 914 drivers/net/ethernet/intel/e1000e/mac.c if (hw->fc.current_mode & e1000_fc_tx_pause) { fc 919 drivers/net/ethernet/intel/e1000e/mac.c fcrtl = hw->fc.low_water; fc 920 drivers/net/ethernet/intel/e1000e/mac.c if (hw->fc.send_xon) fc 923 drivers/net/ethernet/intel/e1000e/mac.c fcrth = hw->fc.high_water; fc 964 drivers/net/ethernet/intel/e1000e/mac.c e_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); fc 966 drivers/net/ethernet/intel/e1000e/mac.c switch (hw->fc.current_mode) { fc 1103 drivers/net/ethernet/intel/e1000e/mac.c if (hw->fc.requested_mode == e1000_fc_full) { fc 1104 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_full; fc 1107 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1122 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_tx_pause; fc 1136 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1142 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_none; fc 1157 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_none; fc 1236 drivers/net/ethernet/intel/e1000e/mac.c if (hw->fc.requested_mode == e1000_fc_full) { fc 1237 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_full; fc 1240 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1255 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_tx_pause; fc 1269 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1275 drivers/net/ethernet/intel/e1000e/mac.c hw->fc.current_mode = e1000_fc_none; fc 3947 drivers/net/ethernet/intel/e1000e/netdev.c struct e1000_fc_info *fc = &adapter->hw.fc; fc 4008 drivers/net/ethernet/intel/e1000e/netdev.c fc->pause_time = 0xFFFF; fc 4010 drivers/net/ethernet/intel/e1000e/netdev.c fc->pause_time = E1000_FC_PAUSE_TIME; fc 4011 drivers/net/ethernet/intel/e1000e/netdev.c fc->send_xon = true; fc 4012 drivers/net/ethernet/intel/e1000e/netdev.c fc->current_mode = fc->requested_mode; fc 4020 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = 0x2800; fc 4021 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = fc->high_water - 8; fc 4029 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = hwm & E1000_FCRTH_RTH; /* 8-byte granularity */ fc 4030 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = fc->high_water - 8; fc 4037 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = 0x3500; fc 4038 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = 0x1500; fc 4040 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = 0x5000; fc 4041 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = 0x3000; fc 4043 drivers/net/ethernet/intel/e1000e/netdev.c fc->refresh_time = 0x1000; fc 4049 drivers/net/ethernet/intel/e1000e/netdev.c fc->refresh_time = 0xFFFF; fc 4050 drivers/net/ethernet/intel/e1000e/netdev.c fc->pause_time = 0xFFFF; fc 4053 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = 0x05C20; fc 4054 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = 0x05048; fc 4060 drivers/net/ethernet/intel/e1000e/netdev.c fc->high_water = ((pba << 10) * 9 / 10) & E1000_FCRTH_RTH; fc 4061 drivers/net/ethernet/intel/e1000e/netdev.c fc->low_water = ((pba << 10) * 8 / 10) & E1000_FCRTL_RTL; fc 7287 drivers/net/ethernet/intel/e1000e/netdev.c adapter->hw.fc.requested_mode = e1000_fc_default; fc 7288 drivers/net/ethernet/intel/e1000e/netdev.c adapter->hw.fc.current_mode = e1000_fc_default; fc 1007 drivers/net/ethernet/intel/e1000e/phy.c switch (hw->fc.current_mode) { fc 1424 drivers/net/ethernet/intel/e1000e/phy.c hw->fc.current_mode = e1000_fc_none; fc 1656 drivers/net/ethernet/intel/i40e/i40e_common.c enum i40e_fc_mode fc_mode = hw->fc.requested_mode; fc 1856 drivers/net/ethernet/intel/i40e/i40e_common.c hw->fc.current_mode = I40E_FC_FULL; fc 1858 drivers/net/ethernet/intel/i40e/i40e_common.c hw->fc.current_mode = I40E_FC_TX_PAUSE; fc 1860 drivers/net/ethernet/intel/i40e/i40e_common.c hw->fc.current_mode = I40E_FC_RX_PAUSE; fc 1862 drivers/net/ethernet/intel/i40e/i40e_common.c hw->fc.current_mode = I40E_FC_NONE; fc 1102 drivers/net/ethernet/intel/i40e/i40e_ethtool.c switch (hw->fc.requested_mode) { fc 1566 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (hw->fc.current_mode == I40E_FC_RX_PAUSE) { fc 1568 drivers/net/ethernet/intel/i40e/i40e_ethtool.c } else if (hw->fc.current_mode == I40E_FC_TX_PAUSE) { fc 1570 drivers/net/ethernet/intel/i40e/i40e_ethtool.c } else if (hw->fc.current_mode == I40E_FC_FULL) { fc 1626 drivers/net/ethernet/intel/i40e/i40e_ethtool.c hw->fc.requested_mode = I40E_FC_FULL; fc 1628 drivers/net/ethernet/intel/i40e/i40e_ethtool.c hw->fc.requested_mode = I40E_FC_RX_PAUSE; fc 1630 drivers/net/ethernet/intel/i40e/i40e_ethtool.c hw->fc.requested_mode = I40E_FC_TX_PAUSE; fc 1632 drivers/net/ethernet/intel/i40e/i40e_ethtool.c hw->fc.requested_mode = I40E_FC_NONE; fc 6499 drivers/net/ethernet/intel/i40e/i40e_main.c char *fc = "Unknown"; fc 6556 drivers/net/ethernet/intel/i40e/i40e_main.c switch (pf->hw.fc.current_mode) { fc 6558 drivers/net/ethernet/intel/i40e/i40e_main.c fc = "RX/TX"; fc 6561 drivers/net/ethernet/intel/i40e/i40e_main.c fc = "TX"; fc 6564 drivers/net/ethernet/intel/i40e/i40e_main.c fc = "RX"; fc 6567 drivers/net/ethernet/intel/i40e/i40e_main.c fc = "None"; fc 6599 drivers/net/ethernet/intel/i40e/i40e_main.c speed, req_fec, fec, an, fc); fc 6603 drivers/net/ethernet/intel/i40e/i40e_main.c speed, fc); fc 14891 drivers/net/ethernet/intel/i40e/i40e_main.c pf->hw.fc.requested_mode = I40E_FC_NONE; fc 569 drivers/net/ethernet/intel/i40e/i40e_type.h struct i40e_fc_info fc; fc 283 drivers/net/ethernet/intel/ice/ice_common.c hw_fc_info = &pi->fc; fc 2283 drivers/net/ethernet/intel/ice/ice_common.c switch (pi->fc.req_mode) { fc 2034 drivers/net/ethernet/intel/ice/ice_ethtool.c switch (pi->fc.current_mode) { fc 2909 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_FULL; fc 2911 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_RX_PAUSE; fc 2913 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_TX_PAUSE; fc 2915 drivers/net/ethernet/intel/ice/ice_ethtool.c pi->fc.req_mode = ICE_FC_NONE; fc 658 drivers/net/ethernet/intel/ice/ice_main.c const char *fc; fc 710 drivers/net/ethernet/intel/ice/ice_main.c switch (vsi->port_info->fc.current_mode) { fc 712 drivers/net/ethernet/intel/ice/ice_main.c fc = "Rx/Tx"; fc 715 drivers/net/ethernet/intel/ice/ice_main.c fc = "Tx"; fc 718 drivers/net/ethernet/intel/ice/ice_main.c fc = "Rx"; fc 721 drivers/net/ethernet/intel/ice/ice_main.c fc = "None"; fc 724 drivers/net/ethernet/intel/ice/ice_main.c fc = "Unknown"; fc 774 drivers/net/ethernet/intel/ice/ice_main.c speed, fec_req, fec, an, fc); fc 361 drivers/net/ethernet/intel/ice/ice_type.h struct ice_fc_info fc; fc 1754 drivers/net/ethernet/intel/igb/e1000_82575.c switch (hw->fc.requested_mode) { fc 525 drivers/net/ethernet/intel/igb/e1000_hw.h struct e1000_fc_info fc; fc 659 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->fc.requested_mode == e1000_fc_default) { fc 669 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = hw->fc.requested_mode; fc 671 drivers/net/ethernet/intel/igb/e1000_mac.c hw_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); fc 688 drivers/net/ethernet/intel/igb/e1000_mac.c wr32(E1000_FCTTV, hw->fc.pause_time); fc 737 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->fc.current_mode & e1000_fc_tx_pause) { fc 742 drivers/net/ethernet/intel/igb/e1000_mac.c fcrtl = hw->fc.low_water; fc 743 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->fc.send_xon) fc 746 drivers/net/ethernet/intel/igb/e1000_mac.c fcrth = hw->fc.high_water; fc 788 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.requested_mode = e1000_fc_none; fc 790 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.requested_mode = e1000_fc_tx_pause; fc 792 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.requested_mode = e1000_fc_full; fc 832 drivers/net/ethernet/intel/igb/e1000_mac.c hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); fc 834 drivers/net/ethernet/intel/igb/e1000_mac.c switch (hw->fc.current_mode) { fc 976 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->fc.requested_mode == e1000_fc_full) { fc 977 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_full; fc 980 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 995 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_tx_pause; fc 1009 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1032 drivers/net/ethernet/intel/igb/e1000_mac.c else if ((hw->fc.requested_mode == e1000_fc_none) || fc 1033 drivers/net/ethernet/intel/igb/e1000_mac.c (hw->fc.requested_mode == e1000_fc_tx_pause) || fc 1034 drivers/net/ethernet/intel/igb/e1000_mac.c (hw->fc.strict_ieee)) { fc 1035 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_none; fc 1038 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1053 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_none; fc 1131 drivers/net/ethernet/intel/igb/e1000_mac.c if (hw->fc.requested_mode == e1000_fc_full) { fc 1132 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_full; fc 1135 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1150 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_tx_pause; fc 1164 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_rx_pause; fc 1170 drivers/net/ethernet/intel/igb/e1000_mac.c hw->fc.current_mode = e1000_fc_none; fc 1015 drivers/net/ethernet/intel/igb/e1000_phy.c switch (hw->fc.current_mode) { fc 1338 drivers/net/ethernet/intel/igb/e1000_phy.c hw->fc.current_mode = e1000_fc_none; fc 197 drivers/net/ethernet/intel/igb/igb_ethtool.c switch (hw->fc.requested_mode) { fc 325 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_default; fc 383 drivers/net/ethernet/intel/igb/igb_ethtool.c if (hw->fc.current_mode == e1000_fc_rx_pause) fc 385 drivers/net/ethernet/intel/igb/igb_ethtool.c else if (hw->fc.current_mode == e1000_fc_tx_pause) fc 387 drivers/net/ethernet/intel/igb/igb_ethtool.c else if (hw->fc.current_mode == e1000_fc_full) { fc 410 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_default; fc 419 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_full; fc 421 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_rx_pause; fc 423 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_tx_pause; fc 425 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.requested_mode = e1000_fc_none; fc 427 drivers/net/ethernet/intel/igb/igb_ethtool.c hw->fc.current_mode = hw->fc.requested_mode; fc 2265 drivers/net/ethernet/intel/igb/igb_main.c struct e1000_fc_info *fc = &hw->fc; fc 2345 drivers/net/ethernet/intel/igb/igb_main.c fc->high_water = hwm & 0xFFFFFFF0; /* 16-byte granularity */ fc 2346 drivers/net/ethernet/intel/igb/igb_main.c fc->low_water = fc->high_water - 16; fc 2347 drivers/net/ethernet/intel/igb/igb_main.c fc->pause_time = 0xFFFF; fc 2348 drivers/net/ethernet/intel/igb/igb_main.c fc->send_xon = 1; fc 2349 drivers/net/ethernet/intel/igb/igb_main.c fc->current_mode = fc->requested_mode; fc 3236 drivers/net/ethernet/intel/igb/igb_main.c hw->fc.requested_mode = e1000_fc_default; fc 3237 drivers/net/ethernet/intel/igb/igb_main.c hw->fc.current_mode = e1000_fc_default; fc 608 drivers/net/ethernet/intel/igc/igc_ethtool.c if (hw->fc.current_mode == igc_fc_rx_pause) { fc 610 drivers/net/ethernet/intel/igc/igc_ethtool.c } else if (hw->fc.current_mode == igc_fc_tx_pause) { fc 612 drivers/net/ethernet/intel/igc/igc_ethtool.c } else if (hw->fc.current_mode == igc_fc_full) { fc 631 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_default; fc 640 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_full; fc 642 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_rx_pause; fc 644 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_tx_pause; fc 646 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_none; fc 648 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.current_mode = hw->fc.requested_mode; fc 1687 drivers/net/ethernet/intel/igc/igc_ethtool.c switch (hw->fc.requested_mode) { fc 1794 drivers/net/ethernet/intel/igc/igc_ethtool.c hw->fc.requested_mode = igc_fc_default; fc 200 drivers/net/ethernet/intel/igc/igc_hw.h struct igc_fc_info fc; fc 92 drivers/net/ethernet/intel/igc/igc_mac.c if (hw->fc.current_mode & igc_fc_tx_pause) { fc 97 drivers/net/ethernet/intel/igc/igc_mac.c fcrtl = hw->fc.low_water; fc 98 drivers/net/ethernet/intel/igc/igc_mac.c if (hw->fc.send_xon) fc 101 drivers/net/ethernet/intel/igc/igc_mac.c fcrth = hw->fc.high_water; fc 132 drivers/net/ethernet/intel/igc/igc_mac.c if (hw->fc.requested_mode == igc_fc_default) fc 133 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.requested_mode = igc_fc_full; fc 139 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = hw->fc.requested_mode; fc 141 drivers/net/ethernet/intel/igc/igc_mac.c hw_dbg("After fix-ups FlowControl is now = %x\n", hw->fc.current_mode); fc 158 drivers/net/ethernet/intel/igc/igc_mac.c wr32(IGC_FCTTV, hw->fc.pause_time); fc 200 drivers/net/ethernet/intel/igc/igc_mac.c hw_dbg("hw->fc.current_mode = %u\n", hw->fc.current_mode); fc 202 drivers/net/ethernet/intel/igc/igc_mac.c switch (hw->fc.current_mode) { fc 559 drivers/net/ethernet/intel/igc/igc_mac.c if (hw->fc.requested_mode == igc_fc_full) { fc 560 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_full; fc 563 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_rx_pause; fc 579 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_tx_pause; fc 593 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_rx_pause; fc 616 drivers/net/ethernet/intel/igc/igc_mac.c else if ((hw->fc.requested_mode == igc_fc_none) || fc 617 drivers/net/ethernet/intel/igc/igc_mac.c (hw->fc.requested_mode == igc_fc_tx_pause) || fc 618 drivers/net/ethernet/intel/igc/igc_mac.c (hw->fc.strict_ieee)) { fc 619 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_none; fc 622 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_rx_pause; fc 637 drivers/net/ethernet/intel/igc/igc_mac.c hw->fc.current_mode = igc_fc_none; fc 83 drivers/net/ethernet/intel/igc/igc_main.c struct igc_fc_info *fc = &hw->fc; fc 99 drivers/net/ethernet/intel/igc/igc_main.c fc->high_water = hwm & 0xFFFFFFF0; /* 16-byte granularity */ fc 100 drivers/net/ethernet/intel/igc/igc_main.c fc->low_water = fc->high_water - 16; fc 101 drivers/net/ethernet/intel/igc/igc_main.c fc->pause_time = 0xFFFF; fc 102 drivers/net/ethernet/intel/igc/igc_main.c fc->send_xon = 1; fc 103 drivers/net/ethernet/intel/igc/igc_main.c fc->current_mode = fc->requested_mode; fc 4272 drivers/net/ethernet/intel/igc/igc_main.c hw->fc.requested_mode = igc_fc_default; fc 4273 drivers/net/ethernet/intel/igc/igc_main.c hw->fc.current_mode = igc_fc_default; fc 332 drivers/net/ethernet/intel/igc/igc_phy.c switch (hw->fc.current_mode) { fc 140 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c if (hw->fc.type == ixgb_fc_rx_pause) fc 142 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c else if (hw->fc.type == ixgb_fc_tx_pause) fc 144 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c else if (hw->fc.type == ixgb_fc_full) { fc 161 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c hw->fc.type = ixgb_fc_full; fc 163 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c hw->fc.type = ixgb_fc_rx_pause; fc 165 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c hw->fc.type = ixgb_fc_tx_pause; fc 167 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c hw->fc.type = ixgb_fc_none; fc 636 drivers/net/ethernet/intel/ixgb/ixgb_hw.c switch (hw->fc.type) { fc 652 drivers/net/ethernet/intel/ixgb/ixgb_hw.c pap_reg = hw->fc.pause_time; fc 659 drivers/net/ethernet/intel/ixgb/ixgb_hw.c pap_reg = hw->fc.pause_time; fc 680 drivers/net/ethernet/intel/ixgb/ixgb_hw.c if (!(hw->fc.type & ixgb_fc_tx_pause)) { fc 687 drivers/net/ethernet/intel/ixgb/ixgb_hw.c if (hw->fc.send_xon) { fc 689 drivers/net/ethernet/intel/ixgb/ixgb_hw.c (hw->fc.low_water | IXGB_FCRTL_XONE)); fc 691 drivers/net/ethernet/intel/ixgb/ixgb_hw.c IXGB_WRITE_REG(hw, FCRTL, hw->fc.low_water); fc 693 drivers/net/ethernet/intel/ixgb/ixgb_hw.c IXGB_WRITE_REG(hw, FCRTH, hw->fc.high_water); fc 641 drivers/net/ethernet/intel/ixgb/ixgb_hw.h struct ixgb_fc fc; /* Flow control parameters */ fc 578 drivers/net/ethernet/intel/ixgb/ixgb_main.c hw->fc.send_xon = 1; fc 1137 drivers/net/ethernet/intel/ixgb/ixgb_main.c (adapter->hw.fc.type == ixgb_fc_full) ? fc 1139 drivers/net/ethernet/intel/ixgb/ixgb_main.c (adapter->hw.fc.type == ixgb_fc_rx_pause) ? fc 1141 drivers/net/ethernet/intel/ixgb/ixgb_main.c (adapter->hw.fc.type == ixgb_fc_tx_pause) ? fc 318 drivers/net/ethernet/intel/ixgb/ixgb_param.c unsigned int fc = FlowControl[bd]; fc 319 drivers/net/ethernet/intel/ixgb/ixgb_param.c ixgb_validate_option(&fc, &opt); fc 320 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.type = fc; fc 322 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.type = opt.def; fc 336 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.high_water = RxFCHighThresh[bd]; fc 337 drivers/net/ethernet/intel/ixgb/ixgb_param.c ixgb_validate_option(&adapter->hw.fc.high_water, &opt); fc 339 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.high_water = opt.def; fc 341 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) fc 355 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.low_water = RxFCLowThresh[bd]; fc 356 drivers/net/ethernet/intel/ixgb/ixgb_param.c ixgb_validate_option(&adapter->hw.fc.low_water, &opt); fc 358 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.low_water = opt.def; fc 360 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) fc 376 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.pause_time = pause_time; fc 378 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.pause_time = opt.def; fc 380 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (!(adapter->hw.fc.type & ixgb_fc_tx_pause) ) fc 384 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (adapter->hw.fc.type & ixgb_fc_tx_pause) { fc 386 drivers/net/ethernet/intel/ixgb/ixgb_param.c if (adapter->hw.fc.high_water < (adapter->hw.fc.low_water + 8)) { fc 389 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.high_water = DEFAULT_FCRTH; fc 390 drivers/net/ethernet/intel/ixgb/ixgb_param.c adapter->hw.fc.low_water = DEFAULT_FCRTL; fc 285 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if (!hw->fc.pause_time) fc 290 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && fc 291 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c hw->fc.high_water[i]) { fc 292 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if (!hw->fc.low_water[i] || fc 293 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c hw->fc.low_water[i] >= hw->fc.high_water[i]) { fc 307 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c switch (hw->fc.requested_mode) { fc 309 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c hw->fc.requested_mode = ixgbe_fc_tx_pause; fc 312 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c hw->fc.requested_mode = ixgbe_fc_none; fc 340 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c switch (hw->fc.current_mode) { fc 382 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && fc 383 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c hw->fc.high_water[i]) { fc 384 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; fc 385 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c fcrth = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; fc 396 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c reg = hw->fc.pause_time * 0x00010001; fc 401 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); fc 125 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->fc.strict_ieee && hw->fc.requested_mode == ixgbe_fc_rx_pause) { fc 134 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->fc.requested_mode == ixgbe_fc_default) fc 135 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.requested_mode = ixgbe_fc_full; fc 172 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c switch (hw->fc.requested_mode) { fc 230 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->fc.strict_ieee) fc 2148 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (!hw->fc.pause_time) fc 2153 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && fc 2154 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.high_water[i]) { fc 2155 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (!hw->fc.low_water[i] || fc 2156 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.low_water[i] >= hw->fc.high_water[i]) { fc 2183 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c switch (hw->fc.current_mode) { fc 2225 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if ((hw->fc.current_mode & ixgbe_fc_tx_pause) && fc 2226 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.high_water[i]) { fc 2227 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; fc 2229 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c fcrth = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; fc 2246 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c reg = hw->fc.pause_time * 0x00010001; fc 2250 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); fc 2282 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->fc.requested_mode == ixgbe_fc_full) { fc 2283 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = ixgbe_fc_full; fc 2286 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = ixgbe_fc_rx_pause; fc 2291 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = ixgbe_fc_tx_pause; fc 2295 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = ixgbe_fc_rx_pause; fc 2298 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = ixgbe_fc_none; fc 2423 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (hw->fc.disable_fc_autoneg) fc 2454 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.fc_was_autonegged = true; fc 2456 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.fc_was_autonegged = false; fc 2457 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->fc.current_mode = hw->fc.requested_mode; fc 202 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; fc 203 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; fc 209 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c reg = hw->fc.pause_time * 0x00010001; fc 214 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); fc 235 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c reg = (hw->fc.high_water[i] << 10) | IXGBE_FCRTH_FCEN; fc 236 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c fcrtl = (hw->fc.low_water[i] << 10) | IXGBE_FCRTL_XONE; fc 258 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c reg = hw->fc.pause_time * 0x00010001; fc 263 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.c IXGBE_WRITE_REG(hw, IXGBE_FCRTV, hw->fc.pause_time / 2); fc 316 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c switch (hw->fc.requested_mode) { fc 447 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c !hw->fc.disable_fc_autoneg) fc 452 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (hw->fc.current_mode == ixgbe_fc_rx_pause) { fc 454 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c } else if (hw->fc.current_mode == ixgbe_fc_tx_pause) { fc 456 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c } else if (hw->fc.current_mode == ixgbe_fc_full) { fc 467 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c struct ixgbe_fc_info fc = hw->fc; fc 479 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c fc.disable_fc_autoneg = (pause->autoneg != AUTONEG_ENABLE); fc 482 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c fc.requested_mode = ixgbe_fc_full; fc 484 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c fc.requested_mode = ixgbe_fc_rx_pause; fc 486 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c fc.requested_mode = ixgbe_fc_tx_pause; fc 488 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c fc.requested_mode = ixgbe_fc_none; fc 491 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (memcmp(&fc, &hw->fc, sizeof(struct ixgbe_fc_info))) { fc 492 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c hw->fc = fc; fc 1189 drivers/net/ethernet/intel/ixgbe/ixgbe_lib.c adapter->hw.fc.requested_mode = adapter->last_lfc_mode; fc 933 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if ((hw->fc.current_mode != ixgbe_fc_full) && fc 934 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c (hw->fc.current_mode != ixgbe_fc_rx_pause)) fc 3696 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c !(adapter->hw.fc.current_mode & ixgbe_fc_tx_pause) && !pfc_en)) { fc 5209 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.high_water[i] = ixgbe_hpbthresh(adapter, i); fc 5210 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.low_water[i] = ixgbe_lpbthresh(adapter, i); fc 5213 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (hw->fc.low_water[i] > hw->fc.high_water[i]) fc 5214 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.low_water[i] = 0; fc 5218 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.high_water[i] = 0; fc 6393 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.requested_mode = ixgbe_fc_full; fc 6394 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.current_mode = ixgbe_fc_full; /* init for ethtool output */ fc 6396 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.pause_time = IXGBE_DEFAULT_FCPAUSE; fc 6397 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.send_xon = true; fc 6398 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c hw->fc.disable_fc_autoneg = ixgbe_device_supports_autoneg_fc(hw); fc 9135 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->last_lfc_mode = adapter->hw.fc.requested_mode; fc 9136 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->hw.fc.requested_mode = ixgbe_fc_none; fc 9142 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c adapter->hw.fc.requested_mode = adapter->last_lfc_mode; fc 3634 drivers/net/ethernet/intel/ixgbe/ixgbe_type.h struct ixgbe_fc_info fc; fc 569 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.strict_ieee && hw->fc.requested_mode == ixgbe_fc_rx_pause) { fc 574 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c switch (hw->fc.requested_mode) { fc 616 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.requested_mode == ixgbe_fc_default) fc 617 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.requested_mode = ixgbe_fc_full; fc 2108 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.disable_fc_autoneg) fc 2131 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.fc_was_autonegged = true; fc 2133 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.fc_was_autonegged = false; fc 2134 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.current_mode = hw->fc.requested_mode; fc 2858 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.strict_ieee && hw->fc.requested_mode == ixgbe_fc_rx_pause) { fc 2866 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.requested_mode == ixgbe_fc_default) fc 2867 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.requested_mode = ixgbe_fc_full; fc 2870 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c switch (hw->fc.requested_mode) { fc 2921 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.disable_fc_autoneg = true; fc 2924 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.disable_fc_autoneg = true; fc 2948 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.disable_fc_autoneg) { fc 2999 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.fc_was_autonegged = true; fc 3001 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.fc_was_autonegged = false; fc 3002 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.current_mode = hw->fc.requested_mode; fc 3012 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.fc_was_autonegged = false; fc 3013 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.current_mode = hw->fc.requested_mode; fc 3563 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.strict_ieee && hw->fc.requested_mode == ixgbe_fc_rx_pause) { fc 3568 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (hw->fc.requested_mode == ixgbe_fc_default) fc 3569 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c hw->fc.requested_mode = ixgbe_fc_full; fc 3593 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c switch (hw->fc.requested_mode) { fc 2194 drivers/net/ethernet/marvell/mv643xx_eth.c int fc; fc 2230 drivers/net/ethernet/marvell/mv643xx_eth.c fc = (port_status & FLOW_CONTROL_ENABLED) ? 1 : 0; fc 2233 drivers/net/ethernet/marvell/mv643xx_eth.c speed, duplex ? "full" : "half", fc ? "en" : "dis"); fc 73 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c static void mlx5_fc_pool_release_counter(struct mlx5_fc_pool *fc_pool, struct mlx5_fc *fc); fc 557 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c static int mlx5_fc_bulk_release_fc(struct mlx5_fc_bulk *bulk, struct mlx5_fc *fc) fc 559 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c int fc_index = fc->id - bulk->base_id; fc 631 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c struct mlx5_fc *fc; fc 637 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc = mlx5_fc_bulk_acquire_fc(bulk); fc 640 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c return fc; fc 647 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c struct mlx5_fc *fc; fc 651 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc = mlx5_fc_pool_acquire_from_list(&fc_pool->partially_used, fc 653 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c if (IS_ERR(fc)) fc 654 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc = mlx5_fc_pool_acquire_from_list(&fc_pool->unused, fc 657 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c if (IS_ERR(fc)) { fc 660 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc = ERR_CAST(new_bulk); fc 663 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c fc = mlx5_fc_bulk_acquire_fc(new_bulk); fc 671 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c return fc; fc 675 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c mlx5_fc_pool_release_counter(struct mlx5_fc_pool *fc_pool, struct mlx5_fc *fc) fc 678 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c struct mlx5_fc_bulk *bulk = fc->bulk; fc 683 drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c if (mlx5_fc_bulk_release_fc(bulk, fc)) { fc 332 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h u8 fc; fc 379 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c if (hw->mac.fc == PCH_GBE_FC_RX_PAUSE) { fc 381 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c } else if (hw->mac.fc == PCH_GBE_FC_TX_PAUSE) { fc 383 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c } else if (hw->mac.fc == PCH_GBE_FC_FULL) { fc 406 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c hw->mac.fc = PCH_GBE_FC_FULL; fc 408 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c hw->mac.fc = PCH_GBE_FC_RX_PAUSE; fc 410 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c hw->mac.fc = PCH_GBE_FC_TX_PAUSE; fc 412 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_ethtool.c hw->mac.fc = PCH_GBE_FC_NONE; fc 413 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev_dbg(adapter->netdev, "mac->fc = %u\n", mac->fc); fc 417 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c switch (mac->fc) { fc 506 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c hw->mac.fc = tmp; fc 1103 drivers/net/ethernet/sfc/falcon/falcon.c bool rx_fc = !!(efx->link_state.fc & EF4_FC_RX); fc 1104 drivers/net/ethernet/sfc/falcon/falcon.c bool tx_fc = !!(efx->link_state.fc & EF4_FC_TX); fc 1477 drivers/net/ethernet/sfc/falcon/falcon.c efx->link_state.fc = efx->wanted_fc; fc 539 drivers/net/ethernet/sfc/falcon/net_driver.h u8 fc; fc 547 drivers/net/ethernet/sfc/falcon/net_driver.h left->fc == right->fc && left->speed == right->speed; fc 392 drivers/net/ethernet/sfc/falcon/qt202x_phy.c efx->link_state.fc = efx->wanted_fc; fc 359 drivers/net/ethernet/sfc/falcon/tenxpress.c efx->link_state.fc = ef4_mdio_get_pause(efx); fc 497 drivers/net/ethernet/sfc/falcon/txc43128_phy.c efx->link_state.fc = efx->wanted_fc; fc 332 drivers/net/ethernet/sfc/mcdi_port.c link_state->fc = EFX_FC_AUTO | EFX_FC_TX | EFX_FC_RX; fc 335 drivers/net/ethernet/sfc/mcdi_port.c link_state->fc = EFX_FC_TX | EFX_FC_RX; fc 338 drivers/net/ethernet/sfc/mcdi_port.c link_state->fc = EFX_FC_RX; fc 344 drivers/net/ethernet/sfc/mcdi_port.c link_state->fc = 0; fc 610 drivers/net/ethernet/sfc/net_driver.h u8 fc; fc 618 drivers/net/ethernet/sfc/net_driver.h left->fc == right->fc && left->speed == right->speed; fc 667 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c unsigned int duplex, unsigned int fc, fc 674 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (fc == FLOW_AUTO) fc 681 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c if (fc == FLOW_AUTO) fc 228 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c unsigned int fc, unsigned int pause_time, fc 238 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (fc & FLOW_RX) { fc 242 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (fc & FLOW_TX) { fc 136 drivers/net/ethernet/stmicro/stmmac/dwmac100_core.c unsigned int fc, unsigned int pause_time, fc 476 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c unsigned int fc, unsigned int pause_time, fc 484 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (fc & FLOW_RX) { fc 490 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c if (fc & FLOW_TX) { fc 298 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c unsigned int fc, unsigned int pause_time, fc 304 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (fc & FLOW_RX) fc 306 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c if (fc & FLOW_TX) { fc 319 drivers/net/ethernet/stmicro/stmmac/hwif.h unsigned int fc, unsigned int pause_time, u32 tx_cnt); fc 598 drivers/net/fddi/defza.c const u32 rmc, const u8 fc) fc 651 drivers/net/fddi/defza.c switch (fc & FDDI_FC_K_FORMAT_MASK) { fc 653 drivers/net/fddi/defza.c if ((fc & FDDI_FC_K_CLASS_MASK) == FDDI_FC_K_CLASS_ASYNC) fc 683 drivers/net/fddi/defza.c u8 fc; fc 705 drivers/net/fddi/defza.c ((u8 *)&frame->hdr.fc - (u8 *)frame), fc 706 drivers/net/fddi/defza.c sizeof(frame->hdr.fc), fc 708 drivers/net/fddi/defza.c fc = frame->hdr.fc; fc 710 drivers/net/fddi/defza.c if (fza_rx_err(fp, rmc, fc)) fc 734 drivers/net/fddi/defza.c if ((fc & (FDDI_FC_K_CLASS_MASK | fc 1083 drivers/net/fddi/defza.c u8 fc; fc 1088 drivers/net/fddi/defza.c fc = skb->data[3]; fc 1092 drivers/net/fddi/defza.c if ((fc & FDDI_FC_K_CLASS_MASK) == FDDI_FC_K_CLASS_SYNC) fc 1094 drivers/net/fddi/defza.c switch (fc & FDDI_FC_K_FORMAT_MASK) { fc 1096 drivers/net/fddi/defza.c if ((fc & FDDI_FC_K_CONTROL_MASK) == 0) { fc 526 drivers/net/fddi/skfp/h/cmtdef.h void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc); fc 575 drivers/net/fddi/skfp/h/cmtdef.h void smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local); fc 127 drivers/net/fddi/skfp/hwmtm.c extern int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead, fc 149 drivers/net/fddi/skfp/hwmtm.c int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, int frame_len, fc 1052 drivers/net/fddi/skfp/hwmtm.c u_char fc ; /* Frame control */ fc 1283 drivers/net/fddi/skfp/hwmtm.c fc = *(char *)mb->sm_data = *data ; fc 1290 drivers/net/fddi/skfp/hwmtm.c switch(fc) { fc 1348 drivers/net/fddi/skfp/hwmtm.c if ((fc & 0xf0) == FC_MAC) fc 1378 drivers/net/fddi/skfp/hwmtm.c u_char fc ; fc 1383 drivers/net/fddi/skfp/hwmtm.c fc = *smc->os.hwm.r.mb_pos ; fc 1384 drivers/net/fddi/skfp/hwmtm.c (void)mac_drv_rx_init(smc,(int)mb->sm_len,(int)fc, fc 1546 drivers/net/fddi/skfp/hwmtm.c int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, int frame_len, fc 1549 drivers/net/fddi/skfp/hwmtm.c NDD_TRACE("THiB",fc,frag_count,frame_len) ; fc 1553 drivers/net/fddi/skfp/hwmtm.c DB_TX(3, "hwm_tx_init: fc = %x, len = %d", fc, frame_len); fc 1554 drivers/net/fddi/skfp/hwmtm.c if ((fc & ~(FC_SYNC_BIT|FC_LLC_PRIOR)) == FC_ASYNC_LLC) { fc 1558 drivers/net/fddi/skfp/hwmtm.c switch (fc) { fc 1802 drivers/net/fddi/skfp/hwmtm.c void smt_send_mbuf(struct s_smc *smc, SMbuf *mb, int fc) fc 1817 drivers/net/fddi/skfp/hwmtm.c NDD_TRACE("THSB",mb,fc,0) ; fc 1818 drivers/net/fddi/skfp/hwmtm.c DB_TX(4, "smt_send_mbuf: mb = 0x%p, fc = 0x%x", mb, fc); fc 1823 drivers/net/fddi/skfp/hwmtm.c *data = fc ; fc 1824 drivers/net/fddi/skfp/hwmtm.c if (fc == FC_SMT_LOC) fc 1849 drivers/net/fddi/skfp/hwmtm.c if (fc == FC_BEACON || fc == FC_SMT_LOC) { fc 1854 drivers/net/fddi/skfp/hwmtm.c if ((smc->os.hwm.pass_NSA &&(fc == FC_SMT_NSA)) || fc 1855 drivers/net/fddi/skfp/hwmtm.c (smc->os.hwm.pass_SMT &&(fc == FC_SMT_INFO))) fc 130 drivers/net/fddi/skfp/skfddi.c int mac_drv_rx_init(struct s_smc *smc, int len, int fc, char *look_ahead, fc 139 drivers/net/fddi/skfp/skfddi.c extern int hwm_tx_init(struct s_smc *smc, u_char fc, int frag_count, fc 1104 drivers/net/fddi/skfp/skfddi.c unsigned char fc; fc 1123 drivers/net/fddi/skfp/skfddi.c fc = skb->data[0]; fc 1124 drivers/net/fddi/skfp/skfddi.c queue = (fc & FC_SYNC_BIT) ? QUEUE_S : QUEUE_A0; fc 1128 drivers/net/fddi/skfp/skfddi.c if ((fc & ~(FC_SYNC_BIT | FC_LLC_PRIOR)) == FC_ASYNC_LLC) { fc 1131 drivers/net/fddi/skfp/skfddi.c fc &= ~FC_SYNC_BIT; // No bandwidth available. fc 1137 drivers/net/fddi/skfp/skfddi.c fc |= FC_SYNC_BIT; fc 1142 drivers/net/fddi/skfp/skfddi.c frame_status = hwm_tx_init(smc, fc, 1, skb->len, queue); fc 1889 drivers/net/fddi/skfp/skfddi.c int mac_drv_rx_init(struct s_smc *smc, int len, int fc, fc 62 drivers/net/fddi/skfp/smt.c static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason, fc 65 drivers/net/fddi/skfp/smt.c int fc, u_long tid, int type, int local); fc 66 drivers/net/fddi/skfp/smt.c static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc, fc 828 drivers/net/fddi/skfp/smt.c void smt_send_frame(struct s_smc *smc, SMbuf *mb, int fc, int local) fc 845 drivers/net/fddi/skfp/smt.c smt_send_mbuf(smc,mb,local ? FC_SMT_LOC : fc) ; fc 851 drivers/net/fddi/skfp/smt.c static void smt_send_rdf(struct s_smc *smc, SMbuf *rej, int fc, int reason, fc 909 drivers/net/fddi/skfp/smt.c rdf->refused.ref_fc = fc ; fc 929 drivers/net/fddi/skfp/smt.c int fc, u_long tid, int type, int local) fc 950 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,fc,local) ; fc 994 drivers/net/fddi/skfp/smt.c static void smt_send_ecf(struct s_smc *smc, struct fddi_addr *dest, int fc, fc 1013 drivers/net/fddi/skfp/smt.c smt_send_frame(smc,mb,fc,0) ; fc 1849 drivers/net/ieee802154/ca8210.c hdr.fc.type = 1; /* Data frame */ fc 1851 drivers/net/ieee802154/ca8210.c hdr.fc.security_enabled = 1; fc 1853 drivers/net/ieee802154/ca8210.c hdr.fc.security_enabled = 0; fc 1855 drivers/net/ieee802154/ca8210.c hdr.fc.intra_pan = 1; fc 1857 drivers/net/ieee802154/ca8210.c hdr.fc.intra_pan = 0; fc 1858 drivers/net/ieee802154/ca8210.c hdr.fc.dest_addr_mode = hdr.dest.mode; fc 1859 drivers/net/ieee802154/ca8210.c hdr.fc.source_addr_mode = hdr.source.mode; fc 1975 drivers/net/ieee802154/ca8210.c header.fc.ack_request, fc 543 drivers/net/ieee802154/mrf24j40.c __le16 fc = ieee802154_get_fc_from_skb(devrec->tx_skb); fc 547 drivers/net/ieee802154/mrf24j40.c if (ieee802154_is_secen(fc)) fc 550 drivers/net/ieee802154/mrf24j40.c if (ieee802154_is_ackreq(fc)) fc 1593 drivers/net/usb/lan78xx.c __ETHTOOL_DECLARE_LINK_MODE_MASK(fc) = { 0, }; fc 1601 drivers/net/usb/lan78xx.c mii_adv_to_linkmode_adv_t(fc, mii_adv); fc 1602 drivers/net/usb/lan78xx.c linkmode_or(ecmd.link_modes.advertising, fc, fc 2101 drivers/net/usb/lan78xx.c __ETHTOOL_DECLARE_LINK_MODE_MASK(fc) = { 0, }; fc 2170 drivers/net/usb/lan78xx.c mii_adv_to_linkmode_adv_t(fc, mii_adv); fc 2171 drivers/net/usb/lan78xx.c linkmode_or(phydev->advertising, fc, phydev->advertising); fc 3430 drivers/net/wireless/ath/ath10k/mac.c __le16 fc = hdr->frame_control; fc 3435 drivers/net/wireless/ath/ath10k/mac.c if (ieee80211_is_mgmt(fc)) fc 3455 drivers/net/wireless/ath/ath10k/mac.c (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)) && fc 3468 drivers/net/wireless/ath/ath10k/mac.c if (ieee80211_is_data_present(fc) && sta && sta->tdls) fc 2751 drivers/net/wireless/ath/ath10k/wmi-tlv.c u16 fc; fc 2758 drivers/net/wireless/ath/ath10k/wmi-tlv.c fc = le16_to_cpu(hdr->frame_control); fc 2768 drivers/net/wireless/ath/ath10k/wmi-tlv.c cmd->frame_control = __cpu_to_le32(fc); fc 1915 drivers/net/wireless/ath/ath10k/wmi.c u16 fc; fc 1918 drivers/net/wireless/ath/ath10k/wmi.c fc = le16_to_cpu(hdr->frame_control); fc 1957 drivers/net/wireless/ath/ath10k/wmi.c msdu, skb->len, fc & IEEE80211_FCTL_FTYPE, fc 1958 drivers/net/wireless/ath/ath10k/wmi.c fc & IEEE80211_FCTL_STYPE); fc 2455 drivers/net/wireless/ath/ath10k/wmi.c u16 fc; fc 2518 drivers/net/wireless/ath/ath10k/wmi.c fc = le16_to_cpu(hdr->frame_control); fc 2536 drivers/net/wireless/ath/ath10k/wmi.c hdr->frame_control = __cpu_to_le16(fc & fc 2547 drivers/net/wireless/ath/ath10k/wmi.c fc & IEEE80211_FCTL_FTYPE, fc & IEEE80211_FCTL_STYPE); fc 7718 drivers/net/wireless/ath/ath10k/wmi.c u16 fc; fc 7725 drivers/net/wireless/ath/ath10k/wmi.c fc = le16_to_cpu(hdr->frame_control); fc 7732 drivers/net/wireless/ath/ath10k/wmi.c cmd->frame_control = __cpu_to_le32(fc); fc 676 drivers/net/wireless/ath/ath5k/base.c __le16 fc; fc 679 drivers/net/wireless/ath/ath5k/base.c fc = hdr->frame_control; fc 681 drivers/net/wireless/ath/ath5k/base.c if (ieee80211_is_beacon(fc)) fc 683 drivers/net/wireless/ath/ath5k/base.c else if (ieee80211_is_probe_resp(fc)) fc 685 drivers/net/wireless/ath/ath5k/base.c else if (ieee80211_is_atim(fc)) fc 687 drivers/net/wireless/ath/ath5k/base.c else if (ieee80211_is_pspoll(fc)) fc 40 drivers/net/wireless/ath/ath9k/common.c __le16 fc; fc 42 drivers/net/wireless/ath/ath9k/common.c fc = hdr->frame_control; fc 47 drivers/net/wireless/ath/ath9k/common.c strip_mic = is_valid_tkip && ieee80211_is_data(fc) && fc 48 drivers/net/wireless/ath/ath9k/common.c ieee80211_has_protected(fc) && fc 62 drivers/net/wireless/ath/ath9k/common.c mic_error = is_valid_tkip && !ieee80211_is_ctl(fc) && fc 63 drivers/net/wireless/ath/ath9k/common.c !ieee80211_has_morefrags(fc) && fc 128 drivers/net/wireless/ath/ath9k/common.c __le16 fc; fc 133 drivers/net/wireless/ath/ath9k/common.c fc = hdr->frame_control; fc 134 drivers/net/wireless/ath/ath9k/common.c padpos = ieee80211_hdrlen(fc); fc 153 drivers/net/wireless/ath/ath9k/common.c ieee80211_has_protected(fc)) { fc 155 drivers/net/wireless/ath/ath9k/common.c } else if (ieee80211_has_protected(fc) fc 164 drivers/net/wireless/ath/ath9k/common.c ieee80211_is_mgmt(fc)) fc 406 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c __le16 fc; fc 409 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c fc = hdr->frame_control; fc 421 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c if (ieee80211_is_data_qos(fc)) { fc 1323 drivers/net/wireless/ath/ath9k/xmit.c __le16 fc; fc 1326 drivers/net/wireless/ath/ath9k/xmit.c fc = hdr->frame_control; fc 1328 drivers/net/wireless/ath/ath9k/xmit.c if (ieee80211_is_beacon(fc)) fc 1330 drivers/net/wireless/ath/ath9k/xmit.c else if (ieee80211_is_probe_resp(fc)) fc 1332 drivers/net/wireless/ath/ath9k/xmit.c else if (ieee80211_is_atim(fc)) fc 1334 drivers/net/wireless/ath/ath9k/xmit.c else if (ieee80211_is_pspoll(fc)) fc 305 drivers/net/wireless/ath/carl9170/debug.c int cnt = 0, fc; fc 337 drivers/net/wireless/ath/carl9170/debug.c fc = 0; fc 341 drivers/net/wireless/ath/carl9170/debug.c snprintf(prefix, sizeof(prefix), "\t\t%3d :", fc); fc 345 drivers/net/wireless/ath/carl9170/debug.c fc++; fc 361 drivers/net/wireless/ath/carl9170/debug.c int fc = 0; fc 365 drivers/net/wireless/ath/carl9170/debug.c snprintf(prefix, sizeof(prefix), "%3d :", fc); fc 368 drivers/net/wireless/ath/carl9170/debug.c fc++; fc 623 drivers/net/wireless/ath/carl9170/rx.c __le16 fc; fc 645 drivers/net/wireless/ath/carl9170/rx.c fc = ((struct ieee80211_hdr *)buf)->frame_control; fc 646 drivers/net/wireless/ath/carl9170/rx.c if (ieee80211_is_data_qos(fc) && ieee80211_is_data_present(fc)) fc 649 drivers/net/wireless/ath/carl9170/rx.c if (ieee80211_is_ack(fc) || ieee80211_is_back(fc) || fc 650 drivers/net/wireless/ath/carl9170/rx.c ieee80211_is_back_req(fc)) fc 653 drivers/net/wireless/ath/carl9170/rx.c if (ieee80211_is_action(fc)) fc 954 drivers/net/wireless/ath/wcn36xx/hal.h struct wcn36xx_hal_mac_frame_ctl fc; fc 31 drivers/net/wireless/ath/wcn36xx/txrx.c u16 fc, sn; fc 49 drivers/net/wireless/ath/wcn36xx/txrx.c fc = __le16_to_cpu(hdr->frame_control); fc 77 drivers/net/wireless/ath/wcn36xx/txrx.c skb, skb->len, fc, sn); fc 82 drivers/net/wireless/ath/wcn36xx/txrx.c skb, skb->len, fc, sn); fc 662 drivers/net/wireless/ath/wil6210/txrx.h static inline int wil_is_back_req(u8 fc) fc 664 drivers/net/wireless/ath/wil6210/txrx.h return (fc & (IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 837 drivers/net/wireless/ath/wil6210/wmi.c __le16 fc; fc 862 drivers/net/wireless/ath/wil6210/wmi.c fc = rx_mgmt_frame->frame_control; fc 868 drivers/net/wireless/ath/wil6210/wmi.c le16_to_cpu(fc)); fc 879 drivers/net/wireless/ath/wil6210/wmi.c if (ieee80211_is_beacon(fc) || ieee80211_is_probe_resp(fc)) { fc 1398 drivers/net/wireless/ath/wil6210/wmi.c __le16 fc; fc 1420 drivers/net/wireless/ath/wil6210/wmi.c fc = rx_mgmt_frame->frame_control; fc 1421 drivers/net/wireless/ath/wil6210/wmi.c if (!ieee80211_is_probe_resp(fc)) { fc 1423 drivers/net/wireless/ath/wil6210/wmi.c fc); fc 1338 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c u8 rx_seq, fc, tx_seq_max; fc 1425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c fc = swheader & SDPCM_FCMASK_MASK; fc 1426 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->flowcontrol != fc) { fc 1427 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (~bus->flowcontrol & fc) fc 1429 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c if (bus->flowcontrol & ~fc) fc 1432 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->flowcontrol = fc; fc 3161 drivers/net/wireless/cisco/airo.c u16 fc = le16_to_cpu(ctl); fc 3162 drivers/net/wireless/cisco/airo.c switch (fc & 0xc) { fc 3164 drivers/net/wireless/cisco/airo.c if ((fc & 0xe0) == 0xc0) fc 3168 drivers/net/wireless/cisco/airo.c if ((fc & 0x300) == 0x300) fc 3291 drivers/net/wireless/cisco/airo.c __le16 fc, v, *buffer, tmpbuf[4]; fc 3330 drivers/net/wireless/cisco/airo.c bap_read(ai, &fc, sizeof (fc), BAP0); fc 3331 drivers/net/wireless/cisco/airo.c hdrlen = header_len(fc); fc 3344 drivers/net/wireless/cisco/airo.c buffer[0] = fc; fc 3714 drivers/net/wireless/cisco/airo.c __le16 fc; fc 3736 drivers/net/wireless/cisco/airo.c fc = get_unaligned((__le16 *)ptr); fc 3737 drivers/net/wireless/cisco/airo.c hdrlen = header_len(fc); fc 4372 drivers/net/wireless/cisco/airo.c __le16 fc, payloadLen; fc 4381 drivers/net/wireless/cisco/airo.c fc = *(__le16*)pPacket; fc 4382 drivers/net/wireless/cisco/airo.c hdrlen = header_len(fc); fc 7641 drivers/net/wireless/intel/ipw2x00/ipw2200.c u16 fc; fc 7644 drivers/net/wireless/intel/ipw2x00/ipw2200.c fc = le16_to_cpu(hdr->frame_control); fc 7645 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (!(fc & IEEE80211_FCTL_PROTECTED)) fc 7648 drivers/net/wireless/intel/ipw2x00/ipw2200.c fc &= ~IEEE80211_FCTL_PROTECTED; fc 7649 drivers/net/wireless/intel/ipw2x00/ipw2200.c hdr->frame_control = cpu_to_le16(fc); fc 7884 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_probe_response(fc) \ fc 7885 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT && \ fc 7886 drivers/net/wireless/intel/ipw2x00/ipw2200.c (fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_PROBE_RESP ) fc 7888 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_management(fc) \ fc 7889 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) fc 7891 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_control(fc) \ fc 7892 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_CTL) fc 7894 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_data(fc) \ fc 7895 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_DATA) fc 7897 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_assoc_request(fc) \ fc 7898 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_ASSOC_REQ) fc 7900 drivers/net/wireless/intel/ipw2x00/ipw2200.c #define libipw_is_reassoc_request(fc) \ fc 7901 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_REASSOC_REQ) fc 10107 drivers/net/wireless/intel/ipw2x00/ipw2200.c int fc; fc 10154 drivers/net/wireless/intel/ipw2x00/ipw2200.c fc = le16_to_cpu(hdr->frame_ctl); fc 10155 drivers/net/wireless/intel/ipw2x00/ipw2200.c hdr->frame_ctl = cpu_to_le16(fc & ~IEEE80211_FCTL_MOREFRAGS); fc 10208 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (fc & IEEE80211_STYPE_QOS_DATA) fc 149 drivers/net/wireless/intel/ipw2x00/libipw.h #define WLAN_FC_GET_VERS(fc) ((fc) & IEEE80211_FCTL_VERS) fc 150 drivers/net/wireless/intel/ipw2x00/libipw.h #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) fc 151 drivers/net/wireless/intel/ipw2x00/libipw.h #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) fc 873 drivers/net/wireless/intel/ipw2x00/libipw.h static inline int libipw_get_hdrlen(u16 fc) fc 876 drivers/net/wireless/intel/ipw2x00/libipw.h u16 stype = WLAN_FC_GET_STYPE(fc); fc 878 drivers/net/wireless/intel/ipw2x00/libipw.h switch (WLAN_FC_GET_TYPE(fc)) { fc 880 drivers/net/wireless/intel/ipw2x00/libipw.h if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) fc 886 drivers/net/wireless/intel/ipw2x00/libipw.h switch (WLAN_FC_GET_STYPE(fc)) { fc 40 drivers/net/wireless/intel/ipw2x00/libipw_rx.c u16 fc = le16_to_cpu(hdr->frame_control); fc 44 drivers/net/wireless/intel/ipw2x00/libipw_rx.c skb_pull(skb, libipw_get_hdrlen(fc)); fc 231 drivers/net/wireless/intel/ipw2x00/libipw_rx.c u16 fc, ethertype; fc 239 drivers/net/wireless/intel/ipw2x00/libipw_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 242 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 247 drivers/net/wireless/intel/ipw2x00/libipw_rx.c } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 334 drivers/net/wireless/intel/ipw2x00/libipw_rx.c u16 fc, type, stype, sc; fc 358 drivers/net/wireless/intel/ipw2x00/libipw_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 359 drivers/net/wireless/intel/ipw2x00/libipw_rx.c type = WLAN_FC_GET_TYPE(fc); fc 360 drivers/net/wireless/intel/ipw2x00/libipw_rx.c stype = WLAN_FC_GET_STYPE(fc); fc 363 drivers/net/wireless/intel/ipw2x00/libipw_rx.c hdrlen = libipw_get_hdrlen(fc); fc 452 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { fc 466 drivers/net/wireless/intel/ipw2x00/libipw_rx.c fc & IEEE80211_FCTL_PROTECTED && ieee->host_decrypt && fc 491 drivers/net/wireless/intel/ipw2x00/libipw_rx.c switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { fc 513 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) fc 521 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 569 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && fc 578 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((frag != 0) || (fc & IEEE80211_FCTL_MOREFRAGS)) { fc 587 drivers/net/wireless/intel/ipw2x00/libipw_rx.c (fc & IEEE80211_FCTL_MOREFRAGS) != 0, fc 617 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (fc & IEEE80211_FCTL_MOREFRAGS) { fc 633 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & IEEE80211_FCTL_PROTECTED) && can_be_decrypted && fc 638 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep) { fc 651 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !ieee->open_wep && fc 661 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (!can_be_decrypted && (fc & IEEE80211_FCTL_PROTECTED) && fc 755 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if (wds && ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 837 drivers/net/wireless/intel/ipw2x00/libipw_rx.c u16 fc; fc 849 drivers/net/wireless/intel/ipw2x00/libipw_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 851 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & IEEE80211_FCTL_VERS) != 0) fc 854 drivers/net/wireless/intel/ipw2x00/libipw_rx.c switch (fc & IEEE80211_FCTL_FTYPE) { fc 874 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == 0) { fc 889 drivers/net/wireless/intel/ipw2x00/libipw_rx.c if ((fc & (IEEE80211_FCTL_TODS+IEEE80211_FCTL_FROMDS)) == IEEE80211_FCTL_FROMDS) { fc 1521 drivers/net/wireless/intel/ipw2x00/libipw_rx.c static inline int is_beacon(__le16 fc) fc 1523 drivers/net/wireless/intel/ipw2x00/libipw_rx.c return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); fc 251 drivers/net/wireless/intel/ipw2x00/libipw_tx.c int bytes, fc, hdr_len; fc 302 drivers/net/wireless/intel/ipw2x00/libipw_tx.c fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA | fc 305 drivers/net/wireless/intel/ipw2x00/libipw_tx.c fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; fc 308 drivers/net/wireless/intel/ipw2x00/libipw_tx.c fc |= IEEE80211_FCTL_TODS; fc 322 drivers/net/wireless/intel/ipw2x00/libipw_tx.c fc |= IEEE80211_STYPE_QOS_DATA; fc 328 drivers/net/wireless/intel/ipw2x00/libipw_tx.c header.frame_ctl = cpu_to_le16(fc); fc 440 drivers/net/wireless/intel/ipw2x00/libipw_tx.c header.frame_ctl = cpu_to_le16(fc); fc 464 drivers/net/wireless/intel/ipw2x00/libipw_tx.c cpu_to_le16(fc | IEEE80211_FCTL_MOREFRAGS); fc 399 drivers/net/wireless/intel/iwlegacy/3945-mac.c __le16 fc = hdr->frame_control; fc 404 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_mgmt(fc)) fc 406 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_probe_resp(fc) && fc 415 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_has_morefrags(fc)) fc 418 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_data_qos(fc)) { fc 426 drivers/net/wireless/intel/iwlegacy/3945-mac.c il_tx_cmd_protection(il, info, fc, &tx_flags); fc 429 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_mgmt(fc)) { fc 430 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) fc 465 drivers/net/wireless/intel/iwlegacy/3945-mac.c __le16 fc; fc 481 drivers/net/wireless/intel/iwlegacy/3945-mac.c fc = hdr->frame_control; fc 484 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_auth(fc)) fc 486 drivers/net/wireless/intel/iwlegacy/3945-mac.c else if (ieee80211_is_assoc_req(fc)) fc 488 drivers/net/wireless/intel/iwlegacy/3945-mac.c else if (ieee80211_is_reassoc_req(fc)) fc 494 drivers/net/wireless/intel/iwlegacy/3945-mac.c hdr_len = ieee80211_hdrlen(fc); fc 505 drivers/net/wireless/intel/iwlegacy/3945-mac.c if (ieee80211_is_data_qos(fc)) { fc 609 drivers/net/wireless/intel/iwlegacy/3945-mac.c il_update_stats(il, true, fc, skb->len); fc 615 drivers/net/wireless/intel/iwlegacy/3945-mac.c ieee80211_hdrlen(fc)); fc 474 drivers/net/wireless/intel/iwlegacy/3945.c __le16 fc = hdr->frame_control; fc 516 drivers/net/wireless/intel/iwlegacy/3945.c il_update_stats(il, false, fc, len); fc 694 drivers/net/wireless/intel/iwlegacy/3945.c __le16 fc = hdr->frame_control; fc 705 drivers/net/wireless/intel/iwlegacy/3945.c if (ieee80211_is_probe_resp(fc)) fc 568 drivers/net/wireless/intel/iwlegacy/4965-mac.c __le16 fc = hdr->frame_control; fc 601 drivers/net/wireless/intel/iwlegacy/4965-mac.c il_update_stats(il, false, fc, len); fc 1487 drivers/net/wireless/intel/iwlegacy/4965-mac.c __le16 fc = hdr->frame_control; fc 1493 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_mgmt(fc)) fc 1495 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_probe_resp(fc) && fc 1503 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_back_req(fc)) fc 1507 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_has_morefrags(fc)) fc 1510 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_data_qos(fc)) { fc 1518 drivers/net/wireless/intel/iwlegacy/4965-mac.c il_tx_cmd_protection(il, info, fc, &tx_flags); fc 1521 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_mgmt(fc)) { fc 1522 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) fc 1540 drivers/net/wireless/intel/iwlegacy/4965-mac.c __le16 fc) fc 1549 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_probe_resp(fc)) fc 1559 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_data(fc)) { fc 1659 drivers/net/wireless/intel/iwlegacy/4965-mac.c __le16 fc; fc 1674 drivers/net/wireless/intel/iwlegacy/4965-mac.c fc = hdr->frame_control; fc 1677 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_auth(fc)) fc 1679 drivers/net/wireless/intel/iwlegacy/4965-mac.c else if (ieee80211_is_assoc_req(fc)) fc 1681 drivers/net/wireless/intel/iwlegacy/4965-mac.c else if (ieee80211_is_reassoc_req(fc)) fc 1685 drivers/net/wireless/intel/iwlegacy/4965-mac.c hdr_len = ieee80211_hdrlen(fc); fc 1688 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (!ieee80211_is_data(fc)) fc 1728 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_data_qos(fc)) { fc 1757 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (ieee80211_is_data_qos(fc)) { fc 1759 drivers/net/wireless/intel/iwlegacy/4965-mac.c if (!ieee80211_has_morefrags(fc)) fc 1797 drivers/net/wireless/intel/iwlegacy/4965-mac.c il4965_tx_cmd_build_rate(il, tx_cmd, info, sta, fc); fc 1860 drivers/net/wireless/intel/iwlegacy/4965-mac.c il_update_stats(il, true, fc, skb->len); fc 2660 drivers/net/wireless/intel/iwlegacy/common.c u16 fc = le16_to_cpu(hdr->frame_control); fc 2669 drivers/net/wireless/intel/iwlegacy/common.c if (!(fc & IEEE80211_FCTL_PROTECTED)) fc 5554 drivers/net/wireless/intel/iwlegacy/common.c __le16 fc, __le32 *tx_flags) fc 5561 drivers/net/wireless/intel/iwlegacy/common.c if (!ieee80211_is_mgmt(fc)) fc 5564 drivers/net/wireless/intel/iwlegacy/common.c switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { fc 1718 drivers/net/wireless/intel/iwlegacy/common.h void il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len); fc 1721 drivers/net/wireless/intel/iwlegacy/common.h il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) fc 1955 drivers/net/wireless/intel/iwlegacy/common.h __le16 fc, __le32 *tx_flags); fc 28 drivers/net/wireless/intel/iwlegacy/debug.c il_update_stats(struct il_priv *il, bool is_tx, __le16 fc, u16 len) fc 37 drivers/net/wireless/intel/iwlegacy/debug.c if (ieee80211_is_mgmt(fc)) { fc 38 drivers/net/wireless/intel/iwlegacy/debug.c switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { fc 76 drivers/net/wireless/intel/iwlegacy/debug.c } else if (ieee80211_is_ctl(fc)) { fc 77 drivers/net/wireless/intel/iwlegacy/debug.c switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { fc 564 drivers/net/wireless/intel/iwlwifi/dvm/rx.c u16 fc = le16_to_cpu(hdr->frame_control); fc 574 drivers/net/wireless/intel/iwlwifi/dvm/rx.c if (!(fc & IEEE80211_FCTL_PROTECTED)) fc 617 drivers/net/wireless/intel/iwlwifi/dvm/rx.c __le16 fc = hdr->frame_control; fc 665 drivers/net/wireless/intel/iwlwifi/dvm/rx.c if (unlikely(ieee80211_is_beacon(fc) && priv->passive_no_rx)) { fc 36 drivers/net/wireless/intel/iwlwifi/dvm/tx.c __le16 fc, __le32 *tx_flags) fc 53 drivers/net/wireless/intel/iwlwifi/dvm/tx.c __le16 fc = hdr->frame_control; fc 63 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_probe_resp(fc)) fc 65 drivers/net/wireless/intel/iwlwifi/dvm/tx.c else if (ieee80211_is_back_req(fc)) fc 70 drivers/net/wireless/intel/iwlwifi/dvm/tx.c (ieee80211_is_auth(fc) || ieee80211_is_assoc_req(fc) || fc 71 drivers/net/wireless/intel/iwlwifi/dvm/tx.c ieee80211_is_reassoc_req(fc) || fc 77 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_has_morefrags(fc)) fc 80 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_data_qos(fc)) { fc 92 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwlagn_tx_cmd_protection(priv, info, fc, &tx_flags); fc 95 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_mgmt(fc)) { fc 96 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) fc 113 drivers/net/wireless/intel/iwlwifi/dvm/tx.c __le16 fc) fc 129 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_probe_resp(fc)) { fc 133 drivers/net/wireless/intel/iwlwifi/dvm/tx.c } else if (ieee80211_is_back_req(fc)) fc 144 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_data(fc)) { fc 148 drivers/net/wireless/intel/iwlwifi/dvm/tx.c } else if (ieee80211_is_back_req(fc)) fc 272 drivers/net/wireless/intel/iwlwifi/dvm/tx.c __le16 fc; fc 287 drivers/net/wireless/intel/iwlwifi/dvm/tx.c fc = hdr->frame_control; fc 290 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_auth(fc)) fc 292 drivers/net/wireless/intel/iwlwifi/dvm/tx.c else if (ieee80211_is_assoc_req(fc)) fc 294 drivers/net/wireless/intel/iwlwifi/dvm/tx.c else if (ieee80211_is_reassoc_req(fc)) fc 298 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (unlikely(ieee80211_is_probe_resp(fc))) { fc 310 drivers/net/wireless/intel/iwlwifi/dvm/tx.c hdr_len = ieee80211_hdrlen(fc); fc 313 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (!ieee80211_is_data(fc)) fc 364 drivers/net/wireless/intel/iwlwifi/dvm/tx.c iwlagn_tx_cmd_build_rate(priv, tx_cmd, info, sta, fc); fc 375 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (ieee80211_is_data_qos(fc) && !ieee80211_is_qos_nullfunc(fc)) { fc 440 drivers/net/wireless/intel/iwlwifi/dvm/tx.c if (is_data_qos && !ieee80211_has_morefrags(fc)) fc 23 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h __le16 fc = hdr->frame_control; fc 26 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h if (!ieee80211_is_data(fc)) fc 35 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h if (ieee80211_has_a4(fc)) fc 37 drivers/net/wireless/intel/iwlwifi/iwl-devtrace.h if (ieee80211_is_data_qos(fc)) fc 703 drivers/net/wireless/intel/iwlwifi/mvm/coex.c __le16 fc = hdr->frame_control; fc 712 drivers/net/wireless/intel/iwlwifi/mvm/coex.c if (likely(ieee80211_is_data(fc))) { fc 713 drivers/net/wireless/intel/iwlwifi/mvm/coex.c if (likely(ieee80211_is_data_qos(fc))) { fc 728 drivers/net/wireless/intel/iwlwifi/mvm/coex.c } else if (ieee80211_is_mgmt(fc)) { fc 729 drivers/net/wireless/intel/iwlwifi/mvm/coex.c return ieee80211_is_disassoc(fc) ? 0 : 3; fc 730 drivers/net/wireless/intel/iwlwifi/mvm/coex.c } else if (ieee80211_is_ctl(fc)) { fc 1519 drivers/net/wireless/intel/iwlwifi/mvm/mvm.h struct ieee80211_sta *sta, __le16 fc); fc 206 drivers/net/wireless/intel/iwlwifi/mvm/tx.c __le16 fc = hdr->frame_control; fc 213 drivers/net/wireless/intel/iwlwifi/mvm/tx.c (ieee80211_is_probe_resp(fc) && fc 219 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_probe_resp(fc)) fc 222 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_has_morefrags(fc)) fc 225 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_data_qos(fc)) { fc 231 drivers/net/wireless/intel/iwlwifi/mvm/tx.c } else if (ieee80211_is_back_req(fc)) { fc 244 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_data(fc)) fc 264 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_mgmt(fc)) { fc 265 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_assoc_req(fc) || ieee80211_is_reassoc_req(fc)) fc 267 drivers/net/wireless/intel/iwlwifi/mvm/tx.c else if (ieee80211_is_action(fc)) fc 282 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_data(fc) && len > mvm->rts_threshold && fc 298 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_hdrlen(fc) % 4 && fc 309 drivers/net/wireless/intel/iwlwifi/mvm/tx.c struct ieee80211_sta *sta, __le16 fc) fc 315 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (sta && ieee80211_is_data(fc)) { fc 363 drivers/net/wireless/intel/iwlwifi/mvm/tx.c struct ieee80211_sta *sta, __le16 fc) fc 366 drivers/net/wireless/intel/iwlwifi/mvm/tx.c iwl_mvm_get_tx_ant(mvm, info, sta, fc); fc 374 drivers/net/wireless/intel/iwlwifi/mvm/tx.c struct ieee80211_sta *sta, __le16 fc) fc 380 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_probe_resp(fc)) { fc 384 drivers/net/wireless/intel/iwlwifi/mvm/tx.c } else if (ieee80211_is_back_req(fc)) { fc 395 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_data(fc) && sta) { fc 403 drivers/net/wireless/intel/iwlwifi/mvm/tx.c } else if (ieee80211_is_back_req(fc)) { fc 410 drivers/net/wireless/intel/iwlwifi/mvm/tx.c cpu_to_le32(iwl_mvm_get_tx_rate_n_flags(mvm, info, sta, fc)); fc 608 drivers/net/wireless/intel/iwlwifi/mvm/tx.c __le16 fc = hdr->frame_control; fc 623 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_mgmt(fc) && fc 624 drivers/net/wireless/intel/iwlwifi/mvm/tx.c (!ieee80211_is_bufferable_mmpdu(fc) || fc 625 drivers/net/wireless/intel/iwlwifi/mvm/tx.c ieee80211_is_deauth(fc) || ieee80211_is_disassoc(fc))) fc 628 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (!ieee80211_has_order(fc) && !ieee80211_is_probe_req(fc) && fc 633 drivers/net/wireless/intel/iwlwifi/mvm/tx.c "fc=0x%02x", le16_to_cpu(fc)); fc 636 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_mgmt(fc)) fc 714 drivers/net/wireless/intel/iwlwifi/mvm/tx.c __le16 fc = hdr->frame_control; fc 719 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (IWL_MVM_NON_TRANSMITTING_AP && ieee80211_is_probe_resp(fc)) fc 766 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (unlikely(ieee80211_is_probe_resp(fc))) fc 1074 drivers/net/wireless/intel/iwlwifi/mvm/tx.c __le16 fc; fc 1082 drivers/net/wireless/intel/iwlwifi/mvm/tx.c fc = hdr->frame_control; fc 1083 drivers/net/wireless/intel/iwlwifi/mvm/tx.c hdrlen = ieee80211_hdrlen(fc); fc 1085 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (IWL_MVM_NON_TRANSMITTING_AP && ieee80211_is_probe_resp(fc)) fc 1094 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (unlikely(ieee80211_is_probe_resp(fc))) fc 1115 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (ieee80211_is_data_qos(fc) && !ieee80211_is_qos_nullfunc(fc)) { fc 1138 drivers/net/wireless/intel/iwlwifi/mvm/tx.c } else if (ieee80211_is_data(fc) && !ieee80211_is_data_qos(fc)) { fc 1182 drivers/net/wireless/intel/iwlwifi/mvm/tx.c if (tid < IWL_MAX_TID_COUNT && !ieee80211_has_morefrags(fc)) fc 2308 drivers/net/wireless/intel/iwlwifi/pcie/tx.c __le16 fc; fc 2343 drivers/net/wireless/intel/iwlwifi/pcie/tx.c fc = hdr->frame_control; fc 2344 drivers/net/wireless/intel/iwlwifi/pcie/tx.c hdr_len = ieee80211_hdrlen(fc); fc 2405 drivers/net/wireless/intel/iwlwifi/pcie/tx.c amsdu = ieee80211_is_data_qos(fc) && fc 2474 drivers/net/wireless/intel/iwlwifi/pcie/tx.c wait_write_ptr = ieee80211_has_morefrags(fc); fc 35 drivers/net/wireless/intersil/hostap/hostap.h int hostap_80211_get_hdrlen(__le16 fc); fc 25 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c u16 fc; fc 37 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc = le16_to_cpu(hdr->frame_control); fc 39 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, fc 40 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (fc & IEEE80211_FCTL_STYPE) >> 4, fc 41 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", fc 42 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); fc 69 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c u16 fc; fc 93 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc = le16_to_cpu(fhdr->frame_control); fc 95 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (type == PRISM2_RX_MGMT && (fc & IEEE80211_FCTL_VERS)) { fc 97 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c "version %d\n", dev->name, fc & IEEE80211_FCTL_VERS); fc 553 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c hostap_rx_frame_wds(local_info_t *local, struct ieee80211_hdr *hdr, u16 fc, fc 558 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) != fc 560 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (local->iw_mode != IW_MODE_MASTER || !(fc & IEEE80211_FCTL_TODS))) fc 573 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc & IEEE80211_FCTL_FROMDS ? "RA" : "BSSID", fc 580 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (*wds == NULL && fc & IEEE80211_FCTL_FROMDS && fc 594 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (*wds && !(fc & IEEE80211_FCTL_FROMDS) && local->ap && fc 611 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c u16 fc, ethertype; fc 619 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc = le16_to_cpu(hdr->frame_control); fc 622 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 627 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 723 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c u16 fc, type, stype, sc; fc 752 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc = le16_to_cpu(hdr->frame_control); fc 753 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c type = fc & IEEE80211_FCTL_FTYPE; fc 754 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c stype = fc & IEEE80211_FCTL_STYPE; fc 804 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (!crypt && (fc & IEEE80211_FCTL_PROTECTED)) { fc 822 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c fc & IEEE80211_FCTL_PROTECTED && local->host_decrypt && fc 842 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { fc 863 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (hostap_rx_frame_wds(local, hdr, fc, &wds)) fc 869 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 911 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && fc 918 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && fc 919 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c (frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { fc 926 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c dev->name, (fc & IEEE80211_FCTL_MOREFRAGS) != 0, fc 958 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (fc & IEEE80211_FCTL_MOREFRAGS) { fc 975 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (local->host_decrypt && (fc & IEEE80211_FCTL_PROTECTED) && fc 980 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_PROTECTED) && !local->open_wep) { fc 995 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (local->drop_unencrypted && !(fc & IEEE80211_FCTL_PROTECTED) && fc 1054 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c if (wds && ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 24 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c u16 fc; fc 34 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc = le16_to_cpu(hdr->frame_control); fc 36 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, fc 37 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c (fc & IEEE80211_FCTL_STYPE) >> 4, fc 38 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", fc 39 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); fc 68 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c u16 fc, ethertype = 0; fc 140 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA; fc 153 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc |= IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS; fc 162 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc |= IEEE80211_FCTL_TODS; fc 188 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc |= IEEE80211_FCTL_FROMDS; fc 195 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc |= IEEE80211_FCTL_TODS; fc 210 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c hdr.frame_control = cpu_to_le16(fc); fc 276 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c u16 fc; fc 298 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc = le16_to_cpu(hdr->frame_control); fc 300 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c (fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_DATA) { fc 388 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c u16 fc; fc 437 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc = le16_to_cpu(hdr->frame_control); fc 472 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c if (((fc & IEEE80211_FCTL_VERS) == BIT(1)) && fc 477 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc &= ~IEEE80211_FCTL_VERS; fc 478 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c hdr->frame_control = cpu_to_le16(fc); fc 487 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c !(fc & IEEE80211_FCTL_PROTECTED)) { fc 501 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c fc |= IEEE80211_FCTL_PROTECTED; fc 502 drivers/net/wireless/intersil/hostap/hostap_80211_tx.c hdr->frame_control = cpu_to_le16(fc); fc 930 drivers/net/wireless/intersil/hostap/hostap_ap.c u16 fc; fc 953 drivers/net/wireless/intersil/hostap/hostap_ap.c fc = type_subtype; fc 965 drivers/net/wireless/intersil/hostap/hostap_ap.c fc |= IEEE80211_FCTL_FROMDS; fc 977 drivers/net/wireless/intersil/hostap/hostap_ap.c hdr->frame_control = cpu_to_le16(fc); fc 2143 drivers/net/wireless/intersil/hostap/hostap_ap.c u16 fc, type, stype; fc 2149 drivers/net/wireless/intersil/hostap/hostap_ap.c fc = le16_to_cpu(hdr->frame_control); fc 2150 drivers/net/wireless/intersil/hostap/hostap_ap.c type = fc & IEEE80211_FCTL_FTYPE; fc 2151 drivers/net/wireless/intersil/hostap/hostap_ap.c stype = fc & IEEE80211_FCTL_STYPE; fc 2157 drivers/net/wireless/intersil/hostap/hostap_ap.c if (!(fc & IEEE80211_FCTL_TODS) || fc 2158 drivers/net/wireless/intersil/hostap/hostap_ap.c (fc & IEEE80211_FCTL_FROMDS)) { fc 2167 drivers/net/wireless/intersil/hostap/hostap_ap.c fc); fc 2900 drivers/net/wireless/intersil/hostap/hostap_ap.c u16 fc; fc 2911 drivers/net/wireless/intersil/hostap/hostap_ap.c fc = le16_to_cpu(hdr->frame_control); fc 2912 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_update_sta_ps2(local, sta, fc & IEEE80211_FCTL_PM, fc 2913 drivers/net/wireless/intersil/hostap/hostap_ap.c fc & IEEE80211_FCTL_FTYPE, fc 2914 drivers/net/wireless/intersil/hostap/hostap_ap.c fc & IEEE80211_FCTL_STYPE); fc 2930 drivers/net/wireless/intersil/hostap/hostap_ap.c u16 fc, type, stype; fc 2938 drivers/net/wireless/intersil/hostap/hostap_ap.c fc = le16_to_cpu(hdr->frame_control); fc 2939 drivers/net/wireless/intersil/hostap/hostap_ap.c type = fc & IEEE80211_FCTL_FTYPE; fc 2940 drivers/net/wireless/intersil/hostap/hostap_ap.c stype = fc & IEEE80211_FCTL_STYPE; fc 2954 drivers/net/wireless/intersil/hostap/hostap_ap.c if (fc & IEEE80211_FCTL_TODS) { fc 2972 drivers/net/wireless/intersil/hostap/hostap_ap.c } else if (fc & IEEE80211_FCTL_FROMDS) { fc 3026 drivers/net/wireless/intersil/hostap/hostap_ap.c hostap_update_sta_ps2(local, sta, fc & IEEE80211_FCTL_PM, fc 3035 drivers/net/wireless/intersil/hostap/hostap_ap.c fc & IEEE80211_FCTL_TODS) { fc 1806 drivers/net/wireless/intersil/hostap/hostap_hw.c u16 tx_control, fc; fc 1829 drivers/net/wireless/intersil/hostap/hostap_hw.c fc = le16_to_cpu(txdesc.frame_control); fc 2318 drivers/net/wireless/intersil/hostap/hostap_hw.c u16 status, fc; fc 2376 drivers/net/wireless/intersil/hostap/hostap_hw.c fc = le16_to_cpu(txdesc.frame_control); fc 2379 drivers/net/wireless/intersil/hostap/hostap_hw.c txdesc.retry_count, txdesc.tx_rate, fc, fc 2383 drivers/net/wireless/intersil/hostap/hostap_hw.c (fc & IEEE80211_FCTL_STYPE) >> 4, fc 520 drivers/net/wireless/intersil/hostap/hostap_main.c u16 status, fc; fc 530 drivers/net/wireless/intersil/hostap/hostap_main.c fc = __le16_to_cpu(rx->frame_control); fc 533 drivers/net/wireless/intersil/hostap/hostap_main.c fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, fc 534 drivers/net/wireless/intersil/hostap/hostap_main.c (fc & IEEE80211_FCTL_STYPE) >> 4, fc 537 drivers/net/wireless/intersil/hostap/hostap_main.c fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", fc 538 drivers/net/wireless/intersil/hostap/hostap_main.c fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); fc 551 drivers/net/wireless/intersil/hostap/hostap_main.c u16 fc; fc 558 drivers/net/wireless/intersil/hostap/hostap_main.c fc = __le16_to_cpu(tx->frame_control); fc 561 drivers/net/wireless/intersil/hostap/hostap_main.c fc, (fc & IEEE80211_FCTL_FTYPE) >> 2, fc 562 drivers/net/wireless/intersil/hostap/hostap_main.c (fc & IEEE80211_FCTL_STYPE) >> 4, fc 565 drivers/net/wireless/intersil/hostap/hostap_main.c fc & IEEE80211_FCTL_TODS ? " [ToDS]" : "", fc 566 drivers/net/wireless/intersil/hostap/hostap_main.c fc & IEEE80211_FCTL_FROMDS ? " [FromDS]" : ""); fc 585 drivers/net/wireless/intersil/hostap/hostap_main.c int hostap_80211_get_hdrlen(__le16 fc) fc 587 drivers/net/wireless/intersil/hostap/hostap_main.c if (ieee80211_is_data(fc) && ieee80211_has_a4 (fc)) fc 589 drivers/net/wireless/intersil/hostap/hostap_main.c else if (ieee80211_is_cts(fc) || ieee80211_is_ack(fc)) fc 591 drivers/net/wireless/intersil/hostap/hostap_main.c else if (ieee80211_is_ctl(fc)) fc 735 drivers/net/wireless/intersil/orinoco/main.c u16 fc; fc 746 drivers/net/wireless/intersil/orinoco/main.c fc = le16_to_cpu(desc->frame_ctl); fc 747 drivers/net/wireless/intersil/orinoco/main.c switch (fc & IEEE80211_FCTL_FTYPE) { fc 749 drivers/net/wireless/intersil/orinoco/main.c if ((fc & IEEE80211_FCTL_TODS) fc 750 drivers/net/wireless/intersil/orinoco/main.c && (fc & IEEE80211_FCTL_FROMDS)) fc 761 drivers/net/wireless/intersil/orinoco/main.c switch (fc & IEEE80211_FCTL_STYPE) { fc 951 drivers/net/wireless/intersil/orinoco/main.c u16 status, fc; fc 957 drivers/net/wireless/intersil/orinoco/main.c fc = le16_to_cpu(desc->frame_ctl); fc 966 drivers/net/wireless/intersil/orinoco/main.c u8 *src = (fc & IEEE80211_FCTL_FROMDS) ? fc 1039 drivers/net/wireless/intersil/orinoco/main.c if (fc & IEEE80211_FCTL_FROMDS) fc 1046 drivers/net/wireless/intersil/orinoco/main.c if (fc & IEEE80211_FCTL_TODS) fc 334 drivers/net/wireless/intersil/p54/txrx.c __le16 fc; fc 384 drivers/net/wireless/intersil/p54/txrx.c fc = ((struct ieee80211_hdr *)skb->data)->frame_control; fc 385 drivers/net/wireless/intersil/p54/txrx.c if (ieee80211_is_probe_resp(fc) || ieee80211_is_beacon(fc)) fc 794 drivers/net/wireless/mediatek/mt76/mt7603/mac.c u16 fc = le16_to_cpu(hdr->frame_control); fc 818 drivers/net/wireless/mediatek/mt76/mt7603/mac.c frame_type = (fc & IEEE80211_FCTL_FTYPE) >> 2; fc 819 drivers/net/wireless/mediatek/mt76/mt7603/mac.c frame_subtype = (fc & IEEE80211_FCTL_STYPE) >> 4; fc 317 drivers/net/wireless/mediatek/mt76/mt7615/mac.c __le16 fc = hdr->frame_control; fc 334 drivers/net/wireless/mediatek/mt76/mt7615/mac.c fc_type = (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) >> 2; fc 335 drivers/net/wireless/mediatek/mt76/mt7615/mac.c fc_stype = (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) >> 4; fc 337 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (ieee80211_is_data(fc) || ieee80211_is_bufferable_mmpdu(fc)) { fc 341 drivers/net/wireless/mediatek/mt76/mt7615/mac.c } else if (ieee80211_is_beacon(fc)) { fc 413 drivers/net/wireless/mediatek/mt76/mt7615/mac.c if (!ieee80211_is_beacon(fc)) { fc 289 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c u16 fc = le16_to_cpu(tx_hdr->frame_control); fc 304 drivers/net/wireless/realtek/rtl818x/rtl8187/dev.c if ((fc & IEEE80211_FCTL_FTYPE) == IEEE80211_FTYPE_MGMT) fc 1241 drivers/net/wireless/realtek/rtlwifi/base.c __le16 fc = rtl_get_fc(skb); fc 1248 drivers/net/wireless/realtek/rtlwifi/base.c if (ieee80211_is_data(fc)) { fc 1260 drivers/net/wireless/realtek/rtlwifi/base.c ieee80211_is_nullfunc(fc)) { fc 1318 drivers/net/wireless/realtek/rtlwifi/base.c __le16 fc = rtl_get_fc(skb); fc 1322 drivers/net/wireless/realtek/rtlwifi/base.c (ieee80211_is_auth(fc) || ieee80211_is_probe_req(fc))) { fc 1326 drivers/net/wireless/realtek/rtlwifi/base.c if (ieee80211_is_auth(fc)) { fc 1372 drivers/net/wireless/realtek/rtlwifi/base.c __le16 fc = rtl_get_fc(skb); fc 1376 drivers/net/wireless/realtek/rtlwifi/base.c if (!ieee80211_is_action(fc)) fc 1498 drivers/net/wireless/realtek/rtlwifi/base.c __le16 fc = rtl_get_fc(skb); fc 1503 drivers/net/wireless/realtek/rtlwifi/base.c if (!ieee80211_is_data(fc)) fc 1601 drivers/net/wireless/realtek/rtlwifi/base.c __le16 fc = rtl_get_fc(skb); fc 1606 drivers/net/wireless/realtek/rtlwifi/base.c if (ether_type == ETH_P_PAE || ieee80211_is_nullfunc(fc)) fc 37 drivers/net/wireless/realtek/rtlwifi/pci.c __le16 fc = rtl_get_fc(skb); fc 41 drivers/net/wireless/realtek/rtlwifi/pci.c if (unlikely(ieee80211_is_beacon(fc))) fc 43 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 46 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_nullfunc(fc)) fc 536 drivers/net/wireless/realtek/rtlwifi/pci.c __le16 fc; fc 575 drivers/net/wireless/realtek/rtlwifi/pci.c fc = rtl_get_fc(skb); fc 576 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_nullfunc(fc)) { fc 577 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_has_pm(fc)) { fc 584 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_action(fc)) { fc 601 drivers/net/wireless/realtek/rtlwifi/pci.c if (likely(!ieee80211_is_nullfunc(fc))) { fc 740 drivers/net/wireless/realtek/rtlwifi/pci.c __le16 fc; fc 823 drivers/net/wireless/realtek/rtlwifi/pci.c fc = rtl_get_fc(skb); fc 839 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_data(fc)) { fc 855 drivers/net/wireless/realtek/rtlwifi/pci.c (ieee80211_is_beacon(fc) || fc 856 drivers/net/wireless/realtek/rtlwifi/pci.c ieee80211_is_probe_resp(fc))) { fc 1562 drivers/net/wireless/realtek/rtlwifi/pci.c __le16 fc = rtl_get_fc(skb); fc 1570 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_nullfunc(fc)) fc 1572 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_qos_nullfunc(fc)) fc 1574 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_pspoll(fc)) fc 1608 drivers/net/wireless/realtek/rtlwifi/pci.c __le16 fc = rtl_get_fc(skb); fc 1614 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_mgmt(fc)) fc 1618 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_data(fc) && !ieee80211_is_nullfunc(fc) && fc 1619 drivers/net/wireless/realtek/rtlwifi/pci.c !ieee80211_has_pm(fc)) fc 1671 drivers/net/wireless/realtek/rtlwifi/pci.c if (ieee80211_is_data(fc)) fc 172 drivers/net/wireless/realtek/rtlwifi/rc.c __le16 fc = rtl_get_fc(skb); fc 174 drivers/net/wireless/realtek/rtlwifi/rc.c bool not_data = !ieee80211_is_data(fc); fc 216 drivers/net/wireless/realtek/rtlwifi/rc.c __le16 fc = rtl_get_fc(skb); fc 219 drivers/net/wireless/realtek/rtlwifi/rc.c if (!priv_sta || !ieee80211_is_data(fc)) fc 234 drivers/net/wireless/realtek/rtlwifi/rc.c if (ieee80211_is_data_qos(fc)) { fc 17 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c __le16 fc = rtl_get_fc(skb); fc 19 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 21 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 283 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c __le16 fc; fc 289 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c fc = hdr->frame_control; fc 294 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c packet_matchbssid = ((!ieee80211_is_ctl(fc)) && fc 295 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c (ether_addr_equal(mac->bssid, ieee80211_has_tods(fc) ? fc 296 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c hdr->addr1 : ieee80211_has_fromds(fc) ? fc 489 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c __le16 fc = hdr->frame_control; fc 526 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 632 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (ieee80211_is_data_qos(fc)) { fc 653 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (ieee80211_is_data_qos(fc)) fc 656 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (!ieee80211_is_data_qos(fc)) fc 682 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c __le16 fc = hdr->frame_control; fc 723 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (!ieee80211_is_data_qos(fc)) fc 16 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c __le16 fc = rtl_get_fc(skb); fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 263 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c __le16 fc; fc 270 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c fc = hdr->frame_control; fc 271 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c c_fc = le16_to_cpu(fc); fc 272 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c type = WLAN_FC_GET_TYPE(fc); fc 286 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (ieee80211_is_beacon(fc)) fc 396 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c __le16 fc = hdr->frame_control; fc 432 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 518 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (ieee80211_is_data_qos(fc)) { fc 544 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { fc 576 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c __le16 fc = hdr->frame_control; fc 617 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/trx.c if (!ieee80211_is_data_qos(fc)) { fc 760 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c __le16 fc; fc 766 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c fc = hdr->frame_control; fc 767 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c cpu_fc = le16_to_cpu(fc); fc 768 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c type = WLAN_FC_GET_TYPE(fc); fc 780 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.c if (ieee80211_is_beacon(fc)) fc 119 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/mac.h enum rtl_desc_qsel rtl92c_map_hwqueue_to_fwqueue(u16 fc, fc 199 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c u16 rtl8192cu_mq_to_hwq(__le16 fc, u16 mac80211_queue_index) fc 203 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (unlikely(ieee80211_is_beacon(fc))) { fc 207 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_is_mgmt(fc)) { fc 235 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c __le16 fc, u16 mac80211_queue_index) fc 240 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (unlikely(ieee80211_is_beacon(fc))) { fc 244 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_is_mgmt(fc)) { fc 350 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c __le16 fc; fc 398 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c fc = hdr->frame_control; fc 399 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c bv = ieee80211_is_probe_resp(fc); fc 403 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_is_beacon(fc)) fc 405 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_is_data(fc)) fc 409 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c fc, fc 482 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c __le16 fc = hdr->frame_control; fc 485 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c enum rtl_desc_qsel fw_qsel = _rtl8192cu_mq_to_descq(hw, fc, fc 571 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_is_data_qos(fc)) { fc 586 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if ((!ieee80211_is_data_qos(fc)) && ppsc->leisure_ps && fc 593 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (ieee80211_has_morefrags(fc)) fc 636 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c __le16 fc = hdr->frame_control; fc 656 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.c if (!ieee80211_is_data_qos(fc)) { fc 379 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/trx.h u16 rtl8192cu_mq_to_hwq(__le16 fc, u16 mac80211_queue_index); fc 16 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c __le16 fc = rtl_get_fc(skb); fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (ieee80211_is_mgmt(fc)) fc 414 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c __le16 fc; fc 419 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c fc = hdr->frame_control; fc 420 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c cfc = le16_to_cpu(fc); fc 421 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c type = WLAN_FC_GET_TYPE(fc); fc 431 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (ieee80211_is_beacon(fc)) fc 519 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c __le16 fc = hdr->frame_control; fc 553 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 659 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (ieee80211_is_data_qos(fc)) { fc 680 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (ieee80211_is_data_qos(fc)) fc 683 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { fc 703 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c __le16 fc = hdr->frame_control; fc 737 drivers/net/wireless/realtek/rtlwifi/rtl8192de/trx.c if (!ieee80211_is_data_qos(fc) && ppsc->fwctrl_lps) { fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c __le16 fc = rtl_get_fc(skb); fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 22 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 226 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c __le16 fc; fc 233 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c fc = hdr->frame_control; fc 238 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c packet_matchbssid = (!ieee80211_is_ctl(fc) && fc 240 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c ieee80211_has_tods(fc) ? fc 242 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c ieee80211_has_fromds(fc) ? fc 250 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (ieee80211_is_beacon(fc)) fc 653 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c __le16 fc = hdr->frame_control; fc 693 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 716 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (ieee80211_is_mgmt(fc)) { fc 807 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c if (ieee80211_is_data_qos(fc)) { fc 17 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c __le16 fc = rtl_get_fc(skb); fc 19 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 21 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 23 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (ieee80211_is_nullfunc(fc)) fc 204 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c __le16 fc; fc 211 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c fc = hdr->frame_control; fc 212 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c cfc = le16_to_cpu(fc); fc 213 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c type = WLAN_FC_GET_TYPE(fc); fc 226 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (ieee80211_is_beacon(fc)) fc 325 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c __le16 fc = hdr->frame_control; fc 354 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 473 drivers/net/wireless/realtek/rtlwifi/rtl8192se/trx.c if (!ieee80211_is_data_qos(fc)) fc 16 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c __le16 fc = rtl_get_fc(skb); fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 228 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c u16 fc, type; fc 234 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c fc = le16_to_cpu(hdr->frame_control); fc 239 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? fc 240 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ? fc 357 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c __le16 fc = hdr->frame_control; fc 390 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 478 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if (ieee80211_is_data_qos(fc)) { fc 503 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if ((!ieee80211_is_data_qos(fc)) && ppsc->fwctrl_lps) { fc 537 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c __le16 fc = hdr->frame_control; fc 578 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c if (!ieee80211_is_data_qos(fc)) { fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c __le16 fc = rtl_get_fc(skb); fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 22 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 202 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c u16 fc, type; fc 208 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c fc = le16_to_cpu(hdr->frame_control); fc 215 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c (ether_addr_equal(mac->bssid, (fc & IEEE80211_FCTL_TODS) ? fc 216 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ? fc 417 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c __le16 fc = hdr->frame_control; fc 452 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 552 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c if (ieee80211_is_data_qos(fc)) { fc 576 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c if (!ieee80211_is_data_qos(fc)) { fc 18 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c __le16 fc = rtl_get_fc(skb); fc 20 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (unlikely(ieee80211_is_beacon(fc))) fc 22 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc)) fc 286 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c __le16 fc; fc 292 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c fc = hdr->frame_control; fc 297 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c packet_matchbssid = (!ieee80211_is_ctl(fc) && fc 299 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ieee80211_has_tods(fc) ? fc 301 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ieee80211_has_fromds(fc) ? fc 672 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c __le16 fc = hdr->frame_control; fc 701 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (ieee80211_is_nullfunc(fc) || ieee80211_is_ctl(fc)) { fc 790 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (ieee80211_is_data_qos(fc)) { fc 814 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (!ieee80211_is_data_qos(fc)) { fc 427 drivers/net/wireless/realtek/rtlwifi/usb.c __le16 fc; fc 438 drivers/net/wireless/realtek/rtlwifi/usb.c fc = hdr->frame_control; fc 451 drivers/net/wireless/realtek/rtlwifi/usb.c if (ieee80211_is_data(fc)) { fc 469 drivers/net/wireless/realtek/rtlwifi/usb.c __le16 fc; fc 480 drivers/net/wireless/realtek/rtlwifi/usb.c fc = hdr->frame_control; fc 493 drivers/net/wireless/realtek/rtlwifi/usb.c if (ieee80211_is_data(fc)) { fc 930 drivers/net/wireless/realtek/rtlwifi/usb.c __le16 fc = hdr->frame_control; fc 934 drivers/net/wireless/realtek/rtlwifi/usb.c if (ieee80211_is_auth(fc)) { fc 939 drivers/net/wireless/realtek/rtlwifi/usb.c if (ieee80211_is_data(fc) && !ieee80211_is_nullfunc(fc) && fc 940 drivers/net/wireless/realtek/rtlwifi/usb.c !ieee80211_has_pm(fc)) fc 953 drivers/net/wireless/realtek/rtlwifi/usb.c if (ieee80211_is_data(fc)) fc 965 drivers/net/wireless/realtek/rtlwifi/usb.c __le16 fc = hdr->frame_control; fc 970 drivers/net/wireless/realtek/rtlwifi/usb.c hw_queue = rtlusb->usb_mq_to_hwq(fc, skb_get_queue_mapping(skb)); fc 93 drivers/net/wireless/realtek/rtlwifi/usb.h u16 (*usb_mq_to_hwq)(__le16 fc, u16 mac80211_queue_index); fc 2420 drivers/net/wireless/realtek/rtlwifi/wifi.h u16 (*usb_mq_to_hwq)(__le16 fc, u16 mac80211_queue_index); fc 3027 drivers/net/wireless/realtek/rtlwifi/wifi.h #define WLAN_FC_GET_VERS(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_VERS) fc 3028 drivers/net/wireless/realtek/rtlwifi/wifi.h #define WLAN_FC_GET_TYPE(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) fc 3029 drivers/net/wireless/realtek/rtlwifi/wifi.h #define WLAN_FC_GET_STYPE(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) fc 3030 drivers/net/wireless/realtek/rtlwifi/wifi.h #define WLAN_FC_MORE_DATA(fc) (le16_to_cpu(fc) & IEEE80211_FCTL_MOREDATA) fc 549 drivers/net/wireless/realtek/rtw88/pci.c __le16 fc = hdr->frame_control; fc 553 drivers/net/wireless/realtek/rtw88/pci.c if (unlikely(ieee80211_is_beacon(fc))) fc 555 drivers/net/wireless/realtek/rtw88/pci.c else if (unlikely(ieee80211_is_mgmt(fc) || ieee80211_is_ctl(fc))) fc 301 drivers/net/wireless/realtek/rtw88/tx.c __le16 fc = hdr->frame_control; fc 310 drivers/net/wireless/realtek/rtw88/tx.c if (ieee80211_is_mgmt(fc) || ieee80211_is_nullfunc(fc)) fc 312 drivers/net/wireless/realtek/rtw88/tx.c else if (ieee80211_is_data(fc)) fc 21 drivers/net/wireless/realtek/rtw88/util.h __le16 fc = hdr->frame_control; fc 24 drivers/net/wireless/realtek/rtw88/util.h if (ieee80211_has_tods(fc)) fc 26 drivers/net/wireless/realtek/rtw88/util.h else if (ieee80211_has_fromds(fc)) fc 139 drivers/net/wireless/ti/wl1251/rx.c u16 length, *fc; fc 171 drivers/net/wireless/ti/wl1251/rx.c fc = (u16 *)skb->data; fc 173 drivers/net/wireless/ti/wl1251/rx.c if ((*fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_BEACON) fc 70 drivers/net/wireless/ti/wl1251/tx.c struct ieee80211_tx_info *control, u16 fc) fc 88 drivers/net/wireless/ti/wl1251/tx.c if ((fc & IEEE80211_FTYPE_DATA) && fc 89 drivers/net/wireless/ti/wl1251/tx.c ((fc & IEEE80211_STYPE_QOS_DATA) || fc 90 drivers/net/wireless/ti/wl1251/tx.c (fc & IEEE80211_STYPE_QOS_NULLFUNC))) fc 140 drivers/net/wireless/ti/wl1251/tx.c u16 fc; fc 149 drivers/net/wireless/ti/wl1251/tx.c fc = *(u16 *)skb->data; fc 160 drivers/net/wireless/ti/wl1251/tx.c wl1251_tx_control(tx_hdr, control, fc); fc 182 drivers/net/wireless/ti/wl1251/tx.c __le16 fc; fc 186 drivers/net/wireless/ti/wl1251/tx.c fc = *(__le16 *)(skb->data + sizeof(*tx_hdr)); fc 190 drivers/net/wireless/ti/wl1251/tx.c hdrlen = ieee80211_hdrlen(fc); fc 125 drivers/net/wireless/ti/wl1251/wl12xx_80211.h __le16 fc; fc 1217 drivers/net/wireless/ti/wlcore/cmd.c u16 fc; fc 1284 drivers/net/wireless/ti/wlcore/cmd.c fc = IEEE80211_FTYPE_DATA | IEEE80211_FCTL_TODS; fc 1286 drivers/net/wireless/ti/wlcore/cmd.c fc |= IEEE80211_STYPE_QOS_DATA; fc 1288 drivers/net/wireless/ti/wlcore/cmd.c fc |= IEEE80211_STYPE_DATA; fc 1290 drivers/net/wireless/ti/wlcore/cmd.c fc |= IEEE80211_FCTL_PROTECTED; fc 1292 drivers/net/wireless/ti/wlcore/cmd.c hdr->frame_control = cpu_to_le16(fc); fc 114 drivers/net/wireless/ti/wlcore/wl12xx_80211.h __le16 fc; fc 311 drivers/net/wireless/zydas/zd1201.c unsigned short len, fc, seq; fc 316 drivers/net/wireless/zydas/zd1201.c fc = le16_to_cpu(*(__le16 *)&data[datalen-16]); fc 340 drivers/net/wireless/zydas/zd1201.c (fc & IEEE80211_FCTL_MOREFRAGS)) { fc 373 drivers/net/wireless/zydas/zd1201.c if (fc & IEEE80211_FCTL_MOREFRAGS) fc 1023 drivers/net/wireless/zydas/zd1211rw/zd_mac.c __le16 fc; fc 1080 drivers/net/wireless/zydas/zd1211rw/zd_mac.c fc = get_unaligned((__le16*)buffer); fc 1081 drivers/net/wireless/zydas/zd1211rw/zd_mac.c need_padding = ieee80211_is_data_qos(fc) ^ ieee80211_has_a4(fc); fc 122 drivers/nfc/fdp/fdp.c u32 fc = 13560; fc 126 drivers/nfc/fdp/fdp.c nd = (24 * fc) / clock_freq; fc 127 drivers/nfc/fdp/fdp.c delta = 24 * fc - nd * clock_freq; fc 242 drivers/oprofile/oprofilefs.c static int oprofilefs_fill_super(struct super_block *sb, struct fs_context *fc) fc 267 drivers/oprofile/oprofilefs.c static int oprofilefs_get_tree(struct fs_context *fc) fc 269 drivers/oprofile/oprofilefs.c return get_tree_single(fc, oprofilefs_fill_super); fc 276 drivers/oprofile/oprofilefs.c static int oprofilefs_init_fs_context(struct fs_context *fc) fc 278 drivers/oprofile/oprofilefs.c fc->ops = &oprofilefs_context_ops; fc 51 drivers/s390/cio/css.h __u8 fc; /* SPID function code */ fc 141 drivers/s390/cio/device_pgid.c pgid->inf.fc = fn; fc 35 drivers/s390/cio/qdio_main.c unsigned int fc) fc 37 drivers/s390/cio/qdio_main.c register unsigned long __fc asm ("0") = fc; fc 53 drivers/s390/cio/qdio_main.c unsigned int fc) fc 55 drivers/s390/cio/qdio_main.c register unsigned long __fc asm ("0") = fc; fc 81 drivers/s390/cio/qdio_main.c unsigned int *bb, unsigned int fc, fc 84 drivers/s390/cio/qdio_main.c register unsigned long __fc asm("0") = fc; fc 288 drivers/s390/cio/qdio_main.c unsigned int fc = QDIO_SIGA_SYNC; fc 296 drivers/s390/cio/qdio_main.c fc |= QDIO_SIGA_QEBSM_FLAG; fc 299 drivers/s390/cio/qdio_main.c cc = do_siga_sync(schid, output, input, fc); fc 317 drivers/s390/cio/qdio_main.c unsigned int fc = QDIO_SIGA_WRITE; fc 323 drivers/s390/cio/qdio_main.c fc = QDIO_SIGA_WRITEQ; fc 329 drivers/s390/cio/qdio_main.c fc |= QDIO_SIGA_QEBSM_FLAG; fc 332 drivers/s390/cio/qdio_main.c cc = do_siga_output(schid, q->mask, busy_bit, fc, laob); fc 356 drivers/s390/cio/qdio_main.c unsigned int fc = QDIO_SIGA_READ; fc 364 drivers/s390/cio/qdio_main.c fc |= QDIO_SIGA_QEBSM_FLAG; fc 367 drivers/s390/cio/qdio_main.c cc = do_siga_input(schid, q->mask, fc); fc 81 drivers/s390/crypto/pkey_api.c long fc; fc 88 drivers/s390/crypto/pkey_api.c fc = CPACF_PCKMO_ENC_AES_128_KEY; fc 92 drivers/s390/crypto/pkey_api.c fc = CPACF_PCKMO_ENC_AES_192_KEY; fc 96 drivers/s390/crypto/pkey_api.c fc = CPACF_PCKMO_ENC_AES_256_KEY; fc 109 drivers/s390/crypto/pkey_api.c if (!cpacf_test_func(&pckmo_functions, fc)) { fc 119 drivers/s390/crypto/pkey_api.c cpacf_pckmo(fc, paramblock); fc 262 drivers/s390/crypto/pkey_api.c unsigned long fc; fc 273 drivers/s390/crypto/pkey_api.c fc = CPACF_KMC_PAES_128; fc 276 drivers/s390/crypto/pkey_api.c fc = CPACF_KMC_PAES_192; fc 279 drivers/s390/crypto/pkey_api.c fc = CPACF_KMC_PAES_256; fc 292 drivers/s390/crypto/pkey_api.c k = cpacf_kmc(fc | CPACF_ENCRYPT, ¶m, null_msg, dest_buf, fc 1324 drivers/scsi/bfa/bfa_defs_svc.h struct bfa_port_fc_stats_s fc; fc 95 drivers/scsi/bfa/bfa_port.c port->stats->fc.secs_reset = ktime_get_seconds() - port->stats_reset_time; fc 286 drivers/scsi/bfa/bfad_attr.c hstats->seconds_since_last_reset = fcstats->fc.secs_reset; fc 287 drivers/scsi/bfa/bfad_attr.c hstats->tx_frames = fcstats->fc.tx_frames; fc 288 drivers/scsi/bfa/bfad_attr.c hstats->tx_words = fcstats->fc.tx_words; fc 289 drivers/scsi/bfa/bfad_attr.c hstats->rx_frames = fcstats->fc.rx_frames; fc 290 drivers/scsi/bfa/bfad_attr.c hstats->rx_words = fcstats->fc.rx_words; fc 291 drivers/scsi/bfa/bfad_attr.c hstats->lip_count = fcstats->fc.lip_count; fc 292 drivers/scsi/bfa/bfad_attr.c hstats->nos_count = fcstats->fc.nos_count; fc 293 drivers/scsi/bfa/bfad_attr.c hstats->error_frames = fcstats->fc.error_frames; fc 294 drivers/scsi/bfa/bfad_attr.c hstats->dumped_frames = fcstats->fc.dropped_frames; fc 295 drivers/scsi/bfa/bfad_attr.c hstats->link_failure_count = fcstats->fc.link_failures; fc 296 drivers/scsi/bfa/bfad_attr.c hstats->loss_of_sync_count = fcstats->fc.loss_of_syncs; fc 297 drivers/scsi/bfa/bfad_attr.c hstats->loss_of_signal_count = fcstats->fc.loss_of_signals; fc 298 drivers/scsi/bfa/bfad_attr.c hstats->prim_seq_protocol_err_count = fcstats->fc.primseq_errs; fc 299 drivers/scsi/bfa/bfad_attr.c hstats->invalid_crc_count = fcstats->fc.invalid_crcs; fc 1697 drivers/scsi/csiostor/csio_hw.c lc->fc = lc->requested_fc; fc 1757 drivers/scsi/csiostor/csio_hw.c lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; fc 1761 drivers/scsi/csiostor/csio_hw.c lc->fc = lc->requested_fc & ~PAUSE_AUTONEG; fc 304 drivers/scsi/csiostor/csio_hw.h enum cc_pause fc; /* actual link flow control */ fc 343 drivers/scsi/csiostor/csio_mb.c u8 portid, bool wr, uint32_t fc, uint16_t fw_caps, fc 371 drivers/scsi/csiostor/csio_mb.c cmdp->u.l1cfg.rcap = cpu_to_be32(fwcaps32_to_caps16(fc)); fc 373 drivers/scsi/csiostor/csio_mb.c cmdp->u.l1cfg32.rcap32 = cpu_to_be32(fc); fc 35 drivers/scsi/cxlflash/ocxl_hw.c static int ocxlflash_fs_init_fs_context(struct fs_context *fc) fc 37 drivers/scsi/cxlflash/ocxl_hw.c return init_pseudo(fc, OCXLFLASH_FS_MAGIC) ? 0 : -ENOMEM; fc 2101 drivers/scsi/dc395x.c unsigned int sc, fc; fc 2140 drivers/scsi/dc395x.c fc = DC395x_read8(acb, TRM_S1040_SCSI_FIFOCNT); fc 2141 drivers/scsi/dc395x.c d_left_counter = sc + ((fc & 0x1f) fc 2148 drivers/scsi/dc395x.c fc, fc 2151 drivers/scsi/dc395x.c fc, fc 2165 drivers/scsi/dc395x.c fc & 0x1f, fc 2200 drivers/scsi/dc395x.c fc = DC395x_read8(acb, TRM_S1040_SCSI_FIFOCNT); fc 2202 drivers/scsi/dc395x.c if (fc == 0x40) { fc 2208 drivers/scsi/dc395x.c WARN_ON((fc != 0x40) == !d_left_counter); fc 2210 drivers/scsi/dc395x.c if (fc == 0x40 && (srb->dcb->sync_period & WIDE_SYNC)) { fc 137 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc = fc 144 drivers/scsi/esas2r/esas2r_flash.c if (fc->sgc.cur_offset == NULL) fc 155 drivers/scsi/esas2r/esas2r_flash.c rq->interrupt_cb = fc->interrupt_cb; fc 169 drivers/scsi/esas2r/esas2r_flash.c (*fc->interrupt_cb)(a, rq); fc 179 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc = fc 181 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_sg_context *sgc = &fc->sgc; fc 185 drivers/scsi/esas2r/esas2r_flash.c if (fc->func == VDA_FLASH_BEGINW) { fc 192 drivers/scsi/esas2r/esas2r_flash.c rq->interrupt_cb = fc->interrupt_cb; fc 196 drivers/scsi/esas2r/esas2r_flash.c fc->func, fc 198 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr, fc 208 drivers/scsi/esas2r/esas2r_flash.c fc->curr_len = fc->sgc.length; fc 219 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = 0; fc 223 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr += fc->curr_len; fc 305 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc = fc 307 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_img *fi = fc->fi; fc 315 drivers/scsi/esas2r/esas2r_flash.c memset(fc->scratch, 0, FM_BUF_SZ); fc 326 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc = fc 328 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_img *fi = fc->fi; fc 342 drivers/scsi/esas2r/esas2r_flash.c if (fc->func == VDA_FLASH_READ fc 343 drivers/scsi/esas2r/esas2r_flash.c && fc->cmp_len) { fc 344 drivers/scsi/esas2r/esas2r_flash.c ch = &fi->cmp_hdr[fc->comp_typ]; fc 346 drivers/scsi/esas2r/esas2r_flash.c p = fc->scratch; fc 350 drivers/scsi/esas2r/esas2r_flash.c - fc->cmp_len; /* where we are now */ fc 356 drivers/scsi/esas2r/esas2r_flash.c for (len = fc->curr_len; len; len--) fc 360 drivers/scsi/esas2r/esas2r_flash.c fc->cmp_len -= fc->curr_len; /* # left to compare */ fc 363 drivers/scsi/esas2r/esas2r_flash.c if (fc->cmp_len > FM_BUF_SZ) fc 364 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FM_BUF_SZ; fc 366 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = fc->cmp_len; fc 368 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset + fc 369 drivers/scsi/esas2r/esas2r_flash.c ((u8 *)fc->scratch - (u8 *)fi); fc 378 drivers/scsi/esas2r/esas2r_flash.c while (fc->sgc.length == 0) { fc 379 drivers/scsi/esas2r/esas2r_flash.c ch = &fi->cmp_hdr[fc->comp_typ]; fc 381 drivers/scsi/esas2r/esas2r_flash.c switch (fc->task) { fc 388 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_WRTBIOS; fc 389 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_BEGINW; fc 390 drivers/scsi/esas2r/esas2r_flash.c fc->comp_typ = CH_IT_BIOS; fc 391 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_BOOT; fc 392 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = ch->length; fc 393 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset + fc 402 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_READBIOS; fc 403 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_READ; fc 404 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_BOOT; fc 405 drivers/scsi/esas2r/esas2r_flash.c fc->cmp_len = ch->length; fc 406 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FM_BUF_SZ; fc 407 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset fc 408 drivers/scsi/esas2r/esas2r_flash.c + ((u8 *)fc->scratch - fc 425 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_WRTMAC; fc 426 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_BEGINW; fc 427 drivers/scsi/esas2r/esas2r_flash.c fc->comp_typ = CH_IT_MAC; fc 428 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_BOOT fc 430 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = ch->length; fc 431 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset + fc 437 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_READMAC; fc 438 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_READ; fc 439 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr -= ch->length; fc 440 drivers/scsi/esas2r/esas2r_flash.c fc->cmp_len = ch->length; fc 441 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FM_BUF_SZ; fc 442 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset fc 443 drivers/scsi/esas2r/esas2r_flash.c + ((u8 *)fc->scratch - fc 460 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_WRTEFI; fc 461 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_BEGINW; fc 462 drivers/scsi/esas2r/esas2r_flash.c fc->comp_typ = CH_IT_EFI; fc 463 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_BOOT fc 466 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = ch->length; fc 467 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset + fc 473 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_READEFI; fc 474 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_READ; fc 475 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr -= ch->length; fc 476 drivers/scsi/esas2r/esas2r_flash.c fc->cmp_len = ch->length; fc 477 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FM_BUF_SZ; fc 478 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset fc 479 drivers/scsi/esas2r/esas2r_flash.c + ((u8 *)fc->scratch - fc 496 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_WRTCFG; fc 497 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_BEGINW; fc 498 drivers/scsi/esas2r/esas2r_flash.c fc->comp_typ = CH_IT_CFG; fc 499 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_CPYR - ch->length; fc 500 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = ch->length; fc 501 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset + fc 507 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_READCFG; fc 508 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_READ; fc 509 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_CPYR - ch->length; fc 510 drivers/scsi/esas2r/esas2r_flash.c fc->cmp_len = ch->length; fc 511 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FM_BUF_SZ; fc 512 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = fc->sgc_offset fc 513 drivers/scsi/esas2r/esas2r_flash.c + ((u8 *)fc->scratch - fc 543 drivers/scsi/esas2r/esas2r_flash.c if (fc->func == VDA_FLASH_READ fc 544 drivers/scsi/esas2r/esas2r_flash.c && fc->sgc.length > fc->cmp_len) fc 545 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = fc->cmp_len; fc 551 drivers/scsi/esas2r/esas2r_flash.c if (fc->comp_typ < fi->num_comps) { fc 552 drivers/scsi/esas2r/esas2r_flash.c ch = &fi->cmp_hdr[fc->comp_typ]; fc 664 drivers/scsi/esas2r/esas2r_flash.c static u16 calc_fi_checksum(struct esas2r_flash_context *fc) fc 666 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_img *fi = fc->fi; fc 671 drivers/scsi/esas2r/esas2r_flash.c for (len = (fi->length - fc->fi_hdr_len) / 2, fc 672 drivers/scsi/esas2r/esas2r_flash.c pw = (u16 *)((u8 *)fi + fc->fi_hdr_len), fc 693 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc) fc 695 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_img *fi = fc->fi; fc 706 drivers/scsi/esas2r/esas2r_flash.c || len < fc->fi_hdr_len) { fc 812 drivers/scsi/esas2r/esas2r_flash.c if (len != fi->length - fc->fi_hdr_len) { fc 818 drivers/scsi/esas2r/esas2r_flash.c if (fi->checksum != calc_fi_checksum(fc)) { fc 1393 drivers/scsi/esas2r/esas2r_flash.c struct esas2r_flash_context *fc = &a->flash_context; fc 1403 drivers/scsi/esas2r/esas2r_flash.c memcpy(&fc->sgc, sgc, sizeof(struct esas2r_sg_context)); fc 1404 drivers/scsi/esas2r/esas2r_flash.c sgc = &fc->sgc; fc 1405 drivers/scsi/esas2r/esas2r_flash.c fc->fi = fi; fc 1406 drivers/scsi/esas2r/esas2r_flash.c fc->sgc_offset = sgc->cur_offset; fc 1408 drivers/scsi/esas2r/esas2r_flash.c rq->interrupt_cx = fc; fc 1412 drivers/scsi/esas2r/esas2r_flash.c fc->scratch = ((struct esas2r_flash_img *)fi)->scratch_buf; fc 1413 drivers/scsi/esas2r/esas2r_flash.c fc->num_comps = FI_NUM_COMPS_V1; fc 1414 drivers/scsi/esas2r/esas2r_flash.c fc->fi_hdr_len = sizeof(struct esas2r_flash_img); fc 1427 drivers/scsi/esas2r/esas2r_flash.c if (!verify_fi(a, fc)) fc 1447 drivers/scsi/esas2r/esas2r_flash.c fi->checksum = calc_fi_checksum(fc); fc 1453 drivers/scsi/esas2r/esas2r_flash.c fc->task = FMTSK_ERASE_BOOT; fc 1454 drivers/scsi/esas2r/esas2r_flash.c fc->func = VDA_FLASH_BEGINW; fc 1455 drivers/scsi/esas2r/esas2r_flash.c fc->comp_typ = CH_IT_CFG; fc 1456 drivers/scsi/esas2r/esas2r_flash.c fc->flsh_addr = FLS_OFFSET_BOOT; fc 1457 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.length = FLS_LENGTH_BOOT; fc 1458 drivers/scsi/esas2r/esas2r_flash.c fc->sgc.cur_offset = NULL; fc 1461 drivers/scsi/esas2r/esas2r_flash.c fc->interrupt_cb = fw_download_proc; fc 1467 drivers/scsi/esas2r/esas2r_flash.c fi->num_comps = fc->num_comps; fc 1468 drivers/scsi/esas2r/esas2r_flash.c fi->length = fc->fi_hdr_len; fc 1858 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c u16 fc, type; fc 1865 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c fc = le16_to_cpu(hdr->frame_ctl); fc 1866 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c type = WLAN_FC_GET_TYPE(fc); fc 1872 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c (fc & RTLLIB_FCTL_TODS) ? hdr->addr1 : fc 1873 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c (fc & RTLLIB_FCTL_FROMDS) ? hdr->addr2 : fc 1878 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c if (WLAN_FC_GET_FRAMETYPE(fc) == RTLLIB_STYPE_BEACON) fc 1721 drivers/staging/rtl8192e/rtl8192e/rtl_core.c u16 fc = 0, type = 0; fc 1737 drivers/staging/rtl8192e/rtl8192e/rtl_core.c fc = le16_to_cpu(header->frame_ctl); fc 1738 drivers/staging/rtl8192e/rtl8192e/rtl_core.c type = WLAN_FC_GET_TYPE(fc); fc 2006 drivers/staging/rtl8192e/rtl8192e/rtl_core.c u16 fc = 0, type = 0; fc 2053 drivers/staging/rtl8192e/rtl8192e/rtl_core.c fc = le16_to_cpu(rtllib_hdr->frame_ctl); fc 2054 drivers/staging/rtl8192e/rtl8192e/rtl_core.c type = WLAN_FC_GET_TYPE(fc); fc 497 drivers/staging/rtl8192e/rtllib.h #define WLAN_FC_GET_TYPE(fc) ((fc) & RTLLIB_FCTL_FTYPE) fc 498 drivers/staging/rtl8192e/rtllib.h #define WLAN_FC_GET_STYPE(fc) ((fc) & RTLLIB_FCTL_STYPE) fc 499 drivers/staging/rtl8192e/rtllib.h #define WLAN_FC_MORE_DATA(fc) ((fc) & RTLLIB_FCTL_MOREDATA) fc 501 drivers/staging/rtl8192e/rtllib.h #define WLAN_FC_GET_FRAMETYPE(fc) ((fc) & RTLLIB_FCTL_FRAMETYPE) fc 549 drivers/staging/rtl8192e/rtllib.h #define RTLLIB_QOS_HAS_SEQ(fc) \ fc 550 drivers/staging/rtl8192e/rtllib.h (((fc) & (RTLLIB_FC0_TYPE_MASK | RTLLIB_FC0_SUBTYPE_MASK)) == \ fc 995 drivers/staging/rtl8192e/rtllib.h u16 fc; fc 998 drivers/staging/rtl8192e/rtllib.h fc = le16_to_cpu(hdr->frame_ctl); fc 999 drivers/staging/rtl8192e/rtllib.h return (u8)((union frameqos *)(buf + (((fc & RTLLIB_FCTL_TODS) && fc 1000 drivers/staging/rtl8192e/rtllib.h (fc & RTLLIB_FCTL_FROMDS)) ? 30 : 24)))->field.tid; fc 1859 drivers/staging/rtl8192e/rtllib.h static inline int rtllib_get_hdrlen(u16 fc) fc 1863 drivers/staging/rtl8192e/rtllib.h switch (WLAN_FC_GET_TYPE(fc)) { fc 1865 drivers/staging/rtl8192e/rtllib.h if ((fc & RTLLIB_FCTL_FROMDS) && (fc & RTLLIB_FCTL_TODS)) fc 1867 drivers/staging/rtl8192e/rtllib.h if (RTLLIB_QOS_HAS_SEQ(fc)) fc 1871 drivers/staging/rtl8192e/rtllib.h switch (WLAN_FC_GET_STYPE(fc)) { fc 93 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c u16 fc; fc 96 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c fc = le16_to_cpu(hdr->frame_ctl); fc 97 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c a4_included = ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == fc 100 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c qc_included = ((WLAN_FC_GET_TYPE(fc) == RTLLIB_FTYPE_DATA) && fc 101 drivers/staging/rtl8192e/rtllib_crypt_ccmp.c (WLAN_FC_GET_STYPE(fc) & 0x80)); fc 91 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 100 drivers/staging/rtl8192e/rtllib_rx.c if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && fc 101 drivers/staging/rtl8192e/rtllib_rx.c RTLLIB_QOS_HAS_SEQ(fc)) { fc 106 drivers/staging/rtl8192e/rtllib_rx.c } else if (RTLLIB_QOS_HAS_SEQ(fc)) { fc 124 drivers/staging/rtl8192e/rtllib_rx.c (RTLLIB_QOS_HAS_SEQ(fc) ? 2 : 0)); fc 162 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 170 drivers/staging/rtl8192e/rtllib_rx.c if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && fc 171 drivers/staging/rtl8192e/rtllib_rx.c RTLLIB_QOS_HAS_SEQ(fc)) { fc 176 drivers/staging/rtl8192e/rtllib_rx.c } else if (RTLLIB_QOS_HAS_SEQ(fc)) { fc 246 drivers/staging/rtl8192e/rtllib_rx.c u16 fc, ethertype; fc 254 drivers/staging/rtl8192e/rtllib_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 257 drivers/staging/rtl8192e/rtllib_rx.c if ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == fc 262 drivers/staging/rtl8192e/rtllib_rx.c } else if ((fc & (RTLLIB_FCTL_TODS | RTLLIB_FCTL_FROMDS)) == fc 364 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(header->frame_ctl); fc 374 drivers/staging/rtl8192e/rtllib_rx.c if (((fc & RTLLIB_FCTL_DSTODS) == RTLLIB_FCTL_DSTODS) && fc 375 drivers/staging/rtl8192e/rtllib_rx.c RTLLIB_QOS_HAS_SEQ(fc)) { fc 380 drivers/staging/rtl8192e/rtllib_rx.c } else if (RTLLIB_QOS_HAS_SEQ(fc)) { fc 768 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 779 drivers/staging/rtl8192e/rtllib_rx.c if ((RTLLIB_QOS_HAS_SEQ(fc)) && fc 783 drivers/staging/rtl8192e/rtllib_rx.c if (RTLLIB_QOS_HAS_SEQ(fc)) fc 896 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 899 drivers/staging/rtl8192e/rtllib_rx.c hdrlen = rtllib_get_hdrlen(fc); fc 908 drivers/staging/rtl8192e/rtllib_rx.c if (RTLLIB_QOS_HAS_SEQ(fc)) fc 918 drivers/staging/rtl8192e/rtllib_rx.c u16 fc, sc; fc 921 drivers/staging/rtl8192e/rtllib_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 922 drivers/staging/rtl8192e/rtllib_rx.c type = WLAN_FC_GET_TYPE(fc); fc 923 drivers/staging/rtl8192e/rtllib_rx.c stype = WLAN_FC_GET_STYPE(fc); fc 941 drivers/staging/rtl8192e/rtllib_rx.c if ((fc & (1<<11)) && (frag == pRxTS->RxLastFragNum) && fc 960 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 962 drivers/staging/rtl8192e/rtllib_rx.c switch (fc & (RTLLIB_FCTL_FROMDS | RTLLIB_FCTL_TODS)) { fc 986 drivers/staging/rtl8192e/rtllib_rx.c static int rtllib_rx_data_filter(struct rtllib_device *ieee, u16 fc, fc 991 drivers/staging/rtl8192e/rtllib_rx.c type = WLAN_FC_GET_TYPE(fc); fc 992 drivers/staging/rtl8192e/rtllib_rx.c stype = WLAN_FC_GET_STYPE(fc); fc 995 drivers/staging/rtl8192e/rtllib_rx.c if (((fc & RTLLIB_FCTL_DSTODS) != RTLLIB_FCTL_DSTODS) && fc 1004 drivers/staging/rtl8192e/rtllib_rx.c if ((fc & RTLLIB_FCTL_TODS) && !(fc & RTLLIB_FCTL_FROMDS) && fc 1047 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 1062 drivers/staging/rtl8192e/rtllib_rx.c if (!*crypt && (fc & RTLLIB_FCTL_WEP)) { fc 1084 drivers/staging/rtl8192e/rtllib_rx.c u16 fc, sc; fc 1088 drivers/staging/rtl8192e/rtllib_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 1098 drivers/staging/rtl8192e/rtllib_rx.c if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) && (keyidx < 0)) { fc 1104 drivers/staging/rtl8192e/rtllib_rx.c if ((frag != 0 || (fc & RTLLIB_FCTL_MOREFRAGS))) { fc 1113 drivers/staging/rtl8192e/rtllib_rx.c (fc & RTLLIB_FCTL_MOREFRAGS) != 0, fc 1143 drivers/staging/rtl8192e/rtllib_rx.c if (fc & RTLLIB_FCTL_MOREFRAGS) { fc 1162 drivers/staging/rtl8192e/rtllib_rx.c if (ieee->host_decrypt && (fc & RTLLIB_FCTL_WEP) && fc 1169 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep) { fc 1189 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && fc 1197 drivers/staging/rtl8192e/rtllib_rx.c if (crypt && !(fc & RTLLIB_FCTL_WEP) && !ieee->open_wep && fc 1301 drivers/staging/rtl8192e/rtllib_rx.c u16 fc, sc, SeqNum = 0; fc 1311 drivers/staging/rtl8192e/rtllib_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 1312 drivers/staging/rtl8192e/rtllib_rx.c type = WLAN_FC_GET_TYPE(fc); fc 1313 drivers/staging/rtl8192e/rtllib_rx.c stype = WLAN_FC_GET_STYPE(fc); fc 1366 drivers/staging/rtl8192e/rtllib_rx.c ret = rtllib_rx_data_filter(ieee, fc, dst, src, bssid, hdr->addr2); fc 1377 drivers/staging/rtl8192e/rtllib_rx.c if (WLAN_FC_MORE_DATA(fc)) { fc 1476 drivers/staging/rtl8192e/rtllib_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 1477 drivers/staging/rtl8192e/rtllib_rx.c size_t hdrlen = rtllib_get_hdrlen(fc); fc 2530 drivers/staging/rtl8192e/rtllib_rx.c static inline int is_beacon(u16 fc) fc 2532 drivers/staging/rtl8192e/rtllib_rx.c return (WLAN_FC_GET_STYPE(fc) == RTLLIB_STYPE_BEACON); fc 283 drivers/staging/rtl8192e/rtllib_softmac.c u16 fc, type, stype; fc 286 drivers/staging/rtl8192e/rtllib_softmac.c fc = le16_to_cpu(header->frame_ctl); fc 287 drivers/staging/rtl8192e/rtllib_softmac.c type = WLAN_FC_GET_TYPE(fc); fc 288 drivers/staging/rtl8192e/rtllib_softmac.c stype = WLAN_FC_GET_STYPE(fc); fc 558 drivers/staging/rtl8192e/rtllib_tx.c int bytes, fc, qos_ctl = 0, hdr_len; fc 667 drivers/staging/rtl8192e/rtllib_tx.c fc = RTLLIB_FTYPE_DATA | RTLLIB_FCTL_WEP; fc 669 drivers/staging/rtl8192e/rtllib_tx.c fc = RTLLIB_FTYPE_DATA; fc 672 drivers/staging/rtl8192e/rtllib_tx.c fc |= RTLLIB_STYPE_QOS_DATA; fc 674 drivers/staging/rtl8192e/rtllib_tx.c fc |= RTLLIB_STYPE_DATA; fc 677 drivers/staging/rtl8192e/rtllib_tx.c fc |= RTLLIB_FCTL_TODS; fc 701 drivers/staging/rtl8192e/rtllib_tx.c header.frame_ctl = cpu_to_le16(fc); fc 811 drivers/staging/rtl8192e/rtllib_tx.c fc | RTLLIB_FCTL_MOREFRAGS); fc 571 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define WLAN_FC_GET_VERS(fc) ((fc) & IEEE80211_FCTL_VERS) fc 572 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) fc 573 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) fc 575 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define WLAN_FC_GET_FRAMETYPE(fc) ((fc) & IEEE80211_FCTL_FRAMETYPE) fc 669 drivers/staging/rtl8192u/ieee80211/ieee80211.h #define IEEE80211_QOS_HAS_SEQ(fc) \ fc 670 drivers/staging/rtl8192u/ieee80211/ieee80211.h (((fc) & (IEEE80211_FC0_TYPE_MASK | IEEE80211_FC0_SUBTYPE_MASK)) == \ fc 1192 drivers/staging/rtl8192u/ieee80211/ieee80211.h u16 fc; fc 1194 drivers/staging/rtl8192u/ieee80211/ieee80211.h fc = le16_to_cpu(hdr->frame_ctl); fc 1195 drivers/staging/rtl8192u/ieee80211/ieee80211.h return (u8)((frameqos *)(buf + (((fc & IEEE80211_FCTL_TODS) && (fc & IEEE80211_FCTL_FROMDS)) ? 30 : 24)))->field.tid; fc 2099 drivers/staging/rtl8192u/ieee80211/ieee80211.h static inline int ieee80211_get_hdrlen(u16 fc) fc 2103 drivers/staging/rtl8192u/ieee80211/ieee80211.h switch (WLAN_FC_GET_TYPE(fc)) { fc 2105 drivers/staging/rtl8192u/ieee80211/ieee80211.h if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) fc 2107 drivers/staging/rtl8192u/ieee80211/ieee80211.h if (IEEE80211_QOS_HAS_SEQ(fc)) fc 2111 drivers/staging/rtl8192u/ieee80211/ieee80211.h switch (WLAN_FC_GET_STYPE(fc)) { fc 97 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c u16 fc; fc 100 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c fc = le16_to_cpu(hdr->frame_ctl); fc 101 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c a4_included = ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 107 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c qc_included = (WLAN_FC_GET_TYPE(fc) == IEEE80211_FTYPE_DATA) && fc 108 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c (WLAN_FC_GET_STYPE(fc) & 0x80); fc 47 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 52 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c skb_pull(skb, ieee80211_get_hdrlen(fc)); fc 96 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 105 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS) && IEEE80211_QOS_HAS_SEQ(fc)) { fc 110 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c } else if (IEEE80211_QOS_HAS_SEQ(fc)) { fc 127 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (IEEE80211_QOS_HAS_SEQ(fc) ? 2 : 0) /* QOS Control */); fc 164 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 172 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS) && IEEE80211_QOS_HAS_SEQ(fc)) { fc 177 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c } else if (IEEE80211_QOS_HAS_SEQ(fc)) { fc 296 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc, ethertype; fc 304 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 307 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 312 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c } else if ((fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == fc 415 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc = le16_to_cpu(header->frame_ctl); fc 427 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (((fc & IEEE80211_FCTL_DSTODS) == IEEE80211_FCTL_DSTODS) && IEEE80211_QOS_HAS_SEQ(fc)) { fc 432 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c } else if (IEEE80211_QOS_HAS_SEQ(fc)) { //QoS fc 757 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc = le16_to_cpu(hdr->frame_ctl); fc 770 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((IEEE80211_QOS_HAS_SEQ(fc)) && \ fc 775 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (IEEE80211_QOS_HAS_SEQ(fc)) { fc 877 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c u16 fc, type, stype, sc; fc 912 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c fc = le16_to_cpu(hdr->frame_ctl); fc 913 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c type = WLAN_FC_GET_TYPE(fc); fc 914 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c stype = WLAN_FC_GET_STYPE(fc); fc 918 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c hdrlen = ieee80211_get_hdrlen(fc); fc 977 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (!crypt && (fc & IEEE80211_FCTL_WEP)) { fc 1010 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((fc & (1 << 11)) && fc 1034 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c switch (fc & (IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS)) { fc 1060 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (hostap_rx_frame_wds(ieee, hdr, fc, &wds)) fc 1068 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (fc & (IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) == IEEE80211_FCTL_FROMDS && fc 1114 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) && fc 1126 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if ((frag != 0 || (fc & IEEE80211_FCTL_MOREFRAGS))) { fc 1135 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c (fc & IEEE80211_FCTL_MOREFRAGS) != 0, fc 1163 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (fc & IEEE80211_FCTL_MOREFRAGS) { fc 1179 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (ieee->host_decrypt && (fc & IEEE80211_FCTL_WEP) && fc 1190 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep) { fc 1212 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && fc 1221 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (crypt && !(fc & IEEE80211_FCTL_WEP) && !ieee->open_wep && fc 2288 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c static inline int is_beacon(__le16 fc) fc 2290 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); fc 2304 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c int fc = WLAN_FC_GET_STYPE(le16_to_cpu(beacon->header.frame_ctl)); fc 2341 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c fc == IEEE80211_STYPE_PROBE_RESP ? fc 2356 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c if (fc == IEEE80211_STYPE_PROBE_RESP) { fc 2450 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c fc == IEEE80211_STYPE_PROBE_RESP ? fc 2462 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c fc == IEEE80211_STYPE_PROBE_RESP ? fc 539 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c int bytes, fc, qos_ctl = 0, hdr_len; fc 606 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc = IEEE80211_FTYPE_DATA | IEEE80211_FCTL_WEP; fc 609 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc = IEEE80211_FTYPE_DATA; fc 613 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc |= IEEE80211_STYPE_QOS_DATA; fc 615 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc |= IEEE80211_STYPE_DATA; fc 618 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc |= IEEE80211_FCTL_TODS; fc 634 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c header.frame_ctl = cpu_to_le16(fc); fc 731 drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c fc | IEEE80211_FCTL_MOREFRAGS); fc 4322 drivers/staging/rtl8192u/r8192U_core.c u16 fc, type; fc 4333 drivers/staging/rtl8192u/r8192U_core.c fc = le16_to_cpu(hdr->frame_ctl); fc 4334 drivers/staging/rtl8192u/r8192U_core.c type = WLAN_FC_GET_TYPE(fc); fc 4339 drivers/staging/rtl8192u/r8192U_core.c (ether_addr_equal(priv->ieee80211->current_network.bssid, (fc & IEEE80211_FCTL_TODS) ? hdr->addr1 : (fc & IEEE80211_FCTL_FROMDS) ? hdr->addr2 : hdr->addr3)) fc 4344 drivers/staging/rtl8192u/r8192U_core.c if (WLAN_FC_GET_FRAMETYPE(fc) == IEEE80211_STYPE_BEACON) fc 4346 drivers/staging/rtl8192u/r8192U_core.c if (WLAN_FC_GET_FRAMETYPE(fc) == IEEE80211_STYPE_BLOCKACK) { fc 275 drivers/staging/rtl8712/ieee80211.h #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) fc 276 drivers/staging/rtl8712/ieee80211.h #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) fc 701 drivers/staging/rtl8712/ieee80211.h static inline int ieee80211_get_hdrlen(u16 fc) fc 705 drivers/staging/rtl8712/ieee80211.h switch (WLAN_FC_GET_TYPE(fc)) { fc 707 drivers/staging/rtl8712/ieee80211.h if (fc & IEEE80211_QOS_DATAGRP) fc 709 drivers/staging/rtl8712/ieee80211.h if ((fc & IEEE80211_FCTL_FROMDS) && (fc & IEEE80211_FCTL_TODS)) fc 713 drivers/staging/rtl8712/ieee80211.h switch (WLAN_FC_GET_STYPE(fc)) { fc 1296 drivers/staging/rtl8723bs/core/rtw_ieee80211.c u16 fc; fc 1300 drivers/staging/rtl8723bs/core/rtw_ieee80211.c fc = le16_to_cpu(((struct ieee80211_hdr_3addr *)frame)->frame_control); fc 1302 drivers/staging/rtl8723bs/core/rtw_ieee80211.c if ((fc & (IEEE80211_FCTL_FTYPE|IEEE80211_FCTL_STYPE)) fc 339 drivers/staging/rtl8723bs/include/ieee80211.h #define WLAN_FC_GET_TYPE(fc) ((fc) & IEEE80211_FCTL_FTYPE) fc 340 drivers/staging/rtl8723bs/include/ieee80211.h #define WLAN_FC_GET_STYPE(fc) ((fc) & IEEE80211_FCTL_STYPE) fc 32 drivers/staging/vt6655/dpc.c __le16 fc; fc 100 drivers/staging/vt6655/dpc.c fc = hdr->frame_control; fc 104 drivers/staging/vt6655/dpc.c if (ieee80211_has_protected(fc)) { fc 34 drivers/staging/vt6656/dpc.c __le16 fc; fc 149 drivers/staging/vt6656/dpc.c fc = hdr->frame_control; fc 153 drivers/staging/vt6656/dpc.c if (ieee80211_has_protected(fc)) { fc 1029 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c __le16 fc; fc 1048 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c fc = ((struct ieee80211_hdr *)buff)->frame_control; fc 1049 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c if (!ieee80211_is_action(fc)) { fc 3258 drivers/staging/wlan-ng/hfa384x_usb.c u16 fc; fc 3267 drivers/staging/wlan-ng/hfa384x_usb.c fc = le16_to_cpu(usbin->rxfrm.desc.frame_control); fc 3271 drivers/staging/wlan-ng/hfa384x_usb.c !WLAN_GET_FC_ISWEP(fc)) { fc 3278 drivers/staging/wlan-ng/hfa384x_usb.c hdrlen = p80211_headerlen(fc); fc 3358 drivers/staging/wlan-ng/hfa384x_usb.c u16 fc; fc 3364 drivers/staging/wlan-ng/hfa384x_usb.c fc = le16_to_cpu(rxdesc->frame_control); fc 3365 drivers/staging/wlan-ng/hfa384x_usb.c hdrlen = p80211_headerlen(fc); fc 112 drivers/staging/wlan-ng/p80211conv.c __le16 fc; fc 173 drivers/staging/wlan-ng/p80211conv.c fc = cpu_to_le16(WLAN_SET_FC_FTYPE(WLAN_FTYPE_DATA) | fc 183 drivers/staging/wlan-ng/p80211conv.c fc |= cpu_to_le16(WLAN_SET_FC_TODS(1)); fc 189 drivers/staging/wlan-ng/p80211conv.c fc |= cpu_to_le16(WLAN_SET_FC_FROMDS(1)); fc 220 drivers/staging/wlan-ng/p80211conv.c fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); fc 225 drivers/staging/wlan-ng/p80211conv.c p80211_hdr->a3.fc = fc; fc 279 drivers/staging/wlan-ng/p80211conv.c u16 fc; fc 297 drivers/staging/wlan-ng/p80211conv.c fc = le16_to_cpu(w_hdr->a3.fc); fc 298 drivers/staging/wlan-ng/p80211conv.c if ((WLAN_GET_FC_TODS(fc) == 0) && (WLAN_GET_FC_FROMDS(fc) == 0)) { fc 301 drivers/staging/wlan-ng/p80211conv.c } else if ((WLAN_GET_FC_TODS(fc) == 0) && fc 302 drivers/staging/wlan-ng/p80211conv.c (WLAN_GET_FC_FROMDS(fc) == 1)) { fc 305 drivers/staging/wlan-ng/p80211conv.c } else if ((WLAN_GET_FC_TODS(fc) == 1) && fc 306 drivers/staging/wlan-ng/p80211conv.c (WLAN_GET_FC_FROMDS(fc) == 0)) { fc 322 drivers/staging/wlan-ng/p80211conv.c WLAN_GET_FC_ISWEP(fc) && fc 152 drivers/staging/wlan-ng/p80211hdr.h __le16 fc; fc 161 drivers/staging/wlan-ng/p80211hdr.h u16 fc; fc 105 drivers/staging/wlan-ng/p80211netdev.c static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc); fc 241 drivers/staging/wlan-ng/p80211netdev.c if (p80211_rx_typedrop(wlandev, le16_to_cpu(hdr->fc))) fc 922 drivers/staging/wlan-ng/p80211netdev.c static int p80211_rx_typedrop(struct wlandevice *wlandev, u16 fc) fc 928 drivers/staging/wlan-ng/p80211netdev.c ftype = WLAN_GET_FC_FTYPE(fc); fc 929 drivers/staging/wlan-ng/p80211netdev.c fstype = WLAN_GET_FC_FSTYPE(fc); fc 253 drivers/staging/wlan-ng/prism2sta.c p80211_hdr->a3.fc |= cpu_to_le16(WLAN_SET_FC_ISWEP(1)); fc 1019 drivers/tty/n_gsm.c int fc; fc 1034 drivers/tty/n_gsm.c fc = (modem & MDM_FC) || !(modem & MDM_RTR); fc 1035 drivers/tty/n_gsm.c if (fc && !dlci->constipated) { fc 1038 drivers/tty/n_gsm.c } else if (!fc && dlci->constipated) { fc 719 drivers/tty/serial/sprd_serial.c unsigned int ien, fc; fc 754 drivers/tty/serial/sprd_serial.c fc = serial_in(port, SPRD_CTL1); fc 755 drivers/tty/serial/sprd_serial.c fc |= RX_TOUT_THLD_DEF | RX_HFC_THLD_DEF; fc 756 drivers/tty/serial/sprd_serial.c serial_out(port, SPRD_CTL1, fc); fc 783 drivers/tty/serial/sprd_serial.c unsigned int lcr = 0, fc; fc 852 drivers/tty/serial/sprd_serial.c fc = serial_in(port, SPRD_CTL1); fc 853 drivers/tty/serial/sprd_serial.c fc &= ~(RX_HW_FLOW_CTL_THLD | RX_HW_FLOW_CTL_EN | TX_HW_FLOW_CTL_EN); fc 855 drivers/tty/serial/sprd_serial.c fc |= RX_HW_FLOW_CTL_THLD; fc 856 drivers/tty/serial/sprd_serial.c fc |= RX_HW_FLOW_CTL_EN; fc 857 drivers/tty/serial/sprd_serial.c fc |= TX_HW_FLOW_CTL_EN; fc 867 drivers/tty/serial/sprd_serial.c fc |= RX_TOUT_THLD_DEF | RX_HFC_THLD_DEF; fc 868 drivers/tty/serial/sprd_serial.c serial_out(port, SPRD_CTL1, fc); fc 1459 drivers/usb/gadget/function/f_fs.c static int ffs_sb_fill(struct super_block *sb, struct fs_context *fc) fc 1461 drivers/usb/gadget/function/f_fs.c struct ffs_sb_fill_data *data = fc->fs_private; fc 1518 drivers/usb/gadget/function/f_fs.c static int ffs_fs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 1520 drivers/usb/gadget/function/f_fs.c struct ffs_sb_fill_data *data = fc->fs_private; fc 1526 drivers/usb/gadget/function/f_fs.c opt = fs_parse(fc, &ffs_fs_fs_parameters, param, &result); fc 1563 drivers/usb/gadget/function/f_fs.c return invalf(fc, "%s: unmapped value: %u", param->key, result.uint_32); fc 1569 drivers/usb/gadget/function/f_fs.c static int ffs_fs_get_tree(struct fs_context *fc) fc 1571 drivers/usb/gadget/function/f_fs.c struct ffs_sb_fill_data *ctx = fc->fs_private; fc 1577 drivers/usb/gadget/function/f_fs.c if (!fc->source) fc 1578 drivers/usb/gadget/function/f_fs.c return invalf(fc, "No source specified"); fc 1580 drivers/usb/gadget/function/f_fs.c ffs = ffs_data_new(fc->source); fc 1586 drivers/usb/gadget/function/f_fs.c ffs->dev_name = kstrdup(fc->source, GFP_KERNEL); fc 1600 drivers/usb/gadget/function/f_fs.c return get_tree_nodev(fc, ffs_sb_fill); fc 1603 drivers/usb/gadget/function/f_fs.c static void ffs_fs_free_fc(struct fs_context *fc) fc 1605 drivers/usb/gadget/function/f_fs.c struct ffs_sb_fill_data *ctx = fc->fs_private; fc 1623 drivers/usb/gadget/function/f_fs.c static int ffs_fs_init_fs_context(struct fs_context *fc) fc 1637 drivers/usb/gadget/function/f_fs.c fc->fs_private = ctx; fc 1638 drivers/usb/gadget/function/f_fs.c fc->ops = &ffs_fs_context_ops; fc 1993 drivers/usb/gadget/legacy/inode.c gadgetfs_fill_super (struct super_block *sb, struct fs_context *fc) fc 2047 drivers/usb/gadget/legacy/inode.c static int gadgetfs_get_tree(struct fs_context *fc) fc 2049 drivers/usb/gadget/legacy/inode.c return get_tree_single(fc, gadgetfs_fill_super); fc 2056 drivers/usb/gadget/legacy/inode.c static int gadgetfs_init_fs_context(struct fs_context *fc) fc 2058 drivers/usb/gadget/legacy/inode.c fc->ops = &gadgetfs_context_ops; fc 764 drivers/virtio/virtio_balloon.c static int balloon_init_fs_context(struct fs_context *fc) fc 766 drivers/virtio/virtio_balloon.c return init_pseudo(fc, BALLOON_KVM_MAGIC) ? 0 : -ENOMEM; fc 47 drivers/xen/xenfs/super.c static int xenfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 72 drivers/xen/xenfs/super.c static int xenfs_get_tree(struct fs_context *fc) fc 74 drivers/xen/xenfs/super.c return get_tree_single(fc, xenfs_fill_super); fc 81 drivers/xen/xenfs/super.c static int xenfs_init_fs_context(struct fs_context *fc) fc 83 drivers/xen/xenfs/super.c fc->ops = &xenfs_context_ops; fc 646 fs/afs/dir.c struct afs_fs_cursor fc; fc 736 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 737 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 739 fs/afs/dir.c &fc.cbi->server->flags)) { fc 740 fs/afs/dir.c fc.ac.abort_code = RX_INVALID_OPERATION; fc 741 fs/afs/dir.c fc.ac.error = -ECONNABORTED; fc 745 fs/afs/dir.c iget_data.cb_s_break = fc.cbi->server->cb_s_break; fc 746 fs/afs/dir.c afs_fs_inline_bulk_status(&fc, fc 753 fs/afs/dir.c if (fc.ac.error == 0) fc 754 fs/afs/dir.c cbi = afs_get_cb_interest(fc.cbi); fc 755 fs/afs/dir.c if (fc.ac.abort_code == RX_INVALID_OPERATION) fc 756 fs/afs/dir.c set_bit(AFS_SERVER_FL_NO_IBULK, &fc.cbi->server->flags); fc 757 fs/afs/dir.c inode = ERR_PTR(afs_end_vnode_operation(&fc)); fc 762 fs/afs/dir.c if (fc.ac.abort_code != RX_INVALID_OPERATION) fc 771 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 772 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 774 fs/afs/dir.c iget_data.cb_s_break = fc.cbi->server->cb_s_break; fc 776 fs/afs/dir.c afs_fs_fetch_status(&fc, fc 783 fs/afs/dir.c if (fc.ac.error == 0) fc 784 fs/afs/dir.c cbi = afs_get_cb_interest(fc.cbi); fc 785 fs/afs/dir.c inode = ERR_PTR(afs_end_vnode_operation(&fc)); fc 811 fs/afs/dir.c afs_vnode_commit_status(&fc, iv, fc 1218 fs/afs/dir.c static void afs_vnode_new_inode(struct afs_fs_cursor *fc, fc 1226 fs/afs/dir.c if (fc->ac.error < 0) fc 1229 fs/afs/dir.c inode = afs_iget(fc->vnode->vfs_inode.i_sb, fc->key, fc 1230 fs/afs/dir.c new_data, new_scb, fc->cbi, fc->vnode); fc 1235 fs/afs/dir.c fc->ac.error = PTR_ERR(inode); fc 1241 fs/afs/dir.c if (fc->ac.error == 0) fc 1242 fs/afs/dir.c afs_cache_permit(vnode, fc->key, vnode->cb_break, new_scb); fc 1246 fs/afs/dir.c static void afs_prep_for_new_inode(struct afs_fs_cursor *fc, fc 1249 fs/afs/dir.c iget_data->volume = fc->vnode->volume; fc 1250 fs/afs/dir.c iget_data->cb_v_break = fc->vnode->volume->cb_v_break; fc 1251 fs/afs/dir.c iget_data->cb_s_break = fc->cbi->server->cb_s_break; fc 1259 fs/afs/dir.c static void afs_update_dentry_version(struct afs_fs_cursor *fc, fc 1263 fs/afs/dir.c if (fc->ac.error == 0) fc 1275 fs/afs/dir.c struct afs_fs_cursor fc; fc 1298 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1301 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1302 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1303 fs/afs/dir.c afs_prep_for_new_inode(&fc, &iget_data); fc 1304 fs/afs/dir.c afs_fs_create(&fc, dentry->d_name.name, mode, fc 1308 fs/afs/dir.c afs_check_for_remote_deletion(&fc, dvnode); fc 1309 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1311 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, &scb[0]); fc 1312 fs/afs/dir.c afs_vnode_new_inode(&fc, dentry, &iget_data, &scb[1]); fc 1313 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1365 fs/afs/dir.c struct afs_fs_cursor fc; fc 1399 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1402 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1403 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1404 fs/afs/dir.c afs_fs_remove(&fc, vnode, dentry->d_name.name, true, scb); fc 1407 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1409 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, scb); fc 1410 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1481 fs/afs/dir.c struct afs_fs_cursor fc; fc 1527 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1531 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1532 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1533 fs/afs/dir.c fc.cb_break_2 = afs_calc_vnode_cb_break(vnode); fc 1535 fs/afs/dir.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc.cbi->server->flags) && fc 1536 fs/afs/dir.c !test_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags)) { fc 1537 fs/afs/dir.c yfs_fs_remove_file2(&fc, vnode, dentry->d_name.name, fc 1539 fs/afs/dir.c if (fc.ac.error != -ECONNABORTED || fc 1540 fs/afs/dir.c fc.ac.abort_code != RXGEN_OPCODE) fc 1542 fs/afs/dir.c set_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags); fc 1545 fs/afs/dir.c afs_fs_remove(&fc, vnode, dentry->d_name.name, false, &scb[0]); fc 1548 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1550 fs/afs/dir.c afs_vnode_commit_status(&fc, vnode, fc.cb_break_2, fc 1552 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, &scb[0]); fc 1553 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1586 fs/afs/dir.c struct afs_fs_cursor fc; fc 1614 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1617 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1618 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1619 fs/afs/dir.c afs_prep_for_new_inode(&fc, &iget_data); fc 1620 fs/afs/dir.c afs_fs_create(&fc, dentry->d_name.name, mode, fc 1624 fs/afs/dir.c afs_check_for_remote_deletion(&fc, dvnode); fc 1625 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1627 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, &scb[0]); fc 1628 fs/afs/dir.c afs_vnode_new_inode(&fc, dentry, &iget_data, &scb[1]); fc 1629 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1664 fs/afs/dir.c struct afs_fs_cursor fc; fc 1693 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1697 fs/afs/dir.c afs_end_vnode_operation(&fc); fc 1701 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1702 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1703 fs/afs/dir.c fc.cb_break_2 = afs_calc_vnode_cb_break(vnode); fc 1704 fs/afs/dir.c afs_fs_link(&fc, vnode, dentry->d_name.name, fc 1708 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1710 fs/afs/dir.c afs_vnode_commit_status(&fc, vnode, fc.cb_break_2, fc 1713 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, &scb[0]); fc 1717 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1753 fs/afs/dir.c struct afs_fs_cursor fc; fc 1784 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 1787 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1788 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 1789 fs/afs/dir.c afs_prep_for_new_inode(&fc, &iget_data); fc 1790 fs/afs/dir.c afs_fs_symlink(&fc, dentry->d_name.name, content, fc 1794 fs/afs/dir.c afs_check_for_remote_deletion(&fc, dvnode); fc 1795 fs/afs/dir.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 1797 fs/afs/dir.c afs_update_dentry_version(&fc, dentry, &scb[0]); fc 1798 fs/afs/dir.c afs_vnode_new_inode(&fc, dentry, &iget_data, &scb[1]); fc 1799 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1835 fs/afs/dir.c struct afs_fs_cursor fc; fc 1920 fs/afs/dir.c if (afs_begin_vnode_operation(&fc, orig_dvnode, key, true)) { fc 1925 fs/afs/dir.c afs_end_vnode_operation(&fc); fc 1933 fs/afs/dir.c while (afs_select_fileserver(&fc)) { fc 1934 fs/afs/dir.c fc.cb_break = afs_calc_vnode_cb_break(orig_dvnode); fc 1935 fs/afs/dir.c fc.cb_break_2 = afs_calc_vnode_cb_break(new_dvnode); fc 1936 fs/afs/dir.c afs_fs_rename(&fc, old_dentry->d_name.name, fc 1941 fs/afs/dir.c afs_vnode_commit_status(&fc, orig_dvnode, fc.cb_break, fc 1944 fs/afs/dir.c afs_vnode_commit_status(&fc, new_dvnode, fc.cb_break_2, fc 1948 fs/afs/dir.c ret = afs_end_vnode_operation(&fc); fc 1990 fs/afs/dir.c afs_update_dentry_version(&fc, old_dentry, &scb[1]); fc 1991 fs/afs/dir.c afs_update_dentry_version(&fc, new_dentry, &scb[1]); fc 22 fs/afs/dir_silly.c struct afs_fs_cursor fc; fc 34 fs/afs/dir_silly.c if (afs_begin_vnode_operation(&fc, dvnode, key, true)) { fc 37 fs/afs/dir_silly.c while (afs_select_fileserver(&fc)) { fc 38 fs/afs/dir_silly.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 39 fs/afs/dir_silly.c afs_fs_rename(&fc, old->d_name.name, fc 44 fs/afs/dir_silly.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 46 fs/afs/dir_silly.c ret = afs_end_vnode_operation(&fc); fc 148 fs/afs/dir_silly.c struct afs_fs_cursor fc; fc 159 fs/afs/dir_silly.c if (afs_begin_vnode_operation(&fc, dvnode, key, false)) { fc 162 fs/afs/dir_silly.c while (afs_select_fileserver(&fc)) { fc 163 fs/afs/dir_silly.c fc.cb_break = afs_calc_vnode_cb_break(dvnode); fc 165 fs/afs/dir_silly.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc.cbi->server->flags) && fc 166 fs/afs/dir_silly.c !test_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags)) { fc 167 fs/afs/dir_silly.c yfs_fs_remove_file2(&fc, vnode, dentry->d_name.name, fc 169 fs/afs/dir_silly.c if (fc.ac.error != -ECONNABORTED || fc 170 fs/afs/dir_silly.c fc.ac.abort_code != RXGEN_OPCODE) fc 172 fs/afs/dir_silly.c set_bit(AFS_SERVER_FL_NO_RM2, &fc.cbi->server->flags); fc 175 fs/afs/dir_silly.c afs_fs_remove(&fc, vnode, dentry->d_name.name, false, &scb[0]); fc 178 fs/afs/dir_silly.c afs_vnode_commit_status(&fc, dvnode, fc.cb_break, fc 180 fs/afs/dir_silly.c ret = afs_end_vnode_operation(&fc); fc 228 fs/afs/file.c struct afs_fs_cursor fc; fc 244 fs/afs/file.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 247 fs/afs/file.c while (afs_select_fileserver(&fc)) { fc 248 fs/afs/file.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 249 fs/afs/file.c afs_fs_fetch_data(&fc, scb, desc); fc 252 fs/afs/file.c afs_check_for_remote_deletion(&fc, vnode); fc 253 fs/afs/file.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 255 fs/afs/file.c ret = afs_end_vnode_operation(&fc); fc 182 fs/afs/flock.c struct afs_fs_cursor fc; fc 197 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 198 fs/afs/flock.c while (afs_select_fileserver(&fc)) { fc 199 fs/afs/flock.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 200 fs/afs/flock.c afs_fs_set_lock(&fc, type, scb); fc 203 fs/afs/flock.c afs_check_for_remote_deletion(&fc, vnode); fc 204 fs/afs/flock.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, NULL, scb); fc 205 fs/afs/flock.c ret = afs_end_vnode_operation(&fc); fc 219 fs/afs/flock.c struct afs_fs_cursor fc; fc 234 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { fc 235 fs/afs/flock.c while (afs_select_current_fileserver(&fc)) { fc 236 fs/afs/flock.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 237 fs/afs/flock.c afs_fs_extend_lock(&fc, scb); fc 240 fs/afs/flock.c afs_check_for_remote_deletion(&fc, vnode); fc 241 fs/afs/flock.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, NULL, scb); fc 242 fs/afs/flock.c ret = afs_end_vnode_operation(&fc); fc 256 fs/afs/flock.c struct afs_fs_cursor fc; fc 271 fs/afs/flock.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { fc 272 fs/afs/flock.c while (afs_select_current_fileserver(&fc)) { fc 273 fs/afs/flock.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 274 fs/afs/flock.c afs_fs_release_lock(&fc, scb); fc 277 fs/afs/flock.c afs_check_for_remote_deletion(&fc, vnode); fc 278 fs/afs/flock.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, NULL, scb); fc 279 fs/afs/flock.c ret = afs_end_vnode_operation(&fc); fc 280 fs/afs/fsclient.c int afs_fs_fetch_file_status(struct afs_fs_cursor *fc, struct afs_status_cb *scb, fc 283 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 288 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 289 fs/afs/fsclient.c return yfs_fs_fetch_file_status(fc, scb, volsync); fc 292 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 297 fs/afs/fsclient.c fc->ac.error = -ENOMEM; fc 301 fs/afs/fsclient.c call->key = fc->key; fc 312 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 315 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 316 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 317 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 480 fs/afs/fsclient.c static int afs_fs_fetch_data64(struct afs_fs_cursor *fc, fc 484 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 495 fs/afs/fsclient.c call->key = fc->key; fc 512 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 514 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 515 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 516 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 522 fs/afs/fsclient.c int afs_fs_fetch_data(struct afs_fs_cursor *fc, fc 526 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 531 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 532 fs/afs/fsclient.c return yfs_fs_fetch_data(fc, scb, req); fc 537 fs/afs/fsclient.c return afs_fs_fetch_data64(fc, scb, req); fc 545 fs/afs/fsclient.c call->key = fc->key; fc 560 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 562 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 563 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 564 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 615 fs/afs/fsclient.c int afs_fs_create(struct afs_fs_cursor *fc, fc 622 fs/afs/fsclient.c struct afs_vnode *dvnode = fc->vnode; fc 628 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)){ fc 630 fs/afs/fsclient.c return yfs_fs_make_dir(fc, name, mode, dvnode_scb, fc 633 fs/afs/fsclient.c return yfs_fs_create_file(fc, name, mode, dvnode_scb, fc 649 fs/afs/fsclient.c call->key = fc->key; fc 674 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 676 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 677 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 678 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 725 fs/afs/fsclient.c int afs_fs_remove(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 728 fs/afs/fsclient.c struct afs_vnode *dvnode = fc->vnode; fc 734 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 735 fs/afs/fsclient.c return yfs_fs_remove(fc, vnode, name, isdir, dvnode_scb); fc 749 fs/afs/fsclient.c call->key = fc->key; fc 766 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 768 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 769 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 770 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 814 fs/afs/fsclient.c int afs_fs_link(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 819 fs/afs/fsclient.c struct afs_vnode *dvnode = fc->vnode; fc 825 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 826 fs/afs/fsclient.c return yfs_fs_link(fc, vnode, name, dvnode_scb, vnode_scb); fc 838 fs/afs/fsclient.c call->key = fc->key; fc 859 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 861 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 862 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 863 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 908 fs/afs/fsclient.c int afs_fs_symlink(struct afs_fs_cursor *fc, fc 915 fs/afs/fsclient.c struct afs_vnode *dvnode = fc->vnode; fc 921 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 922 fs/afs/fsclient.c return yfs_fs_symlink(fc, name, contents, dvnode_scb, fc 940 fs/afs/fsclient.c call->key = fc->key; fc 972 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 974 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 975 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 976 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1020 fs/afs/fsclient.c int afs_fs_rename(struct afs_fs_cursor *fc, fc 1027 fs/afs/fsclient.c struct afs_vnode *orig_dvnode = fc->vnode; fc 1033 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1034 fs/afs/fsclient.c return yfs_fs_rename(fc, orig_name, fc 1056 fs/afs/fsclient.c call->key = fc->key; fc 1085 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1087 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1088 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1089 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1137 fs/afs/fsclient.c static int afs_fs_store_data64(struct afs_fs_cursor *fc, fc 1144 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1150 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1158 fs/afs/fsclient.c call->key = fc->key; fc 1189 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1190 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1191 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1197 fs/afs/fsclient.c int afs_fs_store_data(struct afs_fs_cursor *fc, struct address_space *mapping, fc 1202 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1208 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1209 fs/afs/fsclient.c return yfs_fs_store_data(fc, mapping, first, last, offset, to, scb); fc 1212 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1229 fs/afs/fsclient.c return afs_fs_store_data64(fc, mapping, first, last, offset, to, fc 1238 fs/afs/fsclient.c call->key = fc->key; fc 1265 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1267 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1268 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1269 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1325 fs/afs/fsclient.c static int afs_fs_setattr_size64(struct afs_fs_cursor *fc, struct iattr *attr, fc 1328 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1334 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1344 fs/afs/fsclient.c call->key = fc->key; fc 1363 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1365 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1366 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1367 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1374 fs/afs/fsclient.c static int afs_fs_setattr_size(struct afs_fs_cursor *fc, struct iattr *attr, fc 1377 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1383 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1387 fs/afs/fsclient.c return afs_fs_setattr_size64(fc, attr, scb); fc 1395 fs/afs/fsclient.c call->key = fc->key; fc 1411 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1413 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1414 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1415 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1422 fs/afs/fsclient.c int afs_fs_setattr(struct afs_fs_cursor *fc, struct iattr *attr, fc 1425 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1430 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1431 fs/afs/fsclient.c return yfs_fs_setattr(fc, attr, scb); fc 1434 fs/afs/fsclient.c return afs_fs_setattr_size(fc, attr, scb); fc 1437 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1445 fs/afs/fsclient.c call->key = fc->key; fc 1457 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1459 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1460 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1461 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1606 fs/afs/fsclient.c int afs_fs_get_volume_status(struct afs_fs_cursor *fc, fc 1609 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1614 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1615 fs/afs/fsclient.c return yfs_fs_get_volume_status(fc, vs); fc 1624 fs/afs/fsclient.c call->key = fc->key; fc 1632 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1634 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1635 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1636 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1696 fs/afs/fsclient.c int afs_fs_set_lock(struct afs_fs_cursor *fc, afs_lock_type_t type, fc 1699 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1704 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1705 fs/afs/fsclient.c return yfs_fs_set_lock(fc, type, scb); fc 1713 fs/afs/fsclient.c call->key = fc->key; fc 1725 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1727 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1728 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1729 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1735 fs/afs/fsclient.c int afs_fs_extend_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) fc 1737 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1742 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1743 fs/afs/fsclient.c return yfs_fs_extend_lock(fc, scb); fc 1751 fs/afs/fsclient.c call->key = fc->key; fc 1762 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1764 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1765 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1766 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1772 fs/afs/fsclient.c int afs_fs_release_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) fc 1774 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 1779 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1780 fs/afs/fsclient.c return yfs_fs_release_lock(fc, scb); fc 1788 fs/afs/fsclient.c call->key = fc->key; fc 1799 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 1801 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 1802 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1803 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1982 fs/afs/fsclient.c int afs_fs_fetch_status(struct afs_fs_cursor *fc, fc 1991 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 1992 fs/afs/fsclient.c return yfs_fs_fetch_status(fc, net, fid, scb, volsync); fc 1995 fs/afs/fsclient.c key_serial(fc->key), fid->vid, fid->vnode); fc 1999 fs/afs/fsclient.c fc->ac.error = -ENOMEM; fc 2003 fs/afs/fsclient.c call->key = fc->key; fc 2015 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 2017 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 2018 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 2019 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 2147 fs/afs/fsclient.c int afs_fs_inline_bulk_status(struct afs_fs_cursor *fc, fc 2158 fs/afs/fsclient.c if (test_bit(AFS_SERVER_FL_IS_YFS, &fc->cbi->server->flags)) fc 2159 fs/afs/fsclient.c return yfs_fs_inline_bulk_status(fc, net, fids, statuses, fc 2163 fs/afs/fsclient.c key_serial(fc->key), fids[0].vid, fids[1].vnode, nr_fids); fc 2169 fs/afs/fsclient.c fc->ac.error = -ENOMEM; fc 2173 fs/afs/fsclient.c call->key = fc->key; fc 2188 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 2190 fs/afs/fsclient.c afs_set_fc_call(call, fc); fc 2191 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 2192 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 2282 fs/afs/fsclient.c struct afs_acl *afs_fs_fetch_acl(struct afs_fs_cursor *fc, fc 2285 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 2291 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 2295 fs/afs/fsclient.c fc->ac.error = -ENOMEM; fc 2299 fs/afs/fsclient.c call->key = fc->key; fc 2311 fs/afs/fsclient.c afs_use_fs_server(call, fc->cbi); fc 2313 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_KERNEL); fc 2314 fs/afs/fsclient.c return (struct afs_acl *)afs_wait_for_call_to_complete(call, &fc->ac); fc 2353 fs/afs/fsclient.c int afs_fs_store_acl(struct afs_fs_cursor *fc, const struct afs_acl *acl, fc 2356 fs/afs/fsclient.c struct afs_vnode *vnode = fc->vnode; fc 2363 fs/afs/fsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 2369 fs/afs/fsclient.c fc->ac.error = -ENOMEM; fc 2373 fs/afs/fsclient.c call->key = fc->key; fc 2389 fs/afs/fsclient.c afs_make_call(&fc->ac, call, GFP_KERNEL); fc 2390 fs/afs/fsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 165 fs/afs/inode.c static void afs_apply_status(struct afs_fs_cursor *fc, fc 220 fs/afs/inode.c fc->type ? fc->type->name : "???"); fc 247 fs/afs/inode.c static void afs_apply_callback(struct afs_fs_cursor *fc, fc 255 fs/afs/inode.c if (!afs_cb_is_broken(cb_break, vnode, fc->cbi)) { fc 259 fs/afs/inode.c if (old != fc->cbi) { fc 260 fs/afs/inode.c rcu_assign_pointer(vnode->cb_interest, afs_get_cb_interest(fc->cbi)); fc 271 fs/afs/inode.c void afs_vnode_commit_status(struct afs_fs_cursor *fc, fc 277 fs/afs/inode.c if (fc->ac.error != 0) fc 290 fs/afs/inode.c afs_apply_status(fc, vnode, scb, expected_version); fc 292 fs/afs/inode.c afs_apply_callback(fc, vnode, scb, cb_break); fc 297 fs/afs/inode.c if (fc->ac.error == 0 && scb->have_status) fc 298 fs/afs/inode.c afs_cache_permit(vnode, fc->key, cb_break, scb); fc 308 fs/afs/inode.c struct afs_fs_cursor fc; fc 321 fs/afs/inode.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 324 fs/afs/inode.c while (afs_select_fileserver(&fc)) { fc 325 fs/afs/inode.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 326 fs/afs/inode.c afs_fs_fetch_file_status(&fc, scb, NULL); fc 329 fs/afs/inode.c if (fc.error) { fc 332 fs/afs/inode.c ret = afs_inode_init_from_status(vnode, key, fc.cbi, fc 334 fs/afs/inode.c fc.error = ret; fc 336 fs/afs/inode.c afs_cache_permit(vnode, key, fc.cb_break, scb); fc 338 fs/afs/inode.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 341 fs/afs/inode.c afs_check_for_remote_deletion(&fc, vnode); fc 342 fs/afs/inode.c ret = afs_end_vnode_operation(&fc); fc 817 fs/afs/inode.c struct afs_fs_cursor fc; fc 852 fs/afs/inode.c if (afs_begin_vnode_operation(&fc, vnode, key, false)) { fc 858 fs/afs/inode.c while (afs_select_fileserver(&fc)) { fc 859 fs/afs/inode.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 860 fs/afs/inode.c afs_fs_setattr(&fc, attr, scb); fc 863 fs/afs/inode.c afs_check_for_remote_deletion(&fc, vnode); fc 864 fs/afs/inode.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 866 fs/afs/inode.c ret = afs_end_vnode_operation(&fc); fc 1129 fs/afs/internal.h static inline void afs_set_fc_call(struct afs_call *call, struct afs_fs_cursor *fc) fc 1131 fs/afs/internal.h call->intr = fc->flags & AFS_FS_CURSOR_INTR; fc 1132 fs/afs/internal.h fc->type = call->type; fc 1421 fs/afs/internal.h static inline void afs_check_for_remote_deletion(struct afs_fs_cursor *fc, fc 1424 fs/afs/internal.h if (fc->ac.error == -ENOENT) { fc 72 fs/afs/mntpt.c static int afs_mntpt_set_params(struct fs_context *fc, struct dentry *mntpt) fc 74 fs/afs/mntpt.c struct afs_fs_context *ctx = fc->fs_private; fc 81 fs/afs/mntpt.c if (fc->net_ns != src_as->net_ns) { fc 82 fs/afs/mntpt.c put_net(fc->net_ns); fc 83 fs/afs/mntpt.c fc->net_ns = get_net(src_as->net_ns); fc 145 fs/afs/mntpt.c ret = vfs_parse_fs_string(fc, "source", buf, size - 1); fc 160 fs/afs/mntpt.c struct fs_context *fc; fc 166 fs/afs/mntpt.c fc = fs_context_for_submount(&afs_fs_type, mntpt); fc 167 fs/afs/mntpt.c if (IS_ERR(fc)) fc 168 fs/afs/mntpt.c return ERR_CAST(fc); fc 170 fs/afs/mntpt.c ret = afs_mntpt_set_params(fc, mntpt); fc 172 fs/afs/mntpt.c mnt = fc_mount(fc); fc 176 fs/afs/mntpt.c put_fs_context(fc); fc 23 fs/afs/rotate.c bool afs_begin_vnode_operation(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 26 fs/afs/rotate.c memset(fc, 0, sizeof(*fc)); fc 27 fs/afs/rotate.c fc->vnode = vnode; fc 28 fs/afs/rotate.c fc->key = key; fc 29 fs/afs/rotate.c fc->ac.error = SHRT_MAX; fc 30 fs/afs/rotate.c fc->error = -EDESTADDRREQ; fc 33 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_INTR; fc 35 fs/afs/rotate.c fc->error = -EINTR; fc 36 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 44 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_CUR_ONLY; fc 52 fs/afs/rotate.c static bool afs_start_fs_iteration(struct afs_fs_cursor *fc, fc 59 fs/afs/rotate.c fc->server_list = afs_get_serverlist(vnode->volume->servers); fc 62 fs/afs/rotate.c fc->untried = (1UL << fc->server_list->nr_servers) - 1; fc 63 fs/afs/rotate.c fc->index = READ_ONCE(fc->server_list->preferred); fc 69 fs/afs/rotate.c for (i = 0; i < fc->server_list->nr_servers; i++) { fc 70 fs/afs/rotate.c if (fc->server_list->servers[i].cb_interest == cbi) { fc 71 fs/afs/rotate.c fc->index = i; fc 80 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_CUR_ONLY) { fc 81 fs/afs/rotate.c fc->error = -ESTALE; fc 121 fs/afs/rotate.c static bool afs_sleep_and_retry(struct afs_fs_cursor *fc) fc 123 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_INTR) { fc 126 fs/afs/rotate.c fc->error = -ERESTARTSYS; fc 140 fs/afs/rotate.c bool afs_select_fileserver(struct afs_fs_cursor *fc) fc 144 fs/afs/rotate.c struct afs_vnode *vnode = fc->vnode; fc 147 fs/afs/rotate.c int error = fc->ac.error, i; fc 150 fs/afs/rotate.c fc->untried, fc->index, fc 151 fs/afs/rotate.c fc->ac.tried, fc->ac.index, fc 152 fs/afs/rotate.c error, fc->ac.abort_code); fc 154 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_STOP) { fc 159 fs/afs/rotate.c fc->nr_iterations++; fc 169 fs/afs/rotate.c fc->error = error; fc 170 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 178 fs/afs/rotate.c switch (fc->ac.abort_code) { fc 185 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_VNOVOL) { fc 186 fs/afs/rotate.c fc->error = -EREMOTEIO; fc 191 fs/afs/rotate.c fc->server_list->vnovol_mask |= 1 << fc->index; fc 195 fs/afs/rotate.c error = afs_check_volume_status(vnode->volume, fc); fc 200 fs/afs/rotate.c fc->error = -ENOMEDIUM; fc 207 fs/afs/rotate.c if (vnode->volume->servers == fc->server_list) { fc 208 fs/afs/rotate.c fc->error = -EREMOTEIO; fc 213 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_VNOVOL; fc 223 fs/afs/rotate.c fc->error = afs_abort_to_error(fc->ac.abort_code); fc 228 fs/afs/rotate.c afs_busy(vnode->volume, fc->ac.abort_code); fc 231 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_NO_VSLEEP) { fc 232 fs/afs/rotate.c fc->error = -EADV; fc 235 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_CUR_ONLY) { fc 236 fs/afs/rotate.c fc->error = -ESTALE; fc 247 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_NO_VSLEEP) { fc 248 fs/afs/rotate.c fc->error = -EBUSY; fc 252 fs/afs/rotate.c afs_busy(vnode->volume, fc->ac.abort_code); fc 256 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_CUR_ONLY) { fc 257 fs/afs/rotate.c if (!afs_sleep_and_retry(fc)) fc 265 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_VBUSY; fc 276 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_VMOVED) { fc 277 fs/afs/rotate.c fc->error = -EREMOTEIO; fc 280 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_VMOVED; fc 284 fs/afs/rotate.c error = afs_check_volume_status(vnode->volume, fc); fc 297 fs/afs/rotate.c if (vnode->volume->servers == fc->server_list) { fc 298 fs/afs/rotate.c fc->error = -ENOMEDIUM; fc 307 fs/afs/rotate.c fc->error = afs_abort_to_error(fc->ac.abort_code); fc 313 fs/afs/rotate.c if (fc->error != -EDESTADDRREQ) fc 323 fs/afs/rotate.c fc->error = error; fc 328 fs/afs/rotate.c fc->error = error; fc 334 fs/afs/rotate.c afs_end_cursor(&fc->ac); fc 335 fs/afs/rotate.c afs_put_cb_interest(afs_v2net(vnode), fc->cbi); fc 336 fs/afs/rotate.c fc->cbi = NULL; fc 337 fs/afs/rotate.c afs_put_serverlist(afs_v2net(vnode), fc->server_list); fc 338 fs/afs/rotate.c fc->server_list = NULL; fc 344 fs/afs/rotate.c error = afs_check_volume_status(vnode->volume, fc); fc 348 fs/afs/rotate.c if (!afs_start_fs_iteration(fc, vnode)) fc 352 fs/afs/rotate.c error = afs_probe_fileservers(afs_v2net(vnode), fc->key, fc->server_list); fc 357 fs/afs/rotate.c _debug("pick [%lx]", fc->untried); fc 359 fs/afs/rotate.c error = afs_wait_for_fs_probes(fc->server_list, fc->untried); fc 366 fs/afs/rotate.c if (fc->cbi) { fc 367 fs/afs/rotate.c _debug("cbi %u", fc->index); fc 368 fs/afs/rotate.c if (test_bit(fc->index, &fc->untried)) fc 370 fs/afs/rotate.c afs_put_cb_interest(afs_v2net(vnode), fc->cbi); fc 371 fs/afs/rotate.c fc->cbi = NULL; fc 375 fs/afs/rotate.c fc->index = -1; fc 377 fs/afs/rotate.c for (i = 0; i < fc->server_list->nr_servers; i++) { fc 378 fs/afs/rotate.c struct afs_server *s = fc->server_list->servers[i].server; fc 380 fs/afs/rotate.c if (!test_bit(i, &fc->untried) || !s->probe.responded) fc 383 fs/afs/rotate.c fc->index = i; fc 388 fs/afs/rotate.c if (fc->index == -1) fc 392 fs/afs/rotate.c _debug("use %d", fc->index); fc 393 fs/afs/rotate.c __clear_bit(fc->index, &fc->untried); fc 399 fs/afs/rotate.c ASSERTCMP(fc->ac.alist, ==, NULL); fc 400 fs/afs/rotate.c server = fc->server_list->servers[fc->index].server; fc 402 fs/afs/rotate.c if (!afs_check_server_record(fc, server)) fc 412 fs/afs/rotate.c error = afs_register_server_cb_interest(vnode, fc->server_list, fc 413 fs/afs/rotate.c fc->index); fc 417 fs/afs/rotate.c fc->cbi = afs_get_cb_interest( fc 427 fs/afs/rotate.c memset(&fc->ac, 0, sizeof(fc->ac)); fc 429 fs/afs/rotate.c if (!fc->ac.alist) fc 430 fs/afs/rotate.c fc->ac.alist = alist; fc 434 fs/afs/rotate.c fc->ac.index = -1; fc 437 fs/afs/rotate.c ASSERT(fc->ac.alist); fc 441 fs/afs/rotate.c if (!afs_iterate_addresses(&fc->ac)) fc 444 fs/afs/rotate.c _debug("address [%u] %u/%u", fc->index, fc->ac.index, fc->ac.alist->nr_addrs); fc 451 fs/afs/rotate.c afs_end_cursor(&fc->ac); fc 458 fs/afs/rotate.c if (fc->flags & AFS_FS_CURSOR_VBUSY) fc 463 fs/afs/rotate.c for (i = 0; i < fc->server_list->nr_servers; i++) { fc 464 fs/afs/rotate.c struct afs_server *s = fc->server_list->servers[i].server; fc 473 fs/afs/rotate.c fc->error = error; fc 475 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 476 fs/afs/rotate.c afs_end_cursor(&fc->ac); fc 477 fs/afs/rotate.c _leave(" = f [failed %d]", fc->error); fc 486 fs/afs/rotate.c bool afs_select_current_fileserver(struct afs_fs_cursor *fc) fc 488 fs/afs/rotate.c struct afs_vnode *vnode = fc->vnode; fc 491 fs/afs/rotate.c int error = fc->ac.error; fc 501 fs/afs/rotate.c fc->error = -ESTALE; fc 502 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 506 fs/afs/rotate.c fc->cbi = afs_get_cb_interest(cbi); fc 514 fs/afs/rotate.c fc->error = -ESTALE; fc 515 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 519 fs/afs/rotate.c memset(&fc->ac, 0, sizeof(fc->ac)); fc 520 fs/afs/rotate.c fc->ac.alist = alist; fc 521 fs/afs/rotate.c fc->ac.index = -1; fc 527 fs/afs/rotate.c fc->error = error; fc 528 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 533 fs/afs/rotate.c fc->error = afs_abort_to_error(fc->ac.abort_code); fc 534 fs/afs/rotate.c fc->flags |= AFS_FS_CURSOR_STOP; fc 547 fs/afs/rotate.c fc->error = error; fc 555 fs/afs/rotate.c if (afs_iterate_addresses(&fc->ac)) { fc 560 fs/afs/rotate.c afs_end_cursor(&fc->ac); fc 567 fs/afs/rotate.c static void afs_dump_edestaddrreq(const struct afs_fs_cursor *fc) fc 580 fs/afs/rotate.c fc->cb_break, fc->cb_break_2, fc->flags, fc->error); fc 582 fs/afs/rotate.c fc->untried, fc->index, fc->nr_iterations); fc 584 fs/afs/rotate.c if (fc->server_list) { fc 585 fs/afs/rotate.c const struct afs_server_list *sl = fc->server_list; fc 601 fs/afs/rotate.c if (a == fc->ac.alist) fc 608 fs/afs/rotate.c fc->ac.tried, fc->ac.index, fc->ac.abort_code, fc->ac.error, fc 609 fs/afs/rotate.c fc->ac.responded, fc->ac.nr_iterations); fc 616 fs/afs/rotate.c int afs_end_vnode_operation(struct afs_fs_cursor *fc) fc 618 fs/afs/rotate.c struct afs_net *net = afs_v2net(fc->vnode); fc 620 fs/afs/rotate.c if (fc->error == -EDESTADDRREQ || fc 621 fs/afs/rotate.c fc->error == -EADDRNOTAVAIL || fc 622 fs/afs/rotate.c fc->error == -ENETUNREACH || fc 623 fs/afs/rotate.c fc->error == -EHOSTUNREACH) fc 624 fs/afs/rotate.c afs_dump_edestaddrreq(fc); fc 626 fs/afs/rotate.c mutex_unlock(&fc->vnode->io_lock); fc 628 fs/afs/rotate.c afs_end_cursor(&fc->ac); fc 629 fs/afs/rotate.c afs_put_cb_interest(net, fc->cbi); fc 630 fs/afs/rotate.c afs_put_serverlist(net, fc->server_list); fc 632 fs/afs/rotate.c if (fc->error == -ECONNABORTED) fc 633 fs/afs/rotate.c fc->error = afs_abort_to_error(fc->ac.abort_code); fc 635 fs/afs/rotate.c return fc->error; fc 529 fs/afs/server.c static noinline bool afs_update_server_record(struct afs_fs_cursor *fc, struct afs_server *server) fc 537 fs/afs/server.c alist = afs_vl_lookup_addrs(fc->vnode->volume->cell, fc->key, fc 542 fs/afs/server.c !(fc->flags & AFS_FS_CURSOR_INTR) && fc 547 fs/afs/server.c fc->error = PTR_ERR(alist); fc 548 fs/afs/server.c _leave(" = f [%d]", fc->error); fc 571 fs/afs/server.c bool afs_check_server_record(struct afs_fs_cursor *fc, struct afs_server *server) fc 590 fs/afs/server.c success = afs_update_server_record(fc, server); fc 598 fs/afs/server.c (fc->flags & AFS_FS_CURSOR_INTR) ? fc 601 fs/afs/server.c fc->error = ret; fc 40 fs/afs/super.c static int afs_init_fs_context(struct fs_context *fc); fc 230 fs/afs/super.c static int afs_parse_source(struct fs_context *fc, struct fs_parameter *param) fc 232 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 312 fs/afs/super.c fc->source = param->string; fc 320 fs/afs/super.c static int afs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 323 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 326 fs/afs/super.c opt = fs_parse(fc, &afs_fs_parameters, param, &result); fc 332 fs/afs/super.c return afs_parse_source(fc, param); fc 357 fs/afs/super.c static int afs_validate_fc(struct fs_context *fc) fc 359 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 399 fs/afs/super.c static int afs_test_super(struct super_block *sb, struct fs_context *fc) fc 401 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 404 fs/afs/super.c return (as->net_ns == fc->net_ns && fc 411 fs/afs/super.c static int afs_dynroot_test_super(struct super_block *sb, struct fs_context *fc) fc 415 fs/afs/super.c return (as->net_ns == fc->net_ns && fc 419 fs/afs/super.c static int afs_set_super(struct super_block *sb, struct fs_context *fc) fc 492 fs/afs/super.c static struct afs_super_info *afs_alloc_sbi(struct fs_context *fc) fc 494 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 499 fs/afs/super.c as->net_ns = get_net(fc->net_ns); fc 543 fs/afs/super.c static int afs_get_tree(struct fs_context *fc) fc 545 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 550 fs/afs/super.c ret = afs_validate_fc(fc); fc 558 fs/afs/super.c as = afs_alloc_sbi(fc); fc 561 fs/afs/super.c fc->s_fs_info = as; fc 564 fs/afs/super.c sb = sget_fc(fc, fc 584 fs/afs/super.c fc->root = dget(sb->s_root); fc 596 fs/afs/super.c static void afs_free_fc(struct fs_context *fc) fc 598 fs/afs/super.c struct afs_fs_context *ctx = fc->fs_private; fc 600 fs/afs/super.c afs_destroy_sbi(fc->s_fs_info); fc 616 fs/afs/super.c static int afs_init_fs_context(struct fs_context *fc) fc 626 fs/afs/super.c ctx->net = afs_net(fc->net_ns); fc 636 fs/afs/super.c fc->fs_private = ctx; fc 637 fs/afs/super.c fc->ops = &afs_context_ops; fc 724 fs/afs/super.c struct afs_fs_cursor fc; fc 746 fs/afs/super.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 747 fs/afs/super.c fc.flags |= AFS_FS_CURSOR_NO_VSLEEP; fc 748 fs/afs/super.c while (afs_select_fileserver(&fc)) { fc 749 fs/afs/super.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 750 fs/afs/super.c afs_fs_get_volume_status(&fc, &vs); fc 753 fs/afs/super.c afs_check_for_remote_deletion(&fc, fc.vnode); fc 754 fs/afs/super.c ret = afs_end_vnode_operation(&fc); fc 284 fs/afs/volume.c int afs_check_volume_status(struct afs_volume *volume, struct afs_fs_cursor *fc) fc 302 fs/afs/volume.c ret = afs_update_volume_status(volume, fc->key); fc 316 fs/afs/volume.c (fc->flags & AFS_FS_CURSOR_INTR) ? fc 359 fs/afs/write.c struct afs_fs_cursor fc; fc 405 fs/afs/write.c if (afs_begin_vnode_operation(&fc, vnode, wbk->key, false)) { fc 408 fs/afs/write.c while (afs_select_fileserver(&fc)) { fc 409 fs/afs/write.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 410 fs/afs/write.c afs_fs_store_data(&fc, mapping, first, last, offset, to, scb); fc 413 fs/afs/write.c afs_check_for_remote_deletion(&fc, vnode); fc 414 fs/afs/write.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 416 fs/afs/write.c if (fc.ac.error == 0) fc 418 fs/afs/write.c ret = afs_end_vnode_operation(&fc); fc 45 fs/afs/xattr.c struct afs_fs_cursor fc; fc 63 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 66 fs/afs/xattr.c while (afs_select_fileserver(&fc)) { fc 67 fs/afs/xattr.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 68 fs/afs/xattr.c acl = afs_fs_fetch_acl(&fc, scb); fc 71 fs/afs/xattr.c afs_check_for_remote_deletion(&fc, fc.vnode); fc 72 fs/afs/xattr.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 74 fs/afs/xattr.c ret = afs_end_vnode_operation(&fc); fc 103 fs/afs/xattr.c struct afs_fs_cursor fc; fc 131 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 134 fs/afs/xattr.c while (afs_select_fileserver(&fc)) { fc 135 fs/afs/xattr.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 136 fs/afs/xattr.c afs_fs_store_acl(&fc, acl, scb); fc 139 fs/afs/xattr.c afs_check_for_remote_deletion(&fc, fc.vnode); fc 140 fs/afs/xattr.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 142 fs/afs/xattr.c ret = afs_end_vnode_operation(&fc); fc 168 fs/afs/xattr.c struct afs_fs_cursor fc; fc 207 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 210 fs/afs/xattr.c while (afs_select_fileserver(&fc)) { fc 211 fs/afs/xattr.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 212 fs/afs/xattr.c yfs_fs_fetch_opaque_acl(&fc, yacl, scb); fc 215 fs/afs/xattr.c afs_check_for_remote_deletion(&fc, fc.vnode); fc 216 fs/afs/xattr.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 218 fs/afs/xattr.c ret = afs_end_vnode_operation(&fc); fc 273 fs/afs/xattr.c struct afs_fs_cursor fc; fc 302 fs/afs/xattr.c if (afs_begin_vnode_operation(&fc, vnode, key, true)) { fc 305 fs/afs/xattr.c while (afs_select_fileserver(&fc)) { fc 306 fs/afs/xattr.c fc.cb_break = afs_calc_vnode_cb_break(vnode); fc 307 fs/afs/xattr.c yfs_fs_store_opaque_acl2(&fc, acl, scb); fc 310 fs/afs/xattr.c afs_check_for_remote_deletion(&fc, fc.vnode); fc 311 fs/afs/xattr.c afs_vnode_commit_status(&fc, vnode, fc.cb_break, fc 313 fs/afs/xattr.c ret = afs_end_vnode_operation(&fc); fc 397 fs/afs/yfsclient.c int yfs_fs_fetch_file_status(struct afs_fs_cursor *fc, struct afs_status_cb *scb, fc 400 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 406 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 415 fs/afs/yfsclient.c fc->ac.error = -ENOMEM; fc 419 fs/afs/yfsclient.c call->key = fc->key; fc 430 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 432 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 433 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 434 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 587 fs/afs/yfsclient.c int yfs_fs_fetch_data(struct afs_fs_cursor *fc, struct afs_status_cb *scb, fc 590 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 596 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode, fc 609 fs/afs/yfsclient.c call->key = fc->key; fc 624 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 626 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 627 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 628 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 674 fs/afs/yfsclient.c int yfs_fs_create_file(struct afs_fs_cursor *fc, fc 681 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 706 fs/afs/yfsclient.c call->key = fc->key; fc 721 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 723 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 724 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 725 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 738 fs/afs/yfsclient.c int yfs_fs_make_dir(struct afs_fs_cursor *fc, fc 745 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 769 fs/afs/yfsclient.c call->key = fc->key; fc 783 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 785 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 786 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 787 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 833 fs/afs/yfsclient.c int yfs_fs_remove_file2(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 837 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 859 fs/afs/yfsclient.c call->key = fc->key; fc 871 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 873 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 874 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 875 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 921 fs/afs/yfsclient.c int yfs_fs_remove(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 925 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 945 fs/afs/yfsclient.c call->key = fc->key; fc 956 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 958 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 959 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 960 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1002 fs/afs/yfsclient.c int yfs_fs_link(struct afs_fs_cursor *fc, struct afs_vnode *vnode, fc 1007 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 1028 fs/afs/yfsclient.c call->key = fc->key; fc 1041 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1043 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1044 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1045 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1090 fs/afs/yfsclient.c int yfs_fs_symlink(struct afs_fs_cursor *fc, fc 1097 fs/afs/yfsclient.c struct afs_vnode *dvnode = fc->vnode; fc 1121 fs/afs/yfsclient.c call->key = fc->key; fc 1136 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1138 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1139 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1140 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1183 fs/afs/yfsclient.c int yfs_fs_rename(struct afs_fs_cursor *fc, fc 1190 fs/afs/yfsclient.c struct afs_vnode *orig_dvnode = fc->vnode; fc 1213 fs/afs/yfsclient.c call->key = fc->key; fc 1227 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1229 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1230 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1231 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1247 fs/afs/yfsclient.c int yfs_fs_store_data(struct afs_fs_cursor *fc, struct address_space *mapping, fc 1252 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1259 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1286 fs/afs/yfsclient.c call->key = fc->key; fc 1306 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1308 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1309 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1310 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1334 fs/afs/yfsclient.c static int yfs_fs_setattr_size(struct afs_fs_cursor *fc, struct iattr *attr, fc 1337 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1343 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1355 fs/afs/yfsclient.c call->key = fc->key; fc 1369 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1371 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1372 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1373 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1380 fs/afs/yfsclient.c int yfs_fs_setattr(struct afs_fs_cursor *fc, struct iattr *attr, fc 1383 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1389 fs/afs/yfsclient.c return yfs_fs_setattr_size(fc, attr, scb); fc 1392 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 1403 fs/afs/yfsclient.c call->key = fc->key; fc 1414 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1416 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1417 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1418 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1564 fs/afs/yfsclient.c int yfs_fs_get_volume_status(struct afs_fs_cursor *fc, fc 1567 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1584 fs/afs/yfsclient.c call->key = fc->key; fc 1594 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1596 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1597 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1598 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1636 fs/afs/yfsclient.c int yfs_fs_set_lock(struct afs_fs_cursor *fc, afs_lock_type_t type, fc 1639 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1655 fs/afs/yfsclient.c call->key = fc->key; fc 1667 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1669 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1670 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1671 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1677 fs/afs/yfsclient.c int yfs_fs_extend_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) fc 1679 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1694 fs/afs/yfsclient.c call->key = fc->key; fc 1705 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1707 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1708 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1709 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1715 fs/afs/yfsclient.c int yfs_fs_release_lock(struct afs_fs_cursor *fc, struct afs_status_cb *scb) fc 1717 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 1732 fs/afs/yfsclient.c call->key = fc->key; fc 1743 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1745 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1746 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1747 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1763 fs/afs/yfsclient.c int yfs_fs_fetch_status(struct afs_fs_cursor *fc, fc 1773 fs/afs/yfsclient.c key_serial(fc->key), fid->vid, fid->vnode); fc 1782 fs/afs/yfsclient.c fc->ac.error = -ENOMEM; fc 1786 fs/afs/yfsclient.c call->key = fc->key; fc 1797 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1799 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1800 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1801 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 1930 fs/afs/yfsclient.c int yfs_fs_inline_bulk_status(struct afs_fs_cursor *fc, fc 1942 fs/afs/yfsclient.c key_serial(fc->key), fids[0].vid, fids[1].vnode, nr_fids); fc 1951 fs/afs/yfsclient.c fc->ac.error = -ENOMEM; fc 1955 fs/afs/yfsclient.c call->key = fc->key; fc 1969 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 1971 fs/afs/yfsclient.c afs_set_fc_call(call, fc); fc 1972 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_NOFS); fc 1973 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 2109 fs/afs/yfsclient.c struct yfs_acl *yfs_fs_fetch_opaque_acl(struct afs_fs_cursor *fc, fc 2113 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 2119 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 2128 fs/afs/yfsclient.c fc->ac.error = -ENOMEM; fc 2132 fs/afs/yfsclient.c call->key = fc->key; fc 2144 fs/afs/yfsclient.c afs_use_fs_server(call, fc->cbi); fc 2146 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_KERNEL); fc 2147 fs/afs/yfsclient.c return (struct yfs_acl *)afs_wait_for_call_to_complete(call, &fc->ac); fc 2163 fs/afs/yfsclient.c int yfs_fs_store_opaque_acl2(struct afs_fs_cursor *fc, const struct afs_acl *acl, fc 2166 fs/afs/yfsclient.c struct afs_vnode *vnode = fc->vnode; fc 2173 fs/afs/yfsclient.c key_serial(fc->key), vnode->fid.vid, vnode->fid.vnode); fc 2183 fs/afs/yfsclient.c fc->ac.error = -ENOMEM; fc 2187 fs/afs/yfsclient.c call->key = fc->key; fc 2203 fs/afs/yfsclient.c afs_make_call(&fc->ac, call, GFP_KERNEL); fc 2204 fs/afs/yfsclient.c return afs_wait_for_call_to_complete(call, &fc->ac); fc 254 fs/aio.c static int aio_init_fs_context(struct fs_context *fc) fc 256 fs/aio.c if (!init_pseudo(fc, AIO_RING_MAGIC)) fc 258 fs/aio.c fc->s_iflags |= SB_I_NOEXEC; fc 43 fs/anon_inodes.c static int anon_inodefs_init_fs_context(struct fs_context *fc) fc 45 fs/anon_inodes.c struct pseudo_fs_context *ctx = init_pseudo(fc, ANON_INODE_FS_MAGIC); fc 825 fs/binfmt_misc.c static int bm_fill_super(struct super_block *sb, struct fs_context *fc) fc 840 fs/binfmt_misc.c static int bm_get_tree(struct fs_context *fc) fc 842 fs/binfmt_misc.c return get_tree_single(fc, bm_fill_super); fc 849 fs/binfmt_misc.c static int bm_init_fs_context(struct fs_context *fc) fc 851 fs/binfmt_misc.c fc->ops = &bm_context_ops; fc 826 fs/block_dev.c static int bd_init_fs_context(struct fs_context *fc) fc 828 fs/block_dev.c struct pseudo_fs_context *ctx = init_pseudo(fc, BDEVFS_MAGIC); fc 831 fs/block_dev.c fc->s_iflags |= SB_I_CGROUPWB; fc 38 fs/btrfs/tests/btrfs-tests.c static int btrfs_test_init_fs_context(struct fs_context *fc) fc 40 fs/btrfs/tests/btrfs-tests.c struct pseudo_fs_context *ctx = init_pseudo(fc, BTRFS_TEST_MAGIC); fc 1137 fs/ceph/caps.c struct ceph_mds_caps *fc; fc 1156 fs/ceph/caps.c msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPS, sizeof(*fc) + extra_len, fc 1164 fs/ceph/caps.c fc = msg->front.iov_base; fc 1165 fs/ceph/caps.c memset(fc, 0, sizeof(*fc)); fc 1167 fs/ceph/caps.c fc->cap_id = cpu_to_le64(arg->cid); fc 1168 fs/ceph/caps.c fc->op = cpu_to_le32(arg->op); fc 1169 fs/ceph/caps.c fc->seq = cpu_to_le32(arg->seq); fc 1170 fs/ceph/caps.c fc->issue_seq = cpu_to_le32(arg->issue_seq); fc 1171 fs/ceph/caps.c fc->migrate_seq = cpu_to_le32(arg->mseq); fc 1172 fs/ceph/caps.c fc->caps = cpu_to_le32(arg->caps); fc 1173 fs/ceph/caps.c fc->wanted = cpu_to_le32(arg->wanted); fc 1174 fs/ceph/caps.c fc->dirty = cpu_to_le32(arg->dirty); fc 1175 fs/ceph/caps.c fc->ino = cpu_to_le64(arg->ino); fc 1176 fs/ceph/caps.c fc->snap_follows = cpu_to_le64(arg->follows); fc 1178 fs/ceph/caps.c fc->size = cpu_to_le64(arg->size); fc 1179 fs/ceph/caps.c fc->max_size = cpu_to_le64(arg->max_size); fc 1180 fs/ceph/caps.c ceph_encode_timespec64(&fc->mtime, &arg->mtime); fc 1181 fs/ceph/caps.c ceph_encode_timespec64(&fc->atime, &arg->atime); fc 1182 fs/ceph/caps.c ceph_encode_timespec64(&fc->ctime, &arg->ctime); fc 1183 fs/ceph/caps.c fc->time_warp_seq = cpu_to_le32(arg->time_warp_seq); fc 1185 fs/ceph/caps.c fc->uid = cpu_to_le32(from_kuid(&init_user_ns, arg->uid)); fc 1186 fs/ceph/caps.c fc->gid = cpu_to_le32(from_kgid(&init_user_ns, arg->gid)); fc 1187 fs/ceph/caps.c fc->mode = cpu_to_le32(arg->mode); fc 1189 fs/ceph/caps.c fc->xattr_version = cpu_to_le64(arg->xattr_version); fc 1192 fs/ceph/caps.c fc->xattr_len = cpu_to_le32(arg->xattr_buf->vec.iov_len); fc 1196 fs/ceph/caps.c p = fc + 1; fc 65 fs/configfs/mount.c static int configfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 101 fs/configfs/mount.c static int configfs_get_tree(struct fs_context *fc) fc 103 fs/configfs/mount.c return get_tree_single(fc, configfs_fill_super); fc 110 fs/configfs/mount.c static int configfs_init_fs_context(struct fs_context *fc) fc 112 fs/configfs/mount.c fc->ops = &configfs_context_ops; fc 510 fs/cramfs/inode.c static int cramfs_reconfigure(struct fs_context *fc) fc 512 fs/cramfs/inode.c sync_filesystem(fc->root->d_sb); fc 513 fs/cramfs/inode.c fc->sb_flags |= SB_RDONLY; fc 517 fs/cramfs/inode.c static int cramfs_read_super(struct super_block *sb, struct fs_context *fc, fc 522 fs/cramfs/inode.c bool silent = fc->sb_flags & SB_SILENT; fc 537 fs/cramfs/inode.c errorf(fc, "cramfs: wrong endianness"); fc 549 fs/cramfs/inode.c errorf(fc, "cramfs: wrong endianness"); fc 551 fs/cramfs/inode.c errorf(fc, "cramfs: wrong magic"); fc 558 fs/cramfs/inode.c errorf(fc, "cramfs: unsupported filesystem features"); fc 564 fs/cramfs/inode.c errorf(fc, "cramfs: root is not a directory"); fc 583 fs/cramfs/inode.c infof(fc, "cramfs: empty filesystem"); fc 588 fs/cramfs/inode.c errorf(fc, "cramfs: bad root offset %lu", root_offset); fc 614 fs/cramfs/inode.c static int cramfs_blkdev_fill_super(struct super_block *sb, struct fs_context *fc) fc 629 fs/cramfs/inode.c err = cramfs_read_super(sb, fc, &super); fc 635 fs/cramfs/inode.c static int cramfs_mtd_fill_super(struct super_block *sb, struct fs_context *fc) fc 657 fs/cramfs/inode.c err = cramfs_read_super(sb, fc, &super); fc 955 fs/cramfs/inode.c static int cramfs_get_tree(struct fs_context *fc) fc 960 fs/cramfs/inode.c ret = get_tree_mtd(fc, cramfs_mtd_fill_super); fc 965 fs/cramfs/inode.c ret = get_tree_bdev(fc, cramfs_blkdev_fill_super); fc 977 fs/cramfs/inode.c static int cramfs_init_fs_context(struct fs_context *fc) fc 979 fs/cramfs/inode.c fc->ops = &cramfs_context_ops; fc 190 fs/efivarfs/super.c static int efivarfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 223 fs/efivarfs/super.c static int efivarfs_get_tree(struct fs_context *fc) fc 225 fs/efivarfs/super.c return get_tree_single(fc, efivarfs_fill_super); fc 232 fs/efivarfs/super.c static int efivarfs_init_fs_context(struct fs_context *fc) fc 234 fs/efivarfs/super.c fc->ops = &efivarfs_context_ops; fc 39 fs/fs_context.c static int legacy_init_fs_context(struct fs_context *fc); fc 84 fs/fs_context.c static int vfs_parse_sb_flag(struct fs_context *fc, const char *key) fc 95 fs/fs_context.c fc->sb_flags |= token; fc 96 fs/fs_context.c fc->sb_flags_mask |= token; fc 102 fs/fs_context.c fc->sb_flags &= ~token; fc 103 fs/fs_context.c fc->sb_flags_mask |= token; fc 126 fs/fs_context.c int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) fc 131 fs/fs_context.c return invalf(fc, "Unnamed parameter\n"); fc 133 fs/fs_context.c ret = vfs_parse_sb_flag(fc, param->key); fc 137 fs/fs_context.c ret = security_fs_context_parse_param(fc, param); fc 144 fs/fs_context.c if (fc->ops->parse_param) { fc 145 fs/fs_context.c ret = fc->ops->parse_param(fc, param); fc 155 fs/fs_context.c return invalf(fc, "VFS: Non-string source"); fc 156 fs/fs_context.c if (fc->source) fc 157 fs/fs_context.c return invalf(fc, "VFS: Multiple sources"); fc 158 fs/fs_context.c fc->source = param->string; fc 163 fs/fs_context.c return invalf(fc, "%s: Unknown parameter '%s'", fc 164 fs/fs_context.c fc->fs_type->name, param->key); fc 171 fs/fs_context.c int vfs_parse_fs_string(struct fs_context *fc, const char *key, fc 188 fs/fs_context.c ret = vfs_parse_fs_param(fc, ¶m); fc 205 fs/fs_context.c int generic_parse_monolithic(struct fs_context *fc, void *data) fc 213 fs/fs_context.c ret = security_sb_eat_lsm_opts(options, &fc->security); fc 228 fs/fs_context.c ret = vfs_parse_fs_string(fc, key, value, v_len); fc 258 fs/fs_context.c struct fs_context *fc; fc 261 fs/fs_context.c fc = kzalloc(sizeof(struct fs_context), GFP_KERNEL); fc 262 fs/fs_context.c if (!fc) fc 265 fs/fs_context.c fc->purpose = purpose; fc 266 fs/fs_context.c fc->sb_flags = sb_flags; fc 267 fs/fs_context.c fc->sb_flags_mask = sb_flags_mask; fc 268 fs/fs_context.c fc->fs_type = get_filesystem(fs_type); fc 269 fs/fs_context.c fc->cred = get_current_cred(); fc 270 fs/fs_context.c fc->net_ns = get_net(current->nsproxy->net_ns); fc 272 fs/fs_context.c mutex_init(&fc->uapi_mutex); fc 276 fs/fs_context.c fc->user_ns = get_user_ns(fc->cred->user_ns); fc 279 fs/fs_context.c fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); fc 283 fs/fs_context.c fc->user_ns = get_user_ns(reference->d_sb->s_user_ns); fc 284 fs/fs_context.c fc->root = dget(reference); fc 289 fs/fs_context.c init_fs_context = fc->fs_type->init_fs_context; fc 293 fs/fs_context.c ret = init_fs_context(fc); fc 296 fs/fs_context.c fc->need_free = true; fc 297 fs/fs_context.c return fc; fc 300 fs/fs_context.c put_fs_context(fc); fc 328 fs/fs_context.c void fc_drop_locked(struct fs_context *fc) fc 330 fs/fs_context.c struct super_block *sb = fc->root->d_sb; fc 331 fs/fs_context.c dput(fc->root); fc 332 fs/fs_context.c fc->root = NULL; fc 336 fs/fs_context.c static void legacy_fs_context_free(struct fs_context *fc); fc 344 fs/fs_context.c struct fs_context *fc; fc 350 fs/fs_context.c fc = kmemdup(src_fc, sizeof(struct fs_context), GFP_KERNEL); fc 351 fs/fs_context.c if (!fc) fc 354 fs/fs_context.c mutex_init(&fc->uapi_mutex); fc 356 fs/fs_context.c fc->fs_private = NULL; fc 357 fs/fs_context.c fc->s_fs_info = NULL; fc 358 fs/fs_context.c fc->source = NULL; fc 359 fs/fs_context.c fc->security = NULL; fc 360 fs/fs_context.c get_filesystem(fc->fs_type); fc 361 fs/fs_context.c get_net(fc->net_ns); fc 362 fs/fs_context.c get_user_ns(fc->user_ns); fc 363 fs/fs_context.c get_cred(fc->cred); fc 364 fs/fs_context.c if (fc->log) fc 365 fs/fs_context.c refcount_inc(&fc->log->usage); fc 368 fs/fs_context.c ret = fc->ops->dup(fc, src_fc); fc 372 fs/fs_context.c ret = security_fs_context_dup(fc, src_fc); fc 375 fs/fs_context.c return fc; fc 378 fs/fs_context.c put_fs_context(fc); fc 388 fs/fs_context.c void logfc(struct fs_context *fc, const char *fmt, ...) fc 391 fs/fs_context.c struct fc_log *log = fc ? fc->log : NULL; fc 469 fs/fs_context.c static void put_fc_log(struct fs_context *fc) fc 471 fs/fs_context.c struct fc_log *log = fc->log; fc 476 fs/fs_context.c fc->log = NULL; fc 489 fs/fs_context.c void put_fs_context(struct fs_context *fc) fc 493 fs/fs_context.c if (fc->root) { fc 494 fs/fs_context.c sb = fc->root->d_sb; fc 495 fs/fs_context.c dput(fc->root); fc 496 fs/fs_context.c fc->root = NULL; fc 500 fs/fs_context.c if (fc->need_free && fc->ops && fc->ops->free) fc 501 fs/fs_context.c fc->ops->free(fc); fc 503 fs/fs_context.c security_free_mnt_opts(&fc->security); fc 504 fs/fs_context.c put_net(fc->net_ns); fc 505 fs/fs_context.c put_user_ns(fc->user_ns); fc 506 fs/fs_context.c put_cred(fc->cred); fc 507 fs/fs_context.c put_fc_log(fc); fc 508 fs/fs_context.c put_filesystem(fc->fs_type); fc 509 fs/fs_context.c kfree(fc->source); fc 510 fs/fs_context.c kfree(fc); fc 517 fs/fs_context.c static void legacy_fs_context_free(struct fs_context *fc) fc 519 fs/fs_context.c struct legacy_fs_context *ctx = fc->fs_private; fc 531 fs/fs_context.c static int legacy_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc) fc 549 fs/fs_context.c fc->fs_private = ctx; fc 557 fs/fs_context.c static int legacy_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 559 fs/fs_context.c struct legacy_fs_context *ctx = fc->fs_private; fc 565 fs/fs_context.c return invalf(fc, "VFS: Legacy: Non-string source"); fc 566 fs/fs_context.c if (fc->source) fc 567 fs/fs_context.c return invalf(fc, "VFS: Legacy: Multiple sources"); fc 568 fs/fs_context.c fc->source = param->string; fc 574 fs/fs_context.c return invalf(fc, "VFS: Legacy: Can't mix monolithic and individual options"); fc 584 fs/fs_context.c return invalf(fc, "VFS: Legacy: Parameter type for '%s' not supported", fc 589 fs/fs_context.c return invalf(fc, "VFS: Legacy: Cumulative options too large"); fc 593 fs/fs_context.c return invalf(fc, "VFS: Legacy: Option '%s' contained comma", fc 619 fs/fs_context.c static int legacy_parse_monolithic(struct fs_context *fc, void *data) fc 621 fs/fs_context.c struct legacy_fs_context *ctx = fc->fs_private; fc 633 fs/fs_context.c if (fc->fs_type->fs_flags & FS_BINARY_MOUNTDATA) fc 635 fs/fs_context.c return security_sb_eat_lsm_opts(ctx->legacy_data, &fc->security); fc 641 fs/fs_context.c static int legacy_get_tree(struct fs_context *fc) fc 643 fs/fs_context.c struct legacy_fs_context *ctx = fc->fs_private; fc 647 fs/fs_context.c root = fc->fs_type->mount(fc->fs_type, fc->sb_flags, fc 648 fs/fs_context.c fc->source, ctx->legacy_data); fc 655 fs/fs_context.c fc->root = root; fc 662 fs/fs_context.c static int legacy_reconfigure(struct fs_context *fc) fc 664 fs/fs_context.c struct legacy_fs_context *ctx = fc->fs_private; fc 665 fs/fs_context.c struct super_block *sb = fc->root->d_sb; fc 670 fs/fs_context.c return sb->s_op->remount_fs(sb, &fc->sb_flags, fc 687 fs/fs_context.c static int legacy_init_fs_context(struct fs_context *fc) fc 689 fs/fs_context.c fc->fs_private = kzalloc(sizeof(struct legacy_fs_context), GFP_KERNEL); fc 690 fs/fs_context.c if (!fc->fs_private) fc 692 fs/fs_context.c fc->ops = &legacy_fs_context_ops; fc 696 fs/fs_context.c int parse_monolithic_mount_data(struct fs_context *fc, void *data) fc 700 fs/fs_context.c monolithic_mount_data = fc->ops->parse_monolithic; fc 704 fs/fs_context.c return monolithic_mount_data(fc, data); fc 720 fs/fs_context.c void vfs_clean_context(struct fs_context *fc) fc 722 fs/fs_context.c if (fc->need_free && fc->ops && fc->ops->free) fc 723 fs/fs_context.c fc->ops->free(fc); fc 724 fs/fs_context.c fc->need_free = false; fc 725 fs/fs_context.c fc->fs_private = NULL; fc 726 fs/fs_context.c fc->s_fs_info = NULL; fc 727 fs/fs_context.c fc->sb_flags = 0; fc 728 fs/fs_context.c security_free_mnt_opts(&fc->security); fc 729 fs/fs_context.c kfree(fc->source); fc 730 fs/fs_context.c fc->source = NULL; fc 732 fs/fs_context.c fc->purpose = FS_CONTEXT_FOR_RECONFIGURE; fc 733 fs/fs_context.c fc->phase = FS_CONTEXT_AWAITING_RECONF; fc 736 fs/fs_context.c int finish_clean_context(struct fs_context *fc) fc 740 fs/fs_context.c if (fc->phase != FS_CONTEXT_AWAITING_RECONF) fc 743 fs/fs_context.c if (fc->fs_type->init_fs_context) fc 744 fs/fs_context.c error = fc->fs_type->init_fs_context(fc); fc 746 fs/fs_context.c error = legacy_init_fs_context(fc); fc 748 fs/fs_context.c fc->phase = FS_CONTEXT_FAILED; fc 751 fs/fs_context.c fc->need_free = true; fc 752 fs/fs_context.c fc->phase = FS_CONTEXT_RECONF_PARAMS; fc 79 fs/fs_parser.c int fs_parse(struct fs_context *fc, fc 113 fs/fs_parser.c warnf(fc, "%s: Deprecated parameter '%s'", fc 149 fs/fs_parser.c return invalf(fc, "%s: Unexpected value for '%s'", fc 240 fs/fs_parser.c return invalf(fc, "%s: Bad value for '%s'", desc->name, param->key); fc 253 fs/fs_parser.c int fs_lookup_param(struct fs_context *fc, fc 278 fs/fs_parser.c return invalf(fc, "%s: not usable as path", param->key); fc 284 fs/fs_parser.c errorf(fc, "%s: Lookup failure for '%s'", param->key, f->name); fc 293 fs/fs_parser.c errorf(fc, "%s: Non-blockdev passed as '%s'", fc 27 fs/fsopen.c struct fs_context *fc = file->private_data; fc 28 fs/fsopen.c struct fc_log *log = fc->log; fc 35 fs/fsopen.c ret = mutex_lock_interruptible(&fc->uapi_mutex); fc 40 fs/fsopen.c mutex_unlock(&fc->uapi_mutex); fc 50 fs/fsopen.c mutex_unlock(&fc->uapi_mutex); fc 69 fs/fsopen.c struct fs_context *fc = file->private_data; fc 71 fs/fsopen.c if (fc) { fc 73 fs/fsopen.c put_fs_context(fc); fc 87 fs/fsopen.c static int fscontext_create_fd(struct fs_context *fc, unsigned int o_flags) fc 91 fs/fsopen.c fd = anon_inode_getfd("[fscontext]", &fscontext_fops, fc, fc 94 fs/fsopen.c put_fs_context(fc); fc 98 fs/fsopen.c static int fscontext_alloc_log(struct fs_context *fc) fc 100 fs/fsopen.c fc->log = kzalloc(sizeof(*fc->log), GFP_KERNEL); fc 101 fs/fsopen.c if (!fc->log) fc 103 fs/fsopen.c refcount_set(&fc->log->usage, 1); fc 104 fs/fsopen.c fc->log->owner = fc->fs_type->owner; fc 118 fs/fsopen.c struct fs_context *fc; fc 137 fs/fsopen.c fc = fs_context_for_mount(fs_type, 0); fc 139 fs/fsopen.c if (IS_ERR(fc)) fc 140 fs/fsopen.c return PTR_ERR(fc); fc 142 fs/fsopen.c fc->phase = FS_CONTEXT_CREATE_PARAMS; fc 144 fs/fsopen.c ret = fscontext_alloc_log(fc); fc 148 fs/fsopen.c return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0); fc 151 fs/fsopen.c put_fs_context(fc); fc 160 fs/fsopen.c struct fs_context *fc; fc 189 fs/fsopen.c fc = fs_context_for_reconfigure(target.dentry, 0, 0); fc 190 fs/fsopen.c if (IS_ERR(fc)) { fc 191 fs/fsopen.c ret = PTR_ERR(fc); fc 195 fs/fsopen.c fc->phase = FS_CONTEXT_RECONF_PARAMS; fc 197 fs/fsopen.c ret = fscontext_alloc_log(fc); fc 202 fs/fsopen.c return fscontext_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0); fc 205 fs/fsopen.c put_fs_context(fc); fc 216 fs/fsopen.c static int vfs_fsconfig_locked(struct fs_context *fc, int cmd, fc 222 fs/fsopen.c ret = finish_clean_context(fc); fc 227 fs/fsopen.c if (fc->phase != FS_CONTEXT_CREATE_PARAMS) fc 229 fs/fsopen.c if (!mount_capable(fc)) fc 231 fs/fsopen.c fc->phase = FS_CONTEXT_CREATING; fc 232 fs/fsopen.c ret = vfs_get_tree(fc); fc 235 fs/fsopen.c sb = fc->root->d_sb; fc 238 fs/fsopen.c fc_drop_locked(fc); fc 242 fs/fsopen.c fc->phase = FS_CONTEXT_AWAITING_MOUNT; fc 245 fs/fsopen.c if (fc->phase != FS_CONTEXT_RECONF_PARAMS) fc 247 fs/fsopen.c fc->phase = FS_CONTEXT_RECONFIGURING; fc 248 fs/fsopen.c sb = fc->root->d_sb; fc 254 fs/fsopen.c ret = reconfigure_super(fc); fc 258 fs/fsopen.c vfs_clean_context(fc); fc 261 fs/fsopen.c if (fc->phase != FS_CONTEXT_CREATE_PARAMS && fc 262 fs/fsopen.c fc->phase != FS_CONTEXT_RECONF_PARAMS) fc 265 fs/fsopen.c return vfs_parse_fs_param(fc, param); fc 267 fs/fsopen.c fc->phase = FS_CONTEXT_FAILED; fc 321 fs/fsopen.c struct fs_context *fc; fc 370 fs/fsopen.c fc = f.file->private_data; fc 371 fs/fsopen.c if (fc->ops == &legacy_fs_context_ops) { fc 443 fs/fsopen.c ret = mutex_lock_interruptible(&fc->uapi_mutex); fc 445 fs/fsopen.c ret = vfs_fsconfig_locked(fc, cmd, ¶m); fc 446 fs/fsopen.c mutex_unlock(&fc->uapi_mutex); fc 16 fs/fuse/acl.c struct fuse_conn *fc = get_fuse_conn(inode); fc 22 fs/fuse/acl.c if (!fc->posix_acl || fc->no_getxattr) fc 37 fs/fuse/acl.c acl = posix_acl_from_xattr(fc->user_ns, value, size); fc 39 fs/fuse/acl.c (size == -EOPNOTSUPP && fc->no_getxattr)) fc 52 fs/fuse/acl.c struct fuse_conn *fc = get_fuse_conn(inode); fc 56 fs/fuse/acl.c if (!fc->posix_acl || fc->no_setxattr) fc 84 fs/fuse/acl.c ret = posix_acl_to_xattr(fc->user_ns, acl, value, size); fc 25 fs/fuse/control.c struct fuse_conn *fc; fc 27 fs/fuse/control.c fc = file_inode(file)->i_private; fc 28 fs/fuse/control.c if (fc) fc 29 fs/fuse/control.c fc = fuse_conn_get(fc); fc 31 fs/fuse/control.c return fc; fc 37 fs/fuse/control.c struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fc 38 fs/fuse/control.c if (fc) { fc 39 fs/fuse/control.c if (fc->abort_err) fc 40 fs/fuse/control.c fc->aborted = true; fc 41 fs/fuse/control.c fuse_abort_conn(fc); fc 42 fs/fuse/control.c fuse_conn_put(fc); fc 55 fs/fuse/control.c struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fc 56 fs/fuse/control.c if (!fc) fc 59 fs/fuse/control.c value = atomic_read(&fc->num_waiting); fc 61 fs/fuse/control.c fuse_conn_put(fc); fc 106 fs/fuse/control.c struct fuse_conn *fc; fc 109 fs/fuse/control.c fc = fuse_ctl_file_conn_get(file); fc 110 fs/fuse/control.c if (!fc) fc 113 fs/fuse/control.c val = READ_ONCE(fc->max_background); fc 114 fs/fuse/control.c fuse_conn_put(fc); fc 129 fs/fuse/control.c struct fuse_conn *fc = fuse_ctl_file_conn_get(file); fc 130 fs/fuse/control.c if (fc) { fc 131 fs/fuse/control.c spin_lock(&fc->bg_lock); fc 132 fs/fuse/control.c fc->max_background = val; fc 133 fs/fuse/control.c fc->blocked = fc->num_background >= fc->max_background; fc 134 fs/fuse/control.c if (!fc->blocked) fc 135 fs/fuse/control.c wake_up(&fc->blocked_waitq); fc 136 fs/fuse/control.c spin_unlock(&fc->bg_lock); fc 137 fs/fuse/control.c fuse_conn_put(fc); fc 148 fs/fuse/control.c struct fuse_conn *fc; fc 151 fs/fuse/control.c fc = fuse_ctl_file_conn_get(file); fc 152 fs/fuse/control.c if (!fc) fc 155 fs/fuse/control.c val = READ_ONCE(fc->congestion_threshold); fc 156 fs/fuse/control.c fuse_conn_put(fc); fc 166 fs/fuse/control.c struct fuse_conn *fc; fc 173 fs/fuse/control.c fc = fuse_ctl_file_conn_get(file); fc 174 fs/fuse/control.c if (!fc) fc 177 fs/fuse/control.c spin_lock(&fc->bg_lock); fc 178 fs/fuse/control.c fc->congestion_threshold = val; fc 179 fs/fuse/control.c if (fc->sb) { fc 180 fs/fuse/control.c if (fc->num_background < fc->congestion_threshold) { fc 181 fs/fuse/control.c clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC); fc 182 fs/fuse/control.c clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC); fc 184 fs/fuse/control.c set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC); fc 185 fs/fuse/control.c set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC); fc 188 fs/fuse/control.c spin_unlock(&fc->bg_lock); fc 189 fs/fuse/control.c fuse_conn_put(fc); fc 221 fs/fuse/control.c struct fuse_conn *fc, fc 230 fs/fuse/control.c BUG_ON(fc->ctl_ndents >= FUSE_CTL_NUM_DENTRIES); fc 243 fs/fuse/control.c inode->i_uid = fc->user_id; fc 244 fs/fuse/control.c inode->i_gid = fc->group_id; fc 251 fs/fuse/control.c inode->i_private = fc; fc 254 fs/fuse/control.c fc->ctl_dentry[fc->ctl_ndents++] = dentry; fc 263 fs/fuse/control.c int fuse_ctl_add_conn(struct fuse_conn *fc) fc 273 fs/fuse/control.c sprintf(name, "%u", fc->dev); fc 274 fs/fuse/control.c parent = fuse_ctl_add_dentry(parent, fc, name, S_IFDIR | 0500, 2, fc 280 fs/fuse/control.c if (!fuse_ctl_add_dentry(parent, fc, "waiting", S_IFREG | 0400, 1, fc 282 fs/fuse/control.c !fuse_ctl_add_dentry(parent, fc, "abort", S_IFREG | 0200, 1, fc 284 fs/fuse/control.c !fuse_ctl_add_dentry(parent, fc, "max_background", S_IFREG | 0600, fc 286 fs/fuse/control.c !fuse_ctl_add_dentry(parent, fc, "congestion_threshold", fc 294 fs/fuse/control.c fuse_ctl_remove_conn(fc); fc 302 fs/fuse/control.c void fuse_ctl_remove_conn(struct fuse_conn *fc) fc 309 fs/fuse/control.c for (i = fc->ctl_ndents - 1; i >= 0; i--) { fc 310 fs/fuse/control.c struct dentry *dentry = fc->ctl_dentry[i]; fc 324 fs/fuse/control.c struct fuse_conn *fc; fc 334 fs/fuse/control.c list_for_each_entry(fc, &fuse_conn_list, entry) { fc 335 fs/fuse/control.c err = fuse_ctl_add_conn(fc); fc 347 fs/fuse/control.c static int fuse_ctl_get_tree(struct fs_context *fc) fc 349 fs/fuse/control.c return get_tree_single(fc, fuse_ctl_fill_super); fc 356 fs/fuse/control.c static int fuse_ctl_init_fs_context(struct fs_context *fc) fc 358 fs/fuse/control.c fc->ops = &fuse_ctl_context_ops; fc 364 fs/fuse/control.c struct fuse_conn *fc; fc 368 fs/fuse/control.c list_for_each_entry(fc, &fuse_conn_list, entry) fc 369 fs/fuse/control.c fc->ctl_ndents = 0; fc 60 fs/fuse/cuse.c struct fuse_conn fc; /* fuse connection */ fc 72 fs/fuse/cuse.c static struct cuse_conn *fc_to_cc(struct fuse_conn *fc) fc 74 fs/fuse/cuse.c return container_of(fc, struct cuse_conn, fc); fc 123 fs/fuse/cuse.c fuse_conn_get(&pos->fc); fc 137 fs/fuse/cuse.c rc = fuse_do_open(&cc->fc, 0, file, 0); fc 139 fs/fuse/cuse.c fuse_conn_put(&cc->fc); fc 146 fs/fuse/cuse.c struct fuse_conn *fc = ff->fc; fc 149 fs/fuse/cuse.c fuse_conn_put(fc); fc 158 fs/fuse/cuse.c struct cuse_conn *cc = fc_to_cc(ff->fc); fc 171 fs/fuse/cuse.c struct cuse_conn *cc = fc_to_cc(ff->fc); fc 316 fs/fuse/cuse.c static void cuse_process_init_reply(struct fuse_conn *fc, fc 321 fs/fuse/cuse.c struct cuse_conn *cc = fc_to_cc(fc), *pos; fc 333 fs/fuse/cuse.c fc->minor = arg->minor; fc 334 fs/fuse/cuse.c fc->max_read = max_t(unsigned, arg->max_read, 4096); fc 335 fs/fuse/cuse.c fc->max_write = max_t(unsigned, arg->max_write, 4096); fc 419 fs/fuse/cuse.c fuse_abort_conn(fc); fc 427 fs/fuse/cuse.c struct fuse_conn *fc = &cc->fc; fc 463 fs/fuse/cuse.c rc = fuse_simple_background(fc, &ap->args, GFP_KERNEL); fc 473 fs/fuse/cuse.c static void cuse_fc_release(struct fuse_conn *fc) fc 475 fs/fuse/cuse.c struct cuse_conn *cc = fc_to_cc(fc); fc 476 fs/fuse/cuse.c kfree_rcu(cc, fc.rcu); fc 509 fs/fuse/cuse.c fuse_conn_init(&cc->fc, file->f_cred->user_ns, &fuse_dev_fiq_ops, NULL); fc 511 fs/fuse/cuse.c fud = fuse_dev_alloc_install(&cc->fc); fc 518 fs/fuse/cuse.c cc->fc.release = cuse_fc_release; fc 520 fs/fuse/cuse.c cc->fc.initialized = 1; fc 524 fs/fuse/cuse.c fuse_conn_put(&cc->fc); fc 546 fs/fuse/cuse.c struct cuse_conn *cc = fc_to_cc(fud->fc); fc 562 fs/fuse/cuse.c fuse_conn_put(&cc->fc); fc 583 fs/fuse/cuse.c return sprintf(buf, "%d\n", atomic_read(&cc->fc.num_waiting)); fc 593 fs/fuse/cuse.c fuse_abort_conn(&cc->fc); fc 77 fs/fuse/dev.c void fuse_set_initialized(struct fuse_conn *fc) fc 81 fs/fuse/dev.c fc->initialized = 1; fc 84 fs/fuse/dev.c static bool fuse_block_alloc(struct fuse_conn *fc, bool for_background) fc 86 fs/fuse/dev.c return !fc->initialized || (for_background && fc->blocked); fc 89 fs/fuse/dev.c static void fuse_drop_waiting(struct fuse_conn *fc) fc 96 fs/fuse/dev.c if (atomic_dec_and_test(&fc->num_waiting) && fc 97 fs/fuse/dev.c !READ_ONCE(fc->connected)) { fc 99 fs/fuse/dev.c wake_up_all(&fc->blocked_waitq); fc 103 fs/fuse/dev.c static void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req); fc 105 fs/fuse/dev.c static struct fuse_req *fuse_get_req(struct fuse_conn *fc, bool for_background) fc 109 fs/fuse/dev.c atomic_inc(&fc->num_waiting); fc 111 fs/fuse/dev.c if (fuse_block_alloc(fc, for_background)) { fc 113 fs/fuse/dev.c if (wait_event_killable_exclusive(fc->blocked_waitq, fc 114 fs/fuse/dev.c !fuse_block_alloc(fc, for_background))) fc 121 fs/fuse/dev.c if (!fc->connected) fc 125 fs/fuse/dev.c if (fc->conn_error) fc 132 fs/fuse/dev.c wake_up(&fc->blocked_waitq); fc 136 fs/fuse/dev.c req->in.h.uid = from_kuid(fc->user_ns, current_fsuid()); fc 137 fs/fuse/dev.c req->in.h.gid = from_kgid(fc->user_ns, current_fsgid()); fc 138 fs/fuse/dev.c req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); fc 146 fs/fuse/dev.c fuse_put_request(fc, req); fc 152 fs/fuse/dev.c fuse_drop_waiting(fc); fc 156 fs/fuse/dev.c static void fuse_put_request(struct fuse_conn *fc, struct fuse_req *req) fc 164 fs/fuse/dev.c spin_lock(&fc->bg_lock); fc 165 fs/fuse/dev.c if (!fc->blocked) fc 166 fs/fuse/dev.c wake_up(&fc->blocked_waitq); fc 167 fs/fuse/dev.c spin_unlock(&fc->bg_lock); fc 172 fs/fuse/dev.c fuse_drop_waiting(fc); fc 232 fs/fuse/dev.c void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, fc 235 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 251 fs/fuse/dev.c static void flush_bg_queue(struct fuse_conn *fc) fc 253 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 255 fs/fuse/dev.c while (fc->active_background < fc->max_background && fc 256 fs/fuse/dev.c !list_empty(&fc->bg_queue)) { fc 259 fs/fuse/dev.c req = list_first_entry(&fc->bg_queue, struct fuse_req, list); fc 261 fs/fuse/dev.c fc->active_background++; fc 276 fs/fuse/dev.c void fuse_request_end(struct fuse_conn *fc, struct fuse_req *req) fc 278 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 296 fs/fuse/dev.c spin_lock(&fc->bg_lock); fc 298 fs/fuse/dev.c if (fc->num_background == fc->max_background) { fc 299 fs/fuse/dev.c fc->blocked = 0; fc 300 fs/fuse/dev.c wake_up(&fc->blocked_waitq); fc 301 fs/fuse/dev.c } else if (!fc->blocked) { fc 308 fs/fuse/dev.c if (waitqueue_active(&fc->blocked_waitq)) fc 309 fs/fuse/dev.c wake_up(&fc->blocked_waitq); fc 312 fs/fuse/dev.c if (fc->num_background == fc->congestion_threshold && fc->sb) { fc 313 fs/fuse/dev.c clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC); fc 314 fs/fuse/dev.c clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC); fc 316 fs/fuse/dev.c fc->num_background--; fc 317 fs/fuse/dev.c fc->active_background--; fc 318 fs/fuse/dev.c flush_bg_queue(fc); fc 319 fs/fuse/dev.c spin_unlock(&fc->bg_lock); fc 326 fs/fuse/dev.c req->args->end(fc, req->args, req->out.h.error); fc 328 fs/fuse/dev.c fuse_put_request(fc, req); fc 360 fs/fuse/dev.c static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) fc 362 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 365 fs/fuse/dev.c if (!fc->no_interrupt) { fc 405 fs/fuse/dev.c static void __fuse_request_send(struct fuse_conn *fc, struct fuse_req *req) fc 407 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 421 fs/fuse/dev.c request_wait_answer(fc, req); fc 427 fs/fuse/dev.c static void fuse_adjust_compat(struct fuse_conn *fc, struct fuse_args *args) fc 429 fs/fuse/dev.c if (fc->minor < 4 && args->opcode == FUSE_STATFS) fc 432 fs/fuse/dev.c if (fc->minor < 9) { fc 448 fs/fuse/dev.c if (fc->minor < 12) { fc 460 fs/fuse/dev.c static void fuse_force_creds(struct fuse_conn *fc, struct fuse_req *req) fc 462 fs/fuse/dev.c req->in.h.uid = from_kuid_munged(fc->user_ns, current_fsuid()); fc 463 fs/fuse/dev.c req->in.h.gid = from_kgid_munged(fc->user_ns, current_fsgid()); fc 464 fs/fuse/dev.c req->in.h.pid = pid_nr_ns(task_pid(current), fc->pid_ns); fc 476 fs/fuse/dev.c ssize_t fuse_simple_request(struct fuse_conn *fc, struct fuse_args *args) fc 482 fs/fuse/dev.c atomic_inc(&fc->num_waiting); fc 486 fs/fuse/dev.c fuse_force_creds(fc, req); fc 492 fs/fuse/dev.c req = fuse_get_req(fc, false); fc 498 fs/fuse/dev.c fuse_adjust_compat(fc, args); fc 503 fs/fuse/dev.c __fuse_request_send(fc, req); fc 509 fs/fuse/dev.c fuse_put_request(fc, req); fc 514 fs/fuse/dev.c static bool fuse_request_queue_background(struct fuse_conn *fc, fc 522 fs/fuse/dev.c atomic_inc(&fc->num_waiting); fc 525 fs/fuse/dev.c spin_lock(&fc->bg_lock); fc 526 fs/fuse/dev.c if (likely(fc->connected)) { fc 527 fs/fuse/dev.c fc->num_background++; fc 528 fs/fuse/dev.c if (fc->num_background == fc->max_background) fc 529 fs/fuse/dev.c fc->blocked = 1; fc 530 fs/fuse/dev.c if (fc->num_background == fc->congestion_threshold && fc->sb) { fc 531 fs/fuse/dev.c set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC); fc 532 fs/fuse/dev.c set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC); fc 534 fs/fuse/dev.c list_add_tail(&req->list, &fc->bg_queue); fc 535 fs/fuse/dev.c flush_bg_queue(fc); fc 538 fs/fuse/dev.c spin_unlock(&fc->bg_lock); fc 543 fs/fuse/dev.c int fuse_simple_background(struct fuse_conn *fc, struct fuse_args *args, fc 556 fs/fuse/dev.c req = fuse_get_req(fc, true); fc 563 fs/fuse/dev.c if (!fuse_request_queue_background(fc, req)) { fc 564 fs/fuse/dev.c fuse_put_request(fc, req); fc 572 fs/fuse/dev.c static int fuse_simple_notify_reply(struct fuse_conn *fc, fc 576 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 579 fs/fuse/dev.c req = fuse_get_req(fc, false); fc 594 fs/fuse/dev.c fuse_put_request(fc, req); fc 1156 fs/fuse/dev.c static int fuse_read_forget(struct fuse_conn *fc, struct fuse_iqueue *fiq, fc 1161 fs/fuse/dev.c if (fc->minor < 16 || fiq->forget_list_head.next->next == NULL) fc 1180 fs/fuse/dev.c struct fuse_conn *fc = fud->fc; fc 1181 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 1203 fs/fuse/dev.c fc->max_write)) fc 1222 fs/fuse/dev.c err = fc->aborted ? -ECONNABORTED : -ENODEV; fc 1234 fs/fuse/dev.c return fuse_read_forget(fc, fiq, cs, nbytes); fc 1254 fs/fuse/dev.c fuse_request_end(fc, req); fc 1269 fs/fuse/dev.c err = fc->aborted ? -ECONNABORTED : -ENODEV; fc 1289 fs/fuse/dev.c fuse_put_request(fc, req); fc 1297 fs/fuse/dev.c fuse_request_end(fc, req); fc 1384 fs/fuse/dev.c static int fuse_notify_poll(struct fuse_conn *fc, unsigned int size, fc 1398 fs/fuse/dev.c return fuse_notify_poll_wakeup(fc, &outarg); fc 1405 fs/fuse/dev.c static int fuse_notify_inval_inode(struct fuse_conn *fc, unsigned int size, fc 1419 fs/fuse/dev.c down_read(&fc->killsb); fc 1421 fs/fuse/dev.c if (fc->sb) { fc 1422 fs/fuse/dev.c err = fuse_reverse_inval_inode(fc->sb, outarg.ino, fc 1425 fs/fuse/dev.c up_read(&fc->killsb); fc 1433 fs/fuse/dev.c static int fuse_notify_inval_entry(struct fuse_conn *fc, unsigned int size, fc 1469 fs/fuse/dev.c down_read(&fc->killsb); fc 1471 fs/fuse/dev.c if (fc->sb) fc 1472 fs/fuse/dev.c err = fuse_reverse_inval_entry(fc->sb, outarg.parent, 0, &name); fc 1473 fs/fuse/dev.c up_read(&fc->killsb); fc 1483 fs/fuse/dev.c static int fuse_notify_delete(struct fuse_conn *fc, unsigned int size, fc 1519 fs/fuse/dev.c down_read(&fc->killsb); fc 1521 fs/fuse/dev.c if (fc->sb) fc 1522 fs/fuse/dev.c err = fuse_reverse_inval_entry(fc->sb, outarg.parent, fc 1524 fs/fuse/dev.c up_read(&fc->killsb); fc 1534 fs/fuse/dev.c static int fuse_notify_store(struct fuse_conn *fc, unsigned int size, fc 1562 fs/fuse/dev.c down_read(&fc->killsb); fc 1565 fs/fuse/dev.c if (!fc->sb) fc 1568 fs/fuse/dev.c inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid); fc 1614 fs/fuse/dev.c up_read(&fc->killsb); fc 1625 fs/fuse/dev.c static void fuse_retrieve_end(struct fuse_conn *fc, struct fuse_args *args, fc 1635 fs/fuse/dev.c static int fuse_retrieve(struct fuse_conn *fc, struct inode *inode, fc 1654 fs/fuse/dev.c num = min(outarg->size, fc->max_write); fc 1661 fs/fuse/dev.c num_pages = min(num_pages, fc->max_pages); fc 1707 fs/fuse/dev.c err = fuse_simple_notify_reply(fc, args, outarg->notify_unique); fc 1709 fs/fuse/dev.c fuse_retrieve_end(fc, args, err); fc 1714 fs/fuse/dev.c static int fuse_notify_retrieve(struct fuse_conn *fc, unsigned int size, fc 1731 fs/fuse/dev.c down_read(&fc->killsb); fc 1733 fs/fuse/dev.c if (fc->sb) { fc 1736 fs/fuse/dev.c inode = ilookup5(fc->sb, nodeid, fuse_inode_eq, &nodeid); fc 1738 fs/fuse/dev.c err = fuse_retrieve(fc, inode, &outarg); fc 1742 fs/fuse/dev.c up_read(&fc->killsb); fc 1751 fs/fuse/dev.c static int fuse_notify(struct fuse_conn *fc, enum fuse_notify_code code, fc 1759 fs/fuse/dev.c return fuse_notify_poll(fc, size, cs); fc 1762 fs/fuse/dev.c return fuse_notify_inval_inode(fc, size, cs); fc 1765 fs/fuse/dev.c return fuse_notify_inval_entry(fc, size, cs); fc 1768 fs/fuse/dev.c return fuse_notify_store(fc, size, cs); fc 1771 fs/fuse/dev.c return fuse_notify_retrieve(fc, size, cs); fc 1774 fs/fuse/dev.c return fuse_notify_delete(fc, size, cs); fc 1827 fs/fuse/dev.c struct fuse_conn *fc = fud->fc; fc 1849 fs/fuse/dev.c err = fuse_notify(fc, oh.error, nbytes - sizeof(oh), cs); fc 1877 fs/fuse/dev.c fc->no_interrupt = 1; fc 1879 fs/fuse/dev.c err = queue_interrupt(&fc->iq, req); fc 1881 fs/fuse/dev.c fuse_put_request(fc, req); fc 1911 fs/fuse/dev.c fuse_request_end(fc, req); fc 2029 fs/fuse/dev.c fiq = &fud->fc->iq; fc 2043 fs/fuse/dev.c static void end_requests(struct fuse_conn *fc, struct list_head *head) fc 2051 fs/fuse/dev.c fuse_request_end(fc, req); fc 2055 fs/fuse/dev.c static void end_polls(struct fuse_conn *fc) fc 2059 fs/fuse/dev.c p = rb_first(&fc->polled_files); fc 2088 fs/fuse/dev.c void fuse_abort_conn(struct fuse_conn *fc) fc 2090 fs/fuse/dev.c struct fuse_iqueue *fiq = &fc->iq; fc 2092 fs/fuse/dev.c spin_lock(&fc->lock); fc 2093 fs/fuse/dev.c if (fc->connected) { fc 2100 fs/fuse/dev.c spin_lock(&fc->bg_lock); fc 2101 fs/fuse/dev.c fc->connected = 0; fc 2102 fs/fuse/dev.c spin_unlock(&fc->bg_lock); fc 2104 fs/fuse/dev.c fuse_set_initialized(fc); fc 2105 fs/fuse/dev.c list_for_each_entry(fud, &fc->devices, entry) { fc 2126 fs/fuse/dev.c spin_lock(&fc->bg_lock); fc 2127 fs/fuse/dev.c fc->blocked = 0; fc 2128 fs/fuse/dev.c fc->max_background = UINT_MAX; fc 2129 fs/fuse/dev.c flush_bg_queue(fc); fc 2130 fs/fuse/dev.c spin_unlock(&fc->bg_lock); fc 2142 fs/fuse/dev.c end_polls(fc); fc 2143 fs/fuse/dev.c wake_up_all(&fc->blocked_waitq); fc 2144 fs/fuse/dev.c spin_unlock(&fc->lock); fc 2146 fs/fuse/dev.c end_requests(fc, &to_end); fc 2148 fs/fuse/dev.c spin_unlock(&fc->lock); fc 2153 fs/fuse/dev.c void fuse_wait_aborted(struct fuse_conn *fc) fc 2157 fs/fuse/dev.c wait_event(fc->blocked_waitq, atomic_read(&fc->num_waiting) == 0); fc 2165 fs/fuse/dev.c struct fuse_conn *fc = fud->fc; fc 2176 fs/fuse/dev.c end_requests(fc, &to_end); fc 2179 fs/fuse/dev.c if (atomic_dec_and_test(&fc->dev_count)) { fc 2180 fs/fuse/dev.c WARN_ON(fc->iq.fasync != NULL); fc 2181 fs/fuse/dev.c fuse_abort_conn(fc); fc 2197 fs/fuse/dev.c return fasync_helper(fd, file, on, &fud->fc->iq.fasync); fc 2200 fs/fuse/dev.c static int fuse_device_clone(struct fuse_conn *fc, struct file *new) fc 2207 fs/fuse/dev.c fud = fuse_dev_alloc_install(fc); fc 2212 fs/fuse/dev.c atomic_inc(&fc->dev_count); fc 2243 fs/fuse/dev.c err = fuse_device_clone(fud->fc, file); fc 57 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn_super(dentry->d_sb); fc 58 fs/fuse/dir.c bool delete = !time && fc->delete_stale; fc 171 fs/fuse/dir.c static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args, fc 199 fs/fuse/dir.c struct fuse_conn *fc; fc 221 fs/fuse/dir.c fc = get_fuse_conn(inode); fc 228 fs/fuse/dir.c attr_version = fuse_get_attr_version(fc); fc 231 fs/fuse/dir.c fuse_lookup_init(fc, &args, get_node_id(d_inode(parent)), fc 233 fs/fuse/dir.c ret = fuse_simple_request(fc, &args); fc 241 fs/fuse/dir.c fuse_queue_forget(fc, forget, outarg.nodeid, 1); fc 332 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 349 fs/fuse/dir.c attr_version = fuse_get_attr_version(fc); fc 351 fs/fuse/dir.c fuse_lookup_init(fc, &args, nodeid, name, outarg); fc 352 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 368 fs/fuse/dir.c fuse_queue_forget(fc, forget, outarg->nodeid, 1); fc 437 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 455 fs/fuse/dir.c ff = fuse_file_alloc(fc); fc 459 fs/fuse/dir.c if (!fc->dont_mask) fc 480 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 497 fs/fuse/dir.c fuse_queue_forget(fc, forget, outentry.nodeid, 1); fc 529 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 547 fs/fuse/dir.c if (fc->no_create) fc 552 fs/fuse/dir.c fc->no_create = 1; fc 570 fs/fuse/dir.c static int create_new_entry(struct fuse_conn *fc, struct fuse_args *args, fc 589 fs/fuse/dir.c err = fuse_simple_request(fc, args); fc 603 fs/fuse/dir.c fuse_queue_forget(fc, forget, outarg.nodeid, 1); fc 631 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 634 fs/fuse/dir.c if (!fc->dont_mask) fc 647 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, mode); fc 659 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 662 fs/fuse/dir.c if (!fc->dont_mask) fc 674 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, S_IFDIR); fc 680 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 690 fs/fuse/dir.c return create_new_entry(fc, &args, dir, entry, S_IFLNK); fc 704 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 712 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 718 fs/fuse/dir.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 740 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 748 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 764 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(olddir); fc 779 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 818 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(olddir); fc 825 fs/fuse/dir.c if (fc->no_rename2 || fc->minor < 23) fc 832 fs/fuse/dir.c fc->no_rename2 = 1; fc 850 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 861 fs/fuse/dir.c err = create_new_entry(fc, &args, newdir, newent, inode->i_mode); fc 872 fs/fuse/dir.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 888 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 891 fs/fuse/dir.c if (fc->writeback_cache && S_ISREG(inode->i_mode)) { fc 903 fs/fuse/dir.c stat->uid = make_kuid(fc->user_ns, attr->uid); fc 904 fs/fuse/dir.c stat->gid = make_kgid(fc->user_ns, attr->gid); fc 929 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 933 fs/fuse/dir.c attr_version = fuse_get_attr_version(fc); fc 952 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 1084 fs/fuse/dir.c int fuse_allow_current_process(struct fuse_conn *fc) fc 1088 fs/fuse/dir.c if (fc->allow_other) fc 1089 fs/fuse/dir.c return current_in_userns(fc->user_ns); fc 1092 fs/fuse/dir.c if (uid_eq(cred->euid, fc->user_id) && fc 1093 fs/fuse/dir.c uid_eq(cred->suid, fc->user_id) && fc 1094 fs/fuse/dir.c uid_eq(cred->uid, fc->user_id) && fc 1095 fs/fuse/dir.c gid_eq(cred->egid, fc->group_id) && fc 1096 fs/fuse/dir.c gid_eq(cred->sgid, fc->group_id) && fc 1097 fs/fuse/dir.c gid_eq(cred->gid, fc->group_id)) fc 1105 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1112 fs/fuse/dir.c if (fc->no_access) fc 1122 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 1124 fs/fuse/dir.c fc->no_access = 1; fc 1154 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1158 fs/fuse/dir.c if (!fuse_allow_current_process(fc)) fc 1164 fs/fuse/dir.c if (fc->default_permissions || fc 1179 fs/fuse/dir.c if (fc->default_permissions) { fc 1212 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1229 fs/fuse/dir.c res = fuse_simple_request(fc, &ap.args); fc 1248 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1256 fs/fuse/dir.c if (fc->cache_symlinks) fc 1298 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1304 fs/fuse/dir.c if (fc->no_fsyncdir) fc 1310 fs/fuse/dir.c fc->no_fsyncdir = 1; fc 1321 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host); fc 1324 fs/fuse/dir.c if (fc->minor < 18) fc 1333 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(file->f_mapping->host); fc 1335 fs/fuse/dir.c if (fc->minor < 18) fc 1360 fs/fuse/dir.c static void iattr_to_fattr(struct fuse_conn *fc, struct iattr *iattr, fc 1368 fs/fuse/dir.c arg->valid |= FATTR_UID, arg->uid = from_kuid(fc->user_ns, iattr->ia_uid); fc 1370 fs/fuse/dir.c arg->valid |= FATTR_GID, arg->gid = from_kgid(fc->user_ns, iattr->ia_gid); fc 1437 fs/fuse/dir.c static void fuse_setattr_fill(struct fuse_conn *fc, struct fuse_args *args, fc 1457 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1468 fs/fuse/dir.c if (fc->minor >= 23) { fc 1477 fs/fuse/dir.c fuse_setattr_fill(fc, &args, inode, &inarg, &outarg); fc 1479 fs/fuse/dir.c return fuse_simple_request(fc, &args); fc 1494 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1500 fs/fuse/dir.c bool is_wb = fc->writeback_cache; fc 1505 fs/fuse/dir.c if (!fc->default_permissions) fc 1516 fs/fuse/dir.c if (fc->atomic_o_trunc) { fc 1557 fs/fuse/dir.c iattr_to_fattr(fc, attr, &inarg, trust_local_cmtime); fc 1566 fs/fuse/dir.c inarg.lock_owner = fuse_lock_owner_id(fc, current->files); fc 1568 fs/fuse/dir.c fuse_setattr_fill(fc, &args, inode, &inarg, &outarg); fc 1569 fs/fuse/dir.c err = fuse_simple_request(fc, &args); fc 1630 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1647 fs/fuse/dir.c if (!fc->handle_killpriv) { fc 1676 fs/fuse/dir.c if (fc->posix_acl) fc 1690 fs/fuse/dir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1692 fs/fuse/dir.c if (!fuse_allow_current_process(fc)) fc 34 fs/fuse/file.c static int fuse_send_open(struct fuse_conn *fc, u64 nodeid, struct file *file, fc 42 fs/fuse/file.c if (!fc->atomic_o_trunc) fc 53 fs/fuse/file.c return fuse_simple_request(fc, &args); fc 62 fs/fuse/file.c struct fuse_file *fuse_file_alloc(struct fuse_conn *fc) fc 70 fs/fuse/file.c ff->fc = fc; fc 84 fs/fuse/file.c ff->kh = atomic64_inc_return(&fc->khctr); fc 102 fs/fuse/file.c static void fuse_release_end(struct fuse_conn *fc, struct fuse_args *args, fc 116 fs/fuse/file.c if (isdir ? ff->fc->no_opendir : ff->fc->no_open) { fc 118 fs/fuse/file.c fuse_release_end(ff->fc, args, 0); fc 120 fs/fuse/file.c fuse_simple_request(ff->fc, args); fc 121 fs/fuse/file.c fuse_release_end(ff->fc, args, 0); fc 124 fs/fuse/file.c if (fuse_simple_background(ff->fc, args, fc 126 fs/fuse/file.c fuse_release_end(ff->fc, args, -ENOTCONN); fc 132 fs/fuse/file.c int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file, fc 138 fs/fuse/file.c ff = fuse_file_alloc(fc); fc 145 fs/fuse/file.c if (isdir ? !fc->no_opendir : !fc->no_open) { fc 149 fs/fuse/file.c err = fuse_send_open(fc, nodeid, file, opcode, &outarg); fc 159 fs/fuse/file.c fc->no_opendir = 1; fc 161 fs/fuse/file.c fc->no_open = 1; fc 193 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 201 fs/fuse/file.c if (fc->atomic_o_trunc && (file->f_flags & O_TRUNC)) { fc 205 fs/fuse/file.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 209 fs/fuse/file.c if (fc->writeback_cache) fc 212 fs/fuse/file.c if ((file->f_mode & FMODE_WRITE) && fc->writeback_cache) fc 218 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 221 fs/fuse/file.c fc->atomic_o_trunc && fc 222 fs/fuse/file.c fc->writeback_cache; fc 233 fs/fuse/file.c err = fuse_do_open(fc, get_node_id(inode), file, isdir); fc 249 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 258 fs/fuse/file.c spin_lock(&fc->lock); fc 260 fs/fuse/file.c rb_erase(&ff->polled_node, &fc->polled_files); fc 261 fs/fuse/file.c spin_unlock(&fc->lock); fc 287 fs/fuse/file.c ra->inarg.lock_owner = fuse_lock_owner_id(ff->fc, fc 302 fs/fuse/file.c fuse_file_put(ff, ff->fc->destroy, isdir); fc 312 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 315 fs/fuse/file.c if (fc->writeback_cache) fc 340 fs/fuse/file.c u64 fuse_lock_owner_id(struct fuse_conn *fc, fl_owner_t id) fc 342 fs/fuse/file.c u32 *k = fc->scramble_key; fc 439 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 448 fs/fuse/file.c if (fc->no_flush) fc 465 fs/fuse/file.c inarg.lock_owner = fuse_lock_owner_id(fc, id); fc 473 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 475 fs/fuse/file.c fc->no_flush = 1; fc 485 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 498 fs/fuse/file.c return fuse_simple_request(fc, &args); fc 505 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 537 fs/fuse/file.c if (fc->no_fsync) fc 542 fs/fuse/file.c fc->no_fsync = 1; fc 635 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 639 fs/fuse/file.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 673 fs/fuse/file.c static void fuse_aio_complete_req(struct fuse_conn *fc, struct fuse_args *args, fc 702 fs/fuse/file.c static ssize_t fuse_async_req_send(struct fuse_conn *fc, fc 715 fs/fuse/file.c err = fuse_simple_background(fc, &ia->ap.args, GFP_KERNEL); fc 717 fs/fuse/file.c fuse_aio_complete_req(fc, &ia->ap.args, err); fc 727 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 732 fs/fuse/file.c ia->read.in.lock_owner = fuse_lock_owner_id(fc, owner); fc 736 fs/fuse/file.c return fuse_async_req_send(fc, ia, count); fc 738 fs/fuse/file.c return fuse_simple_request(fc, &ia->ap.args); fc 744 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 750 fs/fuse/file.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 759 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 761 fs/fuse/file.c if (fc->writeback_cache) { fc 784 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 804 fs/fuse/file.c attr_ver = fuse_get_attr_version(fc); fc 811 fs/fuse/file.c res = fuse_simple_request(fc, &ia.ap.args); fc 841 fs/fuse/file.c static void fuse_readpages_end(struct fuse_conn *fc, struct fuse_args *args, fc 885 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 904 fs/fuse/file.c ia->read.attr_ver = fuse_get_attr_version(fc); fc 905 fs/fuse/file.c if (fc->async_read) { fc 908 fs/fuse/file.c err = fuse_simple_background(fc, &ap->args, GFP_KERNEL); fc 912 fs/fuse/file.c res = fuse_simple_request(fc, &ap->args); fc 915 fs/fuse/file.c fuse_readpages_end(fc, &ap->args, err); fc 932 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 937 fs/fuse/file.c (ap->num_pages == fc->max_pages || fc 938 fs/fuse/file.c (ap->num_pages + 1) * PAGE_SIZE > fc->max_read || fc 941 fs/fuse/file.c fc->max_pages); fc 969 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 980 fs/fuse/file.c data.max_pages = min_t(unsigned int, nr_pages, fc->max_pages); fc 1001 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1008 fs/fuse/file.c if (fc->auto_inval_data || fc 1030 fs/fuse/file.c if (ff->fc->minor < 9) fc 1059 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 1067 fs/fuse/file.c inarg->lock_owner = fuse_lock_owner_id(fc, owner); fc 1071 fs/fuse/file.c return fuse_async_req_send(fc, ia, count); fc 1073 fs/fuse/file.c err = fuse_simple_request(fc, &ia->ap.args); fc 1082 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1087 fs/fuse/file.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 1104 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 1114 fs/fuse/file.c err = fuse_simple_request(fc, &ap->args); fc 1144 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(mapping->host); fc 1159 fs/fuse/file.c bytes = min_t(size_t, bytes, fc->max_write - count); fc 1196 fs/fuse/file.c if (!fc->big_writes) fc 1198 fs/fuse/file.c } while (iov_iter_count(ii) && count < fc->max_write && fc 1218 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1231 fs/fuse/file.c fc->max_pages); fc 1429 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 1430 fs/fuse/file.c size_t nmax = write ? fc->max_write : fc->max_read; fc 1440 fs/fuse/file.c max_pages = iov_iter_npages(iter, fc->max_pages); fc 1494 fs/fuse/file.c max_pages = iov_iter_npages(iter, fc->max_pages); fc 1608 fs/fuse/file.c static void fuse_writepage_finish(struct fuse_conn *fc, fc 1627 fs/fuse/file.c static void fuse_send_writepage(struct fuse_conn *fc, fc 1653 fs/fuse/file.c err = fuse_simple_background(fc, args, GFP_ATOMIC); fc 1656 fs/fuse/file.c err = fuse_simple_background(fc, args, GFP_NOFS | __GFP_NOFAIL); fc 1668 fs/fuse/file.c fuse_writepage_finish(fc, wpa); fc 1692 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1701 fs/fuse/file.c fuse_send_writepage(fc, wpa, crop); fc 1705 fs/fuse/file.c static void fuse_writepage_end(struct fuse_conn *fc, struct fuse_args *args, fc 1716 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1748 fs/fuse/file.c fuse_send_writepage(fc, next, inarg->offset + inarg->size); fc 1751 fs/fuse/file.c fuse_writepage_finish(fc, wpa); fc 1756 fs/fuse/file.c static struct fuse_file *__fuse_write_file_get(struct fuse_conn *fc, fc 1772 fs/fuse/file.c static struct fuse_file *fuse_write_file_get(struct fuse_conn *fc, fc 1775 fs/fuse/file.c struct fuse_file *ff = __fuse_write_file_get(fc, fi); fc 1782 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1787 fs/fuse/file.c ff = __fuse_write_file_get(fc, fi); fc 1818 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 1837 fs/fuse/file.c wpa->ia.ff = fuse_write_file_get(fc, fi); fc 1911 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(data->inode); fc 1917 fs/fuse/file.c fc->max_pages); fc 2018 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2025 fs/fuse/file.c data->ff = fuse_write_file_get(fc, fi); fc 2039 fs/fuse/file.c (is_writeback || ap->num_pages == fc->max_pages || fc 2040 fs/fuse/file.c (ap->num_pages + 1) * PAGE_SIZE > fc->max_write || fc 2129 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2142 fs/fuse/file.c data.orig_pages = kcalloc(fc->max_pages, fc 2172 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(file_inode(file)); fc 2177 fs/fuse/file.c WARN_ON(!fc->writeback_cache); fc 2321 fs/fuse/file.c static int convert_fuse_file_lock(struct fuse_conn *fc, fc 2343 fs/fuse/file.c fl->fl_pid = pid_nr_ns(find_pid_ns(ffl->pid, fc->pid_ns), &init_pid_ns); fc 2359 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2364 fs/fuse/file.c inarg->owner = fuse_lock_owner_id(fc, fl->fl_owner); fc 2381 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2391 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 2393 fs/fuse/file.c err = convert_fuse_file_lock(fc, &outarg.lk, fl); fc 2401 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2406 fs/fuse/file.c pid_t pid_nr = pid_nr_ns(pid, fc->pid_ns); fc 2419 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 2431 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2437 fs/fuse/file.c if (fc->no_lock) { fc 2443 fs/fuse/file.c if (fc->no_lock) fc 2454 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2457 fs/fuse/file.c if (fc->no_flock) { fc 2473 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2479 fs/fuse/file.c if (!inode->i_sb->s_bdev || fc->no_bmap) fc 2493 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 2495 fs/fuse/file.c fc->no_bmap = 1; fc 2503 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2514 fs/fuse/file.c if (fc->no_lseek) fc 2525 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 2528 fs/fuse/file.c fc->no_lseek = 1; fc 2614 fs/fuse/file.c static int fuse_verify_ioctl_iov(struct fuse_conn *fc, struct iovec *iov, fc 2618 fs/fuse/file.c u32 max = fc->max_pages << PAGE_SHIFT; fc 2628 fs/fuse/file.c static int fuse_copy_ioctl_iovec(struct fuse_conn *fc, struct iovec *dst, fc 2635 fs/fuse/file.c if (fc->minor < 16) { fc 2714 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 2747 fs/fuse/file.c ap.pages = fuse_pages_alloc(fc->max_pages, GFP_KERNEL, &ap.descs); fc 2752 fs/fuse/file.c fuse_page_descs_length_init(ap.descs, 0, fc->max_pages); fc 2788 fs/fuse/file.c if (max_pages > fc->max_pages) fc 2825 fs/fuse/file.c transferred = fuse_simple_request(fc, &ap.args); fc 2853 fs/fuse/file.c err = fuse_copy_ioctl_iovec(fc, iov_page, vaddr, fc 2863 fs/fuse/file.c err = fuse_verify_ioctl_iov(fc, in_iov, in_iovs); fc 2867 fs/fuse/file.c err = fuse_verify_ioctl_iov(fc, out_iov, out_iovs); fc 2900 fs/fuse/file.c struct fuse_conn *fc = get_fuse_conn(inode); fc 2902 fs/fuse/file.c if (!fuse_allow_current_process(fc)) fc 2928 fs/fuse/file.c static struct rb_node **fuse_find_polled_node(struct fuse_conn *fc, u64 kh, fc 2931 fs/fuse/file.c struct rb_node **link = &fc->polled_files.rb_node; fc 2959 fs/fuse/file.c static void fuse_register_polled_file(struct fuse_conn *fc, fc 2962 fs/fuse/file.c spin_lock(&fc->lock); fc 2966 fs/fuse/file.c link = fuse_find_polled_node(fc, ff->kh, &parent); fc 2969 fs/fuse/file.c rb_insert_color(&ff->polled_node, &fc->polled_files); fc 2971 fs/fuse/file.c spin_unlock(&fc->lock); fc 2977 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 2983 fs/fuse/file.c if (fc->no_poll) fc 2995 fs/fuse/file.c fuse_register_polled_file(fc, ff); fc 3006 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 3011 fs/fuse/file.c fc->no_poll = 1; fc 3022 fs/fuse/file.c int fuse_notify_poll_wakeup(struct fuse_conn *fc, fc 3028 fs/fuse/file.c spin_lock(&fc->lock); fc 3030 fs/fuse/file.c link = fuse_find_polled_node(fc, kh, NULL); fc 3038 fs/fuse/file.c spin_unlock(&fc->lock); fc 3056 fs/fuse/file.c static inline loff_t fuse_round_up(struct fuse_conn *fc, loff_t off) fc 3058 fs/fuse/file.c return round_up(off, fc->max_pages << PAGE_SHIFT); fc 3068 fs/fuse/file.c bool async_dio = ff->fc->async_dio; fc 3087 fs/fuse/file.c iov_iter_truncate(iter, fuse_round_up(ff->fc, i_size - offset)); fc 3174 fs/fuse/file.c struct fuse_conn *fc = ff->fc; fc 3189 fs/fuse/file.c if (fc->no_fallocate) fc 3218 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 3220 fs/fuse/file.c fc->no_fallocate = 1; fc 3230 fs/fuse/file.c if (changed && fc->writeback_cache) fc 3258 fs/fuse/file.c struct fuse_conn *fc = ff_in->fc; fc 3273 fs/fuse/file.c bool is_unstable = (!fc->writeback_cache) && fc 3276 fs/fuse/file.c if (fc->no_copy_file_range) fc 3282 fs/fuse/file.c if (fc->writeback_cache) { fc 3296 fs/fuse/file.c if (fc->writeback_cache) { fc 3313 fs/fuse/file.c err = fuse_simple_request(fc, &args); fc 3315 fs/fuse/file.c fc->no_copy_file_range = 1; fc 3321 fs/fuse/file.c if (fc->writeback_cache) { fc 169 fs/fuse/fuse_i.h struct fuse_conn *fc; fc 254 fs/fuse/fuse_i.h void (*end)(struct fuse_conn *fc, struct fuse_args *args, int error); fc 460 fs/fuse/fuse_i.h struct fuse_conn *fc; fc 784 fs/fuse/fuse_i.h static inline u64 fuse_get_attr_version(struct fuse_conn *fc) fc 786 fs/fuse/fuse_i.h return atomic64_read(&fc->attr_version); fc 813 fs/fuse/fuse_i.h void fuse_queue_forget(struct fuse_conn *fc, struct fuse_forget_link *forget, fc 850 fs/fuse/fuse_i.h struct fuse_file *fuse_file_alloc(struct fuse_conn *fc); fc 870 fs/fuse/fuse_i.h int fuse_notify_poll_wakeup(struct fuse_conn *fc, fc 918 fs/fuse/fuse_i.h ssize_t fuse_simple_request(struct fuse_conn *fc, struct fuse_args *args); fc 919 fs/fuse/fuse_i.h int fuse_simple_background(struct fuse_conn *fc, struct fuse_args *args, fc 925 fs/fuse/fuse_i.h void fuse_request_end(struct fuse_conn *fc, struct fuse_req *req); fc 928 fs/fuse/fuse_i.h void fuse_abort_conn(struct fuse_conn *fc); fc 929 fs/fuse/fuse_i.h void fuse_wait_aborted(struct fuse_conn *fc); fc 946 fs/fuse/fuse_i.h struct fuse_conn *fuse_conn_get(struct fuse_conn *fc); fc 951 fs/fuse/fuse_i.h void fuse_conn_init(struct fuse_conn *fc, struct user_namespace *user_ns, fc 957 fs/fuse/fuse_i.h void fuse_conn_put(struct fuse_conn *fc); fc 959 fs/fuse/fuse_i.h struct fuse_dev *fuse_dev_alloc_install(struct fuse_conn *fc); fc 961 fs/fuse/fuse_i.h void fuse_dev_install(struct fuse_dev *fud, struct fuse_conn *fc); fc 963 fs/fuse/fuse_i.h void fuse_send_init(struct fuse_conn *fc); fc 982 fs/fuse/fuse_i.h int fuse_ctl_add_conn(struct fuse_conn *fc); fc 987 fs/fuse/fuse_i.h void fuse_ctl_remove_conn(struct fuse_conn *fc); fc 999 fs/fuse/fuse_i.h int fuse_allow_current_process(struct fuse_conn *fc); fc 1001 fs/fuse/fuse_i.h u64 fuse_lock_owner_id(struct fuse_conn *fc, fl_owner_t id); fc 1031 fs/fuse/fuse_i.h int fuse_do_open(struct fuse_conn *fc, u64 nodeid, struct file *file, fc 1061 fs/fuse/fuse_i.h void fuse_set_initialized(struct fuse_conn *fc); fc 1093 fs/fuse/fuse_i.h void fuse_free_conn(struct fuse_conn *fc); fc 114 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); fc 115 fs/fuse/inode.c fuse_queue_forget(fc, fi->forget, fi->nodeid, fi->nlookup); fc 148 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); fc 153 fs/fuse/inode.c fi->attr_version = atomic64_inc_return(&fc->attr_version); fc 160 fs/fuse/inode.c inode->i_uid = make_kuid(fc->user_ns, attr->uid); fc 161 fs/fuse/inode.c inode->i_gid = make_kgid(fc->user_ns, attr->gid); fc 166 fs/fuse/inode.c if (!fc->writeback_cache || !S_ISREG(inode->i_mode)) { fc 184 fs/fuse/inode.c if (!fc->default_permissions) fc 193 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(inode); fc 195 fs/fuse/inode.c bool is_wb = fc->writeback_cache; fc 224 fs/fuse/inode.c if (!fc->explicit_inval_data) fc 226 fs/fuse/inode.c } else if (fc->auto_inval_data) { fc 291 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 300 fs/fuse/inode.c if (!fc->writeback_cache || !S_ISREG(attr->mode)) fc 367 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 369 fs/fuse/inode.c if (!fc->no_force_umount) fc 370 fs/fuse/inode.c fuse_abort_conn(fc); fc 373 fs/fuse/inode.c static void fuse_send_destroy(struct fuse_conn *fc) fc 375 fs/fuse/inode.c if (fc->conn_init) { fc 381 fs/fuse/inode.c fuse_simple_request(fc, &args); fc 387 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 390 fs/fuse/inode.c list_del(&fc->entry); fc 391 fs/fuse/inode.c fuse_ctl_remove_conn(fc); fc 394 fs/fuse/inode.c fuse_conn_put(fc); fc 414 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 419 fs/fuse/inode.c if (!fuse_allow_current_process(fc)) { fc 431 fs/fuse/inode.c err = fuse_simple_request(fc, &args); fc 470 fs/fuse/inode.c static int fuse_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 473 fs/fuse/inode.c struct fuse_fs_context *ctx = fc->fs_private; fc 476 fs/fuse/inode.c opt = fs_parse(fc, &fuse_fs_parameters, param, &result); fc 482 fs/fuse/inode.c if (fc->source) fc 483 fs/fuse/inode.c return invalf(fc, "fuse: Multiple sources specified"); fc 484 fs/fuse/inode.c fc->source = param->string; fc 490 fs/fuse/inode.c return invalf(fc, "fuse: Multiple subtypes specified"); fc 502 fs/fuse/inode.c return invalf(fc, "fuse: Invalid rootmode"); fc 508 fs/fuse/inode.c ctx->user_id = make_kuid(fc->user_ns, result.uint_32); fc 510 fs/fuse/inode.c return invalf(fc, "fuse: Invalid user_id"); fc 515 fs/fuse/inode.c ctx->group_id = make_kgid(fc->user_ns, result.uint_32); fc 517 fs/fuse/inode.c return invalf(fc, "fuse: Invalid group_id"); fc 535 fs/fuse/inode.c return invalf(fc, "fuse: blksize only supported for fuseblk"); fc 546 fs/fuse/inode.c static void fuse_free_fc(struct fs_context *fc) fc 548 fs/fuse/inode.c struct fuse_fs_context *ctx = fc->fs_private; fc 559 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 561 fs/fuse/inode.c if (fc->no_mount_options) fc 564 fs/fuse/inode.c seq_printf(m, ",user_id=%u", from_kuid_munged(fc->user_ns, fc->user_id)); fc 565 fs/fuse/inode.c seq_printf(m, ",group_id=%u", from_kgid_munged(fc->user_ns, fc->group_id)); fc 566 fs/fuse/inode.c if (fc->default_permissions) fc 568 fs/fuse/inode.c if (fc->allow_other) fc 570 fs/fuse/inode.c if (fc->max_read != ~0) fc 571 fs/fuse/inode.c seq_printf(m, ",max_read=%u", fc->max_read); fc 603 fs/fuse/inode.c void fuse_conn_init(struct fuse_conn *fc, struct user_namespace *user_ns, fc 606 fs/fuse/inode.c memset(fc, 0, sizeof(*fc)); fc 607 fs/fuse/inode.c spin_lock_init(&fc->lock); fc 608 fs/fuse/inode.c spin_lock_init(&fc->bg_lock); fc 609 fs/fuse/inode.c init_rwsem(&fc->killsb); fc 610 fs/fuse/inode.c refcount_set(&fc->count, 1); fc 611 fs/fuse/inode.c atomic_set(&fc->dev_count, 1); fc 612 fs/fuse/inode.c init_waitqueue_head(&fc->blocked_waitq); fc 613 fs/fuse/inode.c fuse_iqueue_init(&fc->iq, fiq_ops, fiq_priv); fc 614 fs/fuse/inode.c INIT_LIST_HEAD(&fc->bg_queue); fc 615 fs/fuse/inode.c INIT_LIST_HEAD(&fc->entry); fc 616 fs/fuse/inode.c INIT_LIST_HEAD(&fc->devices); fc 617 fs/fuse/inode.c atomic_set(&fc->num_waiting, 0); fc 618 fs/fuse/inode.c fc->max_background = FUSE_DEFAULT_MAX_BACKGROUND; fc 619 fs/fuse/inode.c fc->congestion_threshold = FUSE_DEFAULT_CONGESTION_THRESHOLD; fc 620 fs/fuse/inode.c atomic64_set(&fc->khctr, 0); fc 621 fs/fuse/inode.c fc->polled_files = RB_ROOT; fc 622 fs/fuse/inode.c fc->blocked = 0; fc 623 fs/fuse/inode.c fc->initialized = 0; fc 624 fs/fuse/inode.c fc->connected = 1; fc 625 fs/fuse/inode.c atomic64_set(&fc->attr_version, 1); fc 626 fs/fuse/inode.c get_random_bytes(&fc->scramble_key, sizeof(fc->scramble_key)); fc 627 fs/fuse/inode.c fc->pid_ns = get_pid_ns(task_active_pid_ns(current)); fc 628 fs/fuse/inode.c fc->user_ns = get_user_ns(user_ns); fc 629 fs/fuse/inode.c fc->max_pages = FUSE_DEFAULT_MAX_PAGES_PER_REQ; fc 633 fs/fuse/inode.c void fuse_conn_put(struct fuse_conn *fc) fc 635 fs/fuse/inode.c if (refcount_dec_and_test(&fc->count)) { fc 636 fs/fuse/inode.c struct fuse_iqueue *fiq = &fc->iq; fc 640 fs/fuse/inode.c put_pid_ns(fc->pid_ns); fc 641 fs/fuse/inode.c put_user_ns(fc->user_ns); fc 642 fs/fuse/inode.c fc->release(fc); fc 647 fs/fuse/inode.c struct fuse_conn *fuse_conn_get(struct fuse_conn *fc) fc 649 fs/fuse/inode.c refcount_inc(&fc->count); fc 650 fs/fuse/inode.c return fc; fc 673 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 686 fs/fuse/inode.c if (!fc->export_support) fc 780 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn(child_inode); fc 787 fs/fuse/inode.c if (!fc->export_support) fc 851 fs/fuse/inode.c static void process_init_limits(struct fuse_conn *fc, struct fuse_init_out *arg) fc 861 fs/fuse/inode.c spin_lock(&fc->bg_lock); fc 863 fs/fuse/inode.c fc->max_background = arg->max_background; fc 865 fs/fuse/inode.c if (!cap_sys_admin && fc->max_background > max_user_bgreq) fc 866 fs/fuse/inode.c fc->max_background = max_user_bgreq; fc 869 fs/fuse/inode.c fc->congestion_threshold = arg->congestion_threshold; fc 872 fs/fuse/inode.c fc->congestion_threshold > max_user_congthresh) fc 873 fs/fuse/inode.c fc->congestion_threshold = max_user_congthresh; fc 875 fs/fuse/inode.c spin_unlock(&fc->bg_lock); fc 884 fs/fuse/inode.c static void process_init_reply(struct fuse_conn *fc, struct fuse_args *args, fc 891 fs/fuse/inode.c fc->conn_error = 1; fc 895 fs/fuse/inode.c process_init_limits(fc, arg); fc 900 fs/fuse/inode.c fc->async_read = 1; fc 902 fs/fuse/inode.c fc->no_lock = 1; fc 905 fs/fuse/inode.c fc->no_flock = 1; fc 908 fs/fuse/inode.c fc->no_flock = 1; fc 911 fs/fuse/inode.c fc->atomic_o_trunc = 1; fc 915 fs/fuse/inode.c fc->export_support = 1; fc 918 fs/fuse/inode.c fc->big_writes = 1; fc 920 fs/fuse/inode.c fc->dont_mask = 1; fc 922 fs/fuse/inode.c fc->auto_inval_data = 1; fc 924 fs/fuse/inode.c fc->explicit_inval_data = 1; fc 926 fs/fuse/inode.c fc->do_readdirplus = 1; fc 928 fs/fuse/inode.c fc->readdirplus_auto = 1; fc 931 fs/fuse/inode.c fc->async_dio = 1; fc 933 fs/fuse/inode.c fc->writeback_cache = 1; fc 935 fs/fuse/inode.c fc->parallel_dirops = 1; fc 937 fs/fuse/inode.c fc->handle_killpriv = 1; fc 939 fs/fuse/inode.c fc->sb->s_time_gran = arg->time_gran; fc 941 fs/fuse/inode.c fc->default_permissions = 1; fc 942 fs/fuse/inode.c fc->posix_acl = 1; fc 943 fs/fuse/inode.c fc->sb->s_xattr = fuse_acl_xattr_handlers; fc 946 fs/fuse/inode.c fc->cache_symlinks = 1; fc 948 fs/fuse/inode.c fc->abort_err = 1; fc 950 fs/fuse/inode.c fc->max_pages = fc 955 fs/fuse/inode.c ra_pages = fc->max_read / PAGE_SIZE; fc 956 fs/fuse/inode.c fc->no_lock = 1; fc 957 fs/fuse/inode.c fc->no_flock = 1; fc 960 fs/fuse/inode.c fc->sb->s_bdi->ra_pages = fc 961 fs/fuse/inode.c min(fc->sb->s_bdi->ra_pages, ra_pages); fc 962 fs/fuse/inode.c fc->minor = arg->minor; fc 963 fs/fuse/inode.c fc->max_write = arg->minor < 5 ? 4096 : arg->max_write; fc 964 fs/fuse/inode.c fc->max_write = max_t(unsigned, 4096, fc->max_write); fc 965 fs/fuse/inode.c fc->conn_init = 1; fc 969 fs/fuse/inode.c fuse_set_initialized(fc); fc 970 fs/fuse/inode.c wake_up_all(&fc->blocked_waitq); fc 973 fs/fuse/inode.c void fuse_send_init(struct fuse_conn *fc) fc 981 fs/fuse/inode.c ia->in.max_readahead = fc->sb->s_bdi->ra_pages * PAGE_SIZE; fc 1007 fs/fuse/inode.c if (fuse_simple_background(fc, &ia->args, GFP_KERNEL) != 0) fc 1008 fs/fuse/inode.c process_init_reply(fc, &ia->args, -ENOTCONN); fc 1012 fs/fuse/inode.c void fuse_free_conn(struct fuse_conn *fc) fc 1014 fs/fuse/inode.c WARN_ON(!list_empty(&fc->devices)); fc 1015 fs/fuse/inode.c kfree_rcu(fc, rcu); fc 1019 fs/fuse/inode.c static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb) fc 1033 fs/fuse/inode.c err = super_setup_bdi_name(sb, "%u:%u%s", MAJOR(fc->dev), fc 1034 fs/fuse/inode.c MINOR(fc->dev), suffix); fc 1081 fs/fuse/inode.c void fuse_dev_install(struct fuse_dev *fud, struct fuse_conn *fc) fc 1083 fs/fuse/inode.c fud->fc = fuse_conn_get(fc); fc 1084 fs/fuse/inode.c spin_lock(&fc->lock); fc 1085 fs/fuse/inode.c list_add_tail(&fud->entry, &fc->devices); fc 1086 fs/fuse/inode.c spin_unlock(&fc->lock); fc 1090 fs/fuse/inode.c struct fuse_dev *fuse_dev_alloc_install(struct fuse_conn *fc) fc 1098 fs/fuse/inode.c fuse_dev_install(fud, fc); fc 1105 fs/fuse/inode.c struct fuse_conn *fc = fud->fc; fc 1107 fs/fuse/inode.c if (fc) { fc 1108 fs/fuse/inode.c spin_lock(&fc->lock); fc 1110 fs/fuse/inode.c spin_unlock(&fc->lock); fc 1112 fs/fuse/inode.c fuse_conn_put(fc); fc 1122 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 1163 fs/fuse/inode.c fud = fuse_dev_alloc_install(fc); fc 1167 fs/fuse/inode.c fc->dev = sb->s_dev; fc 1168 fs/fuse/inode.c fc->sb = sb; fc 1169 fs/fuse/inode.c err = fuse_bdi_init(fc, sb); fc 1175 fs/fuse/inode.c fc->dont_mask = 1; fc 1178 fs/fuse/inode.c fc->default_permissions = ctx->default_permissions; fc 1179 fs/fuse/inode.c fc->allow_other = ctx->allow_other; fc 1180 fs/fuse/inode.c fc->user_id = ctx->user_id; fc 1181 fs/fuse/inode.c fc->group_id = ctx->group_id; fc 1182 fs/fuse/inode.c fc->max_read = max_t(unsigned, 4096, ctx->max_read); fc 1183 fs/fuse/inode.c fc->destroy = ctx->destroy; fc 1184 fs/fuse/inode.c fc->no_control = ctx->no_control; fc 1185 fs/fuse/inode.c fc->no_force_umount = ctx->no_force_umount; fc 1186 fs/fuse/inode.c fc->no_mount_options = ctx->no_mount_options; fc 1202 fs/fuse/inode.c err = fuse_ctl_add_conn(fc); fc 1206 fs/fuse/inode.c list_add_tail(&fc->entry, &fuse_conn_list); fc 1227 fs/fuse/inode.c struct fuse_conn *fc; fc 1243 fs/fuse/inode.c fc = kmalloc(sizeof(*fc), GFP_KERNEL); fc 1245 fs/fuse/inode.c if (!fc) fc 1248 fs/fuse/inode.c fuse_conn_init(fc, sb->s_user_ns, &fuse_dev_fiq_ops, NULL); fc 1249 fs/fuse/inode.c fc->release = fuse_free_conn; fc 1250 fs/fuse/inode.c sb->s_fs_info = fc; fc 1265 fs/fuse/inode.c fuse_conn_put(fc); fc 1273 fs/fuse/inode.c static int fuse_get_tree(struct fs_context *fc) fc 1275 fs/fuse/inode.c struct fuse_fs_context *ctx = fc->fs_private; fc 1283 fs/fuse/inode.c return get_tree_bdev(fc, fuse_fill_super); fc 1286 fs/fuse/inode.c return get_tree_nodev(fc, fuse_fill_super); fc 1298 fs/fuse/inode.c static int fuse_init_fs_context(struct fs_context *fc) fc 1310 fs/fuse/inode.c if (fc->fs_type == &fuseblk_fs_type) { fc 1316 fs/fuse/inode.c fc->fs_private = ctx; fc 1317 fs/fuse/inode.c fc->ops = &fuse_context_ops; fc 1323 fs/fuse/inode.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 1325 fs/fuse/inode.c if (fc) { fc 1326 fs/fuse/inode.c if (fc->destroy) fc 1327 fs/fuse/inode.c fuse_send_destroy(fc); fc 1329 fs/fuse/inode.c fuse_abort_conn(fc); fc 1330 fs/fuse/inode.c fuse_wait_aborted(fc); fc 1332 fs/fuse/inode.c down_write(&fc->killsb); fc 1333 fs/fuse/inode.c fc->sb = NULL; fc 1334 fs/fuse/inode.c up_write(&fc->killsb); fc 18 fs/fuse/readdir.c struct fuse_conn *fc = get_fuse_conn(dir); fc 21 fs/fuse/readdir.c if (!fc->do_readdirplus) fc 23 fs/fuse/readdir.c if (!fc->readdirplus_auto) fc 159 fs/fuse/readdir.c struct fuse_conn *fc; fc 190 fs/fuse/readdir.c fc = get_fuse_conn(dir); fc 244 fs/fuse/readdir.c if (fc->readdirplus_auto) fc 255 fs/fuse/readdir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 269 fs/fuse/readdir.c fuse_simple_request(fc, &args); fc 323 fs/fuse/readdir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 340 fs/fuse/readdir.c attr_version = fuse_get_attr_version(fc); fc 348 fs/fuse/readdir.c res = fuse_simple_request(fc, &ap->args); fc 435 fs/fuse/readdir.c struct fuse_conn *fc = get_fuse_conn(inode); fc 453 fs/fuse/readdir.c if (!ctx->pos && fc->auto_inval_data) { fc 265 fs/fuse/virtio_fs.c struct fuse_conn *fc = fsvq->fud->fc; fc 280 fs/fuse/virtio_fs.c fuse_request_end(fc, req); fc 311 fs/fuse/virtio_fs.c fuse_request_end(fc, req); fc 451 fs/fuse/virtio_fs.c struct fuse_conn *fc = fsvq->fud->fc; fc 504 fs/fuse/virtio_fs.c fuse_request_end(fc, req); fc 1038 fs/fuse/virtio_fs.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 1039 fs/fuse/virtio_fs.c struct virtio_fs *fs = fc->iq.priv; fc 1081 fs/fuse/virtio_fs.c fc = fs->vqs[VQ_REQUEST].fud->fc; fc 1088 fs/fuse/virtio_fs.c fuse_dev_install(fsvq->fud, fc); fc 1093 fs/fuse/virtio_fs.c fuse_send_init(fc); fc 1106 fs/fuse/virtio_fs.c struct fuse_conn *fc = get_fuse_conn_super(sb); fc 1111 fs/fuse/virtio_fs.c if (!fc) fc 1114 fs/fuse/virtio_fs.c vfs = fc->iq.priv; fc 1138 fs/fuse/virtio_fs.c struct fuse_conn *fc = fsc->s_fs_info; fc 1140 fs/fuse/virtio_fs.c return fc->iq.priv == get_fuse_conn_super(sb)->iq.priv; fc 1159 fs/fuse/virtio_fs.c struct fuse_conn *fc; fc 1172 fs/fuse/virtio_fs.c fc = kzalloc(sizeof(struct fuse_conn), GFP_KERNEL); fc 1173 fs/fuse/virtio_fs.c if (!fc) { fc 1180 fs/fuse/virtio_fs.c fuse_conn_init(fc, get_user_ns(current_user_ns()), &virtio_fs_fiq_ops, fc 1182 fs/fuse/virtio_fs.c fc->release = fuse_free_conn; fc 1183 fs/fuse/virtio_fs.c fc->delete_stale = true; fc 1185 fs/fuse/virtio_fs.c fsc->s_fs_info = fc; fc 1187 fs/fuse/virtio_fs.c fuse_conn_put(fc); fc 17 fs/fuse/xattr.c struct fuse_conn *fc = get_fuse_conn(inode); fc 22 fs/fuse/xattr.c if (fc->no_setxattr) fc 37 fs/fuse/xattr.c err = fuse_simple_request(fc, &args); fc 39 fs/fuse/xattr.c fc->no_setxattr = 1; fc 52 fs/fuse/xattr.c struct fuse_conn *fc = get_fuse_conn(inode); fc 58 fs/fuse/xattr.c if (fc->no_getxattr) fc 80 fs/fuse/xattr.c ret = fuse_simple_request(fc, &args); fc 84 fs/fuse/xattr.c fc->no_getxattr = 1; fc 110 fs/fuse/xattr.c struct fuse_conn *fc = get_fuse_conn(inode); fc 116 fs/fuse/xattr.c if (!fuse_allow_current_process(fc)) fc 119 fs/fuse/xattr.c if (fc->no_listxattr) fc 139 fs/fuse/xattr.c ret = fuse_simple_request(fc, &args); fc 145 fs/fuse/xattr.c fc->no_listxattr = 1; fc 153 fs/fuse/xattr.c struct fuse_conn *fc = get_fuse_conn(inode); fc 157 fs/fuse/xattr.c if (fc->no_removexattr) fc 165 fs/fuse/xattr.c err = fuse_simple_request(fc, &args); fc 167 fs/fuse/xattr.c fc->no_removexattr = 1; fc 1042 fs/gfs2/ops_fstype.c static int gfs2_fill_super(struct super_block *sb, struct fs_context *fc) fc 1044 fs/gfs2/ops_fstype.c struct gfs2_args *args = fc->fs_private; fc 1045 fs/gfs2/ops_fstype.c int silent = fc->sb_flags & SB_SILENT; fc 1216 fs/gfs2/ops_fstype.c static int gfs2_get_tree(struct fs_context *fc) fc 1218 fs/gfs2/ops_fstype.c struct gfs2_args *args = fc->fs_private; fc 1222 fs/gfs2/ops_fstype.c error = get_tree_bdev(fc, gfs2_fill_super); fc 1226 fs/gfs2/ops_fstype.c sdp = fc->root->d_sb->s_fs_info; fc 1227 fs/gfs2/ops_fstype.c dput(fc->root); fc 1229 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_master_dir); fc 1231 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_root_dir); fc 1235 fs/gfs2/ops_fstype.c static void gfs2_fc_free(struct fs_context *fc) fc 1237 fs/gfs2/ops_fstype.c struct gfs2_args *args = fc->fs_private; fc 1338 fs/gfs2/ops_fstype.c static int gfs2_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 1340 fs/gfs2/ops_fstype.c struct gfs2_args *args = fc->fs_private; fc 1344 fs/gfs2/ops_fstype.c o = fs_parse(fc, &gfs2_fs_parameters, param, &result); fc 1372 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: -o debug and -o errors=panic are mutually exclusive"); fc 1408 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: commit mount option requires a positive numeric argument"); fc 1413 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: statfs_quantum mount option requires a non-negative numeric argument"); fc 1418 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: quota_quantum mount option requires a positive numeric argument"); fc 1423 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: statfs_percent mount option requires a numeric argument between 0 and 100"); fc 1428 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: -o debug and -o errors=panic are mutually exclusive"); fc 1441 fs/gfs2/ops_fstype.c return invalf(fc, "gfs2: invalid mount option: %s", param->key); fc 1446 fs/gfs2/ops_fstype.c static int gfs2_reconfigure(struct fs_context *fc) fc 1448 fs/gfs2/ops_fstype.c struct super_block *sb = fc->root->d_sb; fc 1451 fs/gfs2/ops_fstype.c struct gfs2_args *newargs = fc->fs_private; fc 1467 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: reconfiguration of locking protocol not allowed"); fc 1471 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: reconfiguration of lock table not allowed"); fc 1475 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: reconfiguration of host data not allowed"); fc 1479 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: reconfiguration of spectator mode not allowed"); fc 1483 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: reconfiguration of localflocks not allowed"); fc 1487 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: switching between gfs2 and gfs2meta not allowed"); fc 1491 fs/gfs2/ops_fstype.c fc->sb_flags |= SB_RDONLY; fc 1493 fs/gfs2/ops_fstype.c if ((sb->s_flags ^ fc->sb_flags) & SB_RDONLY) { fc 1494 fs/gfs2/ops_fstype.c if (fc->sb_flags & SB_RDONLY) { fc 1497 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: unable to remount read-only"); fc 1501 fs/gfs2/ops_fstype.c errorf(fc, "gfs2: unable to remount read-write"); fc 1539 fs/gfs2/ops_fstype.c static int gfs2_init_fs_context(struct fs_context *fc) fc 1547 fs/gfs2/ops_fstype.c if (fc->purpose == FS_CONTEXT_FOR_RECONFIGURE) { fc 1548 fs/gfs2/ops_fstype.c struct gfs2_sbd *sdp = fc->root->d_sb->s_fs_info; fc 1560 fs/gfs2/ops_fstype.c fc->fs_private = args; fc 1561 fs/gfs2/ops_fstype.c fc->ops = &gfs2_context_ops; fc 1565 fs/gfs2/ops_fstype.c static int set_meta_super(struct super_block *s, struct fs_context *fc) fc 1570 fs/gfs2/ops_fstype.c static int test_meta_super(struct super_block *s, struct fs_context *fc) fc 1572 fs/gfs2/ops_fstype.c return (fc->sget_key == s->s_bdev); fc 1575 fs/gfs2/ops_fstype.c static int gfs2_meta_get_tree(struct fs_context *fc) fc 1582 fs/gfs2/ops_fstype.c if (!fc->source || !*fc->source) fc 1585 fs/gfs2/ops_fstype.c error = kern_path(fc->source, LOOKUP_FOLLOW, &path); fc 1588 fs/gfs2/ops_fstype.c fc->source, error); fc 1591 fs/gfs2/ops_fstype.c fc->fs_type = &gfs2_fs_type; fc 1592 fs/gfs2/ops_fstype.c fc->sget_key = path.dentry->d_sb->s_bdev; fc 1593 fs/gfs2/ops_fstype.c s = sget_fc(fc, test_meta_super, set_meta_super); fc 1599 fs/gfs2/ops_fstype.c if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) { fc 1604 fs/gfs2/ops_fstype.c fc->root = dget(sdp->sd_master_dir); fc 1613 fs/gfs2/ops_fstype.c static int gfs2_meta_init_fs_context(struct fs_context *fc) fc 1615 fs/gfs2/ops_fstype.c int ret = gfs2_init_fs_context(fc); fc 1620 fs/gfs2/ops_fstype.c fc->ops = &gfs2_meta_context_ops; fc 1146 fs/hugetlbfs/inode.c static int hugetlbfs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 1148 fs/hugetlbfs/inode.c struct hugetlbfs_fs_context *ctx = fc->fs_private; fc 1154 fs/hugetlbfs/inode.c opt = fs_parse(fc, &hugetlb_fs_parameters, param, &result); fc 1216 fs/hugetlbfs/inode.c return invalf(fc, "hugetlbfs: Bad value '%s' for mount option '%s'\n", fc 1223 fs/hugetlbfs/inode.c static int hugetlbfs_validate(struct fs_context *fc) fc 1225 fs/hugetlbfs/inode.c struct hugetlbfs_fs_context *ctx = fc->fs_private; fc 1251 fs/hugetlbfs/inode.c hugetlbfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 1253 fs/hugetlbfs/inode.c struct hugetlbfs_fs_context *ctx = fc->fs_private; fc 1297 fs/hugetlbfs/inode.c static int hugetlbfs_get_tree(struct fs_context *fc) fc 1299 fs/hugetlbfs/inode.c int err = hugetlbfs_validate(fc); fc 1302 fs/hugetlbfs/inode.c return get_tree_nodev(fc, hugetlbfs_fill_super); fc 1305 fs/hugetlbfs/inode.c static void hugetlbfs_fs_context_free(struct fs_context *fc) fc 1307 fs/hugetlbfs/inode.c kfree(fc->fs_private); fc 1316 fs/hugetlbfs/inode.c static int hugetlbfs_init_fs_context(struct fs_context *fc) fc 1333 fs/hugetlbfs/inode.c fc->fs_private = ctx; fc 1334 fs/hugetlbfs/inode.c fc->ops = &hugetlbfs_fs_context_ops; fc 1429 fs/hugetlbfs/inode.c struct fs_context *fc; fc 1432 fs/hugetlbfs/inode.c fc = fs_context_for_mount(&hugetlbfs_fs_type, SB_KERNMOUNT); fc 1433 fs/hugetlbfs/inode.c if (IS_ERR(fc)) { fc 1434 fs/hugetlbfs/inode.c mnt = ERR_CAST(fc); fc 1436 fs/hugetlbfs/inode.c struct hugetlbfs_fs_context *ctx = fc->fs_private; fc 1438 fs/hugetlbfs/inode.c mnt = fc_mount(fc); fc 1439 fs/hugetlbfs/inode.c put_fs_context(fc); fc 56 fs/internal.h extern void vfs_clean_context(struct fs_context *fc); fc 57 fs/internal.h extern int finish_clean_context(struct fs_context *fc); fc 395 fs/jffs2/fs.c int jffs2_do_remount_fs(struct super_block *sb, struct fs_context *fc) fc 413 fs/jffs2/fs.c if (!(fc->sb_flags & SB_RDONLY)) fc 416 fs/jffs2/fs.c fc->sb_flags |= SB_NOATIME; fc 513 fs/jffs2/fs.c int jffs2_do_fill_super(struct super_block *sb, struct fs_context *fc) fc 528 fs/jffs2/fs.c errorf(fc, "Cannot operate on NAND flash unless jffs2 NAND support is compiled in"); fc 532 fs/jffs2/fs.c errorf(fc, "Cannot operate on DataFlash unless jffs2 DataFlash support is compiled in"); fc 546 fs/jffs2/fs.c infof(fc, "Flash size not aligned to erasesize, reducing to %dKiB", fc 551 fs/jffs2/fs.c errorf(fc, "Too few erase blocks (%d)", fc 175 fs/jffs2/os-linux.h int jffs2_do_remount_fs(struct super_block *sb, struct fs_context *fc); fc 176 fs/jffs2/os-linux.h int jffs2_do_fill_super(struct super_block *sb, struct fs_context *fc); fc 193 fs/jffs2/super.c static int jffs2_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 196 fs/jffs2/super.c struct jffs2_sb_info *c = fc->s_fs_info; fc 199 fs/jffs2/super.c opt = fs_parse(fc, &jffs2_fs_parameters, param, &result); fc 210 fs/jffs2/super.c return invalf(fc, "jffs2: rp_size unrepresentable"); fc 213 fs/jffs2/super.c return invalf(fc, "jffs2: Too large reserve pool specified, max is %llu KB", fc 224 fs/jffs2/super.c static int jffs2_reconfigure(struct fs_context *fc) fc 226 fs/jffs2/super.c struct super_block *sb = fc->root->d_sb; fc 229 fs/jffs2/super.c return jffs2_do_remount_fs(sb, fc); fc 247 fs/jffs2/super.c static int jffs2_fill_super(struct super_block *sb, struct fs_context *fc) fc 274 fs/jffs2/super.c return jffs2_do_fill_super(sb, fc); fc 277 fs/jffs2/super.c static int jffs2_get_tree(struct fs_context *fc) fc 279 fs/jffs2/super.c return get_tree_mtd(fc, jffs2_fill_super); fc 282 fs/jffs2/super.c static void jffs2_free_fc(struct fs_context *fc) fc 284 fs/jffs2/super.c kfree(fc->s_fs_info); fc 294 fs/jffs2/super.c static int jffs2_init_fs_context(struct fs_context *fc) fc 302 fs/jffs2/super.c fc->s_fs_info = ctx; fc 303 fs/jffs2/super.c fc->ops = &jffs2_context_ops; fc 254 fs/kernfs/mount.c static int kernfs_test_super(struct super_block *sb, struct fs_context *fc) fc 257 fs/kernfs/mount.c struct kernfs_super_info *info = fc->s_fs_info; fc 262 fs/kernfs/mount.c static int kernfs_set_super(struct super_block *sb, struct fs_context *fc) fc 264 fs/kernfs/mount.c struct kernfs_fs_context *kfc = fc->fs_private; fc 267 fs/kernfs/mount.c return set_anon_super_fc(sb, fc); fc 292 fs/kernfs/mount.c int kernfs_get_tree(struct fs_context *fc) fc 294 fs/kernfs/mount.c struct kernfs_fs_context *kfc = fc->fs_private; fc 307 fs/kernfs/mount.c fc->s_fs_info = info; fc 308 fs/kernfs/mount.c sb = sget_fc(fc, kernfs_test_super, kernfs_set_super); fc 329 fs/kernfs/mount.c fc->root = dget(sb->s_root); fc 333 fs/kernfs/mount.c void kernfs_free_fs_context(struct fs_context *fc) fc 336 fs/kernfs/mount.c kfree(fc->s_fs_info); fc 337 fs/kernfs/mount.c fc->s_fs_info = NULL; fc 246 fs/libfs.c static int pseudo_fs_fill_super(struct super_block *s, struct fs_context *fc) fc 248 fs/libfs.c struct pseudo_fs_context *ctx = fc->fs_private; fc 277 fs/libfs.c static int pseudo_fs_get_tree(struct fs_context *fc) fc 279 fs/libfs.c return get_tree_nodev(fc, pseudo_fs_fill_super); fc 282 fs/libfs.c static void pseudo_fs_free(struct fs_context *fc) fc 284 fs/libfs.c kfree(fc->fs_private); fc 296 fs/libfs.c struct pseudo_fs_context *init_pseudo(struct fs_context *fc, fc 304 fs/libfs.c fc->fs_private = ctx; fc 305 fs/libfs.c fc->ops = &pseudo_fs_context_ops; fc 306 fs/libfs.c fc->sb_flags |= SB_NOUSER; fc 307 fs/libfs.c fc->global = true; fc 933 fs/namespace.c struct vfsmount *vfs_create_mount(struct fs_context *fc) fc 937 fs/namespace.c if (!fc->root) fc 940 fs/namespace.c mnt = alloc_vfsmnt(fc->source ?: "none"); fc 944 fs/namespace.c if (fc->sb_flags & SB_KERNMOUNT) fc 947 fs/namespace.c atomic_inc(&fc->root->d_sb->s_active); fc 948 fs/namespace.c mnt->mnt.mnt_sb = fc->root->d_sb; fc 949 fs/namespace.c mnt->mnt.mnt_root = dget(fc->root); fc 960 fs/namespace.c struct vfsmount *fc_mount(struct fs_context *fc) fc 962 fs/namespace.c int err = vfs_get_tree(fc); fc 964 fs/namespace.c up_write(&fc->root->d_sb->s_umount); fc 965 fs/namespace.c return vfs_create_mount(fc); fc 975 fs/namespace.c struct fs_context *fc; fc 982 fs/namespace.c fc = fs_context_for_mount(type, flags); fc 983 fs/namespace.c if (IS_ERR(fc)) fc 984 fs/namespace.c return ERR_CAST(fc); fc 987 fs/namespace.c ret = vfs_parse_fs_string(fc, "source", fc 990 fs/namespace.c ret = parse_monolithic_mount_data(fc, data); fc 992 fs/namespace.c mnt = fc_mount(fc); fc 996 fs/namespace.c put_fs_context(fc); fc 1489 fs/namespace.c struct fs_context *fc; fc 1491 fs/namespace.c fc = fs_context_for_reconfigure(sb->s_root, SB_RDONLY, fc 1493 fs/namespace.c if (IS_ERR(fc)) { fc 1494 fs/namespace.c ret = PTR_ERR(fc); fc 1496 fs/namespace.c ret = parse_monolithic_mount_data(fc, NULL); fc 1498 fs/namespace.c ret = reconfigure_super(fc); fc 1499 fs/namespace.c put_fs_context(fc); fc 2533 fs/namespace.c struct fs_context *fc; fc 2544 fs/namespace.c fc = fs_context_for_reconfigure(path->dentry, sb_flags, MS_RMT_MASK); fc 2545 fs/namespace.c if (IS_ERR(fc)) fc 2546 fs/namespace.c return PTR_ERR(fc); fc 2548 fs/namespace.c err = parse_monolithic_mount_data(fc, data); fc 2553 fs/namespace.c err = reconfigure_super(fc); fc 2562 fs/namespace.c put_fs_context(fc); fc 2747 fs/namespace.c static int do_new_mount_fc(struct fs_context *fc, struct path *mountpoint, fc 2751 fs/namespace.c struct super_block *sb = fc->root->d_sb; fc 2759 fs/namespace.c fc_drop_locked(fc); fc 2765 fs/namespace.c mnt = vfs_create_mount(fc); fc 2785 fs/namespace.c struct fs_context *fc; fc 2807 fs/namespace.c fc = fs_context_for_mount(type, sb_flags); fc 2809 fs/namespace.c if (IS_ERR(fc)) fc 2810 fs/namespace.c return PTR_ERR(fc); fc 2813 fs/namespace.c err = vfs_parse_fs_string(fc, "subtype", fc 2816 fs/namespace.c err = vfs_parse_fs_string(fc, "source", name, strlen(name)); fc 2818 fs/namespace.c err = parse_monolithic_mount_data(fc, data); fc 2819 fs/namespace.c if (!err && !mount_capable(fc)) fc 2822 fs/namespace.c err = vfs_get_tree(fc); fc 2824 fs/namespace.c err = do_new_mount_fc(fc, path, mnt_flags); fc 2826 fs/namespace.c put_fs_context(fc); fc 3376 fs/namespace.c struct fs_context *fc; fc 3430 fs/namespace.c fc = f.file->private_data; fc 3432 fs/namespace.c ret = mutex_lock_interruptible(&fc->uapi_mutex); fc 3438 fs/namespace.c if (!fc->root) fc 3442 fs/namespace.c if (mount_too_revealing(fc->root->d_sb, &mnt_flags)) { fc 3448 fs/namespace.c if (fc->phase != FS_CONTEXT_AWAITING_MOUNT) fc 3452 fs/namespace.c if ((fc->sb_flags & SB_MANDLOCK) && !may_mandlock()) fc 3455 fs/namespace.c newmount.mnt = vfs_create_mount(fc); fc 3460 fs/namespace.c newmount.dentry = dget(fc->root); fc 3468 fs/namespace.c vfs_clean_context(fc); fc 3485 fs/namespace.c file = dentry_open(&newmount, O_PATH, fc->cred); fc 3502 fs/namespace.c mutex_unlock(&fc->uapi_mutex); fc 1341 fs/nfsd/nfsctl.c static int nfsd_fill_super(struct super_block *sb, struct fs_context *fc) fc 1387 fs/nfsd/nfsctl.c static int nfsd_fs_get_tree(struct fs_context *fc) fc 1389 fs/nfsd/nfsctl.c return get_tree_keyed(fc, nfsd_fill_super, get_net(fc->net_ns)); fc 1392 fs/nfsd/nfsctl.c static void nfsd_fs_free_fc(struct fs_context *fc) fc 1394 fs/nfsd/nfsctl.c if (fc->s_fs_info) fc 1395 fs/nfsd/nfsctl.c put_net(fc->s_fs_info); fc 1403 fs/nfsd/nfsctl.c static int nfsd_init_fs_context(struct fs_context *fc) fc 1405 fs/nfsd/nfsctl.c put_user_ns(fc->user_ns); fc 1406 fs/nfsd/nfsctl.c fc->user_ns = get_user_ns(fc->net_ns->user_ns); fc 1407 fs/nfsd/nfsctl.c fc->ops = &nfsd_fs_context_ops; fc 263 fs/nsfs.c static int nsfs_init_fs_context(struct fs_context *fc) fc 265 fs/nsfs.c struct pseudo_fs_context *ctx = init_pseudo(fc, NSFS_MAGIC); fc 379 fs/openpromfs/inode.c static int openprom_fill_super(struct super_block *s, struct fs_context *fc) fc 413 fs/openpromfs/inode.c static int openpromfs_get_tree(struct fs_context *fc) fc 415 fs/openpromfs/inode.c return get_tree_single(fc, openprom_fill_super); fc 422 fs/openpromfs/inode.c static int openpromfs_init_fs_context(struct fs_context *fc) fc 424 fs/openpromfs/inode.c fc->ops = &openpromfs_context_ops; fc 1187 fs/pipe.c static int pipefs_init_fs_context(struct fs_context *fc) fc 1189 fs/pipe.c struct pseudo_fs_context *ctx = init_pseudo(fc, PIPEFS_MAGIC); fc 55 fs/proc/root.c static int proc_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 57 fs/proc/root.c struct proc_fs_context *ctx = fc->fs_private; fc 61 fs/proc/root.c opt = fs_parse(fc, &proc_fs_parameters, param, &result); fc 74 fs/proc/root.c return invalf(fc, "proc: hidepid value must be between 0 and 2.\n"); fc 86 fs/proc/root.c struct fs_context *fc, fc 90 fs/proc/root.c struct proc_fs_context *ctx = fc->fs_private; fc 98 fs/proc/root.c static int proc_fill_super(struct super_block *s, struct fs_context *fc) fc 104 fs/proc/root.c proc_apply_options(s, fc, pid_ns, current_user_ns()); fc 145 fs/proc/root.c static int proc_reconfigure(struct fs_context *fc) fc 147 fs/proc/root.c struct super_block *sb = fc->root->d_sb; fc 152 fs/proc/root.c proc_apply_options(sb, fc, pid, current_user_ns()); fc 156 fs/proc/root.c static int proc_get_tree(struct fs_context *fc) fc 158 fs/proc/root.c struct proc_fs_context *ctx = fc->fs_private; fc 160 fs/proc/root.c return get_tree_keyed(fc, proc_fill_super, ctx->pid_ns); fc 163 fs/proc/root.c static void proc_fs_context_free(struct fs_context *fc) fc 165 fs/proc/root.c struct proc_fs_context *ctx = fc->fs_private; fc 178 fs/proc/root.c static int proc_init_fs_context(struct fs_context *fc) fc 187 fs/proc/root.c put_user_ns(fc->user_ns); fc 188 fs/proc/root.c fc->user_ns = get_user_ns(ctx->pid_ns->user_ns); fc 189 fs/proc/root.c fc->fs_private = ctx; fc 190 fs/proc/root.c fc->ops = &proc_fs_context_ops; fc 304 fs/proc/root.c struct fs_context *fc; fc 307 fs/proc/root.c fc = fs_context_for_mount(&proc_fs_type, SB_KERNMOUNT); fc 308 fs/proc/root.c if (IS_ERR(fc)) fc 309 fs/proc/root.c return PTR_ERR(fc); fc 311 fs/proc/root.c if (fc->user_ns != ns->user_ns) { fc 312 fs/proc/root.c put_user_ns(fc->user_ns); fc 313 fs/proc/root.c fc->user_ns = get_user_ns(ns->user_ns); fc 316 fs/proc/root.c ctx = fc->fs_private; fc 323 fs/proc/root.c mnt = fc_mount(fc); fc 324 fs/proc/root.c put_fs_context(fc); fc 194 fs/ramfs/inode.c static int ramfs_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 197 fs/ramfs/inode.c struct ramfs_fs_info *fsi = fc->s_fs_info; fc 200 fs/ramfs/inode.c opt = fs_parse(fc, &ramfs_fs_parameters, param, &result); fc 222 fs/ramfs/inode.c static int ramfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 242 fs/ramfs/inode.c static int ramfs_get_tree(struct fs_context *fc) fc 244 fs/ramfs/inode.c return get_tree_nodev(fc, ramfs_fill_super); fc 247 fs/ramfs/inode.c static void ramfs_free_fc(struct fs_context *fc) fc 249 fs/ramfs/inode.c kfree(fc->s_fs_info); fc 258 fs/ramfs/inode.c int ramfs_init_fs_context(struct fs_context *fc) fc 267 fs/ramfs/inode.c fc->s_fs_info = fsi; fc 268 fs/ramfs/inode.c fc->ops = &ramfs_context_ops; fc 426 fs/romfs/super.c static int romfs_reconfigure(struct fs_context *fc) fc 428 fs/romfs/super.c sync_filesystem(fc->root->d_sb); fc 429 fs/romfs/super.c fc->sb_flags |= SB_RDONLY; fc 459 fs/romfs/super.c static int romfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 508 fs/romfs/super.c if (!(fc->sb_flags & SB_SILENT)) fc 509 fs/romfs/super.c errorf(fc, "VFS: Can't find a romfs filesystem on dev %s.\n", fc 522 fs/romfs/super.c if (!(fc->sb_flags & SB_SILENT)) fc 552 fs/romfs/super.c static int romfs_get_tree(struct fs_context *fc) fc 557 fs/romfs/super.c ret = get_tree_mtd(fc, romfs_fill_super); fc 561 fs/romfs/super.c ret = get_tree_bdev(fc, romfs_fill_super); fc 574 fs/romfs/super.c static int romfs_init_fs_context(struct fs_context *fc) fc 576 fs/romfs/super.c fc->ops = &romfs_context_ops; fc 41 fs/squashfs/super.c struct fs_context *fc, fc 47 fs/squashfs/super.c errorf(fc, "Major/Minor mismatch, older Squashfs %d.%d " fc 51 fs/squashfs/super.c errorf(fc, "Major/Minor mismatch, trying to mount newer " fc 53 fs/squashfs/super.c errorf(fc, "Please update your kernel"); fc 59 fs/squashfs/super.c errorf(fc, "Filesystem uses \"%s\" compression. This is not supported", fc 68 fs/squashfs/super.c static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 103 fs/squashfs/super.c errorf(fc, "unable to read squashfs_super_block"); fc 114 fs/squashfs/super.c if (!(fc->sb_flags & SB_SILENT)) fc 115 fs/squashfs/super.c errorf(fc, "Can't find a SQUASHFS superblock on %pg", fc 122 fs/squashfs/super.c fc, fc 146 fs/squashfs/super.c errorf(fc, "Page size > filesystem block size (%d). This is " fc 205 fs/squashfs/super.c errorf(fc, "Failed to allocate read_page block"); fc 228 fs/squashfs/super.c errorf(fc, "unable to read xattr id index table"); fc 242 fs/squashfs/super.c errorf(fc, "unable to read id index table"); fc 258 fs/squashfs/super.c errorf(fc, "unable to read inode lookup table"); fc 283 fs/squashfs/super.c errorf(fc, "unable to read fragment index table"); fc 330 fs/squashfs/super.c errorf(fc, "squashfs image failed sanity check"); fc 346 fs/squashfs/super.c static int squashfs_get_tree(struct fs_context *fc) fc 348 fs/squashfs/super.c return get_tree_bdev(fc, squashfs_fill_super); fc 351 fs/squashfs/super.c static int squashfs_reconfigure(struct fs_context *fc) fc 353 fs/squashfs/super.c sync_filesystem(fc->root->d_sb); fc 354 fs/squashfs/super.c fc->sb_flags |= SB_RDONLY; fc 363 fs/squashfs/super.c static int squashfs_init_fs_context(struct fs_context *fc) fc 365 fs/squashfs/super.c fc->ops = &squashfs_context_ops; fc 485 fs/super.c bool mount_capable(struct fs_context *fc) fc 487 fs/super.c if (!(fc->fs_type->fs_flags & FS_USERNS_MOUNT)) fc 490 fs/super.c return ns_capable(fc->user_ns, CAP_SYS_ADMIN); fc 511 fs/super.c struct super_block *sget_fc(struct fs_context *fc, fc 517 fs/super.c struct user_namespace *user_ns = fc->global ? &init_user_ns : fc->user_ns; fc 523 fs/super.c hlist_for_each_entry(old, &fc->fs_type->fs_supers, s_instances) { fc 524 fs/super.c if (test(old, fc)) fc 530 fs/super.c s = alloc_super(fc->fs_type, fc->sb_flags, user_ns); fc 536 fs/super.c s->s_fs_info = fc->s_fs_info; fc 537 fs/super.c err = set(s, fc); fc 544 fs/super.c fc->s_fs_info = NULL; fc 545 fs/super.c s->s_type = fc->fs_type; fc 546 fs/super.c s->s_iflags |= fc->s_iflags; fc 903 fs/super.c int reconfigure_super(struct fs_context *fc) fc 905 fs/super.c struct super_block *sb = fc->root->d_sb; fc 908 fs/super.c bool force = fc->sb_flags & SB_FORCE; fc 910 fs/super.c if (fc->sb_flags_mask & ~MS_RMT_MASK) fc 915 fs/super.c retval = security_sb_remount(sb, fc->security); fc 919 fs/super.c if (fc->sb_flags_mask & SB_RDONLY) { fc 921 fs/super.c if (!(fc->sb_flags & SB_RDONLY) && bdev_read_only(sb->s_bdev)) fc 925 fs/super.c remount_ro = (fc->sb_flags & SB_RDONLY) && !sb_rdonly(sb); fc 956 fs/super.c if (fc->ops->reconfigure) { fc 957 fs/super.c retval = fc->ops->reconfigure(fc); fc 967 fs/super.c WRITE_ONCE(sb->s_flags, ((sb->s_flags & ~fc->sb_flags_mask) | fc 968 fs/super.c (fc->sb_flags & fc->sb_flags_mask))); fc 995 fs/super.c struct fs_context *fc; fc 997 fs/super.c fc = fs_context_for_reconfigure(sb->s_root, fc 999 fs/super.c if (!IS_ERR(fc)) { fc 1000 fs/super.c if (parse_monolithic_mount_data(fc, NULL) == 0) fc 1001 fs/super.c (void)reconfigure_super(fc); fc 1002 fs/super.c put_fs_context(fc); fc 1121 fs/super.c int set_anon_super_fc(struct super_block *sb, struct fs_context *fc) fc 1127 fs/super.c static int test_keyed_super(struct super_block *sb, struct fs_context *fc) fc 1129 fs/super.c return sb->s_fs_info == fc->s_fs_info; fc 1132 fs/super.c static int test_single_super(struct super_block *s, struct fs_context *fc) fc 1162 fs/super.c int vfs_get_super(struct fs_context *fc, fc 1165 fs/super.c struct fs_context *fc)) fc 1186 fs/super.c sb = sget_fc(fc, test, set_anon_super_fc); fc 1191 fs/super.c err = fill_super(sb, fc); fc 1196 fs/super.c fc->root = dget(sb->s_root); fc 1198 fs/super.c fc->root = dget(sb->s_root); fc 1200 fs/super.c err = reconfigure_super(fc); fc 1202 fs/super.c dput(fc->root); fc 1203 fs/super.c fc->root = NULL; fc 1217 fs/super.c int get_tree_nodev(struct fs_context *fc, fc 1219 fs/super.c struct fs_context *fc)) fc 1221 fs/super.c return vfs_get_super(fc, vfs_get_independent_super, fill_super); fc 1225 fs/super.c int get_tree_single(struct fs_context *fc, fc 1227 fs/super.c struct fs_context *fc)) fc 1229 fs/super.c return vfs_get_super(fc, vfs_get_single_super, fill_super); fc 1233 fs/super.c int get_tree_single_reconf(struct fs_context *fc, fc 1235 fs/super.c struct fs_context *fc)) fc 1237 fs/super.c return vfs_get_super(fc, vfs_get_single_reconf_super, fill_super); fc 1241 fs/super.c int get_tree_keyed(struct fs_context *fc, fc 1243 fs/super.c struct fs_context *fc), fc 1246 fs/super.c fc->s_fs_info = key; fc 1247 fs/super.c return vfs_get_super(fc, vfs_get_keyed_super, fill_super); fc 1262 fs/super.c static int set_bdev_super_fc(struct super_block *s, struct fs_context *fc) fc 1264 fs/super.c return set_bdev_super(s, fc->sget_key); fc 1267 fs/super.c static int test_bdev_super_fc(struct super_block *s, struct fs_context *fc) fc 1269 fs/super.c return s->s_bdev == fc->sget_key; fc 1277 fs/super.c int get_tree_bdev(struct fs_context *fc, fc 1286 fs/super.c if (!(fc->sb_flags & SB_RDONLY)) fc 1289 fs/super.c if (!fc->source) fc 1290 fs/super.c return invalf(fc, "No source specified"); fc 1292 fs/super.c bdev = blkdev_get_by_path(fc->source, mode, fc->fs_type); fc 1294 fs/super.c errorf(fc, "%s: Can't open blockdev", fc->source); fc 1305 fs/super.c warnf(fc, "%pg: Can't mount, blockdev is frozen", bdev); fc 1310 fs/super.c fc->sb_flags |= SB_NOSEC; fc 1311 fs/super.c fc->sget_key = bdev; fc 1312 fs/super.c s = sget_fc(fc, test_bdev_super_fc, set_bdev_super_fc); fc 1321 fs/super.c if ((fc->sb_flags ^ s->s_flags) & SB_RDONLY) { fc 1322 fs/super.c warnf(fc, "%pg: Can't mount, would change RO state", bdev); fc 1342 fs/super.c error = fill_super(s, fc); fc 1352 fs/super.c BUG_ON(fc->root); fc 1353 fs/super.c fc->root = dget(s->s_root); fc 1476 fs/super.c struct fs_context *fc; fc 1484 fs/super.c fc = fs_context_for_reconfigure(s->s_root, flags, MS_RMT_MASK); fc 1485 fs/super.c if (IS_ERR(fc)) fc 1486 fs/super.c return PTR_ERR(fc); fc 1488 fs/super.c ret = parse_monolithic_mount_data(fc, data); fc 1492 fs/super.c ret = reconfigure_super(fc); fc 1494 fs/super.c put_fs_context(fc); fc 1536 fs/super.c int vfs_get_tree(struct fs_context *fc) fc 1541 fs/super.c if (fc->root) fc 1547 fs/super.c error = fc->ops->get_tree(fc); fc 1551 fs/super.c if (!fc->root) { fc 1553 fs/super.c fc->fs_type->name); fc 1560 fs/super.c sb = fc->root->d_sb; fc 1572 fs/super.c error = security_sb_set_mnt_opts(sb, fc->security, 0, NULL); fc 1574 fs/super.c fc_drop_locked(fc); fc 1585 fs/super.c "negative value (%lld)\n", fc->fs_type->name, sb->s_maxbytes); fc 26 fs/sysfs/mount.c static int sysfs_get_tree(struct fs_context *fc) fc 28 fs/sysfs/mount.c struct kernfs_fs_context *kfc = fc->fs_private; fc 31 fs/sysfs/mount.c ret = kernfs_get_tree(fc); fc 36 fs/sysfs/mount.c fc->root->d_sb->s_iflags |= SB_I_USERNS_VISIBLE; fc 40 fs/sysfs/mount.c static void sysfs_fs_context_free(struct fs_context *fc) fc 42 fs/sysfs/mount.c struct kernfs_fs_context *kfc = fc->fs_private; fc 46 fs/sysfs/mount.c kernfs_free_fs_context(fc); fc 55 fs/sysfs/mount.c static int sysfs_init_fs_context(struct fs_context *fc) fc 60 fs/sysfs/mount.c if (!(fc->sb_flags & SB_KERNMOUNT)) { fc 72 fs/sysfs/mount.c fc->fs_private = kfc; fc 73 fs/sysfs/mount.c fc->ops = &sysfs_fs_context_ops; fc 75 fs/sysfs/mount.c put_user_ns(fc->user_ns); fc 76 fs/sysfs/mount.c fc->user_ns = get_user_ns(netns->user_ns); fc 78 fs/sysfs/mount.c fc->global = true; fc 2281 include/linux/fs.h int set_anon_super_fc(struct super_block *s, struct fs_context *fc); fc 2284 include/linux/fs.h struct super_block *sget_fc(struct fs_context *fc, fc 111 include/linux/fs_context.h void (*free)(struct fs_context *fc); fc 112 include/linux/fs_context.h int (*dup)(struct fs_context *fc, struct fs_context *src_fc); fc 113 include/linux/fs_context.h int (*parse_param)(struct fs_context *fc, struct fs_parameter *param); fc 114 include/linux/fs_context.h int (*parse_monolithic)(struct fs_context *fc, void *data); fc 115 include/linux/fs_context.h int (*get_tree)(struct fs_context *fc); fc 116 include/linux/fs_context.h int (*reconfigure)(struct fs_context *fc); fc 130 include/linux/fs_context.h extern struct fs_context *vfs_dup_fs_context(struct fs_context *fc); fc 131 include/linux/fs_context.h extern int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param); fc 132 include/linux/fs_context.h extern int vfs_parse_fs_string(struct fs_context *fc, const char *key, fc 134 include/linux/fs_context.h extern int generic_parse_monolithic(struct fs_context *fc, void *data); fc 135 include/linux/fs_context.h extern int vfs_get_tree(struct fs_context *fc); fc 136 include/linux/fs_context.h extern void put_fs_context(struct fs_context *fc); fc 147 include/linux/fs_context.h extern int vfs_get_super(struct fs_context *fc, fc 150 include/linux/fs_context.h struct fs_context *fc)); fc 152 include/linux/fs_context.h extern int get_tree_nodev(struct fs_context *fc, fc 154 include/linux/fs_context.h struct fs_context *fc)); fc 155 include/linux/fs_context.h extern int get_tree_single(struct fs_context *fc, fc 157 include/linux/fs_context.h struct fs_context *fc)); fc 158 include/linux/fs_context.h extern int get_tree_single_reconf(struct fs_context *fc, fc 160 include/linux/fs_context.h struct fs_context *fc)); fc 161 include/linux/fs_context.h extern int get_tree_keyed(struct fs_context *fc, fc 163 include/linux/fs_context.h struct fs_context *fc), fc 166 include/linux/fs_context.h extern int get_tree_bdev(struct fs_context *fc, fc 168 include/linux/fs_context.h struct fs_context *fc)); fc 186 include/linux/fs_context.h void logfc(struct fs_context *fc, const char *fmt, ...); fc 196 include/linux/fs_context.h #define infof(fc, fmt, ...) ({ logfc(fc, "i "fmt, ## __VA_ARGS__); }) fc 206 include/linux/fs_context.h #define warnf(fc, fmt, ...) ({ logfc(fc, "w "fmt, ## __VA_ARGS__); }) fc 216 include/linux/fs_context.h #define errorf(fc, fmt, ...) ({ logfc(fc, "e "fmt, ## __VA_ARGS__); }) fc 226 include/linux/fs_context.h #define invalf(fc, fmt, ...) ({ errorf(fc, fmt, ## __VA_ARGS__); -EINVAL; }) fc 84 include/linux/fs_parser.h extern int fs_parse(struct fs_context *fc, fc 88 include/linux/fs_parser.h extern int fs_lookup_param(struct fs_context *fc, fc 266 include/linux/ieee80211.h static inline bool ieee80211_has_tods(__le16 fc) fc 268 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; fc 275 include/linux/ieee80211.h static inline bool ieee80211_has_fromds(__le16 fc) fc 277 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; fc 284 include/linux/ieee80211.h static inline bool ieee80211_has_a4(__le16 fc) fc 287 include/linux/ieee80211.h return (fc & tmp) == tmp; fc 294 include/linux/ieee80211.h static inline bool ieee80211_has_morefrags(__le16 fc) fc 296 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; fc 303 include/linux/ieee80211.h static inline bool ieee80211_has_retry(__le16 fc) fc 305 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; fc 312 include/linux/ieee80211.h static inline bool ieee80211_has_pm(__le16 fc) fc 314 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; fc 321 include/linux/ieee80211.h static inline bool ieee80211_has_moredata(__le16 fc) fc 323 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; fc 330 include/linux/ieee80211.h static inline bool ieee80211_has_protected(__le16 fc) fc 332 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; fc 339 include/linux/ieee80211.h static inline bool ieee80211_has_order(__le16 fc) fc 341 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; fc 348 include/linux/ieee80211.h static inline bool ieee80211_is_mgmt(__le16 fc) fc 350 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == fc 358 include/linux/ieee80211.h static inline bool ieee80211_is_ctl(__le16 fc) fc 360 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == fc 368 include/linux/ieee80211.h static inline bool ieee80211_is_data(__le16 fc) fc 370 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == fc 378 include/linux/ieee80211.h static inline bool ieee80211_is_data_qos(__le16 fc) fc 384 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_STYPE_QOS_DATA)) == fc 392 include/linux/ieee80211.h static inline bool ieee80211_is_data_present(__le16 fc) fc 398 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | 0x40)) == fc 406 include/linux/ieee80211.h static inline bool ieee80211_is_assoc_req(__le16 fc) fc 408 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 416 include/linux/ieee80211.h static inline bool ieee80211_is_assoc_resp(__le16 fc) fc 418 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 426 include/linux/ieee80211.h static inline bool ieee80211_is_reassoc_req(__le16 fc) fc 428 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 436 include/linux/ieee80211.h static inline bool ieee80211_is_reassoc_resp(__le16 fc) fc 438 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 446 include/linux/ieee80211.h static inline bool ieee80211_is_probe_req(__le16 fc) fc 448 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 456 include/linux/ieee80211.h static inline bool ieee80211_is_probe_resp(__le16 fc) fc 458 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 466 include/linux/ieee80211.h static inline bool ieee80211_is_beacon(__le16 fc) fc 468 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 476 include/linux/ieee80211.h static inline bool ieee80211_is_atim(__le16 fc) fc 478 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 486 include/linux/ieee80211.h static inline bool ieee80211_is_disassoc(__le16 fc) fc 488 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 496 include/linux/ieee80211.h static inline bool ieee80211_is_auth(__le16 fc) fc 498 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 506 include/linux/ieee80211.h static inline bool ieee80211_is_deauth(__le16 fc) fc 508 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 516 include/linux/ieee80211.h static inline bool ieee80211_is_action(__le16 fc) fc 518 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 526 include/linux/ieee80211.h static inline bool ieee80211_is_back_req(__le16 fc) fc 528 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 536 include/linux/ieee80211.h static inline bool ieee80211_is_back(__le16 fc) fc 538 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 546 include/linux/ieee80211.h static inline bool ieee80211_is_pspoll(__le16 fc) fc 548 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 556 include/linux/ieee80211.h static inline bool ieee80211_is_rts(__le16 fc) fc 558 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 566 include/linux/ieee80211.h static inline bool ieee80211_is_cts(__le16 fc) fc 568 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 576 include/linux/ieee80211.h static inline bool ieee80211_is_ack(__le16 fc) fc 578 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 586 include/linux/ieee80211.h static inline bool ieee80211_is_cfend(__le16 fc) fc 588 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 596 include/linux/ieee80211.h static inline bool ieee80211_is_cfendack(__le16 fc) fc 598 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 606 include/linux/ieee80211.h static inline bool ieee80211_is_nullfunc(__le16 fc) fc 608 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 616 include/linux/ieee80211.h static inline bool ieee80211_is_qos_nullfunc(__le16 fc) fc 618 include/linux/ieee80211.h return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == fc 626 include/linux/ieee80211.h static inline bool ieee80211_is_any_nullfunc(__le16 fc) fc 628 include/linux/ieee80211.h return (ieee80211_is_nullfunc(fc) || ieee80211_is_qos_nullfunc(fc)); fc 635 include/linux/ieee80211.h static inline bool ieee80211_is_bufferable_mmpdu(__le16 fc) fc 639 include/linux/ieee80211.h return ieee80211_is_mgmt(fc) && fc 640 include/linux/ieee80211.h (ieee80211_is_action(fc) || fc 641 include/linux/ieee80211.h ieee80211_is_disassoc(fc) || fc 642 include/linux/ieee80211.h ieee80211_is_deauth(fc)); fc 234 include/linux/ieee802154.h static inline int ieee802154_is_data(__le16 fc) fc 236 include/linux/ieee802154.h return (fc & cpu_to_le16(IEEE802154_FCTL_FTYPE)) == fc 244 include/linux/ieee802154.h static inline bool ieee802154_is_secen(__le16 fc) fc 246 include/linux/ieee802154.h return fc & cpu_to_le16(IEEE802154_FCTL_SECEN); fc 253 include/linux/ieee802154.h static inline bool ieee802154_is_ackreq(__le16 fc) fc 255 include/linux/ieee802154.h return fc & cpu_to_le16(IEEE802154_FCTL_ACKREQ); fc 262 include/linux/ieee802154.h static inline bool ieee802154_is_intra_pan(__le16 fc) fc 264 include/linux/ieee802154.h return fc & cpu_to_le16(IEEE802154_FCTL_INTRA_PAN); fc 271 include/linux/ieee802154.h static inline __le16 ieee802154_daddr_mode(__le16 fc) fc 273 include/linux/ieee802154.h return fc & cpu_to_le16(IEEE802154_FCTL_DADDR); fc 280 include/linux/ieee802154.h static inline __le16 ieee802154_saddr_mode(__le16 fc) fc 282 include/linux/ieee802154.h return fc & cpu_to_le16(IEEE802154_FCTL_SADDR); fc 380 include/linux/kernfs.h int kernfs_get_tree(struct fs_context *fc); fc 381 include/linux/kernfs.h void kernfs_free_fs_context(struct fs_context *fc); fc 492 include/linux/kernfs.h static inline int kernfs_get_tree(struct fs_context *fc) fc 495 include/linux/kernfs.h static inline void kernfs_free_fs_context(struct fs_context *fc) { } fc 1492 include/linux/lsm_hooks.h int (*fs_context_dup)(struct fs_context *fc, struct fs_context *src_sc); fc 1493 include/linux/lsm_hooks.h int (*fs_context_parse_param)(struct fs_context *fc, struct fs_parameter *param); fc 94 include/linux/mount.h extern struct vfsmount *fc_mount(struct fs_context *fc); fc 95 include/linux/mount.h extern struct vfsmount *vfs_create_mount(struct fs_context *fc); fc 17 include/linux/mtd/super.h extern int get_tree_mtd(struct fs_context *fc, fc 19 include/linux/mtd/super.h struct fs_context *fc)); fc 13 include/linux/pseudo_fs.h struct pseudo_fs_context *init_pseudo(struct fs_context *fc, fc 7 include/linux/ramfs.h extern int ramfs_init_fs_context(struct fs_context *fc); fc 282 include/linux/security.h int security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc); fc 283 include/linux/security.h int security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param); fc 589 include/linux/security.h static inline int security_fs_context_dup(struct fs_context *fc, fc 594 include/linux/security.h static inline int security_fs_context_parse_param(struct fs_context *fc, fc 54 include/linux/shmem_fs.h extern int shmem_init_fs_context(struct fs_context *fc); fc 220 include/net/9p/client.h void p9_fcall_fini(struct p9_fcall *fc); fc 5166 include/net/cfg80211.h unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc); fc 73 include/net/ieee802154_netdev.h struct ieee802154_hdr_fc fc; fc 241 include/net/mac802154.h __le16 fc; fc 249 include/net/mac802154.h memcpy(&fc, skb_mac_header(skb), IEEE802154_FC_LEN); fc 250 include/net/mac802154.h return fc; fc 258 include/net/mac802154.h static inline unsigned char *ieee802154_skb_dst_pan(__le16 fc, fc 263 include/net/mac802154.h switch (ieee802154_daddr_mode(fc)) { fc 287 include/net/mac802154.h static inline unsigned char *ieee802154_skb_src_pan(__le16 fc, fc 292 include/net/mac802154.h switch (ieee802154_saddr_mode(fc)) { fc 301 include/net/mac802154.h if (ieee802154_is_intra_pan(fc)) { fc 302 include/net/mac802154.h src_pan = ieee802154_skb_dst_pan(fc, skb); fc 306 include/net/mac802154.h switch (ieee802154_daddr_mode(fc)) { fc 347 include/net/mac802154.h static inline bool ieee802154_skb_is_intra_pan_addressing(__le16 fc, fc 350 include/net/mac802154.h unsigned char *dst_pan = ieee802154_skb_dst_pan(fc, skb), fc 351 include/net/mac802154.h *src_pan = ieee802154_skb_src_pan(fc, skb); fc 147 include/net/phonet/pep.h #define pn_flow_safe(fc) ((fc) >> 1) fc 111 include/uapi/linux/if_fddi.h __u8 fc; /* frame control */ fc 112 include/uapi/linux/if_hippi.h __u8 fc:3; fc 118 include/uapi/linux/if_hippi.h __u8 fc:3; fc 387 include/uapi/linux/kvm.h __u8 fc; fc 630 init/do_mounts.c static int rootfs_init_fs_context(struct fs_context *fc) fc 633 init/do_mounts.c return shmem_init_fs_context(fc); fc 635 init/do_mounts.c return ramfs_init_fs_context(fc); fc 343 ipc/mqueue.c static int mqueue_fill_super(struct super_block *sb, struct fs_context *fc) fc 364 ipc/mqueue.c static int mqueue_get_tree(struct fs_context *fc) fc 366 ipc/mqueue.c struct mqueue_fs_context *ctx = fc->fs_private; fc 368 ipc/mqueue.c return get_tree_keyed(fc, mqueue_fill_super, ctx->ipc_ns); fc 371 ipc/mqueue.c static void mqueue_fs_context_free(struct fs_context *fc) fc 373 ipc/mqueue.c struct mqueue_fs_context *ctx = fc->fs_private; fc 379 ipc/mqueue.c static int mqueue_init_fs_context(struct fs_context *fc) fc 388 ipc/mqueue.c put_user_ns(fc->user_ns); fc 389 ipc/mqueue.c fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); fc 390 ipc/mqueue.c fc->fs_private = ctx; fc 391 ipc/mqueue.c fc->ops = &mqueue_fs_context_ops; fc 398 ipc/mqueue.c struct fs_context *fc; fc 401 ipc/mqueue.c fc = fs_context_for_mount(&mqueue_fs_type, SB_KERNMOUNT); fc 402 ipc/mqueue.c if (IS_ERR(fc)) fc 403 ipc/mqueue.c return ERR_CAST(fc); fc 405 ipc/mqueue.c ctx = fc->fs_private; fc 408 ipc/mqueue.c put_user_ns(fc->user_ns); fc 409 ipc/mqueue.c fc->user_ns = get_user_ns(ctx->ipc_ns->user_ns); fc 411 ipc/mqueue.c mnt = fc_mount(fc); fc 412 ipc/mqueue.c put_fs_context(fc); fc 602 kernel/bpf/inode.c static int bpf_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 604 kernel/bpf/inode.c struct bpf_mount_opts *opts = fc->fs_private; fc 608 kernel/bpf/inode.c opt = fs_parse(fc, &bpf_fs_parameters, param, &result); fc 625 kernel/bpf/inode.c static int bpf_fill_super(struct super_block *sb, struct fs_context *fc) fc 628 kernel/bpf/inode.c struct bpf_mount_opts *opts = fc->fs_private; fc 646 kernel/bpf/inode.c static int bpf_get_tree(struct fs_context *fc) fc 648 kernel/bpf/inode.c return get_tree_nodev(fc, bpf_fill_super); fc 651 kernel/bpf/inode.c static void bpf_free_fc(struct fs_context *fc) fc 653 kernel/bpf/inode.c kfree(fc->fs_private); fc 665 kernel/bpf/inode.c static int bpf_init_fs_context(struct fs_context *fc) fc 675 kernel/bpf/inode.c fc->fs_private = opts; fc 676 kernel/bpf/inode.c fc->ops = &bpf_context_ops; fc 61 kernel/cgroup/cgroup-internal.h static inline struct cgroup_fs_context *cgroup_fc2context(struct fs_context *fc) fc 63 kernel/cgroup/cgroup-internal.h struct kernfs_fs_context *kfc = fc->fs_private; fc 222 kernel/cgroup/cgroup-internal.h int cgroup_do_get_tree(struct fs_context *fc); fc 274 kernel/cgroup/cgroup-internal.h int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param); fc 275 kernel/cgroup/cgroup-internal.h int cgroup1_get_tree(struct fs_context *fc); fc 21 kernel/cgroup/cgroup-v1.c #define cg_invalf(fc, fmt, ...) invalf(fc, fmt, ## __VA_ARGS__) fc 907 kernel/cgroup/cgroup-v1.c int cgroup1_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 909 kernel/cgroup/cgroup-v1.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 914 kernel/cgroup/cgroup-v1.c opt = fs_parse(fc, &cgroup1_fs_parameters, param, &result); fc 917 kernel/cgroup/cgroup-v1.c fc->source = param->string; fc 927 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Unknown subsys name '%s'", param->key); fc 955 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: release_agent respecified"); fc 965 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Empty name"); fc 967 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Name too long"); fc 975 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Invalid name"); fc 979 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: name respecified"); fc 987 kernel/cgroup/cgroup-v1.c static int check_cgroupfs_options(struct fs_context *fc) fc 989 kernel/cgroup/cgroup-v1.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 1014 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: subsys name conflicts with all"); fc 1024 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: Need name or subsystem set"); fc 1032 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: noprefix used incorrectly"); fc 1036 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: none used incorrectly"); fc 1041 kernel/cgroup/cgroup-v1.c int cgroup1_reconfigure(struct fs_context *fc) fc 1043 kernel/cgroup/cgroup-v1.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 1044 kernel/cgroup/cgroup-v1.c struct kernfs_root *kf_root = kernfs_root_from_sb(fc->root->d_sb); fc 1052 kernel/cgroup/cgroup-v1.c ret = check_cgroupfs_options(fc); fc 1066 kernel/cgroup/cgroup-v1.c cg_invalf(fc, "option or name mismatch, new: 0x%x \"%s\", old: 0x%x \"%s\"", fc 1113 kernel/cgroup/cgroup-v1.c static int cgroup1_root_to_use(struct fs_context *fc) fc 1115 kernel/cgroup/cgroup-v1.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 1121 kernel/cgroup/cgroup-v1.c ret = check_cgroupfs_options(fc); fc 1183 kernel/cgroup/cgroup-v1.c return cg_invalf(fc, "cgroup1: No subsys list or none specified"); fc 1202 kernel/cgroup/cgroup-v1.c int cgroup1_get_tree(struct fs_context *fc) fc 1204 kernel/cgroup/cgroup-v1.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 1213 kernel/cgroup/cgroup-v1.c ret = cgroup1_root_to_use(fc); fc 1220 kernel/cgroup/cgroup-v1.c ret = cgroup_do_get_tree(fc); fc 1223 kernel/cgroup/cgroup-v1.c struct super_block *sb = fc->root->d_sb; fc 1224 kernel/cgroup/cgroup-v1.c dput(fc->root); fc 1833 kernel/cgroup/cgroup.c static int cgroup2_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 1835 kernel/cgroup/cgroup.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 1839 kernel/cgroup/cgroup.c opt = fs_parse(fc, &cgroup2_fs_parameters, param, &result); fc 1878 kernel/cgroup/cgroup.c static int cgroup_reconfigure(struct fs_context *fc) fc 1880 kernel/cgroup/cgroup.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 2091 kernel/cgroup/cgroup.c int cgroup_do_get_tree(struct fs_context *fc) fc 2093 kernel/cgroup/cgroup.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 2097 kernel/cgroup/cgroup.c if (fc->fs_type == &cgroup2_fs_type) fc 2101 kernel/cgroup/cgroup.c ret = kernfs_get_tree(fc); fc 2109 kernel/cgroup/cgroup.c struct super_block *sb = fc->root->d_sb; fc 2121 kernel/cgroup/cgroup.c dput(fc->root); fc 2127 kernel/cgroup/cgroup.c fc->root = nsdentry; fc 2139 kernel/cgroup/cgroup.c static void cgroup_fs_context_free(struct fs_context *fc) fc 2141 kernel/cgroup/cgroup.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 2146 kernel/cgroup/cgroup.c kernfs_free_fs_context(fc); fc 2150 kernel/cgroup/cgroup.c static int cgroup_get_tree(struct fs_context *fc) fc 2152 kernel/cgroup/cgroup.c struct cgroup_fs_context *ctx = cgroup_fc2context(fc); fc 2159 kernel/cgroup/cgroup.c ret = cgroup_do_get_tree(fc); fc 2183 kernel/cgroup/cgroup.c static int cgroup_init_fs_context(struct fs_context *fc) fc 2200 kernel/cgroup/cgroup.c fc->fs_private = &ctx->kfc; fc 2201 kernel/cgroup/cgroup.c if (fc->fs_type == &cgroup2_fs_type) fc 2202 kernel/cgroup/cgroup.c fc->ops = &cgroup_fs_context_ops; fc 2204 kernel/cgroup/cgroup.c fc->ops = &cgroup1_fs_context_ops; fc 2205 kernel/cgroup/cgroup.c put_user_ns(fc->user_ns); fc 2206 kernel/cgroup/cgroup.c fc->user_ns = get_user_ns(ctx->ns->user_ns); fc 2207 kernel/cgroup/cgroup.c fc->global = true; fc 2257 kernel/cgroup/cgroup.c static int cpuset_init_fs_context(struct fs_context *fc) fc 2263 kernel/cgroup/cgroup.c err = cgroup_init_fs_context(fc); fc 2269 kernel/cgroup/cgroup.c fc->ops = &cpuset_fs_context_ops; fc 2271 kernel/cgroup/cgroup.c ctx = cgroup_fc2context(fc); fc 2277 kernel/cgroup/cgroup.c put_filesystem(fc->fs_type); fc 2278 kernel/cgroup/cgroup.c fc->fs_type = &cgroup_fs_type; fc 44 lib/zlib_deflate/defutil.h } fc; fc 51 lib/zlib_deflate/defutil.h #define Freq fc.freq fc 52 lib/zlib_deflate/defutil.h #define Code fc.code fc 2997 mm/percpu.c void *fc; fc 3000 mm/percpu.c fc = memblock_alloc_from(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS)); fc 3001 mm/percpu.c if (!ai || !fc) fc 3004 mm/percpu.c kmemleak_free(fc); fc 3013 mm/percpu.c pcpu_setup_first_chunk(ai, fc); fc 3412 mm/shmem.c static int shmem_parse_one(struct fs_context *fc, struct fs_parameter *param) fc 3414 mm/shmem.c struct shmem_options *ctx = fc->fs_private; fc 3420 mm/shmem.c opt = fs_parse(fc, &shmem_fs_parameters, param, &result); fc 3484 mm/shmem.c return invalf(fc, "tmpfs: Unsupported parameter '%s'", param->key); fc 3486 mm/shmem.c return invalf(fc, "tmpfs: Bad value for '%s'", param->key); fc 3489 mm/shmem.c static int shmem_parse_options(struct fs_context *fc, void *data) fc 3494 mm/shmem.c int err = security_sb_eat_lsm_opts(options, &fc->security); fc 3525 mm/shmem.c err = vfs_parse_fs_string(fc, this_char, value, len); fc 3540 mm/shmem.c static int shmem_reconfigure(struct fs_context *fc) fc 3542 mm/shmem.c struct shmem_options *ctx = fc->fs_private; fc 3543 mm/shmem.c struct shmem_sb_info *sbinfo = SHMEM_SB(fc->root->d_sb); fc 3592 mm/shmem.c return invalf(fc, "tmpfs: %s", err); fc 3633 mm/shmem.c static int shmem_fill_super(struct super_block *sb, struct fs_context *fc) fc 3635 mm/shmem.c struct shmem_options *ctx = fc->fs_private; fc 3711 mm/shmem.c static int shmem_get_tree(struct fs_context *fc) fc 3713 mm/shmem.c return get_tree_nodev(fc, shmem_fill_super); fc 3716 mm/shmem.c static void shmem_free_fc(struct fs_context *fc) fc 3718 mm/shmem.c struct shmem_options *ctx = fc->fs_private; fc 3872 mm/shmem.c int shmem_init_fs_context(struct fs_context *fc) fc 3884 mm/shmem.c fc->fs_private = ctx; fc 3885 mm/shmem.c fc->ops = &shmem_fs_context_ops; fc 249 mm/z3fold.c static int z3fold_init_fs_context(struct fs_context *fc) fc 251 mm/z3fold.c return init_pseudo(fc, Z3FOLD_MAGIC) ? 0 : -ENOMEM; fc 1804 mm/zsmalloc.c static int zs_init_fs_context(struct fs_context *fc) fc 1806 mm/zsmalloc.c return init_pseudo(fc, ZSMALLOC_MAGIC) ? 0 : -ENOMEM; fc 58 net/802/fddi.c fddi->fc = FDDI_FC_K_ASYNC_LLC_DEF; fc 60 net/802/hippi.c hip->le.fc = 0; fc 225 net/9p/client.c static int p9_fcall_init(struct p9_client *c, struct p9_fcall *fc, fc 229 net/9p/client.c fc->sdata = kmem_cache_alloc(c->fcall_cache, GFP_NOFS); fc 230 net/9p/client.c fc->cache = c->fcall_cache; fc 232 net/9p/client.c fc->sdata = kmalloc(alloc_msize, GFP_NOFS); fc 233 net/9p/client.c fc->cache = NULL; fc 235 net/9p/client.c if (!fc->sdata) fc 237 net/9p/client.c fc->capacity = alloc_msize; fc 241 net/9p/client.c void p9_fcall_fini(struct p9_fcall *fc) fc 246 net/9p/client.c if (unlikely(!fc->sdata)) fc 249 net/9p/client.c if (fc->cache) fc 250 net/9p/client.c kmem_cache_free(fc->cache, fc->sdata); fc 252 net/9p/client.c kfree(fc->sdata); fc 27 net/atm/lec.h unsigned char fc; fc 253 net/ieee802154/6lowpan/rx.c __le16 fc = ieee802154_get_fc_from_skb(skb); fc 256 net/ieee802154/6lowpan/rx.c if (!ieee802154_is_data(fc) || fc 257 net/ieee802154/6lowpan/rx.c !ieee802154_skb_is_intra_pan_addressing(fc, skb)) fc 83 net/ieee802154/header_ops.c struct ieee802154_hdr_fc *fc = &hdr->fc; fc 87 net/ieee802154/header_ops.c fc->dest_addr_mode = hdr->dest.mode; fc 94 net/ieee802154/header_ops.c fc->source_addr_mode = hdr->source.mode; fc 98 net/ieee802154/header_ops.c fc->intra_pan = true; fc 100 net/ieee802154/header_ops.c rc = ieee802154_hdr_push_addr(buf + pos, &hdr->source, fc->intra_pan); fc 105 net/ieee802154/header_ops.c if (fc->security_enabled) { fc 106 net/ieee802154/header_ops.c fc->version = 1; fc 115 net/ieee802154/header_ops.c memcpy(buf, fc, 2); fc 207 net/ieee802154/header_ops.c dlen = ieee802154_hdr_addr_len(hdr->fc.dest_addr_mode, false); fc 208 net/ieee802154/header_ops.c slen = ieee802154_hdr_addr_len(hdr->fc.source_addr_mode, fc 209 net/ieee802154/header_ops.c hdr->fc.intra_pan); fc 214 net/ieee802154/header_ops.c return 3 + dlen + slen + hdr->fc.security_enabled; fc 222 net/ieee802154/header_ops.c pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.dest_addr_mode, fc 224 net/ieee802154/header_ops.c pos += ieee802154_hdr_get_addr(buf + pos, hdr->fc.source_addr_mode, fc 225 net/ieee802154/header_ops.c hdr->fc.intra_pan, &hdr->source); fc 227 net/ieee802154/header_ops.c if (hdr->fc.intra_pan) fc 249 net/ieee802154/header_ops.c if (hdr->fc.security_enabled) { fc 293 net/ieee802154/header_ops.c if (hdr->fc.security_enabled) { fc 311 net/ieee802154/header_ops.c if (hdr->fc.security_enabled) { fc 742 net/ieee802154/nl-mac.c u32 fc = nla_get_u32(info->attrs[IEEE802154_ATTR_LLSEC_FRAME_COUNTER]); fc 744 net/ieee802154/nl-mac.c params.frame_counter = cpu_to_be32(fc); fc 3546 net/mac80211/cfg.c __le16 fc; fc 3573 net/mac80211/cfg.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | fc 3578 net/mac80211/cfg.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | fc 3594 net/mac80211/cfg.c nullfunc->frame_control = fc; fc 317 net/mac80211/debugfs_netdev.c __le16 fc; fc 331 net/mac80211/debugfs_netdev.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); fc 335 net/mac80211/debugfs_netdev.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); fc 342 net/mac80211/debugfs_netdev.c fc |= cpu_to_le16(IEEE80211_FCTL_TODS); fc 359 net/mac80211/debugfs_netdev.c hdr->frame_control = fc; fc 1622 net/mac80211/ibss.c u16 fc; fc 1628 net/mac80211/ibss.c fc = le16_to_cpu(mgmt->frame_control); fc 1635 net/mac80211/ibss.c switch (fc & IEEE80211_FCTL_STYPE) { fc 1632 net/mac80211/ieee80211_i.h __le16 fc, bool acked); fc 75 net/mac80211/led.h ieee80211_tpt_led_trig_tx(struct ieee80211_local *local, __le16 fc, int bytes) fc 78 net/mac80211/led.h if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active)) fc 84 net/mac80211/led.h ieee80211_tpt_led_trig_rx(struct ieee80211_local *local, __le16 fc, int bytes) fc 87 net/mac80211/led.h if (ieee80211_is_data(fc) && atomic_read(&local->tpt_led_active)) fc 630 net/mac80211/mesh.c int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc, fc 634 net/mac80211/mesh.c *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); fc 641 net/mac80211/mesh.c *fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); fc 195 net/mac80211/mesh.h int ieee80211_fill_mesh_addresses(struct ieee80211_hdr *hdr, __le16 *fc, fc 23 net/mac80211/mesh_ps.c __le16 fc; fc 31 net/mac80211/mesh_ps.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); fc 32 net/mac80211/mesh_ps.c ieee80211_fill_mesh_addresses(nullfunc, &fc, sta->sta.addr, fc 34 net/mac80211/mesh_ps.c nullfunc->frame_control = fc; fc 1048 net/mac80211/mlme.c __le16 fc; fc 1064 net/mac80211/mlme.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC | fc 1066 net/mac80211/mlme.c nullfunc->frame_control = fc; fc 4065 net/mac80211/mlme.c u16 fc; fc 4071 net/mac80211/mlme.c fc = le16_to_cpu(mgmt->frame_control); fc 4075 net/mac80211/mlme.c switch (fc & IEEE80211_FCTL_STYPE) { fc 4286 net/mac80211/mlme.c __le16 fc, bool acked) fc 4290 net/mac80211/mlme.c sdata->u.mgd.status_fc = fc; fc 4305 net/mac80211/mlme.c __le16 fc = ifmgd->status_fc; fc 4309 net/mac80211/mlme.c if (ifmgd->auth_data && ieee80211_is_auth(fc)) { fc 4326 net/mac80211/mlme.c (ieee80211_is_assoc_req(fc) || fc 4327 net/mac80211/mlme.c ieee80211_is_reassoc_req(fc))) { fc 290 net/mac80211/rate.c __le16 fc; fc 292 net/mac80211/rate.c fc = hdr->frame_control; fc 296 net/mac80211/rate.c !ieee80211_is_data(fc); fc 48 net/mac80211/rx.c __le16 fc = hdr->frame_control; fc 50 net/mac80211/rx.c if (ieee80211_is_data(fc)) { fc 54 net/mac80211/rx.c if (ieee80211_has_a4(fc)) fc 56 net/mac80211/rx.c if (ieee80211_has_tods(fc)) fc 58 net/mac80211/rx.c if (ieee80211_has_fromds(fc)) fc 64 net/mac80211/rx.c if (ieee80211_is_mgmt(fc)) { fc 70 net/mac80211/rx.c if (ieee80211_is_ctl(fc)) { fc 71 net/mac80211/rx.c if (ieee80211_is_pspoll(fc)) fc 74 net/mac80211/rx.c if (ieee80211_is_back_req(fc)) { fc 1009 net/mac80211/rx.c __le16 fc; fc 1016 net/mac80211/rx.c fc = hdr->frame_control; fc 1017 net/mac80211/rx.c hdrlen = ieee80211_hdrlen(fc); fc 1882 net/mac80211/rx.c __le16 fc; fc 1914 net/mac80211/rx.c fc = hdr->frame_control; fc 1920 net/mac80211/rx.c if (ieee80211_has_protected(fc)) { fc 1931 net/mac80211/rx.c if (!ieee80211_has_protected(fc)) fc 1940 net/mac80211/rx.c if (!ieee80211_has_protected(fc)) fc 1960 net/mac80211/rx.c } else if (!ieee80211_has_protected(fc)) { fc 1971 net/mac80211/rx.c if (ieee80211_is_mgmt(fc) && fc 2161 net/mac80211/rx.c __le16 fc; fc 2167 net/mac80211/rx.c fc = hdr->frame_control; fc 2169 net/mac80211/rx.c if (ieee80211_is_ctl(fc)) fc 2180 net/mac80211/rx.c if (likely(!ieee80211_has_morefrags(fc) && frag == 0)) fc 2205 net/mac80211/rx.c ieee80211_has_protected(fc)) { fc 2266 net/mac80211/rx.c skb_pull(rx->skb, ieee80211_hdrlen(fc)); fc 2270 net/mac80211/rx.c if (ieee80211_has_morefrags(fc)) { fc 2306 net/mac80211/rx.c static int ieee80211_drop_unencrypted(struct ieee80211_rx_data *rx, __le16 fc) fc 2319 net/mac80211/rx.c if (unlikely(!ieee80211_has_protected(fc) && fc 2320 net/mac80211/rx.c !ieee80211_is_any_nullfunc(fc) && fc 2321 net/mac80211/rx.c ieee80211_is_data(fc) && rx->key)) fc 2331 net/mac80211/rx.c __le16 fc = hdr->frame_control; fc 2341 net/mac80211/rx.c if (unlikely(!ieee80211_has_protected(fc) && fc 2344 net/mac80211/rx.c if (ieee80211_is_deauth(fc) || fc 2345 net/mac80211/rx.c ieee80211_is_disassoc(fc)) fc 2354 net/mac80211/rx.c if (ieee80211_is_deauth(fc) || fc 2355 net/mac80211/rx.c ieee80211_is_disassoc(fc)) fc 2365 net/mac80211/rx.c if (unlikely(ieee80211_is_action(fc) && !rx->key && fc 2416 net/mac80211/rx.c static bool ieee80211_frame_allowed(struct ieee80211_rx_data *rx, __le16 fc) fc 2432 net/mac80211/rx.c ieee80211_drop_unencrypted(rx, fc)) fc 2572 net/mac80211/rx.c __le16 fc = hdr->frame_control; fc 2614 net/mac80211/rx.c if (!ieee80211_frame_allowed(rx, fc)) { fc 2631 net/mac80211/rx.c __le16 fc = hdr->frame_control; fc 2636 net/mac80211/rx.c if (unlikely(!ieee80211_is_data(fc))) fc 2639 net/mac80211/rx.c if (unlikely(!ieee80211_is_data_present(fc))) fc 2815 net/mac80211/rx.c __le16 fc = hdr->frame_control; fc 2842 net/mac80211/rx.c if (!ieee80211_frame_allowed(rx, fc)) fc 4401 net/mac80211/rx.c __le16 fc; fc 4407 net/mac80211/rx.c fc = ((struct ieee80211_hdr *)skb->data)->frame_control; fc 4413 net/mac80211/rx.c if (ieee80211_is_data(fc) || ieee80211_is_mgmt(fc)) fc 4416 net/mac80211/rx.c if (ieee80211_is_mgmt(fc)) { fc 4418 net/mac80211/rx.c if (skb->len < ieee80211_hdrlen(fc)) fc 4423 net/mac80211/rx.c err = !pskb_may_pull(skb, ieee80211_hdrlen(fc)); fc 4439 net/mac80211/rx.c if (ieee80211_is_data(fc)) { fc 1377 net/mac80211/sta_info.c __le16 fc; fc 1388 net/mac80211/sta_info.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | fc 1393 net/mac80211/sta_info.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | fc 1405 net/mac80211/sta_info.c nullfunc->frame_control = fc; fc 870 net/mac80211/status.c __le16 fc; fc 883 net/mac80211/status.c fc = hdr->frame_control; fc 896 net/mac80211/status.c ieee80211_is_data_qos(fc)) fc 916 net/mac80211/status.c (ieee80211_is_data_qos(fc))) { fc 926 net/mac80211/status.c } else if (ieee80211_is_data_qos(fc)) { fc 932 net/mac80211/status.c if (!acked && ieee80211_is_back_req(fc)) { fc 961 net/mac80211/status.c if (ieee80211_is_data_present(fc)) { fc 1024 net/mac80211/status.c ieee80211_is_data(fc) || fc 1025 net/mac80211/status.c ieee80211_is_mgmt(fc)) fc 1032 net/mac80211/status.c if (ieee80211_is_any_nullfunc(fc) && fc 1033 net/mac80211/status.c ieee80211_has_pm(fc) && fc 1052 net/mac80211/status.c !(ieee80211_is_data(fc)); fc 465 net/mac80211/tx.c static int ieee80211_use_mfp(__le16 fc, struct sta_info *sta, fc 468 net/mac80211/tx.c if (!ieee80211_is_mgmt(fc)) fc 1710 net/mac80211/tx.c __le16 fc; fc 1716 net/mac80211/tx.c fc = ((struct ieee80211_hdr *)skb->data)->frame_control; fc 1756 net/mac80211/tx.c ieee80211_tpt_led_trig_tx(local, fc, led_len); fc 2469 net/mac80211/tx.c __le16 fc; fc 2495 net/mac80211/tx.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); fc 2500 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); fc 2528 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); fc 2537 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | IEEE80211_FCTL_TODS); fc 2584 net/mac80211/tx.c hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, fc 2602 net/mac80211/tx.c hdrlen = ieee80211_fill_mesh_addresses(&hdr, &fc, fc 2643 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | fc 2652 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_TODS); fc 2710 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); fc 2774 net/mac80211/tx.c hdr.frame_control = fc; fc 2826 net/mac80211/tx.c if (ieee80211_is_data_qos(fc)) { fc 2883 net/mac80211/tx.c __le16 fc; fc 2932 net/mac80211/tx.c fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); fc 2954 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | fc 2964 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_TODS); fc 2973 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS | fc 2985 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); fc 2999 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); fc 3080 net/mac80211/tx.c fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); fc 3083 net/mac80211/tx.c hdr->frame_control = fc; fc 248 net/mac80211/wep.c __le16 fc = hdr->frame_control; fc 250 net/mac80211/wep.c if (!ieee80211_is_data(fc) && !ieee80211_is_auth(fc)) fc 259 net/mac80211/wep.c if (!pskb_may_pull(rx->skb, ieee80211_hdrlen(fc) + fc 350 net/mac802154/iface.c hdr->fc.security_enabled = 1; fc 377 net/mac802154/iface.c memset(&hdr.fc, 0, sizeof(hdr.fc)); fc 378 net/mac802154/iface.c hdr.fc.type = cb->type; fc 379 net/mac802154/iface.c hdr.fc.security_enabled = cb->secen; fc 380 net/mac802154/iface.c hdr.fc.ack_request = cb->ackreq; fc 443 net/mac802154/iface.c memset(&hdr.fc, 0, sizeof(hdr.fc)); fc 444 net/mac802154/iface.c hdr.fc.type = IEEE802154_FC_TYPE_DATA; fc 445 net/mac802154/iface.c hdr.fc.ack_request = wpan_dev->ackreq; fc 554 net/mac802154/llsec.c if (hdr->fc.type == IEEE802154_FC_TYPE_BEACON) { fc 565 net/mac802154/llsec.c if (!(key_entry->key->frame_types & BIT(hdr->fc.type))) fc 710 net/mac802154/llsec.c if (hlen < 0 || hdr.fc.type != IEEE802154_FC_TYPE_DATA) fc 713 net/mac802154/llsec.c if (!hdr.fc.security_enabled || fc 988 net/mac802154/llsec.c if (!hdr.fc.security_enabled) fc 990 net/mac802154/llsec.c if (hdr.fc.version == 0) fc 1014 net/mac802154/llsec.c if (llsec_lookup_seclevel(sec, hdr.fc.type, 0, &seclevel) < 0) { fc 145 net/mac802154/rx.c pr_debug("fc: %04x dsn: %02x\n", le16_to_cpup((__le16 *)&hdr->fc), fc 148 net/mac802154/rx.c cb->type = hdr->fc.type; fc 149 net/mac802154/rx.c cb->ackreq = hdr->fc.ack_request; fc 150 net/mac802154/rx.c cb->secen = hdr->fc.security_enabled; fc 158 net/mac802154/rx.c if (hdr->fc.security_enabled) { fc 474 net/phonet/pep.c u8 fc = fcs[i]; fc 476 net/phonet/pep.c if (fc > final_fc && fc < PN_MAX_FLOW_CONTROL) fc 477 net/phonet/pep.c final_fc = fc; fc 342 net/socket.c static int sockfs_init_fs_context(struct fs_context *fc) fc 344 net/socket.c struct pseudo_fs_context *ctx = init_pseudo(fc, SOCKFS_MAGIC); fc 1356 net/sunrpc/rpc_pipe.c rpc_fill_super(struct super_block *sb, struct fs_context *fc) fc 1417 net/sunrpc/rpc_pipe.c static int rpc_fs_get_tree(struct fs_context *fc) fc 1419 net/sunrpc/rpc_pipe.c return get_tree_keyed(fc, rpc_fill_super, get_net(fc->net_ns)); fc 1422 net/sunrpc/rpc_pipe.c static void rpc_fs_free_fc(struct fs_context *fc) fc 1424 net/sunrpc/rpc_pipe.c if (fc->s_fs_info) fc 1425 net/sunrpc/rpc_pipe.c put_net(fc->s_fs_info); fc 1433 net/sunrpc/rpc_pipe.c static int rpc_init_fs_context(struct fs_context *fc) fc 1435 net/sunrpc/rpc_pipe.c put_user_ns(fc->user_ns); fc 1436 net/sunrpc/rpc_pipe.c fc->user_ns = get_user_ns(fc->net_ns->user_ns); fc 1437 net/sunrpc/rpc_pipe.c fc->ops = &rpc_fs_context_ops; fc 373 net/wireless/util.c unsigned int __attribute_const__ ieee80211_hdrlen(__le16 fc) fc 377 net/wireless/util.c if (ieee80211_is_data(fc)) { fc 378 net/wireless/util.c if (ieee80211_has_a4(fc)) fc 380 net/wireless/util.c if (ieee80211_is_data_qos(fc)) { fc 382 net/wireless/util.c if (ieee80211_has_order(fc)) fc 388 net/wireless/util.c if (ieee80211_is_mgmt(fc)) { fc 389 net/wireless/util.c if (ieee80211_has_order(fc)) fc 394 net/wireless/util.c if (ieee80211_is_ctl(fc)) { fc 404 net/wireless/util.c if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) fc 136 security/apparmor/apparmorfs.c static int apparmorfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 149 security/apparmor/apparmorfs.c static int apparmorfs_get_tree(struct fs_context *fc) fc 151 security/apparmor/apparmorfs.c return get_tree_single(fc, apparmorfs_fill_super); fc 158 security/apparmor/apparmorfs.c static int apparmorfs_init_fs_context(struct fs_context *fc) fc 160 security/apparmor/apparmorfs.c fc->ops = &apparmorfs_context_ops; fc 40 security/inode.c static int securityfs_fill_super(struct super_block *sb, struct fs_context *fc) fc 54 security/inode.c static int securityfs_get_tree(struct fs_context *fc) fc 56 security/inode.c return get_tree_single(fc, securityfs_fill_super); fc 63 security/inode.c static int securityfs_init_fs_context(struct fs_context *fc) fc 65 security/inode.c fc->ops = &securityfs_context_ops; fc 800 security/security.c int security_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc) fc 802 security/security.c return call_int_hook(fs_context_dup, 0, fc, src_fc); fc 805 security/security.c int security_fs_context_parse_param(struct fs_context *fc, struct fs_parameter *param) fc 807 security/security.c return call_int_hook(fs_context_parse_param, -ENOPARAM, fc, param); fc 2785 security/selinux/hooks.c static int selinux_fs_context_dup(struct fs_context *fc, fc 2794 security/selinux/hooks.c fc->security = kzalloc(sizeof(struct selinux_mnt_opts), GFP_KERNEL); fc 2795 security/selinux/hooks.c if (!fc->security) fc 2798 security/selinux/hooks.c opts = fc->security; fc 2837 security/selinux/hooks.c static int selinux_fs_context_parse_param(struct fs_context *fc, fc 2843 security/selinux/hooks.c opt = fs_parse(fc, &selinux_fs_parameters, param, &result); fc 2847 security/selinux/hooks.c rc = selinux_add_opt(opt, param->string, &fc->security); fc 1895 security/selinux/selinuxfs.c static int sel_fill_super(struct super_block *sb, struct fs_context *fc) fc 2011 security/selinux/selinuxfs.c static int sel_get_tree(struct fs_context *fc) fc 2013 security/selinux/selinuxfs.c return get_tree_single(fc, sel_fill_super); fc 2020 security/selinux/selinuxfs.c static int sel_init_fs_context(struct fs_context *fc) fc 2022 security/selinux/selinuxfs.c fc->ops = &sel_context_ops; fc 639 security/smack/smack_lsm.c static int smack_fs_context_dup(struct fs_context *fc, fc 647 security/smack/smack_lsm.c fc->security = kzalloc(sizeof(struct smack_mnt_opts), GFP_KERNEL); fc 648 security/smack/smack_lsm.c if (!fc->security) fc 650 security/smack/smack_lsm.c dst = fc->security; fc 703 security/smack/smack_lsm.c static int smack_fs_context_parse_param(struct fs_context *fc, fc 709 security/smack/smack_lsm.c opt = fs_parse(fc, &smack_fs_parameters, param, &result); fc 713 security/smack/smack_lsm.c rc = smack_add_opt(opt, param->string, &fc->security); fc 2836 security/smack/smackfs.c static int smk_fill_super(struct super_block *sb, struct fs_context *fc) fc 2913 security/smack/smackfs.c static int smk_get_tree(struct fs_context *fc) fc 2915 security/smack/smackfs.c return get_tree_single(fc, smk_fill_super); fc 2926 security/smack/smackfs.c static int smk_init_fs_context(struct fs_context *fc) fc 2928 security/smack/smackfs.c fc->ops = &smk_context_ops; fc 622 sound/aoa/soundbus/i2sbus/pcm.c u32 fc; fc 626 sound/aoa/soundbus/i2sbus/pcm.c fc = in_le32(&i2sdev->intfregs->frame_count); fc 627 sound/aoa/soundbus/i2sbus/pcm.c fc = fc - pi->frame_count; fc 629 sound/aoa/soundbus/i2sbus/pcm.c if (fc >= pi->substream->runtime->buffer_size) fc 630 sound/aoa/soundbus/i2sbus/pcm.c fc %= pi->substream->runtime->buffer_size; fc 631 sound/aoa/soundbus/i2sbus/pcm.c return fc; fc 637 sound/aoa/soundbus/i2sbus/pcm.c u32 fc, nframes; fc 670 sound/aoa/soundbus/i2sbus/pcm.c fc = in_le32(&i2sdev->intfregs->frame_count); fc 672 sound/aoa/soundbus/i2sbus/pcm.c if (fc < pi->frame_count + nframes) fc 673 sound/aoa/soundbus/i2sbus/pcm.c pi->frame_count = fc - nframes; fc 181 sound/isa/gus/gus_volume.c unsigned int fc; fc 188 sound/isa/gus/gus_volume.c fc = (freq << 10) / rate; fc 189 sound/isa/gus/gus_volume.c if (fc > 97391L) { fc 190 sound/isa/gus/gus_volume.c fc = 97391; fc 191 sound/isa/gus/gus_volume.c snd_printk(KERN_ERR "patch: (1) fc frequency overflow - %u\n", fc); fc 193 sound/isa/gus/gus_volume.c fc = (fc * 44100UL) / mix_rate; fc 195 sound/isa/gus/gus_volume.c fc <<= 1; fc 196 sound/isa/gus/gus_volume.c if (fc > 65535L) { fc 197 sound/isa/gus/gus_volume.c fc = 65535; fc 198 sound/isa/gus/gus_volume.c snd_printk(KERN_ERR "patch: (2) fc frequency overflow - %u\n", fc); fc 200 sound/isa/gus/gus_volume.c return (unsigned short) fc; fc 1277 sound/soc/codecs/ab8500-codec.c struct filter_control *fc = fc 1281 sound/soc/codecs/ab8500-codec.c uinfo->count = fc->count; fc 1282 sound/soc/codecs/ab8500-codec.c uinfo->value.integer.min = fc->min; fc 1283 sound/soc/codecs/ab8500-codec.c uinfo->value.integer.max = fc->max; fc 1293 sound/soc/codecs/ab8500-codec.c struct filter_control *fc = fc 1298 sound/soc/codecs/ab8500-codec.c for (i = 0; i < fc->count; i++) fc 1299 sound/soc/codecs/ab8500-codec.c ucontrol->value.integer.value[i] = fc->value[i]; fc 1310 sound/soc/codecs/ab8500-codec.c struct filter_control *fc = fc 1315 sound/soc/codecs/ab8500-codec.c for (i = 0; i < fc->count; i++) fc 1316 sound/soc/codecs/ab8500-codec.c fc->value[i] = ucontrol->value.integer.value[i]; fc 2466 sound/soc/codecs/ab8500-codec.c struct filter_control *fc; fc 2507 sound/soc/codecs/ab8500-codec.c fc = (struct filter_control *) fc 2509 sound/soc/codecs/ab8500-codec.c drvdata->anc_fir_values = (long *)fc->value; fc 2510 sound/soc/codecs/ab8500-codec.c fc = (struct filter_control *) fc 2512 sound/soc/codecs/ab8500-codec.c drvdata->anc_iir_values = (long *)fc->value; fc 2513 sound/soc/codecs/ab8500-codec.c fc = (struct filter_control *) fc 2515 sound/soc/codecs/ab8500-codec.c drvdata->sid_fir_values = (long *)fc->value; fc 387 tools/include/uapi/linux/kvm.h __u8 fc; fc 681 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint32_t mtc, mtc_delta, ctc, fc, ctc_rem; fc 772 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c fc = pkt_info->packet.count; fc 777 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c data->ctc_timestamp = data->tsc_timestamp - fc; fc 1498 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c uint32_t fc = decoder->packet.count; fc 1510 tools/perf/util/intel-pt-decoder/intel-pt-decoder.c decoder->ctc_timestamp = decoder->tsc_timestamp - fc;