Home
last modified time | relevance | path

Searched refs:cap_id (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/drivers/i3c/master/mipi-i3c-hci/
H A Dext_caps.c227 u32 cap_id, u32 cap_length) in hci_extcap_vendor_specific() argument
235 vendor_ext_caps[i].cap == cap_id) { in hci_extcap_vendor_specific()
244 cap_id, hci->vendor_mipi_id); in hci_extcap_vendor_specific()
260 u32 cap_header, cap_id, cap_length; in i3c_hci_parse_ext_caps() local
269 cap_id = FIELD_GET(CAP_HEADER_ID, cap_header); in i3c_hci_parse_ext_caps()
277 cap_id, cap_length); in i3c_hci_parse_ext_caps()
282 if (cap_id >= 0xc0 && cap_id <= 0xcf) { in i3c_hci_parse_ext_caps()
284 cap_id, cap_length); in i3c_hci_parse_ext_caps()
290 if (ext_capabilities[i].id == cap_id) { in i3c_hci_parse_ext_caps()
297 "unknown ext_cap 0x%02x\n", cap_id); in i3c_hci_parse_ext_caps()
[all …]
/openbmc/linux/drivers/cxl/core/
H A Dregs.c66 u16 cap_id, offset; in cxl_probe_component_regs() local
71 cap_id = FIELD_GET(CXL_CM_CAP_HDR_ID_MASK, hdr); in cxl_probe_component_regs()
77 switch (cap_id) { in cxl_probe_component_regs()
96 dev_dbg(dev, "Unknown CM cap ID: %d (0x%x)\n", cap_id, in cxl_probe_component_regs()
104 rmap->id = cap_id; in cxl_probe_component_regs()
137 u16 cap_id; in cxl_probe_device_regs() local
139 cap_id = FIELD_GET(CXLDEV_CAP_HDR_CAP_ID_MASK, in cxl_probe_device_regs()
145 switch (cap_id) { in cxl_probe_device_regs()
162 if (cap_id >= 0x8000) in cxl_probe_device_regs()
163 dev_dbg(dev, "Vendor cap ID: %#x offset: %#x\n", cap_id, offset); in cxl_probe_device_regs()
[all …]
/openbmc/linux/include/linux/ceph/
H A Dceph_fs.h535 __le64 ino, cap_id; /* ino and unique cap id */ member
566 __le64 cap_id; member
776 __le64 cap_id; member
802 __le64 cap_id; member
816 __le64 cap_id; member
840 __le64 cap_id; member
850 __le64 cap_id; member
/openbmc/qemu/include/hw/pci/
H A Dpcie.h132 uint16_t pcie_find_capability(PCIDevice *dev, uint16_t cap_id);
134 uint16_t cap_id, uint8_t cap_ver,
H A Dpci.h242 int pci_add_capability(PCIDevice *pdev, uint8_t cap_id,
246 void pci_del_capability(PCIDevice *pci_dev, uint8_t cap_id, uint8_t cap_size);
248 uint8_t pci_find_capability(PCIDevice *pci_dev, uint8_t cap_id);
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c1869 u8 cap_id; in vfio_config_do_rw() local
1890 cap_id = vdev->pci_config_map[*ppos]; in vfio_config_do_rw()
1892 if (cap_id == PCI_CAP_ID_INVALID) { in vfio_config_do_rw()
1895 } else if (cap_id == PCI_CAP_ID_INVALID_VIRT) { in vfio_config_do_rw()
1900 WARN_ON(cap_id > PCI_EXT_CAP_ID_MAX); in vfio_config_do_rw()
1902 perm = &ecap_perms[cap_id]; in vfio_config_do_rw()
1905 WARN_ON(cap_id > PCI_CAP_ID_MAX); in vfio_config_do_rw()
1907 perm = &cap_perms[cap_id]; in vfio_config_do_rw()
1909 if (cap_id == PCI_CAP_ID_MSI) in vfio_config_do_rw()
1912 if (cap_id > PCI_CAP_ID_BASIC) in vfio_config_do_rw()
[all …]
/openbmc/linux/drivers/bcma/
H A Ddriver_pci_host.c275 u8 cap_id; in bcma_find_pci_capability() local
300 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, sizeof(u8)); in bcma_find_pci_capability()
301 while (cap_id != req_cap_id) { in bcma_find_pci_capability()
306 bcma_extpci_read_config(pc, dev, func, cap_ptr, &cap_id, in bcma_find_pci_capability()
/openbmc/qemu/hw/pci/
H A Dpcie.c975 static uint16_t pcie_find_capability_list(PCIDevice *dev, uint32_t cap_id, in pcie_find_capability_list() argument
994 if (PCI_EXT_CAP_ID(header) == cap_id) { in pcie_find_capability_list()
1006 uint16_t pcie_find_capability(PCIDevice *dev, uint16_t cap_id) in pcie_find_capability() argument
1008 return pcie_find_capability_list(dev, cap_id, NULL); in pcie_find_capability()
1026 uint16_t cap_id, uint8_t cap_ver, in pcie_add_capability() argument
1046 pci_set_long(dev->config + offset, PCI_EXT_CAP(cap_id, cap_ver, 0)); in pcie_add_capability()
H A Dpci.c2221 static uint8_t pci_find_capability_list(PCIDevice *pdev, uint8_t cap_id, in pci_find_capability_list() argument
2231 if (pdev->config[next + PCI_CAP_LIST_ID] == cap_id) in pci_find_capability_list()
2430 int pci_add_capability(PCIDevice *pdev, uint8_t cap_id, in pci_add_capability() argument
2454 cap_id, offset, overlapping_cap, i); in pci_add_capability()
2461 config[PCI_CAP_LIST_ID] = cap_id; in pci_add_capability()
2474 void pci_del_capability(PCIDevice *pdev, uint8_t cap_id, uint8_t size) in pci_del_capability() argument
2476 uint8_t prev, offset = pci_find_capability_list(pdev, cap_id, &prev); in pci_del_capability()
2491 uint8_t pci_find_capability(PCIDevice *pdev, uint8_t cap_id) in pci_find_capability() argument
2493 return pci_find_capability_list(pdev, cap_id, NULL); in pci_find_capability()
/openbmc/linux/drivers/usb/host/
H A Dxhci-debugfs.c141 static void xhci_debugfs_extcap_regset(struct xhci_hcd *xhci, int cap_id, in xhci_debugfs_extcap_regset() argument
150 offset = xhci_find_next_ext_cap(base, 0, cap_id); in xhci_debugfs_extcap_regset()
152 if (cap_id == XHCI_EXT_CAPS_PROTOCOL) { in xhci_debugfs_extcap_regset()
160 offset = xhci_find_next_ext_cap(base, offset, cap_id); in xhci_debugfs_extcap_regset()
/openbmc/linux/fs/ceph/
H A Dcaps.c692 WARN_ON(cap->cap_id != cap_id); in ceph_add_cap()
748 cap->cap_id = cap_id; in ceph_add_cap()
1247 fc->cap_id = cpu_to_le64(arg->cid); in encode_cap_msg()
1404 arg->cid = cap->cap_id; in __prep_cap()
3479 WARN_ON(cap->cap_id != le64_to_cpu(grant->cap_id)); in handle_cap_grant()
4002 if (!cap || cap->cap_id != le64_to_cpu(ex->cap_id)) in handle_cap_export()
4028 if (tcap->cap_id == t_cap_id && in handle_cap_export()
4031 tcap->cap_id = t_cap_id; in handle_cap_export()
4119 u64 cap_id = le64_to_cpu(im->cap_id); in handle_cap_import() local
4487 cap->cap_id = le64_to_cpu(h->cap_id); in ceph_handle_caps()
[all …]
H A Dsuper.h180 u64 cap_id; /* unique cap id (mds provided) */ member
1221 struct ceph_mds_session *session, u64 cap_id,
H A Dmds_client.c2314 item->cap_id = cpu_to_le64(cap->cap_id); in ceph_send_cap_releases()
4335 inode, ceph_vinop(inode), cap, cap->cap_id, in reconnect_caps_cb()
4353 rec.v2.cap_id = cpu_to_le64(cap->cap_id); in reconnect_caps_cb()
4361 rec.v1.cap_id = cpu_to_le64(cap->cap_id); in reconnect_caps_cb()
H A Dfile.c651 in.cap.cap_id = cpu_to_le64(1); in ceph_finish_async_create()
/openbmc/linux/drivers/pci/
H A Dpci-bridge-emul.h44 u8 cap_id; member
H A Dpci-bridge-emul.c388 bridge->pcie_conf.cap_id = PCI_CAP_ID_EXP; in pci_bridge_emul_init()
/openbmc/qemu/hw/vfio/
H A Dpci.c2164 uint8_t cap_id, next, size; in vfio_add_std_cap() local
2167 cap_id = pdev->config[pos]; in vfio_add_std_cap()
2206 switch (cap_id) { in vfio_add_std_cap()
2220 ret = pci_add_capability(pdev, cap_id, pos, size, errp) >= 0; in vfio_add_std_cap()
2224 ret = pci_add_capability(pdev, cap_id, pos, size, errp) >= 0; in vfio_add_std_cap()
2230 ret = pci_add_capability(pdev, cap_id, pos, size, errp) >= 0; in vfio_add_std_cap()
2237 cap_id, size, pos); in vfio_add_std_cap()
2295 uint16_t cap_id, next, size; in vfio_add_ext_cap() local
2345 cap_id = PCI_EXT_CAP_ID(header); in vfio_add_ext_cap()
2360 switch (cap_id) { in vfio_add_ext_cap()
[all …]
/openbmc/linux/drivers/pci/controller/dwc/
H A Dpcie-designware-ep.c92 u8 cap_id, next_cap_ptr; in __dw_pcie_ep_find_next_cap() local
101 cap_id = (reg & 0x00ff); in __dw_pcie_ep_find_next_cap()
103 if (cap_id > PCI_CAP_ID_MAX) in __dw_pcie_ep_find_next_cap()
106 if (cap_id == cap) in __dw_pcie_ep_find_next_cap()
H A Dpcie-designware.c212 u8 cap_id, next_cap_ptr; in __dw_pcie_find_next_cap() local
219 cap_id = (reg & 0x00ff); in __dw_pcie_find_next_cap()
221 if (cap_id > PCI_CAP_ID_MAX) in __dw_pcie_find_next_cap()
224 if (cap_id == cap) in __dw_pcie_find_next_cap()
/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_com.h978 enum ena_admin_aq_caps_id cap_id) in ena_com_get_cap() argument
980 return !!(ena_dev->capabilities & BIT(cap_id)); in ena_com_get_cap()
/openbmc/linux/drivers/thunderbolt/
H A Ddebugfs.c1096 unsigned int offset, u8 cap_id, u8 vsec_id, in cap_show_by_dw() argument
1113 offset + i, cap_id, vsec_id, data); in cap_show_by_dw()
1118 struct tb_port *port, unsigned int cap, u8 cap_id, in cap_show() argument
1133 cap_show_by_dw(s, sw, port, cap, offset, cap_id, vsec_id, length); in cap_show()
1140 cap_id, vsec_id, data[i]); in cap_show()
/openbmc/qemu/include/hw/cxl/
H A Dcxl_device.h332 #define cxl_device_cap_init(dstate, reg, cap_id, ver) \ argument
338 CAP_ID, cap_id); \
/openbmc/qemu/hw/xen/
H A Dxen_pt_config_init.c1829 uint8_t cap_id = 0; in xen_pt_ptr_reg_init() local
1844 reg_field + PCI_CAP_LIST_ID, &cap_id); in xen_pt_ptr_reg_init()
1850 if (xen_pt_emu_reg_grps[i].grp_id == cap_id) { in xen_pt_ptr_reg_init()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_dcb.c686 static u8 cxgb4_getcap(struct net_device *dev, int cap_id, u8 *caps) in cxgb4_getcap() argument
690 switch (cap_id) { in cxgb4_getcap()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
H A Dhw.c2280 u8 cap_id = 0xff; in _rtl8821ae_clear_pci_pme_status() local
2294 cap_id = cap_hdr & 0xFF; in _rtl8821ae_clear_pci_pme_status()
2298 cap_pointer, cap_id); in _rtl8821ae_clear_pci_pme_status()
2300 if (cap_id == 0x01) { in _rtl8821ae_clear_pci_pme_status()
2307 cap_id = 0xff; in _rtl8821ae_clear_pci_pme_status()
2313 if (cap_id == 0x01) { in _rtl8821ae_clear_pci_pme_status()

12