/linux-master/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | ipsec.c | 51 * HCA cap is enabled 85 void *hca_cap, *query_cap, *cap; local 102 cap = MLX5_ADDR_OF(set_hca_cap_in, hca_cap, capability); 103 memcpy(cap, MLX5_ADDR_OF(query_hca_cap_out, query_cap, capability), 105 MLX5_SET(cmd_hca_cap, cap, ipsec_offload, ipsec_ofld); 125 void *hca_cap, *query_cap, *cap; local 142 cap = MLX5_ADDR_OF(set_hca_cap_in, hca_cap, capability); 143 memcpy(cap, MLX5_ADDR_OF(query_hca_cap_out, query_cap, capability), 148 MLX5_SET(ipsec_cap, cap, ipsec_crypto_offload, enable); 151 MLX5_SET(ipsec_cap, cap, ipsec_full_offloa 176 void *hca_cap, *query_cap, *cap; local [all...] |
/linux-master/drivers/usb/typec/ |
H A D | pd.c | 395 static int add_pdo(struct usb_power_delivery_capabilities *cap, u32 pdo, int position) argument 412 dev_warn(&cap->dev, "Unknown APDO type. PDO 0x%08x\n", pdo); 417 if (is_source(cap->role)) 424 if (is_source(cap->role)) 432 p->dev.parent = &cap->dev; 483 struct usb_power_delivery_capabilities *cap; local 487 cap = kzalloc(sizeof(*cap), GFP_KERNEL); 488 if (!cap) 491 cap 520 usb_power_delivery_unregister_capabilities(struct usb_power_delivery_capabilities *cap) argument [all...] |
H A D | wusb3801.c | 87 struct typec_capability cap; member in struct:wusb3801 108 if (wusb3801->cap.prefer_role == TYPEC_SOURCE) 215 wusb3801_map_try_role(wusb3801->cap.prefer_role) | 350 ret = typec_get_fw_cap(&wusb3801->cap, connector); 353 wusb3801->port_type = wusb3801->cap.type; 369 wusb3801->cap.revision = USB_TYPEC_REV_1_2; 370 wusb3801->cap.accessory[0] = TYPEC_ACCESSORY_AUDIO; 371 wusb3801->cap.accessory[1] = TYPEC_ACCESSORY_DEBUG; 372 wusb3801->cap.orientation_aware = true; 373 wusb3801->cap [all...] |
/linux-master/include/media/ |
H A D | v4l2-dv-timings.h | 43 * @cap: the v4l2_dv_timings_cap capabilities. 52 const struct v4l2_dv_timings_cap *cap, 61 * @cap: the v4l2_dv_timings_cap capabilities. 73 const struct v4l2_dv_timings_cap *cap, 81 * @cap: the v4l2_dv_timings_cap capabilities. 96 const struct v4l2_dv_timings_cap *cap,
|
/linux-master/drivers/media/pci/zoran/ |
H A D | zr36016.c | 214 struct vfe_settings *cap, struct vfe_polarity *pol) 221 cap->x, cap->y, cap->width, cap->height, 222 cap->decimation); 229 ptr->width = cap->width; 230 ptr->height = cap->height; 239 ptr->xoff = (norm->h_start ? norm->h_start : 1) + cap->x; 246 ptr->yoff = norm->v_start + cap 213 zr36016_set_video(struct videocodec *codec, const struct tvnorm *norm, struct vfe_settings *cap, struct vfe_polarity *pol) argument [all...] |
/linux-master/arch/arm64/include/asm/ |
H A D | spectre.h | 85 bool has_spectre_v2(const struct arm64_cpu_capabilities *cap, int scope); 88 bool has_spectre_v3a(const struct arm64_cpu_capabilities *cap, int scope); 92 bool has_spectre_v4(const struct arm64_cpu_capabilities *cap, int scope);
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | gsi.c | 56 wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; 112 kcalloc(attr->cap.max_send_wr, sizeof(*gsi->outstanding_wrs), 128 gsi->cap = attr->cap; 131 gsi->cq = ib_alloc_cq(pd->device, gsi, attr->cap.max_send_wr, 0, 143 hw_init_attr.cap.max_send_wr = 0; 144 hw_init_attr.cap.max_send_sge = 0; 145 hw_init_attr.cap.max_inline_data = 0; 207 .cap = { 208 .max_send_wr = gsi->cap [all...] |
/linux-master/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_hw_dspp.h | 56 * @cap: Pointer to layer_cfg 65 const struct dpu_dspp_cfg *cap; member in struct:dpu_hw_dspp
|
/linux-master/drivers/usb/typec/ucsi/ |
H A D | ucsi.c | 345 override = !!(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_OVERRIDE); 459 max_altmodes = con->ucsi->cap.num_alt_modes; 530 if (!(con->ucsi->cap.features & UCSI_CAP_ALT_MODE_DETAILS)) 540 max_altmodes = con->ucsi->cap.num_alt_modes; 803 struct usb_power_delivery_desc desc = { con->ucsi->cap.pd_version }; 805 struct usb_power_delivery_capabilities *cap; local 821 cap = usb_power_delivery_register_capabilities(con->partner_pd, &caps); 822 if (IS_ERR(cap)) 823 return PTR_ERR(cap); 825 con->partner_source_caps = cap; 1483 struct typec_capability *cap = &con->typec_cap; local [all...] |
/linux-master/drivers/net/ethernet/netronome/nfp/bpf/ |
H A D | main.c | 29 return nn->cap & NFP_NET_CFG_CTRL_BPF && 209 struct nfp_bpf_cap_tlv_adjust_head __iomem *cap = value; local 212 if (length < sizeof(*cap)) { 217 bpf->adjust_head.flags = readl(&cap->flags); 218 bpf->adjust_head.off_min = readl(&cap->off_min); 219 bpf->adjust_head.off_max = readl(&cap->off_max); 220 bpf->adjust_head.guaranteed_sub = readl(&cap->guaranteed_sub); 221 bpf->adjust_head.guaranteed_add = readl(&cap->guaranteed_add); 240 struct nfp_bpf_cap_tlv_func __iomem *cap = value; local 242 if (length < sizeof(*cap)) { 268 struct nfp_bpf_cap_tlv_maps __iomem *cap = value; local [all...] |
/linux-master/drivers/thunderbolt/ |
H A D | debugfs.c | 1094 struct tb_port *port, unsigned int cap, 1103 ret = tb_port_read(port, &data, TB_CFG_PORT, cap + offset + i, 1); 1105 ret = tb_sw_read(sw, &data, TB_CFG_SWITCH, cap + offset + i, 1); 1107 seq_printf(s, "0x%04x <not accessible>\n", cap + offset + i); 1111 seq_printf(s, "0x%04x %4d 0x%02x 0x%02x 0x%08x\n", cap + offset + i, 1117 struct tb_port *port, unsigned int cap, u8 cap_id, 1127 ret = tb_port_read(port, data, TB_CFG_PORT, cap + offset, 1130 ret = tb_sw_read(sw, data, TB_CFG_SWITCH, cap + offset, dwords); 1132 cap_show_by_dw(s, sw, port, cap, offset, cap_id, vsec_id, length); 1138 cap 1093 cap_show_by_dw(struct seq_file *s, struct tb_switch *sw, struct tb_port *port, unsigned int cap, unsigned int offset, u8 cap_id, u8 vsec_id, int dwords) argument 1116 cap_show(struct seq_file *s, struct tb_switch *sw, struct tb_port *port, unsigned int cap, u8 cap_id, u8 vsec_id, int length) argument 1147 port_cap_show(struct tb_port *port, struct seq_file *s, unsigned int cap) argument 1232 int cap; local 1288 switch_cap_show(struct tb_switch *sw, struct seq_file *s, unsigned int cap) argument 1330 int cap; local [all...] |
/linux-master/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 180 * "performance" changes hwp_min to cap.highest 181 * All others leave it at cap.lowest 199 * "power" changes hwp_max to cap.lowest 200 * All others leave it at cap.highest 769 void print_hwp_cap(int cpu, struct msr_hwp_cap *cap, char *str) argument 775 cap->lowest, cap->efficient, cap->guaranteed, cap->highest); 777 void read_hwp_cap(int cpu, struct msr_hwp_cap *cap, unsigne argument 895 struct msr_hwp_cap cap; local 1035 check_hwp_request_v_hwp_capabilities(int cpu, struct msr_hwp_request *req, struct msr_hwp_cap *cap) argument 1080 struct msr_hwp_cap cap; local 1125 struct msr_hwp_cap cap; local [all...] |
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_qp.c | 18 static int rxe_qp_chk_cap(struct rxe_dev *rxe, struct ib_qp_cap *cap, argument 21 if (cap->max_send_wr > rxe->attr.max_qp_wr) { 23 cap->max_send_wr, rxe->attr.max_qp_wr); 27 if (cap->max_send_sge > rxe->attr.max_send_sge) { 29 cap->max_send_sge, rxe->attr.max_send_sge); 34 if (cap->max_recv_wr > rxe->attr.max_qp_wr) { 36 cap->max_recv_wr, rxe->attr.max_qp_wr); 40 if (cap->max_recv_sge > rxe->attr.max_recv_sge) { 42 cap->max_recv_sge, rxe->attr.max_recv_sge); 47 if (cap 61 struct ib_qp_cap *cap = &init->cap; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | fs_core.h | 360 #define MLX5_CAP_FLOWTABLE_TYPE(mdev, cap, type) ( \ 361 (type == FS_FT_NIC_RX) ? MLX5_CAP_FLOWTABLE_NIC_RX(mdev, cap) : \ 362 (type == FS_FT_NIC_TX) ? MLX5_CAP_FLOWTABLE_NIC_TX(mdev, cap) : \ 363 (type == FS_FT_ESW_EGRESS_ACL) ? MLX5_CAP_ESW_EGRESS_ACL(mdev, cap) : \ 364 (type == FS_FT_ESW_INGRESS_ACL) ? MLX5_CAP_ESW_INGRESS_ACL(mdev, cap) : \ 365 (type == FS_FT_FDB) ? MLX5_CAP_ESW_FLOWTABLE_FDB(mdev, cap) : \ 366 (type == FS_FT_SNIFFER_RX) ? MLX5_CAP_FLOWTABLE_SNIFFER_RX(mdev, cap) : \ 367 (type == FS_FT_SNIFFER_TX) ? MLX5_CAP_FLOWTABLE_SNIFFER_TX(mdev, cap) : \ 368 (type == FS_FT_RDMA_RX) ? MLX5_CAP_FLOWTABLE_RDMA_RX(mdev, cap) : \ 369 (type == FS_FT_RDMA_TX) ? MLX5_CAP_FLOWTABLE_RDMA_TX(mdev, cap) [all...] |
/linux-master/include/sound/ |
H A D | hda_chmap.h | 31 struct hdac_cea_channel_speaker_allocation *cap, int channels); 33 struct hdac_cea_channel_speaker_allocation *cap,
|
/linux-master/arch/powerpc/include/asm/ |
H A D | pnv-ocxl.h | 62 int pnv_ocxl_get_tl_cap(struct pci_dev *dev, long *cap, 64 int pnv_ocxl_set_tl_conf(struct pci_dev *dev, long cap,
|
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_metadata.c | 26 struct v4l2_capability *cap) 32 strscpy(cap->driver, "uvcvideo", sizeof(cap->driver)); 33 strscpy(cap->card, stream->dev->name, sizeof(cap->card)); 34 usb_make_path(stream->dev->udev, cap->bus_info, sizeof(cap->bus_info)); 35 cap->capabilities = V4L2_CAP_DEVICE_CAPS | V4L2_CAP_STREAMING 25 uvc_meta_v4l2_querycap(struct file *file, void *fh, struct v4l2_capability *cap) argument
|
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | eeprom.c | 102 u32 cap = 0; local 105 ret = mt7996_mcu_get_chip_config(dev, &cap); 109 if (cap) { 110 dev->has_eht = !(cap & MODE_HE_ONLY); 111 dev->wtbl_size_group = u32_get_bits(cap, WTBL_SIZE_GROUP); 142 phy->mt76->cap.has_2ghz = true; 145 phy->mt76->cap.has_5ghz = true; 148 phy->mt76->cap.has_6ghz = true;
|
/linux-master/drivers/pci/ |
H A D | pci.c | 428 u8 pos, int cap, int *ttl) 444 if (id == cap) 452 u8 pos, int cap) 456 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); 459 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) argument 462 pos + PCI_CAP_LIST_NEXT, cap); 489 * @cap: capability code 494 * support it. Possible values for @cap include: 505 u8 pci_find_capability(struct pci_dev *dev, int cap) argument 511 pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap); 427 __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap, int *ttl) argument 451 __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, u8 pos, int cap) argument 530 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument 555 pci_find_next_ext_capability(struct pci_dev *dev, u16 start, int cap) argument 610 pci_find_ext_capability(struct pci_dev *dev, int cap) argument 653 u8 cap, mask; local 730 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap) argument 1015 u16 cap; local 1633 _pci_find_saved_cap(struct pci_dev *pci_dev, u16 cap, bool extended) argument 1645 pci_find_saved_cap(struct pci_dev *dev, char cap) argument 1650 pci_find_saved_ext_cap(struct pci_dev *dev, u16 cap) argument 1659 u16 *cap; local 1689 u16 *cap; local 1744 u16 *cap; local 1906 struct pci_cap_saved_data cap[]; member in struct:pci_saved_state 1920 struct pci_cap_saved_data *cap; local 1958 struct pci_cap_saved_data *cap; local 3418 _pci_add_cap_save_buffer(struct pci_dev *dev, u16 cap, bool extended, unsigned int size) argument 3444 pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size) argument 3449 pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size) argument 3497 u32 cap; local 3525 u16 cap, ctrl; local 3713 u32 cap; local 3794 u32 cap, ctl2; local 4494 u8 cap; local 5720 int cap; local 5743 int cap; local 5768 int cap; local [all...] |
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/sound/firewire/dice/ |
H A D | dice-extension.c | 93 unsigned int cap; local 100 cap = CLOCK_CAP_RATE_176400 | CLOCK_CAP_RATE_192000; 102 cap = CLOCK_CAP_RATE_88200 | CLOCK_CAP_RATE_96000; 104 cap = CLOCK_CAP_RATE_32000 | CLOCK_CAP_RATE_44100 | 107 if (!(cap & dice->clock_caps))
|
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth-dcb.c | 122 static u8 dpaa2_eth_dcbnl_getcap(struct net_device *net_dev, int capid, u8 *cap) argument 128 *cap = true; 131 *cap = 1 << (dpaa2_eth_tc_count(priv) - 1); 134 *cap = priv->dcbx_mode; 137 *cap = false;
|
/linux-master/drivers/pci/controller/cadence/ |
H A D | pcie-cadence-ep.c | 22 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; local 28 first_vf_offset = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_OFFSET); 29 stride = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_SRIOV_VF_STRIDE); 39 u32 cap = CDNS_PCIE_EP_FUNC_SRIOV_CAP_OFFSET; local 47 reg = cap + PCI_SRIOV_VF_DID; 230 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; local 239 flags = cdns_pcie_ep_fn_readw(pcie, fn, cap + PCI_MSI_FLAGS); 243 cdns_pcie_ep_fn_writew(pcie, fn, cap + PCI_MSI_FLAGS, flags); 252 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; local 258 flags = cdns_pcie_ep_fn_readw(pcie, fn, cap 275 u32 cap = CDNS_PCIE_EP_FUNC_MSIX_CAP_OFFSET; local 296 u32 cap = CDNS_PCIE_EP_FUNC_MSIX_CAP_OFFSET; local 385 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; local 437 u32 cap = CDNS_PCIE_EP_FUNC_MSI_CAP_OFFSET; local 487 u32 cap = CDNS_PCIE_EP_FUNC_MSIX_CAP_OFFSET; local [all...] |
/linux-master/drivers/xen/xen-pciback/ |
H A D | conf_space_capability.c | 34 static inline void register_capability(struct xen_pcibk_config_capability *cap) argument 36 list_add_tail(&cap->cap_list, &capabilities); 42 struct xen_pcibk_config_capability *cap; local 45 list_for_each_entry(cap, &capabilities, cap_list) { 46 cap_offset = pci_find_capability(dev, cap->capability); 49 cap->capability, cap_offset); 57 cap->fields,
|
/linux-master/drivers/net/wireless/marvell/mwifiex/ |
H A D | 11h.c | 30 struct mwifiex_ie_types_pwr_capability *cap; local 42 cap = (struct mwifiex_ie_types_pwr_capability *)*buffer; 43 cap->header.type = cpu_to_le16(WLAN_EID_PWR_CAPABILITY); 44 cap->header.len = cpu_to_le16(2); 45 cap->min_pwr = 0; 46 cap->max_pwr = 0; 47 *buffer += sizeof(*cap);
|