Lines Matching refs:mod
37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn)
42 if ((hbdid = did_create(mod, bn, 0, hbi, NO_RC, TRUST_BDF)) == NULL)
44 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL)
46 if (topo_mod_enumerate(mod,
56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn)
62 if ((hbdid = did_create(mod, bn, 0, hbi, hbi, TRUST_BDF)) == NULL)
64 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL)
66 if ((rc = pciexrc_declare(mod, hb, bn, hbi)) == NULL)
68 if (topo_mod_enumerate(mod,
80 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn)
87 devtree = topo_mod_devinfo(mod);
89 topo_mod_dprintf(mod, "devinfo init failed.");
96 if (hb_process(mod, ptn, hbcnt, pnode) < 0) {
99 return (topo_mod_seterrno(mod, EMOD_PARTIAL_ENUM));
112 if (hb_process(mod, ptn, hbcnt, cnode) < 0) {
116 return (topo_mod_seterrno(mod,
122 if (rc_process(mod, ptn, hbcnt, cnode) < 0) {
126 return (topo_mod_seterrno(mod,
139 platform_hb_enum(topo_mod_t *mod, tnode_t *parent, const char *name,
142 return (pci_hostbridges_find(mod, parent));
147 platform_hb_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, nvlist_t **out)
149 return (labelmethod_inherit(mod, node, in, out));