/linux-master/drivers/pci/ |
H A D | vc.c | 192 u8 *buf = save_state ? (u8 *)save_state->cap.data : NULL; 195 if (buf && save_state->cap.size != 276 u32 cap; local 280 (i * PCI_CAP_VC_PER_VC_SIZEOF), &cap); 281 parb_offset = FIELD_GET(PCI_VC_RES_CAP_ARB_OFF, cap) * 16; 285 if (cap & PCI_VC_RES_CAP_256_PHASE) 287 else if (cap & (PCI_VC_RES_CAP_128_PHASE | 290 else if (cap & PCI_VC_RES_CAP_64_PHASE) 292 else if (cap & PCI_VC_RES_CAP_32_PHASE)
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | eeprom.c | 167 phy->mt76->cap.has_5ghz = true; 170 phy->mt76->cap.has_6ghz = true; 173 phy->mt76->cap.has_5ghz = true; 174 phy->mt76->cap.has_6ghz = true; 177 phy->mt76->cap.has_2ghz = true; 186 phy->mt76->cap.has_5ghz = true; 189 phy->mt76->cap.has_2ghz = true; 192 phy->mt76->cap.has_2ghz = true; 193 phy->mt76->cap.has_5ghz = true;
|
/linux-master/drivers/power/supply/ |
H A D | sc27xx_fuel_gauge.c | 126 int cap, bool int_mode); 127 static void sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap); 154 int ret, status, cap, mode; local 166 cap = status & SC27XX_FGU_CAP_AREA_MASK; 173 if (mode == SC27XX_FGU_FIRST_POWERTON || cap == SC27XX_FGU_DEFAULT_CAP) 224 static int sc27xx_fgu_save_last_cap(struct sc27xx_fgu_data *data, int cap) argument 245 SC27XX_FGU_CAP_AREA_MASK, cap); 267 static int sc27xx_fgu_read_last_cap(struct sc27xx_fgu_data *data, int *cap) argument 276 *cap = value & SC27XX_FGU_CAP_AREA_MASK; 286 static int sc27xx_fgu_get_boot_capacity(struct sc27xx_fgu_data *data, int *cap) argument 423 sc27xx_fgu_get_capacity(struct sc27xx_fgu_data *data, int *cap) argument 775 sc27xx_fgu_adjust_cap(struct sc27xx_fgu_data *data, int cap) argument 785 sc27xx_fgu_capacity_calibration(struct sc27xx_fgu_data *data, int cap, bool int_mode) argument 878 int ret, cap; local [all...] |
/linux-master/fs/ceph/ |
H A D | metric.c | 21 struct ceph_metric_cap *cap; local 48 len = sizeof(*head) + sizeof(*cap) + sizeof(*read) + sizeof(*write) 62 /* encode the cap metric */ 63 cap = (struct ceph_metric_cap *)(head + 1); 64 cap->header.type = cpu_to_le32(CLIENT_METRIC_TYPE_CAP_INFO); 65 cap->header.ver = 1; 66 cap->header.compat = 1; 67 cap->header.data_len = cpu_to_le32(sizeof(*cap) - header_len); 68 cap [all...] |
/linux-master/security/ |
H A D | commoncap.c | 56 * @cap: The capability to check for 68 int cap, unsigned int opts) 79 return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM; 356 static bool is_v2header(int size, const struct vfs_cap_data *cap) argument 360 return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_2; 363 static bool is_v3header(int size, const struct vfs_cap_data *cap) argument 367 return sansflags(le32_to_cpu(cap->magic_etc)) == VFS_CAP_REVISION_3; 391 struct vfs_cap_data *cap; local 410 cap = (struct vfs_cap_data *) tmpbuf; 411 if (is_v2header(size, cap)) { 67 cap_capable(const struct cred *cred, struct user_namespace *targ_ns, int cap, unsigned int opts) argument 506 validheader(size_t size, const struct vfs_cap_data *cap) argument 535 const struct vfs_cap_data *cap = *ivalue; local 1235 cap_prctl_drop(unsigned long cap) argument [all...] |
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_dspp.c | 38 base = ctx->cap->sblk->pcc.base; 91 c->cap = cfg; 92 _setup_dspp_ops(c, c->cap->features);
|
H A D | dpu_hw_sspp.c | 175 const struct dpu_sspp_sub_blks *sblk = ctx->cap->sblk; 178 if (!test_bit(DPU_SSPP_SCALER_QSEED2, &ctx->cap->features) || 179 !test_bit(DPU_SSPP_CSC, &ctx->cap->features)) 195 const struct dpu_sspp_sub_blks *sblk = ctx->cap->sblk; 315 if (test_bit(DPU_SSPP_CSC, &ctx->cap->features)) 318 else if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap->features)) 396 ctx->cap->sblk->scaler_blk.base, 397 ctx->cap->sblk->scaler_blk.version, 509 offset = ctx->cap->sblk->csc_blk.base; 511 if (test_bit(DPU_SSPP_CSC_10BIT, &ctx->cap [all...] |
H A D | dpu_hw_vbif.h | 102 const struct dpu_vbif_cfg *cap; member in struct:dpu_hw_vbif
|
/linux-master/include/uapi/linux/ |
H A D | virtio_pci.h | 133 struct virtio_pci_cap cap; member in struct:virtio_pci_cap64 139 struct virtio_pci_cap cap; member in struct:virtio_pci_notify_cap 185 struct virtio_pci_cap cap; member in struct:virtio_pci_cfg_cap
|
H A D | if_arcnet.h | 125 struct arc_cap cap; member in union:archdr::__anon536
|
/linux-master/drivers/cxl/core/ |
H A D | regs.c | 41 int cap, cap_count; local 63 for (cap = 1; cap <= cap_count; cap++) { 69 hdr = readl(base + cap * 0x4); 96 dev_dbg(dev, "Unknown CM cap ID: %d (0x%x)\n", cap_id, 122 int cap, cap_count; local 134 for (cap = 1; cap <= cap_count; cap [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_common.c | 937 if (nn->cap & NFP_NET_CFG_CTRL_RINGCFG) 1031 if (nn->cap & NFP_NET_CFG_CTRL_RINGCFG) 1478 new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_L2MC; 1488 if (nn->cap & NFP_NET_CFG_CTRL_PROMISC) 2004 new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_RXCSUM_ANY; 2018 new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_LSO2 ?: 2026 new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_RXVLAN_V2 ?: 2034 new_ctrl |= nn->cap & NFP_NET_CFG_CTRL_TXVLAN_V2 ?: 2266 if (!(nn->cap & NFP_NET_CFG_CTRL_VEPA)) 2285 if (!(nn->cap [all...] |
/linux-master/drivers/usb/typec/ |
H A D | class.c | 898 partner->svdm_version = port->cap->svdm_version; 1420 if (port->cap->type != TYPEC_PORT_DRP) { 1452 if (port->cap->type != TYPEC_PORT_DRP) 1479 if (port->cap->data != TYPEC_PORT_DRD) { 1499 if (port->cap->data == TYPEC_PORT_DRD) 1551 if (port->cap->type == TYPEC_PORT_DRP) 1567 if (port->cap->type != TYPEC_PORT_DRP || 1603 if (port->cap->type == TYPEC_PORT_DRP) 1607 return sprintf(buf, "[%s]\n", typec_port_power_roles[port->cap->type]); 1636 if (!port->cap 2189 typec_get_fw_cap(struct typec_capability *cap, struct fwnode_handle *fwnode) argument 2356 typec_register_port(struct device *parent, const struct typec_capability *cap) argument [all...] |
/linux-master/drivers/spi/ |
H A D | spi-fsl-spi.h | 24 __be32 cap; /* TYPE_GRLIB specific */ member in struct:fsl_spi_reg
|
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-vbi-cap.h | 3 * vivid-vbi-cap.h - vbi capture support functions. 22 int vidioc_g_sliced_vbi_cap(struct file *file, void *fh, struct v4l2_sliced_vbi_cap *cap);
|
H A D | vivid-vid-common.h | 34 int vidioc_dv_timings_cap(struct file *file, void *_fh, struct v4l2_dv_timings_cap *cap);
|
/linux-master/drivers/dma/dw/ |
H A D | of.c | 23 dma_cap_mask_t cap; local 42 dma_cap_zero(cap); 43 dma_cap_set(DMA_SLAVE, cap); 46 return dma_request_channel(cap, dw_dma_filter, &slave);
|
/linux-master/drivers/media/dvb-frontends/ |
H A D | mxl5xx.h | 25 u32 cap; member in struct:mxl5xx_cfg
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | dcbnl.h | 26 u8 cap; member in struct:mlx5e_dcbx
|
/linux-master/drivers/char/tpm/ |
H A D | tpm1-cmd.c | 344 cap_t cap; local 349 rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, NULL, 350 sizeof(cap.timeout)); 355 rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_TIMEOUT, &cap, 357 sizeof(cap.timeout)); 370 timeout_chip[0] = be32_to_cpu(cap.timeout.a); 371 timeout_chip[1] = be32_to_cpu(cap.timeout.b); 372 timeout_chip[2] = be32_to_cpu(cap.timeout.c); 373 timeout_chip[3] = be32_to_cpu(cap.timeout.d); 417 rc = tpm1_getcap(chip, TPM_CAP_PROP_TIS_DURATION, &cap, 482 tpm1_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap, const char *desc, size_t min_cap_length) argument [all...] |
/linux-master/include/sound/ |
H A D | designware_i2s.h | 31 unsigned int cap; member in struct:i2s_platform_data
|
/linux-master/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_eeprom.c | 78 dev->mphy.cap.has_5ghz = true; 81 dev->mphy.cap.has_2ghz = true; 84 dev->mphy.cap.has_2ghz = true; 85 dev->mphy.cap.has_5ghz = true;
|
/linux-master/tools/testing/selftests/clone3/ |
H A D | clone3_cap_checkpoint_restore.c | 100 struct libcap *cap; local 119 cap = (struct libcap *) caps; 122 cap->data[1].effective |= 1 << (40 - 32); 123 cap->data[1].permitted |= 1 << (40 - 32);
|
/linux-master/drivers/thunderbolt/ |
H A D | Makefile | 4 thunderbolt-objs := nhi.o nhi_ops.o ctl.o tb.o switch.o cap.o path.o tunnel.o eeprom.o
|
/linux-master/tools/testing/selftests/capabilities/ |
H A D | validate_cap.c | 2 #include <cap-ng.h>
|