/linux-master/include/linux/ |
H A D | mii.h | 511 * @cap: Flow control capabilities (FLOW_CTRL_RX, FLOW_CTRL_TX or both) 513 static inline u16 mii_advertise_flowctrl(int cap) argument 517 if (cap & FLOW_CTRL_RX) 519 if (cap & FLOW_CTRL_TX) 534 u8 cap = 0; local 537 cap = FLOW_CTRL_TX | FLOW_CTRL_RX; 540 cap = FLOW_CTRL_RX; 542 cap = FLOW_CTRL_TX; 545 return cap;
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A D | eeprom.c | 108 dev->mphy.cap.has_2ghz = true; 109 dev->mphy.cap.has_5ghz = true; 115 dev->mphy.cap.has_2ghz = true; 121 dev->mphy.cap.has_5ghz = true; 129 dev->mphy.cap.has_5ghz = true; 135 dev->mphy.cap.has_2ghz = true; 138 dev->mphy.cap.has_2ghz = true; 139 dev->mphy.cap.has_5ghz = true;
|
/linux-master/drivers/gpu/drm/display/ |
H A D | drm_dp_cec.c | 270 u8 cap = 0; local 272 if (drm_dp_dpcd_readb(aux, DP_CEC_TUNNELING_CAPABILITY, &cap) != 1 || 273 !(cap & DP_CEC_TUNNELING_CAPABLE)) 276 *cec_cap = cap; 308 u8 cap; local 327 if (!drm_dp_cec_cap(aux, &cap)) { 334 if (cap & DP_CEC_SNOOPING_CAPABLE) 336 if (cap & DP_CEC_MULTIPLE_LA_CAPABLE)
|
/linux-master/drivers/iommu/ |
H A D | irq_remapping.c | 88 bool irq_remapping_cap(enum irq_remap_cap cap) argument 93 return (remap_ops->capability & (1 << cap));
|
/linux-master/drivers/ata/ |
H A D | libahci.c | 267 return sprintf(buf, "%x\n", hpriv->cap); 451 u32 cap, cap2, vers; local 467 cap = readl(mmio + HOST_CAP); 469 cap = (cap & ~(HOST_CAP_SSS | HOST_CAP_MPS)) | hpriv->saved_cap; 470 hpriv->saved_cap = cap; 481 if ((cap & HOST_CAP_64) && (hpriv->flags & AHCI_HFLAG_32BIT_ONLY)) { 483 cap &= ~HOST_CAP_64; 486 if ((cap & HOST_CAP_NCQ) && (hpriv->flags & AHCI_HFLAG_NO_NCQ)) { 488 cap 2604 u32 vers, cap, cap2, impl, speed; local [all...] |
/linux-master/tools/lib/bpf/ |
H A D | hashmap.c | 46 map->cap = 0; 73 map->cap = map->cap_bits = map->sz = 0; 92 return map->cap; 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); 122 map->cap = new_cap;
|
/linux-master/tools/perf/util/ |
H A D | hashmap.c | 46 map->cap = 0; 73 map->cap = map->cap_bits = map->sz = 0; 92 return map->cap; 98 return (map->cap == 0) || ((map->sz + 1) * 4 / 3 > map->cap); 122 map->cap = new_cap;
|
/linux-master/kernel/bpf/ |
H A D | token.c | 12 static bool bpf_ns_capable(struct user_namespace *ns, int cap) argument 14 return ns_capable(ns, cap) || (cap != CAP_SYS_ADMIN && ns_capable(ns, CAP_SYS_ADMIN)); 17 bool bpf_token_capable(const struct bpf_token *token, int cap) argument 23 if (!bpf_ns_capable(userns, cap)) 25 if (token && security_bpf_token_capable(token, cap) < 0)
|
/linux-master/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_dcb.c | 372 struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; local 376 memset(cap, 0, sizeof(struct qlcnic_dcb_capability)); 384 cap->tsa_capability = true; 387 cap->ets_capability = true; 389 cap->max_num_tc = QLC_DCB_MAX_NUM_TC(mbx_out); 390 cap->max_ets_tc = QLC_DCB_MAX_NUM_ETS_TC(mbx_out); 391 cap->max_pfc_tc = QLC_DCB_MAX_NUM_PFC_TC(mbx_out); 393 if (cap->max_num_tc > QLC_DCB_MAX_TC || 394 cap->max_ets_tc > cap 406 struct qlcnic_dcb_capability *cap; local 543 struct qlcnic_dcb_capability *cap = &dcb->cfg->capability; local 879 qlcnic_dcb_get_capability(struct net_device *netdev, int capid, u8 *cap) argument [all...] |
/linux-master/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-m2m.c | 57 struct mxc_isi_m2m_ctx_queue_data cap; member in struct:mxc_isi_m2m_ctx::__anon975 87 return &ctx->queues.cap; 113 dst_vbuf->sequence = ctx->queues.cap.sequence++; 139 .width = ctx->queues.cap.format.width, 140 .height = ctx->queues.cap.format.height, 143 .width = ctx->queues.cap.format.width, 144 .height = ctx->queues.cap.format.height, 150 ctx->queues.cap.info->encoding); 155 ctx->queues.cap.info, 156 &ctx->queues.cap 381 mxc_isi_m2m_querycap(struct file *file, void *fh, struct v4l2_capability *cap) argument [all...] |
/linux-master/drivers/pci/pcie/ |
H A D | aspm.c | 31 u32 *cap; local 47 cap = &save_state->cap.data[0]; 48 pci_read_config_dword(dev, ltr + PCI_LTR_MAX_SNOOP_LAT, cap); 55 u32 *cap; local 63 cap = &save_state->cap.data[0]; 64 pci_write_config_dword(dev, ltr + PCI_LTR_MAX_SNOOP_LAT, *cap); 84 u32 *cap; local 97 cap 106 u32 *cap, pl_ctl1, pl_ctl2, pl_l1_2_enable; local 307 u16 *cap, lnkctl, aspm_ctl; local 1153 u32 cap, ctl; local [all...] |
/linux-master/drivers/staging/media/av7110/ |
H A D | av7110_ca.c | 253 struct ca_caps cap; local 255 cap.slot_num = 2; 256 cap.slot_type = (FW_CI_LL_SUPPORT(av7110->arm_app) ? 258 cap.descr_num = 16; 259 cap.descr_type = CA_ECD; 260 memcpy(parg, &cap, sizeof(cap));
|
/linux-master/drivers/pci/ |
H A D | ats.c | 137 u16 cap; local 145 pci_read_config_word(dev, dev->ats_cap + PCI_ATS_CAP, &cap); 146 return PCI_ATS_CAP_QDEP(cap) ? PCI_ATS_CAP_QDEP(cap) : PCI_ATS_MAX_QDEP; 162 u16 cap; local 167 pci_read_config_word(pdev, pdev->ats_cap + PCI_ATS_CAP, &cap); 169 if (cap & PCI_ATS_CAP_PAGE_ALIGNED)
|
/linux-master/drivers/thunderbolt/ |
H A D | tmu.c | 73 sw->tmu.cap + TMU_RTR_CS_0, 1); 81 sw->tmu.cap + TMU_RTR_CS_0, 1); 86 sw->tmu.cap + TMU_RTR_CS_15, 1); 100 sw->tmu.cap + TMU_RTR_CS_15, 1); 108 sw->tmu.cap + TMU_RTR_CS_18, 1); 116 sw->tmu.cap + TMU_RTR_CS_18, 1); 128 sw->tmu.cap + TMU_RTR_CS_0, 1); 141 sw->tmu.cap + TMU_RTR_CS_3, 1); 155 sw->tmu.cap + TMU_RTR_CS_3, 1); 163 sw->tmu.cap 422 int cap; local [all...] |
/linux-master/drivers/acpi/ |
H A D | acpi_video.c | 163 struct acpi_video_bus_cap cap; member in struct:acpi_video_bus 196 struct acpi_video_device_cap cap; member in struct:acpi_video_device 564 if (device->cap._BQC || device->cap._BCQ) { 565 char *buf = device->cap._BQC ? "_BQC" : "_BCQ"; 593 device->cap._BQC = device->cap._BCQ = 0; 605 device->cap._BQC = device->cap._BCQ = 0; 683 if (!video->cap [all...] |
/linux-master/net/mac80211/ |
H A D | ht.c | 29 ht_cap->cap &= ~flag; 42 ht_cap->cap |= flag; 114 ht_cap->cap |= le16_to_cpu(ht_capa->cap_info) & 177 ht_cap.cap = le16_to_cpu(ht_cap_ie->cap_info) & 178 (own_cap.cap | ~(IEEE80211_HT_CAP_LDPC_CODING | 189 if (!(own_cap.cap & IEEE80211_HT_CAP_TX_STBC)) 190 ht_cap.cap &= ~IEEE80211_HT_CAP_RX_STBC; 191 if (!(own_cap.cap & IEEE80211_HT_CAP_RX_STBC)) 192 ht_cap.cap &= ~IEEE80211_HT_CAP_TX_STBC; 243 if (ht_cap.cap [all...] |
/linux-master/drivers/nvdimm/ |
H A D | core.c | 366 enum nvdimm_fwa_capability cap; local 371 cap = nd_desc->fw_ops->capability(nd_desc); 373 switch (cap) { 390 enum nvdimm_fwa_capability cap; local 396 cap = nd_desc->fw_ops->capability(nd_desc); 399 if (cap < NVDIMM_FWA_CAP_QUIESCE) 472 enum nvdimm_fwa_capability cap; local 481 cap = nd_desc->fw_ops->capability(nd_desc); 482 if (cap < NVDIMM_FWA_CAP_QUIESCE)
|
/linux-master/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 634 int cap; local 648 cap = edev->pcie_cap; 649 eeh_ops->read_config(edev, cap + PCI_EXP_SLTSTA, 2, &val); 656 eeh_ops->read_config(edev, cap + PCI_EXP_SLTCAP, 2, &val); 658 eeh_ops->read_config(edev, cap + PCI_EXP_SLTCTL, 2, &val); 663 eeh_ops->write_config(edev, cap + PCI_EXP_SLTCTL, 2, val); 669 eeh_ops->read_config(edev, cap + PCI_EXP_LNKCTL, 2, &val); 671 eeh_ops->write_config(edev, cap + PCI_EXP_LNKCTL, 2, val); 686 eeh_ops->read_config(edev, cap + PCI_EXP_LNKSTA, 2, &val);
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-vbi-cap.c | 3 * vivid-vbi-cap.c - vbi capture support functions. 14 #include "vivid-kthread-cap.h" 15 #include "vivid-vbi-cap.h" 326 int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap) argument 335 cap->type != V4L2_BUF_TYPE_SLICED_VBI_CAPTURE) 340 cap->type != V4L2_BUF_TYPE_SLICED_VBI_OUTPUT) 344 cap->service_set = is_60hz ? V4L2_SLICED_CAPTION_525 : 347 cap->service_lines[0][21] = V4L2_SLICED_CAPTION_525; 348 cap->service_lines[1][21] = V4L2_SLICED_CAPTION_525; 353 cap [all...] |
/linux-master/arch/arm64/include/asm/ |
H A D | cpufeature.h | 301 * capability to be advertised by cpus_have_*cap()! 351 void (*cpu_enable)(const struct arm64_cpu_capabilities *cap); 389 static inline int cpucap_default_scope(const struct arm64_cpu_capabilities *cap) argument 391 return cap->type & ARM64_CPUCAP_SCOPE_MASK; 433 #define for_each_available_cap(cap) \ 434 for_each_set_bit(cap, system_cpucaps, ARM64_NCAPS) 436 bool this_cpu_has_cap(unsigned int cap); 533 cpuid_feature_cap_perfmon_field(u64 features, int field, u64 cap) argument 542 if (val > cap) { 544 features |= (cap << fiel [all...] |
/linux-master/drivers/media/firewire/ |
H A D | firedtv-ci.c | 46 struct ca_caps *cap = arg; local 48 cap->slot_num = 1; 49 cap->slot_type = CA_CI; 50 cap->descr_num = 1; 51 cap->descr_type = CA_ECD;
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port_common.c | 113 static void mcdi_to_ethtool_linkset(u32 media, u32 cap, unsigned long *linkset) argument 122 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) 124 if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) 126 if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) 134 if (cap & (1 << MC_CMD_PHY_CAP_1000FDX_LBN)) { 138 if (cap & (1 << MC_CMD_PHY_CAP_10000FDX_LBN)) { 143 if (cap & (1 << MC_CMD_PHY_CAP_40000FDX_LBN)) { 147 if (cap & (1 << MC_CMD_PHY_CAP_100000FDX_LBN)) { 151 if (cap & (1 << MC_CMD_PHY_CAP_25000FDX_LBN)) { 155 if (cap [all...] |
/linux-master/tools/power/x86/intel-speed-select/ |
H A D | hfi-events.c | 202 struct nlattr *cap; local 206 nla_for_each_nested(cap, attrs[THERMAL_GENL_ATTR_CPU_CAPABILITY], j) { 209 perf_cap.cpu = nla_get_u32(cap); 212 perf_cap.perf = nla_get_u32(cap); 215 perf_cap.eff = nla_get_u32(cap);
|
/linux-master/sound/soc/sof/intel/ |
H A D | hda-ctrl.c | 61 u32 cap, offset, feature; local 82 cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset); 84 if (cap == -1) { 89 feature = (cap & SOF_HDA_CAP_ID_MASK) >> SOF_HDA_CAP_ID_OFF; 126 offset = cap & SOF_HDA_CAP_NEXT_MASK;
|
/linux-master/kernel/sched/ |
H A D | cpudeadline.c | 123 unsigned long cap, max_cap = 0; local 134 cap = arch_scale_cpu_capacity(cpu); 136 if (cap > max_cap || 137 (cpu == task_cpu(p) && cap == max_cap)) { 138 max_cap = cap;
|