/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_dcbnl.c | 413 return priv->dcbx.cap; 431 dcbx->cap &= ~DCB_CAP_DCBX_HOST; 444 dcbx->cap = mode; 825 int capid, u8 *cap) 833 *cap = true; 836 *cap = true; 839 *cap = false; 842 *cap = 1 << mlx5_max_tc(mdev); 845 *cap = 1 << mlx5_max_tc(mdev); 848 *cap 824 mlx5e_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) argument [all...] |
/linux-master/kernel/cgroup/ |
H A D | misc.c | 323 u64 cap; local 326 cap = READ_ONCE(misc_res_capacity[i]); 327 if (cap) 328 seq_printf(sf, "%s %llu\n", misc_res_name[i], cap);
|
/linux-master/arch/x86/kernel/cpu/mce/ |
H A D | intel.c | 80 u64 cap; local 96 rdmsrl(MSR_IA32_MCG_CAP, cap); 97 *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff); 98 return !!(cap & MCG_CMCI_P);
|
/linux-master/security/safesetid/ |
H A D | lsm.c | 93 int cap, 97 if (cap != CAP_SETUID && cap != CAP_SETGID) 108 switch (cap) { 91 safesetid_security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts) argument
|
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_lm.h | 75 const struct dpu_lm_cfg *cap; member in struct:dpu_hw_mixer
|
H A D | dpu_plane.c | 345 *forced_on = mdp->ops.setup_clk_force_ctrl(mdp, sspp->cap->clk_ctrl, enable); 370 ot_params.xin_id = pipe->sspp->cap->xin_id; 405 qos_params.xin_id = pipe->sspp->cap->xin_id; 472 if (pipe_hw->cap->sblk->scaler_blk.version >= 0x3000) { 520 if (BIT(DPU_SSPP_CSC_10BIT) & pipe->sspp->cap->features) 745 (!pipe->sspp->cap->sblk->scaler_blk.len || 746 !pipe->sspp->cap->sblk->csc_blk.len)) { 808 const struct dpu_sspp_cfg *pipe_hw_caps = pstate->pipe.sspp->cap; 809 const struct dpu_sspp_sub_blks *sblk = pstate->pipe.sspp->cap->sblk; 888 (!test_bit(DPU_SSPP_SMART_DMA_V1, &pipe->sspp->cap [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-nvm-parse.h | 53 u16 geo_info, u32 cap, u8 resp_ver, bool uats_enabled);
|
/linux-master/drivers/hwtracing/coresight/ |
H A D | coresight-tmc.h | 304 static inline void tmc_etr_set_cap(struct tmc_drvdata *drvdata, u32 cap) argument 306 drvdata->etr_caps |= cap; 309 static inline bool tmc_etr_has_cap(struct tmc_drvdata *drvdata, u32 cap) argument 311 return !!(drvdata->etr_caps & cap);
|
/linux-master/drivers/media/test-drivers/vimc/ |
H A D | vimc-capture.c | 56 struct v4l2_capability *cap) 58 strscpy(cap->driver, VIMC_PDEV_NAME, sizeof(cap->driver)); 59 strscpy(cap->card, KBUILD_MODNAME, sizeof(cap->card)); 60 snprintf(cap->bus_info, sizeof(cap->bus_info), 55 vimc_capture_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument
|
/linux-master/drivers/pci/ |
H A D | vpd.c | 103 if (!vpd->cap) 109 vpd->cap = 0; 135 ret = pci_user_read_config_word(dev, vpd->cap + PCI_VPD_ADDR, 192 ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, 200 ret = pci_user_read_config_dword(dev, vpd->cap + PCI_VPD_DATA, &val); 243 ret = pci_user_write_config_dword(dev, vpd->cap + PCI_VPD_DATA, 247 ret = pci_user_write_config_word(dev, vpd->cap + PCI_VPD_ADDR, 269 dev->vpd.cap = pci_find_capability(dev, PCI_CAP_ID_VPD); 332 if (!pdev->vpd.cap) 560 if (f0->vpd.cap [all...] |
/linux-master/net/sunrpc/xprtrdma/ |
H A D | svc_rdma_transport.c | 455 qp_attr.cap.max_rdma_ctxs = ctxts; 456 qp_attr.cap.max_send_wr = newxprt->sc_sq_depth - ctxts; 457 qp_attr.cap.max_recv_wr = rq_depth; 458 qp_attr.cap.max_send_sge = newxprt->sc_max_send_sges; 459 qp_attr.cap.max_recv_sge = 1; 464 dprintk(" cap.max_send_wr = %d, cap.max_recv_wr = %d\n", 465 qp_attr.cap.max_send_wr, qp_attr.cap.max_recv_wr); 466 dprintk(" cap [all...] |
/linux-master/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 110 dst->max_send_wr = src->cap.max_send_wr; 111 dst->max_recv_wr = src->cap.max_recv_wr; 112 dst->max_send_sge = src->cap.max_send_sge; 113 dst->max_recv_sge = src->cap.max_recv_sge; 114 dst->max_inline_data = src->cap.max_inline_data;
|
/linux-master/drivers/net/ethernet/sfc/ |
H A D | mcdi_port_common.c | 112 void mcdi_to_ethtool_linkset(u32 media, u32 cap, unsigned long *linkset) argument 121 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) 123 if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) 125 if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) 133 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) { 137 if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) { 142 if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) { 146 if (cap & (1 << MC_CMD_PHY_CAP_100000FDX_LBN)) { 150 if (cap & (1 << MC_CMD_PHY_CAP_25000FDX_LBN)) { 154 if (cap [all...] |
/linux-master/drivers/media/platform/sunxi/sun4i-csi/ |
H A D | sun4i_v4l2.c | 54 struct v4l2_capability *cap) 56 strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); 57 strscpy(cap->card, "sun4i-csi", sizeof(cap->card)); 53 sun4i_csi_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument
|
/linux-master/drivers/staging/fieldbus/anybuss/ |
H A D | arcx-anybus.c | 235 u8 status1, cap; local 265 cap = readb(cd->cpld_base + CPLD_CAP); 266 if (!(cap & CPLD_CAP_COMPAT)) { 267 dev_err(dev, "unsupported controller [cap=0x%02X]", cap); 274 cd->common_reset = !(cap & CPLD_CAP_SEP_RESETS);
|
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 146 const struct v4l2_bt_timings_cap *cap = &dvcap->bt; local 147 u32 caps = cap->capabilities; 154 bt->height < cap->min_height || 155 bt->height > cap->max_height || 156 bt->width < cap->min_width || 157 bt->width > cap->max_width || 158 bt->pixelclock < cap->min_pixelclock || 159 bt->pixelclock > cap->max_pixelclock || 161 cap->standards && bt->standards && 162 !(bt->standards & cap 190 v4l2_enum_dv_timings_cap(struct v4l2_enum_dv_timings *t, const struct v4l2_dv_timings_cap *cap, v4l2_check_dv_timings_fnc fnc, void *fnc_handle) argument 210 v4l2_find_dv_timings_cap(struct v4l2_dv_timings *t, const struct v4l2_dv_timings_cap *cap, unsigned pclock_delta, v4l2_check_dv_timings_fnc fnc, void *fnc_handle) argument [all...] |
/linux-master/drivers/vfio/pci/ |
H A D | vfio_pci_config.c | 258 if (pos >= PCI_CFG_SPACE_SIZE) { /* Extended cap header mangling */ 261 } else if (pos >= PCI_STD_HEADER_SIZEOF) { /* Std cap mangling */ 888 u32 cap; local 895 &cap); 897 if (!ret && (cap & PCI_EXP_DEVCAP_FLR)) { 970 u8 cap; local 977 &cap); 979 if (!ret && (cap & PCI_AF_CAP_FLR) && (cap & PCI_AF_CAP_TP)) { 1115 u8 cap; local 1304 vfio_cap_len(struct vfio_pci_core_device *vdev, u8 cap, u8 pos) argument 1521 u8 pos, *prev, cap; local 1853 u8 cap = vdev->pci_config_map[pos]; local [all...] |
/linux-master/arch/arm64/kernel/ |
H A D | cpufeature.c | 204 static void cpu_enable_cnp(struct arm64_cpu_capabilities const *cap); 1773 * on the cpus_have_*cap() helpers here to detect the CPU erratum 1963 static void cpu_enable_kpti(struct arm64_cpu_capabilities const *cap) argument 2016 static bool cpu_can_use_dbm(const struct arm64_cpu_capabilities *cap) argument 2018 return has_cpuid_feature(cap, SCOPE_LOCAL_CPU) && 2022 static void cpu_enable_hw_dbm(struct arm64_cpu_capabilities const *cap) argument 2024 if (cpu_can_use_dbm(cap)) { 2030 static bool has_hw_dbm(const struct arm64_cpu_capabilities *cap, argument 2069 static void cpu_amu_enable(struct arm64_cpu_capabilities const *cap) argument 2071 if (has_cpuid_feature(cap, SCOPE_LOCAL_CP 2080 has_amu(const struct arm64_cpu_capabilities *cap, int __unused) argument 2124 has_nested_virt_support(const struct arm64_cpu_capabilities *cap, int scope) argument 2215 cpu_enable_e0pd(struct arm64_cpu_capabilities const *cap) argument 2282 cpu_enable_mte(struct arm64_cpu_capabilities const *cap) argument 2344 cpucap_late_cpu_optional(const struct arm64_cpu_capabilities *cap) argument 2350 cpucap_late_cpu_permitted(const struct arm64_cpu_capabilities *cap) argument 2356 cpucap_panic_on_conflict(const struct arm64_cpu_capabilities *cap) argument 3032 compat_has_neon(const struct arm64_cpu_capabilities *cap, int scope) argument 3077 cap_set_elf_hwcap(const struct arm64_cpu_capabilities *cap) argument 3098 cpus_have_elf_hwcap(const struct arm64_cpu_capabilities *cap) argument 3164 const struct arm64_cpu_capabilities *cap = cpucap_ptrs[i]; local 3418 const struct arm64_cpu_capabilities *cap = cpucap_ptrs[n]; local 3436 const struct arm64_cpu_capabilities *cap = cpucap_ptrs[n]; local 3614 cpu_enable_cnp(struct arm64_cpu_capabilities const *cap) argument [all...] |
/linux-master/samples/v4l/ |
H A D | v4l2-pci-skeleton.c | 291 struct v4l2_capability *cap) 295 strscpy(cap->driver, KBUILD_MODNAME, sizeof(cap->driver)); 296 strscpy(cap->card, "V4L2 PCI Skeleton", sizeof(cap->card)); 297 snprintf(cap->bus_info, sizeof(cap->bus_info), "PCI:%s", 581 struct v4l2_dv_timings_cap *cap) 588 *cap = skel_timings_cap; 290 skeleton_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument 580 skeleton_dv_timings_cap(struct file *file, void *fh, struct v4l2_dv_timings_cap *cap) argument
|
/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 277 unsigned int kvm_check_cap(long cap); 279 static inline bool kvm_has_cap(long cap) argument 281 return kvm_check_cap(cap); 374 * (KVM_CAP_*) given by cap. 376 static inline int vm_check_cap(struct kvm_vm *vm, long cap) argument 378 int ret = __vm_ioctl(vm, KVM_CHECK_EXTENSION, (void *)cap); 384 static inline int __vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_t arg0) argument 386 struct kvm_enable_cap enable_cap = { .cap = cap, .args = { arg0 } }; 390 static inline void vm_enable_cap(struct kvm_vm *vm, uint32_t cap, uint64_ argument 630 vcpu_enable_cap(struct kvm_vcpu *vcpu, uint32_t cap, uint64_t arg0) argument [all...] |
/linux-master/drivers/ata/ |
H A D | acard-ahci.c | 287 if ((hpriv->cap & HOST_CAP_FBS) && sata_pmp_supported(ap)) { 395 if (hpriv->cap & HOST_CAP_NCQ) 398 if (hpriv->cap & HOST_CAP_PMP) 408 n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); 415 if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) 438 DMA_BIT_MASK((hpriv->cap & HOST_CAP_64) ? 64 : 32));
|
/linux-master/drivers/net/wwan/iosm/ |
H A D | iosm_ipc_pcie.c | 69 u32 cap = 0; local 122 pcie_capability_read_dword(ipc_pcie->pci, PCI_EXP_DEVCAP2, &cap); 123 if (cap & PCI_EXP_DEVCAP2_LTR) 184 u32 cap = 0; local 190 pcie_capability_read_dword(pdev, PCI_EXP_LNKCAP, &cap); 191 support = u32_get_bits(cap, PCI_EXP_LNKCAP_ASPMS);
|
/linux-master/fs/ceph/ |
H A D | mds_client.c | 1288 struct ceph_cap *cap; local 1409 cap = NULL; 1411 cap = ci->i_auth_cap; 1412 if (!cap && !RB_EMPTY_ROOT(&ci->i_caps)) 1413 cap = rb_entry(rb_first(&ci->i_caps), struct ceph_cap, ci_node); 1414 if (!cap) { 1419 mds = cap->session->s_mds; 1422 cap == ci->i_auth_cap ? "auth " : "", cap); 1778 struct ceph_cap *cap; local 1830 struct ceph_cap *cap; local 1897 struct ceph_cap *cap; local 1936 struct ceph_cap *cap, *prev = NULL; local 1993 struct ceph_cap *cap; local 2176 struct ceph_cap *cap; local 2323 struct ceph_cap *cap; local 2443 __ceph_queue_cap_release(struct ceph_mds_session *session, struct ceph_cap *cap) argument 3290 struct ceph_cap *cap = local 3534 struct ceph_cap *cap; local 4483 struct ceph_cap *cap; local [all...] |
/linux-master/drivers/media/usb/hdpvr/ |
H A D | hdpvr-video.c | 579 struct v4l2_capability *cap) 583 strscpy(cap->driver, "hdpvr", sizeof(cap->driver)); 584 strscpy(cap->card, "Hauppauge HD PVR", sizeof(cap->card)); 585 usb_make_path(dev->udev, cap->bus_info, sizeof(cap->bus_info)); 735 struct v4l2_dv_timings_cap *cap) 743 cap->type = V4L2_DV_BT_656_1120; 744 cap 578 vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument 734 vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap) argument [all...] |
/linux-master/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-v4l2.c | 109 static int pvr2_querycap(struct file *file, void *priv, struct v4l2_capability *cap) argument 114 strscpy(cap->driver, "pvrusb2", sizeof(cap->driver)); 115 strscpy(cap->bus_info, pvr2_hdw_get_bus_info(hdw), 116 sizeof(cap->bus_info)); 117 strscpy(cap->card, pvr2_hdw_get_desc(hdw), sizeof(cap->card)); 118 cap->capabilities = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER | 686 struct v4l2_cropcap cap = { .type = type }; local 691 ret = pvr2_hdw_get_cropcap(hdw, &cap); 702 struct v4l2_cropcap cap; local [all...] |