cap 3172 arch/arm/mach-omap2/omap_hwmod.c const struct sysc_regbits *regbits = data->cap->regbits; cap 3211 arch/arm/mach-omap2/omap_hwmod.c switch (data->cap->type) { cap 3292 arch/arm/mach-omap2/omap_hwmod.c switch (data->cap->type) { cap 3324 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->emufree_shift >= 0) cap 3326 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->enwkup_shift >= 0) cap 3328 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->srst_shift >= 0) cap 3330 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->autoidle_shift >= 0) cap 3335 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->midle_shift >= 0 && cap 3339 arch/arm/mach-omap2/omap_hwmod.c if (data->cap->regbits->sidle_shift >= 0 && cap 114 arch/arm64/include/asm/alternative.h .macro alternative_insn insn1, insn2, cap, enable = 1 cap 150 arch/arm64/include/asm/alternative.h .macro alternative_if_not cap cap 158 arch/arm64/include/asm/alternative.h .macro alternative_if cap cap 219 arch/arm64/include/asm/alternative.h #define _ALTERNATIVE_CFG(insn1, insn2, cap, cfg, ...) \ cap 220 arch/arm64/include/asm/alternative.h alternative_insn insn1, insn2, cap, IS_ENABLED(cfg) cap 303 arch/arm64/include/asm/cpufeature.h void (*cpu_enable)(const struct arm64_cpu_capabilities *cap); cap 338 arch/arm64/include/asm/cpufeature.h static inline int cpucap_default_scope(const struct arm64_cpu_capabilities *cap) cap 340 arch/arm64/include/asm/cpufeature.h return cap->type & ARM64_CPUCAP_SCOPE_MASK; cap 344 arch/arm64/include/asm/cpufeature.h cpucap_late_cpu_optional(const struct arm64_cpu_capabilities *cap) cap 346 arch/arm64/include/asm/cpufeature.h return !!(cap->type & ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU); cap 350 arch/arm64/include/asm/cpufeature.h cpucap_late_cpu_permitted(const struct arm64_cpu_capabilities *cap) cap 352 arch/arm64/include/asm/cpufeature.h return !!(cap->type & ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU); cap 381 arch/arm64/include/asm/cpufeature.h #define for_each_available_cap(cap) \ cap 382 arch/arm64/include/asm/cpufeature.h for_each_set_bit(cap, cpu_hwcaps, ARM64_NCAPS) cap 384 arch/arm64/include/asm/cpufeature.h bool this_cpu_has_cap(unsigned int cap); cap 91 arch/arm64/kernel/cpu_errata.c cpu_enable_trap_ctr_access(const struct arm64_cpu_capabilities *cap) cap 102 arch/arm64/kernel/cpu_errata.c if (cap->capability == ARM64_WORKAROUND_1542419) cap 113 arch/arm64/kernel/cpufeature.c static void cpu_enable_cnp(struct arm64_cpu_capabilities const *cap); cap 1107 arch/arm64/kernel/cpufeature.c static bool cpu_can_use_dbm(const struct arm64_cpu_capabilities *cap) cap 1109 arch/arm64/kernel/cpufeature.c return has_cpuid_feature(cap, SCOPE_LOCAL_CPU) && cap 1113 arch/arm64/kernel/cpufeature.c static void cpu_enable_hw_dbm(struct arm64_cpu_capabilities const *cap) cap 1115 arch/arm64/kernel/cpufeature.c if (cpu_can_use_dbm(cap)) cap 1119 arch/arm64/kernel/cpufeature.c static bool has_hw_dbm(const struct arm64_cpu_capabilities *cap, cap 1140 arch/arm64/kernel/cpufeature.c if (!detected && cpu_can_use_dbm(cap)) { cap 1244 arch/arm64/kernel/cpufeature.c static void cpu_enable_address_auth(struct arm64_cpu_capabilities const *cap) cap 1577 arch/arm64/kernel/cpufeature.c #define __HWCAP_CAP(name, cap_type, cap) \ cap 1581 arch/arm64/kernel/cpufeature.c .hwcap = cap, \ cap 1583 arch/arm64/kernel/cpufeature.c #define HWCAP_CAP(reg, field, s, min_value, cap_type, cap) \ cap 1585 arch/arm64/kernel/cpufeature.c __HWCAP_CAP(#cap, cap_type, cap) \ cap 1589 arch/arm64/kernel/cpufeature.c #define HWCAP_MULTI_CAP(list, cap_type, cap) \ cap 1591 arch/arm64/kernel/cpufeature.c __HWCAP_CAP(#cap, cap_type, cap) \ cap 1596 arch/arm64/kernel/cpufeature.c #define HWCAP_CAP_MATCH(match, cap_type, cap) \ cap 1598 arch/arm64/kernel/cpufeature.c __HWCAP_CAP(#cap, cap_type, cap) \ cap 1676 arch/arm64/kernel/cpufeature.c static bool compat_has_neon(const struct arm64_cpu_capabilities *cap, int scope) cap 1713 arch/arm64/kernel/cpufeature.c static void __init cap_set_elf_hwcap(const struct arm64_cpu_capabilities *cap) cap 1715 arch/arm64/kernel/cpufeature.c switch (cap->hwcap_type) { cap 1717 arch/arm64/kernel/cpufeature.c cpu_set_feature(cap->hwcap); cap 1721 arch/arm64/kernel/cpufeature.c compat_elf_hwcap |= (u32)cap->hwcap; cap 1724 arch/arm64/kernel/cpufeature.c compat_elf_hwcap2 |= (u32)cap->hwcap; cap 1734 arch/arm64/kernel/cpufeature.c static bool cpus_have_elf_hwcap(const struct arm64_cpu_capabilities *cap) cap 1738 arch/arm64/kernel/cpufeature.c switch (cap->hwcap_type) { cap 1740 arch/arm64/kernel/cpufeature.c rc = cpu_have_feature(cap->hwcap); cap 1744 arch/arm64/kernel/cpufeature.c rc = (compat_elf_hwcap & (u32)cap->hwcap) != 0; cap 1747 arch/arm64/kernel/cpufeature.c rc = (compat_elf_hwcap2 & (u32)cap->hwcap) != 0; cap 1799 arch/arm64/kernel/cpufeature.c const struct arm64_cpu_capabilities *cap = cpu_hwcaps_ptrs[i]; cap 1801 arch/arm64/kernel/cpufeature.c if (WARN_ON(!cap)) cap 1804 arch/arm64/kernel/cpufeature.c if (!(cap->type & non_boot_scope)) cap 1807 arch/arm64/kernel/cpufeature.c if (cap->cpu_enable) cap 1808 arch/arm64/kernel/cpufeature.c cap->cpu_enable(cap); cap 2032 arch/arm64/kernel/cpufeature.c const struct arm64_cpu_capabilities *cap = cpu_hwcaps_ptrs[n]; cap 2034 arch/arm64/kernel/cpufeature.c if (cap) cap 2035 arch/arm64/kernel/cpufeature.c return cap->matches(cap, SCOPE_LOCAL_CPU); cap 2117 arch/arm64/kernel/cpufeature.c static void __maybe_unused cpu_enable_cnp(struct arm64_cpu_capabilities const *cap) cap 122 arch/microblaze/include/asm/pci-bridge.h int dev_fn, int cap); cap 1120 arch/microblaze/pci/pci-common.c int cap) cap 1122 arch/microblaze/pci/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); cap 870 arch/mips/kvm/mips.c struct kvm_enable_cap *cap) cap 874 arch/mips/kvm/mips.c if (!kvm_vm_ioctl_check_extension(vcpu->kvm, cap->cap)) cap 876 arch/mips/kvm/mips.c if (cap->flags) cap 878 arch/mips/kvm/mips.c if (cap->args[0]) cap 881 arch/mips/kvm/mips.c switch (cap->cap) { cap 958 arch/mips/kvm/mips.c struct kvm_enable_cap cap; cap 961 arch/mips/kvm/mips.c if (copy_from_user(&cap, argp, sizeof(cap))) cap 963 arch/mips/kvm/mips.c r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap); cap 12 arch/powerpc/include/asm/async_tx.h ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap, cap 16 arch/powerpc/include/asm/async_tx.h #define async_tx_find_channel(dep, cap, dst_lst, dst_cnt, src_lst, \ cap 18 arch/powerpc/include/asm/async_tx.h ppc440spe_async_tx_find_best_channel(cap, dst_lst, dst_cnt, src_lst, \ cap 40 arch/powerpc/include/asm/opal.h int64_t opal_npu_tl_set(uint64_t phb_id, uint32_t bdfn, long cap, cap 148 arch/powerpc/include/asm/pci-bridge.h int dev_fn, int cap); cap 203 arch/powerpc/include/asm/pkeys.h extern bool arch_supports_pkeys(int cap); cap 16 arch/powerpc/include/asm/pnv-ocxl.h extern int pnv_ocxl_get_tl_cap(struct pci_dev *dev, long *cap, cap 18 arch/powerpc/include/asm/pnv-ocxl.h extern int pnv_ocxl_set_tl_conf(struct pci_dev *dev, long cap, cap 172 arch/powerpc/kernel/eeh.c int cap, i; cap 208 arch/powerpc/kernel/eeh.c cap = edev->pcix_cap; cap 209 arch/powerpc/kernel/eeh.c if (cap) { cap 210 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap, 4, &cfg); cap 214 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4, 4, &cfg); cap 220 arch/powerpc/kernel/eeh.c cap = edev->pcie_cap; cap 221 arch/powerpc/kernel/eeh.c if (cap) { cap 226 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); cap 247 arch/powerpc/kernel/eeh.c cap = edev->aer_cap; cap 248 arch/powerpc/kernel/eeh.c if (cap) { cap 253 arch/powerpc/kernel/eeh.c eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); cap 702 arch/powerpc/kernel/eeh_pe.c int cap; cap 716 arch/powerpc/kernel/eeh_pe.c cap = edev->pcie_cap; cap 717 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTSTA, 2, &val); cap 724 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCAP, 2, &val); cap 726 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_SLTCTL, 2, &val); cap 731 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, cap + PCI_EXP_SLTCTL, 2, val); cap 737 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCTL, 2, &val); cap 739 arch/powerpc/kernel/eeh_pe.c eeh_ops->write_config(pdn, cap + PCI_EXP_LNKCTL, 2, val); cap 742 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKCAP, 4, &val); cap 755 arch/powerpc/kernel/eeh_pe.c eeh_ops->read_config(pdn, cap + PCI_EXP_LNKSTA, 2, &val); cap 1576 arch/powerpc/kernel/pci-common.c int cap) cap 1578 arch/powerpc/kernel/pci-common.c return pci_bus_find_capability(fake_pci_bus(hose, bus), devfn, cap); cap 1858 arch/powerpc/kvm/powerpc.c struct kvm_enable_cap *cap) cap 1862 arch/powerpc/kvm/powerpc.c if (cap->flags) cap 1865 arch/powerpc/kvm/powerpc.c switch (cap->cap) { cap 1876 arch/powerpc/kvm/powerpc.c if (cap->args[0]) cap 1890 arch/powerpc/kvm/powerpc.c void __user *user_ptr = (void __user *)(uintptr_t)cap->args[0]; cap 1906 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); cap 1913 arch/powerpc/kvm/powerpc.c r = kvmppc_mpic_connect_vcpu(dev, vcpu, cap->args[1]); cap 1925 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); cap 1933 arch/powerpc/kvm/powerpc.c r = kvmppc_xive_connect_vcpu(dev, vcpu, cap->args[1]); cap 1935 arch/powerpc/kvm/powerpc.c r = kvmppc_xics_connect_vcpu(dev, vcpu, cap->args[1]); cap 1948 arch/powerpc/kvm/powerpc.c f = fdget(cap->args[0]); cap 1960 arch/powerpc/kvm/powerpc.c cap->args[1]); cap 2036 arch/powerpc/kvm/powerpc.c struct kvm_enable_cap cap; cap 2039 arch/powerpc/kvm/powerpc.c if (copy_from_user(&cap, argp, sizeof(cap))) cap 2041 arch/powerpc/kvm/powerpc.c r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap); cap 2134 arch/powerpc/kvm/powerpc.c struct kvm_enable_cap *cap) cap 2138 arch/powerpc/kvm/powerpc.c if (cap->flags) cap 2141 arch/powerpc/kvm/powerpc.c switch (cap->cap) { cap 2144 arch/powerpc/kvm/powerpc.c unsigned long hcall = cap->args[0]; cap 2148 arch/powerpc/kvm/powerpc.c cap->args[1] > 1) cap 2152 arch/powerpc/kvm/powerpc.c if (cap->args[1]) cap 2160 arch/powerpc/kvm/powerpc.c unsigned long mode = cap->args[0]; cap 2161 arch/powerpc/kvm/powerpc.c unsigned long flags = cap->args[1]; cap 285 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_find_cap(struct pci_dn *pdn, int cap) cap 310 arch/powerpc/platforms/powernv/eeh-powernv.c if (id == cap) cap 320 arch/powerpc/platforms/powernv/eeh-powernv.c static int pnv_eeh_find_ecap(struct pci_dn *pdn, int cap) cap 334 arch/powerpc/platforms/powernv/eeh-powernv.c if (PCI_EXT_CAP_ID(header) == cap && pos) cap 1014 arch/powerpc/platforms/powernv/eeh-powernv.c u32 cap = 0; cap 1019 arch/powerpc/platforms/powernv/eeh-powernv.c eeh_ops->read_config(pdn, edev->af_cap + PCI_AF_CAP, 1, &cap); cap 1020 arch/powerpc/platforms/powernv/eeh-powernv.c if (!(cap & PCI_AF_CAP_TP) || !(cap & PCI_AF_CAP_FLR)) cap 329 arch/powerpc/platforms/powernv/ocxl.c int pnv_ocxl_get_tl_cap(struct pci_dev *dev, long *cap, cap 347 arch/powerpc/platforms/powernv/ocxl.c *cap = PNV_OCXL_TL_P9_RECV_CAP; cap 352 arch/powerpc/platforms/powernv/ocxl.c int pnv_ocxl_set_tl_conf(struct pci_dev *dev, long cap, cap 362 arch/powerpc/platforms/powernv/ocxl.c rc = opal_npu_tl_set(phb->opal_id, dev->devfn, cap, cap 170 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_find_cap(struct pci_dn *pdn, int cap) cap 187 arch/powerpc/platforms/pseries/eeh_pseries.c if (id == cap) cap 195 arch/powerpc/platforms/pseries/eeh_pseries.c static int pseries_eeh_find_ecap(struct pci_dn *pdn, int cap) cap 210 arch/powerpc/platforms/pseries/eeh_pseries.c if (PCI_EXT_CAP_ID(header) == cap && pos) cap 662 arch/s390/kvm/kvm-s390.c int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap) cap 666 arch/s390/kvm/kvm-s390.c if (cap->flags) cap 669 arch/s390/kvm/kvm-s390.c switch (cap->cap) { cap 4233 arch/s390/kvm/kvm-s390.c struct kvm_enable_cap *cap) cap 4237 arch/s390/kvm/kvm-s390.c if (cap->flags) cap 4240 arch/s390/kvm/kvm-s390.c switch (cap->cap) { cap 4427 arch/s390/kvm/kvm-s390.c struct kvm_enable_cap cap; cap 4429 arch/s390/kvm/kvm-s390.c if (copy_from_user(&cap, argp, sizeof(cap))) cap 4431 arch/s390/kvm/kvm-s390.c r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap); cap 536 arch/sparc/kernel/setup_64.c unsigned long cap = sparc64_elf_hwcap; cap 540 arch/sparc/kernel/setup_64.c cap |= HWCAP_SPARC_ULTRA3; cap 552 arch/sparc/kernel/setup_64.c cap |= HWCAP_SPARC_BLKINIT; cap 562 arch/sparc/kernel/setup_64.c cap |= HWCAP_SPARC_N2; cap 565 arch/sparc/kernel/setup_64.c cap |= (AV_SPARC_MUL32 | AV_SPARC_DIV32 | AV_SPARC_V8PLUS); cap 570 arch/sparc/kernel/setup_64.c cap |= AV_SPARC_VIS; cap 572 arch/sparc/kernel/setup_64.c cap |= AV_SPARC_VIS | AV_SPARC_VIS2; cap 579 arch/sparc/kernel/setup_64.c cap |= AV_SPARC_POPC; cap 583 arch/sparc/kernel/setup_64.c cap |= AV_SPARC_ASI_BLK_INIT; cap 593 arch/sparc/kernel/setup_64.c cap |= (AV_SPARC_VIS | AV_SPARC_VIS2 | cap 604 arch/sparc/kernel/setup_64.c cap |= (AV_SPARC_VIS3 | AV_SPARC_HPC | cap 608 arch/sparc/kernel/setup_64.c sparc64_elf_hwcap = cap | mdesc_caps; cap 2592 arch/x86/events/core.c void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap) cap 2594 arch/x86/events/core.c cap->version = x86_pmu.version; cap 2595 arch/x86/events/core.c cap->num_counters_gp = x86_pmu.num_counters; cap 2596 arch/x86/events/core.c cap->num_counters_fixed = x86_pmu.num_counters_fixed; cap 2597 arch/x86/events/core.c cap->bit_width_gp = x86_pmu.cntval_bits; cap 2598 arch/x86/events/core.c cap->bit_width_fixed = x86_pmu.cntval_bits; cap 2599 arch/x86/events/core.c cap->events_mask = (unsigned int)x86_pmu.events_maskl; cap 2600 arch/x86/events/core.c cap->events_mask_len = x86_pmu.events_mask_len; cap 81 arch/x86/events/intel/pt.c u32 intel_pt_validate_hw_cap(enum pt_capabilities cap) cap 83 arch/x86/events/intel/pt.c return intel_pt_validate_cap(pt_pmu.caps, cap); cap 93 arch/x86/events/intel/pt.c enum pt_capabilities cap = (long)ea->var; cap 95 arch/x86/events/intel/pt.c return snprintf(buf, PAGE_SIZE, "%x\n", intel_pt_validate_hw_cap(cap)); cap 29 arch/x86/include/asm/intel_pt.h extern u32 intel_pt_validate_hw_cap(enum pt_capabilities cap); cap 30 arch/x86/include/asm/intel_pt.h extern u32 intel_pt_validate_cap(u32 *caps, enum pt_capabilities cap); cap 34 arch/x86/include/asm/intel_pt.h static inline u32 intel_pt_validate_hw_cap(enum pt_capabilities cap) { return 0; } cap 38 arch/x86/include/asm/irq_remapping.h extern bool irq_remapping_cap(enum irq_remap_cap cap); cap 64 arch/x86/include/asm/irq_remapping.h static inline bool irq_remapping_cap(enum irq_remap_cap cap) { return 0; } cap 326 arch/x86/include/asm/perf_event.h extern void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap); cap 336 arch/x86/include/asm/perf_event.h static inline void perf_get_x86_pmu_capability(struct x86_pmu_capability *cap) cap 338 arch/x86/include/asm/perf_event.h memset(cap, 0, sizeof(*cap)); cap 130 arch/x86/kernel/aperture_64.c static u32 __init find_cap(int bus, int slot, int func, int cap) cap 147 arch/x86/kernel/aperture_64.c if (id == cap) cap 156 arch/x86/kernel/aperture_64.c static u32 __init read_agp(int bus, int slot, int func, int cap, u32 *order) cap 166 arch/x86/kernel/aperture_64.c apsizereg = read_pci_config_16(bus, slot, func, cap + 0x14); cap 232 arch/x86/kernel/aperture_64.c u32 class, cap; cap 243 arch/x86/kernel/aperture_64.c cap = find_cap(bus, slot, func, cap 245 arch/x86/kernel/aperture_64.c if (!cap) cap 248 arch/x86/kernel/aperture_64.c return read_agp(bus, slot, func, cap, cap 1515 arch/x86/kernel/cpu/mce/core.c u64 cap; cap 1518 arch/x86/kernel/cpu/mce/core.c rdmsrl(MSR_IA32_MCG_CAP, cap); cap 1520 arch/x86/kernel/cpu/mce/core.c b = cap & MCG_BANKCNT_MASK; cap 1533 arch/x86/kernel/cpu/mce/core.c if ((cap & MCG_EXT_P) && MCG_EXT_CNT(cap) >= 9) cap 1536 arch/x86/kernel/cpu/mce/core.c if (cap & MCG_SER_P) cap 1544 arch/x86/kernel/cpu/mce/core.c u64 cap; cap 1557 arch/x86/kernel/cpu/mce/core.c rdmsrl(MSR_IA32_MCG_CAP, cap); cap 1558 arch/x86/kernel/cpu/mce/core.c if (cap & MCG_CTL_P) cap 565 arch/x86/kernel/cpu/mce/inject.c u64 cap; cap 568 arch/x86/kernel/cpu/mce/inject.c rdmsrl_on_cpu(m->extcpu, MSR_IA32_MCG_CAP, &cap); cap 569 arch/x86/kernel/cpu/mce/inject.c n_banks = cap & MCG_BANKCNT_MASK; cap 78 arch/x86/kernel/cpu/mce/intel.c u64 cap; cap 92 arch/x86/kernel/cpu/mce/intel.c rdmsrl(MSR_IA32_MCG_CAP, cap); cap 93 arch/x86/kernel/cpu/mce/intel.c *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); cap 94 arch/x86/kernel/cpu/mce/intel.c return !!(cap & MCG_CMCI_P); cap 30 arch/x86/kernel/vsmp_64.c unsigned int cap, ctl, cfg; cap 35 arch/x86/kernel/vsmp_64.c cap = readl(address); cap 38 arch/x86/kernel/vsmp_64.c cap, ctl); cap 42 arch/x86/kernel/vsmp_64.c if (cap & ctl & BIT(8)) { cap 591 arch/x86/kvm/cpuid.c struct x86_pmu_capability cap; cap 595 arch/x86/kvm/cpuid.c perf_get_x86_pmu_capability(&cap); cap 601 arch/x86/kvm/cpuid.c if (!cap.version) cap 602 arch/x86/kvm/cpuid.c memset(&cap, 0, sizeof(cap)); cap 604 arch/x86/kvm/cpuid.c eax.split.version_id = min(cap.version, 2); cap 605 arch/x86/kvm/cpuid.c eax.split.num_counters = cap.num_counters_gp; cap 606 arch/x86/kvm/cpuid.c eax.split.bit_width = cap.bit_width_gp; cap 607 arch/x86/kvm/cpuid.c eax.split.mask_length = cap.events_mask_len; cap 609 arch/x86/kvm/cpuid.c edx.split.num_counters_fixed = cap.num_counters_fixed; cap 610 arch/x86/kvm/cpuid.c edx.split.bit_width_fixed = cap.bit_width_fixed; cap 614 arch/x86/kvm/cpuid.c entry->ebx = cap.events_mask; cap 4131 arch/x86/kvm/x86.c struct kvm_enable_cap *cap) cap 4137 arch/x86/kvm/x86.c if (cap->flags) cap 4140 arch/x86/kvm/x86.c switch (cap->cap) { cap 4142 arch/x86/kvm/x86.c if (cap->args[0]) cap 4149 arch/x86/kvm/x86.c return kvm_hv_activate_synic(vcpu, cap->cap == cap 4156 arch/x86/kvm/x86.c user_ptr = (void __user *)(uintptr_t)cap->args[0]; cap 4456 arch/x86/kvm/x86.c struct kvm_enable_cap cap; cap 4459 arch/x86/kvm/x86.c if (copy_from_user(&cap, argp, sizeof(cap))) cap 4461 arch/x86/kvm/x86.c r = kvm_vcpu_ioctl_enable_cap(vcpu, &cap); cap 4813 arch/x86/kvm/x86.c struct kvm_enable_cap *cap) cap 4817 arch/x86/kvm/x86.c if (cap->flags) cap 4820 arch/x86/kvm/x86.c switch (cap->cap) { cap 4822 arch/x86/kvm/x86.c kvm->arch.disabled_quirks = cap->args[0]; cap 4828 arch/x86/kvm/x86.c if (cap->args[0] > MAX_NR_RESERVED_IOAPIC_PINS) cap 4841 arch/x86/kvm/x86.c kvm->arch.nr_reserved_ioapic_pins = cap->args[0]; cap 4849 arch/x86/kvm/x86.c if (cap->args[0] & ~KVM_X2APIC_API_VALID_FLAGS) cap 4852 arch/x86/kvm/x86.c if (cap->args[0] & KVM_X2APIC_API_USE_32BIT_IDS) cap 4854 arch/x86/kvm/x86.c if (cap->args[0] & KVM_X2APIC_API_DISABLE_BROADCAST_QUIRK) cap 4861 arch/x86/kvm/x86.c if (cap->args[0] & ~KVM_X86_DISABLE_VALID_EXITS) cap 4864 arch/x86/kvm/x86.c if ((cap->args[0] & KVM_X86_DISABLE_EXITS_MWAIT) && cap 4867 arch/x86/kvm/x86.c if (cap->args[0] & KVM_X86_DISABLE_EXITS_HLT) cap 4869 arch/x86/kvm/x86.c if (cap->args[0] & KVM_X86_DISABLE_EXITS_PAUSE) cap 4871 arch/x86/kvm/x86.c if (cap->args[0] & KVM_X86_DISABLE_EXITS_CSTATE) cap 4876 arch/x86/kvm/x86.c kvm->arch.guest_can_read_msr_platform_info = cap->args[0]; cap 4880 arch/x86/kvm/x86.c kvm->arch.exception_payload_enabled = cap->args[0]; cap 223 drivers/acpi/acpi_extlog.c u64 cap; cap 226 drivers/acpi/acpi_extlog.c rdmsrl(MSR_IA32_MCG_CAP, cap); cap 228 drivers/acpi/acpi_extlog.c if (!(cap & MCG_ELOG_P) || !extlog_get_l1addr()) cap 504 drivers/acpi/acpi_processor.c .cap.length = 8, cap 505 drivers/acpi/acpi_processor.c .cap.pointer = capbuf, cap 170 drivers/acpi/acpi_video.c struct acpi_video_bus_cap cap; cap 203 drivers/acpi/acpi_video.c struct acpi_video_device_cap cap; cap 598 drivers/acpi/acpi_video.c if (device->cap._BQC || device->cap._BCQ) { cap 599 drivers/acpi/acpi_video.c char *buf = device->cap._BQC ? "_BQC" : "_BCQ"; cap 628 drivers/acpi/acpi_video.c device->cap._BQC = device->cap._BCQ = 0; cap 639 drivers/acpi/acpi_video.c device->cap._BQC = device->cap._BCQ = 0; cap 714 drivers/acpi/acpi_video.c if (!video->cap._DOS) cap 809 drivers/acpi/acpi_video.c device->cap._BQC = device->cap._BCQ = 0; cap 952 drivers/acpi/acpi_video.c if (!device->cap._BQC) cap 967 drivers/acpi/acpi_video.c if (!device->cap._BQC) cap 1014 drivers/acpi/acpi_video.c device->cap._ADR = 1; cap 1016 drivers/acpi/acpi_video.c device->cap._BCL = 1; cap 1018 drivers/acpi/acpi_video.c device->cap._BCM = 1; cap 1020 drivers/acpi/acpi_video.c device->cap._BQC = 1; cap 1023 drivers/acpi/acpi_video.c device->cap._BCQ = 1; cap 1027 drivers/acpi/acpi_video.c device->cap._DDC = 1; cap 1043 drivers/acpi/acpi_video.c video->cap._DOS = 1; cap 1045 drivers/acpi/acpi_video.c video->cap._DOD = 1; cap 1047 drivers/acpi/acpi_video.c video->cap._ROM = 1; cap 1049 drivers/acpi/acpi_video.c video->cap._GPD = 1; cap 1051 drivers/acpi/acpi_video.c video->cap._SPD = 1; cap 1053 drivers/acpi/acpi_video.c video->cap._VPO = 1; cap 1080 drivers/acpi/acpi_video.c if (video->cap._DOS || video->cap._DOD) { cap 1081 drivers/acpi/acpi_video.c if (!video->cap._DOS) { cap 1091 drivers/acpi/acpi_video.c if (video->cap._ROM) { cap 1097 drivers/acpi/acpi_video.c if (video->cap._GPD && video->cap._SPD && video->cap._VPO) { cap 1319 drivers/acpi/acpi_video.c if (!video->cap._DOD) cap 1474 drivers/acpi/acpi_video.c if (!video_device->cap._DDC) cap 779 drivers/acpi/apei/apei-base.c .cap.length = sizeof(capbuf), cap 780 drivers/acpi/apei/apei-base.c .cap.pointer = capbuf, cap 183 drivers/acpi/bus.c for (i = 0; i < context->cap.length; i += sizeof(u32)) cap 184 drivers/acpi/bus.c pr_debug(" %x", *((u32 *)(context->cap.pointer + i))); cap 215 drivers/acpi/bus.c in_params[2].integer.value = context->cap.length/sizeof(u32); cap 217 drivers/acpi/bus.c in_params[3].buffer.length = context->cap.length; cap 218 drivers/acpi/bus.c in_params[3].buffer.pointer = context->cap.pointer; cap 229 drivers/acpi/bus.c || out_obj->buffer.length != context->cap.length) { cap 248 drivers/acpi/bus.c if (((u32 *)context->cap.pointer)[OSC_QUERY_DWORD] cap 291 drivers/acpi/bus.c .cap.length = 8, cap 292 drivers/acpi/bus.c .cap.pointer = capbuf, cap 182 drivers/acpi/pci_root.c .cap.length = 12, cap 183 drivers/acpi/pci_root.c .cap.pointer = (void *)capbuf, cap 1120 drivers/acpi/scan.c long *cap = context; cap 1126 drivers/acpi/scan.c *cap |= ACPI_VIDEO_BACKLIGHT; cap 65 drivers/acpi/video_detect.c long *cap = context; cap 81 drivers/acpi/video_detect.c *cap |= acpi_is_video_device(handle); cap 291 drivers/ata/acard-ahci.c if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { cap 401 drivers/ata/acard-ahci.c if (hpriv->cap & HOST_CAP_NCQ) cap 404 drivers/ata/acard-ahci.c if (hpriv->cap & HOST_CAP_PMP) cap 414 drivers/ata/acard-ahci.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); cap 421 drivers/ata/acard-ahci.c if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) cap 444 drivers/ata/acard-ahci.c DMA_BIT_MASK((hpriv->cap & HOST_CAP_64) ? 64 : 32)); cap 1433 drivers/ata/ahci.c hpriv->cap = 0xC734FF02; cap 1480 drivers/ata/ahci.c u32 cap; cap 1491 drivers/ata/ahci.c cap = readq(hpriv->mmio + AHCI_REMAP_CAP); cap 1493 drivers/ata/ahci.c if ((cap & (1 << i)) == 0) cap 1584 drivers/ata/ahci.c if (hpriv->cap & HOST_CAP_PART) cap 1586 drivers/ata/ahci.c else if (hpriv->cap & HOST_CAP_SSC) cap 1745 drivers/ata/ahci.c if (hpriv->cap & HOST_CAP_NCQ) { cap 1765 drivers/ata/ahci.c if (hpriv->cap & HOST_CAP_PMP) cap 1803 drivers/ata/ahci.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); cap 1816 drivers/ata/ahci.c if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) cap 1849 drivers/ata/ahci.c rc = ahci_configure_dma_masks(pdev, hpriv->cap & HOST_CAP_64); cap 329 drivers/ata/ahci.h u32 cap; /* cap to use */ cap 438 drivers/ata/ahci.h static inline int ahci_nr_ports(u32 cap) cap 440 drivers/ata/ahci.h return (cap & 0x1f) + 1; cap 245 drivers/ata/libahci.c return sprintf(buf, "%x\n", hpriv->cap); cap 427 drivers/ata/libahci.c u32 cap, cap2, vers, port_map; cap 436 drivers/ata/libahci.c hpriv->saved_cap = cap = readl(mmio + HOST_CAP); cap 448 drivers/ata/libahci.c if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) { cap 450 drivers/ata/libahci.c cap &= ~HOST_CAP_64; cap 453 drivers/ata/libahci.c if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) { cap 455 drivers/ata/libahci.c cap &= ~HOST_CAP_NCQ; cap 458 drivers/ata/libahci.c if (!(cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_YES_NCQ)) { cap 460 drivers/ata/libahci.c cap |= HOST_CAP_NCQ; cap 463 drivers/ata/libahci.c if ((cap & HOST_CAP_PMP) && (hpriv->flags & AHCI_HFLAG_NO_PMP)) { cap 465 drivers/ata/libahci.c cap &= ~HOST_CAP_PMP; cap 468 drivers/ata/libahci.c if ((cap & HOST_CAP_SNTF) && (hpriv->flags & AHCI_HFLAG_NO_SNTF)) { cap 471 drivers/ata/libahci.c cap &= ~HOST_CAP_SNTF; cap 481 drivers/ata/libahci.c if (!(cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_YES_FBS)) { cap 483 drivers/ata/libahci.c cap |= HOST_CAP_FBS; cap 486 drivers/ata/libahci.c if ((cap & HOST_CAP_FBS) && (hpriv->flags & AHCI_HFLAG_NO_FBS)) { cap 488 drivers/ata/libahci.c cap &= ~HOST_CAP_FBS; cap 491 drivers/ata/libahci.c if (!(cap & HOST_CAP_ALPM) && (hpriv->flags & AHCI_HFLAG_YES_ALPM)) { cap 493 drivers/ata/libahci.c cap |= HOST_CAP_ALPM; cap 521 drivers/ata/libahci.c if (map_ports > ahci_nr_ports(cap)) { cap 524 drivers/ata/libahci.c port_map, ahci_nr_ports(cap)); cap 531 drivers/ata/libahci.c port_map = (1 << ahci_nr_ports(cap)) - 1; cap 539 drivers/ata/libahci.c hpriv->cap = cap; cap 588 drivers/ata/libahci.c (sc_reg != SCR_NOTIFICATION || (hpriv->cap & HOST_CAP_SNTF))) cap 687 drivers/ata/libahci.c if (hpriv->cap & HOST_CAP_64) cap 692 drivers/ata/libahci.c if (hpriv->cap & HOST_CAP_64) cap 735 drivers/ata/libahci.c if (hpriv->cap & HOST_CAP_SSS) { cap 767 drivers/ata/libahci.c if (hpriv->cap & HOST_CAP_ALPM) { cap 824 drivers/ata/libahci.c if (!(hpriv->cap & HOST_CAP_SSS)) cap 1226 drivers/ata/libahci.c if ((tmp & PORT_CMD_ESP) && (hpriv->cap & HOST_CAP_SXS)) cap 1319 drivers/ata/libahci.c if (!(hpriv->cap & HOST_CAP_CLO)) { cap 1834 drivers/ata/libahci.c if (hpriv->cap & HOST_CAP_SNTF) cap 2342 drivers/ata/libahci.c if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { cap 2438 drivers/ata/libahci.c u32 vers, cap, cap2, impl, speed; cap 2442 drivers/ata/libahci.c cap = hpriv->cap; cap 2446 drivers/ata/libahci.c speed = (cap >> 20) & 0xf; cap 2466 drivers/ata/libahci.c ((cap >> 8) & 0x1f) + 1, cap 2467 drivers/ata/libahci.c (cap & 0x1f) + 1, cap 2480 drivers/ata/libahci.c cap & HOST_CAP_64 ? "64bit " : "", cap 2481 drivers/ata/libahci.c cap & HOST_CAP_NCQ ? "ncq " : "", cap 2482 drivers/ata/libahci.c cap & HOST_CAP_SNTF ? "sntf " : "", cap 2483 drivers/ata/libahci.c cap & HOST_CAP_MPS ? "ilck " : "", cap 2484 drivers/ata/libahci.c cap & HOST_CAP_SSS ? "stag " : "", cap 2485 drivers/ata/libahci.c cap & HOST_CAP_ALPM ? "pm " : "", cap 2486 drivers/ata/libahci.c cap & HOST_CAP_LED ? "led " : "", cap 2487 drivers/ata/libahci.c cap & HOST_CAP_CLO ? "clo " : "", cap 2488 drivers/ata/libahci.c cap & HOST_CAP_ONLY ? "only " : "", cap 2489 drivers/ata/libahci.c cap & HOST_CAP_PMP ? "pmp " : "", cap 2490 drivers/ata/libahci.c cap & HOST_CAP_FBS ? "fbs " : "", cap 2491 drivers/ata/libahci.c cap & HOST_CAP_PIO_MULTI ? "pio " : "", cap 2492 drivers/ata/libahci.c cap & HOST_CAP_SSC ? "slum " : "", cap 2493 drivers/ata/libahci.c cap & HOST_CAP_PART ? "part " : "", cap 2494 drivers/ata/libahci.c cap & HOST_CAP_CCC ? "ccc " : "", cap 2495 drivers/ata/libahci.c cap & HOST_CAP_EMS ? "ems " : "", cap 2496 drivers/ata/libahci.c cap & HOST_CAP_SXS ? "sxs " : "", cap 2515 drivers/ata/libahci.c if (!ahci_em_messages || !(hpriv->cap & HOST_CAP_EMS)) cap 598 drivers/ata/libahci_platform.c if (hpriv->cap & HOST_CAP_NCQ) cap 601 drivers/ata/libahci_platform.c if (hpriv->cap & HOST_CAP_PMP) cap 611 drivers/ata/libahci_platform.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); cap 619 drivers/ata/libahci_platform.c if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) cap 643 drivers/ata/libahci_platform.c if (hpriv->cap & HOST_CAP_64) { cap 505 drivers/ata/sata_highbank.c if (hpriv->cap & HOST_CAP_NCQ) cap 508 drivers/ata/sata_highbank.c if (hpriv->cap & HOST_CAP_PMP) cap 511 drivers/ata/sata_highbank.c if (hpriv->cap & HOST_CAP_64) cap 519 drivers/ata/sata_highbank.c n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); cap 533 drivers/ata/sata_highbank.c if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) cap 91 drivers/bus/ti-sysc.c const struct sysc_capabilities *cap; cap 880 drivers/bus/ti-sysc.c regbits = ddata->cap->regbits; cap 976 drivers/bus/ti-sysc.c regbits = ddata->cap->regbits; cap 1612 drivers/bus/ti-sysc.c ddata->cap->regbits->srst_shift < 0 || cap 1616 drivers/bus/ti-sysc.c sysc_mask = BIT(ddata->cap->regbits->srst_shift); cap 1745 drivers/bus/ti-sysc.c ddata->cfg.sysc_val = val & ddata->cap->sysc_mask; cap 1801 drivers/bus/ti-sysc.c if ((ddata->cap->type == TI_SYSC_OMAP4 || cap 1802 drivers/bus/ti-sysc.c ddata->cap->type == TI_SYSC_OMAP4_TIMER) && cap 2377 drivers/bus/ti-sysc.c mdata->cap = ddata->cap; cap 2388 drivers/bus/ti-sysc.c const struct sysc_capabilities *cap; cap 2390 drivers/bus/ti-sysc.c cap = of_device_get_match_data(ddata->dev); cap 2391 drivers/bus/ti-sysc.c if (!cap) cap 2394 drivers/bus/ti-sysc.c ddata->cap = cap; cap 2395 drivers/bus/ti-sysc.c if (ddata->cap) cap 2396 drivers/bus/ti-sysc.c ddata->cfg.quirks |= ddata->cap->mod_quirks; cap 271 drivers/char/agp/amd64-agp.c static int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, u16 cap) cap 285 drivers/char/agp/amd64-agp.c pci_read_config_word(agp, cap+0x14, &apsize); cap 181 drivers/char/agp/hp-agp.c hp_zx1_lba_find_capability (volatile u8 __iomem *hpa, int cap) cap 196 drivers/char/agp/hp-agp.c if (id == cap) cap 207 drivers/char/agp/hp-agp.c int cap; cap 215 drivers/char/agp/hp-agp.c cap = readl(hp->lba_regs+hp->lba_cap_offset) & 0xff; cap 216 drivers/char/agp/hp-agp.c if (cap != PCI_CAP_ID_AGP) { cap 218 drivers/char/agp/hp-agp.c cap, hp->lba_cap_offset); cap 285 drivers/char/agp/parisc-agp.c lba_find_capability(int cap) cap 301 drivers/char/agp/parisc-agp.c if (id == cap) cap 312 drivers/char/agp/parisc-agp.c int cap; cap 317 drivers/char/agp/parisc-agp.c cap = readl(lba_hpa + info->lba_cap_offset) & 0xff; cap 318 drivers/char/agp/parisc-agp.c if (cap != PCI_CAP_ID_AGP) { cap 320 drivers/char/agp/parisc-agp.c cap, info->lba_cap_offset); cap 154 drivers/char/efirtc.c efi_time_cap_t cap; cap 177 drivers/char/efirtc.c status = efi.get_time(&eft, &cap); cap 280 drivers/char/efirtc.c efi_time_cap_t cap; cap 286 drivers/char/efirtc.c memset(&cap, 0, sizeof(cap)); cap 290 drivers/char/efirtc.c efi.get_time(&eft, &cap); cap 335 drivers/char/efirtc.c cap.resolution, cap.accuracy, cap.sets_to_zero); cap 837 drivers/char/hpet.c u64 cap, mcfg; cap 875 drivers/char/hpet.c cap = readq(&hpet->hpet_cap); cap 877 drivers/char/hpet.c ntimer = ((cap & HPET_NUM_TIM_CAP_MASK) >> HPET_NUM_TIM_CAP_SHIFT) + 1; cap 893 drivers/char/hpet.c period = (cap & HPET_COUNTER_CLK_PERIOD_MASK) >> cap 912 drivers/char/hpet.c cap & HPET_COUNTER_SIZE_MASK ? 64 : 32, cap 96 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 105 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(chip, TPM_CAP_PROP_PCR, &cap, cap 107 drivers/char/tpm/tpm-sysfs.c sizeof(cap.num_pcrs))) { cap 112 drivers/char/tpm/tpm-sysfs.c num_pcrs = be32_to_cpu(cap.num_pcrs); cap 133 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 138 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, cap 140 drivers/char/tpm/tpm-sysfs.c sizeof(cap.perm_flags))) cap 143 drivers/char/tpm/tpm-sysfs.c rc = sprintf(buf, "%d\n", !cap.perm_flags.disable); cap 155 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 160 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(chip, TPM_CAP_FLAG_PERM, &cap, cap 162 drivers/char/tpm/tpm-sysfs.c sizeof(cap.perm_flags))) cap 165 drivers/char/tpm/tpm-sysfs.c rc = sprintf(buf, "%d\n", !cap.perm_flags.deactivated); cap 177 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 182 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(to_tpm_chip(dev), TPM_CAP_PROP_OWNER, &cap, cap 184 drivers/char/tpm/tpm-sysfs.c sizeof(cap.owned))) cap 187 drivers/char/tpm/tpm-sysfs.c rc = sprintf(buf, "%d\n", cap.owned); cap 199 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 204 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(to_tpm_chip(dev), TPM_CAP_FLAG_VOL, &cap, cap 206 drivers/char/tpm/tpm-sysfs.c sizeof(cap.stclear_flags))) cap 209 drivers/char/tpm/tpm-sysfs.c rc = sprintf(buf, "%d\n", cap.stclear_flags.deactivated); cap 222 drivers/char/tpm/tpm-sysfs.c cap_t cap; cap 227 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(chip, TPM_CAP_PROP_MANUFACTURER, &cap, cap 229 drivers/char/tpm/tpm-sysfs.c sizeof(cap.manufacturer_id))) cap 233 drivers/char/tpm/tpm-sysfs.c be32_to_cpu(cap.manufacturer_id)); cap 236 drivers/char/tpm/tpm-sysfs.c rc = tpm1_getcap(chip, TPM_CAP_VERSION_1_2, &cap, cap 238 drivers/char/tpm/tpm-sysfs.c sizeof(cap.tpm_version_1_2)); cap 242 drivers/char/tpm/tpm-sysfs.c cap.tpm_version_1_2.Major, cap 243 drivers/char/tpm/tpm-sysfs.c cap.tpm_version_1_2.Minor, cap 244 drivers/char/tpm/tpm-sysfs.c cap.tpm_version_1_2.revMajor, cap 245 drivers/char/tpm/tpm-sysfs.c cap.tpm_version_1_2.revMinor); cap 248 drivers/char/tpm/tpm-sysfs.c if (tpm1_getcap(chip, TPM_CAP_VERSION_1_1, &cap, cap 250 drivers/char/tpm/tpm-sysfs.c sizeof(cap.tpm_version))) cap 254 drivers/char/tpm/tpm-sysfs.c cap.tpm_version.Major, cap 255 drivers/char/tpm/tpm-sysfs.c cap.tpm_version.Minor, cap 256 drivers/char/tpm/tpm-sysfs.c cap.tpm_version.revMajor, cap 257 drivers/char/tpm/tpm-sysfs.c cap.tpm_version.revMinor); cap 394 drivers/char/tpm/tpm.h ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap, cap 344 drivers/char/tpm/tpm1-cmd.c cap_t cap; cap 348 drivers/char/tpm/tpm1-cmd.c rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, NULL, cap 349 drivers/char/tpm/tpm1-cmd.c sizeof(cap.timeout)); cap 354 drivers/char/tpm/tpm1-cmd.c rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, cap 356 drivers/char/tpm/tpm1-cmd.c sizeof(cap.timeout)); cap 369 drivers/char/tpm/tpm1-cmd.c timeout_chip[0] = be32_to_cpu(cap.timeout.a); cap 370 drivers/char/tpm/tpm1-cmd.c timeout_chip[1] = be32_to_cpu(cap.timeout.b); cap 371 drivers/char/tpm/tpm1-cmd.c timeout_chip[2] = be32_to_cpu(cap.timeout.c); cap 372 drivers/char/tpm/tpm1-cmd.c timeout_chip[3] = be32_to_cpu(cap.timeout.d); cap 416 drivers/char/tpm/tpm1-cmd.c rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_DURATION, &cap, cap 418 drivers/char/tpm/tpm1-cmd.c sizeof(cap.duration)); cap 423 drivers/char/tpm/tpm1-cmd.c usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_short)); cap 425 drivers/char/tpm/tpm1-cmd.c usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_medium)); cap 427 drivers/char/tpm/tpm1-cmd.c usecs_to_jiffies(be32_to_cpu(cap.duration.tpm_long)); cap 467 drivers/char/tpm/tpm1-cmd.c ssize_t tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap, cap 493 drivers/char/tpm/tpm1-cmd.c *cap = *(cap_t *)&buf.data[TPM_HEADER_SIZE + 4]; cap 664 drivers/char/tpm/tpm_tis_core.c cap_t cap; cap 669 drivers/char/tpm/tpm_tis_core.c return tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, desc, cap 306 drivers/clocksource/timer-ti-dm.c u32 cap = 0; cap 314 drivers/clocksource/timer-ti-dm.c cap = *(u32 *)data; cap 338 drivers/clocksource/timer-ti-dm.c if (cap == (t->capability & cap)) { cap 353 drivers/clocksource/timer-ti-dm.c if (t->capability == cap) cap 411 drivers/clocksource/timer-ti-dm.c struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap) cap 413 drivers/clocksource/timer-ti-dm.c return _omap_dm_timer_request(REQUEST_BY_CAP, &cap); cap 729 drivers/cpufreq/intel_pstate.c u64 cap; cap 734 drivers/cpufreq/intel_pstate.c rdmsrl_on_cpu(policy->cpu, MSR_HWP_CAPABILITIES, &cap); cap 735 drivers/cpufreq/intel_pstate.c ratio = HWP_GUARANTEED_PERF(cap); cap 755 drivers/cpufreq/intel_pstate.c u64 cap; cap 757 drivers/cpufreq/intel_pstate.c rdmsrl_on_cpu(cpu, MSR_HWP_CAPABILITIES, &cap); cap 758 drivers/cpufreq/intel_pstate.c WRITE_ONCE(all_cpu_data[cpu]->hwp_cap_cached, cap); cap 760 drivers/cpufreq/intel_pstate.c *current_max = HWP_GUARANTEED_PERF(cap); cap 762 drivers/cpufreq/intel_pstate.c *current_max = HWP_HIGHEST_PERF(cap); cap 764 drivers/cpufreq/intel_pstate.c *phy_max = HWP_HIGHEST_PERF(cap); cap 128 drivers/crypto/mediatek/mtk-platform.c struct mtk_sys_cap *cap) cap 130 drivers/crypto/mediatek/mtk-platform.c u32 width = MTK_HIA_DATA_WIDTH(cap->hia_opt) + 2; cap 131 drivers/crypto/mediatek/mtk-platform.c u32 len = MTK_HIA_DMA_LENGTH(cap->hia_opt) - 1; cap 132 drivers/crypto/mediatek/mtk-platform.c u32 ipbuf = min((u32)MTK_IN_DBUF_SIZE(cap->hw_opt) + width, len); cap 133 drivers/crypto/mediatek/mtk-platform.c u32 opbuf = min((u32)MTK_OUT_DBUF_SIZE(cap->hw_opt) + width, len); cap 134 drivers/crypto/mediatek/mtk-platform.c u32 itbuf = min((u32)MTK_IN_TBUF_SIZE(cap->hw_opt) + width, len); cap 211 drivers/crypto/mediatek/mtk-platform.c int i, struct mtk_sys_cap *cap) cap 215 drivers/crypto/mediatek/mtk-platform.c ((1 << MTK_CMD_FIFO_SIZE(cap->hia_opt)) / MTK_DESC_SZ) - 1; cap 252 drivers/crypto/mediatek/mtk-platform.c int i, struct mtk_sys_cap *cap) cap 255 drivers/crypto/mediatek/mtk-platform.c u32 count = ((1 << MTK_RES_FIFO_SIZE(cap->hia_opt)) / rndup) - 1; cap 303 drivers/crypto/mediatek/mtk-platform.c struct mtk_sys_cap cap; cap 307 drivers/crypto/mediatek/mtk-platform.c cap.hia_ver = readl(cryp->base + HIA_VERSION); cap 308 drivers/crypto/mediatek/mtk-platform.c cap.hia_opt = readl(cryp->base + HIA_OPTIONS); cap 309 drivers/crypto/mediatek/mtk-platform.c cap.hw_opt = readl(cryp->base + EIP97_OPTIONS); cap 311 drivers/crypto/mediatek/mtk-platform.c if (!(((u16)cap.hia_ver) == MTK_HIA_SIGNATURE)) cap 329 drivers/crypto/mediatek/mtk-platform.c mtk_dfe_dse_buf_setup(cryp, &cap); cap 335 drivers/crypto/mediatek/mtk-platform.c mtk_cmd_desc_ring_setup(cryp, i, &cap); cap 336 drivers/crypto/mediatek/mtk-platform.c mtk_res_desc_ring_setup(cryp, i, &cap); cap 1791 drivers/dma/coh901318.c dma_cap_mask_t cap; cap 1792 drivers/dma/coh901318.c dma_cap_zero(cap); cap 1793 drivers/dma/coh901318.c dma_cap_set(DMA_SLAVE, cap); cap 1795 drivers/dma/coh901318.c return dma_request_channel(cap, coh901318_filter_base_and_id, &args); cap 311 drivers/dma/dmaengine.c enum dma_transaction_type cap; cap 324 drivers/dma/dmaengine.c for_each_dma_cap_mask(cap, dma_cap_mask_all) { cap 325 drivers/dma/dmaengine.c channel_table[cap] = alloc_percpu(struct dma_chan_tbl_ent); cap 326 drivers/dma/dmaengine.c if (!channel_table[cap]) { cap 334 drivers/dma/dmaengine.c for_each_dma_cap_mask(cap, dma_cap_mask_all) cap 335 drivers/dma/dmaengine.c free_percpu(channel_table[cap]); cap 392 drivers/dma/dmaengine.c static struct dma_chan *min_chan(enum dma_transaction_type cap, int cpu) cap 400 drivers/dma/dmaengine.c if (!dma_has_cap(cap, device->cap_mask) || cap 437 drivers/dma/dmaengine.c int cap; cap 440 drivers/dma/dmaengine.c for_each_dma_cap_mask(cap, dma_cap_mask_all) cap 442 drivers/dma/dmaengine.c per_cpu_ptr(channel_table[cap], cpu)->chan = NULL; cap 456 drivers/dma/dmaengine.c for_each_dma_cap_mask(cap, dma_cap_mask_all) cap 458 drivers/dma/dmaengine.c chan = min_chan(cap, cpu); cap 459 drivers/dma/dmaengine.c per_cpu_ptr(channel_table[cap], cpu)->chan = chan; cap 23 drivers/dma/dw/of.c dma_cap_mask_t cap; cap 39 drivers/dma/dw/of.c dma_cap_zero(cap); cap 40 drivers/dma/dw/of.c dma_cap_set(DMA_SLAVE, cap); cap 43 drivers/dma/dw/of.c return dma_request_channel(cap, dw_dma_filter, &slave); cap 431 drivers/dma/ioat/dma.c if (ioat_dma->cap & IOAT_CAP_DPS) { cap 606 drivers/dma/ioat/dma.c if (ioat_dma->cap & IOAT_CAP_DWBES) cap 76 drivers/dma/ioat/dma.h u32 cap; cap 1076 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_DWBES) { cap 1108 drivers/dma/ioat/init.c ioat_dma->cap = readl(ioat_dma->reg_base + IOAT_DMA_CAP_OFFSET); cap 1111 drivers/dma/ioat/init.c ioat_dma->cap &= cap 1115 drivers/dma/ioat/init.c if (dca_en && (ioat_dma->cap & (IOAT_CAP_XOR|IOAT_CAP_PQ))) cap 1116 drivers/dma/ioat/init.c ioat_dma->cap &= ~(IOAT_CAP_XOR|IOAT_CAP_PQ); cap 1118 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_XOR) { cap 1128 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_PQ) { cap 1135 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_RAID16SS) cap 1140 drivers/dma/ioat/init.c if (!(ioat_dma->cap & IOAT_CAP_XOR)) { cap 1146 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_RAID16SS) cap 1156 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_RAID16SS) { cap 1173 drivers/dma/ioat/init.c if (!(ioat_dma->cap & (IOAT_CAP_XOR | IOAT_CAP_PQ))) cap 1206 drivers/dma/ioat/init.c if (ioat_dma->cap & IOAT_CAP_DPS) cap 422 drivers/dma/ioat/prep.c if (ioat_dma->cap & IOAT_CAP_DWBES) cap 537 drivers/dma/ioat/prep.c if (ioat_dma->cap & IOAT_CAP_DWBES) cap 29 drivers/dma/ioat/sysfs.c struct ioat_sysfs_entry ioat_cap_attr = __ATTR_RO(cap); cap 1329 drivers/dma/ppc4xx/adma.c enum dma_transaction_type cap, struct page **dst_lst, int dst_cnt, cap 1334 drivers/dma/ppc4xx/adma.c if (cap == DMA_PQ || cap == DMA_PQ_VAL) { cap 1351 drivers/dma/ppc4xx/adma.c if (cap == DMA_PQ && chan->chan_id == PPC440SPE_XOR_ID) { cap 1370 drivers/dma/ppc4xx/adma.c ppc440spe_async_tx_find_best_channel(enum dma_transaction_type cap, cap 1386 drivers/dma/ppc4xx/adma.c switch (cap) { cap 1402 drivers/dma/ppc4xx/adma.c if (dma_has_cap(cap, ref->chan->device->cap_mask)) { cap 1405 drivers/dma/ppc4xx/adma.c rank = ppc440spe_adma_estimate(ref->chan, cap, dst_lst, cap 748 drivers/dma/qcom/hidma.c enum hidma_cap cap; cap 750 drivers/dma/qcom/hidma.c cap = (enum hidma_cap) device_get_match_data(dev); cap 751 drivers/dma/qcom/hidma.c return cap ? ((cap & test_cap) > 0) : 0; cap 1961 drivers/dma/ste_dma40.c dma_cap_mask_t cap = d40c->chan.device->cap_mask; cap 1963 drivers/dma/ste_dma40.c if (dma_has_cap(DMA_MEMCPY, cap) && !dma_has_cap(DMA_SLAVE, cap)) { cap 1970 drivers/dma/ste_dma40.c } else if (dma_has_cap(DMA_MEMCPY, cap) && cap 1971 drivers/dma/ste_dma40.c dma_has_cap(DMA_SLAVE, cap)) { cap 2350 drivers/dma/ste_dma40.c dma_cap_mask_t cap; cap 2355 drivers/dma/ste_dma40.c dma_cap_zero(cap); cap 2356 drivers/dma/ste_dma40.c dma_cap_set(DMA_SLAVE, cap); cap 2385 drivers/dma/ste_dma40.c return dma_request_channel(cap, stedma40_filter, &cfg); cap 710 drivers/firmware/arm_scpi.c __le16 cap; cap 713 drivers/firmware/arm_scpi.c ret = scpi_send_message(CMD_SENSOR_CAPABILITIES, NULL, 0, &cap, cap 714 drivers/firmware/arm_scpi.c sizeof(cap)); cap 716 drivers/firmware/arm_scpi.c *sensors = le16_to_cpu(cap); cap 294 drivers/firmware/efi/test/efi_test.c efi_time_cap_t cap; cap 302 drivers/firmware/efi/test/efi_test.c gettime.capabilities ? &cap : NULL); cap 314 drivers/firmware/efi/test/efi_test.c if (put_user(cap.resolution, &(cap_local->resolution)) || cap 315 drivers/firmware/efi/test/efi_test.c put_user(cap.accuracy, &(cap_local->accuracy)) || cap 316 drivers/firmware/efi/test/efi_test.c put_user(cap.sets_to_zero, &(cap_local->sets_to_zero))) cap 259 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c i2s_pdata[0].cap = DWC_I2S_PLAY; cap 274 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c i2s_pdata[1].cap = DWC_I2S_RECORD; cap 288 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c i2s_pdata[2].cap = DWC_I2S_PLAY | DWC_I2S_RECORD; cap 502 drivers/gpu/drm/amd/amdgpu/soc15.c static int soc15_asic_get_baco_capability(struct amdgpu_device *adev, bool *cap) cap 508 drivers/gpu/drm/amd/amdgpu/soc15.c *cap = false; cap 512 drivers/gpu/drm/amd/amdgpu/soc15.c return pp_funcs->get_asic_baco_capability(pp_handle, cap); cap 1156 drivers/gpu/drm/amd/amdkfd/kfd_topology.c uint32_t cap; cap 1164 drivers/gpu/drm/amd/amdkfd/kfd_topology.c PCI_EXP_DEVCAP2, &cap); cap 1166 drivers/gpu/drm/amd/amdkfd/kfd_topology.c if (!(cap & (PCI_EXP_DEVCAP2_ATOMIC_COMP32 | cap 2473 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c union mstm_cap cap; cap 2481 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c cap.raw = 0; cap 2489 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c &cap.raw, sizeof(cap)); cap 2490 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c if (st == DC_OK && cap.bits.MST_CAP == 1) cap 309 drivers/gpu/drm/amd/include/kgd_pp_interface.h int (*get_asic_baco_capability)(void *handle, bool *cap); cap 1420 drivers/gpu/drm/amd/powerplay/amd_powerplay.c static int pp_get_asic_baco_capability(void *handle, bool *cap) cap 1424 drivers/gpu/drm/amd/powerplay/amd_powerplay.c *cap = false; cap 1433 drivers/gpu/drm/amd/powerplay/amd_powerplay.c hwmgr->hwmgr_func->get_asic_baco_capability(hwmgr, cap); cap 40 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c static void set_hw_cap(struct pp_hwmgr *hwmgr, bool setIt, enum phm_platform_caps cap) cap 43 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c phm_cap_set(hwmgr->platform_descriptor.platformCaps, cap); cap 45 drivers/gpu/drm/amd/powerplay/hwmgr/process_pptables_v1_0.c phm_cap_unset(hwmgr->platform_descriptor.platformCaps, cap); cap 444 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c enum phm_platform_caps cap) cap 447 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c phm_cap_set(hwmgr->platform_descriptor.platformCaps, cap); cap 449 drivers/gpu/drm/amd/powerplay/hwmgr/processpptables.c phm_cap_unset(hwmgr->platform_descriptor.platformCaps, cap); cap 31 drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.c int smu9_baco_get_capability(struct pp_hwmgr *hwmgr, bool *cap) cap 36 drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.c *cap = false; cap 47 drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.c *cap = true; cap 28 drivers/gpu/drm/amd/powerplay/hwmgr/smu9_baco.h extern int smu9_baco_get_capability(struct pp_hwmgr *hwmgr, bool *cap); cap 39 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c enum phm_platform_caps cap) cap 42 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c phm_cap_set(hwmgr->platform_descriptor.platformCaps, cap); cap 44 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_processpptables.c phm_cap_unset(hwmgr->platform_descriptor.platformCaps, cap); cap 36 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c enum phm_platform_caps cap) cap 39 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c phm_cap_set(hwmgr->platform_descriptor.platformCaps, cap); cap 41 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_processpptables.c phm_cap_unset(hwmgr->platform_descriptor.platformCaps, cap); cap 40 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c int vega20_baco_get_capability(struct pp_hwmgr *hwmgr, bool *cap) cap 45 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c *cap = false; cap 53 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.c *cap = true; cap 28 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_baco.h extern int vega20_baco_get_capability(struct pp_hwmgr *hwmgr, bool *cap); cap 38 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c enum phm_platform_caps cap) cap 41 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c phm_cap_set(hwmgr->platform_descriptor.platformCaps, cap); cap 43 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_processpptables.c phm_cap_unset(hwmgr->platform_descriptor.platformCaps, cap); cap 350 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h int (*get_asic_baco_capability)(struct pp_hwmgr *hwmgr, bool *cap); cap 91 drivers/gpu/drm/amd/powerplay/inc/smu_v11_0_pptable.h uint8_t cap[SMU_11_0_MAX_ODFEATURE]; //OD feature support flags cap 118 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c const struct komeda_format_caps *cap; cap 127 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c cap = &table->format_caps[i]; cap 128 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c if (!(layer_type & cap->supported_layer_types) || cap 129 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c (cap->fourcc == 0)) cap 136 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c if (fmts[j] == cap->fourcc) cap 140 drivers/gpu/drm/arm/display/komeda/komeda_format_caps.c fmts[n++] = cap->fourcc; cap 265 drivers/gpu/drm/drm_dp_cec.c u8 cap = 0; cap 267 drivers/gpu/drm/drm_dp_cec.c if (drm_dp_dpcd_readb(aux, DP_CEC_TUNNELING_CAPABILITY, &cap) != 1 || cap 268 drivers/gpu/drm/drm_dp_cec.c !(cap & DP_CEC_TUNNELING_CAPABLE)) cap 271 drivers/gpu/drm/drm_dp_cec.c *cec_cap = cap; cap 300 drivers/gpu/drm/drm_dp_cec.c u8 cap; cap 319 drivers/gpu/drm/drm_dp_cec.c if (!drm_dp_cec_cap(aux, &cap)) { cap 326 drivers/gpu/drm/drm_dp_cec.c if (cap & DP_CEC_SNOOPING_CAPABLE) cap 328 drivers/gpu/drm/drm_dp_cec.c if (cap & DP_CEC_MULTIPLE_LA_CAPABLE) cap 1158 drivers/gpu/drm/i915/i915_drv.c static u32 gen9_edram_size_mb(struct drm_i915_private *dev_priv, u32 cap) cap 1163 drivers/gpu/drm/i915/i915_drv.c return EDRAM_NUM_BANKS(cap) * cap 1164 drivers/gpu/drm/i915/i915_drv.c ways[EDRAM_WAYS_IDX(cap)] * cap 1165 drivers/gpu/drm/i915/i915_drv.c sets[EDRAM_SETS_IDX(cap)]; cap 8634 drivers/gpu/drm/i915/i915_reg.h #define EDRAM_NUM_BANKS(cap) (((cap) >> 1) & 0xf) cap 8635 drivers/gpu/drm/i915/i915_reg.h #define EDRAM_WAYS_IDX(cap) (((cap) >> 5) & 0x7) cap 8636 drivers/gpu/drm/i915/i915_reg.h #define EDRAM_SETS_IDX(cap) (((cap) >> 8) & 0x3) cap 87 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c if (phys_enc->hw_intf->cap->type == INTF_DSI) { cap 142 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c phys_enc->hw_intf->cap->prog_fetch_lines_worst_case; cap 456 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c unsigned long cap) cap 108 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c if (ctx->cap->type == INTF_EDP || ctx->cap->type == INTF_DP) { cap 146 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c if (ctx->cap->type == INTF_HDMI) { cap 250 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c unsigned long cap) cap 283 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c c->cap = cfg; cap 285 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c _setup_intf_ops(&c->ops, c->cap->features); cap 79 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h const struct dpu_intf_cfg *cap; cap 56 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c const struct dpu_lm_sub_blks *sblk = ctx->cap->sblk; cap 184 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c c->cap = cfg; cap 185 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c _setup_mixer_ops(m, &c->ops, c->cap->features); cap 64 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h const struct dpu_lm_cfg *cap; cap 140 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c const struct dpu_sspp_sub_blks *sblk = ctx->cap->sblk; cap 200 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (!test_bit(DPU_SSPP_SCALER_QSEED2, &ctx->cap->features) || cap 202 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c !test_bit(DPU_SSPP_CSC, &ctx->cap->features)) cap 323 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (test_bit(DPU_SSPP_CSC, &ctx->cap->features)) cap 326 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c else if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap->features)) cap 407 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c || !scaler3_cfg || !ctx || !ctx->cap || !ctx->cap->sblk) cap 411 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c ctx->cap->sblk->scaler_blk.version, cap 533 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap->features)) { cap 576 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (ctx->cap && test_bit(DPU_SSPP_QOS_8LVL, &ctx->cap->features)) { cap 656 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c if (test_bit(DPU_SSPP_SMART_DMA_V1, &c->cap->features) || cap 657 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c test_bit(DPU_SSPP_SMART_DMA_V2, &c->cap->features)) cap 718 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c hw_pipe->cap = cfg; cap 719 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c _setup_layer_ops(hw_pipe, hw_pipe->cap->features); cap 380 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h const struct dpu_sspp_cfg *cap; cap 281 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c unsigned long cap) cap 200 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c unsigned long cap) cap 206 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c if (test_bit(DPU_VBIF_QOS_REMAP, &cap)) cap 255 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c c->cap = cfg; cap 256 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.c _setup_vbif_ops(&c->ops, c->cap->features); cap 102 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_vbif.h const struct dpu_vbif_cfg *cap; cap 377 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ot_params.xin_id = pdpu->pipe_hw->cap->xin_id; cap 384 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ot_params.clk_ctrl = pdpu->pipe_hw->cap->clk_ctrl; cap 402 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c qos_params.clk_ctrl = pdpu->pipe_hw->cap->clk_ctrl; cap 403 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c qos_params.xin_id = pdpu->pipe_hw->cap->xin_id; cap 1319 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c const struct dpu_sspp_cfg *cfg = pdpu->pipe_hw->cap; cap 1494 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c } else if (!pdpu->pipe_hw->cap || !pdpu->pipe_hw->cap->sblk) { cap 1500 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c pdpu->features = pdpu->pipe_hw->cap->features; cap 1501 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c pdpu->pipe_sblk = pdpu->pipe_hw->cap->sblk; cap 313 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c const struct dpu_lm_cfg *lm_cfg = to_dpu_hw_mixer(lm->hw)->cap; cap 324 drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c to_dpu_hw_mixer(primary_lm->hw)->cap; cap 26 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (!vbif || !vbif->cap || !vbif->ops.get_halt_ctrl) { cap 31 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c timeout = ktime_add_us(ktime_get(), vbif->cap->xin_halt_timeout); cap 69 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (!vbif || !(vbif->cap->features & BIT(DPU_VBIF_QOS_OTLIM))) cap 80 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c tbl = params->rd ? &vbif->cap->dynamic_ot_rd_tbl : cap 81 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c &vbif->cap->dynamic_ot_wr_tbl; cap 108 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (!vbif || !vbif->cap) { cap 113 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (vbif->cap->default_ot_wr_limit && !params->rd) cap 114 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c ot_lim = vbif->cap->default_ot_wr_limit; cap 115 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c else if (vbif->cap->default_ot_rd_limit && params->rd) cap 116 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c ot_lim = vbif->cap->default_ot_rd_limit; cap 231 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (!vbif || !vbif->cap) { cap 241 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c qos_tbl = params->is_rt ? &vbif->cap->qos_rt_tbl : cap 242 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c &vbif->cap->qos_nrt_tbl; cap 287 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c if (vbif && vbif->cap && vbif->ops.set_mem_type) { cap 288 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c for (j = 0; j < vbif->cap->memtype_count; j++) cap 290 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c vbif, j, vbif->cap->memtype[j]); cap 129 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c static u32 vmw_mask_multisample(unsigned int cap, u32 fmt_value) cap 136 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c if (cap == SVGA3D_DEVCAP_MULTISAMPLE_MASKABLESAMPLES) cap 85 drivers/hwmon/acpi_power_meter.c u64 cap; cap 193 drivers/hwmon/acpi_power_meter.c resource->cap = data; cap 208 drivers/hwmon/acpi_power_meter.c return sprintf(buf, "%llu\n", resource->cap * 1000); cap 236 drivers/hwmon/acpi_power_meter.c resource->cap = temp; cap 414 drivers/hwmon/acpi_power_meter.c if (resource->power > resource->cap) cap 413 drivers/hwmon/jc42.c int i, config, cap, manid, devid; cap 419 drivers/hwmon/jc42.c cap = i2c_smbus_read_word_swapped(client, JC42_REG_CAP); cap 424 drivers/hwmon/jc42.c if (cap < 0 || config < 0 || manid < 0 || devid < 0) cap 427 drivers/hwmon/jc42.c if ((cap & 0xff00) || (config & 0xf800)) cap 466 drivers/hwmon/jc42.c int config, cap; cap 476 drivers/hwmon/jc42.c cap = i2c_smbus_read_word_swapped(client, JC42_REG_CAP); cap 477 drivers/hwmon/jc42.c if (cap < 0) cap 478 drivers/hwmon/jc42.c return cap; cap 480 drivers/hwmon/jc42.c data->extended = !!(cap & JC42_CAP_RANGE); cap 94 drivers/hwmon/occ/common.c u16 cap; cap 104 drivers/hwmon/occ/common.c u16 cap; cap 556 drivers/hwmon/occ/common.c val = get_unaligned_be16(&caps->cap) * 1000000ULL; cap 606 drivers/hwmon/occ/common.c val = get_unaligned_be16(&caps->cap) * 1000000ULL; cap 299 drivers/hwtracing/coresight/coresight-tmc.h static inline void tmc_etr_set_cap(struct tmc_drvdata *drvdata, u32 cap) cap 301 drivers/hwtracing/coresight/coresight-tmc.h drvdata->etr_caps |= cap; cap 304 drivers/hwtracing/coresight/coresight-tmc.h static inline bool tmc_etr_has_cap(struct tmc_drvdata *drvdata, u32 cap) cap 306 drivers/hwtracing/coresight/coresight-tmc.h return !!(drvdata->etr_caps & cap); cap 3157 drivers/infiniband/core/mad.c qp_init_attr.cap.max_send_wr = mad_sendq_size; cap 3158 drivers/infiniband/core/mad.c qp_init_attr.cap.max_recv_wr = mad_recvq_size; cap 3159 drivers/infiniband/core/mad.c qp_init_attr.cap.max_send_sge = IB_MAD_SEND_REQ_MAX_SG; cap 3160 drivers/infiniband/core/mad.c qp_init_attr.cap.max_recv_sge = IB_MAD_RECV_REQ_MAX_SG; cap 679 drivers/infiniband/core/rw.c attr->cap.max_send_wr += factor * attr->cap.max_rdma_ctxs; cap 685 drivers/infiniband/core/rw.c attr->cap.max_send_wr = cap 686 drivers/infiniband/core/rw.c min_t(u32, attr->cap.max_send_wr, dev->attrs.max_qp_wr); cap 696 drivers/infiniband/core/rw.c nr_sig_mrs = attr->cap.max_rdma_ctxs; cap 697 drivers/infiniband/core/rw.c nr_mrs = attr->cap.max_rdma_ctxs; cap 700 drivers/infiniband/core/rw.c nr_mrs = attr->cap.max_rdma_ctxs; cap 1386 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_send_wr = cmd->max_send_wr; cap 1387 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_recv_wr = cmd->max_recv_wr; cap 1388 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_send_sge = cmd->max_send_sge; cap 1389 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_recv_sge = cmd->max_recv_sge; cap 1390 drivers/infiniband/core/uverbs_cmd.c attr.cap.max_inline_data = cmd->max_inline_data; cap 1453 drivers/infiniband/core/uverbs_cmd.c resp.base.max_recv_sge = attr.cap.max_recv_sge; cap 1454 drivers/infiniband/core/uverbs_cmd.c resp.base.max_send_sge = attr.cap.max_send_sge; cap 1455 drivers/infiniband/core/uverbs_cmd.c resp.base.max_recv_wr = attr.cap.max_recv_wr; cap 1456 drivers/infiniband/core/uverbs_cmd.c resp.base.max_send_wr = attr.cap.max_send_wr; cap 1457 drivers/infiniband/core/uverbs_cmd.c resp.base.max_inline_data = attr.cap.max_inline_data; cap 1707 drivers/infiniband/core/uverbs_cmd.c resp.max_send_wr = init_attr->cap.max_send_wr; cap 1708 drivers/infiniband/core/uverbs_cmd.c resp.max_recv_wr = init_attr->cap.max_recv_wr; cap 1709 drivers/infiniband/core/uverbs_cmd.c resp.max_send_sge = init_attr->cap.max_send_sge; cap 1710 drivers/infiniband/core/uverbs_cmd.c resp.max_recv_sge = init_attr->cap.max_recv_sge; cap 1711 drivers/infiniband/core/uverbs_cmd.c resp.max_inline_data = init_attr->cap.max_inline_data; cap 110 drivers/infiniband/core/uverbs_marshall.c dst->max_send_wr = src->cap.max_send_wr; cap 111 drivers/infiniband/core/uverbs_marshall.c dst->max_recv_wr = src->cap.max_recv_wr; cap 112 drivers/infiniband/core/uverbs_marshall.c dst->max_send_sge = src->cap.max_send_sge; cap 113 drivers/infiniband/core/uverbs_marshall.c dst->max_recv_sge = src->cap.max_recv_sge; cap 114 drivers/infiniband/core/uverbs_marshall.c dst->max_inline_data = src->cap.max_inline_data; cap 1158 drivers/infiniband/core/verbs.c qp_init_attr->srq || qp_init_attr->cap.max_recv_wr || cap 1159 drivers/infiniband/core/verbs.c qp_init_attr->cap.max_recv_sge)) cap 1172 drivers/infiniband/core/verbs.c if (qp_init_attr->cap.max_rdma_ctxs) cap 1217 drivers/infiniband/core/verbs.c if (qp_init_attr->cap.max_rdma_ctxs) { cap 1228 drivers/infiniband/core/verbs.c qp->max_write_sge = qp_init_attr->cap.max_send_sge; cap 1229 drivers/infiniband/core/verbs.c qp->max_read_sge = min_t(u32, qp_init_attr->cap.max_send_sge, cap 1013 drivers/infiniband/hw/bnxt_re/ib_verbs.c if ((qp_init_attr->cap.max_send_wr > dev_attr->max_qp_wqes) || cap 1014 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_init_attr->cap.max_recv_wr > dev_attr->max_qp_wqes) || cap 1015 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_init_attr->cap.max_send_sge > dev_attr->max_qp_sges) || cap 1016 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_init_attr->cap.max_recv_sge > dev_attr->max_qp_sges) || cap 1017 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_init_attr->cap.max_inline_data > dev_attr->max_inline_data)) cap 1040 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.max_inline_data = qp_init_attr->cap.max_inline_data; cap 1044 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = qp_init_attr->cap.max_send_sge; cap 1086 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_init_attr->cap.max_recv_wr + 1); cap 1091 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_init_attr->cap.max_recv_wr; cap 1093 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp_init_attr->cap.max_recv_sge; cap 1103 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_init_attr->cap.max_send_wr + 1); cap 1107 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_init_attr->cap.max_send_wr; cap 1148 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_init_attr->cap.max_send_wr + cap 1727 drivers/infiniband/hw/bnxt_re/ib_verbs.c if ((qp_attr->cap.max_send_wr >= dev_attr->max_qp_wqes) || cap 1728 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_recv_wr >= dev_attr->max_qp_wqes) || cap 1729 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_send_sge >= dev_attr->max_qp_sges) || cap 1730 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_recv_sge >= dev_attr->max_qp_sges) || cap 1731 drivers/infiniband/hw/bnxt_re/ib_verbs.c (qp_attr->cap.max_inline_data >= cap 1737 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_attr->cap.max_send_wr); cap 1741 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_wr; cap 1748 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.sq.max_sge = qp_attr->cap.max_send_sge; cap 1750 drivers/infiniband/hw/bnxt_re/ib_verbs.c entries = roundup_pow_of_two(qp_attr->cap.max_recv_wr); cap 1754 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_wr; cap 1755 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.rq.max_sge = qp_attr->cap.max_recv_sge; cap 1821 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_wr = qp->qplib_qp.sq.max_wqe; cap 1822 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_send_sge = qp->qplib_qp.sq.max_sge; cap 1823 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_wr = qp->qplib_qp.rq.max_wqe; cap 1824 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_recv_sge = qp->qplib_qp.rq.max_sge; cap 1825 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->cap.max_inline_data = qp->qplib_qp.max_inline_data; cap 1826 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_init_attr->cap = qp_attr->cap; cap 719 drivers/infiniband/hw/cxgb3/iwch_provider.c rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr); cap 720 drivers/infiniband/hw/cxgb3/iwch_provider.c if (rqsize == attrs->cap.max_recv_wr) cap 721 drivers/infiniband/hw/cxgb3/iwch_provider.c rqsize = roundup_pow_of_two(attrs->cap.max_recv_wr+1); cap 730 drivers/infiniband/hw/cxgb3/iwch_provider.c if (attrs->cap.max_inline_data > T3_MAX_INLINE) cap 738 drivers/infiniband/hw/cxgb3/iwch_provider.c sqsize = roundup_pow_of_two(attrs->cap.max_send_wr); cap 749 drivers/infiniband/hw/cxgb3/iwch_provider.c roundup_pow_of_two(attrs->cap.max_send_wr * 2)); cap 764 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs->cap.max_recv_wr = rqsize - 1; cap 765 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs->cap.max_send_wr = sqsize; cap 766 drivers/infiniband/hw/cxgb3/iwch_provider.c attrs->cap.max_inline_data = T3_MAX_INLINE; cap 772 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_num_entries = attrs->cap.max_send_wr; cap 773 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.rq_num_entries = attrs->cap.max_recv_wr; cap 774 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_max_sges = attrs->cap.max_send_sge; cap 775 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge; cap 776 drivers/infiniband/hw/cxgb3/iwch_provider.c qhp->attr.rq_max_sges = attrs->cap.max_recv_sge; cap 2139 drivers/infiniband/hw/cxgb4/qp.c if (attrs->cap.max_inline_data > T4_MAX_SEND_INLINE) cap 2143 drivers/infiniband/hw/cxgb4/qp.c if (attrs->cap.max_recv_wr > rhp->rdev.hw_queue.t4_max_rq_size) cap 2145 drivers/infiniband/hw/cxgb4/qp.c rqsize = attrs->cap.max_recv_wr + 1; cap 2150 drivers/infiniband/hw/cxgb4/qp.c if (attrs->cap.max_send_wr > rhp->rdev.hw_queue.t4_max_sq_size) cap 2152 drivers/infiniband/hw/cxgb4/qp.c sqsize = attrs->cap.max_send_wr + 1; cap 2191 drivers/infiniband/hw/cxgb4/qp.c attrs->cap.max_recv_wr = rqsize - 1; cap 2192 drivers/infiniband/hw/cxgb4/qp.c attrs->cap.max_send_wr = sqsize - 1; cap 2193 drivers/infiniband/hw/cxgb4/qp.c attrs->cap.max_inline_data = T4_MAX_SEND_INLINE; cap 2199 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_num_entries = attrs->cap.max_send_wr; cap 2200 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_max_sges = attrs->cap.max_send_sge; cap 2201 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.sq_max_sges_rdma_write = attrs->cap.max_send_sge; cap 2203 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.rq_num_entries = attrs->cap.max_recv_wr; cap 2204 drivers/infiniband/hw/cxgb4/qp.c qhp->attr.rq_max_sges = attrs->cap.max_recv_sge; cap 2340 drivers/infiniband/hw/cxgb4/qp.c attrs->cap.max_send_wr, qhp->wq.rq.qid, qhp->wq.rq.size, cap 2341 drivers/infiniband/hw/cxgb4/qp.c qhp->wq.rq.memsize, attrs->cap.max_recv_wr); cap 2471 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_wr = qhp->attr.sq_num_entries; cap 2472 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries; cap 2473 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_send_sge = qhp->attr.sq_max_sges; cap 2474 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_recv_sge = qhp->attr.sq_max_sges; cap 2475 drivers/infiniband/hw/cxgb4/qp.c init_attr->cap.max_inline_data = T4_MAX_SEND_INLINE; cap 742 drivers/infiniband/hw/efa/efa_com.c u32 cap; cap 780 drivers/infiniband/hw/efa/efa_com.c cap = efa_com_reg_read32(edev, EFA_REGS_CAPS_OFF); cap 781 drivers/infiniband/hw/efa/efa_com.c timeout = (cap & EFA_REGS_CAPS_ADMIN_CMD_TO_MASK) >> cap 1049 drivers/infiniband/hw/efa/efa_com.c u32 stat, timeout, cap, reset_val; cap 1053 drivers/infiniband/hw/efa/efa_com.c cap = efa_com_reg_read32(edev, EFA_REGS_CAPS_OFF); cap 1061 drivers/infiniband/hw/efa/efa_com.c timeout = (cap & EFA_REGS_CAPS_RESET_TIMEOUT_MASK) >> cap 1092 drivers/infiniband/hw/efa/efa_com.c timeout = (cap & EFA_REGS_CAPS_ADMIN_CMD_TO_MASK) >> cap 384 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_send_wr = qp->max_send_wr; cap 385 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_recv_wr = qp->max_recv_wr; cap 386 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_send_sge = qp->max_send_sge; cap 387 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_recv_sge = qp->max_recv_sge; cap 388 drivers/infiniband/hw/efa/efa_verbs.c qp_attr->cap.max_inline_data = qp->max_inline_data; cap 394 drivers/infiniband/hw/efa/efa_verbs.c qp_init_attr->cap = qp_attr->cap; cap 568 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_send_wr > dev->dev_attr.max_sq_depth) { cap 571 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_send_wr, cap 575 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_recv_wr > dev->dev_attr.max_rq_depth) { cap 578 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_recv_wr, cap 582 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_send_sge > dev->dev_attr.max_sq_sge) { cap 585 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_send_sge, dev->dev_attr.max_sq_sge); cap 588 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_recv_sge > dev->dev_attr.max_rq_sge) { cap 591 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_recv_sge, dev->dev_attr.max_rq_sge); cap 594 drivers/infiniband/hw/efa/efa_verbs.c if (init_attr->cap.max_inline_data > dev->dev_attr.inline_buf_size) { cap 597 drivers/infiniband/hw/efa/efa_verbs.c init_attr->cap.max_inline_data, cap 709 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.sq_depth = init_attr->cap.max_send_wr; cap 712 drivers/infiniband/hw/efa/efa_verbs.c create_qp_params.rq_depth = init_attr->cap.max_recv_wr; cap 749 drivers/infiniband/hw/efa/efa_verbs.c qp->max_send_wr = init_attr->cap.max_send_wr; cap 750 drivers/infiniband/hw/efa/efa_verbs.c qp->max_recv_wr = init_attr->cap.max_recv_wr; cap 751 drivers/infiniband/hw/efa/efa_verbs.c qp->max_send_sge = init_attr->cap.max_send_sge; cap 752 drivers/infiniband/hw/efa/efa_verbs.c qp->max_recv_sge = init_attr->cap.max_recv_sge; cap 753 drivers/infiniband/hw/efa/efa_verbs.c qp->max_inline_data = init_attr->cap.max_inline_data; cap 7226 drivers/infiniband/hw/hfi1/chip.c static int cap_to_port_ltp(int cap) cap 7230 drivers/infiniband/hw/hfi1/chip.c if (cap & CAP_CRC_14B) cap 7232 drivers/infiniband/hw/hfi1/chip.c if (cap & CAP_CRC_48B) cap 7234 drivers/infiniband/hw/hfi1/chip.c if (cap & CAP_CRC_12B_16B_PER_LANE) cap 94 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_KSET(cap) ({ hfi1_cap_mask |= HFI1_CAP_##cap; hfi1_cap_mask; }) cap 95 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_KCLEAR(cap) \ cap 97 drivers/infiniband/hw/hfi1/common.h hfi1_cap_mask &= ~HFI1_CAP_##cap; \ cap 100 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_USET(cap) \ cap 102 drivers/infiniband/hw/hfi1/common.h hfi1_cap_mask |= (HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \ cap 105 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_UCLEAR(cap) \ cap 107 drivers/infiniband/hw/hfi1/common.h hfi1_cap_mask &= ~(HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT); \ cap 110 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_SET(cap) \ cap 112 drivers/infiniband/hw/hfi1/common.h hfi1_cap_mask |= (HFI1_CAP_##cap | (HFI1_CAP_##cap << \ cap 116 drivers/infiniband/hw/hfi1/common.h #define HFI1_CAP_CLEAR(cap) \ cap 118 drivers/infiniband/hw/hfi1/common.h hfi1_cap_mask &= ~(HFI1_CAP_##cap | \ cap 119 drivers/infiniband/hw/hfi1/common.h (HFI1_CAP_##cap << HFI1_CAP_USER_SHIFT)); \ cap 105 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_KGET_MASK(mask, cap) ((mask) & HFI1_CAP_##cap) cap 106 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_UGET_MASK(mask, cap) \ cap 107 drivers/infiniband/hw/hfi1/hfi.h (((mask) >> HFI1_CAP_USER_SHIFT) & HFI1_CAP_##cap) cap 108 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_KGET(cap) (HFI1_CAP_KGET_MASK(hfi1_cap_mask, cap)) cap 109 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_UGET(cap) (HFI1_CAP_UGET_MASK(hfi1_cap_mask, cap)) cap 110 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_IS_KSET(cap) (!!HFI1_CAP_KGET(cap)) cap 111 drivers/infiniband/hw/hfi1/hfi.h #define HFI1_CAP_IS_USET(cap) (!!HFI1_CAP_UGET(cap)) cap 912 drivers/infiniband/hw/hfi1/mad.c pi->vl.cap = ppd->vls_supported; cap 686 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.cap.max_recv_wr = HNS_ROCE_MIN_WQE_NUM; cap 687 drivers/infiniband/hw/hns/hns_roce_hw_v1.c init_attr.cap.max_send_wr = HNS_ROCE_MIN_WQE_NUM; cap 3436 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; cap 3437 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; cap 3438 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; cap 3439 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; cap 3440 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_inline_data = 0; cap 3441 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_init_attr->cap = qp_attr->cap; cap 3572 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; cap 3573 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; cap 3576 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; cap 3577 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; cap 3579 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_wr = 0; cap 3580 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_attr->cap.max_send_sge = 0; cap 3583 drivers/infiniband/hw/hns/hns_roce_hw_v1.c qp_init_attr->cap = qp_attr->cap; cap 4631 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; cap 4632 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; cap 4635 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; cap 4636 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; cap 4638 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_wr = 0; cap 4639 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_attr->cap.max_send_sge = 0; cap 4642 drivers/infiniband/hw/hns/hns_roce_hw_v2.c qp_init_attr->cap = qp_attr->cap; cap 272 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_cap *cap, bool is_user, int has_rq, cap 279 drivers/infiniband/hw/hns/hns_roce_qp.c if (cap->max_recv_wr > hr_dev->caps.max_wqes || cap 280 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_sge > hr_dev->caps.max_rq_sg) { cap 282 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_wr, cap->max_recv_sge); cap 290 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_wr = 0; cap 291 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_sge = 0; cap 293 drivers/infiniband/hw/hns/hns_roce_qp.c if (is_user && (!cap->max_recv_wr || !cap->max_recv_sge)) { cap 299 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = max(cap->max_recv_wr, hr_dev->caps.min_wqes); cap 301 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = cap->max_recv_wr; cap 310 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = max(1U, cap->max_recv_sge); cap 321 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_wr = hr_qp->rq.max_post = hr_qp->rq.wqe_cnt; cap 322 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_recv_sge = hr_qp->rq.max_gs; cap 328 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_cap *cap, cap 341 drivers/infiniband/hw/hns/hns_roce_qp.c if (cap->max_send_sge > hr_dev->caps.max_sq_sg) { cap 343 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_send_sge); cap 351 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_cap *cap, cap 364 drivers/infiniband/hw/hns/hns_roce_qp.c ret = check_sq_size_with_integrity(hr_dev, cap, ucmd); cap 372 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = max(1U, cap->max_send_sge); cap 551 drivers/infiniband/hw/hns/hns_roce_qp.c struct ib_qp_cap *cap, cap 560 drivers/infiniband/hw/hns/hns_roce_qp.c if (cap->max_send_wr > hr_dev->caps.max_wqes || cap 561 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_send_sge > hr_dev->caps.max_sq_sg || cap 562 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_inline_data > hr_dev->caps.max_sq_inline) { cap 570 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = max(cap->max_send_wr, hr_dev->caps.min_wqes); cap 572 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = cap->max_send_wr; cap 581 drivers/infiniband/hw/hns/hns_roce_qp.c max_cnt = max(1U, cap->max_send_sge); cap 613 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_send_wr = hr_qp->sq.max_post = hr_qp->sq.wqe_cnt; cap 614 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_send_sge = hr_qp->sq.max_gs; cap 617 drivers/infiniband/hw/hns/hns_roce_qp.c cap->max_inline_data = 0; cap 624 drivers/infiniband/hw/hns/hns_roce_qp.c if (attr->qp_type == IB_QPT_XRC_TGT || !attr->cap.max_send_wr) cap 634 drivers/infiniband/hw/hns/hns_roce_qp.c !attr->cap.max_recv_wr) cap 643 drivers/infiniband/hw/hns/hns_roce_qp.c u32 max_recv_sge = init_attr->cap.max_recv_sge; cap 716 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_rq_size(hr_dev, &init_attr->cap, udata, cap 740 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_user_sq_size(hr_dev, &init_attr->cap, hr_qp, cap 823 drivers/infiniband/hw/hns/hns_roce_qp.c ret = hns_roce_set_kernel_sq_size(hr_dev, &init_attr->cap, cap 551 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_inline_data > I40IW_MAX_INLINE_DATA_SIZE) cap 552 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; cap 554 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_send_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) cap 555 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; cap 557 drivers/infiniband/hw/i40iw/i40iw_verbs.c if (init_attr->cap.max_recv_sge > I40IW_MAX_WQ_FRAGMENT_COUNT) cap 558 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; cap 562 drivers/infiniband/hw/i40iw/i40iw_verbs.c sq_size = init_attr->cap.max_send_wr; cap 563 drivers/infiniband/hw/i40iw/i40iw_verbs.c rq_size = init_attr->cap.max_recv_wr; cap 568 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_sq_frag_cnt = init_attr->cap.max_send_sge; cap 569 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_rq_frag_cnt = init_attr->cap.max_recv_sge; cap 570 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_info.qp_uk_init_info.max_inline_data = init_attr->cap.max_inline_data; cap 767 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_send_wr = qp->qp_uk.sq_size; cap 768 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_recv_wr = qp->qp_uk.rq_size; cap 769 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_inline_data = I40IW_MAX_INLINE_DATA_SIZE; cap 770 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_send_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; cap 771 drivers/infiniband/hw/i40iw/i40iw_verbs.c attr->cap.max_recv_sge = I40IW_MAX_WQ_FRAGMENT_COUNT; cap 778 drivers/infiniband/hw/i40iw/i40iw_verbs.c init_attr->cap = attr->cap; cap 1814 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_send_wr = MLX4_NUM_TUNNEL_BUFS; cap 1815 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_recv_wr = MLX4_NUM_TUNNEL_BUFS; cap 1816 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_send_sge = 1; cap 1817 drivers/infiniband/hw/mlx4/mad.c qp_init_attr.init_attr.cap.max_recv_sge = 1; cap 327 drivers/infiniband/hw/mlx4/qp.c static int set_rq_size(struct mlx4_ib_dev *dev, struct ib_qp_cap *cap, cap 332 drivers/infiniband/hw/mlx4/qp.c if (cap->max_recv_wr > dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE || cap 333 drivers/infiniband/hw/mlx4/qp.c cap->max_recv_sge > min(dev->dev->caps.max_sq_sg, dev->dev->caps.max_rq_sg)) cap 337 drivers/infiniband/hw/mlx4/qp.c if (cap->max_recv_wr || inl_recv_sz) cap 347 drivers/infiniband/hw/mlx4/qp.c if (is_user && (!cap->max_recv_wr || !cap->max_recv_sge || cap 351 drivers/infiniband/hw/mlx4/qp.c qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, cap->max_recv_wr)); cap 352 drivers/infiniband/hw/mlx4/qp.c qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); cap 359 drivers/infiniband/hw/mlx4/qp.c cap->max_recv_wr = qp->rq.max_post = qp->rq.wqe_cnt; cap 360 drivers/infiniband/hw/mlx4/qp.c cap->max_recv_sge = qp->rq.max_gs; cap 362 drivers/infiniband/hw/mlx4/qp.c cap->max_recv_wr = qp->rq.max_post = cap 364 drivers/infiniband/hw/mlx4/qp.c cap->max_recv_sge = min(qp->rq.max_gs, cap 372 drivers/infiniband/hw/mlx4/qp.c static int set_kernel_sq_size(struct mlx4_ib_dev *dev, struct ib_qp_cap *cap, cap 378 drivers/infiniband/hw/mlx4/qp.c if (cap->max_send_wr > (dev->dev->caps.max_wqes - MLX4_IB_SQ_MAX_SPARE) || cap 379 drivers/infiniband/hw/mlx4/qp.c cap->max_send_sge > min(dev->dev->caps.max_sq_sg, dev->dev->caps.max_rq_sg) || cap 380 drivers/infiniband/hw/mlx4/qp.c cap->max_inline_data + send_wqe_overhead(type, qp->flags) + cap 390 drivers/infiniband/hw/mlx4/qp.c cap->max_send_sge + 2 > dev->dev->caps.max_sq_sg) cap 393 drivers/infiniband/hw/mlx4/qp.c s = max(cap->max_send_sge * sizeof (struct mlx4_wqe_data_seg), cap 394 drivers/infiniband/hw/mlx4/qp.c cap->max_inline_data + sizeof (struct mlx4_wqe_inline_seg)) + cap 407 drivers/infiniband/hw/mlx4/qp.c qp->sq.wqe_cnt = roundup_pow_of_two(cap->max_send_wr + cap 426 drivers/infiniband/hw/mlx4/qp.c cap->max_send_wr = qp->sq.max_post = cap 428 drivers/infiniband/hw/mlx4/qp.c cap->max_send_sge = min(qp->sq.max_gs, cap 432 drivers/infiniband/hw/mlx4/qp.c cap->max_inline_data = 0; cap 752 drivers/infiniband/hw/mlx4/qp.c if (init_attr->send_cq || init_attr->cap.max_send_wr) { cap 909 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, true, true, qp, qp->inl_recv_sz); cap 1022 drivers/infiniband/hw/mlx4/qp.c init_attr->cap.max_recv_sge++; cap 1102 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, cap 1138 drivers/infiniband/hw/mlx4/qp.c err = set_rq_size(dev, &init_attr->cap, udata, cap 1156 drivers/infiniband/hw/mlx4/qp.c err = set_kernel_sq_size(dev, &init_attr->cap, qp_type, qp); cap 1208 drivers/infiniband/hw/mlx4/qp.c (init_attr->cap.max_send_wr ? cap 1210 drivers/infiniband/hw/mlx4/qp.c (init_attr->cap.max_recv_wr ? cap 4091 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; cap 4092 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; cap 4095 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_wr = qp->sq.wqe_cnt; cap 4096 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; cap 4098 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_wr = 0; cap 4099 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_send_sge = 0; cap 4106 drivers/infiniband/hw/mlx4/qp.c qp_attr->cap.max_inline_data = 0; cap 4108 drivers/infiniband/hw/mlx4/qp.c qp_init_attr->cap = qp_attr->cap; cap 4180 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.cap.max_recv_wr = init_attr->max_wr; cap 4181 drivers/infiniband/hw/mlx4/qp.c ib_qp_init_attr.cap.max_recv_sge = init_attr->max_sge; cap 136 drivers/infiniband/hw/mlx5/devx.c u32 cap = 0; cap 145 drivers/infiniband/hw/mlx5/devx.c cap |= MLX5_UCTX_CAP_RAW_TX; cap 149 drivers/infiniband/hw/mlx5/devx.c cap |= MLX5_UCTX_CAP_INTERNAL_DEV_RES; cap 152 drivers/infiniband/hw/mlx5/devx.c MLX5_SET(uctx, uctx, cap, cap); cap 46 drivers/infiniband/hw/mlx5/gsi.c struct ib_qp_cap cap; cap 81 drivers/infiniband/hw/mlx5/gsi.c wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; cap 145 drivers/infiniband/hw/mlx5/gsi.c gsi->outstanding_wrs = kcalloc(init_attr->cap.max_send_wr, cap 166 drivers/infiniband/hw/mlx5/gsi.c gsi->cap = init_attr->cap; cap 171 drivers/infiniband/hw/mlx5/gsi.c gsi->cq = ib_alloc_cq(pd->device, gsi, init_attr->cap.max_send_wr, 0, cap 183 drivers/infiniband/hw/mlx5/gsi.c hw_init_attr.cap.max_send_wr = 0; cap 184 drivers/infiniband/hw/mlx5/gsi.c hw_init_attr.cap.max_send_sge = 0; cap 185 drivers/infiniband/hw/mlx5/gsi.c hw_init_attr.cap.max_inline_data = 0; cap 259 drivers/infiniband/hw/mlx5/gsi.c .cap = { cap 260 drivers/infiniband/hw/mlx5/gsi.c .max_send_wr = gsi->cap.max_send_wr, cap 261 drivers/infiniband/hw/mlx5/gsi.c .max_send_sge = gsi->cap.max_send_sge, cap 262 drivers/infiniband/hw/mlx5/gsi.c .max_inline_data = gsi->cap.max_inline_data, cap 407 drivers/infiniband/hw/mlx5/gsi.c qp_init_attr->cap = gsi->cap; cap 420 drivers/infiniband/hw/mlx5/gsi.c if (gsi->outstanding_pi == gsi->outstanding_ci + gsi->cap.max_send_wr) { cap 426 drivers/infiniband/hw/mlx5/gsi.c gsi->cap.max_send_wr]; cap 4837 drivers/infiniband/hw/mlx5/main.c init_attr->cap.max_send_wr = MAX_UMR_WR; cap 4838 drivers/infiniband/hw/mlx5/main.c init_attr->cap.max_send_sge = 1; cap 330 drivers/infiniband/hw/mlx5/qp.c static int set_rq_size(struct mlx5_ib_dev *dev, struct ib_qp_cap *cap, cap 337 drivers/infiniband/hw/mlx5/qp.c if (cap->max_recv_wr > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) cap 344 drivers/infiniband/hw/mlx5/qp.c cap->max_recv_wr = 0; cap 345 drivers/infiniband/hw/mlx5/qp.c cap->max_recv_sge = 0; cap 358 drivers/infiniband/hw/mlx5/qp.c wqe_size += cap->max_recv_sge * sizeof(struct mlx5_wqe_data_seg); cap 360 drivers/infiniband/hw/mlx5/qp.c wq_size = roundup_pow_of_two(cap->max_recv_wr) * wqe_size; cap 440 drivers/infiniband/hw/mlx5/qp.c if (attr->cap.max_inline_data) { cap 442 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_inline_data; cap 445 drivers/infiniband/hw/mlx5/qp.c size += attr->cap.max_send_sge * sizeof(struct mlx5_wqe_data_seg); cap 482 drivers/infiniband/hw/mlx5/qp.c if (!attr->cap.max_send_wr) cap 498 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_inline_data = qp->max_inline_data; cap 500 drivers/infiniband/hw/mlx5/qp.c wq_size = roundup_pow_of_two(attr->cap.max_send_wr * wqe_size); cap 504 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_wr, wqe_size, MLX5_SEND_WQE_BB, cap 511 drivers/infiniband/hw/mlx5/qp.c if (qp->sq.max_gs < attr->cap.max_send_sge) cap 514 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_sge = qp->sq.max_gs; cap 516 drivers/infiniband/hw/mlx5/qp.c attr->cap.max_send_wr = qp->sq.max_post; cap 567 drivers/infiniband/hw/mlx5/qp.c !attr->cap.max_recv_wr) cap 2120 drivers/infiniband/hw/mlx5/qp.c err = set_rq_size(dev, &init_attr->cap, qp->has_rq, cap 2673 drivers/infiniband/hw/mlx5/qp.c if (init_attr->cap.max_recv_wr || cap 2674 drivers/infiniband/hw/mlx5/qp.c init_attr->cap.max_recv_sge) { cap 5797 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; cap 5798 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; cap 5801 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_wr = qp->sq.max_post; cap 5802 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; cap 5805 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_wr = 0; cap 5806 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_send_sge = 0; cap 5813 drivers/infiniband/hw/mlx5/qp.c qp_attr->cap.max_inline_data = qp->max_inline_data; cap 5815 drivers/infiniband/hw/mlx5/qp.c qp_init_attr->cap = qp_attr->cap; cap 550 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_qp_cap *cap, cap 558 drivers/infiniband/hw/mthca/mthca_dev.h struct ib_qp_cap *cap, cap 525 drivers/infiniband/hw/mthca/mthca_provider.c &init_attr->cap, qp, udata); cap 557 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->sq_sig_type, &init_attr->cap, cap 572 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_send_wr = qp->sq.max; cap 573 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_recv_wr = qp->rq.max; cap 574 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_send_sge = qp->sq.max_gs; cap 575 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_recv_sge = qp->rq.max_gs; cap 576 drivers/infiniband/hw/mthca/mthca_provider.c init_attr->cap.max_inline_data = qp->max_inline_data; cap 505 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_send_wr = qp->sq.max; cap 506 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_recv_wr = qp->rq.max; cap 507 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_send_sge = qp->sq.max_gs; cap 508 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_recv_sge = qp->rq.max_gs; cap 509 drivers/infiniband/hw/mthca/mthca_qp.c qp_attr->cap.max_inline_data = qp->max_inline_data; cap 511 drivers/infiniband/hw/mthca/mthca_qp.c qp_init_attr->cap = qp_attr->cap; cap 1249 drivers/infiniband/hw/mthca/mthca_qp.c static int mthca_set_qp_size(struct mthca_dev *dev, struct ib_qp_cap *cap, cap 1255 drivers/infiniband/hw/mthca/mthca_qp.c if (cap->max_send_wr > dev->limits.max_wqes || cap 1256 drivers/infiniband/hw/mthca/mthca_qp.c cap->max_recv_wr > dev->limits.max_wqes || cap 1257 drivers/infiniband/hw/mthca/mthca_qp.c cap->max_send_sge > dev->limits.max_sg || cap 1258 drivers/infiniband/hw/mthca/mthca_qp.c cap->max_recv_sge > dev->limits.max_sg || cap 1259 drivers/infiniband/hw/mthca/mthca_qp.c cap->max_inline_data > mthca_max_inline_data(pd, max_data_size)) cap 1266 drivers/infiniband/hw/mthca/mthca_qp.c if (qp->transport == MLX && cap->max_send_sge + 2 > dev->limits.max_sg) cap 1270 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.max = cap->max_recv_wr ? cap 1271 drivers/infiniband/hw/mthca/mthca_qp.c roundup_pow_of_two(cap->max_recv_wr) : 0; cap 1272 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.max = cap->max_send_wr ? cap 1273 drivers/infiniband/hw/mthca/mthca_qp.c roundup_pow_of_two(cap->max_send_wr) : 0; cap 1275 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.max = cap->max_recv_wr; cap 1276 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.max = cap->max_send_wr; cap 1279 drivers/infiniband/hw/mthca/mthca_qp.c qp->rq.max_gs = cap->max_recv_sge; cap 1280 drivers/infiniband/hw/mthca/mthca_qp.c qp->sq.max_gs = max_t(int, cap->max_send_sge, cap 1281 drivers/infiniband/hw/mthca/mthca_qp.c ALIGN(cap->max_inline_data + MTHCA_INLINE_HEADER_SIZE, cap 1294 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_qp_cap *cap, cap 1307 drivers/infiniband/hw/mthca/mthca_qp.c err = mthca_set_qp_size(dev, cap, pd, qp); cap 1368 drivers/infiniband/hw/mthca/mthca_qp.c struct ib_qp_cap *cap, cap 1378 drivers/infiniband/hw/mthca/mthca_qp.c err = mthca_set_qp_size(dev, cap, pd, &sqp->qp); cap 2192 drivers/infiniband/hw/ocrdma/ocrdma_hw.c u32 max_sges = attrs->cap.max_send_sge; cap 2195 drivers/infiniband/hw/ocrdma/ocrdma_hw.c max_wqe_allocated = min_t(u32, attrs->cap.max_send_wr + 1, cap 2246 drivers/infiniband/hw/ocrdma/ocrdma_hw.c u32 max_rqe_allocated = attrs->cap.max_recv_wr + 1; cap 2252 drivers/infiniband/hw/ocrdma/ocrdma_hw.c attrs->cap.max_recv_wr + 1); cap 2271 drivers/infiniband/hw/ocrdma/ocrdma_hw.c cmd->max_sge_recv_flags |= (attrs->cap.max_recv_sge << cap 2440 drivers/infiniband/hw/ocrdma/ocrdma_hw.c if (pd->dpp_enabled && attrs->cap.max_inline_data && pd->num_dpp_qp && cap 2441 drivers/infiniband/hw/ocrdma/ocrdma_hw.c (attrs->cap.max_inline_data <= dev->attr.max_inline_data)) { cap 1124 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c (attrs->cap.max_send_wr > dev->attr.max_wqe)) { cap 1126 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attrs->cap.max_send_wr); cap 1131 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (!attrs->srq && (attrs->cap.max_recv_wr > dev->attr.max_rqe)) { cap 1133 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attrs->cap.max_recv_wr); cap 1138 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_inline_data > dev->attr.max_inline_data) { cap 1140 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attrs->cap.max_inline_data); cap 1145 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_send_sge > dev->attr.max_send_sge) { cap 1147 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attrs->cap.max_send_sge); cap 1152 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c if (attrs->cap.max_recv_sge > dev->attr.max_recv_sge) { cap 1154 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c __func__, dev->id, attrs->cap.max_recv_sge); cap 1289 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->max_inline_data = attrs->cap.max_inline_data; cap 1290 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->sq.max_sges = attrs->cap.max_send_sge; cap 1291 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp->rq.max_sges = attrs->cap.max_recv_sge; cap 1497 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_send_wr = qp->sq.max_cnt - 1; cap 1498 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_recv_wr = qp->rq.max_cnt - 1; cap 1499 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_send_sge = qp->sq.max_sges; cap 1500 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_recv_sge = qp->rq.max_sges; cap 1501 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_attr->cap.max_inline_data = qp->max_inline_data; cap 1502 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c qp_init_attr->cap = qp_attr->cap; cap 156 drivers/infiniband/hw/qedr/qedr_roce_cm.c if (attrs->cap.max_recv_sge > QEDR_GSI_MAX_RECV_SGE) { cap 159 drivers/infiniband/hw/qedr/qedr_roce_cm.c attrs->cap.max_recv_sge, QEDR_GSI_MAX_RECV_SGE); cap 163 drivers/infiniband/hw/qedr/qedr_roce_cm.c if (attrs->cap.max_recv_wr > QEDR_GSI_MAX_RECV_WR) { cap 166 drivers/infiniband/hw/qedr/qedr_roce_cm.c attrs->cap.max_recv_wr, QEDR_GSI_MAX_RECV_WR); cap 170 drivers/infiniband/hw/qedr/qedr_roce_cm.c if (attrs->cap.max_send_wr > QEDR_GSI_MAX_SEND_WR) { cap 173 drivers/infiniband/hw/qedr/qedr_roce_cm.c attrs->cap.max_send_wr, QEDR_GSI_MAX_SEND_WR); cap 279 drivers/infiniband/hw/qedr/qedr_roce_cm.c data.input.rx_num_desc = attrs->cap.max_recv_wr; cap 282 drivers/infiniband/hw/qedr/qedr_roce_cm.c data.input.tx_num_desc = attrs->cap.max_send_wr; cap 340 drivers/infiniband/hw/qedr/qedr_roce_cm.c qp->rq.max_wr = attrs->cap.max_recv_wr; cap 341 drivers/infiniband/hw/qedr/qedr_roce_cm.c qp->sq.max_wr = attrs->cap.max_send_wr; cap 1085 drivers/infiniband/hw/qedr/verbs.c if (attrs->cap.max_send_wr > qattr->max_sqe) { cap 1088 drivers/infiniband/hw/qedr/verbs.c attrs->cap.max_send_wr, qattr->max_sqe); cap 1092 drivers/infiniband/hw/qedr/verbs.c if (attrs->cap.max_inline_data > qattr->max_inline) { cap 1095 drivers/infiniband/hw/qedr/verbs.c attrs->cap.max_inline_data, qattr->max_inline); cap 1099 drivers/infiniband/hw/qedr/verbs.c if (attrs->cap.max_send_sge > qattr->max_sge) { cap 1102 drivers/infiniband/hw/qedr/verbs.c attrs->cap.max_send_sge, qattr->max_sge); cap 1106 drivers/infiniband/hw/qedr/verbs.c if (attrs->cap.max_recv_sge > qattr->max_sge) { cap 1109 drivers/infiniband/hw/qedr/verbs.c attrs->cap.max_recv_sge, qattr->max_sge); cap 1203 drivers/infiniband/hw/qedr/verbs.c qp->max_inline_data = attrs->cap.max_inline_data; cap 1204 drivers/infiniband/hw/qedr/verbs.c qp->sq.max_sges = attrs->cap.max_send_sge; cap 1214 drivers/infiniband/hw/qedr/verbs.c qp->rq.max_sges = attrs->cap.max_recv_sge; cap 1833 drivers/infiniband/hw/qedr/verbs.c qp->sq.max_wr = min_t(u32, attrs->cap.max_send_wr * dev->wq_multiplier, cap 1851 drivers/infiniband/hw/qedr/verbs.c qp->rq.max_wr = (u16) max_t(u32, attrs->cap.max_recv_wr, 1); cap 1865 drivers/infiniband/hw/qedr/verbs.c n_sq_entries = attrs->cap.max_send_wr; cap 2404 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_send_wr = qp->sq.max_wr; cap 2405 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_recv_wr = qp->rq.max_wr; cap 2406 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_send_sge = qp->sq.max_sges; cap 2407 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_recv_sge = qp->rq.max_sges; cap 2408 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_inline_data = ROCE_REQ_MAX_INLINE_DATA_SIZE; cap 2409 drivers/infiniband/hw/qedr/verbs.c qp_init_attr->cap = qp_attr->cap; cap 2437 drivers/infiniband/hw/qedr/verbs.c qp_attr->cap.max_inline_data); cap 294 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c &init_attr->cap, qp); cap 299 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c &init_attr->cap, qp); cap 345 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->cap.max_inline_data = 0; cap 356 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_send_wr = init_attr->cap.max_send_wr; cap 357 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_recv_wr = init_attr->cap.max_recv_wr; cap 358 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_send_sge = init_attr->cap.max_send_sge; cap 359 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_recv_sge = init_attr->cap.max_recv_sge; cap 360 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c cmd->max_inline_data = init_attr->cap.max_inline_data; cap 558 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c ib_qp_cap_to_pvrdma(&cmd->attrs.cap, &attr->cap); cap 976 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c pvrdma_qp_cap_to_ib(&attr->cap, &resp->attrs.cap); cap 993 drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c init_attr->cap = attr->cap; cap 358 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h struct pvrdma_qp_cap cap; cap 1081 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_send_sge > rdi->dparms.props.max_send_sge || cap 1082 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr > rdi->dparms.props.max_qp_wr || cap 1088 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_recv_sge > cap 1090 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_wr > rdi->dparms.props.max_qp_wr) cap 1093 drivers/infiniband/sw/rdmavt/qp.c if (init_attr->cap.max_send_sge + cap 1094 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr + cap 1095 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_sge + cap 1096 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_recv_wr == 0) cap 1100 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_send_wr + 1 + cap 1112 drivers/infiniband/sw/rdmavt/qp.c sz = struct_size(swq, sg_list, init_attr->cap.max_send_sge); cap 1125 drivers/infiniband/sw/rdmavt/qp.c } else if (init_attr->cap.max_recv_sge > 1) cap 1127 drivers/infiniband/sw/rdmavt/qp.c (init_attr->cap.max_recv_sge - 1); cap 1166 drivers/infiniband/sw/rdmavt/qp.c qp->r_rq.size = init_attr->cap.max_recv_wr + 1; cap 1167 drivers/infiniband/sw/rdmavt/qp.c qp->r_rq.max_sge = init_attr->cap.max_recv_sge; cap 1192 drivers/infiniband/sw/rdmavt/qp.c qp->s_avail = init_attr->cap.max_send_wr; cap 1193 drivers/infiniband/sw/rdmavt/qp.c qp->s_max_sge = init_attr->cap.max_send_sge; cap 1226 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap.max_inline_data = 0; cap 1773 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_send_wr = qp->s_size - 1 - cap 1775 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; cap 1776 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_send_sge = qp->s_max_sge; cap 1777 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_recv_sge = qp->r_rq.max_sge; cap 1778 drivers/infiniband/sw/rdmavt/qp.c attr->cap.max_inline_data = 0; cap 1801 drivers/infiniband/sw/rdmavt/qp.c init_attr->cap = attr->cap; cap 45 drivers/infiniband/sw/rxe/rxe_qp.c static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap, cap 48 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_send_wr > rxe->attr.max_qp_wr) { cap 50 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_send_wr, rxe->attr.max_qp_wr); cap 54 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_send_sge > rxe->attr.max_send_sge) { cap 56 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_send_sge, rxe->attr.max_send_sge); cap 61 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_recv_wr > rxe->attr.max_qp_wr) { cap 63 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_recv_wr, rxe->attr.max_qp_wr); cap 67 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_recv_sge > rxe->attr.max_recv_sge) { cap 69 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_recv_sge, rxe->attr.max_recv_sge); cap 74 drivers/infiniband/sw/rxe/rxe_qp.c if (cap->max_inline_data > rxe->max_inline_data) { cap 76 drivers/infiniband/sw/rxe/rxe_qp.c cap->max_inline_data, rxe->max_inline_data); cap 88 drivers/infiniband/sw/rxe/rxe_qp.c struct ib_qp_cap *cap = &init->cap; cap 97 drivers/infiniband/sw/rxe/rxe_qp.c if (rxe_qp_chk_cap(rxe, cap, !!init->srq)) cap 241 drivers/infiniband/sw/rxe/rxe_qp.c qp->sq.max_wr = init->cap.max_send_wr; cap 242 drivers/infiniband/sw/rxe/rxe_qp.c qp->sq.max_sge = init->cap.max_send_sge; cap 243 drivers/infiniband/sw/rxe/rxe_qp.c qp->sq.max_inline = init->cap.max_inline_data; cap 296 drivers/infiniband/sw/rxe/rxe_qp.c qp->rq.max_wr = init->cap.max_recv_wr; cap 297 drivers/infiniband/sw/rxe/rxe_qp.c qp->rq.max_sge = init->cap.max_recv_sge; cap 394 drivers/infiniband/sw/rxe/rxe_qp.c init->cap.max_send_wr = qp->sq.max_wr; cap 395 drivers/infiniband/sw/rxe/rxe_qp.c init->cap.max_send_sge = qp->sq.max_sge; cap 396 drivers/infiniband/sw/rxe/rxe_qp.c init->cap.max_inline_data = qp->sq.max_inline; cap 399 drivers/infiniband/sw/rxe/rxe_qp.c init->cap.max_recv_wr = qp->rq.max_wr; cap 400 drivers/infiniband/sw/rxe/rxe_qp.c init->cap.max_recv_sge = qp->rq.max_sge; cap 442 drivers/infiniband/sw/rxe/rxe_qp.c if (mask & IB_QP_CAP && rxe_qp_chk_cap(rxe, &attr->cap, !!qp->srq)) cap 753 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_send_wr = qp->sq.max_wr; cap 754 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_send_sge = qp->sq.max_sge; cap 755 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_inline_data = qp->sq.max_inline; cap 758 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_recv_wr = qp->rq.max_wr; cap 759 drivers/infiniband/sw/rxe/rxe_qp.c attr->cap.max_recv_sge = qp->rq.max_sge; cap 333 drivers/infiniband/sw/siw/siw_verbs.c if ((attrs->cap.max_send_wr > SIW_MAX_QP_WR) || cap 334 drivers/infiniband/sw/siw/siw_verbs.c (attrs->cap.max_recv_wr > SIW_MAX_QP_WR) || cap 335 drivers/infiniband/sw/siw/siw_verbs.c (attrs->cap.max_send_sge > SIW_MAX_SGE) || cap 336 drivers/infiniband/sw/siw/siw_verbs.c (attrs->cap.max_recv_sge > SIW_MAX_SGE)) { cap 341 drivers/infiniband/sw/siw/siw_verbs.c if (attrs->cap.max_inline_data > SIW_MAX_INLINE) { cap 343 drivers/infiniband/sw/siw/siw_verbs.c attrs->cap.max_inline_data, (int)SIW_MAX_INLINE); cap 351 drivers/infiniband/sw/siw/siw_verbs.c if (attrs->cap.max_send_wr + attrs->cap.max_recv_wr == 0) { cap 395 drivers/infiniband/sw/siw/siw_verbs.c num_sqe = roundup_pow_of_two(attrs->cap.max_send_wr); cap 396 drivers/infiniband/sw/siw/siw_verbs.c num_rqe = roundup_pow_of_two(attrs->cap.max_recv_wr); cap 444 drivers/infiniband/sw/siw/siw_verbs.c qp->attrs.sq_max_sges = attrs->cap.max_send_sge; cap 445 drivers/infiniband/sw/siw/siw_verbs.c qp->attrs.rq_max_sges = attrs->cap.max_recv_sge; cap 535 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_inline_data = SIW_MAX_INLINE; cap 536 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_send_wr = qp->attrs.sq_size; cap 537 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_send_sge = qp->attrs.sq_max_sges; cap 538 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_recv_wr = qp->attrs.rq_size; cap 539 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->cap.max_recv_sge = qp->attrs.rq_max_sges; cap 553 drivers/infiniband/sw/siw/siw_verbs.c qp_init_attr->cap = qp_attr->cap; cap 258 drivers/infiniband/ulp/ipoib/ipoib_cm.c .cap.max_send_wr = 1, /* For drain WR */ cap 259 drivers/infiniband/ulp/ipoib/ipoib_cm.c .cap.max_send_sge = 1, /* FIXME: 0 Seems not to work */ cap 266 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_recv_wr = ipoib_recvq_size; cap 267 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_recv_sge = IPOIB_CM_RX_SG; cap 1064 drivers/infiniband/ulp/ipoib/ipoib_cm.c .cap.max_send_wr = ipoib_sendq_size, cap 1065 drivers/infiniband/ulp/ipoib/ipoib_cm.c .cap.max_send_sge = 1, cap 1074 drivers/infiniband/ulp/ipoib/ipoib_cm.c attr.cap.max_send_sge = min_t(u32, priv->ca->attrs.max_send_sge, cap 1078 drivers/infiniband/ulp/ipoib/ipoib_cm.c tx->max_send_sge = attr.cap.max_send_sge; cap 147 drivers/infiniband/ulp/ipoib/ipoib_verbs.c .cap = { cap 233 drivers/infiniband/ulp/ipoib/ipoib_verbs.c if (init_attr.cap.max_send_sge > 1) cap 236 drivers/infiniband/ulp/ipoib/ipoib_verbs.c priv->max_send_sge = init_attr.cap.max_send_sge; cap 395 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_recv_wr = ISER_QP_MAX_RECV_DTOS; cap 396 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_sge = 2; cap 397 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_recv_sge = 1; cap 401 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ISER_QP_SIG_MAX_REQ_DTOS + 1; cap 407 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ISER_QP_MAX_REQ_DTOS + 1; cap 411 drivers/infiniband/ulp/iser/iser_verbs.c init_attr.cap.max_send_wr = ib_dev->attrs.max_qp_wr; cap 128 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_send_wr = ISERT_QP_MAX_REQ_DTOS + 1; cap 129 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_recv_wr = ISERT_QP_MAX_RECV_DTOS + 1; cap 130 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_rdma_ctxs = ISCSI_DEF_XMIT_CMDS_MAX; cap 131 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_send_sge = device->ib_device->attrs.max_send_sge; cap 132 drivers/infiniband/ulp/isert/ib_isert.c attr.cap.max_recv_sge = 1; cap 583 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_send_wr = m * target->queue_size; cap 584 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_recv_wr = target->queue_size + 1; cap 585 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_recv_sge = 1; cap 586 drivers/infiniband/ulp/srp/ib_srp.c init_attr->cap.max_send_sge = SRP_MAX_SGE; cap 1817 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_send_wr = min(sq_size / 2, attrs->max_qp_wr); cap 1818 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_rdma_ctxs = sq_size / 2; cap 1819 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_send_sge = min(attrs->max_send_sge, cap 1821 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_recv_sge = min(attrs->max_recv_sge, cap 1827 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_recv_wr = ch->rq_size; cap 1828 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_recv_sge = min(attrs->max_recv_sge, cap 1861 drivers/infiniband/ulp/srpt/ib_srpt.c atomic_set(&ch->sq_wr_avail, qp_init->cap.max_send_wr); cap 1864 drivers/infiniband/ulp/srpt/ib_srpt.c __func__, ch->cq->cqe, qp_init->cap.max_send_sge, cap 1865 drivers/infiniband/ulp/srpt/ib_srpt.c qp_init->cap.max_send_wr, ch); cap 327 drivers/input/keyboard/cap11xx.c const struct cap11xx_hw_model *cap; cap 337 drivers/input/keyboard/cap11xx.c cap = &cap11xx_devices[id->driver_data]; cap 338 drivers/input/keyboard/cap11xx.c if (!cap || !cap->num_channels) { cap 344 drivers/input/keyboard/cap11xx.c struct_size(priv, keycodes, cap->num_channels), cap 357 drivers/input/keyboard/cap11xx.c if (val != cap->product_id) { cap 359 drivers/input/keyboard/cap11xx.c val, cap->product_id); cap 395 drivers/input/keyboard/cap11xx.c for (i = 0; i < cap->num_channels; i++) cap 399 drivers/input/keyboard/cap11xx.c priv->keycodes, cap->num_channels); cap 423 drivers/input/keyboard/cap11xx.c for (i = 0; i < cap->num_channels; i++) cap 430 drivers/input/keyboard/cap11xx.c priv->idev->keycodemax = cap->num_channels; cap 433 drivers/input/keyboard/cap11xx.c priv->idev->id.product = cap->product_id; cap 439 drivers/input/keyboard/cap11xx.c error = cap11xx_init_leds(dev, priv, cap->num_leds); cap 370 drivers/input/rmi4/rmi_f54.c struct v4l2_capability *cap) cap 374 drivers/input/rmi4/rmi_f54.c strlcpy(cap->driver, F54_NAME, sizeof(cap->driver)); cap 375 drivers/input/rmi4/rmi_f54.c strlcpy(cap->card, SYNAPTICS_INPUT_DEVICE_NAME, sizeof(cap->card)); cap 376 drivers/input/rmi4/rmi_f54.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 2404 drivers/input/touchscreen/atmel_mxt_ts.c struct v4l2_capability *cap) cap 2408 drivers/input/touchscreen/atmel_mxt_ts.c strlcpy(cap->driver, "atmel_mxt_ts", sizeof(cap->driver)); cap 2409 drivers/input/touchscreen/atmel_mxt_ts.c strlcpy(cap->card, "atmel_mxt_ts touch", sizeof(cap->card)); cap 2410 drivers/input/touchscreen/atmel_mxt_ts.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 925 drivers/input/touchscreen/sur40.c struct v4l2_capability *cap) cap 929 drivers/input/touchscreen/sur40.c strlcpy(cap->driver, DRIVER_SHORT, sizeof(cap->driver)); cap 930 drivers/input/touchscreen/sur40.c strlcpy(cap->card, DRIVER_LONG, sizeof(cap->card)); cap 931 drivers/input/touchscreen/sur40.c usb_make_path(sur40->usbdev, cap->bus_info, sizeof(cap->bus_info)); cap 3160 drivers/iommu/amd_iommu.c static bool amd_iommu_capable(enum iommu_cap cap) cap 3162 drivers/iommu/amd_iommu.c switch (cap) { cap 1704 drivers/iommu/amd_iommu_init.c return sprintf(buf, "%x\n", iommu->cap); cap 1706 drivers/iommu/amd_iommu_init.c static DEVICE_ATTR(cap, S_IRUGO, amd_iommu_show_cap, NULL); cap 1748 drivers/iommu/amd_iommu_init.c &iommu->cap); cap 1754 drivers/iommu/amd_iommu_init.c if (!(iommu->cap & (1 << IOMMU_CAP_IOTLB))) cap 1798 drivers/iommu/amd_iommu_init.c if (iommu->cap & (1UL << IOMMU_CAP_NPCACHE)) cap 1856 drivers/iommu/amd_iommu_init.c if (iommu->cap & (1 << IOMMU_CAP_EFR)) { cap 78 drivers/iommu/amd_iommu_proto.h if (!(iommu->cap & (1 << IOMMU_CAP_EFR))) cap 511 drivers/iommu/amd_iommu_types.h u32 cap; cap 2063 drivers/iommu/arm-smmu-v3.c static bool arm_smmu_capable(enum iommu_cap cap) cap 2065 drivers/iommu/arm-smmu-v3.c switch (cap) { cap 1287 drivers/iommu/arm-smmu.c static bool arm_smmu_capable(enum iommu_cap cap) cap 1289 drivers/iommu/arm-smmu.c switch (cap) { cap 855 drivers/iommu/dmar.c u64 cap, ecap; cap 872 drivers/iommu/dmar.c cap = dmar_readq(addr + DMAR_CAP_REG); cap 880 drivers/iommu/dmar.c if (cap == (uint64_t)-1 && ecap == (uint64_t)-1) { cap 955 drivers/iommu/dmar.c iommu->cap = dmar_readq(iommu->reg + DMAR_CAP_REG); cap 958 drivers/iommu/dmar.c if (iommu->cap == (uint64_t)-1 && iommu->ecap == (uint64_t)-1) { cap 966 drivers/iommu/dmar.c cap_max_fault_reg_offset(iommu->cap)); cap 1071 drivers/iommu/dmar.c (unsigned long long)iommu->cap, cap 1342 drivers/iommu/dmar.c if (cap_write_drain(iommu->cap)) cap 1345 drivers/iommu/dmar.c if (cap_read_drain(iommu->cap)) cap 1728 drivers/iommu/dmar.c reg = cap_fault_reg_offset(iommu->cap); cap 1773 drivers/iommu/dmar.c if (fault_index >= cap_num_fault_regs(iommu->cap)) cap 391 drivers/iommu/fsl_pamu_domain.c static bool fsl_pamu_capable(enum iommu_cap cap) cap 393 drivers/iommu/fsl_pamu_domain.c return cap == IOMMU_CAP_CACHE_COHERENCY; cap 387 drivers/iommu/intel-iommu-debugfs.c if (!cap_pi_support(iommu->cap)) cap 568 drivers/iommu/intel-iommu.c sagaw = cap_sagaw(iommu->cap); cap 678 drivers/iommu/intel-iommu.c mask &= cap_super_page_val(iommu->cap); cap 1238 drivers/iommu/intel-iommu.c if (!rwbf_quirk && !cap_rwbf(iommu->cap)) cap 1315 drivers/iommu/intel-iommu.c if (cap_read_drain(iommu->cap)) cap 1318 drivers/iommu/intel-iommu.c if (cap_write_drain(iommu->cap)) cap 1505 drivers/iommu/intel-iommu.c if (!cap_pgsel_inv(iommu->cap) || mask > cap_max_amask_val(iommu->cap)) cap 1516 drivers/iommu/intel-iommu.c if (!cap_caching_mode(iommu->cap) || !map) cap 1526 drivers/iommu/intel-iommu.c if (cap_caching_mode(iommu->cap)) cap 1545 drivers/iommu/intel-iommu.c if (!cap_caching_mode(iommu->cap)) cap 1556 drivers/iommu/intel-iommu.c if (!cap_plmr(iommu->cap) && !cap_phmr(iommu->cap)) cap 1608 drivers/iommu/intel-iommu.c ndomains = cap_ndoms(iommu->cap); cap 1688 drivers/iommu/intel-iommu.c int elems = ALIGN(cap_ndoms(iommu->cap), 256) >> 8; cap 1742 drivers/iommu/intel-iommu.c ndomains = cap_ndoms(iommu->cap); cap 1864 drivers/iommu/intel-iommu.c if (guest_width > cap_mgaw(iommu->cap)) cap 1865 drivers/iommu/intel-iommu.c guest_width = cap_mgaw(iommu->cap); cap 1869 drivers/iommu/intel-iommu.c sagaw = cap_sagaw(iommu->cap); cap 1890 drivers/iommu/intel-iommu.c domain->iommu_superpage = fls(cap_super_page_val(iommu->cap)); cap 2019 drivers/iommu/intel-iommu.c if (did_old < cap_ndoms(iommu->cap)) { cap 2101 drivers/iommu/intel-iommu.c if (cap_caching_mode(iommu->cap)) { cap 3056 drivers/iommu/intel-iommu.c if (did >= 0 && did < cap_ndoms(iommu->cap)) cap 3521 drivers/iommu/intel-iommu.c !cap_zlr(iommu->cap)) cap 3746 drivers/iommu/intel-iommu.c !cap_zlr(iommu->cap)) cap 3839 drivers/iommu/intel-iommu.c !cap_zlr(iommu->cap)) cap 4455 drivers/iommu/intel-iommu.c if (sp >= 0 && !(cap_super_page_val(iommu->cap) & (1 << sp))) { cap 4729 drivers/iommu/intel-iommu.c for (did = 0; did < cap_ndoms(iommu->cap); did++) { cap 4786 drivers/iommu/intel-iommu.c return sprintf(buf, "%llx\n", iommu->cap); cap 4788 drivers/iommu/intel-iommu.c static DEVICE_ATTR(cap, S_IRUGO, intel_iommu_show_cap, NULL); cap 4804 drivers/iommu/intel-iommu.c return sprintf(buf, "%ld\n", cap_ndoms(iommu->cap)); cap 4814 drivers/iommu/intel-iommu.c cap_ndoms(iommu->cap))); cap 5353 drivers/iommu/intel-iommu.c if (addr_width > cap_mgaw(iommu->cap)) cap 5354 drivers/iommu/intel-iommu.c addr_width = cap_mgaw(iommu->cap); cap 5566 drivers/iommu/intel-iommu.c static bool intel_iommu_capable(enum iommu_cap cap) cap 5568 drivers/iommu/intel-iommu.c if (cap == IOMMU_CAP_CACHE_COHERENCY) cap 5570 drivers/iommu/intel-iommu.c if (cap == IOMMU_CAP_INTR_REMAP) cap 464 drivers/iommu/intel-pasid.c if (!cap_caching_mode(iommu->cap)) cap 504 drivers/iommu/intel-pasid.c if (cap_5lp_support(iommu->cap)) { cap 525 drivers/iommu/intel-pasid.c if (cap_caching_mode(iommu->cap)) { cap 598 drivers/iommu/intel-pasid.c if (cap_caching_mode(iommu->cap)) { cap 641 drivers/iommu/intel-pasid.c if (cap_caching_mode(iommu->cap)) { cap 29 drivers/iommu/intel-svm.c !cap_fl1gp_support(iommu->cap)) cap 33 drivers/iommu/intel-svm.c !cap_5lp_support(iommu->cap)) cap 319 drivers/iommu/intel-svm.c !!cap_caching_mode(iommu->cap), cap 795 drivers/iommu/intel_irq_remapping.c if (!cap_pi_support(iommu->cap)) { cap 1498 drivers/iommu/intel_irq_remapping.c !cap_pi_support(iommu->cap)) cap 1560 drivers/iommu/iommu.c bool iommu_capable(struct bus_type *bus, enum iommu_cap cap) cap 1565 drivers/iommu/iommu.c return bus->iommu_ops->capable(cap); cap 88 drivers/iommu/irq_remapping.c bool irq_remapping_cap(enum irq_remap_cap cap) cap 93 drivers/iommu/irq_remapping.c return (remap_ops->capability & (1 << cap)); cap 582 drivers/iommu/msm_iommu.c static bool msm_iommu_capable(enum iommu_cap cap) cap 500 drivers/iommu/qcom_iommu.c static bool qcom_iommu_capable(enum iommu_cap cap) cap 502 drivers/iommu/qcom_iommu.c switch (cap) { cap 42 drivers/iommu/s390-iommu.c static bool s390_iommu_capable(enum iommu_cap cap) cap 44 drivers/iommu/s390-iommu.c switch (cap) { cap 241 drivers/iommu/tegra-gart.c static bool gart_iommu_capable(enum iommu_cap cap) cap 272 drivers/iommu/tegra-smmu.c static bool tegra_smmu_capable(enum iommu_cap cap) cap 439 drivers/media/common/saa7146/saa7146_video.c static int vidioc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 443 drivers/media/common/saa7146/saa7146_video.c strscpy((char *)cap->driver, "saa7146 v4l2", sizeof(cap->driver)); cap 444 drivers/media/common/saa7146/saa7146_video.c strscpy((char *)cap->card, dev->ext->name, sizeof(cap->card)); cap 445 drivers/media/common/saa7146/saa7146_video.c sprintf((char *)cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 446 drivers/media/common/saa7146/saa7146_video.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OVERLAY | cap 449 drivers/media/common/saa7146/saa7146_video.c cap->capabilities |= dev->ext_vv_data->capabilities; cap 817 drivers/media/dvb-frontends/mxl5xx.c static void cfg_dev_xtal(struct mxl *state, u32 freq, u32 cap, u32 enable) cap 827 drivers/media/dvb-frontends/mxl5xx.c write_register(state, HYDRA_CRYSTAL_CAP, cap); cap 1798 drivers/media/dvb-frontends/mxl5xx.c cfg_dev_xtal(state, cfg->clk, cfg->cap, 0); cap 34 drivers/media/dvb-frontends/mxl5xx.h u32 cap; cap 419 drivers/media/dvb-frontends/rtl2832_sdr.c struct v4l2_capability *cap) cap 426 drivers/media/dvb-frontends/rtl2832_sdr.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 427 drivers/media/dvb-frontends/rtl2832_sdr.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); cap 428 drivers/media/dvb-frontends/rtl2832_sdr.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 46 drivers/media/firewire/firedtv-ci.c struct ca_caps *cap = arg; cap 48 drivers/media/firewire/firedtv-ci.c cap->slot_num = 1; cap 49 drivers/media/firewire/firedtv-ci.c cap->slot_type = CA_CI; cap 50 drivers/media/firewire/firedtv-ci.c cap->descr_num = 1; cap 51 drivers/media/firewire/firedtv-ci.c cap->descr_type = CA_ECD; cap 647 drivers/media/i2c/ad9389b.c struct v4l2_dv_timings_cap *cap) cap 649 drivers/media/i2c/ad9389b.c if (cap->pad != 0) cap 652 drivers/media/i2c/ad9389b.c *cap = ad9389b_timings_cap; cap 590 drivers/media/i2c/adv748x/adv748x-hdmi.c struct v4l2_dv_timings_cap *cap) cap 592 drivers/media/i2c/adv748x/adv748x-hdmi.c *cap = adv748x_hdmi_timings_cap; cap 1104 drivers/media/i2c/adv7511-v4l2.c struct v4l2_dv_timings_cap *cap) cap 1106 drivers/media/i2c/adv7511-v4l2.c if (cap->pad != 0) cap 1109 drivers/media/i2c/adv7511-v4l2.c *cap = adv7511_timings_cap; cap 1480 drivers/media/i2c/adv7604.c struct v4l2_dv_timings_cap *cap) cap 1483 drivers/media/i2c/adv7604.c unsigned int pad = cap->pad; cap 1485 drivers/media/i2c/adv7604.c if (cap->pad >= state->source_pad) cap 1488 drivers/media/i2c/adv7604.c *cap = *adv76xx_get_dv_timings_cap(sd, pad); cap 1489 drivers/media/i2c/adv7604.c cap->pad = pad; cap 1513 drivers/media/i2c/adv7842.c struct v4l2_dv_timings_cap *cap) cap 1515 drivers/media/i2c/adv7842.c if (cap->pad != 0) cap 1518 drivers/media/i2c/adv7842.c *cap = *adv7842_get_dv_timings_cap(sd); cap 232 drivers/media/i2c/m5mols/m5mols.h struct m5mols_capture cap; cap 62 drivers/media/i2c/m5mols/m5mols_capture.c struct m5mols_exif *exif = &info->cap.exif; cap 98 drivers/media/i2c/m5mols/m5mols_capture.c ret = m5mols_read_u32(sd, CAPC_IMAGE_SIZE, &info->cap.main); cap 100 drivers/media/i2c/m5mols/m5mols_capture.c ret = m5mols_read_u32(sd, CAPC_THUMB_SIZE, &info->cap.thumb); cap 102 drivers/media/i2c/m5mols/m5mols_capture.c info->cap.total = info->cap.main + info->cap.thumb; cap 109 drivers/media/i2c/m5mols/m5mols_capture.c unsigned int framesize = info->cap.buf_size - M5MOLS_JPEG_TAGS_SIZE; cap 151 drivers/media/i2c/m5mols/m5mols_capture.c size = captured ? info->cap.main : 0; cap 153 drivers/media/i2c/m5mols/m5mols_capture.c __func__, size, info->cap.thumb); cap 618 drivers/media/i2c/m5mols/m5mols_core.c fd->entry[0].length = info->cap.buf_size; cap 643 drivers/media/i2c/m5mols/m5mols_core.c info->cap.buf_size = fd->entry[0].length; cap 1595 drivers/media/i2c/tc358743.c struct v4l2_dv_timings_cap *cap) cap 1597 drivers/media/i2c/tc358743.c if (cap->pad != 0) cap 1600 drivers/media/i2c/tc358743.c *cap = tc358743_timings_cap; cap 1897 drivers/media/i2c/tda1997x.c struct v4l2_dv_timings_cap *cap) cap 1899 drivers/media/i2c/tda1997x.c *cap = tda1997x_dv_timings_cap; cap 411 drivers/media/i2c/ths8200.c struct v4l2_dv_timings_cap *cap) cap 413 drivers/media/i2c/ths8200.c if (cap->pad != 0) cap 416 drivers/media/i2c/ths8200.c *cap = ths8200_timings_cap; cap 619 drivers/media/i2c/tvp5150.c struct v4l2_sliced_vbi_cap *cap) cap 624 drivers/media/i2c/tvp5150.c memset(cap, 0, sizeof(*cap)); cap 635 drivers/media/i2c/tvp5150.c cap->service_lines[0][line] |= regs->type.vbi_type; cap 637 drivers/media/i2c/tvp5150.c cap->service_set |= regs->type.vbi_type; cap 1516 drivers/media/pci/bt8xx/bttv-driver.c bttv_dma_free(&fh->cap,btv, old); cap 2208 drivers/media/pci/bt8xx/bttv-driver.c q = &fh->cap; cap 2274 drivers/media/pci/bt8xx/bttv-driver.c f->fmt.pix.field = fh->cap.field; cap 2410 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.field = f->fmt.pix.field; cap 2411 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.last = V4L2_FIELD_NONE; cap 2436 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_capability *cap) cap 2444 drivers/media/pci/bt8xx/bttv-driver.c strscpy(cap->driver, "bttv", sizeof(cap->driver)); cap 2445 drivers/media/pci/bt8xx/bttv-driver.c strscpy(cap->card, btv->video_dev.name, sizeof(cap->card)); cap 2446 drivers/media/pci/bt8xx/bttv-driver.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 2448 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | cap 2451 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_VIDEO_OVERLAY; cap 2453 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_VBI_CAPTURE; cap 2455 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_RADIO; cap 2457 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_HW_FREQ_SEEK; cap 2465 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_RDS_CAPTURE; cap 2467 drivers/media/pci/bt8xx/bttv-driver.c cap->capabilities |= V4L2_CAP_TUNER; cap 2886 drivers/media/pci/bt8xx/bttv-driver.c retval = videobuf_read_one(&fh->cap, data, count, ppos, cap 2926 drivers/media/pci/bt8xx/bttv-driver.c if (list_empty(&fh->cap.stream)) cap 2928 drivers/media/pci/bt8xx/bttv-driver.c buf = list_entry(fh->cap.stream.next,struct bttv_buffer,vb.stream); cap 2931 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->cap.read_buf) { cap 2935 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf = videobuf_sg_alloc(fh->cap.msize); cap 2936 drivers/media/pci/bt8xx/bttv-driver.c if (NULL == fh->cap.read_buf) cap 2938 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf->memory = V4L2_MEMORY_USERPTR; cap 2939 drivers/media/pci/bt8xx/bttv-driver.c field = videobuf_next_field(&fh->cap); cap 2940 drivers/media/pci/bt8xx/bttv-driver.c if (0 != fh->cap.ops->buf_prepare(&fh->cap,fh->cap.read_buf,field)) { cap 2941 drivers/media/pci/bt8xx/bttv-driver.c kfree (fh->cap.read_buf); cap 2942 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_buf = NULL; cap 2945 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.ops->buf_queue(&fh->cap,fh->cap.read_buf); cap 2946 drivers/media/pci/bt8xx/bttv-driver.c fh->cap.read_off = 0; cap 2948 drivers/media/pci/bt8xx/bttv-driver.c buf = (struct bttv_buffer*)fh->cap.read_buf; cap 2992 drivers/media/pci/bt8xx/bttv-driver.c videobuf_queue_sg_init(&fh->cap, &bttv_video_qops, cap 3040 drivers/media/pci/bt8xx/bttv-driver.c videobuf_streamoff(&fh->cap); cap 3043 drivers/media/pci/bt8xx/bttv-driver.c if (fh->cap.read_buf) { cap 3044 drivers/media/pci/bt8xx/bttv-driver.c buffer_release(&fh->cap,fh->cap.read_buf); cap 3045 drivers/media/pci/bt8xx/bttv-driver.c kfree(fh->cap.read_buf); cap 3059 drivers/media/pci/bt8xx/bttv-driver.c videobuf_mmap_free(&fh->cap); cap 214 drivers/media/pci/bt8xx/bttvp.h struct videobuf_queue cap; cap 677 drivers/media/pci/cobalt/cobalt-v4l2.c struct v4l2_dv_timings_cap *cap) cap 681 drivers/media/pci/cobalt/cobalt-v4l2.c cap->pad = 0; cap 683 drivers/media/pci/cobalt/cobalt-v4l2.c pad, dv_timings_cap, cap); cap 631 drivers/media/pci/cx18/cx18-ioctl.c struct v4l2_sliced_vbi_cap *cap) cap 637 drivers/media/pci/cx18/cx18-ioctl.c if (cap->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) cap 640 drivers/media/pci/cx18/cx18-ioctl.c cap->service_set = 0; cap 648 drivers/media/pci/cx18/cx18-ioctl.c cap->service_lines[f][l] = set; cap 649 drivers/media/pci/cx18/cx18-ioctl.c cap->service_set |= set; cap 651 drivers/media/pci/cx18/cx18-ioctl.c cap->service_lines[f][l] = 0; cap 655 drivers/media/pci/cx18/cx18-ioctl.c cap->reserved[f] = 0; cap 299 drivers/media/pci/cx18/cx18-streams.c u32 cap = cx->v4l2_cap; cap 317 drivers/media/pci/cx18/cx18-streams.c if (type == CX18_ENC_STREAM_TYPE_RAD && !(cap & V4L2_CAP_RADIO)) cap 322 drivers/media/pci/cx18/cx18-streams.c !(cap & (V4L2_CAP_VBI_CAPTURE | V4L2_CAP_SLICED_VBI_CAPTURE))) cap 1318 drivers/media/pci/cx23885/cx23885-417.c struct v4l2_capability *cap) cap 1323 drivers/media/pci/cx23885/cx23885-417.c strscpy(cap->driver, dev->name, sizeof(cap->driver)); cap 1324 drivers/media/pci/cx23885/cx23885-417.c strscpy(cap->card, cx23885_boards[tsport->dev->board].name, cap 1325 drivers/media/pci/cx23885/cx23885-417.c sizeof(cap->card)); cap 1326 drivers/media/pci/cx23885/cx23885-417.c sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci)); cap 1327 drivers/media/pci/cx23885/cx23885-417.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | cap 1331 drivers/media/pci/cx23885/cx23885-417.c cap->capabilities |= V4L2_CAP_TUNER; cap 627 drivers/media/pci/cx23885/cx23885-video.c struct v4l2_capability *cap) cap 631 drivers/media/pci/cx23885/cx23885-video.c strscpy(cap->driver, "cx23885", sizeof(cap->driver)); cap 632 drivers/media/pci/cx23885/cx23885-video.c strscpy(cap->card, cx23885_boards[dev->board].name, cap 633 drivers/media/pci/cx23885/cx23885-video.c sizeof(cap->card)); cap 634 drivers/media/pci/cx23885/cx23885-video.c sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci)); cap 635 drivers/media/pci/cx23885/cx23885-video.c cap->capabilities = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | cap 640 drivers/media/pci/cx23885/cx23885-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 422 drivers/media/pci/cx25821/cx25821-video.c struct v4l2_capability *cap) cap 427 drivers/media/pci/cx25821/cx25821-video.c strscpy(cap->driver, "cx25821", sizeof(cap->driver)); cap 428 drivers/media/pci/cx25821/cx25821-video.c strscpy(cap->card, cx25821_boards[dev->board].name, sizeof(cap->card)); cap 429 drivers/media/pci/cx25821/cx25821-video.c sprintf(cap->bus_info, "PCIe:%s", pci_name(dev->pci)); cap 430 drivers/media/pci/cx25821/cx25821-video.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT | cap 792 drivers/media/pci/cx88/cx88-blackbird.c struct v4l2_capability *cap) cap 797 drivers/media/pci/cx88/cx88-blackbird.c strscpy(cap->driver, "cx88_blackbird", sizeof(cap->driver)); cap 798 drivers/media/pci/cx88/cx88-blackbird.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 799 drivers/media/pci/cx88/cx88-blackbird.c return cx88_querycap(file, core, cap); cap 791 drivers/media/pci/cx88/cx88-video.c struct v4l2_capability *cap) cap 793 drivers/media/pci/cx88/cx88-video.c strscpy(cap->card, core->board.name, sizeof(cap->card)); cap 794 drivers/media/pci/cx88/cx88-video.c cap->capabilities = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | cap 798 drivers/media/pci/cx88/cx88-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 800 drivers/media/pci/cx88/cx88-video.c cap->capabilities |= V4L2_CAP_RADIO; cap 806 drivers/media/pci/cx88/cx88-video.c struct v4l2_capability *cap) cap 811 drivers/media/pci/cx88/cx88-video.c strscpy(cap->driver, "cx8800", sizeof(cap->driver)); cap 812 drivers/media/pci/cx88/cx88-video.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 813 drivers/media/pci/cx88/cx88-video.c return cx88_querycap(file, core, cap); cap 728 drivers/media/pci/cx88/cx88.h struct v4l2_capability *cap); cap 404 drivers/media/pci/ddbridge/ddbridge-max.c .cap = 12, cap 293 drivers/media/pci/dt3155/dt3155.c struct v4l2_capability *cap) cap 297 drivers/media/pci/dt3155/dt3155.c strscpy(cap->driver, DT3155_NAME, sizeof(cap->driver)); cap 298 drivers/media/pci/dt3155/dt3155.c strscpy(cap->card, DT3155_NAME " frame grabber", sizeof(cap->card)); cap 299 drivers/media/pci/dt3155/dt3155.c sprintf(cap->bus_info, "PCI:%s", pci_name(pd->pdev)); cap 1063 drivers/media/pci/intel/ipu3/ipu3-cio2.c struct v4l2_capability *cap) cap 1067 drivers/media/pci/intel/ipu3/ipu3-cio2.c strscpy(cap->driver, CIO2_NAME, sizeof(cap->driver)); cap 1068 drivers/media/pci/intel/ipu3/ipu3-cio2.c strscpy(cap->card, CIO2_DEVICE_NAME, sizeof(cap->card)); cap 1069 drivers/media/pci/intel/ipu3/ipu3-cio2.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 1219 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) cap 1225 drivers/media/pci/ivtv/ivtv-ioctl.c if (cap->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) { cap 1229 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[f][l] = set; cap 1232 drivers/media/pci/ivtv/ivtv-ioctl.c } else if (cap->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) { cap 1236 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[0][21] = V4L2_SLICED_CAPTION_525; cap 1237 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[1][21] = V4L2_SLICED_CAPTION_525; cap 1239 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[0][23] = V4L2_SLICED_WSS_625; cap 1240 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_lines[0][16] = V4L2_SLICED_VPS; cap 1249 drivers/media/pci/ivtv/ivtv-ioctl.c set |= cap->service_lines[f][l]; cap 1250 drivers/media/pci/ivtv/ivtv-ioctl.c cap->service_set = set; cap 1011 drivers/media/pci/meye/meye.c struct v4l2_capability *cap) cap 1013 drivers/media/pci/meye/meye.c strscpy(cap->driver, "meye", sizeof(cap->driver)); cap 1014 drivers/media/pci/meye/meye.c strscpy(cap->card, "meye", sizeof(cap->card)); cap 1015 drivers/media/pci/meye/meye.c sprintf(cap->bus_info, "PCI:%s", pci_name(meye.mchip_dev)); cap 381 drivers/media/pci/saa7134/saa7134-core.c enum v4l2_field cap = V4L2_FIELD_ANY; cap 395 drivers/media/pci/saa7134/saa7134-core.c cap = dev->field; cap 437 drivers/media/pci/saa7134/saa7134-core.c if (V4L2_FIELD_HAS_BOTH(cap) || V4L2_FIELD_HAS_BOTH(ov) || cap == ov) { cap 446 drivers/media/pci/saa7134/saa7134-core.c if (V4L2_FIELD_TOP == cap) { cap 1475 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_capability *cap) cap 1479 drivers/media/pci/saa7134/saa7134-video.c strscpy(cap->driver, "saa7134", sizeof(cap->driver)); cap 1480 drivers/media/pci/saa7134/saa7134-video.c strscpy(cap->card, saa7134_boards[dev->board].name, cap 1481 drivers/media/pci/saa7134/saa7134-video.c sizeof(cap->card)); cap 1482 drivers/media/pci/saa7134/saa7134-video.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 1483 drivers/media/pci/saa7134/saa7134-video.c cap->capabilities = V4L2_CAP_READWRITE | V4L2_CAP_STREAMING | cap 1487 drivers/media/pci/saa7134/saa7134-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 1489 drivers/media/pci/saa7134/saa7134-video.c cap->capabilities |= V4L2_CAP_RDS_CAPTURE; cap 1491 drivers/media/pci/saa7134/saa7134-video.c cap->capabilities |= V4L2_CAP_VIDEO_OVERLAY; cap 817 drivers/media/pci/saa7134/saa7134.h struct v4l2_capability *cap); cap 484 drivers/media/pci/saa7164/saa7164-encoder.c struct v4l2_capability *cap) cap 490 drivers/media/pci/saa7164/saa7164-encoder.c strscpy(cap->driver, dev->name, sizeof(cap->driver)); cap 491 drivers/media/pci/saa7164/saa7164-encoder.c strscpy(cap->card, saa7164_boards[dev->board].name, cap 492 drivers/media/pci/saa7164/saa7164-encoder.c sizeof(cap->card)); cap 493 drivers/media/pci/saa7164/saa7164-encoder.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 494 drivers/media/pci/saa7164/saa7164-encoder.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | cap 195 drivers/media/pci/saa7164/saa7164-vbi.c struct v4l2_capability *cap) cap 201 drivers/media/pci/saa7164/saa7164-vbi.c strscpy(cap->driver, dev->name, sizeof(cap->driver)); cap 202 drivers/media/pci/saa7164/saa7164-vbi.c strscpy(cap->card, saa7164_boards[dev->board].name, cap 203 drivers/media/pci/saa7164/saa7164-vbi.c sizeof(cap->card)); cap 204 drivers/media/pci/saa7164/saa7164-vbi.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 205 drivers/media/pci/saa7164/saa7164-vbi.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | cap 764 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c struct v4l2_capability *cap) cap 769 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c strscpy(cap->driver, SOLO6X10_NAME, sizeof(cap->driver)); cap 770 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c snprintf(cap->card, sizeof(cap->card), "Softlogic 6x10 Enc %d", cap 772 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", cap 373 drivers/media/pci/solo6x10/solo6x10-v4l2.c struct v4l2_capability *cap) cap 377 drivers/media/pci/solo6x10/solo6x10-v4l2.c strscpy(cap->driver, SOLO6X10_NAME, sizeof(cap->driver)); cap 378 drivers/media/pci/solo6x10/solo6x10-v4l2.c strscpy(cap->card, "Softlogic 6x10", sizeof(cap->card)); cap 379 drivers/media/pci/solo6x10/solo6x10-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", cap 402 drivers/media/pci/sta2x11/sta2x11_vip.c struct v4l2_capability *cap) cap 406 drivers/media/pci/sta2x11/sta2x11_vip.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 407 drivers/media/pci/sta2x11/sta2x11_vip.c strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); cap 408 drivers/media/pci/sta2x11/sta2x11_vip.c snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", cap 253 drivers/media/pci/ttpci/av7110_ca.c struct ca_caps cap; cap 255 drivers/media/pci/ttpci/av7110_ca.c cap.slot_num = 2; cap 256 drivers/media/pci/ttpci/av7110_ca.c cap.slot_type = (FW_CI_LL_SUPPORT(av7110->arm_app) ? cap 258 drivers/media/pci/ttpci/av7110_ca.c cap.descr_num = 16; cap 259 drivers/media/pci/ttpci/av7110_ca.c cap.descr_type = CA_ECD; cap 260 drivers/media/pci/ttpci/av7110_ca.c memcpy(parg, &cap, sizeof(cap)); cap 1191 drivers/media/pci/ttpci/av7110_hw.c int av7110_osd_capability(struct av7110 *av7110, osd_cap_t *cap) cap 1193 drivers/media/pci/ttpci/av7110_hw.c switch (cap->cmd) { cap 1196 drivers/media/pci/ttpci/av7110_hw.c cap->val = 1000000; cap 1198 drivers/media/pci/ttpci/av7110_hw.c cap->val = 92000; cap 491 drivers/media/pci/ttpci/av7110_hw.h extern int av7110_osd_capability(struct av7110 *av7110, osd_cap_t *cap); cap 527 drivers/media/pci/ttpci/av7110_v4l.c struct v4l2_sliced_vbi_cap *cap) cap 533 drivers/media/pci/ttpci/av7110_v4l.c if (cap->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) cap 536 drivers/media/pci/ttpci/av7110_v4l.c cap->service_set = V4L2_SLICED_WSS_625; cap 537 drivers/media/pci/ttpci/av7110_v4l.c cap->service_lines[0][23] = V4L2_SLICED_WSS_625; cap 600 drivers/media/pci/tw5864/tw5864-video.c struct v4l2_capability *cap) cap 604 drivers/media/pci/tw5864/tw5864-video.c strscpy(cap->driver, "tw5864", sizeof(cap->driver)); cap 605 drivers/media/pci/tw5864/tw5864-video.c snprintf(cap->card, sizeof(cap->card), "TW5864 Encoder %d", cap 607 drivers/media/pci/tw5864/tw5864-video.c sprintf(cap->bus_info, "PCI:%s", pci_name(input->root->pci)); cap 713 drivers/media/pci/tw68/tw68-video.c struct v4l2_capability *cap) cap 717 drivers/media/pci/tw68/tw68-video.c strscpy(cap->driver, "tw68", sizeof(cap->driver)); cap 718 drivers/media/pci/tw68/tw68-video.c strscpy(cap->card, "Techwell Capture Card", cap 719 drivers/media/pci/tw68/tw68-video.c sizeof(cap->card)); cap 720 drivers/media/pci/tw68/tw68-video.c sprintf(cap->bus_info, "PCI:%s", pci_name(dev->pci)); cap 759 drivers/media/pci/tw686x/tw686x-video.c struct v4l2_capability *cap) cap 764 drivers/media/pci/tw686x/tw686x-video.c strscpy(cap->driver, "tw686x", sizeof(cap->driver)); cap 765 drivers/media/pci/tw686x/tw686x-video.c strscpy(cap->card, dev->name, sizeof(cap->card)); cap 766 drivers/media/pci/tw686x/tw686x-video.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 1393 drivers/media/platform/am437x/am437x-vpfe.c struct v4l2_capability *cap) cap 1399 drivers/media/platform/am437x/am437x-vpfe.c strscpy(cap->driver, VPFE_MODULE_NAME, sizeof(cap->driver)); cap 1400 drivers/media/platform/am437x/am437x-vpfe.c strscpy(cap->card, "TI AM437x VPFE", sizeof(cap->card)); cap 1401 drivers/media/platform/am437x/am437x-vpfe.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 984 drivers/media/platform/aspeed-video.c struct v4l2_capability *cap) cap 986 drivers/media/platform/aspeed-video.c strscpy(cap->driver, DEVICE_NAME, sizeof(cap->driver)); cap 987 drivers/media/platform/aspeed-video.c strscpy(cap->card, "Aspeed Video Engine", sizeof(cap->card)); cap 988 drivers/media/platform/aspeed-video.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 1206 drivers/media/platform/aspeed-video.c struct v4l2_dv_timings_cap *cap) cap 1208 drivers/media/platform/aspeed-video.c *cap = aspeed_video_timings_cap; cap 911 drivers/media/platform/atmel/atmel-isc-base.c struct v4l2_capability *cap) cap 915 drivers/media/platform/atmel/atmel-isc-base.c strscpy(cap->driver, ATMEL_ISC_NAME, sizeof(cap->driver)); cap 916 drivers/media/platform/atmel/atmel-isc-base.c strscpy(cap->card, "Atmel Image Sensor Controller", sizeof(cap->card)); cap 917 drivers/media/platform/atmel/atmel-isc-base.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 653 drivers/media/platform/atmel/atmel-isi.c struct v4l2_capability *cap) cap 655 drivers/media/platform/atmel/atmel-isi.c strscpy(cap->driver, "atmel-isi", sizeof(cap->driver)); cap 656 drivers/media/platform/atmel/atmel-isi.c strscpy(cap->card, "Atmel Image Sensor Interface", sizeof(cap->card)); cap 657 drivers/media/platform/atmel/atmel-isi.c strscpy(cap->bus_info, "platform:isi", sizeof(cap->bus_info)); cap 385 drivers/media/platform/coda/coda-common.c struct v4l2_capability *cap) cap 389 drivers/media/platform/coda/coda-common.c strscpy(cap->driver, CODA_NAME, sizeof(cap->driver)); cap 390 drivers/media/platform/coda/coda-common.c strscpy(cap->card, coda_product_name(ctx->dev->devtype->product), cap 391 drivers/media/platform/coda/coda-common.c sizeof(cap->card)); cap 392 drivers/media/platform/coda/coda-common.c strscpy(cap->bus_info, "platform:" CODA_NAME, sizeof(cap->bus_info)); cap 627 drivers/media/platform/davinci/vpbe_display.c struct v4l2_capability *cap) cap 632 drivers/media/platform/davinci/vpbe_display.c snprintf(cap->driver, sizeof(cap->driver), "%s", cap 634 drivers/media/platform/davinci/vpbe_display.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 636 drivers/media/platform/davinci/vpbe_display.c strscpy(cap->card, vpbe_dev->cfg->module_name, sizeof(cap->card)); cap 844 drivers/media/platform/davinci/vpfe_capture.c struct v4l2_capability *cap) cap 850 drivers/media/platform/davinci/vpfe_capture.c strscpy(cap->driver, CAPTURE_DRV_NAME, sizeof(cap->driver)); cap 851 drivers/media/platform/davinci/vpfe_capture.c strscpy(cap->bus_info, "VPFE", sizeof(cap->bus_info)); cap 852 drivers/media/platform/davinci/vpfe_capture.c strscpy(cap->card, vpfe_dev->cfg->card_name, sizeof(cap->card)); cap 1076 drivers/media/platform/davinci/vpif_capture.c struct v4l2_capability *cap) cap 1080 drivers/media/platform/davinci/vpif_capture.c strscpy(cap->driver, VPIF_DRIVER_NAME, sizeof(cap->driver)); cap 1081 drivers/media/platform/davinci/vpif_capture.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 1083 drivers/media/platform/davinci/vpif_capture.c strscpy(cap->card, config->card_name, sizeof(cap->card)); cap 583 drivers/media/platform/davinci/vpif_display.c struct v4l2_capability *cap) cap 587 drivers/media/platform/davinci/vpif_display.c strscpy(cap->driver, VPIF_DRIVER_NAME, sizeof(cap->driver)); cap 588 drivers/media/platform/davinci/vpif_display.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 590 drivers/media/platform/davinci/vpif_display.c strscpy(cap->card, config->card_name, sizeof(cap->card)); cap 288 drivers/media/platform/exynos-gsc/gsc-m2m.c struct v4l2_capability *cap) cap 293 drivers/media/platform/exynos-gsc/gsc-m2m.c strscpy(cap->driver, GSC_MODULE_NAME, sizeof(cap->driver)); cap 294 drivers/media/platform/exynos-gsc/gsc-m2m.c strscpy(cap->card, GSC_MODULE_NAME " gscaler", sizeof(cap->card)); cap 295 drivers/media/platform/exynos-gsc/gsc-m2m.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 37 drivers/media/platform/exynos4-is/common.c void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap) cap 39 drivers/media/platform/exynos4-is/common.c strscpy(cap->driver, dev->driver->name, sizeof(cap->driver)); cap 40 drivers/media/platform/exynos4-is/common.c strscpy(cap->card, dev->driver->name, sizeof(cap->card)); cap 41 drivers/media/platform/exynos4-is/common.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 12 drivers/media/platform/exynos4-is/common.h void __fimc_vidioc_querycap(struct device *dev, struct v4l2_capability *cap); cap 85 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_vid_cap *cap = &fimc->vid_cap; cap 101 drivers/media/platform/exynos4-is/fimc-capture.c while (!suspend && !list_empty(&cap->pending_buf_q)) { cap 102 drivers/media/platform/exynos4-is/fimc-capture.c buf = fimc_pending_queue_pop(cap); cap 106 drivers/media/platform/exynos4-is/fimc-capture.c while (!list_empty(&cap->active_buf_q)) { cap 107 drivers/media/platform/exynos4-is/fimc-capture.c buf = fimc_active_queue_pop(cap); cap 109 drivers/media/platform/exynos4-is/fimc-capture.c fimc_pending_queue_add(cap, buf); cap 115 drivers/media/platform/exynos4-is/fimc-capture.c cap->buf_index = 0; cap 120 drivers/media/platform/exynos4-is/fimc-capture.c return fimc_pipeline_call(&cap->ve, set_stream, 0); cap 179 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_vid_cap *cap = &fimc->vid_cap; cap 180 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_pipeline *p = to_fimc_pipeline(cap->ve.pipe); cap 182 drivers/media/platform/exynos4-is/fimc-capture.c struct fimc_frame *f = &cap->ctx->d_frame; cap 190 drivers/media/platform/exynos4-is/fimc-capture.c if (!list_empty(&cap->active_buf_q) && cap 192 drivers/media/platform/exynos4-is/fimc-capture.c v_buf = fimc_active_queue_pop(cap); cap 195 drivers/media/platform/exynos4-is/fimc-capture.c v_buf->vb.sequence = cap->frame_count++; cap 200 drivers/media/platform/exynos4-is/fimc-capture.c if (!list_empty(&cap->pending_buf_q)) { cap 202 drivers/media/platform/exynos4-is/fimc-capture.c v_buf = fimc_pending_queue_pop(cap); cap 203 drivers/media/platform/exynos4-is/fimc-capture.c fimc_hw_set_output_addr(fimc, &v_buf->paddr, cap->buf_index); cap 204 drivers/media/platform/exynos4-is/fimc-capture.c v_buf->index = cap->buf_index; cap 207 drivers/media/platform/exynos4-is/fimc-capture.c fimc_active_queue_add(cap, v_buf); cap 212 drivers/media/platform/exynos4-is/fimc-capture.c if (++cap->buf_index >= FIMC_MAX_OUT_BUFS) cap 213 drivers/media/platform/exynos4-is/fimc-capture.c cap->buf_index = 0; cap 219 drivers/media/platform/exynos4-is/fimc-capture.c if (f->fmt->mdataplanes && !list_empty(&cap->active_buf_q)) { cap 225 drivers/media/platform/exynos4-is/fimc-capture.c list_for_each_entry(v_buf, &cap->active_buf_q, list) { cap 235 drivers/media/platform/exynos4-is/fimc-capture.c if (cap->active_buf_cnt == 0) { cap 239 drivers/media/platform/exynos4-is/fimc-capture.c if (++cap->buf_index >= FIMC_MAX_OUT_BUFS) cap 240 drivers/media/platform/exynos4-is/fimc-capture.c cap->buf_index = 0; cap 246 drivers/media/platform/exynos4-is/fimc-capture.c fimc_capture_config_update(cap->ctx); cap 248 drivers/media/platform/exynos4-is/fimc-capture.c if (cap->active_buf_cnt == 1) { cap 254 drivers/media/platform/exynos4-is/fimc-capture.c fimc_hw_get_frame_index(fimc), cap->active_buf_cnt); cap 724 drivers/media/platform/exynos4-is/fimc-capture.c struct v4l2_capability *cap) cap 728 drivers/media/platform/exynos4-is/fimc-capture.c __fimc_vidioc_querycap(&fimc->pdev->dev, cap); cap 345 drivers/media/platform/exynos4-is/fimc-isp-video.c struct v4l2_capability *cap) cap 349 drivers/media/platform/exynos4-is/fimc-isp-video.c __fimc_vidioc_querycap(&isp->pdev->dev, cap); cap 643 drivers/media/platform/exynos4-is/fimc-lite.c struct v4l2_capability *cap) cap 647 drivers/media/platform/exynos4-is/fimc-lite.c strscpy(cap->driver, FIMC_LITE_DRV_NAME, sizeof(cap->driver)); cap 648 drivers/media/platform/exynos4-is/fimc-lite.c strscpy(cap->card, FIMC_LITE_DRV_NAME, sizeof(cap->card)); cap 649 drivers/media/platform/exynos4-is/fimc-lite.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 232 drivers/media/platform/exynos4-is/fimc-m2m.c struct v4l2_capability *cap) cap 236 drivers/media/platform/exynos4-is/fimc-m2m.c __fimc_vidioc_querycap(&fimc->pdev->dev, cap); cap 561 drivers/media/platform/fsl-viu.c struct v4l2_capability *cap) cap 563 drivers/media/platform/fsl-viu.c strscpy(cap->driver, "viu", sizeof(cap->driver)); cap 564 drivers/media/platform/fsl-viu.c strscpy(cap->card, "viu", sizeof(cap->card)); cap 565 drivers/media/platform/fsl-viu.c strscpy(cap->bus_info, "platform:viu", sizeof(cap->bus_info)); cap 1026 drivers/media/platform/imx-pxp.c struct v4l2_capability *cap) cap 1028 drivers/media/platform/imx-pxp.c strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver)); cap 1029 drivers/media/platform/imx-pxp.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); cap 1030 drivers/media/platform/imx-pxp.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 432 drivers/media/platform/m2m-deinterlace.c struct v4l2_capability *cap) cap 434 drivers/media/platform/m2m-deinterlace.c strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver)); cap 435 drivers/media/platform/m2m-deinterlace.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); cap 436 drivers/media/platform/m2m-deinterlace.c strscpy(cap->bus_info, MEM2MEM_NAME, sizeof(cap->bus_info)); cap 1345 drivers/media/platform/marvell-ccic/mcam-core.c struct v4l2_capability *cap) cap 1349 drivers/media/platform/marvell-ccic/mcam-core.c strscpy(cap->driver, "marvell_ccic", sizeof(cap->driver)); cap 1350 drivers/media/platform/marvell-ccic/mcam-core.c strscpy(cap->card, "marvell_ccic", sizeof(cap->card)); cap 1351 drivers/media/platform/marvell-ccic/mcam-core.c strscpy(cap->bus_info, cam->bus_info, sizeof(cap->bus_info)); cap 85 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct v4l2_capability *cap) cap 89 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c strscpy(cap->driver, MTK_JPEG_NAME " decoder", sizeof(cap->driver)); cap 90 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c strscpy(cap->card, MTK_JPEG_NAME " decoder", sizeof(cap->card)); cap 91 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 603 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c struct v4l2_capability *cap) cap 608 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c strscpy(cap->driver, MTK_MDP_MODULE_NAME, sizeof(cap->driver)); cap 609 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c strscpy(cap->card, mdp->pdev->name, sizeof(cap->card)); cap 610 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c strscpy(cap->bus_info, "platform:mt8173", sizeof(cap->bus_info)); cap 630 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c struct v4l2_capability *cap) cap 632 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c strscpy(cap->driver, MTK_VCODEC_DEC_NAME, sizeof(cap->driver)); cap 633 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c strscpy(cap->bus_info, MTK_PLATFORM_STR, sizeof(cap->bus_info)); cap 634 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card)); cap 215 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c struct v4l2_capability *cap) cap 217 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c strscpy(cap->driver, MTK_VCODEC_ENC_NAME, sizeof(cap->driver)); cap 218 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c strscpy(cap->bus_info, MTK_PLATFORM_STR, sizeof(cap->bus_info)); cap 219 drivers/media/platform/mtk-vcodec/mtk_vcodec_enc.c strscpy(cap->card, MTK_PLATFORM_STR, sizeof(cap->card)); cap 379 drivers/media/platform/mx2_emmaprp.c struct v4l2_capability *cap) cap 381 drivers/media/platform/mx2_emmaprp.c strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver)); cap 382 drivers/media/platform/mx2_emmaprp.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); cap 571 drivers/media/platform/omap/omap_vout.c struct v4l2_capability *cap) cap 575 drivers/media/platform/omap/omap_vout.c strscpy(cap->driver, VOUT_NAME, sizeof(cap->driver)); cap 576 drivers/media/platform/omap/omap_vout.c strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); cap 577 drivers/media/platform/omap/omap_vout.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 650 drivers/media/platform/omap3isp/ispvideo.c isp_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 654 drivers/media/platform/omap3isp/ispvideo.c strscpy(cap->driver, ISP_VIDEO_DRIVER_NAME, sizeof(cap->driver)); cap 655 drivers/media/platform/omap3isp/ispvideo.c strscpy(cap->card, video->video.name, sizeof(cap->card)); cap 656 drivers/media/platform/omap3isp/ispvideo.c strscpy(cap->bus_info, "media", sizeof(cap->bus_info)); cap 658 drivers/media/platform/omap3isp/ispvideo.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_VIDEO_OUTPUT cap 1990 drivers/media/platform/pxa_camera.c struct v4l2_capability *cap) cap 1992 drivers/media/platform/pxa_camera.c strscpy(cap->bus_info, "platform:pxa-camera", sizeof(cap->bus_info)); cap 1993 drivers/media/platform/pxa_camera.c strscpy(cap->driver, PXA_CAM_DRV_NAME, sizeof(cap->driver)); cap 1994 drivers/media/platform/pxa_camera.c strscpy(cap->card, pxa_cam_driver_description, sizeof(cap->card)); cap 520 drivers/media/platform/qcom/camss/camss-video.c struct v4l2_capability *cap) cap 524 drivers/media/platform/qcom/camss/camss-video.c strscpy(cap->driver, "qcom-camss", sizeof(cap->driver)); cap 525 drivers/media/platform/qcom/camss/camss-video.c strscpy(cap->card, "Qualcomm Camera Subsystem", sizeof(cap->card)); cap 526 drivers/media/platform/qcom/camss/camss-video.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 14 drivers/media/platform/qcom/venus/hfi_parser.c typedef void (*func)(struct venus_caps *cap, const void *data, cap 19 drivers/media/platform/qcom/venus/hfi_parser.c struct venus_caps *caps = core->caps, *cap; cap 23 drivers/media/platform/qcom/venus/hfi_parser.c cap = &caps[core->codecs_count++]; cap 24 drivers/media/platform/qcom/venus/hfi_parser.c cap->codec = BIT(bit); cap 25 drivers/media/platform/qcom/venus/hfi_parser.c cap->domain = VIDC_SESSION_TYPE_DEC; cap 26 drivers/media/platform/qcom/venus/hfi_parser.c cap->valid = false; cap 30 drivers/media/platform/qcom/venus/hfi_parser.c cap = &caps[core->codecs_count++]; cap 31 drivers/media/platform/qcom/venus/hfi_parser.c cap->codec = BIT(bit); cap 32 drivers/media/platform/qcom/venus/hfi_parser.c cap->domain = VIDC_SESSION_TYPE_ENC; cap 33 drivers/media/platform/qcom/venus/hfi_parser.c cap->valid = false; cap 41 drivers/media/platform/qcom/venus/hfi_parser.c struct venus_caps *cap; cap 45 drivers/media/platform/qcom/venus/hfi_parser.c cap = &caps[i]; cap 46 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->valid && cap->domain == domain) cap 48 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == domain) cap 49 drivers/media/platform/qcom/venus/hfi_parser.c cb(cap, data, size); cap 54 drivers/media/platform/qcom/venus/hfi_parser.c fill_buf_mode(struct venus_caps *cap, const void *data, unsigned int num) cap 59 drivers/media/platform/qcom/venus/hfi_parser.c cap->cap_bufs_mode_dynamic = true; cap 84 drivers/media/platform/qcom/venus/hfi_parser.c static void fill_profile_level(struct venus_caps *cap, const void *data, cap 89 drivers/media/platform/qcom/venus/hfi_parser.c memcpy(&cap->pl[cap->num_pl], pl, num * sizeof(*pl)); cap 90 drivers/media/platform/qcom/venus/hfi_parser.c cap->num_pl += num; cap 110 drivers/media/platform/qcom/venus/hfi_parser.c fill_caps(struct venus_caps *cap, const void *data, unsigned int num) cap 114 drivers/media/platform/qcom/venus/hfi_parser.c memcpy(&cap->caps[cap->num_caps], caps, num * sizeof(*caps)); cap 115 drivers/media/platform/qcom/venus/hfi_parser.c cap->num_caps += num; cap 122 drivers/media/platform/qcom/venus/hfi_parser.c struct hfi_capability *cap = caps->data; cap 129 drivers/media/platform/qcom/venus/hfi_parser.c memcpy(caps_arr, cap, num_caps * sizeof(*cap)); cap 135 drivers/media/platform/qcom/venus/hfi_parser.c static void fill_raw_fmts(struct venus_caps *cap, const void *fmts, cap 140 drivers/media/platform/qcom/venus/hfi_parser.c memcpy(&cap->fmts[cap->num_fmts], formats, num_fmts * sizeof(*formats)); cap 141 drivers/media/platform/qcom/venus/hfi_parser.c cap->num_fmts += num_fmts; cap 214 drivers/media/platform/qcom/venus/hfi_parser.c struct venus_caps *caps, *cap; cap 225 drivers/media/platform/qcom/venus/hfi_parser.c cap = &caps[i]; cap 226 drivers/media/platform/qcom/venus/hfi_parser.c if (cap->codec & codecs && cap->domain == dom) cap 227 drivers/media/platform/qcom/venus/hfi_parser.c cap->valid = true; cap 18 drivers/media/platform/qcom/venus/hfi_parser.h struct hfi_capability *cap = NULL; cap 28 drivers/media/platform/qcom/venus/hfi_parser.h cap = &caps->caps[i]; cap 33 drivers/media/platform/qcom/venus/hfi_parser.h if (!cap) cap 38 drivers/media/platform/qcom/venus/hfi_parser.h return cap->min; cap 40 drivers/media/platform/qcom/venus/hfi_parser.h return cap->max; cap 42 drivers/media/platform/qcom/venus/hfi_parser.h return cap->step_size; cap 371 drivers/media/platform/qcom/venus/vdec.c vdec_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 373 drivers/media/platform/qcom/venus/vdec.c strscpy(cap->driver, "qcom-venus", sizeof(cap->driver)); cap 374 drivers/media/platform/qcom/venus/vdec.c strscpy(cap->card, "Qualcomm Venus video decoder", sizeof(cap->card)); cap 375 drivers/media/platform/qcom/venus/vdec.c strscpy(cap->bus_info, "platform:qcom-venus", sizeof(cap->bus_info)); cap 400 drivers/media/platform/qcom/venus/vdec.c struct v4l2_captureparm *cap = &a->parm.capture; cap 401 drivers/media/platform/qcom/venus/vdec.c struct v4l2_fract *timeperframe = &cap->timeperframe; cap 408 drivers/media/platform/qcom/venus/vdec.c memset(cap->reserved, 0, sizeof(cap->reserved)); cap 413 drivers/media/platform/qcom/venus/vdec.c cap->readbuffers = 0; cap 414 drivers/media/platform/qcom/venus/vdec.c cap->extendedmode = 0; cap 415 drivers/media/platform/qcom/venus/vdec.c cap->capability = V4L2_CAP_TIMEPERFRAME; cap 265 drivers/media/platform/qcom/venus/venc.c venc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 267 drivers/media/platform/qcom/venus/venc.c strscpy(cap->driver, "qcom-venus", sizeof(cap->driver)); cap 268 drivers/media/platform/qcom/venus/venc.c strscpy(cap->card, "Qualcomm Venus video encoder", sizeof(cap->card)); cap 269 drivers/media/platform/qcom/venus/venc.c strscpy(cap->bus_info, "platform:qcom-venus", sizeof(cap->bus_info)); cap 250 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_capability *cap) cap 254 drivers/media/platform/rcar-vin/rcar-v4l2.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 255 drivers/media/platform/rcar-vin/rcar-v4l2.c strscpy(cap->card, "R_Car_VIN", sizeof(cap->card)); cap 256 drivers/media/platform/rcar-vin/rcar-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 572 drivers/media/platform/rcar-vin/rcar-v4l2.c struct v4l2_dv_timings_cap *cap) cap 578 drivers/media/platform/rcar-vin/rcar-v4l2.c if (cap->pad) cap 581 drivers/media/platform/rcar-vin/rcar-v4l2.c cap->pad = vin->parallel->sink_pad; cap 583 drivers/media/platform/rcar-vin/rcar-v4l2.c ret = v4l2_subdev_call(sd, pad, dv_timings_cap, cap); cap 585 drivers/media/platform/rcar-vin/rcar-v4l2.c cap->pad = 0; cap 869 drivers/media/platform/rcar_drif.c struct v4l2_capability *cap) cap 873 drivers/media/platform/rcar_drif.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 874 drivers/media/platform/rcar_drif.c strscpy(cap->card, sdr->vdev->name, sizeof(cap->card)); cap 875 drivers/media/platform/rcar_drif.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 1362 drivers/media/platform/rcar_fdp1.c struct v4l2_capability *cap) cap 1364 drivers/media/platform/rcar_fdp1.c strscpy(cap->driver, DRIVER_NAME, sizeof(cap->driver)); cap 1365 drivers/media/platform/rcar_fdp1.c strscpy(cap->card, DRIVER_NAME, sizeof(cap->card)); cap 1366 drivers/media/platform/rcar_fdp1.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 662 drivers/media/platform/rcar_jpu.c struct v4l2_capability *cap) cap 667 drivers/media/platform/rcar_jpu.c strscpy(cap->card, DRV_NAME " encoder", sizeof(cap->card)); cap 669 drivers/media/platform/rcar_jpu.c strscpy(cap->card, DRV_NAME " decoder", sizeof(cap->card)); cap 671 drivers/media/platform/rcar_jpu.c strscpy(cap->driver, DRV_NAME, sizeof(cap->driver)); cap 672 drivers/media/platform/rcar_jpu.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 674 drivers/media/platform/rcar_jpu.c memset(cap->reserved, 0, sizeof(cap->reserved)); cap 1134 drivers/media/platform/renesas-ceu.c struct v4l2_capability *cap) cap 1138 drivers/media/platform/renesas-ceu.c strscpy(cap->card, "Renesas CEU", sizeof(cap->card)); cap 1139 drivers/media/platform/renesas-ceu.c strscpy(cap->driver, DRIVER_NAME, sizeof(cap->driver)); cap 1140 drivers/media/platform/renesas-ceu.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 440 drivers/media/platform/rockchip/rga/rga.c vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *cap) cap 442 drivers/media/platform/rockchip/rga/rga.c strscpy(cap->driver, RGA_NAME, sizeof(cap->driver)); cap 443 drivers/media/platform/rockchip/rga/rga.c strscpy(cap->card, "rockchip-rga", sizeof(cap->card)); cap 444 drivers/media/platform/rockchip/rga/rga.c strscpy(cap->bus_info, "platform:rga", sizeof(cap->bus_info)); cap 636 drivers/media/platform/s3c-camif/camif-capture.c struct v4l2_capability *cap) cap 640 drivers/media/platform/s3c-camif/camif-capture.c strscpy(cap->driver, S3C_CAMIF_DRIVER_NAME, sizeof(cap->driver)); cap 641 drivers/media/platform/s3c-camif/camif-capture.c strscpy(cap->card, S3C_CAMIF_DRIVER_NAME, sizeof(cap->card)); cap 642 drivers/media/platform/s3c-camif/camif-capture.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s.%d", cap 289 drivers/media/platform/s5p-g2d/g2d.c struct v4l2_capability *cap) cap 291 drivers/media/platform/s5p-g2d/g2d.c strscpy(cap->driver, G2D_NAME, sizeof(cap->driver)); cap 292 drivers/media/platform/s5p-g2d/g2d.c strscpy(cap->card, G2D_NAME, sizeof(cap->card)); cap 293 drivers/media/platform/s5p-g2d/g2d.c cap->bus_info[0] = 0; cap 1245 drivers/media/platform/s5p-jpeg/jpeg-core.c struct v4l2_capability *cap) cap 1250 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->driver, S5P_JPEG_M2M_NAME, cap 1251 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->driver)); cap 1252 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->card, S5P_JPEG_M2M_NAME " encoder", cap 1253 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->card)); cap 1255 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->driver, S5P_JPEG_M2M_NAME, cap 1256 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->driver)); cap 1257 drivers/media/platform/s5p-jpeg/jpeg-core.c strscpy(cap->card, S5P_JPEG_M2M_NAME " decoder", cap 1258 drivers/media/platform/s5p-jpeg/jpeg-core.c sizeof(cap->card)); cap 1260 drivers/media/platform/s5p-jpeg/jpeg-core.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 252 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c struct v4l2_capability *cap) cap 256 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c strscpy(cap->driver, S5P_MFC_NAME, sizeof(cap->driver)); cap 257 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c strscpy(cap->card, dev->vfd_dec->name, sizeof(cap->card)); cap 258 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 1300 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c struct v4l2_capability *cap) cap 1304 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c strscpy(cap->driver, S5P_MFC_NAME, sizeof(cap->driver)); cap 1305 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c strscpy(cap->card, dev->vfd_enc->name, sizeof(cap->card)); cap 1306 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 346 drivers/media/platform/sh_veu.c struct v4l2_capability *cap) cap 348 drivers/media/platform/sh_veu.c strscpy(cap->driver, "sh-veu", sizeof(cap->driver)); cap 349 drivers/media/platform/sh_veu.c strscpy(cap->card, "sh-mobile VEU", sizeof(cap->card)); cap 350 drivers/media/platform/sh_veu.c strscpy(cap->bus_info, "platform:sh-veu", sizeof(cap->bus_info)); cap 369 drivers/media/platform/sh_vou.c struct v4l2_capability *cap) cap 375 drivers/media/platform/sh_vou.c strscpy(cap->card, "SuperH VOU", sizeof(cap->card)); cap 376 drivers/media/platform/sh_vou.c strscpy(cap->driver, "sh-vou", sizeof(cap->driver)); cap 377 drivers/media/platform/sh_vou.c strscpy(cap->bus_info, "platform:sh-vou", sizeof(cap->bus_info)); cap 685 drivers/media/platform/sti/bdisp/bdisp-v4l2.c struct v4l2_capability *cap) cap 690 drivers/media/platform/sti/bdisp/bdisp-v4l2.c strscpy(cap->driver, bdisp->pdev->name, sizeof(cap->driver)); cap 691 drivers/media/platform/sti/bdisp/bdisp-v4l2.c strscpy(cap->card, bdisp->pdev->name, sizeof(cap->card)); cap 692 drivers/media/platform/sti/bdisp/bdisp-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s%d", cap 383 drivers/media/platform/sti/delta/delta-v4l2.c struct v4l2_capability *cap) cap 388 drivers/media/platform/sti/delta/delta-v4l2.c strscpy(cap->driver, DELTA_NAME, sizeof(cap->driver)); cap 389 drivers/media/platform/sti/delta/delta-v4l2.c strscpy(cap->card, delta->vdev->name, sizeof(cap->card)); cap 390 drivers/media/platform/sti/delta/delta-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 255 drivers/media/platform/sti/hva/hva-v4l2.c struct v4l2_capability *cap) cap 260 drivers/media/platform/sti/hva/hva-v4l2.c strscpy(cap->driver, HVA_NAME, sizeof(cap->driver)); cap 261 drivers/media/platform/sti/hva/hva-v4l2.c strscpy(cap->card, hva->vdev->name, sizeof(cap->card)); cap 262 drivers/media/platform/sti/hva/hva-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 1321 drivers/media/platform/stm32/stm32-dcmi.c struct v4l2_capability *cap) cap 1323 drivers/media/platform/stm32/stm32-dcmi.c strscpy(cap->driver, DRV_NAME, sizeof(cap->driver)); cap 1324 drivers/media/platform/stm32/stm32-dcmi.c strscpy(cap->card, "STM32 Camera Memory Interface", cap 1325 drivers/media/platform/stm32/stm32-dcmi.c sizeof(cap->card)); cap 1326 drivers/media/platform/stm32/stm32-dcmi.c strscpy(cap->bus_info, "platform:dcmi", sizeof(cap->bus_info)); cap 54 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c struct v4l2_capability *cap) cap 58 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 59 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c strscpy(cap->card, "sun4i-csi", sizeof(cap->card)); cap 60 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 315 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c struct v4l2_capability *cap) cap 319 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c strscpy(cap->driver, "sun6i-video", sizeof(cap->driver)); cap 320 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c strscpy(cap->card, video->vdev.name, sizeof(cap->card)); cap 321 drivers/media/platform/sunxi/sun6i-csi/sun6i_video.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 905 drivers/media/platform/ti-vpe/cal.c struct v4l2_capability *cap) cap 909 drivers/media/platform/ti-vpe/cal.c strscpy(cap->driver, CAL_MODULE_NAME, sizeof(cap->driver)); cap 910 drivers/media/platform/ti-vpe/cal.c strscpy(cap->card, CAL_MODULE_NAME, sizeof(cap->card)); cap 912 drivers/media/platform/ti-vpe/cal.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 1492 drivers/media/platform/ti-vpe/vpe.c struct v4l2_capability *cap) cap 1494 drivers/media/platform/ti-vpe/vpe.c strscpy(cap->driver, VPE_MODULE_NAME, sizeof(cap->driver)); cap 1495 drivers/media/platform/ti-vpe/vpe.c strscpy(cap->card, VPE_MODULE_NAME, sizeof(cap->card)); cap 1496 drivers/media/platform/ti-vpe/vpe.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 916 drivers/media/platform/via-camera.c struct v4l2_capability *cap) cap 918 drivers/media/platform/via-camera.c strscpy(cap->driver, "via-camera", sizeof(cap->driver)); cap 919 drivers/media/platform/via-camera.c strscpy(cap->card, "via-camera", sizeof(cap->card)); cap 920 drivers/media/platform/via-camera.c strscpy(cap->bus_info, "platform:via-camera", sizeof(cap->bus_info)); cap 169 drivers/media/platform/vicodec/vicodec-core.c static void copy_cap_to_ref(const u8 *cap, const struct v4l2_fwht_pixfmt_info *info, cap 181 drivers/media/platform/vicodec/vicodec-core.c const u8 *row_cap = cap; cap 201 drivers/media/platform/vicodec/vicodec-core.c cap += cap_stride * (state->coded_height / h_div); cap 705 drivers/media/platform/vicodec/vicodec-core.c struct v4l2_capability *cap) cap 707 drivers/media/platform/vicodec/vicodec-core.c strscpy(cap->driver, VICODEC_NAME, sizeof(cap->driver)); cap 708 drivers/media/platform/vicodec/vicodec-core.c strscpy(cap->card, VICODEC_NAME, sizeof(cap->card)); cap 709 drivers/media/platform/vicodec/vicodec-core.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 660 drivers/media/platform/vim2m.c struct v4l2_capability *cap) cap 662 drivers/media/platform/vim2m.c strscpy(cap->driver, MEM2MEM_NAME, sizeof(cap->driver)); cap 663 drivers/media/platform/vim2m.c strscpy(cap->card, MEM2MEM_NAME, sizeof(cap->card)); cap 664 drivers/media/platform/vim2m.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 61 drivers/media/platform/vimc/vimc-capture.c struct v4l2_capability *cap) cap 63 drivers/media/platform/vimc/vimc-capture.c strscpy(cap->driver, VIMC_PDEV_NAME, sizeof(cap->driver)); cap 64 drivers/media/platform/vimc/vimc-capture.c strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); cap 65 drivers/media/platform/vimc/vimc-capture.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 196 drivers/media/platform/vivid/vivid-core.c struct v4l2_capability *cap) cap 200 drivers/media/platform/vivid/vivid-core.c strscpy(cap->driver, "vivid", sizeof(cap->driver)); cap 201 drivers/media/platform/vivid/vivid-core.c strscpy(cap->card, "vivid", sizeof(cap->card)); cap 202 drivers/media/platform/vivid/vivid-core.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 205 drivers/media/platform/vivid/vivid-core.c cap->capabilities = dev->vid_cap_caps | dev->vid_out_caps | cap 51 drivers/media/platform/vivid/vivid-kthread-cap.c u16 *cap, const u16 *osd) cap 60 drivers/media/platform/vivid/vivid-kthread-cap.c out = *cap; cap 61 drivers/media/platform/vivid/vivid-kthread-cap.c *cap = *osd; cap 90 drivers/media/platform/vivid/vivid-kthread-cap.c *cap & dev->fmt_cap->alpha_mask) cap 93 drivers/media/platform/vivid/vivid-kthread-cap.c !(*cap & dev->fmt_cap->alpha_mask)) cap 96 drivers/media/platform/vivid/vivid-kthread-cap.c *cap = out; cap 333 drivers/media/platform/vivid/vivid-vbi-cap.c int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) cap 342 drivers/media/platform/vivid/vivid-vbi-cap.c cap->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) cap 347 drivers/media/platform/vivid/vivid-vbi-cap.c cap->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) cap 351 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_set = is_60hz ? V4L2_SLICED_CAPTION_525 : cap 354 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_lines[0][21] = V4L2_SLICED_CAPTION_525; cap 355 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_lines[1][21] = V4L2_SLICED_CAPTION_525; cap 360 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_lines[0][i] = cap 361 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_lines[1][i] = V4L2_SLICED_TELETEXT_B; cap 362 drivers/media/platform/vivid/vivid-vbi-cap.c cap->service_lines[0][23] = V4L2_SLICED_WSS_625; cap 22 drivers/media/platform/vivid/vivid-vbi-cap.h int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap); cap 979 drivers/media/platform/vivid/vivid-vid-common.c struct v4l2_dv_timings_cap *cap) cap 991 drivers/media/platform/vivid/vivid-vid-common.c *cap = vivid_dv_timings_cap; cap 34 drivers/media/platform/vivid/vivid-vid-common.h int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap); cap 420 drivers/media/platform/vsp1/vsp1_histo.c struct v4l2_capability *cap) cap 425 drivers/media/platform/vsp1/vsp1_histo.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING cap 430 drivers/media/platform/vsp1/vsp1_histo.c strscpy(cap->driver, "vsp1", sizeof(cap->driver)); cap 431 drivers/media/platform/vsp1/vsp1_histo.c strscpy(cap->card, histo->video.name, sizeof(cap->card)); cap 432 drivers/media/platform/vsp1/vsp1_histo.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 950 drivers/media/platform/vsp1/vsp1_video.c vsp1_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 955 drivers/media/platform/vsp1/vsp1_video.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING cap 960 drivers/media/platform/vsp1/vsp1_video.c strscpy(cap->driver, "vsp1", sizeof(cap->driver)); cap 961 drivers/media/platform/vsp1/vsp1_video.c strscpy(cap->card, video->video.name, sizeof(cap->card)); cap 962 drivers/media/platform/vsp1/vsp1_video.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 489 drivers/media/platform/xilinx/xilinx-dma.c xvip_dma_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 494 drivers/media/platform/xilinx/xilinx-dma.c cap->capabilities = dma->xdev->v4l2_caps | V4L2_CAP_STREAMING | cap 497 drivers/media/platform/xilinx/xilinx-dma.c strscpy(cap->driver, "xilinx-vipp", sizeof(cap->driver)); cap 498 drivers/media/platform/xilinx/xilinx-dma.c strscpy(cap->card, dma->video.name, sizeof(cap->card)); cap 499 drivers/media/platform/xilinx/xilinx-dma.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%pOFn:%u", cap 383 drivers/media/spi/gs1662.c struct v4l2_dv_timings_cap *cap) cap 385 drivers/media/spi/gs1662.c if (cap->pad != 0) cap 388 drivers/media/spi/gs1662.c *cap = gs_timings_cap; cap 607 drivers/media/usb/airspy/airspy.c struct v4l2_capability *cap) cap 611 drivers/media/usb/airspy/airspy.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 612 drivers/media/usb/airspy/airspy.c strscpy(cap->card, s->vdev.name, sizeof(cap->card)); cap 613 drivers/media/usb/airspy/airspy.c usb_make_path(s->udev, cap->bus_info, sizeof(cap->bus_info)); cap 1182 drivers/media/usb/au0828/au0828-video.c struct v4l2_capability *cap) cap 1189 drivers/media/usb/au0828/au0828-video.c strscpy(cap->driver, "au0828", sizeof(cap->driver)); cap 1190 drivers/media/usb/au0828/au0828-video.c strscpy(cap->card, dev->board.name, sizeof(cap->card)); cap 1191 drivers/media/usb/au0828/au0828-video.c usb_make_path(dev->usbdev, cap->bus_info, sizeof(cap->bus_info)); cap 1194 drivers/media/usb/au0828/au0828-video.c cap->capabilities = cap 488 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_captureparm *cap = &p->parm.capture; cap 494 drivers/media/usb/cpia2/cpia2_v4l.c cap->capability = V4L2_CAP_TIMEPERFRAME; cap 495 drivers/media/usb/cpia2/cpia2_v4l.c cap->readbuffers = cam->num_frames; cap 498 drivers/media/usb/cpia2/cpia2_v4l.c cap->timeperframe = framerate_controls[i].period; cap 507 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_captureparm *cap = &p->parm.capture; cap 508 drivers/media/usb/cpia2/cpia2_v4l.c struct v4l2_fract tpf = cap->timeperframe; cap 532 drivers/media/usb/cpia2/cpia2_v4l.c cap->timeperframe = framerate_controls[i].period; cap 1555 drivers/media/usb/cx231xx/cx231xx-video.c struct v4l2_capability *cap) cap 1560 drivers/media/usb/cx231xx/cx231xx-video.c strscpy(cap->driver, "cx231xx", sizeof(cap->driver)); cap 1561 drivers/media/usb/cx231xx/cx231xx-video.c strscpy(cap->card, cx231xx_boards[dev->model].name, sizeof(cap->card)); cap 1562 drivers/media/usb/cx231xx/cx231xx-video.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 1563 drivers/media/usb/cx231xx/cx231xx-video.c cap->capabilities = V4L2_CAP_READWRITE | cap 1567 drivers/media/usb/cx231xx/cx231xx-video.c cap->capabilities |= V4L2_CAP_RADIO; cap 1569 drivers/media/usb/cx231xx/cx231xx-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 941 drivers/media/usb/cx231xx/cx231xx.h struct v4l2_capability *cap); cap 968 drivers/media/usb/dvb-usb/cxusb-analog.c struct v4l2_capability *cap) cap 972 drivers/media/usb/dvb-usb/cxusb-analog.c strscpy(cap->driver, dvbdev->udev->dev.driver->name, cap 973 drivers/media/usb/dvb-usb/cxusb-analog.c sizeof(cap->driver)); cap 974 drivers/media/usb/dvb-usb/cxusb-analog.c strscpy(cap->card, "Medion 95700", sizeof(cap->card)); cap 975 drivers/media/usb/dvb-usb/cxusb-analog.c usb_make_path(dvbdev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 977 drivers/media/usb/dvb-usb/cxusb-analog.c cap->capabilities = videocaps | radiocaps | V4L2_CAP_DEVICE_CAPS; cap 1977 drivers/media/usb/em28xx/em28xx-video.c struct v4l2_capability *cap) cap 1983 drivers/media/usb/em28xx/em28xx-video.c strscpy(cap->driver, "em28xx", sizeof(cap->driver)); cap 1984 drivers/media/usb/em28xx/em28xx-video.c strscpy(cap->card, em28xx_boards[dev->model].name, sizeof(cap->card)); cap 1985 drivers/media/usb/em28xx/em28xx-video.c usb_make_path(udev, cap->bus_info, sizeof(cap->bus_info)); cap 1987 drivers/media/usb/em28xx/em28xx-video.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_READWRITE | cap 1990 drivers/media/usb/em28xx/em28xx-video.c cap->capabilities |= V4L2_CAP_AUDIO; cap 1992 drivers/media/usb/em28xx/em28xx-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 1994 drivers/media/usb/em28xx/em28xx-video.c cap->capabilities |= V4L2_CAP_VBI_CAPTURE; cap 1996 drivers/media/usb/em28xx/em28xx-video.c cap->capabilities |= V4L2_CAP_RADIO; cap 275 drivers/media/usb/go7007/go7007-v4l2.c struct v4l2_capability *cap) cap 279 drivers/media/usb/go7007/go7007-v4l2.c strscpy(cap->driver, "go7007", sizeof(cap->driver)); cap 280 drivers/media/usb/go7007/go7007-v4l2.c strscpy(cap->card, go->name, sizeof(cap->card)); cap 281 drivers/media/usb/go7007/go7007-v4l2.c strscpy(cap->bus_info, go->bus_info, sizeof(cap->bus_info)); cap 1188 drivers/media/usb/gspca/gspca.c struct v4l2_capability *cap) cap 1192 drivers/media/usb/gspca/gspca.c strscpy((char *)cap->driver, gspca_dev->sd_desc->name, cap 1193 drivers/media/usb/gspca/gspca.c sizeof(cap->driver)); cap 1195 drivers/media/usb/gspca/gspca.c strscpy((char *)cap->card, gspca_dev->dev->product, cap 1196 drivers/media/usb/gspca/gspca.c sizeof(cap->card)); cap 1198 drivers/media/usb/gspca/gspca.c snprintf((char *) cap->card, sizeof cap->card, cap 1203 drivers/media/usb/gspca/gspca.c usb_make_path(gspca_dev->dev, (char *) cap->bus_info, cap 1204 drivers/media/usb/gspca/gspca.c sizeof(cap->bus_info)); cap 880 drivers/media/usb/gspca/sq930x.c const struct cap_s *cap; cap 884 drivers/media/usb/gspca/sq930x.c cap = &capconfig[sd->sensor][mode]; cap 886 drivers/media/usb/gspca/sq930x.c 0x0a00 | cap->cc_sizeid, cap 887 drivers/media/usb/gspca/sq930x.c cap->cc_bytes, 32); cap 895 drivers/media/usb/hackrf/hackrf.c struct v4l2_capability *cap) cap 902 drivers/media/usb/hackrf/hackrf.c cap->capabilities = V4L2_CAP_SDR_CAPTURE | V4L2_CAP_TUNER | cap 906 drivers/media/usb/hackrf/hackrf.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 907 drivers/media/usb/hackrf/hackrf.c strscpy(cap->card, dev->rx_vdev.name, sizeof(cap->card)); cap 908 drivers/media/usb/hackrf/hackrf.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 580 drivers/media/usb/hdpvr/hdpvr-video.c struct v4l2_capability *cap) cap 584 drivers/media/usb/hdpvr/hdpvr-video.c strscpy(cap->driver, "hdpvr", sizeof(cap->driver)); cap 585 drivers/media/usb/hdpvr/hdpvr-video.c strscpy(cap->card, "Hauppauge HD PVR", sizeof(cap->card)); cap 586 drivers/media/usb/hdpvr/hdpvr-video.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 736 drivers/media/usb/hdpvr/hdpvr-video.c struct v4l2_dv_timings_cap *cap) cap 744 drivers/media/usb/hdpvr/hdpvr-video.c cap->type = V4L2_DV_BT_656_1120; cap 745 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.min_width = 720; cap 746 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.max_width = 1920; cap 747 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.min_height = 480; cap 748 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.max_height = 1080; cap 749 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.min_pixelclock = 27000000; cap 750 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.max_pixelclock = 74250000; cap 751 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.standards = V4L2_DV_BT_STD_CEA861; cap 752 drivers/media/usb/hdpvr/hdpvr-video.c cap->bt.capabilities = V4L2_DV_BT_CAP_INTERLACED | V4L2_DV_BT_CAP_PROGRESSIVE; cap 585 drivers/media/usb/msi2500/msi2500.c struct v4l2_capability *cap) cap 591 drivers/media/usb/msi2500/msi2500.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 592 drivers/media/usb/msi2500/msi2500.c strscpy(cap->card, dev->vdev.name, sizeof(cap->card)); cap 593 drivers/media/usb/msi2500/msi2500.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 441 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 446 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *left = cap->bounds.left; cap 452 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 457 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *left = cap->bounds.left; cap 458 drivers/media/usb/pvrusb2/pvrusb2-hdw.c if (cap->bounds.width > cptr->hdw->cropw_val) { cap 459 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *left += cap->bounds.width - cptr->hdw->cropw_val; cap 466 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 471 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *top = cap->bounds.top; cap 477 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 482 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *top = cap->bounds.top; cap 483 drivers/media/usb/pvrusb2/pvrusb2-hdw.c if (cap->bounds.height > cptr->hdw->croph_val) { cap 484 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *top += cap->bounds.height - cptr->hdw->croph_val; cap 491 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 498 drivers/media/usb/pvrusb2/pvrusb2-hdw.c bleftend = cap->bounds.left+cap->bounds.width; cap 507 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 514 drivers/media/usb/pvrusb2/pvrusb2-hdw.c btopend = cap->bounds.top+cap->bounds.height; cap 523 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 528 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->bounds.left; cap 534 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 539 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->bounds.top; cap 545 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 550 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->bounds.width; cap 556 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 561 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->bounds.height; cap 567 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 572 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->defrect.left; cap 578 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 583 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->defrect.top; cap 589 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 594 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->defrect.width; cap 600 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 605 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->defrect.height; cap 611 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 616 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->pixelaspect.numerator; cap 622 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct v4l2_cropcap *cap = &cptr->hdw->cropcap_info; cap 627 drivers/media/usb/pvrusb2/pvrusb2-hdw.c *val = cap->pixelaspect.denominator; cap 109 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) cap 114 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c strscpy(cap->driver, "pvrusb2", sizeof(cap->driver)); cap 115 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c strscpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), cap 116 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c sizeof(cap->bus_info)); cap 117 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); cap 118 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER | cap 690 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct v4l2_cropcap cap = { .type = type }; cap 695 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_hdw_get_cropcap(hdw, &cap); cap 697 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c *f = cap.pixelaspect; cap 706 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c struct v4l2_cropcap cap; cap 713 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c cap.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; cap 739 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_hdw_get_cropcap(hdw, &cap); cap 740 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c sel->r = cap.defrect; cap 743 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c ret = pvr2_hdw_get_cropcap(hdw, &cap); cap 744 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c sel->r = cap.bounds; cap 479 drivers/media/usb/pwc/pwc-v4l.c static int pwc_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 483 drivers/media/usb/pwc/pwc-v4l.c strscpy(cap->driver, PWC_NAME, sizeof(cap->driver)); cap 484 drivers/media/usb/pwc/pwc-v4l.c strscpy(cap->card, pdev->vdev.name, sizeof(cap->card)); cap 485 drivers/media/usb/pwc/pwc-v4l.c usb_make_path(pdev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 712 drivers/media/usb/s2255/s2255drv.c struct v4l2_capability *cap) cap 717 drivers/media/usb/s2255/s2255drv.c strscpy(cap->driver, "s2255", sizeof(cap->driver)); cap 718 drivers/media/usb/s2255/s2255drv.c strscpy(cap->card, "s2255", sizeof(cap->card)); cap 719 drivers/media/usb/s2255/s2255drv.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 332 drivers/media/usb/stk1160/stk1160-v4l.c void *priv, struct v4l2_capability *cap) cap 336 drivers/media/usb/stk1160/stk1160-v4l.c strscpy(cap->driver, "stk1160", sizeof(cap->driver)); cap 337 drivers/media/usb/stk1160/stk1160-v4l.c strscpy(cap->card, "stk1160", sizeof(cap->card)); cap 338 drivers/media/usb/stk1160/stk1160-v4l.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 793 drivers/media/usb/stkwebcam/stk-webcam.c void *priv, struct v4l2_capability *cap) cap 797 drivers/media/usb/stkwebcam/stk-webcam.c strscpy(cap->driver, "stk", sizeof(cap->driver)); cap 798 drivers/media/usb/stkwebcam/stk-webcam.c strscpy(cap->card, "stk", sizeof(cap->card)); cap 799 drivers/media/usb/stkwebcam/stk-webcam.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 851 drivers/media/usb/tm6000/tm6000-video.c struct v4l2_capability *cap) cap 855 drivers/media/usb/tm6000/tm6000-video.c strscpy(cap->driver, "tm6000", sizeof(cap->driver)); cap 856 drivers/media/usb/tm6000/tm6000-video.c strscpy(cap->card, "Trident TVMaster TM5600/6000/6010", cap 857 drivers/media/usb/tm6000/tm6000-video.c sizeof(cap->card)); cap 858 drivers/media/usb/tm6000/tm6000-video.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 859 drivers/media/usb/tm6000/tm6000-video.c cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_READWRITE | cap 862 drivers/media/usb/tm6000/tm6000-video.c cap->capabilities |= V4L2_CAP_TUNER; cap 864 drivers/media/usb/tm6000/tm6000-video.c cap->capabilities |= V4L2_CAP_RADIO; cap 599 drivers/media/usb/usbtv/usbtv-video.c struct v4l2_capability *cap) cap 603 drivers/media/usb/usbtv/usbtv-video.c strscpy(cap->driver, "usbtv", sizeof(cap->driver)); cap 604 drivers/media/usb/usbtv/usbtv-video.c strscpy(cap->card, "usbtv", sizeof(cap->card)); cap 605 drivers/media/usb/usbtv/usbtv-video.c usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 26 drivers/media/usb/uvc/uvc_metadata.c struct v4l2_capability *cap) cap 32 drivers/media/usb/uvc/uvc_metadata.c strscpy(cap->driver, "uvcvideo", sizeof(cap->driver)); cap 33 drivers/media/usb/uvc/uvc_metadata.c strscpy(cap->card, vfh->vdev->name, sizeof(cap->card)); cap 34 drivers/media/usb/uvc/uvc_metadata.c usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 35 drivers/media/usb/uvc/uvc_metadata.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING cap 580 drivers/media/usb/uvc/uvc_v4l2.c struct v4l2_capability *cap) cap 587 drivers/media/usb/uvc/uvc_v4l2.c strscpy(cap->driver, "uvcvideo", sizeof(cap->driver)); cap 588 drivers/media/usb/uvc/uvc_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); cap 589 drivers/media/usb/uvc/uvc_v4l2.c usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info)); cap 590 drivers/media/usb/uvc/uvc_v4l2.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING cap 687 drivers/media/usb/zr364xx/zr364xx.c struct v4l2_capability *cap) cap 691 drivers/media/usb/zr364xx/zr364xx.c strscpy(cap->driver, DRIVER_DESC, sizeof(cap->driver)); cap 693 drivers/media/usb/zr364xx/zr364xx.c strscpy(cap->card, cam->udev->product, sizeof(cap->card)); cap 694 drivers/media/usb/zr364xx/zr364xx.c strscpy(cap->bus_info, dev_name(&cam->udev->dev), cap 695 drivers/media/usb/zr364xx/zr364xx.c sizeof(cap->bus_info)); cap 146 drivers/media/v4l2-core/v4l2-dv-timings.c const struct v4l2_bt_timings_cap *cap = &dvcap->bt; cap 147 drivers/media/v4l2-core/v4l2-dv-timings.c u32 caps = cap->capabilities; cap 152 drivers/media/v4l2-core/v4l2-dv-timings.c bt->height < cap->min_height || cap 153 drivers/media/v4l2-core/v4l2-dv-timings.c bt->height > cap->max_height || cap 154 drivers/media/v4l2-core/v4l2-dv-timings.c bt->width < cap->min_width || cap 155 drivers/media/v4l2-core/v4l2-dv-timings.c bt->width > cap->max_width || cap 156 drivers/media/v4l2-core/v4l2-dv-timings.c bt->pixelclock < cap->min_pixelclock || cap 157 drivers/media/v4l2-core/v4l2-dv-timings.c bt->pixelclock > cap->max_pixelclock || cap 159 drivers/media/v4l2-core/v4l2-dv-timings.c cap->standards && bt->standards && cap 160 drivers/media/v4l2-core/v4l2-dv-timings.c !(bt->standards & cap->standards)) || cap 169 drivers/media/v4l2-core/v4l2-dv-timings.c const struct v4l2_dv_timings_cap *cap, cap 177 drivers/media/v4l2-core/v4l2-dv-timings.c if (v4l2_valid_dv_timings(v4l2_dv_timings_presets + i, cap, cap 189 drivers/media/v4l2-core/v4l2-dv-timings.c const struct v4l2_dv_timings_cap *cap, cap 196 drivers/media/v4l2-core/v4l2-dv-timings.c if (!v4l2_valid_dv_timings(t, cap, fnc, fnc_handle)) cap 200 drivers/media/v4l2-core/v4l2-dv-timings.c if (v4l2_valid_dv_timings(v4l2_dv_timings_presets + i, cap, cap 1050 drivers/media/v4l2-core/v4l2-ioctl.c struct v4l2_capability *cap = (struct v4l2_capability *)arg; cap 1054 drivers/media/v4l2-core/v4l2-ioctl.c cap->version = LINUX_VERSION_CODE; cap 1055 drivers/media/v4l2-core/v4l2-ioctl.c cap->device_caps = vfd->device_caps; cap 1056 drivers/media/v4l2-core/v4l2-ioctl.c cap->capabilities = vfd->device_caps | V4L2_CAP_DEVICE_CAPS; cap 1058 drivers/media/v4l2-core/v4l2-ioctl.c ret = ops->vidioc_querycap(file, fh, cap); cap 1064 drivers/media/v4l2-core/v4l2-ioctl.c WARN_ON(cap->device_caps != vfd->device_caps); cap 1069 drivers/media/v4l2-core/v4l2-ioctl.c WARN_ON((cap->capabilities & cap 1072 drivers/media/v4l2-core/v4l2-ioctl.c cap->capabilities |= V4L2_CAP_EXT_PIX_FORMAT; cap 1073 drivers/media/v4l2-core/v4l2-ioctl.c cap->device_caps |= V4L2_CAP_EXT_PIX_FORMAT; cap 283 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_dv_timings_cap *cap) cap 285 drivers/media/v4l2-core/v4l2-subdev.c if (!cap) cap 288 drivers/media/v4l2-core/v4l2-subdev.c return check_pad(sd, cap->pad) ? : cap 289 drivers/media/v4l2-core/v4l2-subdev.c sd->ops->pad->dv_timings_cap(sd, cap); cap 565 drivers/media/v4l2-core/v4l2-subdev.c struct v4l2_dv_timings_cap *cap = arg; cap 567 drivers/media/v4l2-core/v4l2-subdev.c return v4l2_subdev_call(sd, pad, dv_timings_cap, cap); cap 94 drivers/misc/cardreader/rts5227.c u16 cap; cap 108 drivers/misc/cardreader/rts5227.c pcie_capability_read_word(pcr->pci, PCI_EXP_DEVCTL2, &cap); cap 109 drivers/misc/cardreader/rts5227.c if (cap & PCI_EXP_DEVCTL2_LTR_EN) cap 3012 drivers/mtd/spi-nor/spi-nor.c unsigned int cap; cap 3020 drivers/mtd/spi-nor/spi-nor.c for (cap = 0; cap < sizeof(*hwcaps) * BITS_PER_BYTE; cap++) { cap 3023 drivers/mtd/spi-nor/spi-nor.c if (!(*hwcaps & BIT(cap))) cap 3026 drivers/mtd/spi-nor/spi-nor.c rdidx = spi_nor_hwcaps_read2cmd(BIT(cap)); cap 3029 drivers/mtd/spi-nor/spi-nor.c *hwcaps &= ~BIT(cap); cap 3031 drivers/mtd/spi-nor/spi-nor.c ppidx = spi_nor_hwcaps_pp2cmd(BIT(cap)); cap 3037 drivers/mtd/spi-nor/spi-nor.c *hwcaps &= ~BIT(cap); cap 77 drivers/net/arcnet/capmode.c memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto)); cap 78 drivers/net/arcnet/capmode.c memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int), cap 79 drivers/net/arcnet/capmode.c pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto), cap 80 drivers/net/arcnet/capmode.c sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto)); cap 107 drivers/net/arcnet/capmode.c *((int *)&pkt->soft.cap.cookie[0])); cap 148 drivers/net/arcnet/capmode.c *((int *)&pkt->soft.cap.cookie[0])); cap 171 drivers/net/arcnet/capmode.c lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto, cap 172 drivers/net/arcnet/capmode.c sizeof(pkt->soft.cap.proto)); cap 178 drivers/net/arcnet/capmode.c ((unsigned char *)&pkt->soft.cap.mes), length - 1); cap 212 drivers/net/arcnet/capmode.c ackpkt->soft.cap.proto = 0; /* using protocol 0 for acknowledge */ cap 213 drivers/net/arcnet/capmode.c ackpkt->soft.cap.mes.ack = acked; cap 216 drivers/net/arcnet/capmode.c *((int *)&ackpkt->soft.cap.cookie[0])); cap 2073 drivers/net/ethernet/amazon/ena/ena_com.c u32 stat, timeout, cap, reset_val; cap 2077 drivers/net/ethernet/amazon/ena/ena_com.c cap = ena_com_reg_bar_read32(ena_dev, ENA_REGS_CAPS_OFF); cap 2080 drivers/net/ethernet/amazon/ena/ena_com.c (cap == ENA_MMIO_READ_TIMEOUT))) { cap 2090 drivers/net/ethernet/amazon/ena/ena_com.c timeout = (cap & ENA_REGS_CAPS_RESET_TIMEOUT_MASK) >> cap 2121 drivers/net/ethernet/amazon/ena/ena_com.c timeout = (cap & ENA_REGS_CAPS_ADMIN_CMD_TO_MASK) >> cap 2150 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c static u8 bnx2x_dcbnl_get_cap(struct net_device *netdev, int capid, u8 *cap) cap 2158 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = true; cap 2161 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = true; cap 2164 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = false; cap 2167 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = 0x80; /* 8 priorities for PGs */ cap 2170 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = 0x80; /* 8 priorities for PFC */ cap 2173 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = true; cap 2176 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = false; cap 2179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c *cap = BNX2X_DCBX_CAPS; cap 2191 drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c DP(BNX2X_MSG_DCB, "capid %d:%x\n", capid, *cap); cap 14873 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 cap = SHMEM2_RD(bp, drv_capabilities_flag[idx]); cap 14882 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c cap |= DRV_FLAGS_CAPABILITIES_LOADED_ISCSI; cap 14884 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c cap |= DRV_FLAGS_CAPABILITIES_LOADED_FCOE; cap 14885 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c SHMEM2_WR(bp, drv_capabilities_flag[idx], cap); cap 14914 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 cap; cap 14916 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c cap = SHMEM2_RD(bp, drv_capabilities_flag[idx]); cap 14918 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c cap &= ~DRV_FLAGS_CAPABILITIES_LOADED_ISCSI; cap 14920 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c cap &= ~DRV_FLAGS_CAPABILITIES_LOADED_FCOE; cap 14921 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c SHMEM2_WR(bp, drv_capabilities_flag[idx], cap); cap 1142 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c pci_read_config_dword(dev, pos + PCI_SRIOV_CAP, &iov->cap); cap 1170 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c iov->first_vf_in_pf, iov->nres, iov->cap, iov->ctrl, iov->total, cap 49 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h u32 cap; /* SR-IOV Capabilities */ cap 1957 drivers/net/ethernet/broadcom/tg3.c u8 cap = 0; cap 1960 drivers/net/ethernet/broadcom/tg3.c cap = FLOW_CTRL_TX | FLOW_CTRL_RX; cap 1963 drivers/net/ethernet/broadcom/tg3.c cap = FLOW_CTRL_RX; cap 1965 drivers/net/ethernet/broadcom/tg3.c cap = FLOW_CTRL_TX; cap 1968 drivers/net/ethernet/broadcom/tg3.c return cap; cap 599 drivers/net/ethernet/chelsio/cxgb/cxgb2.c int cap = 0; cap 604 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_10baseT_Full; cap 606 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_10baseT_Half; cap 610 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_100baseT_Full; cap 612 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_100baseT_Half; cap 616 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_1000baseT_Full; cap 618 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_1000baseT_Half; cap 622 drivers/net/ethernet/chelsio/cxgb/cxgb2.c cap = SUPPORTED_10000baseT_Full; cap 624 drivers/net/ethernet/chelsio/cxgb/cxgb2.c return cap; cap 648 drivers/net/ethernet/chelsio/cxgb/cxgb2.c int cap = speed_duplex_to_caps(speed, cmd->base.duplex); cap 650 drivers/net/ethernet/chelsio/cxgb/cxgb2.c if (!(lc->supported & cap) || (speed == SPEED_1000)) cap 1834 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int cap = 0; cap 1839 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_10baseT_Full; cap 1841 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_10baseT_Half; cap 1845 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_100baseT_Full; cap 1847 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_100baseT_Half; cap 1851 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_1000baseT_Full; cap 1853 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_1000baseT_Half; cap 1857 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c cap = SUPPORTED_10000baseT_Full; cap 1859 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c return cap; cap 1884 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int cap = speed_duplex_to_caps(speed, cmd->base.duplex); cap 1885 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (lc->supported & cap) cap 1893 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c int cap = speed_duplex_to_caps(speed, cmd->base.duplex); cap 1895 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c if (!(lc->supported & cap) || (speed == SPEED_1000)) cap 334 drivers/net/ethernet/cortina/gemini.c u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 336 drivers/net/ethernet/cortina/gemini.c if (cap & FLOW_CTRL_RX) cap 338 drivers/net/ethernet/cortina/gemini.c if (cap & FLOW_CTRL_TX) cap 2748 drivers/net/ethernet/dec/tulip/de4x5.c int ana, anlpa, cap, cr, slnk, sr; cap 2830 drivers/net/ethernet/dec/tulip/de4x5.c (cap = anlpa & MII_ANLPA_TAF & ana)) { cap 2831 drivers/net/ethernet/dec/tulip/de4x5.c if (cap & MII_ANA_100M) { cap 2834 drivers/net/ethernet/dec/tulip/de4x5.c } else if (cap & MII_ANA_10M) { cap 2933 drivers/net/ethernet/dec/tulip/de4x5.c s32 cr, anlpa, ana, cap, irqs, irq_mask, imr, omr, slnk, sr, sts; cap 3014 drivers/net/ethernet/dec/tulip/de4x5.c (cap = anlpa & MII_ANLPA_TAF & ana)) { cap 3015 drivers/net/ethernet/dec/tulip/de4x5.c if (cap & MII_ANA_100M) { cap 3018 drivers/net/ethernet/dec/tulip/de4x5.c } else if (cap & MII_ANA_10M) { cap 1104 drivers/net/ethernet/freescale/ucc_geth.h int cap; cap 3199 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_aqc_list_capabilities_element_resp *cap; cap 3208 drivers/net/ethernet/intel/i40e/i40e_common.c cap = (struct i40e_aqc_list_capabilities_element_resp *) buff; cap 3217 drivers/net/ethernet/intel/i40e/i40e_common.c for (i = 0; i < cap_count; i++, cap++) { cap 3218 drivers/net/ethernet/intel/i40e/i40e_common.c id = le16_to_cpu(cap->id); cap 3219 drivers/net/ethernet/intel/i40e/i40e_common.c number = le32_to_cpu(cap->number); cap 3220 drivers/net/ethernet/intel/i40e/i40e_common.c logical_id = le32_to_cpu(cap->logical_id); cap 3221 drivers/net/ethernet/intel/i40e/i40e_common.c phys_id = le32_to_cpu(cap->phys_id); cap 3222 drivers/net/ethernet/intel/i40e/i40e_common.c major_rev = cap->major_rev; cap 100 drivers/net/ethernet/intel/ice/ice_adminq_cmd.h __le16 cap; cap 1656 drivers/net/ethernet/intel/ice/ice_common.c u16 cap = le16_to_cpu(cap_resp->cap); cap 1658 drivers/net/ethernet/intel/ice/ice_common.c switch (cap) { cap 1766 drivers/net/ethernet/intel/ice/ice_common.c i, cap); cap 788 drivers/net/ethernet/intel/ice/ice_lib.c struct ice_hw_common_caps *cap; cap 796 drivers/net/ethernet/intel/ice/ice_lib.c cap = &pf->hw.func_caps.common_cap; cap 800 drivers/net/ethernet/intel/ice/ice_lib.c vsi->rss_table_size = cap->rss_table_size; cap 802 drivers/net/ethernet/intel/ice/ice_lib.c BIT(cap->rss_table_entry_width)); cap 811 drivers/net/ethernet/intel/ice/ice_lib.c BIT(cap->rss_table_entry_width)); cap 4069 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c u16 rel_num, prod_ver, mod_len, cap, offset; cap 4080 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c hw->eeprom.ops.read(hw, offset + NVM_OEM_PROD_VER_CAP_OFF, &cap); cap 4084 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c (cap & NVM_OEM_PROD_VER_CAP_MASK) != 0x0) cap 385 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c static u8 ixgbe_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) cap 391 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = true; cap 394 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = true; cap 397 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = false; cap 400 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = 0x80; cap 403 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = 0x80; cap 406 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = true; cap 409 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = false; cap 412 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = adapter->dcbx_cap; cap 415 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c *cap = false; cap 795 drivers/net/ethernet/marvell/skge.c static u32 skge_vpd_read(struct pci_dev *pdev, int cap, u16 offset) cap 799 drivers/net/ethernet/marvell/skge.c pci_write_config_word(pdev, cap + PCI_VPD_ADDR, offset); cap 802 drivers/net/ethernet/marvell/skge.c pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset); cap 805 drivers/net/ethernet/marvell/skge.c pci_read_config_dword(pdev, cap + PCI_VPD_DATA, &val); cap 809 drivers/net/ethernet/marvell/skge.c static void skge_vpd_write(struct pci_dev *pdev, int cap, u16 offset, u32 val) cap 811 drivers/net/ethernet/marvell/skge.c pci_write_config_dword(pdev, cap + PCI_VPD_DATA, val); cap 812 drivers/net/ethernet/marvell/skge.c pci_write_config_word(pdev, cap + PCI_VPD_ADDR, cap 816 drivers/net/ethernet/marvell/skge.c pci_read_config_word(pdev, cap + PCI_VPD_ADDR, &offset); cap 825 drivers/net/ethernet/marvell/skge.c int cap = pci_find_capability(pdev, PCI_CAP_ID_VPD); cap 829 drivers/net/ethernet/marvell/skge.c if (!cap) cap 835 drivers/net/ethernet/marvell/skge.c u32 val = skge_vpd_read(pdev, cap, offset); cap 851 drivers/net/ethernet/marvell/skge.c int cap = pci_find_capability(pdev, PCI_CAP_ID_VPD); cap 855 drivers/net/ethernet/marvell/skge.c if (!cap) cap 866 drivers/net/ethernet/marvell/skge.c val = skge_vpd_read(pdev, cap, offset); cap 869 drivers/net/ethernet/marvell/skge.c skge_vpd_write(pdev, cap, offset, val); cap 1651 drivers/net/ethernet/marvell/sky2.c int cap; cap 1661 drivers/net/ethernet/marvell/sky2.c (cap = pci_find_capability(hw->pdev, PCI_CAP_ID_PCIX))) { cap 1664 drivers/net/ethernet/marvell/sky2.c cmd = sky2_pci_read16(hw, cap + PCI_X_CMD); cap 1666 drivers/net/ethernet/marvell/sky2.c sky2_pci_write16(hw, cap + PCI_X_CMD, cmd); cap 4263 drivers/net/ethernet/marvell/sky2.c static int sky2_vpd_wait(const struct sky2_hw *hw, int cap, u16 busy) cap 4267 drivers/net/ethernet/marvell/sky2.c while ( (sky2_pci_read16(hw, cap + PCI_VPD_ADDR) & PCI_VPD_ADDR_F) == busy) { cap 4279 drivers/net/ethernet/marvell/sky2.c static int sky2_vpd_read(struct sky2_hw *hw, int cap, void *data, cap 4287 drivers/net/ethernet/marvell/sky2.c sky2_pci_write16(hw, cap + PCI_VPD_ADDR, offset); cap 4288 drivers/net/ethernet/marvell/sky2.c rc = sky2_vpd_wait(hw, cap, 0); cap 4292 drivers/net/ethernet/marvell/sky2.c val = sky2_pci_read32(hw, cap + PCI_VPD_DATA); cap 4303 drivers/net/ethernet/marvell/sky2.c static int sky2_vpd_write(struct sky2_hw *hw, int cap, const void *data, cap 4312 drivers/net/ethernet/marvell/sky2.c sky2_pci_write32(hw, cap + PCI_VPD_DATA, val); cap 4313 drivers/net/ethernet/marvell/sky2.c sky2_pci_write32(hw, cap + PCI_VPD_ADDR, offset | PCI_VPD_ADDR_F); cap 4315 drivers/net/ethernet/marvell/sky2.c rc = sky2_vpd_wait(hw, cap, PCI_VPD_ADDR_F); cap 4326 drivers/net/ethernet/marvell/sky2.c int cap = pci_find_capability(sky2->hw->pdev, PCI_CAP_ID_VPD); cap 4328 drivers/net/ethernet/marvell/sky2.c if (!cap) cap 4333 drivers/net/ethernet/marvell/sky2.c return sky2_vpd_read(sky2->hw, cap, data, eeprom->offset, eeprom->len); cap 4340 drivers/net/ethernet/marvell/sky2.c int cap = pci_find_capability(sky2->hw->pdev, PCI_CAP_ID_VPD); cap 4342 drivers/net/ethernet/marvell/sky2.c if (!cap) cap 4352 drivers/net/ethernet/marvell/sky2.c return sky2_vpd_write(sky2->hw, cap, data, eeprom->offset, eeprom->len); cap 88 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c static u8 mlx4_en_dcbnl_getcap(struct net_device *dev, int capid, u8 *cap) cap 94 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c *cap = true; cap 97 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c *cap = priv->dcbx_cap; cap 100 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c *cap = 1 << mlx4_max_tc(priv->mdev->dev); cap 103 drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c *cap = false; cap 296 drivers/net/ethernet/mellanox/mlx5/core/en.h u8 cap; cap 105 drivers/net/ethernet/mellanox/mlx5/core/en/port.c eproto->cap = MLX5_GET_ETH_PROTO(ptys_reg, out, ext, cap 215 drivers/net/ethernet/mellanox/mlx5/core/en/port.c if (eproto.cap & MLX5E_PROT_MASK(i)) cap 40 drivers/net/ethernet/mellanox/mlx5/core/en/port.h u32 cap; cap 403 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c return priv->dcbx.cap; cap 421 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dcbx->cap &= ~DCB_CAP_DCBX_HOST; cap 434 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dcbx->cap = mode; cap 815 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c int capid, u8 *cap) cap 823 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = true; cap 826 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = true; cap 829 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = false; cap 832 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = 1 << mlx5_max_tc(mdev); cap 835 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = 1 << mlx5_max_tc(mdev); cap 838 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = false; cap 841 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = false; cap 844 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = priv->dcbx.cap | cap 849 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c *cap = 0; cap 1195 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c priv->dcbx.cap = DCB_CAP_DCBX_VER_CEE | cap 1198 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c priv->dcbx.cap |= DCB_CAP_DCBX_HOST; cap 1079 drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c link_modes = link_modes & eproto.cap; cap 72 drivers/net/ethernet/mellanox/mlx5/core/fs_core.c #define FS_CAP(cap) (__mlx5_bit_off(flow_table_nic_cap, cap)) cap 310 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h #define MLX5_CAP_FLOWTABLE_TYPE(mdev, cap, type) ( \ cap 311 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_NIC_RX) ? MLX5_CAP_FLOWTABLE_NIC_RX(mdev, cap) : \ cap 312 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_ESW_EGRESS_ACL) ? MLX5_CAP_ESW_EGRESS_ACL(mdev, cap) : \ cap 313 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_ESW_INGRESS_ACL) ? MLX5_CAP_ESW_INGRESS_ACL(mdev, cap) : \ cap 314 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_FDB) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \ cap 315 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_SNIFFER_RX) ? MLX5_CAP_FLOWTABLE_SNIFFER_RX(mdev, cap) : \ cap 316 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_SNIFFER_TX) ? MLX5_CAP_FLOWTABLE_SNIFFER_TX(mdev, cap) : \ cap 317 drivers/net/ethernet/mellanox/mlx5/core/fs_core.h (type == FS_FT_RDMA_RX) ? MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) : \ cap 928 drivers/net/ethernet/microchip/lan743x_main.c u8 cap; cap 931 drivers/net/ethernet/microchip/lan743x_main.c cap = mii_resolve_flowctrl_fdx(local_adv, remote_adv); cap 933 drivers/net/ethernet/microchip/lan743x_main.c cap = phy->fc_request_control; cap 936 drivers/net/ethernet/microchip/lan743x_main.c cap & FLOW_CTRL_TX, cap 937 drivers/net/ethernet/microchip/lan743x_main.c cap & FLOW_CTRL_RX); cap 3064 drivers/net/ethernet/myricom/myri10ge/myri10ge.c int cap; cap 3102 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cap = pci_find_ext_capability(bridge, PCI_EXT_CAP_ID_ERR); cap 3103 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (!cap) cap 3106 drivers/net/ethernet/myricom/myri10ge/myri10ge.c ret = pci_read_config_dword(bridge, cap + PCI_ERR_CAP, &err_cap); cap 3118 drivers/net/ethernet/myricom/myri10ge/myri10ge.c pci_write_config_dword(bridge, cap + PCI_ERR_CAP, err_cap); cap 3256 drivers/net/ethernet/myricom/myri10ge/myri10ge.c int cap; cap 3262 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cap = pci_find_ext_capability(bridge, PCI_EXT_CAP_ID_ERR); cap 3263 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (cap) { cap 3267 drivers/net/ethernet/myricom/myri10ge/myri10ge.c pci_read_config_dword(bridge, cap + PCI_ERR_UNCOR_MASK, &mask); cap 3269 drivers/net/ethernet/myricom/myri10ge/myri10ge.c pci_write_config_dword(bridge, cap + PCI_ERR_UNCOR_MASK, mask); cap 29 drivers/net/ethernet/netronome/nfp/bpf/main.c return nn->cap & NFP_NET_CFG_CTRL_BPF && cap 203 drivers/net/ethernet/netronome/nfp/bpf/main.c struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; cap 206 drivers/net/ethernet/netronome/nfp/bpf/main.c if (length < sizeof(*cap)) { cap 211 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->adjust_head.flags = readl(&cap->flags); cap 212 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->adjust_head.off_min = readl(&cap->off_min); cap 213 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->adjust_head.off_max = readl(&cap->off_max); cap 214 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); cap 215 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); cap 234 drivers/net/ethernet/netronome/nfp/bpf/main.c struct nfp_bpf_cap_tlv_func __iomem *cap = value; cap 236 drivers/net/ethernet/netronome/nfp/bpf/main.c if (length < sizeof(*cap)) { cap 241 drivers/net/ethernet/netronome/nfp/bpf/main.c switch (readl(&cap->func_id)) { cap 243 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->helpers.map_lookup = readl(&cap->func_addr); cap 246 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->helpers.map_update = readl(&cap->func_addr); cap 249 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->helpers.map_delete = readl(&cap->func_addr); cap 252 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->helpers.perf_event_output = readl(&cap->func_addr); cap 262 drivers/net/ethernet/netronome/nfp/bpf/main.c struct nfp_bpf_cap_tlv_maps __iomem *cap = value; cap 264 drivers/net/ethernet/netronome/nfp/bpf/main.c if (length < sizeof(*cap)) { cap 269 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.types = readl(&cap->types); cap 270 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.max_maps = readl(&cap->max_maps); cap 271 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.max_elems = readl(&cap->max_elems); cap 272 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.max_key_sz = readl(&cap->max_key_sz); cap 273 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.max_val_sz = readl(&cap->max_val_sz); cap 274 drivers/net/ethernet/netronome/nfp/bpf/main.c bpf->maps.max_elem_sz = readl(&cap->max_elem_sz); cap 571 drivers/net/ethernet/netronome/nfp/bpf/offload.c u8 cap; cap 573 drivers/net/ethernet/netronome/nfp/bpf/offload.c cap = nn_readb(nn, NFP_NET_CFG_BPF_CAP); cap 574 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (!(cap & NFP_NET_BPF_CAP_RELO)) { cap 612 drivers/net/ethernet/netronome/nfp/nfp_net.h u32 cap; cap 2761 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RINGCFG) cap 2849 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RINGCFG) cap 3116 drivers/net/ethernet/netronome/nfp/nfp_net_common.c new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_L2MC; cap 3121 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_PROMISC) cap 3423 drivers/net/ethernet/netronome/nfp/nfp_net_common.c new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_RXCSUM_ANY; cap 3437 drivers/net/ethernet/netronome/nfp/nfp_net_common.c new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_LSO2 ?: cap 3775 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap, cap 3776 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_PROMISC ? "PROMISC " : "", cap 3777 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_L2BC ? "L2BCFILT " : "", cap 3778 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_L2MC ? "L2MCFILT " : "", cap 3779 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_RXCSUM ? "RXCSUM " : "", cap 3780 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_TXCSUM ? "TXCSUM " : "", cap 3781 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_RXVLAN ? "RXVLAN " : "", cap 3782 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_TXVLAN ? "TXVLAN " : "", cap 3783 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_SCATTER ? "SCATTER " : "", cap 3784 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_GATHER ? "GATHER " : "", cap 3785 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_LSO ? "TSO1 " : "", cap 3786 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_LSO2 ? "TSO2 " : "", cap 3787 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_RSS ? "RSS1 " : "", cap 3788 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_RSS2 ? "RSS2 " : "", cap 3789 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_CTAG_FILTER ? "CTAG_FILTER " : "", cap 3790 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_MSIXAUTO ? "AUTOMASK " : "", cap 3791 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_IRQMOD ? "IRQMOD " : "", cap 3792 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_VXLAN ? "VXLAN " : "", cap 3793 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_NVGRE ? "NVGRE " : "", cap 3794 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_CSUM_COMPLETE ? cap 3796 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_LIVE_ADDR ? "LIVE_ADDR " : "", cap 3980 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_LIVE_ADDR) cap 3984 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RXCSUM_ANY) { cap 3986 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.ctrl |= nn->cap & NFP_NET_CFG_CTRL_RXCSUM_ANY; cap 3988 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_TXCSUM) { cap 3992 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_GATHER) { cap 3996 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if ((nn->cap & NFP_NET_CFG_CTRL_LSO && nn->fw_ver.major > 2) || cap 3997 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_LSO2) { cap 3999 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.ctrl |= nn->cap & NFP_NET_CFG_CTRL_LSO2 ?: cap 4002 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RSS_ANY) cap 4004 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_VXLAN) { cap 4005 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_LSO) cap 4009 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_NVGRE) { cap 4010 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_LSO) cap 4014 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & (NFP_NET_CFG_CTRL_VXLAN | NFP_NET_CFG_CTRL_NVGRE)) cap 4019 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RXVLAN) { cap 4023 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_TXVLAN) { cap 4024 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_LSO2) { cap 4031 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_CTAG_FILTER) { cap 4063 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap = nn_readl(nn, NFP_NET_CFG_CAP); cap 4072 drivers/net/ethernet/netronome/nfp/nfp_net_common.c !(nn->cap & NFP_NET_CFG_CTRL_RSS) || cap 4073 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap & NFP_NET_CFG_CTRL_CHAIN_META; cap 4078 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap &= ~NFP_NET_CFG_CTRL_RSS; cap 4096 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->cap &= nn->app->type->ctrl_cap_mask; cap 4128 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.ctrl |= nn->cap & NFP_NET_CFG_CTRL_CMSG_DATA; cap 4130 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_RSS_ANY) { cap 4132 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.ctrl |= nn->cap & NFP_NET_CFG_CTRL_RSS2 ?: cap 4137 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_L2BC) cap 4141 drivers/net/ethernet/netronome/nfp/nfp_net_common.c if (nn->cap & NFP_NET_CFG_CTRL_IRQMOD) { cap 805 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY)) cap 842 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY)) cap 904 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY)) cap 914 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY)) cap 926 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY)) cap 950 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_RSS_ANY) || cap 996 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_IRQMOD)) cap 1285 drivers/net/ethernet/netronome/nfp/nfp_net_ethtool.c if (!(nn->cap & NFP_NET_CFG_CTRL_IRQMOD)) cap 18 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg) cap 26 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c if ((cap_vf & cap) != cap) { cap 270 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c u32 cap, reg, val; cap 300 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cap = (NX_CAP0_LEGACY_CONTEXT | NX_CAP0_LEGACY_MN); cap 301 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cap |= (NX_CAP0_JUMBO_CONTIGUOUS | NX_CAP0_LRO_CONTIGUOUS); cap 304 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cap |= NX_CAP0_HW_LRO_MSS; cap 306 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c prq->capabilities[0] = cpu_to_le32(cap); cap 1484 drivers/net/ethernet/qlogic/qed/qed_dcbx.c static u8 qed_dcbnl_getcap(struct qed_dev *cdev, int capid, u8 *cap) cap 1500 drivers/net/ethernet/qlogic/qed/qed_dcbx.c *cap = true; cap 1504 drivers/net/ethernet/qlogic/qed/qed_dcbx.c *cap = 0x80; cap 1507 drivers/net/ethernet/qlogic/qed/qed_dcbx.c *cap = (DCB_CAP_DCBX_VER_CEE | DCB_CAP_DCBX_VER_IEEE | cap 1511 drivers/net/ethernet/qlogic/qed/qed_dcbx.c *cap = false; cap 1515 drivers/net/ethernet/qlogic/qed/qed_dcbx.c DP_VERBOSE(hwfn, QED_MSG_DCB, "id = %d caps = %d\n", capid, *cap); cap 395 drivers/net/ethernet/qlogic/qed/qed_sriov.c pci_read_config_dword(cdev->pdev, pos + PCI_SRIOV_CAP, &iov->cap); cap 403 drivers/net/ethernet/qlogic/qed/qed_sriov.c iov->cap, cap 116 drivers/net/ethernet/qlogic/qed/qed_sriov.h u32 cap; /* SR-IOV Capabilities */ cap 84 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c static u8 qede_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) cap 88 drivers/net/ethernet/qlogic/qede/qede_dcbnl.c return edev->ops->dcb->getcap(edev->cdev, capid, cap); cap 1170 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c u32 *buf, intrpt_id, intr_mask, cap = 0; cap 1188 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cap = QLCNIC_CAP0_LEGACY_CONTEXT; cap 1191 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cap |= QLC_83XX_FW_CAP_LRO_MSS; cap 1202 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cmd.req.arg[1] = cap; cap 252 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c u32 cap, reg, val, reg2; cap 282 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c cap = (QLCNIC_CAP0_LEGACY_CONTEXT | QLCNIC_CAP0_LEGACY_MN cap 284 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c cap |= (QLCNIC_CAP0_JUMBO_CONTIGUOUS | QLCNIC_CAP0_LRO_CONTIGUOUS); cap 288 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c cap |= QLCNIC_CAP0_TX_MULTI; cap 299 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c prq->capabilities[0] = cpu_to_le32(cap); cap 373 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; cap 377 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c memset(cap, 0, sizeof(struct qlcnic_dcb_capability)); cap 385 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->tsa_capability = true; cap 388 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->ets_capability = true; cap 390 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->max_num_tc = QLC_DCB_MAX_NUM_TC(mbx_out); cap 391 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->max_ets_tc = QLC_DCB_MAX_NUM_ETS_TC(mbx_out); cap 392 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->max_pfc_tc = QLC_DCB_MAX_NUM_PFC_TC(mbx_out); cap 394 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (cap->max_num_tc > QLC_DCB_MAX_TC || cap 395 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->max_ets_tc > cap->max_num_tc || cap 396 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->max_pfc_tc > cap->max_num_tc) { cap 407 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_capability *cap; cap 415 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap = &cfg->capability; cap 416 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->dcb_capability = DCB_CAP_DCBX_VER_CEE | DCB_CAP_DCBX_LLD_MANAGED; cap 418 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (cap->dcb_capability && cap->tsa_capability && cap->ets_capability) cap 544 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; cap 553 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->dcb_capability = DCB_CAP_DCBX_VER_CEE; cap 555 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->dcb_capability |= DCB_CAP_DCBX_VER_IEEE; cap 556 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (cap->dcb_capability) cap 557 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c cap->dcb_capability |= DCB_CAP_DCBX_LLD_MANAGED; cap 559 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c if (cap->dcb_capability && cap->tsa_capability && cap->ets_capability) cap 881 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c u8 *cap) cap 893 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c *cap = true; cap 897 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c *cap = 0x80; /* 8 priorities for PGs */ cap 900 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c *cap = adapter->dcb->cfg->capability.dcb_capability; cap 903 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c *cap = false; cap 409 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_GMII(cap) ((cap & 0x00000002) >> 1) cap 410 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_VLAN_HASH_FILTER(cap) ((cap & 0x00000010) >> 4) cap 411 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_SMA(cap) ((cap & 0x00000020) >> 5) cap 412 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_PMT_TEMOTE_WOP(cap) ((cap & 0x00000040) >> 6) cap 413 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_PMT_MAGIC_PKT(cap) ((cap & 0x00000080) >> 7) cap 414 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RMON(cap) ((cap & 0x00000100) >> 8) cap 415 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_ARP_OFFLOAD(cap) ((cap & 0x00000200) >> 9) cap 416 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_IEEE1500_2008(cap) ((cap & 0x00001000) >> 12) cap 417 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_EEE(cap) ((cap & 0x00002000) >> 13) cap 418 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TX_CSUM_OFFLOAD(cap) ((cap & 0x00004000) >> 14) cap 419 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RX_CSUM_OFFLOAD(cap) ((cap & 0x00010000) >> 16) cap 420 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_MACADDR_COUNT(cap) ((cap & 0x007C0000) >> 18) cap 421 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TSTMAP_SRC(cap) ((cap & 0x06000000) >> 25) cap 422 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_SRCADDR_VLAN(cap) ((cap & 0x08000000) >> 27) cap 425 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RX_FIFO_SIZE(cap) ((cap & 0x0000001F)) cap 426 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TX_FIFO_SIZE(cap) ((cap & 0x000007C0) >> 6) cap 427 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_IEEE1588_HWORD(cap) ((cap & 0x00002000) >> 13) cap 428 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_DCB(cap) ((cap & 0x00010000) >> 16) cap 429 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_SPLIT_HDR(cap) ((cap & 0x00020000) >> 17) cap 430 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TSO(cap) ((cap & 0x00040000) >> 18) cap 431 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_DEBUG_MEM_IFACE(cap) ((cap & 0x00080000) >> 19) cap 432 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RSS(cap) ((cap & 0x00100000) >> 20) cap 433 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_HASH_TABLE_SIZE(cap) ((cap & 0x03000000) >> 24) cap 434 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_L3L4_FILTER_NUM(cap) ((cap & 0x78000000) >> 27) cap 437 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RX_MTL_QUEUES(cap) ((cap & 0x0000000F)) cap 438 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TX_MTL_QUEUES(cap) ((cap & 0x000003C0) >> 6) cap 439 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_RX_DMA_CHANNELS(cap) ((cap & 0x0000F000) >> 12) cap 440 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_TX_DMA_CHANNELS(cap) ((cap & 0x003C0000) >> 18) cap 441 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_PPS_OUTPUTS(cap) ((cap & 0x07000000) >> 24) cap 442 drivers/net/ethernet/samsung/sxgbe/sxgbe_reg.h #define SXGBE_HW_FEAT_AUX_SNAPSHOTS(cap) ((cap & 0x70000000) >> 28) cap 171 drivers/net/ethernet/sfc/mcdi_port.c static void mcdi_to_ethtool_linkset(u32 media, u32 cap, unsigned long *linkset) cap 180 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) cap 182 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) cap 184 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) cap 192 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) cap 194 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) cap 196 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) cap 198 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_100000FDX_LBN)) cap 200 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_25000FDX_LBN)) cap 202 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_50000FDX_LBN)) cap 208 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_10HDX_LBN)) cap 210 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_10FDX_LBN)) cap 212 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_100HDX_LBN)) cap 214 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_100FDX_LBN)) cap 216 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_1000HDX_LBN)) cap 218 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) cap 220 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) cap 225 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_PAUSE_LBN)) cap 227 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_ASYM_LBN)) cap 229 drivers/net/ethernet/sfc/mcdi_port.c if (cap & (1 << MC_CMD_PHY_CAP_AN_LBN)) cap 789 drivers/net/ethernet/sis/sis900.c u16 cap; cap 795 drivers/net/ethernet/sis/sis900.c cap = MII_NWAY_CSMA_CD | cap 801 drivers/net/ethernet/sis/sis900.c mdio_write(net_dev, phy->phy_addr, MII_ANADV, cap); cap 917 drivers/net/ethernet/smsc/smsc911x.c u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 919 drivers/net/ethernet/smsc/smsc911x.c if (cap & FLOW_CTRL_RX) cap 924 drivers/net/ethernet/smsc/smsc911x.c if (cap & FLOW_CTRL_TX) cap 930 drivers/net/ethernet/smsc/smsc911x.c (cap & FLOW_CTRL_RX ? "enabled" : "disabled"), cap 931 drivers/net/ethernet/smsc/smsc911x.c (cap & FLOW_CTRL_TX ? "enabled" : "disabled")); cap 1053 drivers/net/ethernet/smsc/smsc9420.c u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 1055 drivers/net/ethernet/smsc/smsc9420.c if (cap & FLOW_CTRL_RX) cap 1061 drivers/net/ethernet/smsc/smsc9420.c cap & FLOW_CTRL_RX ? "enabled" : "disabled", cap 1062 drivers/net/ethernet/smsc/smsc9420.c cap & FLOW_CTRL_TX ? "enabled" : "disabled"); cap 1093 drivers/net/ethernet/socionext/sni_ave.c u8 cap; cap 1130 drivers/net/ethernet/socionext/sni_ave.c cap = mii_resolve_flowctrl_fdx(lcl_adv, rmt_adv); cap 1131 drivers/net/ethernet/socionext/sni_ave.c if (cap & FLOW_CTRL_TX) cap 1135 drivers/net/ethernet/socionext/sni_ave.c if (cap & FLOW_CTRL_RX) cap 552 drivers/net/hyperv/rndis_filter.c struct ndis_recv_scale_cap *cap; cap 557 drivers/net/hyperv/rndis_filter.c cap = (struct ndis_recv_scale_cap *)((unsigned long)query + cap 559 drivers/net/hyperv/rndis_filter.c cap->hdr.type = NDIS_OBJECT_TYPE_RSS_CAPABILITIES; cap 560 drivers/net/hyperv/rndis_filter.c cap->hdr.rev = NDIS_RECEIVE_SCALE_CAPABILITIES_REVISION_2; cap 561 drivers/net/hyperv/rndis_filter.c cap->hdr.size = sizeof(struct ndis_recv_scale_cap); cap 1021 drivers/net/phy/phy.c u32 cap; cap 1033 drivers/net/phy/phy.c cap = mmd_eee_cap_to_ethtool_sup_t(eee_cap); cap 1034 drivers/net/phy/phy.c if (!cap) cap 1134 drivers/net/phy/phy.c int cap, old_adv, adv = 0, ret; cap 1140 drivers/net/phy/phy.c cap = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_PCS_EEE_ABLE); cap 1141 drivers/net/phy/phy.c if (cap < 0) cap 1142 drivers/net/phy/phy.c return cap; cap 1149 drivers/net/phy/phy.c adv = !data->advertised ? cap : cap 1150 drivers/net/phy/phy.c ethtool_adv_to_mmd_eee_adv_t(data->advertised) & cap; cap 678 drivers/net/usb/ax88179_178a.c u32 lp, cap, adv, supported = 0; cap 688 drivers/net/usb/ax88179_178a.c cap = mmd_eee_cap_to_ethtool_sup_t(eee_cap); cap 689 drivers/net/usb/ax88179_178a.c if (!cap) { cap 1132 drivers/net/usb/lan78xx.c u8 cap; cap 1135 drivers/net/usb/lan78xx.c cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 1137 drivers/net/usb/lan78xx.c cap = dev->fc_request_control; cap 1139 drivers/net/usb/lan78xx.c if (cap & FLOW_CTRL_TX) cap 1142 drivers/net/usb/lan78xx.c if (cap & FLOW_CTRL_RX) cap 1151 drivers/net/usb/lan78xx.c (cap & FLOW_CTRL_RX ? "enabled" : "disabled"), cap 1152 drivers/net/usb/lan78xx.c (cap & FLOW_CTRL_TX ? "enabled" : "disabled")); cap 593 drivers/net/usb/smsc75xx.c u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 595 drivers/net/usb/smsc75xx.c if (cap & FLOW_CTRL_TX) { cap 601 drivers/net/usb/smsc75xx.c if (cap & FLOW_CTRL_RX) cap 605 drivers/net/usb/smsc75xx.c (cap & FLOW_CTRL_RX ? "enabled" : "disabled"), cap 606 drivers/net/usb/smsc75xx.c (cap & FLOW_CTRL_TX ? "enabled" : "disabled")); cap 524 drivers/net/usb/smsc95xx.c u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); cap 526 drivers/net/usb/smsc95xx.c if (cap & FLOW_CTRL_RX) cap 529 drivers/net/usb/smsc95xx.c if (cap & FLOW_CTRL_TX) { cap 537 drivers/net/usb/smsc95xx.c cap & FLOW_CTRL_RX ? "enabled" : "disabled", cap 538 drivers/net/usb/smsc95xx.c cap & FLOW_CTRL_TX ? "enabled" : "disabled"); cap 350 drivers/net/wireless/ath/ar5523/ar5523.c static int ar5523_get_capability(struct ar5523 *ar, u32 cap, u32 *val) cap 355 drivers/net/wireless/ath/ar5523/ar5523.c cap_be = cpu_to_be32(cap); cap 360 drivers/net/wireless/ath/ar5523/ar5523.c ar5523_err(ar, "could not read capability %u\n", cap); cap 370 drivers/net/wireless/ath/ar5523/ar5523.c error = ar5523_get_capability(ar, x, &cap); \ cap 374 drivers/net/wireless/ath/ar5523/ar5523.c "%s=0x%08x\n", #x, cap); \ cap 377 drivers/net/wireless/ath/ar5523/ar5523.c u32 cap; cap 926 drivers/net/wireless/ath/ath10k/mac.c struct wmi_tdls_peer_capab_arg cap = {}; cap 935 drivers/net/wireless/ath/ath10k/mac.c cap.peer_max_sp = sta->max_sp; cap 936 drivers/net/wireless/ath/ath10k/mac.c cap.peer_uapsd_queues = sta->uapsd_queues; cap 940 drivers/net/wireless/ath/ath10k/mac.c cap.is_peer_responder = 1; cap 942 drivers/net/wireless/ath/ath10k/mac.c ret = ath10k_wmi_tdls_peer_update(ar, &arg, &cap, &chan_arg); cap 2319 drivers/net/wireless/ath/ath10k/mac.c arg->peer_ht_caps = ht_cap->cap; cap 2322 drivers/net/wireless/ath/ath10k/mac.c if (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) cap 2331 drivers/net/wireless/ath/ath10k/mac.c if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) cap 2334 drivers/net/wireless/ath/ath10k/mac.c if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) cap 2338 drivers/net/wireless/ath/ath10k/mac.c if (ht_cap->cap & IEEE80211_HT_CAP_TX_STBC) { cap 2343 drivers/net/wireless/ath/ath10k/mac.c if (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) { cap 2344 drivers/net/wireless/ath/ath10k/mac.c stbc = ht_cap->cap & IEEE80211_HT_CAP_RX_STBC; cap 2537 drivers/net/wireless/ath/ath10k/mac.c arg->peer_vht_caps = vht_cap->cap; cap 2539 drivers/net/wireless/ath/ath10k/mac.c ampdu_factor = (vht_cap->cap & cap 2583 drivers/net/wireless/ath/ath10k/mac.c (sta->vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK)) { cap 2641 drivers/net/wireless/ath/ath10k/mac.c switch (sta->vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { cap 2769 drivers/net/wireless/ath/ath10k/mac.c smps = ht_cap->cap & IEEE80211_HT_CAP_SM_PS; cap 2812 drivers/net/wireless/ath/ath10k/mac.c if (vht_cap.cap & IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE) cap 2815 drivers/net/wireless/ath/ath10k/mac.c if (vht_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE) cap 2822 drivers/net/wireless/ath/ath10k/mac.c if (vht_cap.cap & IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE) cap 2825 drivers/net/wireless/ath/ath10k/mac.c if (vht_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) cap 4536 drivers/net/wireless/ath/ath10k/mac.c vht_cap.cap = ar->vht_cap_info; cap 4544 drivers/net/wireless/ath/ath10k/mac.c vht_cap.cap |= val; cap 4553 drivers/net/wireless/ath/ath10k/mac.c vht_cap.cap |= val; cap 4561 drivers/net/wireless/ath/ath10k/mac.c vht_cap.cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; cap 4572 drivers/net/wireless/ath/ath10k/mac.c vht_cap.cap &= ~IEEE80211_VHT_CAP_TXSTBC; cap 4581 drivers/net/wireless/ath/ath10k/mac.c if ((vht_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) && cap 4602 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 4603 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_DSSSCCK40; cap 4604 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= cap 4608 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; cap 4611 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; cap 4619 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= smps; cap 4623 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; cap 4634 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= stbc; cap 4639 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 4642 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_LSIG_TXOP_PROT; cap 4646 drivers/net/wireless/ath/ath10k/mac.c ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; cap 187 drivers/net/wireless/ath/ath10k/wmi-ops.h const struct wmi_tdls_peer_capab_arg *cap, cap 1426 drivers/net/wireless/ath/ath10k/wmi-ops.h const struct wmi_tdls_peer_capab_arg *cap, cap 1434 drivers/net/wireless/ath/ath10k/wmi-ops.h skb = ar->wmi.ops->gen_tdls_peer_update(ar, arg, cap, chan); cap 3324 drivers/net/wireless/ath/ath10k/wmi-tlv.c const struct wmi_tdls_peer_capab_arg *cap, cap 3339 drivers/net/wireless/ath/ath10k/wmi-tlv.c sizeof(*tlv) + cap->peer_chan_len * sizeof(*chan); cap 3362 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_qos = ath10k_wmi_tlv_prepare_peer_qos(cap->peer_uapsd_queues, cap 3363 drivers/net/wireless/ath/ath10k/wmi-tlv.c cap->peer_max_sp); cap 3365 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->buff_sta_support = __cpu_to_le32(cap->buff_sta_support); cap 3366 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->off_chan_support = __cpu_to_le32(cap->off_chan_support); cap 3367 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->peer_curr_operclass = __cpu_to_le32(cap->peer_curr_operclass); cap 3368 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->self_curr_operclass = __cpu_to_le32(cap->self_curr_operclass); cap 3369 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->peer_chan_len = __cpu_to_le32(cap->peer_chan_len); cap 3370 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->peer_operclass_len = __cpu_to_le32(cap->peer_operclass_len); cap 3373 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->peer_operclass[i] = cap->peer_operclass[i]; cap 3375 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->is_peer_responder = __cpu_to_le32(cap->is_peer_responder); cap 3376 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->pref_offchan_num = __cpu_to_le32(cap->pref_offchan_num); cap 3377 drivers/net/wireless/ath/ath10k/wmi-tlv.c peer_cap->pref_offchan_bw = __cpu_to_le32(cap->pref_offchan_bw); cap 3384 drivers/net/wireless/ath/ath10k/wmi-tlv.c tlv->len = __cpu_to_le16(cap->peer_chan_len * sizeof(*chan)); cap 3388 drivers/net/wireless/ath/ath10k/wmi-tlv.c for (i = 0; i < cap->peer_chan_len; i++) { cap 3401 drivers/net/wireless/ath/ath10k/wmi-tlv.c arg->vdev_id, arg->peer_state, cap->peer_chan_len); cap 8824 drivers/net/wireless/ath/ath10k/wmi.c const struct wmi_tdls_peer_capab_arg *cap, cap 8836 drivers/net/wireless/ath/ath10k/wmi.c chan_len = cap->peer_chan_len ? (cap->peer_chan_len - 1) : 0; cap 8851 drivers/net/wireless/ath/ath10k/wmi.c peer_qos = ath10k_wmi_prepare_peer_qos(cap->peer_uapsd_queues, cap 8852 drivers/net/wireless/ath/ath10k/wmi.c cap->peer_max_sp); cap 8856 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->buff_sta_support = __cpu_to_le32(cap->buff_sta_support); cap 8857 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->off_chan_support = __cpu_to_le32(cap->off_chan_support); cap 8858 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->peer_curr_operclass = __cpu_to_le32(cap->peer_curr_operclass); cap 8859 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->self_curr_operclass = __cpu_to_le32(cap->self_curr_operclass); cap 8860 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->peer_chan_len = __cpu_to_le32(cap->peer_chan_len); cap 8861 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->peer_operclass_len = __cpu_to_le32(cap->peer_operclass_len); cap 8864 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->peer_operclass[i] = cap->peer_operclass[i]; cap 8866 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->is_peer_responder = __cpu_to_le32(cap->is_peer_responder); cap 8867 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->pref_offchan_num = __cpu_to_le32(cap->pref_offchan_num); cap 8868 drivers/net/wireless/ath/ath10k/wmi.c peer_cap->pref_offchan_bw = __cpu_to_le32(cap->pref_offchan_bw); cap 8870 drivers/net/wireless/ath/ath10k/wmi.c for (i = 0; i < cap->peer_chan_len; i++) { cap 8877 drivers/net/wireless/ath/ath10k/wmi.c arg->vdev_id, arg->peer_state, cap->peer_chan_len); cap 129 drivers/net/wireless/ath/ath6kl/cfg80211.c .ht_cap.cap = ath6kl_g_htcap, cap 138 drivers/net/wireless/ath/ath6kl/cfg80211.c .ht_cap.cap = ath6kl_a_htcap, cap 3899 drivers/net/wireless/ath/ath6kl/cfg80211.c switch (ar->hw.cap) { cap 3932 drivers/net/wireless/ath/ath6kl/cfg80211.c ath6kl_band_2ghz.ht_cap.cap = 0; cap 3934 drivers/net/wireless/ath/ath6kl/cfg80211.c ath6kl_band_5ghz.ht_cap.cap = 0; cap 787 drivers/net/wireless/ath/ath6kl/core.h enum wmi_phy_cap cap; cap 935 drivers/net/wireless/ath/ath6kl/core.h enum wmi_phy_cap cap); cap 526 drivers/net/wireless/ath/ath6kl/main.c enum wmi_phy_cap cap) cap 534 drivers/net/wireless/ath/ath6kl/main.c ar->mac_addr, sw_ver, abi_ver, cap); cap 538 drivers/net/wireless/ath/ath6kl/main.c ar->hw.cap = cap; cap 681 drivers/net/wireless/ath/ath6kl/wmi.c struct wmi_p2p_capabilities *cap; cap 682 drivers/net/wireless/ath/ath6kl/wmi.c if (dlen < sizeof(*cap)) cap 684 drivers/net/wireless/ath/ath6kl/wmi.c cap = (struct wmi_p2p_capabilities *) ev->data; cap 686 drivers/net/wireless/ath/ath6kl/wmi.c cap->go_power_save); cap 180 drivers/net/wireless/ath/ath9k/common-init.c ht_info->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 186 drivers/net/wireless/ath/ath9k/common-init.c ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 189 drivers/net/wireless/ath/ath9k/common-init.c ht_info->cap |= IEEE80211_HT_CAP_SGI_20; cap 205 drivers/net/wireless/ath/ath9k/common-init.c ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; cap 206 drivers/net/wireless/ath/ath9k/common-init.c ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); cap 623 drivers/net/wireless/ath/ath9k/htc_drv_main.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) cap 627 drivers/net/wireless/ath/ath9k/htc_drv_main.c if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) && cap 631 drivers/net/wireless/ath/ath9k/htc_drv_main.c (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)) cap 634 drivers/net/wireless/ath/ath9k/htc_drv_main.c (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20)) cap 2199 drivers/net/wireless/ath/ath9k/main.c static u32 fill_chainmask(u32 cap, u32 new) cap 2204 drivers/net/wireless/ath/ath9k/main.c for (i = 0; cap && new; i++, cap >>= 1) { cap 2205 drivers/net/wireless/ath/ath9k/main.c if (!(cap & BIT(0))) cap 154 drivers/net/wireless/ath/carl9170/main.c .cap = IEEE80211_HT_CAP_MAX_AMSDU | \ cap 134 drivers/net/wireless/ath/wcn36xx/main.c .cap = IEEE80211_HT_CAP_GRN_FLD | cap 155 drivers/net/wireless/ath/wcn36xx/main.c .cap = IEEE80211_HT_CAP_GRN_FLD | cap 129 drivers/net/wireless/ath/wcn36xx/smd.c unsigned long caps = sta->ht_cap.cap; cap 152 drivers/net/wireless/ath/wcn36xx/smd.c unsigned long caps = sta->ht_cap.cap; cap 2031 drivers/net/wireless/ath/wcn36xx/smd.c void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) cap 2035 drivers/net/wireless/ath/wcn36xx/smd.c if (cap < 0 || cap > 127) { cap 2036 drivers/net/wireless/ath/wcn36xx/smd.c wcn36xx_warn("error cap idx %d\n", cap); cap 2040 drivers/net/wireless/ath/wcn36xx/smd.c arr_idx = cap / 32; cap 2041 drivers/net/wireless/ath/wcn36xx/smd.c bit_idx = cap % 32; cap 2045 drivers/net/wireless/ath/wcn36xx/smd.c int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) cap 2049 drivers/net/wireless/ath/wcn36xx/smd.c if (cap < 0 || cap > 127) { cap 2050 drivers/net/wireless/ath/wcn36xx/smd.c wcn36xx_warn("error cap idx %d\n", cap); cap 2054 drivers/net/wireless/ath/wcn36xx/smd.c arr_idx = cap / 32; cap 2055 drivers/net/wireless/ath/wcn36xx/smd.c bit_idx = cap % 32; cap 2060 drivers/net/wireless/ath/wcn36xx/smd.c void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) cap 2064 drivers/net/wireless/ath/wcn36xx/smd.c if (cap < 0 || cap > 127) { cap 2065 drivers/net/wireless/ath/wcn36xx/smd.c wcn36xx_warn("error cap idx %d\n", cap); cap 2069 drivers/net/wireless/ath/wcn36xx/smd.c arr_idx = cap / 32; cap 2070 drivers/net/wireless/ath/wcn36xx/smd.c bit_idx = cap % 32; cap 125 drivers/net/wireless/ath/wcn36xx/smd.h void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap); cap 126 drivers/net/wireless/ath/wcn36xx/smd.h int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap); cap 127 drivers/net/wireless/ath/wcn36xx/smd.h void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap); cap 272 drivers/net/wireless/ath/wil6210/cfg80211.c .cap = 0, /* TODO */ cap 888 drivers/net/wireless/ath/wil6210/wmi.c u16 cap = le16_to_cpu(rx_mgmt_frame->u.beacon.capab_info); cap 893 drivers/net/wireless/ath/wil6210/wmi.c wil_dbg_wmi(wil, "Capability info : 0x%04x\n", cap); cap 899 drivers/net/wireless/ath/wil6210/wmi.c wil_dbg_wmi(wil, "Capability info : 0x%04x\n", cap); cap 6269 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; cap 6270 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 6272 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; cap 6273 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->ht_cap.cap |= IEEE80211_HT_CAP_DSSSCCK40; cap 6303 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_SHORT_GI_80; cap 6305 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; cap 6306 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_SHORT_GI_160; cap 6315 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE; cap 6317 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; cap 6319 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE; cap 6321 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE; cap 6324 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= cap 6326 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= ((txstreams - 1) << cap 6328 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c band->vht_cap.cap |= cap 7031 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c u16 *cap = NULL; cap 7095 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c cap = &wiphy->bands[NL80211_BAND_2GHZ]->ht_cap.cap; cap 7096 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c *cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 7117 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c if (cap && (*cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)) { cap 7123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c *cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 537 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h __le16 cap; /* sta's advertised capabilities */ cap 227 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c .cap = IEEE80211_HT_CAP_GRN_FLD | cap 248 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 | cap 786 drivers/net/wireless/cisco/airo.c __le16 cap; cap 5488 drivers/net/wireless/cisco/airo.c BSSList_rid.cap & CAP_ESS ? "ESS" : "", cap 5489 drivers/net/wireless/cisco/airo.c BSSList_rid.cap & CAP_IBSS ? "adhoc" : "", cap 5490 drivers/net/wireless/cisco/airo.c BSSList_rid.cap & CAP_PRIVACY ? "wep" : "", cap 5491 drivers/net/wireless/cisco/airo.c BSSList_rid.cap & CAP_SHORTHDR ? "shorthdr" : ""); cap 7297 drivers/net/wireless/cisco/airo.c capabilities = bss->cap; cap 9488 drivers/net/wireless/intel/ipw2x00/ipw2200.c u32 cap = priv->capability; cap 9495 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (cap != priv->capability && cap 630 drivers/net/wireless/intel/iwlegacy/4965-rs.c return (sta->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && cap 1448 drivers/net/wireless/intel/iwlegacy/4965-rs.c !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) cap 1451 drivers/net/wireless/intel/iwlegacy/4965-rs.c !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) cap 1571 drivers/net/wireless/intel/iwlegacy/4965-rs.c !(ht_cap->cap & IEEE80211_HT_CAP_SGI_20)) cap 1574 drivers/net/wireless/intel/iwlegacy/4965-rs.c !(ht_cap->cap & IEEE80211_HT_CAP_SGI_40)) cap 3379 drivers/net/wireless/intel/iwlegacy/common.c ht_info->cap = 0; cap 3384 drivers/net/wireless/intel/iwlegacy/common.c ht_info->cap |= IEEE80211_HT_CAP_SGI_20; cap 3387 drivers/net/wireless/intel/iwlegacy/common.c ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 3388 drivers/net/wireless/intel/iwlegacy/common.c ht_info->cap |= IEEE80211_HT_CAP_SGI_40; cap 3394 drivers/net/wireless/intel/iwlegacy/common.c ht_info->cap |= IEEE80211_HT_CAP_MAX_AMSDU; cap 1681 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (!tbl->is_ht40 && !(ht_cap->cap & cap 1684 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (tbl->is_ht40 && !(ht_cap->cap & cap 1847 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (!tbl->is_ht40 && !(ht_cap->cap & cap 1850 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (tbl->is_ht40 && !(ht_cap->cap & cap 2037 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (!tbl->is_ht40 && !(ht_cap->cap & cap 2040 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (tbl->is_ht40 && !(ht_cap->cap & cap 349 drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h u8 cap; cap 377 drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h __le16 cap; cap 757 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap = IEEE80211_HT_CAP_DSSSCCK40; cap 760 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); cap 763 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; cap 767 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 772 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_MAX_AMSDU; cap 784 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_GRN_FLD; cap 785 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_SGI_20; cap 790 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 791 drivers/net/wireless/intel/iwlwifi/iwl-eeprom-parse.c ht_info->cap |= IEEE80211_HT_CAP_SGI_40; cap 437 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap = IEEE80211_VHT_CAP_SHORT_GI_80 | cap 445 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ | cap 449 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; cap 452 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC; cap 460 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; cap 462 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_TX_ANTENNA_PATTERN; cap 467 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= cap 470 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895; cap 474 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= cap 480 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895; cap 483 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991; cap 486 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454; cap 503 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c vht_cap->cap |= IEEE80211_VHT_CAP_RX_ANTENNA_PATTERN; cap 1119 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c u16 geo_info, u16 cap) cap 1177 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c ch_flags, cap, cap 106 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.h u16 geo_info, u16 cap); cap 258 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c __le16_to_cpu(resp->cap)); cap 595 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c hw->wiphy->bands[NL80211_BAND_5GHZ]->vht_cap.cap |= cap 532 drivers/net/wireless/intel/iwlwifi/mvm/nvm.c resp_cp->cap = cpu_to_le16(mcc_resp_v3->cap); cap 107 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c if (ht_cap->cap & IEEE80211_HT_CAP_SGI_20) cap 109 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c if (ht_cap->cap & IEEE80211_HT_CAP_SGI_40) cap 111 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80) cap 113 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c if (vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_160) cap 139 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c } else if ((ht_cap->cap & IEEE80211_HT_CAP_RX_STBC) || cap 141 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK))) cap 146 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c ((ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING) || cap 147 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c (vht_ena && (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)))) cap 410 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c switch (vht_cap->cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) { cap 420 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c if (ht_cap->cap & IEEE80211_HT_CAP_MAX_AMSDU) cap 179 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (is_ht20(rate) && (ht_cap->cap & cap 182 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (is_ht40(rate) && (ht_cap->cap & cap 185 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (is_ht80(rate) && (vht_cap->cap & cap 188 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (is_ht160(rate) && (vht_cap->cap & cap 1417 drivers/net/wireless/intel/iwlwifi/mvm/rs.c .vht_cap_info = cpu_to_le32(sta_vht_cap->cap), cap 2853 drivers/net/wireless/intel/iwlwifi/mvm/rs.c (ht_cap->cap & IEEE80211_HT_CAP_LDPC_CODING)) cap 2858 drivers/net/wireless/intel/iwlwifi/mvm/rs.c (ht_cap->cap & IEEE80211_HT_CAP_RX_STBC)) cap 2872 drivers/net/wireless/intel/iwlwifi/mvm/rs.c (vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC)) cap 2877 drivers/net/wireless/intel/iwlwifi/mvm/rs.c (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK)) cap 2882 drivers/net/wireless/intel/iwlwifi/mvm/rs.c (vht_cap->cap & IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE)) cap 202 drivers/net/wireless/intel/iwlwifi/mvm/sta.c agg_size = sta->vht_cap.cap & cap 303 drivers/net/wireless/intel/iwlwifi/pcie/trans.c u16 cap; cap 320 drivers/net/wireless/intel/iwlwifi/pcie/trans.c pcie_capability_read_word(trans_pcie->pci_dev, PCI_EXP_DEVCTL2, &cap); cap 321 drivers/net/wireless/intel/iwlwifi/pcie/trans.c trans->ltr_enabled = cap & PCI_EXP_DEVCTL2_LTR_EN; cap 579 drivers/net/wireless/intersil/prism54/isl_ioctl.c short cap; cap 606 drivers/net/wireless/intersil/prism54/isl_ioctl.c cap = bss->capinfo; cap 608 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (cap & CAP_ESS) cap 610 drivers/net/wireless/intersil/prism54/isl_ioctl.c else if (cap & CAP_IBSS) cap 618 drivers/net/wireless/intersil/prism54/isl_ioctl.c if (cap & CAP_CRYPT) cap 2951 drivers/net/wireless/mac80211_hwsim.c sband->vht_cap.cap = cap 2977 drivers/net/wireless/mac80211_hwsim.c sband->ht_cap.cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 42 drivers/net/wireless/marvell/mwifiex/11h.c struct mwifiex_ie_types_pwr_capability *cap; cap 54 drivers/net/wireless/marvell/mwifiex/11h.c cap = (struct mwifiex_ie_types_pwr_capability *)*buffer; cap 55 drivers/net/wireless/marvell/mwifiex/11h.c cap->header.type = cpu_to_le16(WLAN_EID_PWR_CAPABILITY); cap 56 drivers/net/wireless/marvell/mwifiex/11h.c cap->header.len = cpu_to_le16(2); cap 57 drivers/net/wireless/marvell/mwifiex/11h.c cap->min_pwr = 0; cap 58 drivers/net/wireless/marvell/mwifiex/11h.c cap->max_pwr = 0; cap 59 drivers/net/wireless/marvell/mwifiex/11h.c *buffer += sizeof(*cap); cap 60 drivers/net/wireless/marvell/mwifiex/11n.c (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && cap 69 drivers/net/wireless/marvell/mwifiex/11n.c ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); cap 395 drivers/net/wireless/marvell/mwifiex/11n.c if (!(sband->ht_cap.cap & cap 418 drivers/net/wireless/marvell/mwifiex/11n.c if (sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && cap 2787 drivers/net/wireless/marvell/mwifiex/cfg80211.c vht_info->cap = adapter->hw_dot_11ac_dev_cap; cap 2826 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 2828 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 2831 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_SGI_20; cap 2833 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_SGI_20; cap 2836 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_SGI_40; cap 2838 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_SGI_40; cap 2841 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= 2 << IEEE80211_HT_CAP_RX_STBC_SHIFT; cap 2843 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= 1 << IEEE80211_HT_CAP_RX_STBC_SHIFT; cap 2846 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_TX_STBC; cap 2848 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_TX_STBC; cap 2851 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_GRN_FLD; cap 2853 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_GRN_FLD; cap 2856 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_40MHZ_INTOLERANT; cap 2858 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_40MHZ_INTOLERANT; cap 2861 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 2863 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_LDPC_CODING; cap 2865 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap &= ~IEEE80211_HT_CAP_MAX_AMSDU; cap 2866 drivers/net/wireless/marvell/mwifiex/cfg80211.c ht_info->cap |= IEEE80211_HT_CAP_SM_PS; cap 896 drivers/net/wireless/marvell/mwifiex/tdls.c u16 cap = 0; cap 918 drivers/net/wireless/marvell/mwifiex/tdls.c cap = get_unaligned_le16(pos); cap 928 drivers/net/wireless/marvell/mwifiex/tdls.c cap = get_unaligned_le16(pos); cap 948 drivers/net/wireless/marvell/mwifiex/tdls.c sta_ptr->tdls_cap.capab = cpu_to_le16(cap); cap 2384 drivers/net/wireless/marvell/mwl8k.c struct ieee80211_supported_band *band, u32 cap) cap 2391 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_MAX_AMSDU) cap 2392 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_MAX_AMSDU; cap 2393 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_GREENFIELD) cap 2394 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_GRN_FLD; cap 2395 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_AMPDU) { cap 2400 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_RX_STBC) cap 2401 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_RX_STBC; cap 2402 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_TX_STBC) cap 2403 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_TX_STBC; cap 2404 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_SHORTGI_40MHZ) cap 2405 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; cap 2406 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_SHORTGI_20MHZ) cap 2407 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_SGI_20; cap 2408 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_DELAY_BA) cap 2409 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_DELAY_BA; cap 2410 drivers/net/wireless/marvell/mwl8k.c if (cap & MWL8K_CAP_40MHZ) cap 2411 drivers/net/wireless/marvell/mwl8k.c band->ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 2413 drivers/net/wireless/marvell/mwl8k.c rx_streams = hweight32(cap & MWL8K_CAP_RX_ANTENNA_MASK); cap 2414 drivers/net/wireless/marvell/mwl8k.c tx_streams = hweight32(cap & MWL8K_CAP_TX_ANTENNA_MASK); cap 4120 drivers/net/wireless/marvell/mwl8k.c cmd->ht_capabilities_info = cpu_to_le16(sta->ht_cap.cap); cap 4542 drivers/net/wireless/marvell/mwl8k.c p->ht_caps = cpu_to_le16(sta->ht_cap.cap); cap 121 drivers/net/wireless/mediatek/mt76/mac80211.c ht_cap->cap |= IEEE80211_HT_CAP_TX_STBC; cap 123 drivers/net/wireless/mediatek/mt76/mac80211.c ht_cap->cap &= ~IEEE80211_HT_CAP_TX_STBC; cap 133 drivers/net/wireless/mediatek/mt76/mac80211.c vht_cap->cap |= IEEE80211_VHT_CAP_TXSTBC; cap 135 drivers/net/wireless/mediatek/mt76/mac80211.c vht_cap->cap &= ~IEEE80211_VHT_CAP_TXSTBC; cap 150 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->cap.has_2ghz) cap 152 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->cap.has_5ghz) cap 186 drivers/net/wireless/mediatek/mt76/mac80211.c ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 203 drivers/net/wireless/mediatek/mt76/mac80211.c vht_cap->cap |= IEEE80211_VHT_CAP_RXLDPC | cap 333 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->cap.has_2ghz) { cap 339 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->cap.has_5ghz) { cap 477 drivers/net/wireless/mediatek/mt76/mt76.h struct mt76_hw_cap cap; cap 161 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c dev->mt76.cap.has_2ghz = true; cap 319 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (sta->ht_cap.cap) cap 321 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (sta->vht_cap.cap) cap 330 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) cap 332 drivers/net/wireless/mediatek/mt76/mt7603/mac.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) cap 101 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.cap.has_5ghz = true; cap 104 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.cap.has_2ghz = true; cap 107 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.cap.has_2ghz = true; cap 108 drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c dev->mt76.cap.has_5ghz = true; cap 274 drivers/net/wireless/mediatek/mt76/mt7615/init.c dev->mt76.sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 275 drivers/net/wireless/mediatek/mt76/mt7615/init.c dev->mt76.sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; cap 276 drivers/net/wireless/mediatek/mt76/mt7615/init.c dev->mt76.sband_5g.sband.vht_cap.cap |= cap 1370 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c wtbl_ht->ldpc = sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING; cap 1375 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) cap 1377 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) cap 1388 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c wtbl_vht->ldpc = sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC; cap 1392 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80) cap 1394 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_160) cap 1443 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c sta_ht->ht_cap = cpu_to_le16(sta->ht_cap.cap); cap 1453 drivers/net/wireless/mediatek/mt76/mt7615/mcu.c sta_vht->vht_cap = cpu_to_le32(sta->vht_cap.cap); cap 55 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c dev->mt76.cap.has_2ghz, dev->mt76.cap.has_5ghz); cap 58 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c dev->mt76.cap.has_2ghz = false; cap 63 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c dev->mt76.cap.has_5ghz = false; cap 21 drivers/net/wireless/mediatek/mt76/mt76x0/init.c vht_cap->cap &= ~IEEE80211_VHT_CAP_RXLDPC; cap 292 drivers/net/wireless/mediatek/mt76/mt76x0/init.c if (dev->mt76.cap.has_5ghz) { cap 298 drivers/net/wireless/mediatek/mt76/mt76x0/init.c if (dev->mt76.cap.has_2ghz) cap 450 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c if (dev->mt76.cap.has_2ghz) cap 454 drivers/net/wireless/mediatek/mt76/mt76x0/phy.c if (dev->mt76.cap.has_5ghz) { cap 78 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c dev->mt76.cap.has_5ghz = true; cap 81 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c dev->mt76.cap.has_2ghz = true; cap 84 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c dev->mt76.cap.has_2ghz = true; cap 85 drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c dev->mt76.cap.has_5ghz = true; cap 200 drivers/net/wireless/mediatek/mt76/mt76x02_util.c dev->mt76.sband_2g.sband.ht_cap.cap |= cap 202 drivers/net/wireless/mediatek/mt76/mt76x02_util.c dev->mt76.sband_5g.sband.ht_cap.cap |= cap 538 drivers/net/wireless/mediatek/mt7601u/init.c ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 1278 drivers/net/wireless/quantenna/qtnfmac/commands.c bcap->cap = le16_to_cpu(ht_cap->cap_info); cap 1294 drivers/net/wireless/quantenna/qtnfmac/commands.c bcap->cap = le32_to_cpu(vht_cap->vht_cap_info); cap 10082 drivers/net/wireless/ralink/rt2x00/rt2800lib.c spec->ht.cap = cap 10092 drivers/net/wireless/ralink/rt2x00/rt2800lib.c spec->ht.cap |= IEEE80211_HT_CAP_TX_STBC; cap 10094 drivers/net/wireless/ralink/rt2x00/rt2800lib.c spec->ht.cap |= rx_chains << IEEE80211_HT_CAP_RX_STBC_SHIFT; cap 4521 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c if (sta->ht_cap.cap & cap 4730 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c u16 cap, timeout; cap 4737 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c cap = le16_to_cpu(mgmt->u.action.u.addba_resp.capab); cap 4743 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2, cap 4744 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6, cap 4745 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap >> 1) & 0x1, cap 4749 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c cap = le16_to_cpu(mgmt->u.action.u.addba_req.capab); cap 4754 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap & IEEE80211_ADDBA_PARAM_TID_MASK) >> 2, cap 4755 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap & IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK) >> 6, cap 4756 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c (cap >> 1) & 0x1); cap 4999 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c sta && sta->ht_cap.cap & cap 6104 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c sband->ht_cap.cap = IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40; cap 6110 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c sband->ht_cap.cap |= IEEE80211_HT_CAP_SGI_40; cap 6120 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c sband->ht_cap.cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 159 drivers/net/wireless/realtek/rtlwifi/base.c ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 165 drivers/net/wireless/realtek/rtlwifi/base.c ht_cap->cap &= ~IEEE80211_HT_CAP_MAX_AMSDU; cap 233 drivers/net/wireless/realtek/rtlwifi/base.c vht_cap->cap = cap 265 drivers/net/wireless/realtek/rtlwifi/base.c vht_cap->cap = cap 632 drivers/net/wireless/realtek/rtlwifi/base.c sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; cap 633 drivers/net/wireless/realtek/rtlwifi/base.c sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; cap 634 drivers/net/wireless/realtek/rtlwifi/base.c sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; cap 648 drivers/net/wireless/realtek/rtlwifi/base.c bw_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 868 drivers/net/wireless/realtek/rtlwifi/base.c !(sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)) cap 124 drivers/net/wireless/realtek/rtlwifi/rc.c sgi_20 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20; cap 125 drivers/net/wireless/realtek/rtlwifi/rc.c sgi_40 = sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40; cap 126 drivers/net/wireless/realtek/rtlwifi/rc.c sgi_80 = sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80; cap 138 drivers/net/wireless/realtek/rtlwifi/rc.c if (sta && (sta->ht_cap.cap & cap 1980 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1982 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 2066 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) cap 2068 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2070 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 507 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c bw_40 = sta->ht_cap.cap & cap 1768 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1770 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1856 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & cap 1858 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & cap 1860 drivers/net/wireless/realtek/rtlwifi/rtl8192ce/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1920 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1922 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 2007 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2009 drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1805 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1807 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1884 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1886 drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 2259 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) cap 2261 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2263 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 670 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/trx.c bw_40 = sta->ht_cap.cap & cap 2021 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2023 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 2120 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2122 drivers/net/wireless/realtek/rtlwifi/rtl8192se/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1845 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1847 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 1932 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) cap 1934 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 1936 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 380 drivers/net/wireless/realtek/rtlwifi/rtl8723ae/trx.c bw_40 = sta->ht_cap.cap & cap 2319 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & cap 2321 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 2323 drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c u8 curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 434 drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.c bw_40 = sta->ht_cap.cap & cap 3304 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 3306 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 3488 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 b_curshortgi_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) ? cap 3490 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 b_curshortgi_20mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) ? cap 3493 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b_curshortgi_80mhz = (sta->vht_cap.cap & cap 3516 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c u8 curtxbw_40mhz = (sta->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) cap 552 drivers/net/wireless/realtek/rtw88/main.c if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) cap 554 drivers/net/wireless/realtek/rtw88/main.c if (sta->vht_cap.cap & IEEE80211_VHT_CAP_RXLDPC) cap 556 drivers/net/wireless/realtek/rtw88/main.c if (sta->vht_cap.cap & IEEE80211_VHT_CAP_SHORT_GI_80) cap 561 drivers/net/wireless/realtek/rtw88/main.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_RX_STBC) cap 563 drivers/net/wireless/realtek/rtw88/main.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_LDPC_CODING) cap 565 drivers/net/wireless/realtek/rtw88/main.c if (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20 || cap 566 drivers/net/wireless/realtek/rtw88/main.c sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40) cap 770 drivers/net/wireless/realtek/rtw88/main.c ht_cap->cap = 0; cap 771 drivers/net/wireless/realtek/rtw88/main.c ht_cap->cap |= IEEE80211_HT_CAP_SGI_20 | cap 776 drivers/net/wireless/realtek/rtw88/main.c ht_cap->cap |= IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 807 drivers/net/wireless/realtek/rtw88/main.c vht_cap->cap = IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | cap 222 drivers/net/wireless/rsi/rsi_91x_mac80211.c sbands->ht_cap.cap = (IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 1509 drivers/net/wireless/rsi/rsi_91x_mac80211.c if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) || cap 1510 drivers/net/wireless/rsi/rsi_91x_mac80211.c (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)) cap 1352 drivers/net/wireless/rsi/rsi_91x_mgmt.c if ((sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_20) || cap 1353 drivers/net/wireless/rsi/rsi_91x_mgmt.c (sta->ht_cap.cap & IEEE80211_HT_CAP_SGI_40)) cap 308 drivers/net/wireless/st/cw1200/cw1200.h (ht_info->ht_cap.cap & IEEE80211_HT_CAP_GRN_FLD) && cap 164 drivers/net/wireless/st/cw1200/main.c .cap = IEEE80211_HT_CAP_GRN_FLD | cap 184 drivers/net/wireless/st/cw1200/main.c .cap = IEEE80211_HT_CAP_GRN_FLD | cap 1724 drivers/net/wireless/ti/wl12xx/main.c .cap = IEEE80211_HT_CAP_GRN_FLD | IEEE80211_HT_CAP_SGI_20 | cap 147 drivers/net/wireless/ti/wl18xx/acx.c ht_cap->ht_supported, ht_cap->cap, rate_set); cap 157 drivers/net/wireless/ti/wl18xx/acx.c ht_capabilites = ht_cap->cap; cap 1757 drivers/net/wireless/ti/wl18xx/main.c .cap = IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40 | cap 1772 drivers/net/wireless/ti/wl18xx/main.c .cap = IEEE80211_HT_CAP_SGI_20 | IEEE80211_HT_CAP_SGI_40 | cap 1787 drivers/net/wireless/ti/wl18xx/main.c .cap = IEEE80211_HT_CAP_SGI_20 | cap 1801 drivers/net/wireless/ti/wl18xx/main.c .cap = IEEE80211_HT_CAP_SGI_20 | cap 1295 drivers/net/wireless/ti/wlcore/acx.c ht_cap->cap); cap 1305 drivers/net/wireless/ti/wlcore/acx.c ht_capabilites = ht_cap->cap; cap 50 drivers/net/wireless/virt_wifi.c .cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 103 drivers/net/wireless/virt_wifi.c .cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 117 drivers/net/wireless/virt_wifi.c .cap = IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | cap 2071 drivers/nvme/host/core.c static int nvme_wait_ready(struct nvme_ctrl *ctrl, u64 cap, bool enabled) cap 2074 drivers/nvme/host/core.c ((NVME_CAP_TIMEOUT(cap) + 1) * HZ / 2) + jiffies; cap 2118 drivers/nvme/host/core.c return nvme_wait_ready(ctrl, ctrl->cap, false); cap 2132 drivers/nvme/host/core.c ret = ctrl->ops->reg_read64(ctrl, NVME_REG_CAP, &ctrl->cap); cap 2137 drivers/nvme/host/core.c dev_page_min = NVME_CAP_MPSMIN(ctrl->cap) + 12; cap 2157 drivers/nvme/host/core.c return nvme_wait_ready(ctrl, ctrl->cap, true); cap 2753 drivers/nvme/host/core.c page_shift = NVME_CAP_MPSMIN(ctrl->cap) + 12; cap 2754 drivers/nvme/host/core.c ctrl->sqsize = min_t(int, NVME_CAP_MQES(ctrl->cap), ctrl->sqsize); cap 2757 drivers/nvme/host/core.c ctrl->subsystem = NVME_CAP_NSSRC(ctrl->cap); cap 155 drivers/nvme/host/lightnvm.c __le32 cap; cap 347 drivers/nvme/host/lightnvm.c geo->cap = le32_to_cpu(id->cap); cap 1003 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->cap); cap 216 drivers/nvme/host/nvme.h u64 cap; cap 1691 drivers/nvme/host/pci.c NVME_CAP_NSSRC(dev->ctrl.cap) : 0; cap 2338 drivers/nvme/host/pci.c dev->ctrl.cap = lo_hi_readq(dev->bar + NVME_REG_CAP); cap 2340 drivers/nvme/host/pci.c dev->q_depth = min_t(int, NVME_CAP_MQES(dev->ctrl.cap) + 1, cap 2343 drivers/nvme/host/pci.c dev->db_stride = 1 << NVME_CAP_STRIDE(dev->ctrl.cap); cap 2367 drivers/nvme/host/pci.c NVME_CAP_MQES(dev->ctrl.cap) == 0) { cap 263 drivers/nvme/host/rdma.c init_attr.cap.max_send_wr = factor * queue->queue_size + 1; cap 265 drivers/nvme/host/rdma.c init_attr.cap.max_recv_wr = queue->queue_size + 1; cap 266 drivers/nvme/host/rdma.c init_attr.cap.max_recv_sge = 1; cap 267 drivers/nvme/host/rdma.c init_attr.cap.max_send_sge = 1 + dev->num_inline_segments; cap 1081 drivers/nvme/target/core.c ctrl->cap = (1ULL << 37); cap 1083 drivers/nvme/target/core.c ctrl->cap |= (15ULL << 24); cap 1085 drivers/nvme/target/core.c ctrl->cap |= NVMET_QUEUE_SIZE - 1; cap 44 drivers/nvme/target/fabrics-cmd.c val = ctrl->cap; cap 167 drivers/nvme/target/nvmet.h u64 cap; cap 1010 drivers/nvme/target/rdma.c qp_attr.cap.max_send_wr = queue->send_queue_size + 1; cap 1011 drivers/nvme/target/rdma.c qp_attr.cap.max_rdma_ctxs = queue->send_queue_size; cap 1012 drivers/nvme/target/rdma.c qp_attr.cap.max_send_sge = max(ndev->device->attrs.max_sge_rd, cap 1019 drivers/nvme/target/rdma.c qp_attr.cap.max_recv_wr = 1 + queue->recv_queue_size; cap 1020 drivers/nvme/target/rdma.c qp_attr.cap.max_recv_sge = 1 + ndev->inline_page_count; cap 1029 drivers/nvme/target/rdma.c atomic_set(&queue->sq_wr_avail, qp_attr.cap.max_send_wr); cap 1032 drivers/nvme/target/rdma.c __func__, queue->cq->cqe, qp_attr.cap.max_send_sge, cap 1033 drivers/nvme/target/rdma.c qp_attr.cap.max_send_wr, queue->cm_id); cap 1060 drivers/opp/of.c u32 cap; cap 1072 drivers/opp/of.c ret = of_property_read_u32(np, "dynamic-power-coefficient", &cap); cap 1087 drivers/opp/of.c tmp = (u64)cap * mV * mV * (Hz / 1000000); cap 1109 drivers/opp/of.c u32 cap; cap 1130 drivers/opp/of.c ret = of_property_read_u32(np, "dynamic-power-coefficient", &cap); cap 1132 drivers/opp/of.c if (ret || !cap) cap 132 drivers/pci/ats.c u16 cap; cap 140 drivers/pci/ats.c pci_read_config_word(dev, dev->ats_cap + PCI_ATS_CAP, &cap); cap 141 drivers/pci/ats.c return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) : PCI_ATS_MAX_QDEP; cap 158 drivers/pci/ats.c u16 cap; cap 163 drivers/pci/ats.c pci_read_config_word(pdev, pdev->ats_cap + PCI_ATS_CAP, &cap); cap 165 drivers/pci/ats.c if (cap & PCI_ATS_CAP_PAGE_ALIGNED) cap 477 drivers/pci/controller/dwc/pcie-designware-ep.c static unsigned int dw_pcie_ep_find_ext_capability(struct dw_pcie *pci, int cap) cap 484 drivers/pci/controller/dwc/pcie-designware-ep.c if (PCI_EXT_CAP_ID(header) == cap) cap 23 drivers/pci/controller/dwc/pcie-designware.c u8 cap) cap 37 drivers/pci/controller/dwc/pcie-designware.c if (cap_id == cap) cap 41 drivers/pci/controller/dwc/pcie-designware.c return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); cap 44 drivers/pci/controller/dwc/pcie-designware.c u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap) cap 52 drivers/pci/controller/dwc/pcie-designware.c return __dw_pcie_find_next_cap(pci, next_cap_ptr, cap); cap 57 drivers/pci/controller/dwc/pcie-designware.c u8 cap) cap 78 drivers/pci/controller/dwc/pcie-designware.c if (PCI_EXT_CAP_ID(header) == cap && pos != start) cap 91 drivers/pci/controller/dwc/pcie-designware.c u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap) cap 93 drivers/pci/controller/dwc/pcie-designware.c return dw_pcie_find_next_ext_capability(pci, 0, cap); cap 263 drivers/pci/controller/dwc/pcie-designware.h u8 dw_pcie_find_capability(struct dw_pcie *pci, u8 cap); cap 264 drivers/pci/controller/dwc/pcie-designware.h u16 dw_pcie_find_ext_capability(struct dw_pcie *pci, u8 cap); cap 220 drivers/pci/controller/pcie-cadence-ep.c u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; cap 227 drivers/pci/controller/pcie-cadence-ep.c flags = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_FLAGS); cap 231 drivers/pci/controller/pcie-cadence-ep.c cdns_pcie_ep_fn_writew(pcie, fn, cap + PCI_MSI_FLAGS, flags); cap 240 drivers/pci/controller/pcie-cadence-ep.c u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; cap 244 drivers/pci/controller/pcie-cadence-ep.c flags = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_FLAGS); cap 319 drivers/pci/controller/pcie-cadence-ep.c u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; cap 325 drivers/pci/controller/pcie-cadence-ep.c flags = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_FLAGS); cap 337 drivers/pci/controller/pcie-cadence-ep.c data = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_DATA_64); cap 341 drivers/pci/controller/pcie-cadence-ep.c pci_addr = cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_HI); cap 343 drivers/pci/controller/pcie-cadence-ep.c pci_addr |= cdns_pcie_ep_fn_readl(pcie, fn, cap + PCI_MSI_ADDRESS_LO); cap 460 drivers/pci/iov.c (!(iov->cap & PCI_SRIOV_CAP_VFM) && (initial != iov->total_VFs))) cap 464 drivers/pci/iov.c (!(iov->cap & PCI_SRIOV_CAP_VFM) && (nr_virtfn > initial))) cap 666 drivers/pci/iov.c pci_read_config_dword(dev, pos + PCI_SRIOV_CAP, &iov->cap); cap 287 drivers/pci/pci-bridge-emul.c bridge->pcie_conf.cap = PCI_EXP_TYPE_ROOT_PORT << 4 | 2 | cap 46 drivers/pci/pci-bridge-emul.h u16 cap; cap 362 drivers/pci/pci.c u8 pos, int cap, int *ttl) cap 378 drivers/pci/pci.c if (id == cap) cap 386 drivers/pci/pci.c u8 pos, int cap) cap 390 drivers/pci/pci.c return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); cap 393 drivers/pci/pci.c int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) cap 396 drivers/pci/pci.c pos + PCI_CAP_LIST_NEXT, cap); cap 439 drivers/pci/pci.c int pci_find_capability(struct pci_dev *dev, int cap) cap 445 drivers/pci/pci.c pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap); cap 464 drivers/pci/pci.c int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) cap 473 drivers/pci/pci.c pos = __pci_find_next_cap(bus, devfn, pos, cap); cap 490 drivers/pci/pci.c int pci_find_next_ext_capability(struct pci_dev *dev, int start, int cap) cap 516 drivers/pci/pci.c if (PCI_EXT_CAP_ID(header) == cap && pos != start) cap 545 drivers/pci/pci.c int pci_find_ext_capability(struct pci_dev *dev, int cap) cap 547 drivers/pci/pci.c return pci_find_next_ext_capability(dev, 0, cap); cap 554 drivers/pci/pci.c u8 cap, mask; cap 564 drivers/pci/pci.c rc = pci_read_config_byte(dev, pos + 3, &cap); cap 568 drivers/pci/pci.c if ((cap & mask) == ht_cap) cap 1193 drivers/pci/pci.c u16 cap, bool extended) cap 1198 drivers/pci/pci.c if (tmp->cap.cap_extended == extended && tmp->cap.cap_nr == cap) cap 1204 drivers/pci/pci.c struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap) cap 1206 drivers/pci/pci.c return _pci_find_saved_cap(dev, cap, false); cap 1209 drivers/pci/pci.c struct pci_cap_saved_state *pci_find_saved_ext_cap(struct pci_dev *dev, u16 cap) cap 1211 drivers/pci/pci.c return _pci_find_saved_cap(dev, cap, true); cap 1218 drivers/pci/pci.c u16 *cap; cap 1229 drivers/pci/pci.c cap = (u16 *)&save_state->cap.data[0]; cap 1230 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_DEVCTL, &cap[i++]); cap 1231 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_LNKCTL, &cap[i++]); cap 1232 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_SLTCTL, &cap[i++]); cap 1233 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_RTCTL, &cap[i++]); cap 1234 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_DEVCTL2, &cap[i++]); cap 1235 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_LNKCTL2, &cap[i++]); cap 1236 drivers/pci/pci.c pcie_capability_read_word(dev, PCI_EXP_SLTCTL2, &cap[i++]); cap 1245 drivers/pci/pci.c u16 *cap; cap 1251 drivers/pci/pci.c cap = (u16 *)&save_state->cap.data[0]; cap 1252 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_DEVCTL, cap[i++]); cap 1253 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_LNKCTL, cap[i++]); cap 1254 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_SLTCTL, cap[i++]); cap 1255 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_RTCTL, cap[i++]); cap 1256 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_DEVCTL2, cap[i++]); cap 1257 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_LNKCTL2, cap[i++]); cap 1258 drivers/pci/pci.c pcie_capability_write_word(dev, PCI_EXP_SLTCTL2, cap[i++]); cap 1277 drivers/pci/pci.c (u16 *)save_state->cap.data); cap 1286 drivers/pci/pci.c u16 *cap; cap 1292 drivers/pci/pci.c cap = (u16 *)&save_state->cap.data[0]; cap 1294 drivers/pci/pci.c pci_write_config_word(dev, pos + PCI_X_CMD, cap[i++]); cap 1301 drivers/pci/pci.c u16 *cap; cap 1316 drivers/pci/pci.c cap = (u16 *)&save_state->cap.data[0]; cap 1317 drivers/pci/pci.c pci_read_config_word(dev, ltr + PCI_LTR_MAX_SNOOP_LAT, cap++); cap 1318 drivers/pci/pci.c pci_read_config_word(dev, ltr + PCI_LTR_MAX_NOSNOOP_LAT, cap++); cap 1325 drivers/pci/pci.c u16 *cap; cap 1332 drivers/pci/pci.c cap = (u16 *)&save_state->cap.data[0]; cap 1333 drivers/pci/pci.c pci_write_config_word(dev, ltr + PCI_LTR_MAX_SNOOP_LAT, *cap++); cap 1334 drivers/pci/pci.c pci_write_config_word(dev, ltr + PCI_LTR_MAX_NOSNOOP_LAT, *cap++); cap 1489 drivers/pci/pci.c struct pci_cap_saved_data cap[0]; cap 1503 drivers/pci/pci.c struct pci_cap_saved_data *cap; cap 1512 drivers/pci/pci.c size += sizeof(struct pci_cap_saved_data) + tmp->cap.size; cap 1521 drivers/pci/pci.c cap = state->cap; cap 1523 drivers/pci/pci.c size_t len = sizeof(struct pci_cap_saved_data) + tmp->cap.size; cap 1524 drivers/pci/pci.c memcpy(cap, &tmp->cap, len); cap 1525 drivers/pci/pci.c cap = (struct pci_cap_saved_data *)((u8 *)cap + len); cap 1541 drivers/pci/pci.c struct pci_cap_saved_data *cap; cap 1551 drivers/pci/pci.c cap = state->cap; cap 1552 drivers/pci/pci.c while (cap->size) { cap 1555 drivers/pci/pci.c tmp = _pci_find_saved_cap(dev, cap->cap_nr, cap->cap_extended); cap 1556 drivers/pci/pci.c if (!tmp || tmp->cap.size != cap->size) cap 1559 drivers/pci/pci.c memcpy(tmp->cap.data, cap->data, tmp->cap.size); cap 1560 drivers/pci/pci.c cap = (struct pci_cap_saved_data *)((u8 *)cap + cap 1561 drivers/pci/pci.c sizeof(struct pci_cap_saved_data) + cap->size); cap 3059 drivers/pci/pci.c static int _pci_add_cap_save_buffer(struct pci_dev *dev, u16 cap, cap 3066 drivers/pci/pci.c pos = pci_find_ext_capability(dev, cap); cap 3068 drivers/pci/pci.c pos = pci_find_capability(dev, cap); cap 3077 drivers/pci/pci.c save_state->cap.cap_nr = cap; cap 3078 drivers/pci/pci.c save_state->cap.cap_extended = extended; cap 3079 drivers/pci/pci.c save_state->cap.size = size; cap 3085 drivers/pci/pci.c int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size) cap 3087 drivers/pci/pci.c return _pci_add_cap_save_buffer(dev, cap, false, size); cap 3090 drivers/pci/pci.c int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size) cap 3092 drivers/pci/pci.c return _pci_add_cap_save_buffer(dev, cap, true, size); cap 3138 drivers/pci/pci.c u32 cap; cap 3148 drivers/pci/pci.c pcie_capability_read_dword(bridge, PCI_EXP_DEVCAP2, &cap); cap 3149 drivers/pci/pci.c if (!(cap & PCI_EXP_DEVCAP2_ARI)) cap 3240 drivers/pci/pci.c u16 cap; cap 3247 drivers/pci/pci.c pci_read_config_word(dev, pos + PCI_ACS_CAP, &cap); cap 3251 drivers/pci/pci.c ctrl |= (cap & PCI_ACS_SV); cap 3254 drivers/pci/pci.c ctrl |= (cap & PCI_ACS_RR); cap 3257 drivers/pci/pci.c ctrl |= (cap & PCI_ACS_CR); cap 3260 drivers/pci/pci.c ctrl |= (cap & PCI_ACS_UF); cap 3293 drivers/pci/pci.c u16 cap, ctrl; cap 3304 drivers/pci/pci.c pci_read_config_word(pdev, pos + PCI_ACS_CAP, &cap); cap 3305 drivers/pci/pci.c acs_flags &= (cap | PCI_ACS_EC); cap 3465 drivers/pci/pci.c u32 cap; cap 3471 drivers/pci/pci.c pci_read_config_dword(pdev, pos + PCI_REBAR_CAP, &cap); cap 3472 drivers/pci/pci.c return (cap & PCI_REBAR_CAP_SIZES) >> 4; cap 3538 drivers/pci/pci.c u32 cap, ctl2; cap 3562 drivers/pci/pci.c pcie_capability_read_dword(bridge, PCI_EXP_DEVCAP2, &cap); cap 3568 drivers/pci/pci.c if (!(cap & PCI_EXP_DEVCAP2_ATOMIC_ROUTE)) cap 3574 drivers/pci/pci.c if ((cap & cap_mask) != cap_mask) cap 4479 drivers/pci/pci.c u32 cap; cap 4484 drivers/pci/pci.c pcie_capability_read_dword(dev, PCI_EXP_DEVCAP, &cap); cap 4485 drivers/pci/pci.c return cap & PCI_EXP_DEVCAP_FLR; cap 4521 drivers/pci/pci.c u8 cap; cap 4530 drivers/pci/pci.c pci_read_config_byte(dev, pos + PCI_AF_CAP, &cap); cap 4531 drivers/pci/pci.c if (!(cap & PCI_AF_CAP_TP) || !(cap & PCI_AF_CAP_FLR)) cap 5538 drivers/pci/pci.c int cap; cap 5541 drivers/pci/pci.c cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); cap 5542 drivers/pci/pci.c if (!cap) cap 5545 drivers/pci/pci.c if (pci_read_config_dword(dev, cap + PCI_X_STATUS, &stat)) cap 5561 drivers/pci/pci.c int cap; cap 5564 drivers/pci/pci.c cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); cap 5565 drivers/pci/pci.c if (!cap) cap 5568 drivers/pci/pci.c if (pci_read_config_word(dev, cap + PCI_X_CMD, &cmd)) cap 5586 drivers/pci/pci.c int cap; cap 5595 drivers/pci/pci.c cap = pci_find_capability(dev, PCI_CAP_ID_PCIX); cap 5596 drivers/pci/pci.c if (!cap) cap 5599 drivers/pci/pci.c if (pci_read_config_dword(dev, cap + PCI_X_STATUS, &stat)) cap 5605 drivers/pci/pci.c if (pci_read_config_word(dev, cap + PCI_X_CMD, &cmd)) cap 5615 drivers/pci/pci.c if (pci_write_config_word(dev, cap + PCI_X_CMD, cmd)) cap 321 drivers/pci/pci.h u32 cap; /* SR-IOV Capabilities */ cap 63 drivers/pci/pcie/dpc.c u16 *cap; cap 76 drivers/pci/pcie/dpc.c cap = (u16 *)&save_state->cap.data[0]; cap 77 drivers/pci/pcie/dpc.c pci_read_config_word(dev, dpc->cap_pos + PCI_EXP_DPC_CTL, cap); cap 84 drivers/pci/pcie/dpc.c u16 *cap; cap 97 drivers/pci/pcie/dpc.c cap = (u16 *)&save_state->cap.data[0]; cap 98 drivers/pci/pcie/dpc.c pci_write_config_word(dev, dpc->cap_pos + PCI_EXP_DPC_CTL, *cap); cap 105 drivers/pci/pcie/dpc.c u16 cap = dpc->cap_pos, status; cap 107 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); cap 111 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); cap 123 drivers/pci/pcie/dpc.c u16 cap; cap 130 drivers/pci/pcie/dpc.c cap = dpc->cap_pos; cap 141 drivers/pci/pcie/dpc.c pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS, cap 153 drivers/pci/pcie/dpc.c u16 cap = dpc->cap_pos, dpc_status, first_error; cap 157 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, &status); cap 158 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_MASK, &mask); cap 162 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SEVERITY, &sev); cap 163 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_SYSERROR, &syserr); cap 164 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_EXCEPTION, &exc); cap 169 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &dpc_status); cap 180 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG, cap 182 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 4, cap 184 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 8, cap 186 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_HEADER_LOG + 12, cap 193 drivers/pci/pcie/dpc.c pci_read_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_IMPSPEC_LOG, &log); cap 198 drivers/pci/pcie/dpc.c cap + PCI_EXP_DPC_RP_PIO_TLPPREFIX_LOG, &prefix); cap 202 drivers/pci/pcie/dpc.c pci_write_config_dword(pdev, cap + PCI_EXP_DPC_RP_PIO_STATUS, status); cap 232 drivers/pci/pcie/dpc.c u16 cap = dpc->cap_pos, status, source, reason, ext_reason; cap 234 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); cap 235 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_SOURCE_ID, &source); cap 271 drivers/pci/pcie/dpc.c u16 cap = dpc->cap_pos, status; cap 273 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, cap + PCI_EXP_DPC_STATUS, &status); cap 278 drivers/pci/pcie/dpc.c pci_write_config_word(pdev, cap + PCI_EXP_DPC_STATUS, cap 292 drivers/pci/pcie/dpc.c u16 ctl, cap; cap 314 drivers/pci/pcie/dpc.c pci_read_config_word(pdev, dpc->cap_pos + PCI_EXP_DPC_CAP, &cap); cap 317 drivers/pci/pcie/dpc.c dpc->rp_extensions = (cap & PCI_EXP_DPC_CAP_RP_EXT); cap 319 drivers/pci/pcie/dpc.c dpc->rp_log_size = (cap & PCI_EXP_DPC_RP_PIO_LOG_SIZE) >> 8; cap 331 drivers/pci/pcie/dpc.c cap & PCI_EXP_DPC_IRQ, FLAG(cap, PCI_EXP_DPC_CAP_RP_EXT), cap 332 drivers/pci/pcie/dpc.c FLAG(cap, PCI_EXP_DPC_CAP_POISONED_TLP), cap 333 drivers/pci/pcie/dpc.c FLAG(cap, PCI_EXP_DPC_CAP_SW_TRIGGER), dpc->rp_log_size, cap 334 drivers/pci/pcie/dpc.c FLAG(cap, PCI_EXP_DPC_CAP_DL_ACTIVE)); cap 35 drivers/pci/pcie/ptm.c u32 cap, ctrl; cap 55 drivers/pci/pcie/ptm.c pci_read_config_dword(dev, pos + PCI_PTM_CAP, &cap); cap 56 drivers/pci/pcie/ptm.c local_clock = (cap & PCI_PTM_GRANULARITY_MASK) >> 8; cap 72 drivers/pci/pcie/ptm.c if (cap & PCI_PTM_CAP_ROOT) { cap 90 drivers/pci/pcie/ptm.c u32 cap, ctrl; cap 100 drivers/pci/pcie/ptm.c pci_read_config_dword(dev, pos + PCI_PTM_CAP, &cap); cap 101 drivers/pci/pcie/ptm.c if (!(cap & PCI_PTM_CAP_REQ)) cap 1940 drivers/pci/probe.c u32 cap; cap 1947 drivers/pci/probe.c ret = pcie_capability_read_dword(dev, PCI_EXP_DEVCAP, &cap); cap 1951 drivers/pci/probe.c if (!(cap & PCI_EXP_DEVCAP_EXT_TAG)) cap 2030 drivers/pci/probe.c u32 cap, ctl; cap 2035 drivers/pci/probe.c pcie_capability_read_dword(dev, PCI_EXP_DEVCAP2, &cap); cap 2036 drivers/pci/probe.c if (!(cap & PCI_EXP_DEVCAP2_LTR)) cap 2076 drivers/pci/probe.c u32 cap; cap 2081 drivers/pci/probe.c pcie_capability_read_dword(dev, PCI_EXP_DEVCAP2, &cap); cap 2082 drivers/pci/probe.c if (!(cap & PCI_EXP_DEVCAP2_EE_PREFIX)) cap 2465 drivers/pci/probe.c u16 cap = 0; cap 2475 drivers/pci/probe.c pci_read_config_word(dev, pos + PCI_ARI_CAP, &cap); cap 2476 drivers/pci/probe.c next_fn = PCI_ARI_CAP_NFN(cap); cap 3894 drivers/pci/quirks.c u32 cap = readl(bar + NVME_REG_CAP); cap 3913 drivers/pci/quirks.c timeout = ((NVME_CAP_TIMEOUT(cap) + 1) * HZ / 2) + jiffies; cap 4652 drivers/pci/quirks.c u32 cap, ctrl; cap 4662 drivers/pci/quirks.c pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap); cap 4663 drivers/pci/quirks.c acs_flags &= (cap | PCI_ACS_EC); cap 4945 drivers/pci/quirks.c u32 cap, ctrl; cap 4954 drivers/pci/quirks.c pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap); cap 4957 drivers/pci/quirks.c ctrl |= (cap & PCI_ACS_SV); cap 4958 drivers/pci/quirks.c ctrl |= (cap & PCI_ACS_RR); cap 4959 drivers/pci/quirks.c ctrl |= (cap & PCI_ACS_CR); cap 4960 drivers/pci/quirks.c ctrl |= (cap & PCI_ACS_UF); cap 4972 drivers/pci/quirks.c u32 cap, ctrl; cap 4981 drivers/pci/quirks.c pci_read_config_dword(dev, pos + PCI_ACS_CAP, &cap); cap 5061 drivers/pci/quirks.c u16 reg16, *cap; cap 5117 drivers/pci/quirks.c state->cap.cap_nr = PCI_CAP_ID_EXP; cap 5118 drivers/pci/quirks.c state->cap.cap_extended = 0; cap 5119 drivers/pci/quirks.c state->cap.size = size; cap 5120 drivers/pci/quirks.c cap = (u16 *)&state->cap.data[0]; cap 5121 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_DEVCTL, &cap[i++]); cap 5122 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_LNKCTL, &cap[i++]); cap 5123 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_SLTCTL, &cap[i++]); cap 5124 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_RTCTL, &cap[i++]); cap 5125 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_DEVCTL2, &cap[i++]); cap 5126 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_LNKCTL2, &cap[i++]); cap 5127 drivers/pci/quirks.c pcie_capability_read_word(pdev, PCI_EXP_SLTCTL2, &cap[i++]); cap 192 drivers/pci/vc.c u8 *buf = save_state ? (u8 *)save_state->cap.data : NULL; cap 195 drivers/pci/vc.c if (buf && save_state->cap.size != cap 276 drivers/pci/vc.c u32 cap; cap 280 drivers/pci/vc.c (i * PCI_CAP_VC_PER_VC_SIZEOF), &cap); cap 281 drivers/pci/vc.c parb_offset = ((cap & PCI_VC_RES_CAP_ARB_OFF) >> 24) * 16; cap 285 drivers/pci/vc.c if (cap & PCI_VC_RES_CAP_256_PHASE) cap 287 drivers/pci/vc.c else if (cap & (PCI_VC_RES_CAP_128_PHASE | cap 290 drivers/pci/vc.c else if (cap & PCI_VC_RES_CAP_64_PHASE) cap 292 drivers/pci/vc.c else if (cap & PCI_VC_RES_CAP_32_PHASE) cap 28 drivers/pci/vpd.c u8 cap; cap 150 drivers/pci/vpd.c ret = pci_user_read_config_word(dev, vpd->cap + PCI_VPD_ADDR, cap 213 drivers/pci/vpd.c ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, cap 223 drivers/pci/vpd.c ret = pci_user_read_config_dword(dev, vpd->cap + PCI_VPD_DATA, &val); cap 279 drivers/pci/vpd.c ret = pci_user_write_config_dword(dev, vpd->cap + PCI_VPD_DATA, val); cap 282 drivers/pci/vpd.c ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, cap 372 drivers/pci/vpd.c u8 cap; cap 374 drivers/pci/vpd.c cap = pci_find_capability(dev, PCI_CAP_ID_VPD); cap 375 drivers/pci/vpd.c if (!cap) cap 388 drivers/pci/vpd.c vpd->cap = cap; cap 131 drivers/pcmcia/vrc4173_cardu.c socket->cap.features |= SS_CAP_PCCARD | SS_CAP_PAGE_REGS; cap 132 drivers/pcmcia/vrc4173_cardu.c socket->cap.irq_mask = 0; cap 133 drivers/pcmcia/vrc4173_cardu.c socket->cap.map_size = 0x1000; cap 134 drivers/pcmcia/vrc4173_cardu.c socket->cap.pci_irq = socket->dev->irq; cap 156 drivers/pcmcia/vrc4173_cardu.c static int cardu_inquire_socket(unsigned int sock, socket_cap_t *cap) cap 160 drivers/pcmcia/vrc4173_cardu.c *cap = socket->cap; cap 239 drivers/pcmcia/vrc4173_cardu.h socket_cap_t cap; cap 103 drivers/perf/arm_spe_pmu.c static u32 arm_spe_pmu_cap_get(struct arm_spe_pmu *spe_pmu, int cap) cap 105 drivers/perf/arm_spe_pmu.c if (cap < SPE_PMU_CAP_FEAT_MAX) cap 106 drivers/perf/arm_spe_pmu.c return !!(spe_pmu->features & arm_spe_pmu_feat_caps[cap]); cap 108 drivers/perf/arm_spe_pmu.c switch (cap) { cap 114 drivers/perf/arm_spe_pmu.c WARN(1, "unknown cap %d\n", cap); cap 127 drivers/perf/arm_spe_pmu.c int cap = (long)ea->var; cap 130 drivers/perf/arm_spe_pmu.c arm_spe_pmu_cap_get(spe_pmu, cap)); cap 659 drivers/platform/x86/acer-wmi.c static bool has_cap(u32 cap) cap 661 drivers/platform/x86/acer-wmi.c return interface->capability & cap; cap 695 drivers/platform/x86/acer-wmi.c static acpi_status AMW0_get_u32(u32 *value, u32 cap) cap 700 drivers/platform/x86/acer-wmi.c switch (cap) { cap 765 drivers/platform/x86/acer-wmi.c static acpi_status AMW0_set_u32(u32 value, u32 cap) cap 773 drivers/platform/x86/acer-wmi.c switch (cap) { cap 979 drivers/platform/x86/acer-wmi.c static acpi_status WMID_get_u32(u32 *value, u32 cap) cap 985 drivers/platform/x86/acer-wmi.c switch (cap) { cap 1016 drivers/platform/x86/acer-wmi.c static acpi_status WMID_set_u32(u32 value, u32 cap) cap 1021 drivers/platform/x86/acer-wmi.c switch (cap) { cap 1107 drivers/platform/x86/acer-wmi.c static acpi_status wmid_v2_get_u32(u32 *value, u32 cap) cap 1111 drivers/platform/x86/acer-wmi.c switch (cap) { cap 1214 drivers/platform/x86/acer-wmi.c static acpi_status wmid_v2_set_u32(u32 value, u32 cap) cap 1218 drivers/platform/x86/acer-wmi.c switch (cap) { cap 1318 drivers/platform/x86/acer-wmi.c static acpi_status get_u32(u32 *value, u32 cap) cap 1324 drivers/platform/x86/acer-wmi.c status = AMW0_get_u32(value, cap); cap 1327 drivers/platform/x86/acer-wmi.c if (cap == ACER_CAP_MAILLED) { cap 1328 drivers/platform/x86/acer-wmi.c status = AMW0_get_u32(value, cap); cap 1333 drivers/platform/x86/acer-wmi.c status = WMID_get_u32(value, cap); cap 1336 drivers/platform/x86/acer-wmi.c if (cap & (ACER_CAP_WIRELESS | cap 1339 drivers/platform/x86/acer-wmi.c status = wmid_v2_get_u32(value, cap); cap 1341 drivers/platform/x86/acer-wmi.c status = WMID_get_u32(value, cap); cap 1348 drivers/platform/x86/acer-wmi.c static acpi_status set_u32(u32 value, u32 cap) cap 1352 drivers/platform/x86/acer-wmi.c if (interface->capability & cap) { cap 1355 drivers/platform/x86/acer-wmi.c return AMW0_set_u32(value, cap); cap 1357 drivers/platform/x86/acer-wmi.c if (cap == ACER_CAP_MAILLED) cap 1358 drivers/platform/x86/acer-wmi.c return AMW0_set_u32(value, cap); cap 1366 drivers/platform/x86/acer-wmi.c if (cap == ACER_CAP_WIRELESS || cap 1367 drivers/platform/x86/acer-wmi.c cap == ACER_CAP_BLUETOOTH) { cap 1368 drivers/platform/x86/acer-wmi.c status = WMID_set_u32(value, cap); cap 1372 drivers/platform/x86/acer-wmi.c return AMW0_set_u32(value, cap); cap 1376 drivers/platform/x86/acer-wmi.c return WMID_set_u32(value, cap); cap 1378 drivers/platform/x86/acer-wmi.c if (cap & (ACER_CAP_WIRELESS | cap 1381 drivers/platform/x86/acer-wmi.c return wmid_v2_set_u32(value, cap); cap 1383 drivers/platform/x86/acer-wmi.c return WMID_set_u32(value, cap); cap 1583 drivers/platform/x86/acer-wmi.c u32 cap = (unsigned long)data; cap 1586 drivers/platform/x86/acer-wmi.c status = set_u32(!blocked, cap); cap 1600 drivers/platform/x86/acer-wmi.c char *name, u32 cap) cap 1609 drivers/platform/x86/acer-wmi.c (void *)(unsigned long)cap); cap 1613 drivers/platform/x86/acer-wmi.c status = get_u32(&state, cap); cap 817 drivers/platform/x86/sony-laptop.c u16 cap[0x10]; cap 829 drivers/platform/x86/sony-laptop.c for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { cap 831 drivers/platform/x86/sony-laptop.c handles->cap[i]); cap 846 drivers/platform/x86/sony-laptop.c for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { cap 853 drivers/platform/x86/sony-laptop.c handles->cap[i] = result; cap 894 drivers/platform/x86/sony-laptop.c if (handles->cap[i] == handle) { cap 1203 drivers/platform/x86/sony-laptop.c if (offset >= ARRAY_SIZE(handles->cap)) { cap 1208 drivers/platform/x86/sony-laptop.c handle = handles->cap[offset]; cap 1309 drivers/platform/x86/sony-laptop.c for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { cap 1310 drivers/platform/x86/sony-laptop.c unsigned int handle = handles->cap[i]; cap 1443 drivers/platform/x86/sony-laptop.c for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { cap 1445 drivers/platform/x86/sony-laptop.c handle = handles->cap[i]; cap 1518 drivers/platform/x86/sony-laptop.c for (i = 0; i < ARRAY_SIZE(handles->cap); i++) { cap 1519 drivers/platform/x86/sony-laptop.c unsigned int handle = handles->cap[i]; cap 710 drivers/power/supply/88pm860x_battery.c static int calc_capacity(struct pm860x_battery_info *info, int *cap) cap 759 drivers/power/supply/88pm860x_battery.c *cap = min(cap_ocv, cap_cc); cap 767 drivers/power/supply/88pm860x_battery.c *cap = cap_ocv; cap 769 drivers/power/supply/88pm860x_battery.c *cap = cap_cc; cap 773 drivers/power/supply/88pm860x_battery.c if (*cap > info->last_capacity) cap 774 drivers/power/supply/88pm860x_battery.c *cap = info->last_capacity; cap 776 drivers/power/supply/88pm860x_battery.c *cap = cap_cc; cap 778 drivers/power/supply/88pm860x_battery.c info->last_capacity = *cap; cap 782 drivers/power/supply/88pm860x_battery.c cap_ocv, cap_cc, *cap); cap 788 drivers/power/supply/88pm860x_battery.c (*cap & 0x1F) << 3); cap 790 drivers/power/supply/88pm860x_battery.c ((*cap >> 5) & 0x3)); cap 858 drivers/power/supply/ab8500_fg.c int cap = 0; cap 869 drivers/power/supply/ab8500_fg.c cap = interpolate(voltage, cap 875 drivers/power/supply/ab8500_fg.c cap = 1000; cap 877 drivers/power/supply/ab8500_fg.c cap = 0; cap 881 drivers/power/supply/ab8500_fg.c __func__, voltage, cap); cap 883 drivers/power/supply/ab8500_fg.c return cap; cap 1474 drivers/power/supply/ab8500_fg.c int cap; cap 1477 drivers/power/supply/ab8500_fg.c cap = di->bat_cap.user_mah; cap 1478 drivers/power/supply/ab8500_fg.c if (cap > di->bat_cap.max_mah_design) { cap 1480 drivers/power/supply/ab8500_fg.c " %d\n", cap, di->bat_cap.max_mah_design); cap 1481 drivers/power/supply/ab8500_fg.c cap = di->bat_cap.max_mah_design; cap 1484 drivers/power/supply/ab8500_fg.c di->bat_cap.permille = ab8500_fg_convert_mah_to_permille(di, cap); cap 1485 drivers/power/supply/ab8500_fg.c di->bat_cap.mah = cap; cap 1491 drivers/power/supply/ab8500_fg.c int cap, lower, upper; cap 1494 drivers/power/supply/ab8500_fg.c cap = di->bat_cap.user_mah; cap 1510 drivers/power/supply/ab8500_fg.c lower, cap_permille, upper, cap, di->bat_cap.mah); cap 1514 drivers/power/supply/ab8500_fg.c dev_dbg(di->dev, "OK! Using users cap %d uAh now\n", cap); cap 713 drivers/power/supply/power_supply_core.c int i, cap, tmp; cap 723 drivers/power/supply/power_supply_core.c cap = tmp + table[i].capacity; cap 725 drivers/power/supply/power_supply_core.c cap = table[0].capacity; cap 727 drivers/power/supply/power_supply_core.c cap = table[table_len - 1].capacity; cap 730 drivers/power/supply/power_supply_core.c return cap; cap 113 drivers/power/supply/sc27xx_fuel_gauge.c int cap, bool int_mode); cap 114 drivers/power/supply/sc27xx_fuel_gauge.c static void sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap); cap 140 drivers/power/supply/sc27xx_fuel_gauge.c int ret, status, cap, mode; cap 152 drivers/power/supply/sc27xx_fuel_gauge.c cap = status & SC27XX_FGU_CAP_AREA_MASK; cap 159 drivers/power/supply/sc27xx_fuel_gauge.c if (mode == SC27XX_FGU_FIRST_POWERTON || cap == SC27XX_FGU_DEFAULT_CAP) cap 210 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_save_last_cap(struct sc27xx_fgu_data *data, int cap) cap 231 drivers/power/supply/sc27xx_fuel_gauge.c SC27XX_FGU_CAP_AREA_MASK, cap); cap 253 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_read_last_cap(struct sc27xx_fgu_data *data, int *cap) cap 262 drivers/power/supply/sc27xx_fuel_gauge.c *cap = value & SC27XX_FGU_CAP_AREA_MASK; cap 272 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_get_boot_capacity(struct sc27xx_fgu_data *data, int *cap) cap 283 drivers/power/supply/sc27xx_fuel_gauge.c ret = sc27xx_fgu_read_last_cap(data, cap); cap 318 drivers/power/supply/sc27xx_fuel_gauge.c *cap = power_supply_ocv2cap_simple(data->cap_table, data->table_len, cap 321 drivers/power/supply/sc27xx_fuel_gauge.c ret = sc27xx_fgu_save_last_cap(data, *cap); cap 370 drivers/power/supply/sc27xx_fuel_gauge.c static int sc27xx_fgu_get_capacity(struct sc27xx_fgu_data *data, int *cap) cap 393 drivers/power/supply/sc27xx_fuel_gauge.c *cap = delta_cap + data->init_cap; cap 396 drivers/power/supply/sc27xx_fuel_gauge.c sc27xx_fgu_capacity_calibration(data, *cap, false); cap 678 drivers/power/supply/sc27xx_fuel_gauge.c static void sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap) cap 682 drivers/power/supply/sc27xx_fuel_gauge.c data->init_cap = cap; cap 689 drivers/power/supply/sc27xx_fuel_gauge.c int cap, bool int_mode) cap 712 drivers/power/supply/sc27xx_fuel_gauge.c if ((ocv > data->cap_table[0].ocv && cap < 100) || cap > 100) { cap 725 drivers/power/supply/sc27xx_fuel_gauge.c } else if ((ocv > data->cap_table[data->table_len - 1].ocv && cap <= 0) || cap 726 drivers/power/supply/sc27xx_fuel_gauge.c (ocv > data->min_volt && cap <= data->alarm_cap)) { cap 742 drivers/power/supply/sc27xx_fuel_gauge.c if (cap > data->alarm_cap) { cap 781 drivers/power/supply/sc27xx_fuel_gauge.c int ret, cap; cap 803 drivers/power/supply/sc27xx_fuel_gauge.c ret = sc27xx_fgu_get_capacity(data, &cap); cap 807 drivers/power/supply/sc27xx_fuel_gauge.c sc27xx_fgu_capacity_calibration(data, cap, true); cap 161 drivers/rtc/rtc-efi.c efi_time_cap_t cap; cap 163 drivers/rtc/rtc-efi.c status = efi.get_time(&eft, &cap); cap 192 drivers/rtc/rtc-efi.c efi_time_cap_t cap; cap 197 drivers/rtc/rtc-efi.c memset(&cap, 0, sizeof(cap)); cap 199 drivers/rtc/rtc-efi.c efi.get_time(&eft, &cap); cap 241 drivers/rtc/rtc-efi.c cap.resolution, cap.accuracy, cap.sets_to_zero); cap 258 drivers/rtc/rtc-efi.c efi_time_cap_t cap; cap 261 drivers/rtc/rtc-efi.c if (efi.get_time(&eft, &cap) != EFI_SUCCESS) cap 286 drivers/scsi/csiostor/csio_hw.c csio_pci_capability(struct pci_dev *pdev, int cap, int *pos) cap 288 drivers/scsi/csiostor/csio_hw.c *pos = pci_find_capability(pdev, cap); cap 267 drivers/scsi/cxlflash/common.h static inline bool afu_has_cap(struct afu *afu, u64 cap) cap 271 drivers/scsi/cxlflash/common.h return afu_cap & cap; cap 609 drivers/scsi/fcoe/fcoe_ctlr.c } __packed * cap; cap 620 drivers/scsi/fcoe/fcoe_ctlr.c cap = skb_push(skb, sizeof(*cap)); cap 621 drivers/scsi/fcoe/fcoe_ctlr.c memset(cap, 0, sizeof(*cap)); cap 624 drivers/scsi/fcoe/fcoe_ctlr.c if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth.h_dest)) cap 636 drivers/scsi/fcoe/fcoe_ctlr.c memcpy(cap->eth.h_dest, fcf->fcf_mac, ETH_ALEN); cap 638 drivers/scsi/fcoe/fcoe_ctlr.c memcpy(cap->eth.h_source, fip->ctl_src_addr, ETH_ALEN); cap 639 drivers/scsi/fcoe/fcoe_ctlr.c cap->eth.h_proto = htons(ETH_P_FIP); cap 641 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_ver = FIP_VER_ENCAPS(FIP_VER); cap 642 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_op = htons(FIP_OP_LS); cap 644 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_subcode = FIP_SC_REP; cap 646 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_subcode = FIP_SC_REQ; cap 647 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_flags = htons(fip_flags); cap 649 drivers/scsi/fcoe/fcoe_ctlr.c cap->encaps.fd_desc.fip_dtype = dtype; cap 650 drivers/scsi/fcoe/fcoe_ctlr.c cap->encaps.fd_desc.fip_dlen = dlen / FIP_BPW; cap 670 drivers/scsi/fcoe/fcoe_ctlr.c cap->fip.fip_dl_len = htons(dlen / FIP_BPW); cap 3359 drivers/scsi/gdth.c static int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip) cap 3367 drivers/scsi/gdth.c capacity = cap; cap 1615 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c struct capabilities *cap; cap 1635 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c cap = dma_alloc_coherent(&vscsi->dma_dev->dev, olen, &token, cap 1637 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c if (!cap) { cap 1647 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c strncpy(cap->name, dev_name(&vscsi->dma_dev->dev), cap 1652 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c common = (struct mad_capability_common *)&cap->migration; cap 1677 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c cap->flags &= ~flag; cap 1711 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c dma_free_coherent(&vscsi->dma_dev->dev, olen, cap, token); cap 7887 drivers/scsi/ipr.c struct ipr_inquiry_cap *cap = &ioa_cfg->vpd_cbs->cap; cap 7890 drivers/scsi/ipr.c if (cap->cap & IPR_CAP_DUAL_IOA_RAID) cap 8068 drivers/scsi/ipr.c struct ipr_inquiry_cap *cap = &ioa_cfg->vpd_cbs->cap; cap 8072 drivers/scsi/ipr.c memset(cap, 0, sizeof(*cap)); cap 8076 drivers/scsi/ipr.c ioa_cfg->vpd_cbs_dma + offsetof(struct ipr_misc_cbs, cap), cap 834 drivers/scsi/ipr.h u8 cap; cap 1338 drivers/scsi/ipr.h struct ipr_inquiry_cap cap; cap 4060 drivers/scsi/ips.c IPS_SCSI_CAPACITY cap; cap 4067 drivers/scsi/ips.c cap.lba = cap 4071 drivers/scsi/ips.c cap.len = cpu_to_be32((uint32_t) IPS_BLKSIZE); cap 4073 drivers/scsi/ips.c ips_scmd_buf_write(scb->scsi_cmd, &cap, sizeof (cap)); cap 2160 drivers/scsi/qla2xxx/qla_bsg.c struct qla_flash_update_caps cap; cap 2165 drivers/scsi/qla2xxx/qla_bsg.c memset(&cap, 0, sizeof(cap)); cap 2166 drivers/scsi/qla2xxx/qla_bsg.c cap.capabilities = (uint64_t)ha->fw_attributes_ext[1] << 48 | cap 2172 drivers/scsi/qla2xxx/qla_bsg.c bsg_job->reply_payload.sg_cnt, &cap, sizeof(cap)); cap 2173 drivers/scsi/qla2xxx/qla_bsg.c bsg_reply->reply_payload_rcv_len = sizeof(cap); cap 2193 drivers/scsi/qla2xxx/qla_bsg.c struct qla_flash_update_caps cap; cap 2198 drivers/scsi/qla2xxx/qla_bsg.c memset(&cap, 0, sizeof(cap)); cap 2200 drivers/scsi/qla2xxx/qla_bsg.c bsg_job->request_payload.sg_cnt, &cap, sizeof(cap)); cap 2207 drivers/scsi/qla2xxx/qla_bsg.c if (online_fw_attr != cap.capabilities) { cap 2213 drivers/scsi/qla2xxx/qla_bsg.c if (cap.outage_duration < MAX_LOOP_TIMEOUT) { cap 576 drivers/spi/spi-fsl-spi.c capabilities = mpc8xxx_spi_read_reg(®_base->cap); cap 24 drivers/spi/spi-fsl-spi.h __be32 cap; /* TYPE_GRLIB specific */ cap 235 drivers/staging/fieldbus/anybuss/arcx-anybus.c u8 status1, cap; cap 266 drivers/staging/fieldbus/anybuss/arcx-anybus.c cap = readb(cd->cpld_base + CPLD_CAP); cap 267 drivers/staging/fieldbus/anybuss/arcx-anybus.c if (!(cap & CPLD_CAP_COMPAT)) { cap 268 drivers/staging/fieldbus/anybuss/arcx-anybus.c dev_err(dev, "unsupported controller [cap=0x%02X]", cap); cap 275 drivers/staging/fieldbus/anybuss/arcx-anybus.c cd->common_reset = !(cap & CPLD_CAP_SEP_RESETS); cap 47 drivers/staging/greybus/authentication.c struct gb_cap *cap = container_of(kref, struct gb_cap, kref); cap 49 drivers/staging/greybus/authentication.c kfree(cap); cap 57 drivers/staging/greybus/authentication.c static void put_cap(struct gb_cap *cap) cap 59 drivers/staging/greybus/authentication.c kref_put(&cap->kref, cap_kref_release); cap 65 drivers/staging/greybus/authentication.c struct gb_cap *cap; cap 69 drivers/staging/greybus/authentication.c list_for_each_entry(cap, &cap_list, node) { cap 70 drivers/staging/greybus/authentication.c if (&cap->cdev == cdev) { cap 71 drivers/staging/greybus/authentication.c kref_get(&cap->kref); cap 76 drivers/staging/greybus/authentication.c cap = NULL; cap 81 drivers/staging/greybus/authentication.c return cap; cap 84 drivers/staging/greybus/authentication.c static int cap_get_endpoint_uid(struct gb_cap *cap, u8 *euid) cap 86 drivers/staging/greybus/authentication.c struct gb_connection *connection = cap->connection; cap 93 drivers/staging/greybus/authentication.c dev_err(cap->parent, "failed to get endpoint uid (%d)\n", ret); cap 102 drivers/staging/greybus/authentication.c static int cap_get_ims_certificate(struct gb_cap *cap, u32 class, u32 id, cap 105 drivers/staging/greybus/authentication.c struct gb_connection *connection = cap->connection; cap 126 drivers/staging/greybus/authentication.c dev_err(cap->parent, "failed to get certificate (%d)\n", ret); cap 140 drivers/staging/greybus/authentication.c static int cap_authenticate(struct gb_cap *cap, u32 auth_type, u8 *uid, cap 144 drivers/staging/greybus/authentication.c struct gb_connection *connection = cap->connection; cap 165 drivers/staging/greybus/authentication.c dev_err(cap->parent, "failed to authenticate (%d)\n", ret); cap 184 drivers/staging/greybus/authentication.c struct gb_cap *cap = get_cap(inode->i_cdev); cap 187 drivers/staging/greybus/authentication.c if (cap) { cap 188 drivers/staging/greybus/authentication.c file->private_data = cap; cap 197 drivers/staging/greybus/authentication.c struct gb_cap *cap = file->private_data; cap 199 drivers/staging/greybus/authentication.c put_cap(cap); cap 203 drivers/staging/greybus/authentication.c static int cap_ioctl(struct gb_cap *cap, unsigned int cmd, cap 214 drivers/staging/greybus/authentication.c ret = cap_get_endpoint_uid(cap, endpoint_uid.uid); cap 228 drivers/staging/greybus/authentication.c ret = cap_get_ims_certificate(cap, ims_cert->certificate_class, cap 244 drivers/staging/greybus/authentication.c ret = cap_authenticate(cap, authenticate->auth_type, cap 264 drivers/staging/greybus/authentication.c struct gb_cap *cap = file->private_data; cap 265 drivers/staging/greybus/authentication.c struct gb_bundle *bundle = cap->connection->bundle; cap 278 drivers/staging/greybus/authentication.c mutex_lock(&cap->mutex); cap 279 drivers/staging/greybus/authentication.c if (!cap->disabled) { cap 282 drivers/staging/greybus/authentication.c ret = cap_ioctl(cap, cmd, (void __user *)arg); cap 286 drivers/staging/greybus/authentication.c mutex_unlock(&cap->mutex); cap 300 drivers/staging/greybus/authentication.c struct gb_cap *cap; cap 306 drivers/staging/greybus/authentication.c cap = kzalloc(sizeof(*cap), GFP_KERNEL); cap 307 drivers/staging/greybus/authentication.c if (!cap) cap 310 drivers/staging/greybus/authentication.c cap->parent = &connection->bundle->dev; cap 311 drivers/staging/greybus/authentication.c cap->connection = connection; cap 312 drivers/staging/greybus/authentication.c mutex_init(&cap->mutex); cap 313 drivers/staging/greybus/authentication.c gb_connection_set_data(connection, cap); cap 314 drivers/staging/greybus/authentication.c kref_init(&cap->kref); cap 317 drivers/staging/greybus/authentication.c list_add(&cap->node, &cap_list); cap 331 drivers/staging/greybus/authentication.c cap->dev_num = MKDEV(MAJOR(cap_dev_num), minor); cap 332 drivers/staging/greybus/authentication.c cdev_init(&cap->cdev, &cap_fops); cap 334 drivers/staging/greybus/authentication.c ret = cdev_add(&cap->cdev, cap->dev_num, 1); cap 339 drivers/staging/greybus/authentication.c cap->class_device = device_create(cap_class, cap->parent, cap->dev_num, cap 341 drivers/staging/greybus/authentication.c if (IS_ERR(cap->class_device)) { cap 342 drivers/staging/greybus/authentication.c ret = PTR_ERR(cap->class_device); cap 349 drivers/staging/greybus/authentication.c cdev_del(&cap->cdev); cap 356 drivers/staging/greybus/authentication.c list_del(&cap->node); cap 359 drivers/staging/greybus/authentication.c put_cap(cap); cap 366 drivers/staging/greybus/authentication.c struct gb_cap *cap; cap 371 drivers/staging/greybus/authentication.c cap = gb_connection_get_data(connection); cap 373 drivers/staging/greybus/authentication.c device_destroy(cap_class, cap->dev_num); cap 374 drivers/staging/greybus/authentication.c cdev_del(&cap->cdev); cap 375 drivers/staging/greybus/authentication.c ida_simple_remove(&cap_minors_map, MINOR(cap->dev_num)); cap 381 drivers/staging/greybus/authentication.c mutex_lock(&cap->mutex); cap 382 drivers/staging/greybus/authentication.c cap->disabled = true; cap 383 drivers/staging/greybus/authentication.c mutex_unlock(&cap->mutex); cap 386 drivers/staging/greybus/authentication.c gb_connection_disable(cap->connection); cap 390 drivers/staging/greybus/authentication.c list_del(&cap->node); cap 398 drivers/staging/greybus/authentication.c put_cap(cap); cap 2369 drivers/staging/media/allegro-dvt/allegro-core.c struct v4l2_capability *cap) cap 2374 drivers/staging/media/allegro-dvt/allegro-core.c strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 2375 drivers/staging/media/allegro-dvt/allegro-core.c strscpy(cap->card, "Allegro DVT Video Encoder", sizeof(cap->card)); cap 2376 drivers/staging/media/allegro-dvt/allegro-core.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", cap 76 drivers/staging/media/hantro/hantro_v4l2.c struct v4l2_capability *cap) cap 81 drivers/staging/media/hantro/hantro_v4l2.c strscpy(cap->driver, vpu->dev->driver->name, sizeof(cap->driver)); cap 82 drivers/staging/media/hantro/hantro_v4l2.c strscpy(cap->card, vdev->name, sizeof(cap->card)); cap 83 drivers/staging/media/hantro/hantro_v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "platform: %s", cap 70 drivers/staging/media/imx/imx-media-capture.c struct v4l2_capability *cap) cap 74 drivers/staging/media/imx/imx-media-capture.c strscpy(cap->driver, IMX_CAPTURE_NAME, sizeof(cap->driver)); cap 75 drivers/staging/media/imx/imx-media-capture.c strscpy(cap->card, IMX_CAPTURE_NAME, sizeof(cap->card)); cap 76 drivers/staging/media/imx/imx-media-capture.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 151 drivers/staging/media/imx/imx-media-csc-scaler.c struct v4l2_capability *cap) cap 153 drivers/staging/media/imx/imx-media-csc-scaler.c strscpy(cap->driver, "imx-media-csc-scaler", sizeof(cap->driver)); cap 154 drivers/staging/media/imx/imx-media-csc-scaler.c strscpy(cap->card, "imx-media-csc-scaler", sizeof(cap->card)); cap 155 drivers/staging/media/imx/imx-media-csc-scaler.c strscpy(cap->bus_info, "platform:imx-media-csc-scaler", cap 156 drivers/staging/media/imx/imx-media-csc-scaler.c sizeof(cap->bus_info)); cap 585 drivers/staging/media/ipu3/ipu3-v4l2.c struct v4l2_capability *cap) cap 589 drivers/staging/media/ipu3/ipu3-v4l2.c strscpy(cap->driver, IMGU_NAME, sizeof(cap->driver)); cap 590 drivers/staging/media/ipu3/ipu3-v4l2.c strscpy(cap->card, IMGU_NAME, sizeof(cap->card)); cap 591 drivers/staging/media/ipu3/ipu3-v4l2.c snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", node->name); cap 1058 drivers/staging/media/ipu3/ipu3-v4l2.c u32 cap; cap 1065 drivers/staging/media/ipu3/ipu3-v4l2.c cap = V4L2_CAP_VIDEO_OUTPUT_MPLANE; cap 1070 drivers/staging/media/ipu3/ipu3-v4l2.c cap = V4L2_CAP_META_OUTPUT; cap 1077 drivers/staging/media/ipu3/ipu3-v4l2.c cap = V4L2_CAP_META_CAPTURE; cap 1084 drivers/staging/media/ipu3/ipu3-v4l2.c cap = V4L2_CAP_VIDEO_CAPTURE_MPLANE; cap 1089 drivers/staging/media/ipu3/ipu3-v4l2.c vdev->device_caps = V4L2_CAP_STREAMING | cap; cap 438 drivers/staging/media/meson/vdec/vdec.c vdec_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 440 drivers/staging/media/meson/vdec/vdec.c strscpy(cap->driver, "meson-vdec", sizeof(cap->driver)); cap 441 drivers/staging/media/meson/vdec/vdec.c strscpy(cap->card, "Amlogic Video Decoder", sizeof(cap->card)); cap 442 drivers/staging/media/meson/vdec/vdec.c strscpy(cap->bus_info, "platform:meson-vdec", sizeof(cap->bus_info)); cap 529 drivers/staging/media/omap4iss/iss_video.c iss_video_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 533 drivers/staging/media/omap4iss/iss_video.c strscpy(cap->driver, ISS_VIDEO_DRIVER_NAME, sizeof(cap->driver)); cap 534 drivers/staging/media/omap4iss/iss_video.c strscpy(cap->card, video->video.name, sizeof(cap->card)); cap 535 drivers/staging/media/omap4iss/iss_video.c strscpy(cap->bus_info, "media", sizeof(cap->bus_info)); cap 536 drivers/staging/media/omap4iss/iss_video.c cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING cap 900 drivers/staging/media/soc_camera/soc_camera.c struct v4l2_capability *cap) cap 907 drivers/staging/media/soc_camera/soc_camera.c strscpy(cap->driver, ici->drv_name, sizeof(cap->driver)); cap 908 drivers/staging/media/soc_camera/soc_camera.c return ici->ops->querycap(ici, cap); cap 152 drivers/staging/media/sunxi/cedrus/cedrus_video.c struct v4l2_capability *cap) cap 154 drivers/staging/media/sunxi/cedrus/cedrus_video.c strscpy(cap->driver, CEDRUS_NAME, sizeof(cap->driver)); cap 155 drivers/staging/media/sunxi/cedrus/cedrus_video.c strscpy(cap->card, CEDRUS_NAME, sizeof(cap->card)); cap 156 drivers/staging/media/sunxi/cedrus/cedrus_video.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 815 drivers/staging/most/dim2/dim2.c struct most_channel_capability *cap = dev->capabilities + i; cap 823 drivers/staging/most/dim2/dim2.c cap->name_suffix = hdm_ch->name; cap 824 drivers/staging/most/dim2/dim2.c cap->direction = MOST_CH_RX | MOST_CH_TX; cap 825 drivers/staging/most/dim2/dim2.c cap->data_type = MOST_CH_CONTROL | MOST_CH_ASYNC | cap 827 drivers/staging/most/dim2/dim2.c cap->num_buffers_packet = MAX_BUFFERS_PACKET; cap 828 drivers/staging/most/dim2/dim2.c cap->buffer_size_packet = MAX_BUF_SIZE_PACKET; cap 829 drivers/staging/most/dim2/dim2.c cap->num_buffers_streaming = MAX_BUFFERS_STREAMING; cap 830 drivers/staging/most/dim2/dim2.c cap->buffer_size_streaming = MAX_BUF_SIZE_STREAMING; cap 106 drivers/staging/most/usb/usb.c struct most_channel_capability *cap; cap 1085 drivers/staging/most/usb/usb.c mdev->cap = kcalloc(num_endpoints, sizeof(*mdev->cap), GFP_KERNEL); cap 1086 drivers/staging/most/usb/usb.c if (!mdev->cap) cap 1089 drivers/staging/most/usb/usb.c mdev->iface.channel_vector = mdev->cap; cap 1100 drivers/staging/most/usb/usb.c tmp_cap = mdev->cap; cap 1174 drivers/staging/most/usb/usb.c kfree(mdev->cap); cap 1212 drivers/staging/most/usb/usb.c kfree(mdev->cap); cap 244 drivers/staging/most/video/video.c struct v4l2_capability *cap) cap 249 drivers/staging/most/video/video.c strlcpy(cap->driver, "v4l2_component", sizeof(cap->driver)); cap 250 drivers/staging/most/video/video.c strlcpy(cap->card, "MOST", sizeof(cap->card)); cap 251 drivers/staging/most/video/video.c snprintf(cap->bus_info, sizeof(cap->bus_info), cap 732 drivers/staging/rtl8188eu/core/rtw_ap.c u16 cap, ht_cap = false; cap 782 drivers/staging/rtl8188eu/core/rtw_ap.c cap = get_unaligned_le16(ie); cap 826 drivers/staging/rtl8188eu/core/rtw_ap.c if (cap & BIT(4)) cap 959 drivers/staging/rtl8188eu/core/rtw_ieee80211.c unsigned short cap = 0; cap 968 drivers/staging/rtl8188eu/core/rtw_ieee80211.c cap = le16_to_cpu(le_tmp); cap 969 drivers/staging/rtl8188eu/core/rtw_ieee80211.c if (cap & WLAN_CAPABILITY_PRIVACY) { cap 98 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c u16 cap; cap 170 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c cap = le16_to_cpu(le_tmp); cap 172 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (!WLAN_CAPABILITY_IS_STA_BSS(cap)) { cap 173 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (cap & WLAN_CAPABILITY_ESS) cap 193 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (cap & WLAN_CAPABILITY_PRIVACY) cap 310 drivers/staging/rtl8192e/rtl8192e/rtl_core.c static void _rtl92e_update_cap(struct net_device *dev, u16 cap) cap 316 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (cap & WLAN_CAPABILITY_SHORT_PREAMBLE) { cap 342 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if ((cap & WLAN_CAPABILITY_SHORT_SLOT_TIME) && cap 1130 drivers/staging/rtl8192u/r8192U_core.c static void rtl8192_update_cap(struct net_device *dev, u16 cap) cap 1136 drivers/staging/rtl8192u/r8192U_core.c priv->short_preamble = cap & WLAN_CAPABILITY_SHORT_PREAMBLE; cap 1145 drivers/staging/rtl8192u/r8192U_core.c if ((cap & WLAN_CAPABILITY_SHORT_SLOT) && cap 218 drivers/staging/rtl8712/rtl871x_ioctl_linux.c u16 cap, ht_cap = false, mcs_rate; cap 268 drivers/staging/rtl8712/rtl871x_ioctl_linux.c memcpy((u8 *)&cap, r8712_get_capability_from_ie(pnetwork->network.IEs), cap 270 drivers/staging/rtl8712/rtl871x_ioctl_linux.c le16_to_cpus(&cap); cap 271 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (cap & (WLAN_CAPABILITY_IBSS | WLAN_CAPABILITY_BSS)) { cap 272 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (cap & WLAN_CAPABILITY_BSS) cap 299 drivers/staging/rtl8712/rtl871x_ioctl_linux.c if (cap & WLAN_CAPABILITY_PRIVACY) cap 948 drivers/staging/rtl8723bs/core/rtw_ap.c u16 cap, ht_cap = false; cap 1002 drivers/staging/rtl8723bs/core/rtw_ap.c cap = RTW_GET_LE16(ie); cap 1070 drivers/staging/rtl8723bs/core/rtw_ap.c if (cap & BIT(4)) cap 1174 drivers/staging/rtl8723bs/core/rtw_ieee80211.c unsigned short cap = 0; cap 1185 drivers/staging/rtl8723bs/core/rtw_ieee80211.c cap = le16_to_cpu(le_cap); cap 1186 drivers/staging/rtl8723bs/core/rtw_ieee80211.c if (cap & WLAN_CAPABILITY_PRIVACY) { cap 3258 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c ht_cap->cap = IEEE80211_HT_CAP_SUP_WIDTH_20_40 | cap 85 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c u16 cap; cap 157 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c cap = 0; cap 163 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c cap = le16_to_cpu(le_tmp); cap 166 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (cap & (WLAN_CAPABILITY_IBSS |WLAN_CAPABILITY_BSS)) { cap 167 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (cap & WLAN_CAPABILITY_BSS) cap 187 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (cap & WLAN_CAPABILITY_PRIVACY) cap 868 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c struct v4l2_capability *cap) cap 876 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c strcpy((char *)cap->driver, "bm2835 mmal"); cap 877 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c snprintf((char *)cap->card, sizeof(cap->card), "mmal service %d.%d", cap 880 drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c snprintf((char *)cap->bus_info, sizeof(cap->bus_info), cap 1885 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c wl->band.ht_cap.cap |= (1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); cap 177 drivers/thermal/intel/int340x_thermal/int3400_thermal.c .cap.length = 8, cap 183 drivers/thermal/intel/int340x_thermal/int3400_thermal.c context.cap.pointer = buf; cap 70 drivers/thunderbolt/cap.c static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) cap 82 drivers/thunderbolt/cap.c if (header.basic.cap == cap) cap 100 drivers/thunderbolt/cap.c int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap) cap 108 drivers/thunderbolt/cap.c ret = __tb_port_find_cap(port, cap); cap 116 drivers/thunderbolt/cap.c static int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap) cap 128 drivers/thunderbolt/cap.c if (header.basic.cap == cap) cap 246 drivers/thunderbolt/eeprom.c struct tb_cap_plug_events cap; cap 252 drivers/thunderbolt/eeprom.c res = tb_sw_read(sw, &cap, TB_CFG_SWITCH, sw->cap_plug_events, cap 253 drivers/thunderbolt/eeprom.c sizeof(cap) / 4); cap 257 drivers/thunderbolt/eeprom.c if (!cap.eeprom_ctl.present || cap.eeprom_ctl.not_present) { cap 262 drivers/thunderbolt/eeprom.c if (cap.drom_offset > 0xffff) { cap 264 drivers/thunderbolt/eeprom.c cap.drom_offset); cap 267 drivers/thunderbolt/eeprom.c *offset = cap.drom_offset; cap 1362 drivers/thunderbolt/icm.c int cap; cap 1364 drivers/thunderbolt/icm.c cap = pci_find_ext_capability(upstream_port, cap 1366 drivers/thunderbolt/icm.c if (cap > 0) { cap 1368 drivers/thunderbolt/icm.c icm->vnd_cap = cap; cap 53 drivers/thunderbolt/lc.c int cap, ret; cap 58 drivers/thunderbolt/lc.c cap = find_port_lc_cap(port); cap 59 drivers/thunderbolt/lc.c if (cap < 0) cap 60 drivers/thunderbolt/lc.c return cap; cap 62 drivers/thunderbolt/lc.c ret = tb_sw_read(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); cap 82 drivers/thunderbolt/lc.c return tb_sw_write(sw, &ctrl, TB_CFG_SWITCH, cap + TB_LC_SX_CTRL, 1); cap 640 drivers/thunderbolt/switch.c int cap; cap 654 drivers/thunderbolt/switch.c cap = tb_port_find_cap(port, TB_PORT_CAP_PHY); cap 656 drivers/thunderbolt/switch.c if (cap > 0) cap 657 drivers/thunderbolt/switch.c port->cap_phy = cap; cap 661 drivers/thunderbolt/switch.c cap = tb_port_find_cap(port, TB_PORT_CAP_ADAP); cap 662 drivers/thunderbolt/switch.c if (cap > 0) cap 663 drivers/thunderbolt/switch.c port->cap_adap = cap; cap 606 drivers/thunderbolt/tb.h int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap); cap 58 drivers/thunderbolt/tb_regs.h u8 cap; /* if cap == 0x05 then we have a extended capability */ cap 71 drivers/thunderbolt/tb_regs.h u8 cap; cap 87 drivers/thunderbolt/tb_regs.h u8 cap; cap 2440 drivers/tty/mxser.c static int __init mxser_get_ISA_conf(int cap, struct mxser_board *brd) cap 2448 drivers/tty/mxser.c id = mxser_read_register(cap, regs); cap 2519 drivers/tty/mxser.c scratch2 = inb(cap + UART_LCR) & (~UART_LCR_DLAB); cap 2520 drivers/tty/mxser.c outb(scratch2 | UART_LCR_DLAB, cap + UART_LCR); cap 2521 drivers/tty/mxser.c outb(0, cap + UART_EFR); /* EFR is the same as FCR */ cap 2522 drivers/tty/mxser.c outb(scratch2, cap + UART_LCR); cap 2523 drivers/tty/mxser.c outb(UART_FCR_ENABLE_FIFO, cap + UART_FCR); cap 2524 drivers/tty/mxser.c scratch = inb(cap + UART_IIR); cap 144 drivers/tty/serial/fsl_linflexuart.c unsigned int len, cap; cap 618 drivers/tty/serial/fsl_linflexuart.c if (!earlycon_buf.cap) { cap 621 drivers/tty/serial/fsl_linflexuart.c earlycon_buf.cap = earlycon_buf.content ? cap 623 drivers/tty/serial/fsl_linflexuart.c } else if (earlycon_buf.len == earlycon_buf.cap) { cap 624 drivers/tty/serial/fsl_linflexuart.c ret = krealloc(earlycon_buf.content, earlycon_buf.cap << 1, cap 628 drivers/tty/serial/fsl_linflexuart.c earlycon_buf.cap <<= 1; cap 632 drivers/tty/serial/fsl_linflexuart.c if (earlycon_buf.len < earlycon_buf.cap) cap 152 drivers/usb/chipidea/ci.h void __iomem *cap; cap 130 drivers/usb/chipidea/core.c (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + cap 243 drivers/usb/chipidea/core.c ci->hw_bank.cap = ci->hw_bank.abs; cap 244 drivers/usb/chipidea/core.c ci->hw_bank.cap += ci->platdata->capoffset; cap 245 drivers/usb/chipidea/core.c ci->hw_bank.op = ci->hw_bank.cap + (ioread32(ci->hw_bank.cap) & 0xff); cap 276 drivers/usb/chipidea/core.c ci->rev, ci->hw_bank.lpm, ci->hw_bank.cap, ci->hw_bank.op); cap 137 drivers/usb/chipidea/host.c ehci->caps = ci->hw_bank.cap; cap 506 drivers/usb/chipidea/udc.c hwep->qh.ptr->cap |= cpu_to_le32(mul << __ffs(QH_MULT)); cap 1232 drivers/usb/chipidea/udc.c u32 cap = 0; cap 1257 drivers/usb/chipidea/udc.c cap |= QH_IOS; cap 1259 drivers/usb/chipidea/udc.c cap |= QH_ZLT; cap 1260 drivers/usb/chipidea/udc.c cap |= (hwep->ep.maxpacket << __ffs(QH_MAX_PKT)) & QH_MAX_PKT; cap 1266 drivers/usb/chipidea/udc.c cap |= 3 << __ffs(QH_MULT); cap 1268 drivers/usb/chipidea/udc.c hwep->qh.ptr->cap = cpu_to_le32(cap); cap 45 drivers/usb/chipidea/udc.h __le32 cap; cap 988 drivers/usb/core/config.c struct usb_dev_cap_header *cap; cap 1041 drivers/usb/core/config.c cap = (struct usb_dev_cap_header *)buffer; cap 1043 drivers/usb/core/config.c if (total_len < sizeof(*cap) || total_len < cap->bLength) { cap 1047 drivers/usb/core/config.c cap_type = cap->bDevCapabilityType; cap 1048 drivers/usb/core/config.c length = cap->bLength; cap 1054 drivers/usb/core/config.c if (cap->bDescriptorType != USB_DT_DEVICE_CAPABILITY) { cap 369 drivers/usb/early/ehci-dbgp.c static u32 __init find_cap(u32 num, u32 slot, u32 func, int cap) cap 386 drivers/usb/early/ehci-dbgp.c if (id == cap) cap 413 drivers/usb/early/ehci-dbgp.c unsigned cap; cap 415 drivers/usb/early/ehci-dbgp.c cap = __find_dbgp(bus, slot, func); cap 417 drivers/usb/early/ehci-dbgp.c if (!cap) cap 424 drivers/usb/early/ehci-dbgp.c return cap; cap 718 drivers/usb/early/ehci-dbgp.c u32 cap; cap 724 drivers/usb/early/ehci-dbgp.c cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, cap 726 drivers/usb/early/ehci-dbgp.c dbgp_printk("dbgp: ehci BIOS state %08x\n", cap); cap 728 drivers/usb/early/ehci-dbgp.c if ((cap & 0xff) == 1 && (cap & EHCI_USBLEGSUP_BIOS)) { cap 736 drivers/usb/early/ehci-dbgp.c while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { cap 739 drivers/usb/early/ehci-dbgp.c cap = read_pci_config(ehci_dev.bus, ehci_dev.slot, cap 743 drivers/usb/early/ehci-dbgp.c if (cap & EHCI_USBLEGSUP_BIOS) { cap 746 drivers/usb/early/ehci-dbgp.c dbgp_printk("dbgp: BIOS handoff failed: %08x\n", cap); cap 833 drivers/usb/early/ehci-dbgp.c u32 bus, slot, func, cap; cap 849 drivers/usb/early/ehci-dbgp.c cap = find_dbgp(dbgp_num, &bus, &slot, &func); cap 850 drivers/usb/early/ehci-dbgp.c if (!cap) cap 856 drivers/usb/early/ehci-dbgp.c debug_port = read_pci_config(bus, slot, func, cap); cap 64 drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) cap 70 drivers/usb/gadget/function/uvc_v4l2.c strlcpy(cap->driver, "g_uvc", sizeof(cap->driver)); cap 71 drivers/usb/gadget/function/uvc_v4l2.c strlcpy(cap->card, cdev->gadget->name, sizeof(cap->card)); cap 72 drivers/usb/gadget/function/uvc_v4l2.c strlcpy(cap->bus_info, dev_name(&cdev->gadget->dev), cap 73 drivers/usb/gadget/function/uvc_v4l2.c sizeof(cap->bus_info)); cap 800 drivers/usb/host/ehci-dbg.c u32 offset, cap, cap2; cap 807 drivers/usb/host/ehci-dbg.c pci_read_config_dword(pdev, offset, &cap); cap 808 drivers/usb/host/ehci-dbg.c switch (cap & 0xff) { cap 811 drivers/usb/host/ehci-dbg.c "ownership %08x%s%s\n", cap, cap 812 drivers/usb/host/ehci-dbg.c (cap & (1 << 24)) ? " linux" : "", cap 813 drivers/usb/host/ehci-dbg.c (cap & (1 << 16)) ? " firmware" : ""); cap 825 drivers/usb/host/ehci-dbg.c cap = 0; cap 830 drivers/usb/host/ehci-dbg.c offset = (cap >> 8) & 0xff; cap 854 drivers/usb/host/pci-quirks.c u32 cap, u8 offset) cap 870 drivers/usb/host/pci-quirks.c if (try_handoff && (cap & EHCI_USBLEGSUP_BIOS)) { cap 897 drivers/usb/host/pci-quirks.c while ((cap & EHCI_USBLEGSUP_BIOS) && (msec > 0)) { cap 901 drivers/usb/host/pci-quirks.c pci_read_config_dword(pdev, offset, &cap); cap 905 drivers/usb/host/pci-quirks.c if (cap & EHCI_USBLEGSUP_BIOS) { cap 912 drivers/usb/host/pci-quirks.c cap); cap 929 drivers/usb/host/pci-quirks.c u32 hcc_params, cap, val; cap 950 drivers/usb/host/pci-quirks.c pci_read_config_dword(pdev, offset, &cap); cap 952 drivers/usb/host/pci-quirks.c switch (cap & 0xff) { cap 954 drivers/usb/host/pci-quirks.c ehci_bios_handoff(pdev, op_reg_base, cap, offset); cap 957 drivers/usb/host/pci-quirks.c cap = 0; /* fall through */ cap 961 drivers/usb/host/pci-quirks.c cap & 0xff); cap 963 drivers/usb/host/pci-quirks.c offset = (cap >> 8) & 0xff; cap 330 drivers/usb/typec/altmodes/displayport.c u32 cap; cap 345 drivers/usb/typec/altmodes/displayport.c cap = DP_CAP_CAPABILITY(dp->alt->vdo); cap 347 drivers/usb/typec/altmodes/displayport.c if ((con == DP_CONF_DFP_D && !(cap & DP_CAP_DFP_D)) || cap 348 drivers/usb/typec/altmodes/displayport.c (con == DP_CONF_UFP_D && !(cap & DP_CAP_UFP_D))) { cap 375 drivers/usb/typec/altmodes/displayport.c u8 cap; cap 381 drivers/usb/typec/altmodes/displayport.c cap = DP_CAP_CAPABILITY(dp->alt->vdo); cap 389 drivers/usb/typec/altmodes/displayport.c else if ((i == DP_CONF_DFP_D && cap & DP_CAP_DFP_D) || cap 390 drivers/usb/typec/altmodes/displayport.c (i == DP_CONF_UFP_D && cap & DP_CAP_UFP_D)) cap 55 drivers/usb/typec/class.c const struct typec_capability *cap; cap 953 drivers/usb/typec/class.c if (port->cap->type != TYPEC_PORT_DRP) { cap 958 drivers/usb/typec/class.c if (!port->cap->try_role) { cap 971 drivers/usb/typec/class.c ret = port->cap->try_role(port->cap, role); cap 985 drivers/usb/typec/class.c if (port->cap->type != TYPEC_PORT_DRP) cap 1002 drivers/usb/typec/class.c if (!port->cap->dr_set) { cap 1012 drivers/usb/typec/class.c if (port->cap->data != TYPEC_PORT_DRD) { cap 1017 drivers/usb/typec/class.c ret = port->cap->dr_set(port->cap, ret); cap 1032 drivers/usb/typec/class.c if (port->cap->data == TYPEC_PORT_DRD) cap 1047 drivers/usb/typec/class.c if (!port->cap->pd_revision) { cap 1052 drivers/usb/typec/class.c if (!port->cap->pr_set) { cap 1074 drivers/usb/typec/class.c ret = port->cap->pr_set(port->cap, ret); cap 1089 drivers/usb/typec/class.c if (port->cap->type == TYPEC_PORT_DRP) cap 1105 drivers/usb/typec/class.c if (!port->cap->port_type_set || port->cap->type != TYPEC_PORT_DRP) { cap 1122 drivers/usb/typec/class.c ret = port->cap->port_type_set(port->cap, type); cap 1140 drivers/usb/typec/class.c if (port->cap->type == TYPEC_PORT_DRP) cap 1144 drivers/usb/typec/class.c return sprintf(buf, "[%s]\n", typec_port_power_roles[port->cap->type]); cap 1173 drivers/usb/typec/class.c if (!port->cap->pd_revision) { cap 1178 drivers/usb/typec/class.c if (!port->cap->vconn_set) { cap 1187 drivers/usb/typec/class.c ret = port->cap->vconn_set(port->cap, (enum typec_role)source); cap 1212 drivers/usb/typec/class.c for (i = 0; i < ARRAY_SIZE(port->cap->accessory); i++) { cap 1213 drivers/usb/typec/class.c if (port->cap->accessory[i]) cap 1215 drivers/usb/typec/class.c typec_accessory_modes[port->cap->accessory[i]]); cap 1232 drivers/usb/typec/class.c u16 rev = port->cap->revision; cap 1244 drivers/usb/typec/class.c return sprintf(buf, "%d\n", (p->cap->pd_revision >> 8) & 0xff); cap 1530 drivers/usb/typec/class.c const struct typec_capability *cap) cap 1546 drivers/usb/typec/class.c switch (cap->type) { cap 1556 drivers/usb/typec/class.c if (cap->prefer_role != TYPEC_NO_PREFERRED_ROLE) cap 1557 drivers/usb/typec/class.c port->pwr_role = cap->prefer_role; cap 1563 drivers/usb/typec/class.c switch (cap->data) { cap 1571 drivers/usb/typec/class.c if (cap->prefer_role == TYPEC_SOURCE) cap 1582 drivers/usb/typec/class.c port->cap = cap; cap 1583 drivers/usb/typec/class.c port->port_type = cap->type; cap 1584 drivers/usb/typec/class.c port->prefer_role = cap->prefer_role; cap 1589 drivers/usb/typec/class.c port->dev.fwnode = cap->fwnode; cap 394 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *typec_cap_to_tcpm(const struct typec_capability *cap) cap 396 drivers/usb/typec/tcpm/tcpm.c return container_of(cap, struct tcpm_port, typec_caps); cap 3999 drivers/usb/typec/tcpm/tcpm.c static int tcpm_dr_set(const struct typec_capability *cap, cap 4002 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); cap 4067 drivers/usb/typec/tcpm/tcpm.c static int tcpm_pr_set(const struct typec_capability *cap, cap 4070 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); cap 4111 drivers/usb/typec/tcpm/tcpm.c static int tcpm_vconn_set(const struct typec_capability *cap, cap 4114 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); cap 4151 drivers/usb/typec/tcpm/tcpm.c static int tcpm_try_role(const struct typec_capability *cap, int role) cap 4153 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); cap 4360 drivers/usb/typec/tcpm/tcpm.c static int tcpm_port_type_set(const struct typec_capability *cap, cap 4363 drivers/usb/typec/tcpm/tcpm.c struct tcpm_port *port = typec_cap_to_tcpm(cap); cap 311 drivers/usb/typec/tps6598x.c tps6598x_dr_set(const struct typec_capability *cap, enum typec_data_role role) cap 313 drivers/usb/typec/tps6598x.c struct tps6598x *tps = container_of(cap, struct tps6598x, typec_cap); cap 342 drivers/usb/typec/tps6598x.c tps6598x_pr_set(const struct typec_capability *cap, enum typec_role role) cap 344 drivers/usb/typec/tps6598x.c struct tps6598x *tps = container_of(cap, struct tps6598x, typec_cap); cap 146 drivers/usb/typec/ucsi/displayport.c u32 cap = dp->alt->vdo; cap 154 drivers/usb/typec/ucsi/displayport.c if (DP_CAP_CAPABILITY(cap) & DP_CAP_UFP_D) { cap 157 drivers/usb/typec/ucsi/displayport.c if (DP_CAP_UFP_D_PIN_ASSIGN(cap) & BIT(DP_PIN_ASSIGN_D)) cap 162 drivers/usb/typec/ucsi/displayport.c if (DP_CAP_DFP_D_PIN_ASSIGN(cap) & BIT(DP_PIN_ASSIGN_D)) cap 281 drivers/usb/typec/ucsi/ucsi.c override = !!(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_OVERRIDE); cap 356 drivers/usb/typec/ucsi/ucsi.c if (!(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_DETAILS)) cap 363 drivers/usb/typec/ucsi/ucsi.c max_altmodes = con->ucsi->cap.num_alt_modes; cap 717 drivers/usb/typec/ucsi/ucsi.c ucsi_dr_swap(const struct typec_capability *cap, enum typec_data_role role) cap 719 drivers/usb/typec/ucsi/ucsi.c struct ucsi_connector *con = to_ucsi_connector(cap); cap 752 drivers/usb/typec/ucsi/ucsi.c ucsi_pr_swap(const struct typec_capability *cap, enum typec_role role) cap 754 drivers/usb/typec/ucsi/ucsi.c struct ucsi_connector *con = to_ucsi_connector(cap); cap 805 drivers/usb/typec/ucsi/ucsi.c struct typec_capability *cap = &con->typec_cap; cap 806 drivers/usb/typec/ucsi/ucsi.c enum typec_accessory *accessory = cap->accessory; cap 818 drivers/usb/typec/ucsi/ucsi.c ret = ucsi_run_command(ucsi, &ctrl, &con->cap, sizeof(con->cap)); cap 822 drivers/usb/typec/ucsi/ucsi.c if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DRP) cap 823 drivers/usb/typec/ucsi/ucsi.c cap->data = TYPEC_PORT_DRD; cap 824 drivers/usb/typec/ucsi/ucsi.c else if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DFP) cap 825 drivers/usb/typec/ucsi/ucsi.c cap->data = TYPEC_PORT_DFP; cap 826 drivers/usb/typec/ucsi/ucsi.c else if (con->cap.op_mode & UCSI_CONCAP_OPMODE_UFP) cap 827 drivers/usb/typec/ucsi/ucsi.c cap->data = TYPEC_PORT_UFP; cap 829 drivers/usb/typec/ucsi/ucsi.c if (con->cap.provider && con->cap.consumer) cap 830 drivers/usb/typec/ucsi/ucsi.c cap->type = TYPEC_PORT_DRP; cap 831 drivers/usb/typec/ucsi/ucsi.c else if (con->cap.provider) cap 832 drivers/usb/typec/ucsi/ucsi.c cap->type = TYPEC_PORT_SRC; cap 833 drivers/usb/typec/ucsi/ucsi.c else if (con->cap.consumer) cap 834 drivers/usb/typec/ucsi/ucsi.c cap->type = TYPEC_PORT_SNK; cap 836 drivers/usb/typec/ucsi/ucsi.c cap->revision = ucsi->cap.typec_version; cap 837 drivers/usb/typec/ucsi/ucsi.c cap->pd_revision = ucsi->cap.pd_version; cap 838 drivers/usb/typec/ucsi/ucsi.c cap->prefer_role = TYPEC_NO_PREFERRED_ROLE; cap 840 drivers/usb/typec/ucsi/ucsi.c if (con->cap.op_mode & UCSI_CONCAP_OPMODE_AUDIO_ACCESSORY) cap 842 drivers/usb/typec/ucsi/ucsi.c if (con->cap.op_mode & UCSI_CONCAP_OPMODE_DEBUG_ACCESSORY) cap 845 drivers/usb/typec/ucsi/ucsi.c cap->fwnode = ucsi_find_fwnode(con); cap 846 drivers/usb/typec/ucsi/ucsi.c cap->dr_set = ucsi_dr_swap; cap 847 drivers/usb/typec/ucsi/ucsi.c cap->pr_set = ucsi_pr_swap; cap 850 drivers/usb/typec/ucsi/ucsi.c con->port = typec_register_port(ucsi->dev, cap); cap 927 drivers/usb/typec/ucsi/ucsi.c ret = ucsi_run_command(ucsi, &ctrl, &ucsi->cap, sizeof(ucsi->cap)); cap 931 drivers/usb/typec/ucsi/ucsi.c if (!ucsi->cap.num_connectors) { cap 937 drivers/usb/typec/ucsi/ucsi.c ucsi->connector = kcalloc(ucsi->cap.num_connectors + 1, cap 945 drivers/usb/typec/ucsi/ucsi.c for (i = 0; i < ucsi->cap.num_connectors; i++) { cap 1027 drivers/usb/typec/ucsi/ucsi.c for (i = 0; i < ucsi->cap.num_connectors; i++) { cap 391 drivers/usb/typec/ucsi/ucsi.h struct ucsi_capability cap; cap 426 drivers/usb/typec/ucsi/ucsi.h struct ucsi_connector_capability cap; cap 820 drivers/vfio/pci/vfio_pci_config.c u32 cap; cap 827 drivers/vfio/pci/vfio_pci_config.c &cap); cap 829 drivers/vfio/pci/vfio_pci_config.c if (!ret && (cap & PCI_EXP_DEVCAP_FLR)) cap 899 drivers/vfio/pci/vfio_pci_config.c u8 cap; cap 906 drivers/vfio/pci/vfio_pci_config.c &cap); cap 908 drivers/vfio/pci/vfio_pci_config.c if (!ret && (cap & PCI_AF_CAP_FLR) && (cap & PCI_AF_CAP_TP)) cap 1040 drivers/vfio/pci/vfio_pci_config.c u8 cap; cap 1043 drivers/vfio/pci/vfio_pci_config.c cap = vdev->pci_config_map[pos]; cap 1045 drivers/vfio/pci/vfio_pci_config.c if (cap == PCI_CAP_ID_BASIC) cap 1049 drivers/vfio/pci/vfio_pci_config.c while (pos - 1 >= base && vdev->pci_config_map[pos - 1] == cap) cap 1229 drivers/vfio/pci/vfio_pci_config.c static int vfio_cap_len(struct vfio_pci_device *vdev, u8 cap, u8 pos) cap 1237 drivers/vfio/pci/vfio_pci_config.c switch (cap) { cap 1298 drivers/vfio/pci/vfio_pci_config.c __func__, cap, pos); cap 1430 drivers/vfio/pci/vfio_pci_config.c u8 pos, *prev, cap; cap 1454 drivers/vfio/pci/vfio_pci_config.c ret = pci_read_config_byte(pdev, pos, &cap); cap 1463 drivers/vfio/pci/vfio_pci_config.c if (cap <= PCI_CAP_ID_MAX) { cap 1464 drivers/vfio/pci/vfio_pci_config.c len = pci_cap_length[cap]; cap 1466 drivers/vfio/pci/vfio_pci_config.c len = vfio_cap_len(vdev, cap, pos); cap 1474 drivers/vfio/pci/vfio_pci_config.c cap, pos); cap 1486 drivers/vfio/pci/vfio_pci_config.c __func__, pos + i, map[pos + i], cap); cap 1491 drivers/vfio/pci/vfio_pci_config.c memset(map + pos, cap, len); cap 1740 drivers/vfio/pci/vfio_pci_config.c u8 cap = vdev->pci_config_map[pos]; cap 1743 drivers/vfio/pci/vfio_pci_config.c for (i = 1; (pos + i) % 4 && vdev->pci_config_map[pos + i] == cap; i++) cap 178 drivers/vfio/pci/vfio_pci_nvlink2.c struct vfio_region_info_cap_nvlink2_ssatgt cap = { cap 184 drivers/vfio/pci/vfio_pci_nvlink2.c return vfio_info_add_capability(caps, &cap.header, sizeof(cap)); cap 1840 drivers/vfio/vfio.c struct vfio_info_cap_header *cap, size_t size) cap 1844 drivers/vfio/vfio.c header = vfio_info_cap_add(caps, size, cap->id, cap->version); cap 1848 drivers/vfio/vfio.c memcpy(header + 1, cap + 1, size - sizeof(*header)); cap 1083 drivers/video/fbdev/core/fbcon.c int cap, ret; cap 1092 drivers/video/fbdev/core/fbcon.c cap = info->flags; cap 1197 drivers/video/fbdev/core/fbcon.c if ((cap & FBINFO_HWACCEL_COPYAREA) && cap 1198 drivers/video/fbdev/core/fbcon.c !(cap & FBINFO_HWACCEL_DISABLED)) cap 2147 drivers/video/fbdev/core/fbcon.c int cap = info->flags; cap 2155 drivers/video/fbdev/core/fbcon.c int good_pan = (cap & FBINFO_HWACCEL_YPAN) && cap 2157 drivers/video/fbdev/core/fbcon.c int good_wrap = (cap & FBINFO_HWACCEL_YWRAP) && cap 2161 drivers/video/fbdev/core/fbcon.c int reading_fast = cap & FBINFO_READS_FAST; cap 2162 drivers/video/fbdev/core/fbcon.c int fast_copyarea = (cap & FBINFO_HWACCEL_COPYAREA) && cap 2163 drivers/video/fbdev/core/fbcon.c !(cap & FBINFO_HWACCEL_DISABLED); cap 2164 drivers/video/fbdev/core/fbcon.c int fast_imageblit = (cap & FBINFO_HWACCEL_IMAGEBLIT) && cap 2165 drivers/video/fbdev/core/fbcon.c !(cap & FBINFO_HWACCEL_DISABLED); cap 69 drivers/video/fbdev/mb862xx/mb862xxfb.h void __iomem *cap; cap 331 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CSC, cap 339 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CSC, cap 342 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CMSS, cap 344 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CMDS, cap 351 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CBM, cap 352 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c inreg(cap, GC_CAP_CBM) | GC_CBM_HRV); cap 355 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CBM, cap 356 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c inreg(cap, GC_CAP_CBM) & ~GC_CBM_HRV); cap 365 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_IMG_START, cap 367 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_IMG_END, cap 376 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_VCM, cap 381 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_VCM, cap 382 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c inreg(cap, GC_CAP_VCM) & ~GC_VCM_VIE); cap 390 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_VCM, cap 391 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c inreg(cap, GC_CAP_VCM) | GC_VCM_VIE); cap 393 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_VCM, cap 394 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c inreg(cap, GC_CAP_VCM) & ~GC_VCM_VIE); cap 533 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CBM, GC_CBM_OO | GC_CBM_CBST | cap 535 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CBOA, par->cap_buf); cap 536 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c outreg(cap, GC_CAP_CBLA, par->cap_buf + par->cap_len); cap 634 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->cap = par->mmio_base + MB862XX_CAP_BASE; cap 848 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->cap = par->mmio_base + MB862XX_CAP_BASE; cap 930 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->cap = par->mmio_base + MB86297_CAP0_BASE; cap 669 drivers/virtio/virtio_pci_modern.c cap.length), cap 674 drivers/virtio/virtio_pci_modern.c cap.offset), cap 34 drivers/xen/xen-pciback/conf_space_capability.c static inline void register_capability(struct xen_pcibk_config_capability *cap) cap 36 drivers/xen/xen-pciback/conf_space_capability.c list_add_tail(&cap->cap_list, &capabilities); cap 42 drivers/xen/xen-pciback/conf_space_capability.c struct xen_pcibk_config_capability *cap; cap 45 drivers/xen/xen-pciback/conf_space_capability.c list_for_each_entry(cap, &capabilities, cap_list) { cap 46 drivers/xen/xen-pciback/conf_space_capability.c cap_offset = pci_find_capability(dev, cap->capability); cap 49 drivers/xen/xen-pciback/conf_space_capability.c cap->capability, cap_offset); cap 57 drivers/xen/xen-pciback/conf_space_capability.c cap->fields, cap 606 fs/afs/cmservice.c } cap; cap 621 fs/afs/cmservice.c reply.cap.capcount = htonl(1); cap 622 fs/afs/cmservice.c reply.cap.caps[0] = htonl(AFS_CAP_ERROR_TRANSLATION); cap 135 fs/ceph/caps.c struct ceph_cap *cap; cap 139 fs/ceph/caps.c cap = list_first_entry(&mdsc->caps_list, cap 141 fs/ceph/caps.c list_del(&cap->caps_item); cap 142 fs/ceph/caps.c kmem_cache_free(ceph_cap_cachep, cap); cap 168 fs/ceph/caps.c struct ceph_cap *cap; cap 178 fs/ceph/caps.c cap = list_first_entry(&mdsc->caps_list, cap 180 fs/ceph/caps.c list_del(&cap->caps_item); cap 181 fs/ceph/caps.c kmem_cache_free(ceph_cap_cachep, cap); cap 204 fs/ceph/caps.c struct ceph_cap *cap; cap 229 fs/ceph/caps.c cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); cap 230 fs/ceph/caps.c if (cap) { cap 231 fs/ceph/caps.c list_add(&cap->caps_item, &newcaps); cap 329 fs/ceph/caps.c struct ceph_cap *cap = NULL; cap 333 fs/ceph/caps.c cap = kmem_cache_alloc(ceph_cap_cachep, GFP_NOFS); cap 334 fs/ceph/caps.c if (cap) { cap 346 fs/ceph/caps.c cap = list_first_entry(&mdsc->caps_list, cap 348 fs/ceph/caps.c list_del(&cap->caps_item); cap 356 fs/ceph/caps.c return cap; cap 372 fs/ceph/caps.c cap = list_first_entry(&mdsc->caps_list, struct ceph_cap, caps_item); cap 373 fs/ceph/caps.c list_del(&cap->caps_item); cap 378 fs/ceph/caps.c return cap; cap 381 fs/ceph/caps.c void ceph_put_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap) cap 385 fs/ceph/caps.c cap, mdsc->caps_total_count, mdsc->caps_use_count, cap 395 fs/ceph/caps.c kmem_cache_free(ceph_cap_cachep, cap); cap 398 fs/ceph/caps.c list_add(&cap->caps_item, &mdsc->caps_list); cap 435 fs/ceph/caps.c struct ceph_cap *cap; cap 439 fs/ceph/caps.c cap = rb_entry(n, struct ceph_cap, ci_node); cap 440 fs/ceph/caps.c if (mds < cap->mds) cap 442 fs/ceph/caps.c else if (mds > cap->mds) cap 445 fs/ceph/caps.c return cap; cap 452 fs/ceph/caps.c struct ceph_cap *cap; cap 455 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); cap 457 fs/ceph/caps.c return cap; cap 468 fs/ceph/caps.c struct ceph_cap *cap = NULL; cap 472 fs/ceph/caps.c cap = rb_entry(parent, struct ceph_cap, ci_node); cap 473 fs/ceph/caps.c if (new->mds < cap->mds) cap 475 fs/ceph/caps.c else if (new->mds > cap->mds) cap 567 fs/ceph/caps.c static void __check_cap_issue(struct ceph_inode_info *ci, struct ceph_cap *cap, cap 614 fs/ceph/caps.c struct ceph_cap *cap; cap 635 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); cap 636 fs/ceph/caps.c if (!cap) { cap 637 fs/ceph/caps.c cap = *new_cap; cap 640 fs/ceph/caps.c cap->issued = 0; cap 641 fs/ceph/caps.c cap->implemented = 0; cap 642 fs/ceph/caps.c cap->mds = mds; cap 643 fs/ceph/caps.c cap->mds_wanted = 0; cap 644 fs/ceph/caps.c cap->mseq = 0; cap 646 fs/ceph/caps.c cap->ci = ci; cap 647 fs/ceph/caps.c __insert_cap_node(ci, cap); cap 650 fs/ceph/caps.c cap->session = session; cap 652 fs/ceph/caps.c list_add_tail(&cap->session_caps, &session->s_caps); cap 657 fs/ceph/caps.c list_move_tail(&cap->session_caps, &session->s_caps); cap 660 fs/ceph/caps.c if (cap->cap_gen < gen) cap 661 fs/ceph/caps.c cap->issued = cap->implemented = CEPH_CAP_PIN; cap 672 fs/ceph/caps.c if (ceph_seq_cmp(seq, cap->seq) <= 0) { cap 673 fs/ceph/caps.c WARN_ON(cap != ci->i_auth_cap); cap 674 fs/ceph/caps.c WARN_ON(cap->cap_id != cap_id); cap 675 fs/ceph/caps.c seq = cap->seq; cap 676 fs/ceph/caps.c mseq = cap->mseq; cap 677 fs/ceph/caps.c issued |= cap->issued; cap 715 fs/ceph/caps.c __check_cap_issue(ci, cap, issued); cap 734 fs/ceph/caps.c ci->i_auth_cap = cap; cap 735 fs/ceph/caps.c cap->mds_wanted = wanted; cap 738 fs/ceph/caps.c WARN_ON(ci->i_auth_cap == cap); cap 742 fs/ceph/caps.c inode, ceph_vinop(inode), cap, ceph_cap_string(issued), cap 743 fs/ceph/caps.c ceph_cap_string(issued|cap->issued), seq, mds); cap 744 fs/ceph/caps.c cap->cap_id = cap_id; cap 745 fs/ceph/caps.c cap->issued = issued; cap 746 fs/ceph/caps.c cap->implemented |= issued; cap 747 fs/ceph/caps.c if (ceph_seq_cmp(mseq, cap->mseq) > 0) cap 748 fs/ceph/caps.c cap->mds_wanted = wanted; cap 750 fs/ceph/caps.c cap->mds_wanted |= wanted; cap 751 fs/ceph/caps.c cap->seq = seq; cap 752 fs/ceph/caps.c cap->issue_seq = seq; cap 753 fs/ceph/caps.c cap->mseq = mseq; cap 754 fs/ceph/caps.c cap->cap_gen = gen; cap 765 fs/ceph/caps.c static int __cap_is_valid(struct ceph_cap *cap) cap 770 fs/ceph/caps.c spin_lock(&cap->session->s_gen_ttl_lock); cap 771 fs/ceph/caps.c gen = cap->session->s_cap_gen; cap 772 fs/ceph/caps.c ttl = cap->session->s_cap_ttl; cap 773 fs/ceph/caps.c spin_unlock(&cap->session->s_gen_ttl_lock); cap 775 fs/ceph/caps.c if (cap->cap_gen < gen || time_after_eq(jiffies, ttl)) { cap 777 fs/ceph/caps.c "but STALE (gen %u vs %u)\n", &cap->ci->vfs_inode, cap 778 fs/ceph/caps.c cap, ceph_cap_string(cap->issued), cap->cap_gen, gen); cap 793 fs/ceph/caps.c struct ceph_cap *cap; cap 799 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 800 fs/ceph/caps.c if (!__cap_is_valid(cap)) cap 803 fs/ceph/caps.c &ci->vfs_inode, cap, ceph_cap_string(cap->issued)); cap 804 fs/ceph/caps.c have |= cap->issued; cap 806 fs/ceph/caps.c *implemented |= cap->implemented; cap 814 fs/ceph/caps.c cap = ci->i_auth_cap; cap 815 fs/ceph/caps.c have &= ~cap->implemented | cap->issued; cap 826 fs/ceph/caps.c struct ceph_cap *cap; cap 830 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 831 fs/ceph/caps.c if (cap == ocap) cap 833 fs/ceph/caps.c if (!__cap_is_valid(cap)) cap 835 fs/ceph/caps.c have |= cap->issued; cap 844 fs/ceph/caps.c static void __touch_cap(struct ceph_cap *cap) cap 846 fs/ceph/caps.c struct ceph_mds_session *s = cap->session; cap 850 fs/ceph/caps.c dout("__touch_cap %p cap %p mds%d\n", &cap->ci->vfs_inode, cap, cap 852 fs/ceph/caps.c list_move_tail(&cap->session_caps, &s->s_caps); cap 855 fs/ceph/caps.c &cap->ci->vfs_inode, cap, s->s_mds); cap 867 fs/ceph/caps.c struct ceph_cap *cap; cap 880 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 881 fs/ceph/caps.c if (!__cap_is_valid(cap)) cap 883 fs/ceph/caps.c if ((cap->issued & mask) == mask) { cap 885 fs/ceph/caps.c " (mask %s)\n", ci->vfs_inode.i_ino, cap, cap 886 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 889 fs/ceph/caps.c __touch_cap(cap); cap 894 fs/ceph/caps.c have |= cap->issued; cap 898 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 904 fs/ceph/caps.c __touch_cap(cap); cap 907 fs/ceph/caps.c cap = rb_entry(q, struct ceph_cap, cap 909 fs/ceph/caps.c if (!__cap_is_valid(cap)) cap 911 fs/ceph/caps.c __touch_cap(cap); cap 927 fs/ceph/caps.c struct ceph_cap *cap; cap 931 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 932 fs/ceph/caps.c if (cap != ocap && cap 933 fs/ceph/caps.c (cap->implemented & ~cap->issued & mask)) cap 990 fs/ceph/caps.c struct ceph_cap *cap; cap 995 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 996 fs/ceph/caps.c if (check && !__cap_is_valid(cap)) cap 998 fs/ceph/caps.c if (cap == ci->i_auth_cap) cap 999 fs/ceph/caps.c mds_wanted |= cap->mds_wanted; cap 1001 fs/ceph/caps.c mds_wanted |= (cap->mds_wanted & ~CEPH_CAP_ANY_FILE_WR); cap 1051 fs/ceph/caps.c void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release) cap 1053 fs/ceph/caps.c struct ceph_mds_session *session = cap->session; cap 1054 fs/ceph/caps.c struct ceph_inode_info *ci = cap->ci; cap 1059 fs/ceph/caps.c dout("__ceph_remove_cap %p from %p\n", cap, &ci->vfs_inode); cap 1062 fs/ceph/caps.c rb_erase(&cap->ci_node, &ci->i_caps); cap 1063 fs/ceph/caps.c if (ci->i_auth_cap == cap) cap 1068 fs/ceph/caps.c if (session->s_cap_iterator == cap) { cap 1071 fs/ceph/caps.c cap, cap->session); cap 1073 fs/ceph/caps.c list_del_init(&cap->session_caps); cap 1075 fs/ceph/caps.c cap->session = NULL; cap 1079 fs/ceph/caps.c cap->ci = NULL; cap 1086 fs/ceph/caps.c (!session->s_cap_reconnect || cap->cap_gen == session->s_cap_gen)) { cap 1087 fs/ceph/caps.c cap->queue_release = 1; cap 1089 fs/ceph/caps.c __ceph_queue_cap_release(session, cap); cap 1093 fs/ceph/caps.c cap->queue_release = 0; cap 1095 fs/ceph/caps.c cap->cap_ino = ci->i_vino.ino; cap 1100 fs/ceph/caps.c ceph_put_cap(mdsc, cap); cap 1249 fs/ceph/caps.c struct ceph_cap *cap = rb_entry(p, struct ceph_cap, ci_node); cap 1251 fs/ceph/caps.c __ceph_remove_cap(cap, true); cap 1269 fs/ceph/caps.c static int __send_cap(struct ceph_mds_client *mdsc, struct ceph_cap *cap, cap 1272 fs/ceph/caps.c __releases(cap->ci->i_ceph_lock) cap 1274 fs/ceph/caps.c struct ceph_inode_info *ci = cap->ci; cap 1283 fs/ceph/caps.c held = cap->issued | cap->implemented; cap 1284 fs/ceph/caps.c revoking = cap->implemented & ~cap->issued; cap 1288 fs/ceph/caps.c inode, cap, cap->session, cap 1293 fs/ceph/caps.c arg.session = cap->session; cap 1299 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 1300 fs/ceph/caps.c ceph_cap_string(cap->issued & retain), cap 1301 fs/ceph/caps.c ceph_cap_string(cap->mds_wanted), cap 1303 fs/ceph/caps.c want |= cap->mds_wanted; cap 1304 fs/ceph/caps.c retain |= cap->issued; cap 1308 fs/ceph/caps.c if (want & ~cap->mds_wanted) { cap 1316 fs/ceph/caps.c cap->issued &= retain; /* drop bits we don't want */ cap 1317 fs/ceph/caps.c if (cap->implemented & ~cap->issued) { cap 1326 fs/ceph/caps.c cap->implemented &= cap->issued | used; cap 1327 fs/ceph/caps.c cap->mds_wanted = want; cap 1330 fs/ceph/caps.c arg.cid = cap->cap_id; cap 1355 fs/ceph/caps.c arg.caps = cap->implemented; cap 1359 fs/ceph/caps.c arg.seq = cap->seq; cap 1360 fs/ceph/caps.c arg.issue_seq = cap->issue_seq; cap 1361 fs/ceph/caps.c arg.mseq = cap->mseq; cap 1506 fs/ceph/caps.c struct ceph_cap *cap = ci->i_auth_cap; cap 1510 fs/ceph/caps.c if (!(cap && cap->session == session)) { cap 1512 fs/ceph/caps.c "stop\n", inode, cap, session->s_mds); cap 1535 fs/ceph/caps.c ret = __send_flush_snap(inode, session, capsnap, cap->mseq, cap 1823 fs/ceph/caps.c struct ceph_cap *cap; cap 1924 fs/ceph/caps.c cap = rb_entry(p, struct ceph_cap, ci_node); cap 1927 fs/ceph/caps.c if (mds >= cap->mds || cap 1928 fs/ceph/caps.c ((flags & CHECK_CAPS_AUTHONLY) && cap != ci->i_auth_cap)) cap 1934 fs/ceph/caps.c if (ci->i_auth_cap && cap != ci->i_auth_cap) cap 1937 fs/ceph/caps.c revoking = cap->implemented & ~cap->issued; cap 1939 fs/ceph/caps.c cap->mds, cap, ceph_cap_string(cap_used), cap 1940 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 1941 fs/ceph/caps.c ceph_cap_string(cap->implemented), cap 1944 fs/ceph/caps.c if (cap == ci->i_auth_cap && cap 1945 fs/ceph/caps.c (cap->issued & CEPH_CAP_FILE_WR)) { cap 1960 fs/ceph/caps.c if (cap == ci->i_auth_cap) { cap 1974 fs/ceph/caps.c ceph_cap_string(cap->implemented & ~cap->issued)); cap 1979 fs/ceph/caps.c if (want & ~cap->mds_wanted) { cap 1980 fs/ceph/caps.c if (want & ~(cap->mds_wanted | cap->issued)) cap 1982 fs/ceph/caps.c if (!__cap_is_valid(cap)) cap 1987 fs/ceph/caps.c if ((cap->issued & ~retain) == 0) cap 1997 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 1998 fs/ceph/caps.c ceph_cap_string(cap->issued & retain), cap 1999 fs/ceph/caps.c ceph_cap_string(cap->mds_wanted), cap 2006 fs/ceph/caps.c if (session && session != cap->session) { cap 2012 fs/ceph/caps.c session = cap->session; cap 2028 fs/ceph/caps.c if (cap == ci->i_auth_cap && cap 2052 fs/ceph/caps.c if (cap == ci->i_auth_cap && ci->i_dirty_caps) { cap 2064 fs/ceph/caps.c mds = cap->mds; /* remember mds, so we don't repeat */ cap 2068 fs/ceph/caps.c delayed += __send_cap(mdsc, cap, CEPH_CAP_OP_UPDATE, 0, cap 2104 fs/ceph/caps.c struct ceph_cap *cap = ci->i_auth_cap; cap 2107 fs/ceph/caps.c if (session != cap->session) { cap 2111 fs/ceph/caps.c session = cap->session; cap 2115 fs/ceph/caps.c if (cap->session->s_state < CEPH_MDS_SESSION_OPEN) { cap 2134 fs/ceph/caps.c delayed = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH, cap 2138 fs/ceph/caps.c (cap->issued | cap->implemented), cap 2314 fs/ceph/caps.c struct ceph_cap *cap; cap 2333 fs/ceph/caps.c cap = ci->i_auth_cap; cap 2334 fs/ceph/caps.c if (!(cap && cap->session == session)) { cap 2336 fs/ceph/caps.c inode, cap, session->s_mds); cap 2344 fs/ceph/caps.c inode, cap, cf->tid, ceph_cap_string(cf->caps)); cap 2347 fs/ceph/caps.c ret = __send_cap(mdsc, cap, CEPH_CAP_OP_FLUSH, cap 2352 fs/ceph/caps.c (cap->issued | cap->implemented), cap 2372 fs/ceph/caps.c ret = __send_flush_snap(inode, session, capsnap, cap->mseq, cap 2393 fs/ceph/caps.c struct ceph_cap *cap; cap 2404 fs/ceph/caps.c cap = ci->i_auth_cap; cap 2405 fs/ceph/caps.c if (!(cap && cap->session == session)) { cap 2407 fs/ceph/caps.c &ci->vfs_inode, cap, session->s_mds); cap 2419 fs/ceph/caps.c if ((cap->issued & ci->i_flushing_caps) != cap 2424 fs/ceph/caps.c cap->seq = 0; cap 2425 fs/ceph/caps.c cap->issue_seq = 0; cap 2426 fs/ceph/caps.c cap->mseq = 0; cap 2441 fs/ceph/caps.c struct ceph_cap *cap; cap 2452 fs/ceph/caps.c cap = ci->i_auth_cap; cap 2453 fs/ceph/caps.c if (!(cap && cap->session == session)) { cap 2455 fs/ceph/caps.c &ci->vfs_inode, cap, session->s_mds); cap 2473 fs/ceph/caps.c struct ceph_cap *cap; cap 2475 fs/ceph/caps.c cap = ci->i_auth_cap; cap 2483 fs/ceph/caps.c &cap->session->s_cap_flushing); cap 3093 fs/ceph/caps.c struct ceph_cap *cap, cap 3107 fs/ceph/caps.c bool was_stale = cap->cap_gen < session->s_cap_gen; cap 3116 fs/ceph/caps.c inode, cap, session->s_mds, seq, ceph_cap_string(newcaps)); cap 3127 fs/ceph/caps.c ((cap->issued & ~newcaps) & CEPH_CAP_FILE_CACHE) && cap 3141 fs/ceph/caps.c cap->issued = cap->implemented = CEPH_CAP_PIN; cap 3151 fs/ceph/caps.c if (ceph_seq_cmp(seq, cap->seq) <= 0) { cap 3152 fs/ceph/caps.c WARN_ON(cap != ci->i_auth_cap); cap 3153 fs/ceph/caps.c WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id)); cap 3154 fs/ceph/caps.c seq = cap->seq; cap 3155 fs/ceph/caps.c newcaps |= cap->issued; cap 3159 fs/ceph/caps.c cap->cap_gen = session->s_cap_gen; cap 3160 fs/ceph/caps.c cap->seq = seq; cap 3162 fs/ceph/caps.c __check_cap_issue(ci, cap, newcaps); cap 3241 fs/ceph/caps.c if (ci->i_auth_cap == cap && (newcaps & CEPH_CAP_ANY_FILE_WR)) { cap 3268 fs/ceph/caps.c (wanted & ~(cap->mds_wanted | newcaps))) { cap 3283 fs/ceph/caps.c if (cap->issued & ~newcaps) { cap 3284 fs/ceph/caps.c int revoking = cap->issued & ~newcaps; cap 3287 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 3296 fs/ceph/caps.c else if (cap == ci->i_auth_cap) cap 3300 fs/ceph/caps.c cap->issued = newcaps; cap 3301 fs/ceph/caps.c cap->implemented |= newcaps; cap 3302 fs/ceph/caps.c } else if (cap->issued == newcaps) { cap 3304 fs/ceph/caps.c ceph_cap_string(cap->issued), ceph_cap_string(newcaps)); cap 3306 fs/ceph/caps.c dout("grant: %s -> %s\n", ceph_cap_string(cap->issued), cap 3309 fs/ceph/caps.c if (cap == ci->i_auth_cap && cap 3310 fs/ceph/caps.c __ceph_caps_revoking_other(ci, cap, newcaps)) cap 3313 fs/ceph/caps.c cap->issued = newcaps; cap 3314 fs/ceph/caps.c cap->implemented |= newcaps; /* add bits only, to cap 3319 fs/ceph/caps.c BUG_ON(cap->issued & ~cap->implemented); cap 3375 fs/ceph/caps.c struct ceph_cap *cap) cap 3585 fs/ceph/caps.c struct ceph_cap *cap, *tcap, *new_cap = NULL; cap 3607 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); cap 3608 fs/ceph/caps.c if (!cap || cap->cap_id != le64_to_cpu(ex->cap_id)) cap 3612 fs/ceph/caps.c if (cap->mds_wanted | cap->issued) cap 3614 fs/ceph/caps.c __ceph_remove_cap(cap, false); cap 3623 fs/ceph/caps.c issued = cap->issued; cap 3624 fs/ceph/caps.c if (issued != cap->implemented) cap 3628 fs/ceph/caps.c ceph_vinop(inode), mds, cap->seq, cap->mseq, cap 3630 fs/ceph/caps.c ceph_cap_string(cap->implemented)); cap 3644 fs/ceph/caps.c if (cap == ci->i_auth_cap) cap 3655 fs/ceph/caps.c __ceph_remove_cap(cap, false); cap 3659 fs/ceph/caps.c int flag = (cap == ci->i_auth_cap) ? CEPH_CAP_FLAG_AUTH : 0; cap 3672 fs/ceph/caps.c __ceph_remove_cap(cap, false); cap 3724 fs/ceph/caps.c struct ceph_cap *cap, *ocap, *new_cap = NULL; cap 3749 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); cap 3750 fs/ceph/caps.c if (!cap) { cap 3756 fs/ceph/caps.c cap = new_cap; cap 3792 fs/ceph/caps.c *target_cap = cap; cap 3807 fs/ceph/caps.c struct ceph_cap *cap; cap 3930 fs/ceph/caps.c cap = ceph_get_cap(mdsc, NULL); cap 3931 fs/ceph/caps.c cap->cap_ino = vino.ino; cap 3932 fs/ceph/caps.c cap->queue_release = 1; cap 3933 fs/ceph/caps.c cap->cap_id = le64_to_cpu(h->cap_id); cap 3934 fs/ceph/caps.c cap->mseq = mseq; cap 3935 fs/ceph/caps.c cap->seq = seq; cap 3936 fs/ceph/caps.c cap->issue_seq = seq; cap 3938 fs/ceph/caps.c __ceph_queue_cap_release(session, cap); cap 3967 fs/ceph/caps.c &cap, &extra_info.issued); cap 3968 fs/ceph/caps.c handle_cap_grant(inode, session, cap, cap 3977 fs/ceph/caps.c cap = __get_cap_for_mds(ceph_inode(inode), session->s_mds); cap 3978 fs/ceph/caps.c if (!cap) { cap 3992 fs/ceph/caps.c handle_cap_grant(inode, session, cap, cap 3998 fs/ceph/caps.c h, session, cap); cap 4169 fs/ceph/caps.c struct ceph_cap *cap; cap 4185 fs/ceph/caps.c cap = __get_cap_for_mds(ci, mds); cap 4186 fs/ceph/caps.c if (cap && __cap_is_valid(cap)) { cap 4187 fs/ceph/caps.c unless &= cap->issued; cap 4199 fs/ceph/caps.c if (force || (cap->issued & drop)) { cap 4200 fs/ceph/caps.c if (cap->issued & drop) { cap 4203 fs/ceph/caps.c wanted |= cap->mds_wanted; cap 4205 fs/ceph/caps.c "%s -> %s, wanted %s -> %s\n", inode, cap, cap 4206 fs/ceph/caps.c ceph_cap_string(cap->issued), cap 4207 fs/ceph/caps.c ceph_cap_string(cap->issued & ~drop), cap 4208 fs/ceph/caps.c ceph_cap_string(cap->mds_wanted), cap 4211 fs/ceph/caps.c cap->issued &= ~drop; cap 4212 fs/ceph/caps.c cap->implemented &= ~drop; cap 4213 fs/ceph/caps.c cap->mds_wanted = wanted; cap 4216 fs/ceph/caps.c " (force)\n", inode, cap, cap 4217 fs/ceph/caps.c ceph_cap_string(cap->issued)); cap 4221 fs/ceph/caps.c rel->cap_id = cpu_to_le64(cap->cap_id); cap 4222 fs/ceph/caps.c rel->seq = cpu_to_le32(cap->seq); cap 4223 fs/ceph/caps.c rel->issue_seq = cpu_to_le32(cap->issue_seq); cap 4224 fs/ceph/caps.c rel->mseq = cpu_to_le32(cap->mseq); cap 4225 fs/ceph/caps.c rel->caps = cpu_to_le32(cap->implemented); cap 4226 fs/ceph/caps.c rel->wanted = cpu_to_le32(cap->mds_wanted); cap 4233 fs/ceph/caps.c inode, cap, ceph_cap_string(cap->issued)); cap 127 fs/ceph/debugfs.c static int caps_show_cb(struct inode *inode, struct ceph_cap *cap, void *p) cap 132 fs/ceph/debugfs.c ceph_cap_string(cap->issued), cap 133 fs/ceph/debugfs.c ceph_cap_string(cap->implemented)); cap 754 fs/ceph/inode.c info_caps = le32_to_cpu(info->cap.caps); cap 793 fs/ceph/inode.c ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && cap 866 fs/ceph/inode.c if ((info->cap.flags & CEPH_CAP_FLAG_AUTH) && cap 876 fs/ceph/inode.c if (new_version || (info->cap.flags & CEPH_CAP_FLAG_AUTH)) { cap 964 fs/ceph/inode.c le64_to_cpu(info->cap.cap_id), cap 966 fs/ceph/inode.c le32_to_cpu(info->cap.wanted), cap 967 fs/ceph/inode.c le32_to_cpu(info->cap.seq), cap 968 fs/ceph/inode.c le32_to_cpu(info->cap.mseq), cap 969 fs/ceph/inode.c le64_to_cpu(info->cap.realm), cap 970 fs/ceph/inode.c info->cap.flags, &new_cap); cap 1350 fs/ceph/inode.c (le32_to_cpu(rinfo->diri.in->cap.caps) & cap 885 fs/ceph/mds_client.c struct ceph_cap *cap; cap 999 fs/ceph/mds_client.c cap = NULL; cap 1001 fs/ceph/mds_client.c cap = ci->i_auth_cap; cap 1002 fs/ceph/mds_client.c if (!cap && !RB_EMPTY_ROOT(&ci->i_caps)) cap 1003 fs/ceph/mds_client.c cap = rb_entry(rb_first(&ci->i_caps), struct ceph_cap, ci_node); cap 1004 fs/ceph/mds_client.c if (!cap) { cap 1009 fs/ceph/mds_client.c mds = cap->session->s_mds; cap 1012 fs/ceph/mds_client.c cap == ci->i_auth_cap ? "auth " : "", cap); cap 1262 fs/ceph/mds_client.c struct ceph_cap *cap; cap 1264 fs/ceph/mds_client.c cap = list_first_entry(dispose, struct ceph_cap, session_caps); cap 1265 fs/ceph/mds_client.c list_del(&cap->session_caps); cap 1266 fs/ceph/mds_client.c ceph_put_cap(mdsc, cap); cap 1319 fs/ceph/mds_client.c struct ceph_cap *cap; cap 1328 fs/ceph/mds_client.c cap = list_entry(p, struct ceph_cap, session_caps); cap 1329 fs/ceph/mds_client.c inode = igrab(&cap->ci->vfs_inode); cap 1334 fs/ceph/mds_client.c session->s_cap_iterator = cap; cap 1348 fs/ceph/mds_client.c ret = cb(inode, cap, arg); cap 1353 fs/ceph/mds_client.c if (!cap->ci) { cap 1355 fs/ceph/mds_client.c cap); cap 1356 fs/ceph/mds_client.c BUG_ON(cap->session != session); cap 1357 fs/ceph/mds_client.c cap->session = NULL; cap 1358 fs/ceph/mds_client.c list_del_init(&cap->session_caps); cap 1360 fs/ceph/mds_client.c if (cap->queue_release) cap 1361 fs/ceph/mds_client.c __ceph_queue_cap_release(session, cap); cap 1363 fs/ceph/mds_client.c old_cap = cap; /* put_cap it w/o locks held */ cap 1380 fs/ceph/mds_client.c static int remove_session_caps_cb(struct inode *inode, struct ceph_cap *cap, cap 1390 fs/ceph/mds_client.c cap, ci, &ci->vfs_inode); cap 1392 fs/ceph/mds_client.c if (cap->mds_wanted | cap->issued) cap 1394 fs/ceph/mds_client.c __ceph_remove_cap(cap, false); cap 1496 fs/ceph/mds_client.c struct ceph_cap *cap, *prev = NULL; cap 1506 fs/ceph/mds_client.c cap = list_entry(session->s_caps.next, cap 1508 fs/ceph/mds_client.c if (cap == prev) cap 1510 fs/ceph/mds_client.c prev = cap; cap 1511 fs/ceph/mds_client.c vino = cap->ci->i_vino; cap 1543 fs/ceph/mds_client.c static int wake_up_session_cb(struct inode *inode, struct ceph_cap *cap, cap 1555 fs/ceph/mds_client.c if (cap->cap_gen < cap->session->s_cap_gen) { cap 1558 fs/ceph/mds_client.c cap->issued = cap->implemented = CEPH_CAP_PIN; cap 1560 fs/ceph/mds_client.c if (__ceph_caps_file_wanted(ci) & ~cap->mds_wanted) cap 1725 fs/ceph/mds_client.c static int trim_caps_cb(struct inode *inode, struct ceph_cap *cap, void *arg) cap 1735 fs/ceph/mds_client.c mine = cap->issued | cap->implemented; cap 1738 fs/ceph/mds_client.c oissued = __ceph_caps_issued_other(ci, cap); cap 1741 fs/ceph/mds_client.c inode, cap, ceph_cap_string(mine), ceph_cap_string(oissued), cap 1743 fs/ceph/mds_client.c if (cap == ci->i_auth_cap) { cap 1767 fs/ceph/mds_client.c __ceph_remove_cap(cap, true); cap 1782 fs/ceph/mds_client.c inode, cap, count); cap 1864 fs/ceph/mds_client.c struct ceph_cap *cap; cap 1894 fs/ceph/mds_client.c cap = list_first_entry(&tmp_list, struct ceph_cap, cap 1896 fs/ceph/mds_client.c list_del(&cap->session_caps); cap 1903 fs/ceph/mds_client.c item->ino = cpu_to_le64(cap->cap_ino); cap 1904 fs/ceph/mds_client.c item->cap_id = cpu_to_le64(cap->cap_id); cap 1905 fs/ceph/mds_client.c item->migrate_seq = cpu_to_le32(cap->mseq); cap 1906 fs/ceph/mds_client.c item->seq = cpu_to_le32(cap->issue_seq); cap 1909 fs/ceph/mds_client.c ceph_put_cap(mdsc, cap); cap 1984 fs/ceph/mds_client.c struct ceph_cap *cap) cap 1986 fs/ceph/mds_client.c list_add_tail(&cap->session_caps, &session->s_cap_releases); cap 2441 fs/ceph/mds_client.c struct ceph_cap *cap = cap 2444 fs/ceph/mds_client.c if (cap) cap 2445 fs/ceph/mds_client.c req->r_sent_on_mseq = cap->mseq; cap 3331 fs/ceph/mds_client.c static int encode_caps_cb(struct inode *inode, struct ceph_cap *cap, cap 3338 fs/ceph/mds_client.c struct ceph_inode_info *ci = cap->ci; cap 3345 fs/ceph/mds_client.c inode, ceph_vinop(inode), cap, cap->cap_id, cap 3346 fs/ceph/mds_client.c ceph_cap_string(cap->issued)); cap 3349 fs/ceph/mds_client.c cap->seq = 0; /* reset cap seq */ cap 3350 fs/ceph/mds_client.c cap->issue_seq = 0; /* and issue_seq */ cap 3351 fs/ceph/mds_client.c cap->mseq = 0; /* and migrate_seq */ cap 3352 fs/ceph/mds_client.c cap->cap_gen = cap->session->s_cap_gen; cap 3355 fs/ceph/mds_client.c rec.v2.cap_id = cpu_to_le64(cap->cap_id); cap 3357 fs/ceph/mds_client.c rec.v2.issued = cpu_to_le32(cap->issued); cap 3363 fs/ceph/mds_client.c rec.v1.cap_id = cpu_to_le64(cap->cap_id); cap 3365 fs/ceph/mds_client.c rec.v1.issued = cpu_to_le32(cap->issued); cap 488 fs/ceph/mds_client.h struct ceph_cap *cap); cap 637 fs/ceph/super.h struct ceph_cap *cap); cap 1041 fs/ceph/super.h unsigned cap, unsigned seq, u64 realmino, int flags, cap 1043 fs/ceph/super.h extern void __ceph_remove_cap(struct ceph_cap *cap, bool queue_release); cap 1046 fs/ceph/super.h struct ceph_cap *cap); cap 324 fs/cifs/cifsproto.h __u64 cap); cap 5412 fs/cifs/cifssmb.c CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon, __u64 cap) cap 5461 fs/cifs/cifssmb.c pSMB->ClientUnixCap = cpu_to_le64(cap); cap 4011 fs/cifs/connect.c __u64 cap = le64_to_cpu(tcon->fsUnixInfo.Capability); cap 4012 fs/cifs/connect.c cifs_dbg(FYI, "unix caps which server supports %lld\n", cap); cap 4019 fs/cifs/connect.c cap &= ~CIFS_UNIX_POSIX_ACL_CAP; cap 4021 fs/cifs/connect.c if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) cap 4023 fs/cifs/connect.c cap &= ~CIFS_UNIX_POSIX_PATHNAMES_CAP; cap 4024 fs/cifs/connect.c } else if ((cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) { cap 4030 fs/cifs/connect.c if (cap & CIFS_UNIX_TRANSPORT_ENCRYPTION_MANDATORY_CAP) cap 4033 fs/cifs/connect.c cap &= CIFS_UNIX_CAP_MASK; cap 4035 fs/cifs/connect.c cap &= ~CIFS_UNIX_POSIX_ACL_CAP; cap 4036 fs/cifs/connect.c else if (CIFS_UNIX_POSIX_ACL_CAP & cap) { cap 4044 fs/cifs/connect.c cap &= ~CIFS_UNIX_POSIX_PATHNAMES_CAP; cap 4045 fs/cifs/connect.c else if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) { cap 4052 fs/cifs/connect.c cifs_dbg(FYI, "Negotiate caps 0x%x\n", (int)cap); cap 4054 fs/cifs/connect.c if (cap & CIFS_UNIX_FCNTL_CAP) cap 4056 fs/cifs/connect.c if (cap & CIFS_UNIX_EXTATTR_CAP) cap 4058 fs/cifs/connect.c if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) cap 4060 fs/cifs/connect.c if (cap & CIFS_UNIX_XATTR_CAP) cap 4062 fs/cifs/connect.c if (cap & CIFS_UNIX_POSIX_ACL_CAP) cap 4064 fs/cifs/connect.c if (cap & CIFS_UNIX_LARGE_READ_CAP) cap 4066 fs/cifs/connect.c if (cap & CIFS_UNIX_LARGE_WRITE_CAP) cap 4068 fs/cifs/connect.c if (cap & CIFS_UNIX_TRANSPORT_ENCRYPTION_CAP) cap 4070 fs/cifs/connect.c if (cap & CIFS_UNIX_TRANSPORT_ENCRYPTION_MANDATORY_CAP) cap 4073 fs/cifs/connect.c if (CIFSSMBSetFSUnixInfo(xid, tcon, cap)) { cap 1678 fs/cifs/smbdirect.c qp_attr.cap.max_send_wr = info->send_credit_target; cap 1679 fs/cifs/smbdirect.c qp_attr.cap.max_recv_wr = info->receive_credit_max; cap 1680 fs/cifs/smbdirect.c qp_attr.cap.max_send_sge = SMBDIRECT_MAX_SGE; cap 1681 fs/cifs/smbdirect.c qp_attr.cap.max_recv_sge = SMBDIRECT_MAX_SGE; cap 1682 fs/cifs/smbdirect.c qp_attr.cap.max_inline_data = 0; cap 1746 fs/f2fs/f2fs.h struct inode *inode, bool cap) cap 1759 fs/f2fs/f2fs.h if (cap && capable(CAP_SYS_RESOURCE)) cap 313 fs/proc/array.c a->cap[CAP_LAST_U32 - __capi], 8); cap 122 include/clocksource/timer-ti-dm.h struct omap_dm_timer *omap_dm_timer_request_by_cap(u32 cap); cap 484 include/linux/acpi.h struct acpi_buffer cap; /* list of DWORD capabilities */ cap 25 include/linux/capability.h __u32 cap[_KERNEL_CAPABILITY_U32S]; cap 98 include/linux/capability.h #define cap_raise(c, flag) ((c).cap[CAP_TO_INDEX(flag)] |= CAP_TO_MASK(flag)) cap 99 include/linux/capability.h #define cap_lower(c, flag) ((c).cap[CAP_TO_INDEX(flag)] &= ~CAP_TO_MASK(flag)) cap 100 include/linux/capability.h #define cap_raised(c, flag) ((c).cap[CAP_TO_INDEX(flag)] & CAP_TO_MASK(flag)) cap 106 include/linux/capability.h c.cap[__capi] = a.cap[__capi] OP b.cap[__capi]; \ cap 114 include/linux/capability.h c.cap[__capi] = OP a.cap[__capi]; \ cap 153 include/linux/capability.h if (a.cap[__capi] != 0) cap 204 include/linux/capability.h extern bool has_capability(struct task_struct *t, int cap); cap 206 include/linux/capability.h struct user_namespace *ns, int cap); cap 207 include/linux/capability.h extern bool has_capability_noaudit(struct task_struct *t, int cap); cap 209 include/linux/capability.h struct user_namespace *ns, int cap); cap 210 include/linux/capability.h extern bool capable(int cap); cap 211 include/linux/capability.h extern bool ns_capable(struct user_namespace *ns, int cap); cap 212 include/linux/capability.h extern bool ns_capable_noaudit(struct user_namespace *ns, int cap); cap 213 include/linux/capability.h extern bool ns_capable_setid(struct user_namespace *ns, int cap); cap 215 include/linux/capability.h static inline bool has_capability(struct task_struct *t, int cap) cap 220 include/linux/capability.h struct user_namespace *ns, int cap) cap 224 include/linux/capability.h static inline bool has_capability_noaudit(struct task_struct *t, int cap) cap 229 include/linux/capability.h struct user_namespace *ns, int cap) cap 233 include/linux/capability.h static inline bool capable(int cap) cap 237 include/linux/capability.h static inline bool ns_capable(struct user_namespace *ns, int cap) cap 241 include/linux/capability.h static inline bool ns_capable_noaudit(struct user_namespace *ns, int cap) cap 245 include/linux/capability.h static inline bool ns_capable_setid(struct user_namespace *ns, int cap) cap 251 include/linux/capability.h extern bool capable_wrt_inode_uidgid(const struct inode *inode, int cap); cap 252 include/linux/capability.h extern bool file_ns_capable(const struct file *file, struct user_namespace *ns, int cap); cap 512 include/linux/ceph/ceph_fs.h struct ceph_mds_reply_cap cap; /* caps issued for this inode */ cap 1229 include/linux/dmaengine.h #define for_each_dma_cap_mask(cap, mask) \ cap 1230 include/linux/dmaengine.h for_each_set_bit(cap, mask.bits, DMA_TX_TYPE_END) cap 797 include/linux/filter.h int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap); cap 1740 include/linux/ieee80211.h int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, cap 2153 include/linux/ieee80211.h #define WLAN_CAPABILITY_IS_STA_BSS(cap) \ cap 2154 include/linux/ieee80211.h (!((cap) & (WLAN_CAPABILITY_ESS | WLAN_CAPABILITY_IBSS))) cap 525 include/linux/intel-iommu.h u64 cap; cap 412 include/linux/iommu.h extern bool iommu_capable(struct bus_type *bus, enum iommu_cap cap); cap 624 include/linux/iommu.h static inline bool iommu_capable(struct bus_type *bus, enum iommu_cap cap) cap 829 include/linux/kvm_host.h struct kvm_enable_cap *cap); cap 384 include/linux/lightnvm.h u32 cap; cap 82 include/linux/lsm_audit.h int cap; cap 1479 include/linux/lsm_hooks.h int cap, cap 492 include/linux/mii.h static inline u16 mii_advertise_flowctrl(int cap) cap 496 include/linux/mii.h if (cap & FLOW_CTRL_RX) cap 498 include/linux/mii.h if (cap & FLOW_CTRL_TX) cap 513 include/linux/mii.h u8 cap = 0; cap 516 include/linux/mii.h cap = FLOW_CTRL_TX | FLOW_CTRL_RX; cap 519 include/linux/mii.h cap = FLOW_CTRL_RX; cap 521 include/linux/mii.h cap = FLOW_CTRL_TX; cap 524 include/linux/mii.h return cap; cap 1138 include/linux/mlx5/device.h #define MLX5_CAP_GEN(mdev, cap) \ cap 1139 include/linux/mlx5/device.h MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) cap 1141 include/linux/mlx5/device.h #define MLX5_CAP_GEN_64(mdev, cap) \ cap 1142 include/linux/mlx5/device.h MLX5_GET64(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) cap 1144 include/linux/mlx5/device.h #define MLX5_CAP_GEN_MAX(mdev, cap) \ cap 1145 include/linux/mlx5/device.h MLX5_GET(cmd_hca_cap, mdev->caps.hca_max[MLX5_CAP_GENERAL], cap) cap 1147 include/linux/mlx5/device.h #define MLX5_CAP_ETH(mdev, cap) \ cap 1149 include/linux/mlx5/device.h mdev->caps.hca_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap) cap 1151 include/linux/mlx5/device.h #define MLX5_CAP_ETH_MAX(mdev, cap) \ cap 1153 include/linux/mlx5/device.h mdev->caps.hca_max[MLX5_CAP_ETHERNET_OFFLOADS], cap) cap 1155 include/linux/mlx5/device.h #define MLX5_CAP_IPOIB_ENHANCED(mdev, cap) \ cap 1157 include/linux/mlx5/device.h mdev->caps.hca_cur[MLX5_CAP_IPOIB_ENHANCED_OFFLOADS], cap) cap 1159 include/linux/mlx5/device.h #define MLX5_CAP_ROCE(mdev, cap) \ cap 1160 include/linux/mlx5/device.h MLX5_GET(roce_cap, mdev->caps.hca_cur[MLX5_CAP_ROCE], cap) cap 1162 include/linux/mlx5/device.h #define MLX5_CAP_ROCE_MAX(mdev, cap) \ cap 1163 include/linux/mlx5/device.h MLX5_GET(roce_cap, mdev->caps.hca_max[MLX5_CAP_ROCE], cap) cap 1165 include/linux/mlx5/device.h #define MLX5_CAP_ATOMIC(mdev, cap) \ cap 1166 include/linux/mlx5/device.h MLX5_GET(atomic_caps, mdev->caps.hca_cur[MLX5_CAP_ATOMIC], cap) cap 1168 include/linux/mlx5/device.h #define MLX5_CAP_ATOMIC_MAX(mdev, cap) \ cap 1169 include/linux/mlx5/device.h MLX5_GET(atomic_caps, mdev->caps.hca_max[MLX5_CAP_ATOMIC], cap) cap 1171 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE(mdev, cap) \ cap 1172 include/linux/mlx5/device.h MLX5_GET(flow_table_nic_cap, mdev->caps.hca_cur[MLX5_CAP_FLOW_TABLE], cap) cap 1174 include/linux/mlx5/device.h #define MLX5_CAP64_FLOWTABLE(mdev, cap) \ cap 1175 include/linux/mlx5/device.h MLX5_GET64(flow_table_nic_cap, (mdev)->caps.hca_cur[MLX5_CAP_FLOW_TABLE], cap) cap 1177 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_MAX(mdev, cap) \ cap 1178 include/linux/mlx5/device.h MLX5_GET(flow_table_nic_cap, mdev->caps.hca_max[MLX5_CAP_FLOW_TABLE], cap) cap 1180 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_NIC_RX(mdev, cap) \ cap 1181 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive.cap) cap 1183 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_NIC_RX_MAX(mdev, cap) \ cap 1184 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_receive.cap) cap 1186 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_NIC_TX(mdev, cap) \ cap 1187 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_transmit.cap) cap 1189 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_NIC_TX_MAX(mdev, cap) \ cap 1190 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_transmit.cap) cap 1192 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_SNIFFER_RX(mdev, cap) \ cap 1193 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive_sniffer.cap) cap 1195 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_SNIFFER_RX_MAX(mdev, cap) \ cap 1196 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_receive_sniffer.cap) cap 1198 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_SNIFFER_TX(mdev, cap) \ cap 1199 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_transmit_sniffer.cap) cap 1201 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_SNIFFER_TX_MAX(mdev, cap) \ cap 1202 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_transmit_sniffer.cap) cap 1204 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) \ cap 1205 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE(mdev, flow_table_properties_nic_receive_rdma.cap) cap 1207 include/linux/mlx5/device.h #define MLX5_CAP_FLOWTABLE_RDMA_RX_MAX(mdev, cap) \ cap 1208 include/linux/mlx5/device.h MLX5_CAP_FLOWTABLE_MAX(mdev, flow_table_properties_nic_receive_rdma.cap) cap 1210 include/linux/mlx5/device.h #define MLX5_CAP_ESW_FLOWTABLE(mdev, cap) \ cap 1212 include/linux/mlx5/device.h mdev->caps.hca_cur[MLX5_CAP_ESWITCH_FLOW_TABLE], cap) cap 1214 include/linux/mlx5/device.h #define MLX5_CAP_ESW_FLOWTABLE_MAX(mdev, cap) \ cap 1216 include/linux/mlx5/device.h mdev->caps.hca_max[MLX5_CAP_ESWITCH_FLOW_TABLE], cap) cap 1218 include/linux/mlx5/device.h #define MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) \ cap 1219 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_nic_esw_fdb.cap) cap 1221 include/linux/mlx5/device.h #define MLX5_CAP_ESW_FLOWTABLE_FDB_MAX(mdev, cap) \ cap 1222 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE_MAX(mdev, flow_table_properties_nic_esw_fdb.cap) cap 1224 include/linux/mlx5/device.h #define MLX5_CAP_ESW_EGRESS_ACL(mdev, cap) \ cap 1225 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_esw_acl_egress.cap) cap 1227 include/linux/mlx5/device.h #define MLX5_CAP_ESW_EGRESS_ACL_MAX(mdev, cap) \ cap 1228 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE_MAX(mdev, flow_table_properties_esw_acl_egress.cap) cap 1230 include/linux/mlx5/device.h #define MLX5_CAP_ESW_INGRESS_ACL(mdev, cap) \ cap 1231 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE(mdev, flow_table_properties_esw_acl_ingress.cap) cap 1233 include/linux/mlx5/device.h #define MLX5_CAP_ESW_INGRESS_ACL_MAX(mdev, cap) \ cap 1234 include/linux/mlx5/device.h MLX5_CAP_ESW_FLOWTABLE_MAX(mdev, flow_table_properties_esw_acl_ingress.cap) cap 1236 include/linux/mlx5/device.h #define MLX5_CAP_ESW(mdev, cap) \ cap 1238 include/linux/mlx5/device.h mdev->caps.hca_cur[MLX5_CAP_ESWITCH], cap) cap 1240 include/linux/mlx5/device.h #define MLX5_CAP64_ESW_FLOWTABLE(mdev, cap) \ cap 1242 include/linux/mlx5/device.h (mdev)->caps.hca_cur[MLX5_CAP_ESWITCH_FLOW_TABLE], cap) cap 1244 include/linux/mlx5/device.h #define MLX5_CAP_ESW_MAX(mdev, cap) \ cap 1246 include/linux/mlx5/device.h mdev->caps.hca_max[MLX5_CAP_ESWITCH], cap) cap 1248 include/linux/mlx5/device.h #define MLX5_CAP_ODP(mdev, cap)\ cap 1249 include/linux/mlx5/device.h MLX5_GET(odp_cap, mdev->caps.hca_cur[MLX5_CAP_ODP], cap) cap 1251 include/linux/mlx5/device.h #define MLX5_CAP_ODP_MAX(mdev, cap)\ cap 1252 include/linux/mlx5/device.h MLX5_GET(odp_cap, mdev->caps.hca_max[MLX5_CAP_ODP], cap) cap 1254 include/linux/mlx5/device.h #define MLX5_CAP_VECTOR_CALC(mdev, cap) \ cap 1256 include/linux/mlx5/device.h mdev->caps.hca_cur[MLX5_CAP_VECTOR_CALC], cap) cap 1258 include/linux/mlx5/device.h #define MLX5_CAP_QOS(mdev, cap)\ cap 1259 include/linux/mlx5/device.h MLX5_GET(qos_cap, mdev->caps.hca_cur[MLX5_CAP_QOS], cap) cap 1261 include/linux/mlx5/device.h #define MLX5_CAP_DEBUG(mdev, cap)\ cap 1262 include/linux/mlx5/device.h MLX5_GET(debug_cap, mdev->caps.hca_cur[MLX5_CAP_DEBUG], cap) cap 1282 include/linux/mlx5/device.h #define MLX5_CAP_FPGA(mdev, cap) \ cap 1283 include/linux/mlx5/device.h MLX5_GET(fpga_cap, (mdev)->caps.fpga, cap) cap 1285 include/linux/mlx5/device.h #define MLX5_CAP64_FPGA(mdev, cap) \ cap 1286 include/linux/mlx5/device.h MLX5_GET64(fpga_cap, (mdev)->caps.fpga, cap) cap 1288 include/linux/mlx5/device.h #define MLX5_CAP_DEV_MEM(mdev, cap)\ cap 1289 include/linux/mlx5/device.h MLX5_GET(device_mem_cap, mdev->caps.hca_cur[MLX5_CAP_DEV_MEM], cap) cap 1291 include/linux/mlx5/device.h #define MLX5_CAP64_DEV_MEM(mdev, cap)\ cap 1292 include/linux/mlx5/device.h MLX5_GET64(device_mem_cap, mdev->caps.hca_cur[MLX5_CAP_DEV_MEM], cap) cap 1294 include/linux/mlx5/device.h #define MLX5_CAP_TLS(mdev, cap) \ cap 1295 include/linux/mlx5/device.h MLX5_GET(tls_cap, (mdev)->caps.hca_cur[MLX5_CAP_TLS], cap) cap 1297 include/linux/mlx5/device.h #define MLX5_CAP_DEV_EVENT(mdev, cap)\ cap 1298 include/linux/mlx5/device.h MLX5_ADDR_OF(device_event_cap, (mdev)->caps.hca_cur[MLX5_CAP_DEV_EVENT], cap) cap 9955 include/linux/mlx5/mlx5_ifc.h u8 cap[0x20]; cap 246 include/linux/netlink.h struct user_namespace *ns, int cap); cap 248 include/linux/netlink.h struct user_namespace *ns, int cap); cap 249 include/linux/netlink.h bool netlink_capable(const struct sk_buff *skb, int cap); cap 250 include/linux/netlink.h bool netlink_net_capable(const struct sk_buff *skb, int cap); cap 330 include/linux/nfs_fs.h static inline int nfs_server_capable(struct inode *inode, int cap) cap 332 include/linux/nfs_fs.h return NFS_SERVER(inode)->caps & cap; cap 115 include/linux/nvme.h #define NVME_CAP_MQES(cap) ((cap) & 0xffff) cap 116 include/linux/nvme.h #define NVME_CAP_TIMEOUT(cap) (((cap) >> 24) & 0xff) cap 117 include/linux/nvme.h #define NVME_CAP_STRIDE(cap) (((cap) >> 32) & 0xf) cap 118 include/linux/nvme.h #define NVME_CAP_NSSRC(cap) (((cap) >> 36) & 0x1) cap 119 include/linux/nvme.h #define NVME_CAP_MPSMIN(cap) (((cap) >> 48) & 0xf) cap 120 include/linux/nvme.h #define NVME_CAP_MPSMAX(cap) (((cap) >> 52) & 0xf) cap 280 include/linux/pci.h struct pci_cap_saved_data cap; cap 1043 include/linux/pci.h int pci_find_capability(struct pci_dev *dev, int cap); cap 1044 include/linux/pci.h int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap); cap 1045 include/linux/pci.h int pci_find_ext_capability(struct pci_dev *dev, int cap); cap 1046 include/linux/pci.h int pci_find_next_ext_capability(struct pci_dev *dev, int pos, int cap); cap 1229 include/linux/pci.h struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap); cap 1231 include/linux/pci.h u16 cap); cap 1232 include/linux/pci.h int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size); cap 1234 include/linux/pci.h u16 cap, unsigned int size); cap 1256 include/linux/pci.h int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); cap 1697 include/linux/pci.h static inline int pci_find_capability(struct pci_dev *dev, int cap) cap 1700 include/linux/pci.h int cap) cap 1702 include/linux/pci.h static inline int pci_find_ext_capability(struct pci_dev *dev, int cap) cap 135 include/linux/platform_data/ti-sysc.h const struct sysc_capabilities *cap; cap 251 include/linux/qed/qed_eth_if.h u8 (*getcap)(struct qed_dev *cdev, int capid, u8 *cap); cap 28 include/linux/sched/cpufreq.h unsigned long freq, unsigned long cap) cap 30 include/linux/sched/cpufreq.h return (freq + (freq >> 2)) * util / cap; cap 133 include/linux/security.h int cap, unsigned int opts); cap 271 include/linux/security.h int cap, cap 538 include/linux/security.h int cap, cap 541 include/linux/security.h return cap_capable(cred, ns, cap, opts); cap 219 include/linux/usb/typec.h const struct typec_capability *cap); cap 145 include/linux/vfio.h struct vfio_info_cap_header *cap, cap 52 include/media/v4l2-dv-timings.h const struct v4l2_dv_timings_cap *cap, cap 73 include/media/v4l2-dv-timings.h const struct v4l2_dv_timings_cap *cap, cap 96 include/media/v4l2-dv-timings.h const struct v4l2_dv_timings_cap *cap, cap 301 include/media/v4l2-ioctl.h struct v4l2_capability *cap); cap 574 include/media/v4l2-ioctl.h struct v4l2_dv_timings_cap *cap); cap 485 include/media/v4l2-subdev.h int (*g_sliced_vbi_cap)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_cap *cap); cap 701 include/media/v4l2-subdev.h struct v4l2_dv_timings_cap *cap); cap 275 include/net/cfg80211.h u16 cap; /* use IEEE80211_HT_CAP_ */ cap 294 include/net/cfg80211.h u32 cap; /* use IEEE80211_VHT_CAP_ */ cap 313 include/net/ieee802154_netdev.h u8 channel, u8 page, u8 cap); cap 2541 include/net/sock.h struct user_namespace *user_ns, int cap); cap 2542 include/net/sock.h bool sk_capable(const struct sock *sk, int cap); cap 2543 include/net/sock.h bool sk_net_capable(const struct sock *sk, int cap); cap 1131 include/rdma/ib_verbs.h struct ib_qp_cap cap; cap 1246 include/rdma/ib_verbs.h struct ib_qp_cap cap; cap 294 include/rdma/opa_port_info.h u8 cap; /* 3 res, 5 bits */ cap 826 include/scsi/scsi_host.h static unsigned char cap[] = { 0, cap 831 include/scsi/scsi_host.h if (target_type >= ARRAY_SIZE(cap)) cap 834 include/scsi/scsi_host.h return shost->prot_capabilities & cap[target_type] ? target_type : 0; cap 840 include/scsi/scsi_host.h static unsigned char cap[] = { SHOST_DIX_TYPE0_PROTECTION, cap 845 include/scsi/scsi_host.h if (target_type >= ARRAY_SIZE(cap)) cap 848 include/scsi/scsi_host.h return shost->prot_capabilities & cap[target_type]; cap 29 include/sound/designware_i2s.h unsigned int cap; cap 31 include/sound/hda_chmap.h struct hdac_cea_channel_speaker_allocation *cap, int channels); cap 33 include/sound/hda_chmap.h struct hdac_cea_channel_speaker_allocation *cap, cap 85 include/sound/seq_kernel.h int cap, int type, int midi_channels, int midi_voices, char *portname); cap 125 include/uapi/linux/if_arcnet.h struct arc_cap cap; cap 710 include/uapi/linux/kvm.h __u32 cap; cap 130 include/uapi/linux/virtio_pci.h struct virtio_pci_cap cap; cap 162 include/uapi/linux/virtio_pci.h struct virtio_pci_cap cap; cap 182 kernel/audit.h struct audit_cap_data cap; cap 1162 kernel/auditsc.c kernel_cap_t *cap) cap 1166 kernel/auditsc.c if (cap_isclear(*cap)) { cap 1172 kernel/auditsc.c audit_log_format(ab, "%08x", cap->cap[CAP_LAST_U32 - i]); cap 1273 kernel/auditsc.c audit_log_cap(ab, "cap_pi", &context->capset.cap.inheritable); cap 1274 kernel/auditsc.c audit_log_cap(ab, "cap_pp", &context->capset.cap.permitted); cap 1275 kernel/auditsc.c audit_log_cap(ab, "cap_pe", &context->capset.cap.effective); cap 1276 kernel/auditsc.c audit_log_cap(ab, "cap_pa", &context->capset.cap.ambient); cap 2488 kernel/auditsc.c context->capset.cap.effective = new->cap_effective; cap 2489 kernel/auditsc.c context->capset.cap.inheritable = new->cap_effective; cap 2490 kernel/auditsc.c context->capset.cap.permitted = new->cap_permitted; cap 2491 kernel/auditsc.c context->capset.cap.ambient = new->cap_ambient; cap 2152 kernel/bpf/verifier.c u32 cap = bpf_map_flags_to_cap(map); cap 2154 kernel/bpf/verifier.c if (type == BPF_WRITE && !(cap & BPF_MAP_CAN_WRITE)) { cap 2160 kernel/bpf/verifier.c if (type == BPF_READ && !(cap & BPF_MAP_CAN_READ)) { cap 171 kernel/capability.c kdata[i].effective = pE.cap[i]; cap 172 kernel/capability.c kdata[i].permitted = pP.cap[i]; cap 173 kernel/capability.c kdata[i].inheritable = pI.cap[i]; cap 250 kernel/capability.c effective.cap[i] = kdata[i].effective; cap 251 kernel/capability.c permitted.cap[i] = kdata[i].permitted; cap 252 kernel/capability.c inheritable.cap[i] = kdata[i].inheritable; cap 255 kernel/capability.c effective.cap[i] = 0; cap 256 kernel/capability.c permitted.cap[i] = 0; cap 257 kernel/capability.c inheritable.cap[i] = 0; cap 261 kernel/capability.c effective.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; cap 262 kernel/capability.c permitted.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; cap 263 kernel/capability.c inheritable.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; cap 295 kernel/capability.c struct user_namespace *ns, int cap) cap 300 kernel/capability.c ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NONE); cap 316 kernel/capability.c bool has_capability(struct task_struct *t, int cap) cap 318 kernel/capability.c return has_ns_capability(t, &init_user_ns, cap); cap 336 kernel/capability.c struct user_namespace *ns, int cap) cap 341 kernel/capability.c ret = security_capable(__task_cred(t), ns, cap, CAP_OPT_NOAUDIT); cap 359 kernel/capability.c bool has_capability_noaudit(struct task_struct *t, int cap) cap 361 kernel/capability.c return has_ns_capability_noaudit(t, &init_user_ns, cap); cap 365 kernel/capability.c int cap, cap 370 kernel/capability.c if (unlikely(!cap_valid(cap))) { cap 371 kernel/capability.c pr_crit("capable() called with invalid cap=%u\n", cap); cap 375 kernel/capability.c capable = security_capable(current_cred(), ns, cap, opts); cap 394 kernel/capability.c bool ns_capable(struct user_namespace *ns, int cap) cap 396 kernel/capability.c return ns_capable_common(ns, cap, CAP_OPT_NONE); cap 412 kernel/capability.c bool ns_capable_noaudit(struct user_namespace *ns, int cap) cap 414 kernel/capability.c return ns_capable_common(ns, cap, CAP_OPT_NOAUDIT); cap 431 kernel/capability.c bool ns_capable_setid(struct user_namespace *ns, int cap) cap 433 kernel/capability.c return ns_capable_common(ns, cap, CAP_OPT_INSETID); cap 447 kernel/capability.c bool capable(int cap) cap 449 kernel/capability.c return ns_capable(&init_user_ns, cap); cap 467 kernel/capability.c int cap) cap 470 kernel/capability.c if (WARN_ON_ONCE(!cap_valid(cap))) cap 473 kernel/capability.c if (security_capable(file->f_cred, ns, cap, CAP_OPT_NONE) == 0) cap 502 kernel/capability.c bool capable_wrt_inode_uidgid(const struct inode *inode, int cap) cap 506 kernel/capability.c return ns_capable(ns, cap) && privileged_wrt_inode_uidgid(ns, inode); cap 202 kernel/power/energy_model.c unsigned long cap, prev_cap = 0; cap 226 kernel/power/energy_model.c cap = arch_scale_cpu_capacity(cpu); cap 227 kernel/power/energy_model.c if (prev_cap && prev_cap != cap) { cap 233 kernel/power/energy_model.c prev_cap = cap; cap 3487 kernel/rcu/tree.c int cap = rcu_capacity[(rcu_num_lvls - 1) - i]; cap 3488 kernel/rcu/tree.c num_rcu_lvl[i] = DIV_ROUND_UP(nr_cpu_ids, cap); cap 103 kernel/sched/fair.c #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) cap 786 kernel/sched/fair.c long cap = (long)(cpu_scale - cfs_rq->avg.util_avg) / 2; cap 788 kernel/sched/fair.c if (cap > 0) { cap 793 kernel/sched/fair.c if (sa->util_avg > cap) cap 794 kernel/sched/fair.c sa->util_avg = cap; cap 796 kernel/sched/fair.c sa->util_avg = cap; cap 1931 kernel/sched/topology.c unsigned long cap; cap 1934 kernel/sched/topology.c cap = arch_scale_cpu_capacity(cpumask_first(cpu_map)); cap 1937 kernel/sched/topology.c if (arch_scale_cpu_capacity(i) != cap) { cap 662 kernel/umh.c cap_array[i] = usermodehelper_bset.cap[i]; cap 664 kernel/umh.c cap_array[i] = usermodehelper_inheritable.cap[i]; cap 686 kernel/umh.c new_cap.cap[i] = cap_array[i]; cap 703 net/9p/trans_rdma.c qp_attr.cap.max_send_wr = opts.sq_depth; cap 704 net/9p/trans_rdma.c qp_attr.cap.max_recv_wr = opts.rq_depth; cap 705 net/9p/trans_rdma.c qp_attr.cap.max_send_sge = P9_RDMA_SEND_SGE; cap 706 net/9p/trans_rdma.c qp_attr.cap.max_recv_sge = P9_RDMA_RECV_SGE; cap 90 net/core/filter.c int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap) cap 121 net/core/filter.c err = pkt_len ? pskb_trim(skb, max(cap, pkt_len)) : -EPERM; cap 2080 net/core/rtnetlink.c struct nlattr *tb[], int cap) cap 2088 net/core/rtnetlink.c if (!netlink_ns_capable(skb, net->user_ns, cap)) { cap 157 net/core/sock.c struct user_namespace *user_ns, int cap) cap 159 net/core/sock.c return file_ns_capable(sk->sk_socket->file, user_ns, cap) && cap 160 net/core/sock.c ns_capable(user_ns, cap); cap 173 net/core/sock.c bool sk_capable(const struct sock *sk, int cap) cap 175 net/core/sock.c return sk_ns_capable(sk, &init_user_ns, cap); cap 188 net/core/sock.c bool sk_net_capable(const struct sock *sk, int cap) cap 190 net/core/sock.c return sk_ns_capable(sk, sock_net(sk)->user_ns, cap); cap 1703 net/ipv4/tcp.c int cap; cap 1706 net/ipv4/tcp.c cap = sk->sk_rcvbuf >> 1; cap 1708 net/ipv4/tcp.c cap = sock_net(sk)->ipv4.sysctl_tcp_rmem[2] >> 1; cap 1709 net/ipv4/tcp.c val = min(val, cap); cap 320 net/mac80211/agg-rx.c (!(sta->sta.ht_cap.cap & IEEE80211_HT_CAP_DELAY_BA))) || cap 385 net/mac80211/debugfs_sta.c p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); cap 387 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(0)), "RX LDPC"); cap 388 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(1)), "HT20/HT40"); cap 389 net/mac80211/debugfs_sta.c PRINT_HT_CAP(!(htc->cap & BIT(1)), "HT20"); cap 391 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 0, "Static SM Power Save"); cap 392 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 1, "Dynamic SM Power Save"); cap 393 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 2) & 0x3) == 3, "SM Power Save disabled"); cap 395 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(4)), "RX Greenfield"); cap 396 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(5)), "RX HT20 SGI"); cap 397 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(6)), "RX HT40 SGI"); cap 398 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(7)), "TX STBC"); cap 400 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 0, "No RX STBC"); cap 401 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 1, "RX STBC 1-stream"); cap 402 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 2, "RX STBC 2-streams"); cap 403 net/mac80211/debugfs_sta.c PRINT_HT_CAP(((htc->cap >> 8) & 0x3) == 3, "RX STBC 3-streams"); cap 405 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(10)), "HT Delayed Block Ack"); cap 407 net/mac80211/debugfs_sta.c PRINT_HT_CAP(!(htc->cap & BIT(11)), "Max AMSDU length: " cap 409 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(11)), "Max AMSDU length: " cap 418 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(12)), "DSSS/CCK HT40"); cap 419 net/mac80211/debugfs_sta.c PRINT_HT_CAP(!(htc->cap & BIT(12)), "No DSSS/CCK HT40"); cap 423 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(14)), "40 MHz Intolerant"); cap 425 net/mac80211/debugfs_sta.c PRINT_HT_CAP((htc->cap & BIT(15)), "L-SIG TXOP protection"); cap 462 net/mac80211/debugfs_sta.c vhtc->cap); cap 465 net/mac80211/debugfs_sta.c if (vhtc->cap & IEEE80211_VHT_CAP_ ## a) \ cap 470 net/mac80211/debugfs_sta.c switch (vhtc->cap & 0x3) { cap 487 net/mac80211/debugfs_sta.c switch (vhtc->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { cap 503 net/mac80211/debugfs_sta.c (vhtc->cap >> 2) & 0x3); cap 510 net/mac80211/debugfs_sta.c "\t\tRXSTBC_%d\n", (vhtc->cap >> 8) & 0x7); cap 515 net/mac80211/debugfs_sta.c (vhtc->cap & IEEE80211_VHT_CAP_BEAMFORMEE_STS_MASK) >> cap 519 net/mac80211/debugfs_sta.c (vhtc->cap & IEEE80211_VHT_CAP_SOUNDING_DIMENSIONS_MASK) cap 527 net/mac80211/debugfs_sta.c (vhtc->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK) >> cap 533 net/mac80211/debugfs_sta.c (vhtc->cap & IEEE80211_VHT_CAP_VHT_LINK_ADAPTATION_VHT_MRQ_MFB) >> 26); cap 565 net/mac80211/debugfs_sta.c u8 *cap; cap 579 net/mac80211/debugfs_sta.c cap = hec->he_cap_elem.mac_cap_info; cap 582 net/mac80211/debugfs_sta.c cap[0], cap[1], cap[2], cap[3], cap[4], cap[5]); cap 590 net/mac80211/debugfs_sta.c if (cap[n] & IEEE80211_HE_##t##_CAP##n##_##a) \ cap 597 net/mac80211/debugfs_sta.c u8 idx = ((cap[i] & msk) >> (ffs(msk) - 1)) + off; \ cap 603 net/mac80211/debugfs_sta.c if (cap[i] == IEEE80211_HE_##t ##_CAP##i##_##n##_##a) { \ cap 625 net/mac80211/debugfs_sta.c if (cap[0] & IEEE80211_HE_MAC_CAP0_HTC_HE) { cap 626 net/mac80211/debugfs_sta.c switch (((cap[2] << 1) | (cap[1] >> 7)) & 0x3) { cap 653 net/mac80211/debugfs_sta.c switch (cap[3] & IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_MASK) { cap 680 net/mac80211/debugfs_sta.c PRINT("MULTI-TID-AGG-TX-QOS-%d", ((cap[5] << 1) | (cap[4] >> 7)) & 0x7); cap 690 net/mac80211/debugfs_sta.c cap = hec->he_cap_elem.phy_cap_info; cap 693 net/mac80211/debugfs_sta.c cap[0], cap[1], cap[2], cap[3], cap[4], cap[5], cap[6], cap 694 net/mac80211/debugfs_sta.c cap[7], cap[8], cap[9], cap[10]); cap 709 net/mac80211/debugfs_sta.c switch (cap[1] & IEEE80211_HE_PHY_CAP1_PREAMBLE_PUNC_RX_MASK) { cap 730 net/mac80211/debugfs_sta.c PRINT("MIDAMBLE-RX-MAX-NSTS-%d", ((cap[2] << 1) | (cap[1] >> 7)) & 0x3); cap 740 net/mac80211/debugfs_sta.c switch (cap[3] & IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_TX_MASK) { cap 758 net/mac80211/debugfs_sta.c switch (cap[3] & IEEE80211_HE_PHY_CAP3_DCM_MAX_CONST_RX_MASK) { cap 823 net/mac80211/debugfs_sta.c switch (cap[8] & IEEE80211_HE_PHY_CAP8_DCM_MAX_RU_MASK) { cap 851 net/mac80211/debugfs_sta.c switch (cap[9] & IEEE80211_HE_PHY_CAP9_NOMIMAL_PKT_PADDING_MASK) { cap 893 net/mac80211/debugfs_sta.c if (cap[0] & IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G) { cap 898 net/mac80211/debugfs_sta.c if (cap[0] & cap 907 net/mac80211/debugfs_sta.c if (!(cap[6] & IEEE80211_HE_PHY_CAP6_PPE_THRESHOLD_PRESENT)) cap 913 net/mac80211/debugfs_sta.c ppe_size = ieee80211_he_ppe_size(hec->ppe_thres[0], cap); cap 28 net/mac80211/ht.c ht_cap->cap &= ~flag; cap 41 net/mac80211/ht.c ht_cap->cap |= flag; cap 113 net/mac80211/ht.c ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) & cap 174 net/mac80211/ht.c ht_cap.cap = le16_to_cpu(ht_cap_ie->cap_info) & cap 175 net/mac80211/ht.c (own_cap.cap | ~(IEEE80211_HT_CAP_LDPC_CODING | cap 186 net/mac80211/ht.c if (!(own_cap.cap & IEEE80211_HT_CAP_TX_STBC)) cap 187 net/mac80211/ht.c ht_cap.cap &= ~IEEE80211_HT_CAP_RX_STBC; cap 188 net/mac80211/ht.c if (!(own_cap.cap & IEEE80211_HT_CAP_RX_STBC)) cap 189 net/mac80211/ht.c ht_cap.cap &= ~IEEE80211_HT_CAP_TX_STBC; cap 240 net/mac80211/ht.c if (ht_cap.cap & IEEE80211_HT_CAP_MAX_AMSDU) cap 262 net/mac80211/ht.c bw = ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? cap 270 net/mac80211/ht.c ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? cap 273 net/mac80211/ht.c switch ((ht_cap.cap & IEEE80211_HT_CAP_SM_PS) cap 185 net/mac80211/ibss.c pos = ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); cap 199 net/mac80211/ibss.c sband->vht_cap.cap); cap 1069 net/mac80211/ibss.c struct ieee80211_sta_vht_cap cap = sta->sta.vht_cap; cap 1078 net/mac80211/ibss.c if (memcmp(&cap, &sta->sta.vht_cap, sizeof(cap))) cap 2138 net/mac80211/ieee80211_i.h u16 cap); cap 2145 net/mac80211/ieee80211_i.h u32 cap); cap 1840 net/mac80211/iface.c __le16 cap; cap 1847 net/mac80211/iface.c cap = sband->vht_cap.vht_mcs.rx_mcs_map; cap 1849 net/mac80211/iface.c ieee80211_get_vht_mask_from_cap(cap, vht_rate_mask); cap 987 net/mac80211/main.c sband->ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED << cap 428 net/mac80211/mesh.c ieee80211_ie_build_ht_cap(pos, &sband->ht_cap, sband->ht_cap.cap); cap 492 net/mac80211/mesh.c ieee80211_ie_build_vht_cap(pos, &sband->vht_cap, sband->vht_cap.cap); cap 193 net/mac80211/mlme.c if (sta_ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) { cap 461 net/mac80211/mlme.c u16 cap; cap 470 net/mac80211/mlme.c cap = ht_cap.cap; cap 475 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 476 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SGI_40; cap 481 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 482 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SGI_40; cap 493 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 494 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SGI_40; cap 498 net/mac80211/mlme.c cap &= ~IEEE80211_HT_CAP_SM_PS; cap 505 net/mac80211/mlme.c cap |= WLAN_HT_CAP_SM_PS_DISABLED << cap 509 net/mac80211/mlme.c cap |= WLAN_HT_CAP_SM_PS_STATIC << cap 513 net/mac80211/mlme.c cap |= WLAN_HT_CAP_SM_PS_DYNAMIC << cap 520 net/mac80211/mlme.c ieee80211_ie_build_ht_cap(pos, &ht_cap, cap); cap 534 net/mac80211/mlme.c u32 cap; cap 544 net/mac80211/mlme.c cap = vht_cap.cap; cap 547 net/mac80211/mlme.c u32 bw = cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 549 net/mac80211/mlme.c cap &= ~IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 552 net/mac80211/mlme.c cap |= IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ; cap 556 net/mac80211/mlme.c cap &= ~IEEE80211_VHT_CAP_SHORT_GI_160; cap 557 net/mac80211/mlme.c cap &= ~IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 566 net/mac80211/mlme.c cap &= ~(IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE | cap 570 net/mac80211/mlme.c cap &= ~IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; cap 579 net/mac80211/mlme.c if (cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) { cap 590 net/mac80211/mlme.c cap &= ~IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE; cap 598 net/mac80211/mlme.c our_bf_sts = cap & mask; cap 601 net/mac80211/mlme.c cap &= ~mask; cap 602 net/mac80211/mlme.c cap |= ap_bf_sts; cap 607 net/mac80211/mlme.c ieee80211_ie_build_vht_cap(pos, &vht_cap, cap); cap 5441 net/mac80211/mlme.c sband->ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && cap 5442 net/mac80211/mlme.c !(sta_ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)) cap 1390 net/mac80211/rc80211_minstrel_ht.c u16 ht_cap = sta->ht_cap.cap; cap 1439 net/mac80211/rc80211_minstrel_ht.c stbc = (vht_cap->cap & IEEE80211_VHT_CAP_RXSTBC_MASK) >> cap 1442 net/mac80211/rc80211_minstrel_ht.c ldpc = vht_cap->cap & IEEE80211_VHT_CAP_RXLDPC; cap 1499 net/mac80211/rc80211_minstrel_ht.c !(vht_cap->cap & IEEE80211_VHT_CAP_SHORT_GI_80))) { cap 3125 net/mac80211/rx.c if (!(rx->sta->sta.ht_cap.cap & cap 456 net/mac80211/sta_info.c smps = (sband->ht_cap.cap & IEEE80211_HT_CAP_SM_PS) >> cap 457 net/mac80211/tdls.c ht_cap.cap |= WLAN_HT_CAP_SM_PS_DISABLED cap 461 net/mac80211/tdls.c ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); cap 468 net/mac80211/tdls.c ieee80211_ie_build_ht_cap(pos, &ht_cap, ht_cap.cap); cap 472 net/mac80211/tdls.c (ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40)) cap 512 net/mac80211/tdls.c ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); cap 522 net/mac80211/tdls.c ieee80211_ie_build_vht_cap(pos, &vht_cap, vht_cap.cap); cap 1747 net/mac80211/util.c sband->ht_cap.cap); cap 1789 net/mac80211/util.c sband->vht_cap.cap); cap 2667 net/mac80211/util.c u16 cap) cap 2676 net/mac80211/util.c tmp = cpu_to_le16(cap); cap 2702 net/mac80211/util.c u32 cap) cap 2711 net/mac80211/util.c tmp = cpu_to_le32(cap); cap 2834 net/mac80211/util.c if (ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 && cap 3003 net/mac80211/util.c vht_cap = hw->wiphy->bands[chandef->chan->band]->vht_cap.cap; cap 25 net/mac80211/vht.c vht_cap->cap &= ~flag; cap 60 net/mac80211/vht.c u32 cap, n; cap 65 net/mac80211/vht.c cap = vht_cap->cap & IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; cap 66 net/mac80211/vht.c cap >>= IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_SHIFT; cap 68 net/mac80211/vht.c if (n < cap) { cap 69 net/mac80211/vht.c vht_cap->cap &= cap 71 net/mac80211/vht.c vht_cap->cap |= cap 170 net/mac80211/vht.c vht_cap->cap = cap_info; cap 171 net/mac80211/vht.c vht_cap->cap &= IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_3895 | cap 184 net/mac80211/vht.c switch (own_cap.cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { cap 186 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 190 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 199 net/mac80211/vht.c vht_cap->cap |= cap_info & own_cap.cap & cap 204 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_SU_BEAMFORMEE_CAPABLE) cap 205 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 209 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_SU_BEAMFORMER_CAPABLE) cap 210 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 214 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMER_CAPABLE) cap 215 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 218 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_MU_BEAMFORMEE_CAPABLE) cap 219 net/mac80211/vht.c vht_cap->cap |= cap_info & cap 222 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_TXSTBC) cap 223 net/mac80211/vht.c vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_RXSTBC_MASK; cap 225 net/mac80211/vht.c if (own_cap.cap & IEEE80211_VHT_CAP_RXSTBC_MASK) cap 226 net/mac80211/vht.c vht_cap->cap |= cap_info & IEEE80211_VHT_CAP_TXSTBC; cap 234 net/mac80211/vht.c vht_cap->cap |= (cap_info & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK); cap 295 net/mac80211/vht.c switch (vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK) { cap 322 net/mac80211/vht.c switch (vht_cap->cap & IEEE80211_VHT_CAP_MAX_MPDU_MASK) { cap 342 net/mac80211/vht.c return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? cap 346 net/mac80211/vht.c cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 357 net/mac80211/vht.c if (vht_cap->cap & IEEE80211_VHT_CAP_EXT_NSS_BW_MASK) cap 372 net/mac80211/vht.c return sta->sta.ht_cap.cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40 ? cap 376 net/mac80211/vht.c cap_width = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 405 net/mac80211/vht.c vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 610 net/mac80211/vht.c u16 mask, cap = le16_to_cpu(vht_cap); cap 613 net/mac80211/vht.c mask = (cap >> i * 2) & IEEE80211_VHT_MCS_NOT_SUPPORTED; cap 94 net/ncsi/internal.h u32 cap; /* NCSI channel capability */ cap 1032 net/ncsi/ncsi-manage.c nca.dwords[0] = nc->caps[NCSI_CAP_BC].cap; cap 1037 net/ncsi/ncsi-manage.c if (nc->caps[NCSI_CAP_GENERIC].cap & cap 1062 net/ncsi/ncsi-manage.c if (!(nc->caps[NCSI_CAP_AEN].cap & NCSI_CAP_AEN_MASK)) cap 1067 net/ncsi/ncsi-manage.c nca.dwords[1] = nc->caps[NCSI_CAP_AEN].cap; cap 1235 net/ncsi/ncsi-manage.c unsigned int cap; cap 1245 net/ncsi/ncsi-manage.c cap = nc->caps[NCSI_CAP_GENERIC].cap; cap 1246 net/ncsi/ncsi-manage.c if (!(cap & NCSI_CAP_GENERIC_HWA) || cap 1247 net/ncsi/ncsi-manage.c (cap & NCSI_CAP_GENERIC_HWA_MASK) != cap 207 net/ncsi/ncsi-pkt.h __be32 cap; /* Capabilities */ cap 780 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_GENERIC].cap = ntohl(rsp->cap) & cap 782 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_BC].cap = ntohl(rsp->bc_cap) & cap 784 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_MC].cap = ntohl(rsp->mc_cap) & cap 786 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_BUFFER].cap = ntohl(rsp->buf_cap); cap 787 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_AEN].cap = ntohl(rsp->aen_cap) & cap 789 net/ncsi/ncsi-rsp.c nc->caps[NCSI_CAP_VLAN].cap = rsp->vlan_mode & cap 533 net/netfilter/xt_hashlimit.c u64 cap, cpj; cap 558 net/netfilter/xt_hashlimit.c cap = CREDITS_PER_JIFFY_BYTES * HZ; cap 560 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = cap; cap 567 net/netfilter/xt_hashlimit.c cap = dh->rateinfo.credit_cap; cap 569 net/netfilter/xt_hashlimit.c if (dh->rateinfo.credit > cap) cap 570 net/netfilter/xt_hashlimit.c dh->rateinfo.credit = cap; cap 853 net/netlink/af_netlink.c struct user_namespace *user_ns, int cap) cap 856 net/netlink/af_netlink.c file_ns_capable(nsp->sk->sk_socket->file, user_ns, cap)) && cap 857 net/netlink/af_netlink.c ns_capable(user_ns, cap); cap 872 net/netlink/af_netlink.c struct user_namespace *user_ns, int cap) cap 874 net/netlink/af_netlink.c return __netlink_ns_capable(&NETLINK_CB(skb), user_ns, cap); cap 887 net/netlink/af_netlink.c bool netlink_capable(const struct sk_buff *skb, int cap) cap 889 net/netlink/af_netlink.c return netlink_ns_capable(skb, &init_user_ns, cap); cap 903 net/netlink/af_netlink.c bool netlink_net_capable(const struct sk_buff *skb, int cap) cap 905 net/netlink/af_netlink.c return netlink_ns_capable(skb, sock_net(skb->sk)->user_ns, cap); cap 531 net/rds/ib_cm.c attr.cap.max_send_wr = ic->i_send_ring.w_nr + fr_queue_space + 1; cap 532 net/rds/ib_cm.c attr.cap.max_recv_wr = ic->i_recv_ring.w_nr + 1; cap 533 net/rds/ib_cm.c attr.cap.max_send_sge = rds_ibdev->max_sge; cap 534 net/rds/ib_cm.c attr.cap.max_recv_sge = RDS_IB_RECV_SGE; cap 334 net/smc/smc_ib.c .cap = { cap 458 net/smc/smc_wr.c lnk->qp_attr.cap.max_send_wr); cap 460 net/smc/smc_wr.c lnk->qp_attr.cap.max_recv_wr); cap 268 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr = ep->rep_max_requests * depth; cap 269 net/sunrpc/xprtrdma/frwr_ops.c if (ep->rep_attr.cap.max_send_wr > max_qp_wr) { cap 273 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr = ep->rep_max_requests * depth; cap 275 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr += RPCRDMA_BACKWARD_WRS; cap 276 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_send_wr += 1; /* for ib_drain_sq */ cap 277 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr = ep->rep_max_requests; cap 278 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr += RPCRDMA_BACKWARD_WRS; cap 279 net/sunrpc/xprtrdma/frwr_ops.c ep->rep_attr.cap.max_recv_wr += 1; /* for ib_drain_rq */ cap 472 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_rdma_ctxs = ctxts; cap 473 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_wr = newxprt->sc_sq_depth - ctxts; cap 474 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_recv_wr = rq_depth; cap 475 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_sge = newxprt->sc_max_send_sges; cap 476 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_recv_sge = 1; cap 484 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); cap 486 net/sunrpc/xprtrdma/svc_rdma_transport.c qp_attr.cap.max_send_sge, qp_attr.cap.max_recv_sge); cap 503 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_sge = max_sge; cap 504 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_sge = 1; cap 505 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_inline_data = 0; cap 513 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_wr, cap 514 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_wr, cap 515 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_sge, cap 516 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_sge); cap 524 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_send_wr + 1, cap 532 net/sunrpc/xprtrdma/verbs.c ep->rep_attr.cap.max_recv_wr + 1, cap 885 net/wireless/chan.c u32 width, control_freq, cap; cap 924 net/wireless/chan.c if (!(ht_cap->cap & IEEE80211_HT_CAP_SUP_WIDTH_20_40) || cap 925 net/wireless/chan.c ht_cap->cap & IEEE80211_HT_CAP_40MHZ_INTOLERANT) cap 935 net/wireless/chan.c cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 936 net/wireless/chan.c if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) cap 948 net/wireless/chan.c cap = vht_cap->cap & IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_MASK; cap 949 net/wireless/chan.c if (cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160MHZ && cap 950 net/wireless/chan.c cap != IEEE80211_VHT_CAP_SUPP_CHAN_WIDTH_160_80PLUS80MHZ) cap 815 net/wireless/core.c sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; cap 816 net/wireless/core.c sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40; cap 1578 net/wireless/nl80211.c sband->ht_cap.cap) || cap 1591 net/wireless/nl80211.c sband->vht_cap.cap))) cap 1807 net/wireless/nl80211.c nl80211_send_pmsr_ftm_capa(const struct cfg80211_pmsr_capabilities *cap, cap 1812 net/wireless/nl80211.c if (!cap->ftm.supported) cap 1819 net/wireless/nl80211.c if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) cap 1821 net/wireless/nl80211.c if (cap->ftm.non_asap && cap 1824 net/wireless/nl80211.c if (cap->ftm.request_lci && cap 1827 net/wireless/nl80211.c if (cap->ftm.request_civicloc && cap 1831 net/wireless/nl80211.c cap->ftm.preambles)) cap 1834 net/wireless/nl80211.c cap->ftm.bandwidths)) cap 1836 net/wireless/nl80211.c if (cap->ftm.max_bursts_exponent >= 0 && cap 1838 net/wireless/nl80211.c cap->ftm.max_bursts_exponent)) cap 1840 net/wireless/nl80211.c if (cap->ftm.max_ftms_per_burst && cap 1842 net/wireless/nl80211.c cap->ftm.max_ftms_per_burst)) cap 1852 net/wireless/nl80211.c const struct cfg80211_pmsr_capabilities *cap = rdev->wiphy.pmsr_capa; cap 1855 net/wireless/nl80211.c if (!cap) cap 1867 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_PMSR_ATTR_MAX_PEERS, cap->max_peers)) cap 1870 net/wireless/nl80211.c if (cap->report_ap_tsf && cap 1874 net/wireless/nl80211.c if (cap->randomize_mac_addr && cap 1882 net/wireless/nl80211.c if (nl80211_send_pmsr_ftm_capa(cap, msg)) cap 4540 net/wireless/nl80211.c const u8 *cap; cap 4548 net/wireless/nl80211.c cap = cfg80211_find_ie(WLAN_EID_HT_CAPABILITY, ies, ies_len); cap 4549 net/wireless/nl80211.c if (cap && cap[1] >= sizeof(*params->ht_cap)) cap 4550 net/wireless/nl80211.c params->ht_cap = (void *)(cap + 2); cap 4551 net/wireless/nl80211.c cap = cfg80211_find_ie(WLAN_EID_VHT_CAPABILITY, ies, ies_len); cap 4552 net/wireless/nl80211.c if (cap && cap[1] >= sizeof(*params->vht_cap)) cap 4553 net/wireless/nl80211.c params->vht_cap = (void *)(cap + 2); cap 4554 net/wireless/nl80211.c cap = cfg80211_find_ext_ie(WLAN_EID_EXT_HE_CAPABILITY, ies, ies_len); cap 4555 net/wireless/nl80211.c if (cap && cap[1] >= sizeof(*params->he_cap) + 1) cap 4556 net/wireless/nl80211.c params->he_cap = (void *)(cap + 3); cap 2026 net/wireless/util.c int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, cap 2030 net/wireless/util.c u16 map = le16_to_cpu(cap->supp_mcs.rx_mcs_map); cap 2061 net/wireless/util.c if (!(cap->supp_mcs.tx_mcs_map & cap 2065 net/wireless/util.c ext_nss_bw = le32_get_bits(cap->vht_cap_info, cap 2067 net/wireless/util.c supp_width = le32_get_bits(cap->vht_cap_info, cap 302 samples/v4l/v4l2-pci-skeleton.c struct v4l2_capability *cap) cap 306 samples/v4l/v4l2-pci-skeleton.c strlcpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); cap 307 samples/v4l/v4l2-pci-skeleton.c strlcpy(cap->card, "V4L2 PCI Skeleton", sizeof(cap->card)); cap 308 samples/v4l/v4l2-pci-skeleton.c snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", cap 592 samples/v4l/v4l2-pci-skeleton.c struct v4l2_dv_timings_cap *cap) cap 599 samples/v4l/v4l2-pci-skeleton.c *cap = skel_timings_cap; cap 49 security/apparmor/capability.c audit_log_untrustedstring(ab, capability_names[sa->u.cap]); cap 65 security/apparmor/capability.c int cap, int error) cap 75 security/apparmor/capability.c !cap_raised(profile->caps.audit, cap))) cap 79 security/apparmor/capability.c cap_raised(profile->caps.kill, cap)) { cap 81 security/apparmor/capability.c } else if (cap_raised(profile->caps.quiet, cap) && cap 90 security/apparmor/capability.c if (profile == ent->profile && cap_raised(ent->caps, cap)) { cap 98 security/apparmor/capability.c cap_raise(ent->caps, cap); cap 114 security/apparmor/capability.c static int profile_capable(struct aa_profile *profile, int cap, cap 119 security/apparmor/capability.c if (cap_raised(profile->caps.allow, cap) && cap 120 security/apparmor/capability.c !cap_raised(profile->caps.denied, cap)) cap 134 security/apparmor/capability.c return audit_caps(sa, profile, cap, error); cap 147 security/apparmor/capability.c int aa_capable(struct aa_label *label, int cap, unsigned int opts) cap 153 security/apparmor/capability.c sa.u.cap = cap; cap 155 security/apparmor/capability.c profile_capable(profile, cap, opts, &sa)); cap 39 security/apparmor/include/capability.h int aa_capable(struct aa_label *label, int cap, unsigned int opts); cap 171 security/apparmor/lsm.c int cap, unsigned int opts) cap 178 security/apparmor/lsm.c error = aa_capable(label, cap, opts); cap 769 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.allow.cap[0]), NULL)) cap 771 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.audit.cap[0]), NULL)) cap 773 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.quiet.cap[0]), NULL)) cap 775 security/apparmor/policy_unpack.c if (!unpack_u32(e, &tmpcap.cap[0], NULL)) cap 781 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.allow.cap[1]), NULL)) cap 783 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.audit.cap[1]), NULL)) cap 785 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.quiet.cap[1]), NULL)) cap 787 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(tmpcap.cap[1]), NULL)) cap 796 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.extended.cap[0]), NULL)) cap 798 security/apparmor/policy_unpack.c if (!unpack_u32(e, &(profile->caps.extended.cap[1]), NULL)) cap 66 security/commoncap.c int cap, unsigned int opts) cap 77 security/commoncap.c return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; cap 344 security/commoncap.c static bool is_v2header(size_t size, const struct vfs_cap_data *cap) cap 348 security/commoncap.c return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_2; cap 351 security/commoncap.c static bool is_v3header(size_t size, const struct vfs_cap_data *cap) cap 355 security/commoncap.c return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_3; cap 376 security/commoncap.c struct vfs_cap_data *cap; cap 397 security/commoncap.c cap = (struct vfs_cap_data *) tmpbuf; cap 398 security/commoncap.c if (is_v2header((size_t) ret, cap)) { cap 406 security/commoncap.c } else if (!is_v3header((size_t) ret, cap)) { cap 437 security/commoncap.c struct vfs_cap_data *cap = *buffer; cap 443 security/commoncap.c memcpy(&cap->data, &nscap->data, sizeof(__le32) * 2 * VFS_CAP_U32); cap 444 security/commoncap.c cap->magic_etc = cpu_to_le32(magic); cap 465 security/commoncap.c static bool validheader(size_t size, const struct vfs_cap_data *cap) cap 467 security/commoncap.c return is_v2header(size, cap) || is_v3header(size, cap); cap 480 security/commoncap.c const struct vfs_cap_data *cap = *ivalue; cap 490 security/commoncap.c if (!validheader(size, cap)) cap 513 security/commoncap.c magic = le32_to_cpu(cap->magic_etc); cap 517 security/commoncap.c memcpy(&nscap->data, &cap->data, sizeof(__le32) * 2 * VFS_CAP_U32); cap 544 security/commoncap.c __u32 permitted = caps->permitted.cap[i]; cap 545 security/commoncap.c __u32 inheritable = caps->inheritable.cap[i]; cap 551 security/commoncap.c new->cap_permitted.cap[i] = cap 552 security/commoncap.c (new->cap_bset.cap[i] & permitted) | cap 553 security/commoncap.c (new->cap_inheritable.cap[i] & inheritable); cap 555 security/commoncap.c if (permitted & ~new->cap_permitted.cap[i]) cap 633 security/commoncap.c cpu_caps->permitted.cap[i] = le32_to_cpu(caps->data[i].permitted); cap 634 security/commoncap.c cpu_caps->inheritable.cap[i] = le32_to_cpu(caps->data[i].inheritable); cap 637 security/commoncap.c cpu_caps->permitted.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; cap 638 security/commoncap.c cpu_caps->inheritable.cap[CAP_LAST_U32] &= CAP_LAST_U32_VALID_MASK; cap 1140 security/commoncap.c static int cap_prctl_drop(unsigned long cap) cap 1146 security/commoncap.c if (!cap_valid(cap)) cap 1152 security/commoncap.c cap_lower(new->cap_bset, cap); cap 230 security/lsm_audit.c audit_log_format(ab, " capability=%d ", a->u.cap); cap 65 security/safesetid/lsm.c int cap, cap 69 security/safesetid/lsm.c if (cap != CAP_SETUID) cap 726 security/security.c int cap, cap 729 security/security.c return call_int_hook(capable, 0, cred, ns, cap, opts); cap 1629 security/selinux/hooks.c int cap, unsigned int opts, bool initns) cap 1635 security/selinux/hooks.c u32 av = CAP_TO_MASK(cap); cap 1639 security/selinux/hooks.c ad.u.cap = cap; cap 1641 security/selinux/hooks.c switch (CAP_TO_INDEX(cap)) { cap 1649 security/selinux/hooks.c pr_err("SELinux: out of range capability %d\n", cap); cap 2176 security/selinux/hooks.c int cap, unsigned int opts) cap 2178 security/selinux/hooks.c return cred_has_capability(cred, cap, opts, ns == &init_user_ns); cap 307 security/smack/smack.h bool smack_privileged(int cap); cap 308 security/smack/smack.h bool smack_privileged_cred(int cap, const struct cred *cred); cap 632 security/smack/smack_access.c bool smack_privileged_cred(int cap, const struct cred *cred) cap 639 security/smack/smack_access.c rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE); cap 669 security/smack/smack_access.c bool smack_privileged(int cap) cap 677 security/smack/smack_access.c return smack_privileged_cred(cap, current_cred()); cap 648 sound/core/seq/seq_ports.c int cap, int type, int midi_channels, cap 660 sound/core/seq/seq_ports.c portinfo.capability = cap; cap 93 sound/firewire/dice/dice-extension.c unsigned int cap; cap 100 sound/firewire/dice/dice-extension.c cap = CLOCK_CAP_RATE_176400 | CLOCK_CAP_RATE_192000; cap 102 sound/firewire/dice/dice-extension.c cap = CLOCK_CAP_RATE_88200 | CLOCK_CAP_RATE_96000; cap 104 sound/firewire/dice/dice-extension.c cap = CLOCK_CAP_RATE_32000 | CLOCK_CAP_RATE_44100 | cap 107 sound/firewire/dice/dice-extension.c if (!(cap & dice->clock_caps)) cap 414 sound/firewire/oxfw/oxfw-pcm.c unsigned int cap = 0; cap 418 sound/firewire/oxfw/oxfw-pcm.c cap = 1; cap 420 sound/firewire/oxfw/oxfw-pcm.c err = snd_pcm_new(oxfw->card, oxfw->card->driver, 0, 1, cap, &pcm); cap 427 sound/firewire/oxfw/oxfw-pcm.c if (cap > 0) cap 622 sound/hda/hdmi_chmap.c struct hdac_cea_channel_speaker_allocation *cap, int channels) cap 625 sound/hda/hdmi_chmap.c if (cap->channels != channels) cap 633 sound/hda/hdmi_chmap.c struct hdac_cea_channel_speaker_allocation *cap, cap 640 sound/hda/hdmi_chmap.c int spk = cap->speakers[c]; cap 690 sound/hda/hdmi_chmap.c struct hdac_cea_channel_speaker_allocation *cap; cap 692 sound/hda/hdmi_chmap.c cap = channel_allocations; cap 693 sound/hda/hdmi_chmap.c for (i = 0; i < ARRAY_SIZE(channel_allocations); i++, cap++) { cap 697 sound/hda/hdmi_chmap.c if (cap->channels != chs) cap 700 sound/hda/hdmi_chmap.c if (!(cap->spk_mask == (spk_mask & cap->spk_mask))) cap 704 sound/hda/hdmi_chmap.c chmap, cap, chs); cap 723 sound/hda/hdmi_chmap.c chmap->ops.cea_alloc_to_tlv_chmap(chmap, cap, cap 151 sound/isa/cmi8330.c struct pnp_dev *cap; cap 328 sound/isa/cmi8330.c acard->cap = pnp_request_card_device(card, id->devs[0].id, NULL); cap 329 sound/isa/cmi8330.c if (acard->cap == NULL) cap 340 sound/isa/cmi8330.c pdev = acard->cap; cap 1773 sound/pci/ctxfi/cthw20k1.c struct capabilities cap; cap 1776 sound/pci/ctxfi/cthw20k1.c cap.digit_io_switch = !(hw->model == CTSB073X || hw->model == CTUAA); cap 1777 sound/pci/ctxfi/cthw20k1.c cap.dedicated_mic = 0; cap 1778 sound/pci/ctxfi/cthw20k1.c cap.output_switch = 0; cap 1779 sound/pci/ctxfi/cthw20k1.c cap.mic_source_switch = 0; cap 1781 sound/pci/ctxfi/cthw20k1.c return cap; cap 1910 sound/pci/ctxfi/cthw20k2.c struct capabilities cap; cap 1912 sound/pci/ctxfi/cthw20k2.c cap.digit_io_switch = 0; cap 1913 sound/pci/ctxfi/cthw20k2.c cap.dedicated_mic = hw->model == CTSB1270; cap 1914 sound/pci/ctxfi/cthw20k2.c cap.output_switch = hw->model == CTSB1270; cap 1915 sound/pci/ctxfi/cthw20k2.c cap.mic_source_switch = hw->model == CTSB1270; cap 1917 sound/pci/ctxfi/cthw20k2.c return cap; cap 526 sound/pci/ctxfi/ctmixer.c struct capabilities cap = atc->capabilities(atc); cap 539 sound/pci/ctxfi/ctmixer.c if (!cap.dedicated_mic && cap 544 sound/pci/ctxfi/ctmixer.c } else if (cap.dedicated_mic && (MIXER_LINEIN_C_S == type)) cap 546 sound/pci/ctxfi/ctmixer.c else if (cap.dedicated_mic && (MIXER_MIC_C_S == type)) cap 738 sound/pci/ctxfi/ctmixer.c struct capabilities cap = atc->capabilities(atc); cap 752 sound/pci/ctxfi/ctmixer.c ct_kcontrol_init_table[MIXER_DIGITAL_IO_S].ctl = cap.digit_io_switch; cap 776 sound/pci/ctxfi/ctmixer.c if (cap.output_switch) { cap 782 sound/pci/ctxfi/ctmixer.c if (cap.mic_source_switch) { cap 798 sound/pci/ctxfi/ctmixer.c if (cap.dedicated_mic) cap 3880 sound/pci/hda/hda_codec.c unsigned int cap; cap 3884 sound/pci/hda/hda_codec.c cap = snd_hda_query_pin_caps(codec, pin); cap 3885 sound/pci/hda/hda_codec.c if (!cap) cap 3889 sound/pci/hda/hda_codec.c if (!(cap & AC_PINCAP_OUT)) cap 3891 sound/pci/hda/hda_codec.c else if ((val & AC_PINCTL_HP_EN) && !(cap & AC_PINCAP_HP_DRV)) cap 3896 sound/pci/hda/hda_codec.c if (!(cap & AC_PINCAP_IN)) cap 3901 sound/pci/hda/hda_codec.c vcap = (cap & AC_PINCAP_VREF) >> AC_PINCAP_VREF_SHIFT; cap 441 sound/pci/hda/hda_proc.c unsigned int cap = param_read(codec, nid, AC_PAR_VOL_KNB_CAP); cap 443 sound/pci/hda/hda_proc.c (cap >> 7) & 1, cap & 0x7f); cap 444 sound/pci/hda/hda_proc.c cap = snd_hda_codec_read(codec, nid, 0, cap 447 sound/pci/hda/hda_proc.c (cap >> 7) & 1, cap & 0x7f); cap 3458 sound/pci/hda/patch_hdmi.c struct hdac_cea_channel_speaker_allocation *cap, int channels) cap 3460 sound/pci/hda/patch_hdmi.c if (cap->ca_index == 0x00 && channels == 2) cap 3464 sound/pci/hda/patch_hdmi.c if (cap->channels != channels) cap 3747 sound/pci/hda/patch_hdmi.c struct hdac_cea_channel_speaker_allocation *cap; cap 3752 sound/pci/hda/patch_hdmi.c cap = snd_hdac_get_ch_alloc_from_ca(ca); cap 3763 sound/pci/hda/patch_hdmi.c if (cap->speakers[chan_idx] == mask) { cap 3771 sound/pci/hda/patch_hdmi.c int comp_mask_act = cap->speakers[comp_chan_idx]; cap 3860 sound/pci/hda/patch_hdmi.c struct hdac_cea_channel_speaker_allocation *cap, cap 3878 sound/pci/hda/patch_hdmi.c if (cap->speakers[c] || cap->speakers[c+1]) cap 3889 sound/pci/hda/patch_hdmi.c struct hdac_cea_channel_speaker_allocation *cap, cap 3898 sound/pci/hda/patch_hdmi.c int spk = cap->speakers[chan]; cap 3901 sound/pci/hda/patch_hdmi.c if (cap->speakers[chan + (chan % 2 ? -1 : 1)]) cap 3090 sound/pci/hda/patch_sigmatel.c unsigned int cap; cap 3099 sound/pci/hda/patch_sigmatel.c cap = snd_hda_param_read(codec, 0x1, AC_PAR_GPIO_CAP); cap 3100 sound/pci/hda/patch_sigmatel.c cap &= AC_GPIO_IO_COUNT; cap 3101 sound/pci/hda/patch_sigmatel.c if (cap >= 6) cap 349 sound/soc/codecs/hdmi-codec.c const struct hdmi_codec_cea_spk_alloc *cap = hdmi_codec_channel_alloc; cap 354 sound/soc/codecs/hdmi-codec.c for (i = 0; i < ARRAY_SIZE(hdmi_codec_channel_alloc); i++, cap++) { cap 356 sound/soc/codecs/hdmi-codec.c if (!spk_alloc && cap->ca_id == 0) cap 358 sound/soc/codecs/hdmi-codec.c if (cap->n_ch != channels) cap 360 sound/soc/codecs/hdmi-codec.c if (!(cap->mask == (spk_mask & cap->mask))) cap 655 sound/soc/dwc/dwc-i2s.c dev->capability = pdata->cap; cap 58 sound/soc/sof/intel/hda-ctrl.c u32 cap, offset, feature; cap 64 sound/soc/sof/intel/hda-ctrl.c cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset); cap 69 sound/soc/sof/intel/hda-ctrl.c feature = (cap & SOF_HDA_CAP_ID_MASK) >> SOF_HDA_CAP_ID_OFF; cap 106 sound/soc/sof/intel/hda-ctrl.c offset = cap & SOF_HDA_CAP_NEXT_MASK; cap 586 sound/soc/ux500/ux500_msp_dai.c unsigned int cap; cap 590 sound/soc/ux500/ux500_msp_dai.c cap = 0x01; cap 593 sound/soc/ux500/ux500_msp_dai.c cap = 0x03; cap 596 sound/soc/ux500/ux500_msp_dai.c cap = 0xFF; cap 599 sound/soc/ux500/ux500_msp_dai.c cap = 0xFFFF; cap 615 sound/soc/ux500/ux500_msp_dai.c drvdata->tx_mask = tx_mask & cap; cap 616 sound/soc/ux500/ux500_msp_dai.c drvdata->rx_mask = rx_mask & cap; cap 131 sound/synth/emux/emux_seq.c int i, type, cap; cap 156 sound/synth/emux/emux_seq.c cap = SNDRV_SEQ_PORT_CAP_WRITE; cap 161 sound/synth/emux/emux_seq.c cap |= SNDRV_SEQ_PORT_CAP_SUBS_WRITE; cap 165 sound/synth/emux/emux_seq.c cap, type, max_channels, cap 710 tools/include/uapi/linux/kvm.h __u32 cap; cap 1310 tools/lib/bpf/btf.c __u32 cap; cap 1617 tools/lib/bpf/btf.c .cap = 0, cap 1626 tools/lib/bpf/btf.c if (strs.cnt + 1 > strs.cap) { cap 1629 tools/lib/bpf/btf.c strs.cap += max(strs.cnt / 2, 16); cap 1631 tools/lib/bpf/btf.c sizeof(strs.ptrs[0]) * strs.cap); cap 40 tools/lib/bpf/hashmap.c map->cap = 0; cap 60 tools/lib/bpf/hashmap.c map->cap = map->cap_bits = map->sz = 0; cap 79 tools/lib/bpf/hashmap.c return map->cap; cap 85 tools/lib/bpf/hashmap.c return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); cap 110 tools/lib/bpf/hashmap.c map->cap = new_cap; cap 41 tools/lib/bpf/hashmap.h size_t cap; cap 51 tools/lib/bpf/hashmap.h .cap = 0, \ cap 139 tools/lib/bpf/hashmap.h for (bkt = 0; bkt < map->cap; bkt++) \ cap 151 tools/lib/bpf/hashmap.h for (bkt = 0; bkt < map->cap; bkt++) \ cap 12 tools/perf/util/cap.c bool perf_cap__capable(cap_value_t cap) cap 20 tools/perf/util/cap.c if (cap_get_flag(caps, cap, CAP_EFFECTIVE, &val) != 0) cap 13 tools/perf/util/cap.h bool perf_cap__capable(cap_value_t cap); cap 20 tools/perf/util/cap.h static inline bool perf_cap__capable(int cap __maybe_unused) cap 671 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) cap 677 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cap->lowest, cap->efficient, cap->guaranteed, cap->highest); cap 679 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigned int msr_offset) cap 685 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cap->highest = msr_perf_2_ratio(HWP_HIGHEST_PERF(msr)); cap 686 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cap->guaranteed = msr_perf_2_ratio(HWP_GUARANTEED_PERF(msr)); cap 687 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cap->efficient = msr_perf_2_ratio(HWP_MOSTEFFICIENT_PERF(msr)); cap 688 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cap->lowest = msr_perf_2_ratio(HWP_LOWEST_PERF(msr)); cap 752 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c struct msr_hwp_cap cap; cap 766 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c read_hwp_cap(cpu, &cap, MSR_HWP_CAPABILITIES); cap 767 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c print_hwp_cap(cpu, &cap, ""); cap 893 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c int check_hwp_request_v_hwp_capabilities(int cpu, struct msr_hwp_request *req, struct msr_hwp_cap *cap) cap 896 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_max > cap->highest) cap 898 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_max, cap->highest); cap 899 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_max < cap->lowest) cap 901 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_max, cap->lowest); cap 905 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_min > cap->highest) cap 907 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_min, cap->highest); cap 908 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_min < cap->lowest) cap 910 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_min, cap->lowest); cap 924 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_desired < cap->lowest) cap 926 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_desired, cap->lowest); cap 927 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c if (req->hwp_desired > cap->highest) cap 929 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c cpu, req->hwp_desired, cap->highest); cap 938 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c struct msr_hwp_cap cap; cap 963 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c read_hwp_cap(cpu, &cap, MSR_HWP_CAPABILITIES); cap 965 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c print_hwp_cap(cpu, &cap, ""); cap 968 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c check_hwp_request_v_hwp_capabilities(cpu, &req, &cap); cap 983 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c struct msr_hwp_cap cap; cap 1007 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c read_hwp_cap(cpu, &cap, MSR_HWP_CAPABILITIES); cap 1009 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c print_hwp_cap(cpu, &cap, ""); cap 1012 tools/power/x86/x86_energy_perf_policy/x86_energy_perf_policy.c check_hwp_request_v_hwp_capabilities(cpu, &req, &cap); cap 320 tools/testing/selftests/kvm/dirty_log_test.c struct kvm_enable_cap cap = {}; cap 322 tools/testing/selftests/kvm/dirty_log_test.c cap.cap = KVM_CAP_MANUAL_DIRTY_LOG_PROTECT2; cap 323 tools/testing/selftests/kvm/dirty_log_test.c cap.args[0] = 1; cap 324 tools/testing/selftests/kvm/dirty_log_test.c vm_enable_cap(vm, &cap); cap 68 tools/testing/selftests/kvm/include/kvm_util.h int kvm_check_cap(long cap); cap 69 tools/testing/selftests/kvm/include/kvm_util.h int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap); cap 47 tools/testing/selftests/kvm/lib/kvm_util.c int kvm_check_cap(long cap) cap 56 tools/testing/selftests/kvm/lib/kvm_util.c ret = ioctl(kvm_fd, KVM_CHECK_EXTENSION, cap); cap 77 tools/testing/selftests/kvm/lib/kvm_util.c int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap) cap 81 tools/testing/selftests/kvm/lib/kvm_util.c ret = ioctl(vm->fd, KVM_ENABLE_CAP, cap); cap 51 tools/testing/selftests/kvm/lib/x86_64/vmx.c .cap = KVM_CAP_HYPERV_ENLIGHTENED_VMCS, cap 72 tools/testing/selftests/kvm/s390x/sync_regs_test.c int rv, cap; cap 77 tools/testing/selftests/kvm/s390x/sync_regs_test.c cap = kvm_check_cap(KVM_CAP_SYNC_REGS); cap 78 tools/testing/selftests/kvm/s390x/sync_regs_test.c if (!cap) { cap 40 tools/testing/selftests/kvm/x86_64/platform_info_test.c struct kvm_enable_cap cap = {}; cap 42 tools/testing/selftests/kvm/x86_64/platform_info_test.c cap.cap = KVM_CAP_MSR_PLATFORM_INFO; cap 43 tools/testing/selftests/kvm/x86_64/platform_info_test.c cap.flags = 0; cap 44 tools/testing/selftests/kvm/x86_64/platform_info_test.c cap.args[0] = (int)enable; cap 45 tools/testing/selftests/kvm/x86_64/platform_info_test.c vm_enable_cap(vm, &cap); cap 87 tools/testing/selftests/kvm/x86_64/sync_regs_test.c int rv, cap; cap 92 tools/testing/selftests/kvm/x86_64/sync_regs_test.c cap = kvm_check_cap(KVM_CAP_SYNC_REGS); cap 93 tools/testing/selftests/kvm/x86_64/sync_regs_test.c if ((cap & TEST_SYNC_FIELDS) != TEST_SYNC_FIELDS) { cap 97 tools/testing/selftests/kvm/x86_64/sync_regs_test.c if ((cap & INVALID_SYNC_FIELD) != 0) { cap 28 tools/testing/selftests/vm/mlock-random-test.c cap_t cap = cap_init(); cap 38 tools/testing/selftests/vm/mlock-random-test.c if (cap_set_proc(cap)) { cap 3327 virt/kvm/kvm_main.c struct kvm_enable_cap *cap) cap 3333 virt/kvm/kvm_main.c struct kvm_enable_cap *cap) cap 3335 virt/kvm/kvm_main.c switch (cap->cap) { cap 3338 virt/kvm/kvm_main.c if (cap->flags || (cap->args[0] & ~1)) cap 3340 virt/kvm/kvm_main.c kvm->manual_dirty_log_protect = cap->args[0]; cap 3344 virt/kvm/kvm_main.c return kvm_vm_ioctl_enable_cap(kvm, cap); cap 3362 virt/kvm/kvm_main.c struct kvm_enable_cap cap; cap 3365 virt/kvm/kvm_main.c if (copy_from_user(&cap, argp, sizeof(cap))) cap 3367 virt/kvm/kvm_main.c r = kvm_vm_ioctl_enable_cap_generic(kvm, &cap);