Lines Matching full:where
18 cap_pm(struct device *d, int where, int cap) in cap_pm() argument
37 if (!config_fetch(d, where + PCI_PM_CTRL, PCI_PM_SIZEOF - PCI_PM_CTRL)) in cap_pm()
39 t = get_conf_word(d, where + PCI_PM_CTRL); in cap_pm()
47 b = get_conf_byte(d, where + PCI_PM_PPB_EXTENSIONS); in cap_pm()
74 cap_agp(struct device *d, int where, int cap) in cap_agp() argument
86 if (!config_fetch(d, where + PCI_AGP_STATUS, PCI_AGP_SIZEOF - PCI_AGP_STATUS)) in cap_agp()
88 t = get_conf_long(d, where + PCI_AGP_STATUS); in cap_agp()
105 t = get_conf_long(d, where + PCI_AGP_COMMAND); in cap_agp()
120 cap_pcix_nobridge(struct device *d, int where) in cap_pcix_nobridge() argument
131 if (!config_fetch(d, where + PCI_PCIX_STATUS, 4)) in cap_pcix_nobridge()
134 command = get_conf_word(d, where + PCI_PCIX_COMMAND); in cap_pcix_nobridge()
135 status = get_conf_long(d, where + PCI_PCIX_STATUS); in cap_pcix_nobridge()
159 cap_pcix_bridge(struct device *d, int where) in cap_pcix_bridge() argument
170 if (!config_fetch(d, where + PCI_PCIX_BRIDGE_STATUS, 12)) in cap_pcix_bridge()
173 secstatus = get_conf_word(d, where + PCI_PCIX_BRIDGE_SEC_STATUS); in cap_pcix_bridge()
182 status = get_conf_long(d, where + PCI_PCIX_BRIDGE_STATUS); in cap_pcix_bridge()
193 upstcr = get_conf_long(d, where + PCI_PCIX_BRIDGE_UPSTREAM_SPLIT_TRANS_CTRL); in cap_pcix_bridge()
197 downstcr = get_conf_long(d, where + PCI_PCIX_BRIDGE_DOWNSTREAM_SPLIT_TRANS_CTRL); in cap_pcix_bridge()
204 cap_pcix(struct device *d, int where) in cap_pcix() argument
209 cap_pcix_nobridge(d, where); in cap_pcix()
212 cap_pcix_bridge(d, where); in cap_pcix()
233 cap_ht_pri(struct device *d, int where, int cmd) in cap_ht_pri() argument
242 if (!config_fetch(d, where + PCI_HT_PRI_LCTR0, PCI_HT_PRI_SIZEOF - PCI_HT_PRI_LCTR0)) in cap_ht_pri()
244 rid = get_conf_byte(d, where + PCI_HT_PRI_RID); in cap_ht_pri()
257 lctr0 = get_conf_word(d, where + PCI_HT_PRI_LCTR0); in cap_ht_pri()
275 lcnf0 = get_conf_word(d, where + PCI_HT_PRI_LCNF0); in cap_ht_pri()
293 lctr1 = get_conf_word(d, where + PCI_HT_PRI_LCTR1); in cap_ht_pri()
311 lcnf1 = get_conf_word(d, where + PCI_HT_PRI_LCNF1); in cap_ht_pri()
334 lfrer0 = get_conf_byte(d, where + PCI_HT_PRI_LFRER0); in cap_ht_pri()
342 lfcap0 = get_conf_byte(d, where + PCI_HT_PRI_LFCAP0); in cap_ht_pri()
356 ftr = get_conf_byte(d, where + PCI_HT_PRI_FTR); in cap_ht_pri()
365 lfrer1 = get_conf_byte(d, where + PCI_HT_PRI_LFRER1); in cap_ht_pri()
373 lfcap1 = get_conf_byte(d, where + PCI_HT_PRI_LFCAP1); in cap_ht_pri()
387 eh = get_conf_word(d, where + PCI_HT_PRI_EH); in cap_ht_pri()
406 mbu = get_conf_byte(d, where + PCI_HT_PRI_MBU); in cap_ht_pri()
407 mlu = get_conf_byte(d, where + PCI_HT_PRI_MLU); in cap_ht_pri()
410 bn = get_conf_byte(d, where + PCI_HT_PRI_BN); in cap_ht_pri()
415 cap_ht_sec(struct device *d, int where, int cmd) in cap_ht_sec() argument
425 if (!config_fetch(d, where + PCI_HT_SEC_LCTR, PCI_HT_SEC_SIZEOF - PCI_HT_SEC_LCTR)) in cap_ht_sec()
427 rid = get_conf_byte(d, where + PCI_HT_SEC_RID); in cap_ht_sec()
444 lctr = get_conf_word(d, where + PCI_HT_SEC_LCTR); in cap_ht_sec()
462 lcnf = get_conf_word(d, where + PCI_HT_SEC_LCNF); in cap_ht_sec()
480 lfrer = get_conf_byte(d, where + PCI_HT_SEC_LFRER); in cap_ht_sec()
487 lfcap = get_conf_byte(d, where + PCI_HT_SEC_LFCAP); in cap_ht_sec()
500 ftr = get_conf_word(d, where + PCI_HT_SEC_FTR); in cap_ht_sec()
512 eh = get_conf_word(d, where + PCI_HT_SEC_EH); in cap_ht_sec()
530 mbu = get_conf_byte(d, where + PCI_HT_SEC_MBU); in cap_ht_sec()
531 mlu = get_conf_byte(d, where + PCI_HT_SEC_MLU); in cap_ht_sec()
537 cap_ht(struct device *d, int where, int cmd) in cap_ht() argument
544 cap_ht_pri(d, where, cmd); in cap_ht()
547 cap_ht_sec(d, where, cmd); in cap_ht()
580 if (!config_fetch(d, where + PCI_HT_MSIM_ADDR_LO, 8)) in cap_ht()
582 offl = get_conf_long(d, where + PCI_HT_MSIM_ADDR_LO); in cap_ht()
583 offh = get_conf_long(d, where + PCI_HT_MSIM_ADDR_HI); in cap_ht()
605 cap_msi(struct device *d, int where, int cap) in cap_msi() argument
620 …if (!config_fetch(d, where + PCI_MSI_ADDRESS_LO, (is64 ? PCI_MSI_DATA_64 : PCI_MSI_DATA_32) + 2 - … in cap_msi()
625 t = get_conf_long(d, where + PCI_MSI_ADDRESS_HI); in cap_msi()
626 w = get_conf_word(d, where + PCI_MSI_DATA_64); in cap_msi()
630 w = get_conf_word(d, where + PCI_MSI_DATA_32); in cap_msi()
631 t = get_conf_long(d, where + PCI_MSI_ADDRESS_LO); in cap_msi()
639 if (!config_fetch(d, where + PCI_MSI_MASK_BIT_64, 8)) in cap_msi()
641 mask = get_conf_long(d, where + PCI_MSI_MASK_BIT_64); in cap_msi()
642 pending = get_conf_long(d, where + PCI_MSI_PENDING_64); in cap_msi()
646 if (!config_fetch(d, where + PCI_MSI_MASK_BIT_32, 8)) in cap_msi()
648 mask = get_conf_long(d, where + PCI_MSI_MASK_BIT_32); in cap_msi()
649 pending = get_conf_long(d, where + PCI_MSI_PENDING_32); in cap_msi()
690 static void cap_express_dev(struct device *d, int where, int type) in cap_express_dev() argument
695 t = get_conf_long(d, where + PCI_EXP_DEVCAP); in cap_express_dev()
724 w = get_conf_word(d, where + PCI_EXP_DEVCTL); in cap_express_dev()
745 w = get_conf_word(d, where + PCI_EXP_DEVSTA); in cap_express_dev()
811 static void cap_express_link(struct device *d, int where, int type) in cap_express_link() argument
816 t = get_conf_long(d, where + PCI_EXP_LNKCAP); in cap_express_link()
841 w = get_conf_word(d, where + PCI_EXP_LNKCTL); in cap_express_link()
855 w = get_conf_word(d, where + PCI_EXP_LNKSTA); in cap_express_link()
878 static void cap_express_slot(struct device *d, int where) in cap_express_slot() argument
883 t = get_conf_long(d, where + PCI_EXP_SLTCAP); in cap_express_slot()
899 w = get_conf_word(d, where + PCI_EXP_SLTCTL); in cap_express_slot()
914 w = get_conf_word(d, where + PCI_EXP_SLTSTA); in cap_express_slot()
928 static void cap_express_root(struct device *d, int where) in cap_express_root() argument
932 w = get_conf_word(d, where + PCI_EXP_RTCAP); in cap_express_root()
936 w = get_conf_word(d, where + PCI_EXP_RTCTL); in cap_express_root()
944 w = get_conf_long(d, where + PCI_EXP_RTSTA); in cap_express_root()
1101 static void cap_express_dev2(struct device *d, int where, int type) in cap_express_dev2() argument
1107 l = get_conf_long(d, where + PCI_EXP_DEVCAP2); in cap_express_dev2()
1157 w = get_conf_word(d, where + PCI_EXP_DEVCTL2); in cap_express_dev2()
1330 static void cap_express_link2(struct device *d, int where, int type) in cap_express_link2() argument
1338 l = get_conf_long(d, where + PCI_EXP_LNKCAP2); in cap_express_link2()
1349 w = get_conf_word(d, where + PCI_EXP_LNKCTL2); in cap_express_link2()
1366 w = get_conf_word(d, where + PCI_EXP_LNKSTA2); in cap_express_link2()
1389 static void cap_express_slot2(struct device *d UNUSED, int where UNUSED) in cap_express_slot2()
1457 cap_express(struct device *d, int where, int cap) in cap_express() argument
1514 if (!config_fetch(d, where + PCI_EXP_DEVCAP, size)) in cap_express()
1517 cap_express_dev(d, where, type); in cap_express()
1519 cap_express_link(d, where, type); in cap_express()
1524 cap_express_slot(d, where); in cap_express()
1526 cap_express_root(d, where); in cap_express()
1534 if (!config_fetch(d, where + PCI_EXP_DEVCAP2, size)) in cap_express()
1537 cap_express_dev2(d, where, type); in cap_express()
1539 cap_express_link2(d, where, type); in cap_express()
1541 cap_express_slot2(d, where); in cap_express()
1546 cap_msix(struct device *d, int where, int cap) in cap_msix() argument
1554 if (verbose < 2 || !config_fetch(d, where + PCI_MSIX_TABLE, 8)) in cap_msix()
1557 off = get_conf_long(d, where + PCI_MSIX_TABLE); in cap_msix()
1560 off = get_conf_long(d, where + PCI_MSIX_PBA); in cap_msix()
1578 cap_ssvid(struct device *d, int where) in cap_ssvid() argument
1583 if (!config_fetch(d, where, 8)) in cap_ssvid()
1585 subsys_v = get_conf_word(d, where + PCI_SSVID_VENDOR); in cap_ssvid()
1586 subsys_d = get_conf_word(d, where + PCI_SSVID_DEVICE); in cap_ssvid()
1602 cap_af(struct device *d, int where) in cap_af() argument
1607 if (verbose < 2 || !config_fetch(d, where + PCI_AF_CAP, 3)) in cap_af()
1610 reg = get_conf_byte(d, where + PCI_AF_CAP); in cap_af()
1613 reg = get_conf_byte(d, where + PCI_AF_CTRL); in cap_af()
1615 reg = get_conf_byte(d, where + PCI_AF_STATUS); in cap_af()
1620 cap_sata_hba(struct device *d, int where, int cap) in cap_sata_hba() argument
1626 if (verbose < 2 || !config_fetch(d, where + PCI_SATA_HBA_BARS, 4)) in cap_sata_hba()
1632 bars = get_conf_long(d, where + PCI_SATA_HBA_BARS); in cap_sata_hba()
1675 static void cap_ea(struct device *d, int where, int cap) in cap_ea() argument
1678 int entry_base = where + 4; in cap_ea()
1687 if (!config_fetch(d, where + 4, 2)) { in cap_ea()
1691 fixed_sec = get_conf_byte(d, where + PCI_EA_CAP_TYPE1_SECONDARY); in cap_ea()
1692 fixed_sub = get_conf_byte(d, where + PCI_EA_CAP_TYPE1_SUBORDINATE); in cap_ea()
1796 show_caps(struct device *d, int where) in show_caps() argument
1804 where = get_conf_byte(d, where) & ~3; in show_caps()
1806 while (where) in show_caps()
1810 if (!config_fetch(d, where, 4)) in show_caps()
1815 id = get_conf_byte(d, where + PCI_CAP_LIST_ID); in show_caps()
1816 next = get_conf_byte(d, where + PCI_CAP_LIST_NEXT) & ~3; in show_caps()
1817 cap = get_conf_word(d, where + PCI_CAP_FLAGS); in show_caps()
1818 printf("[%02x] ", where); in show_caps()
1819 if (been_there[where]++) in show_caps()
1835 cap_pm(d, where, cap); in show_caps()
1838 cap_agp(d, where, cap); in show_caps()
1847 cap_msi(d, where, cap); in show_caps()
1853 cap_pcix(d, where); in show_caps()
1857 cap_ht(d, where, cap); in show_caps()
1860 show_vendor_caps(d, where, cap); in show_caps()
1872 cap_ssvid(d, where); in show_caps()
1881 type = cap_express(d, where, cap); in show_caps()
1885 cap_msix(d, where, cap); in show_caps()
1888 cap_sata_hba(d, where, cap); in show_caps()
1891 cap_af(d, where); in show_caps()
1894 cap_ea(d, where, cap); in show_caps()
1899 where = next; in show_caps()