Lines Matching refs:type
539 int type; in cap_ht() local
551 type = cmd & PCI_HT_CMD_TYP; in cap_ht()
552 switch (type) in cap_ht()
600 printf("HyperTransport: #%02x\n", type >> 11); in cap_ht()
655 static int exp_downstream_port(int type) in exp_downstream_port() argument
657 return type == PCI_EXP_TYPE_ROOT_PORT || in exp_downstream_port()
658 type == PCI_EXP_TYPE_DOWNSTREAM || in exp_downstream_port()
659 type == PCI_EXP_TYPE_PCIE_BRIDGE; /* PCI/PCI-X to PCIe Bridge */ in exp_downstream_port()
690 static void cap_express_dev(struct device *d, int where, int type) in cap_express_dev() argument
699 if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END)) in cap_express_dev()
705 if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || in cap_express_dev()
706 (type == PCI_EXP_TYPE_UPSTREAM) || (type == PCI_EXP_TYPE_PCI_BRIDGE)) in cap_express_dev()
712 …if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_ROO… in cap_express_dev()
715 if ((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_UPSTREAM) || in cap_express_dev()
716 (type == PCI_EXP_TYPE_PCI_BRIDGE)) in cap_express_dev()
736 if (type == PCI_EXP_TYPE_PCI_BRIDGE) in cap_express_dev()
738 …if (((type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_RO… in cap_express_dev()
778 static char *link_compare(int type, int sta, int cap) in link_compare() argument
784 if ((type == PCI_EXP_TYPE_ROOT_PORT) || (type == PCI_EXP_TYPE_DOWNSTREAM) || in link_compare()
785 (type == PCI_EXP_TYPE_PCIE_BRIDGE)) in link_compare()
813 static void cap_express_link(struct device *d, int where, int type) in cap_express_link() argument
845 if ((type == PCI_EXP_TYPE_ROOT_PORT) || (type == PCI_EXP_TYPE_ENDPOINT) || in cap_express_link()
846 (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_PCI_BRIDGE)) in cap_express_link()
863 link_compare(type, sta_speed, cap_speed), in cap_express_link()
865 link_compare(type, sta_width, cap_width)); in cap_express_link()
954 static const char *cap_express_dev2_timeout_range(int type) in cap_express_dev2_timeout_range() argument
957 switch (type) in cap_express_dev2_timeout_range()
980 static const char *cap_express_dev2_timeout_value(int type) in cap_express_dev2_timeout_value() argument
983 switch (type) in cap_express_dev2_timeout_value()
1104 static void cap_express_dev2(struct device *d, int where, int type) in cap_express_dev2() argument
1134 if (type == PCI_EXP_TYPE_ROOT_PORT) in cap_express_dev2()
1138 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_ENDPOINT) in cap_express_dev2()
1141 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_DOWNSTREAM) in cap_express_dev2()
1145 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_UPSTREAM || in cap_express_dev2()
1146 type == PCI_EXP_TYPE_DOWNSTREAM || has_mem_bar) in cap_express_dev2()
1149 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_UPSTREAM || in cap_express_dev2()
1150 type == PCI_EXP_TYPE_DOWNSTREAM) in cap_express_dev2()
1152 if (type == PCI_EXP_TYPE_ROOT_PORT || has_mem_bar) in cap_express_dev2()
1164 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_DOWNSTREAM) in cap_express_dev2()
1168 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_UPSTREAM || in cap_express_dev2()
1169 type == PCI_EXP_TYPE_DOWNSTREAM || type == PCI_EXP_TYPE_ENDPOINT || in cap_express_dev2()
1170 type == PCI_EXP_TYPE_ROOT_INT_EP || type == PCI_EXP_TYPE_LEG_END) in cap_express_dev2()
1173 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_ENDPOINT || in cap_express_dev2()
1174 type == PCI_EXP_TYPE_ROOT_INT_EP || type == PCI_EXP_TYPE_LEG_END) in cap_express_dev2()
1176 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_UPSTREAM || in cap_express_dev2()
1177 type == PCI_EXP_TYPE_DOWNSTREAM) in cap_express_dev2()
1217 static const char *cap_express_link2_speed(int type) in cap_express_link2_speed() argument
1219 switch (type) in cap_express_link2_speed()
1241 static const char *cap_express_link2_deemphasis(int type) in cap_express_link2_deemphasis() argument
1243 switch (type) in cap_express_link2_deemphasis()
1254 static const char *cap_express_link2_compliance_preset(int type) in cap_express_link2_compliance_preset() argument
1256 switch (type) in cap_express_link2_compliance_preset()
1283 static const char *cap_express_link2_transmargin(int type) in cap_express_link2_transmargin() argument
1285 switch (type) in cap_express_link2_transmargin()
1335 static void cap_express_link2(struct device *d, int where, int type) in cap_express_link2() argument
1340 if (!((type == PCI_EXP_TYPE_ENDPOINT || type == PCI_EXP_TYPE_LEG_END) && in cap_express_link2()
1359 if (type == PCI_EXP_TYPE_DOWNSTREAM) in cap_express_link2()
1386 if (exp_downstream_port(type) && (l & PCI_EXP_LNKCAP2_DRS)) { in cap_express_link2()
1465 int type = (cap & PCI_EXP_FLAGS_TYPE) >> 4; in cap_express() local
1473 switch (type) in cap_express()
1509 printf("Unknown type %d", type); in cap_express()
1518 return type; in cap_express()
1523 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_ROOT_EC) in cap_express()
1526 return type; in cap_express()
1528 cap_express_dev(d, where, type); in cap_express()
1530 cap_express_link(d, where, type); in cap_express()
1536 if (type == PCI_EXP_TYPE_ROOT_PORT || type == PCI_EXP_TYPE_ROOT_EC) in cap_express()
1540 return type; in cap_express()
1546 return type; in cap_express()
1548 cap_express_dev2(d, where, type); in cap_express()
1550 cap_express_link2(d, where, type); in cap_express()
1553 return type; in cap_express()
1810 int type = -1; in show_caps() local
1892 type = cap_express(d, where, cap); in show_caps()
1914 show_ext_caps(d, type); in show_caps()