Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 11 of 11) sorted by relevance

/pciutils/
H A Dls-caps.c28 FLAG(cap, PCI_PM_CAP_DSI), in cap_pm()
29 FLAG(cap, PCI_PM_CAP_D1), in cap_pm()
30 FLAG(cap, PCI_PM_CAP_D2), in cap_pm()
81 ver = (cap >> 4) & 0x0f; in cap_agp()
82 rev = cap & 0x0f; in cap_agp()
780 if (sta > cap) in link_compare()
782 if (sta == cap) in link_compare()
1577 cap_slotid(int cap) in cap_slotid() argument
1580 int chs = cap >> 8; in cap_slotid()
1636 printf("SATA HBA v%d.%d", BITS(cap, 4, 4), BITS(cap, 0, 4)); in cap_sata_hba()
[all …]
H A Dls-caps-vendor.c17 show_vendor_caps_virtio(struct device *d, int where, int cap) in show_vendor_caps_virtio() argument
19 int length = BITS(cap, 0, 8); in show_vendor_caps_virtio()
20 int type = BITS(cap, 8, 8); in show_vendor_caps_virtio()
84 int length = BITS(cap, 0, 8); in show_vendor_caps_intel()
85 int version = BITS(cap, 8, 4); in show_vendor_caps_intel()
86 int type = BITS(cap, 12, 4); in show_vendor_caps_intel()
240 return show_vendor_caps_virtio(d, where, cap); in do_show_vendor_caps()
243 return show_vendor_caps_intel(d, where, cap); in do_show_vendor_caps()
249 show_vendor_caps(struct device *d, int where, int cap) in show_vendor_caps() argument
252 if (!do_show_vendor_caps(d, where, cap)) in show_vendor_caps()
[all …]
H A Dsetpci.c125 struct pci_cap *cap; in exec_op() local
128 if (cap) in exec_op()
129 addr = cap->addr; in exec_op()
267 unsigned int cap; member
413 if (r->cap >= 0x20000) in dump_registers()
415 else if (r->cap) in dump_registers()
615 unsigned int cap; in parse_register() local
641 if (parse_x32(base+3, NULL, &cap) > 0 && cap < 0x100) in parse_register()
644 op->cap_id = cap; in parse_register()
651 if (parse_x32(base+4, NULL, &cap) > 0 && cap < 0x1000) in parse_register()
[all …]
H A Dls-ecaps.c785 u32 cap = get_conf_long(d, where + PCI_32GT_CAP); in cap_phy_32gt() local
791 FLAG(cap, PCI_32GT_CAP_EQU_BYPASS), in cap_phy_32gt()
792 FLAG(cap, PCI_32GT_CAP_NO_EQU_NEEDED), in cap_phy_32gt()
793 FLAG(cap, PCI_32GT_CAP_MOD_TS_MODE_0), in cap_phy_32gt()
794 FLAG(cap, PCI_32GT_CAP_MOD_TS_MODE_1), in cap_phy_32gt()
795 FLAG(cap, PCI_32GT_CAP_MOD_TS_MODE_2)); in cap_phy_32gt()
H A Dlspci.h75 void show_vendor_caps(struct device *d, int where, int cap);
H A DChangeLog999 * tests/cap-MSI-mapping: Added a test case. I plan to add test cases
1451 * lspci.c (show_msix), lib/header.h: Added dumping of MSI-X cap.
1459 * lspci.c (show_express): Added dumping of PCI Express cap.
/pciutils/lib/
H A Dcaps.c18 struct pci_cap *cap = pci_malloc(d->access, sizeof(*cap)); in pci_add_cap() local
21 d->last_cap->next = cap; in pci_add_cap()
23 d->first_cap = cap; in pci_add_cap()
24 d->last_cap = cap; in pci_add_cap()
25 cap->next = NULL; in pci_add_cap()
26 cap->addr = addr; in pci_add_cap()
27 cap->id = id; in pci_add_cap()
28 cap->type = type; in pci_add_cap()
100 struct pci_cap *cap; in pci_free_caps() local
102 while (cap = d->first_cap) in pci_free_caps()
[all …]
H A Dgeneric.c99 struct pci_cap *cap; in pci_generic_fill_info() local
125 cap = pci_find_cap(d, PCI_CAP_ID_SSVID, PCI_CAP_NORMAL); in pci_generic_fill_info()
126 if (cap) in pci_generic_fill_info()
128 d->subsys_vendor_id = pci_read_word(d, cap->addr + PCI_SSVID_VENDOR); in pci_generic_fill_info()
129 d->subsys_id = pci_read_word(d, cap->addr + PCI_SSVID_DEVICE); in pci_generic_fill_info()
/pciutils/lmr/
H A Dmargin_hw.c40 struct pci_cap *cap = pci_find_cap(dev, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in margin_port_is_down() local
41 if (!cap) in margin_port_is_down()
44 u8 dir = GET_REG_MASK(pci_read_word(dev, cap->addr + PCI_EXP_FLAGS), PCI_EXP_FLAGS_TYPE); in margin_port_is_down()
57 struct pci_cap *cap = pci_find_cap(dev, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in margin_find_pair() local
58 if (!cap) in margin_find_pair()
85 struct pci_cap *cap = pci_find_cap(down_port, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in margin_verify_link() local
86 if (!cap) in margin_verify_link()
88 if ((pci_read_word(down_port, cap->addr + PCI_EXP_LNKSTA) & PCI_EXP_LNKSTA_SPEED) < 4) in margin_verify_link()
90 if ((pci_read_word(down_port, cap->addr + PCI_EXP_LNKSTA) & PCI_EXP_LNKSTA_SPEED) > 5) in margin_verify_link()
115 struct pci_cap *cap = pci_find_cap(dev, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in fill_dev_wrapper() local
[all …]
H A Dmargin_args.c279 struct pci_cap *cap = pci_find_cap(down, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in margin_parse_util_args() local
280 if (!cap) in margin_parse_util_args()
H A Dmargin.c432 struct pci_cap *cap = pci_find_cap(dev, PCI_CAP_ID_EXP, PCI_CAP_NORMAL); in margin_read_params() local
433 if (!cap) in margin_read_params()