Home
last modified time | relevance | path

Searched refs:ptn (Results 1 – 12 of 12) sorted by relevance

/titanic_50/usr/src/lib/fm/topo/modules/i86pc/hostbridge/
H A Dhb_i86pc.c37 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in hb_process() argument
44 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) in hb_process()
56 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, di_node_t bn) in rc_process() argument
64 if ((hb = pciexhostbridge_declare(mod, ptn, bn, hbi)) == NULL) in rc_process()
80 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) in pci_hostbridges_find() argument
90 topo_node_range_destroy(ptn, HOSTBRIDGE); in pci_hostbridges_find()
96 if (hb_process(mod, ptn, hbcnt, pnode) < 0) { in pci_hostbridges_find()
98 topo_node_range_destroy(ptn, HOSTBRIDGE); in pci_hostbridges_find()
112 if (hb_process(mod, ptn, hbcnt, cnode) < 0) { in pci_hostbridges_find()
114 topo_node_range_destroy(ptn, in pci_hostbridges_find()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4u/hostbridge/
H A Dhb_sun4u.c72 busorrc_process(topo_mod_t *mod, busorrc_t *list, int isrc, tnode_t *ptn) in busorrc_process() argument
110 return (declare_exbuses(mod, list, ptn, hbc, busper)); in busorrc_process()
112 return (declare_buses(mod, list, ptn, hbc)); in busorrc_process()
116 pci_hostbridges_find(topo_mod_t *mod, tnode_t *ptn) in pci_hostbridges_find() argument
127 topo_node_range_destroy(ptn, HOSTBRIDGE); in pci_hostbridges_find()
159 if (busorrc_process(mod, buses, 0, ptn) < 0) in pci_hostbridges_find()
162 if (busorrc_process(mod, rcs, 1, ptn) < 0) in pci_hostbridges_find()
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_xml.c455 tf_info_t *xinfo, tf_pad_t *pad, xmlNodePtr dxn, tnode_t *ptn) in dependent_create() argument
486 if ((np = topo_xml_walk(mp, xinfo, dxn, ptn)) == NULL) { in dependent_create()
503 tf_info_t *xinfo, tf_pad_t *pad, xmlNodePtr pxn, tnode_t *ptn) in dependents_create() argument
510 if (dependent_create(mp, xinfo, pad, cn, ptn) < 0) in dependents_create()
519 nvlist_t *pfmri, tnode_t *ptn, const char *gnm, const char *pnm, in prop_create() argument
585 e = topo_prop_set_int32(ptn, gnm, pnm, flag, i32, &err); in prop_create()
588 e = topo_prop_set_uint32(ptn, gnm, pnm, flag, ui32, &err); in prop_create()
591 e = topo_prop_set_int64(ptn, gnm, pnm, flag, i64, &err); in prop_create()
594 e = topo_prop_set_uint64(ptn, gnm, pnm, flag, ui64, &err); in prop_create()
597 e = topo_prop_set_fmri(ptn, gnm, pnm, flag, fmri, &err); in prop_create()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus.c166 tnode_t *ntn, *ptn; in pciexfn_declare() local
174 ptn = find_predecessor(parent, PCIEX_FUNCTION); in pciexfn_declare()
176 if (ptn == NULL) in pciexfn_declare()
177 ptn = find_predecessor(parent, PCIEX_ROOT); in pciexfn_declare()
178 if (ptn == NULL) in pciexfn_declare()
180 pdn = topo_node_getspecific(ptn); in pciexfn_declare()
632 pciexbus_enum(topo_mod_t *mp, tnode_t *ptn, char *pnm, topo_instance_t min, in pciexbus_enum() argument
644 rc = topo_node_instance(ptn); in pciexbus_enum()
645 if ((hbtn = topo_node_parent(ptn)) != NULL) in pciexbus_enum()
650 if ((pdn = topo_node_getspecific(ptn)) == DI_NODE_NIL) { in pciexbus_enum()
[all …]
/titanic_50/usr/src/lib/fm/topo/modules/sun4/hostbridge/
H A Dhb_sun4.c150 hb_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t hbi, in hb_process() argument
155 if ((hb = pcihostbridge_declare(mod, ptn, bn, hbi)) == NULL) in hb_process()
166 rc_process(topo_mod_t *mod, tnode_t *ptn, topo_instance_t rci, di_node_t bn) in rc_process() argument
170 if ((rc = pciexrc_declare(mod, ptn, bn, rci)) == NULL) in rc_process()
203 declare_exbuses(topo_mod_t *mod, busorrc_t *list, tnode_t *ptn, int nhb, in declare_exbuses() argument
237 hb[br] = pciexhostbridge_declare(mod, ptn, p->br_din, in declare_exbuses()
296 declare_buses(topo_mod_t *mod, busorrc_t *list, tnode_t *ptn, int nhb) in declare_buses() argument
322 hb[br] = hb_process(mod, ptn, br, bus, p->br_din, link); in declare_buses()
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/sppptun/
H A Dsppptun.c385 union ppptun_name ptn; in query_interfaces() local
401 ptn.ptn_index = i; in query_interfaces()
402 if (strioctl(muxfd, PPPTUN_GNNAME, &ptn, sizeof (ptn), in query_interfaces()
403 sizeof (ptn), "PPPTUN_GNNAME") < 0) { in query_interfaces()
408 if (ptn.ptn_name[0] == '\0') in query_interfaces()
410 (void) puts(ptn.ptn_name); in query_interfaces()
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Doptions.c1544 union ppptun_name ptn; in add_new_dev() local
1546 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%s:pppoed", in add_new_dev()
1548 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in add_new_dev()
1549 logerr("PPPTUN_SCTL %s: %s", ptn.ptn_name, mystrerror(errno)); in add_new_dev()
1551 logdbg("added %s", ptn.ptn_name); in add_new_dev()
1562 union ppptun_name ptn; in rem_old_dev() local
1564 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%s:pppoed", in rem_old_dev()
1566 if (strioctl(tunfd, PPPTUN_DCTL, &ptn, sizeof (ptn), 0) < 0) { in rem_old_dev()
1567 logerr("PPPTUN_DCTL %s: %s", ptn.ptn_name, mystrerror(errno)); in rem_old_dev()
1569 logdbg("removed %s", ptn.ptn_name); in rem_old_dev()
[all …]
H A Dpppoed.c260 union ppptun_name ptn; in handle_input() local
361 (void) strncpy(ptn.ptn_name, ptc->ptc_name, sizeof (ptn.ptn_name)); in handle_input()
362 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in handle_input()
363 logerr("PPPTUN_SCTL %s: %s", ptn.ptn_name, mystrerror(errno)); in handle_input()
H A Dpppoec.c378 union ppptun_name ptn; in set_control() local
390 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%s:pppoed", in set_control()
392 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in set_control()
394 ptn.ptn_name, mystrerror(errno)); in set_control()
410 union ppptun_name ptn; in check_stdin() local
412 if (strioctl(0, PPPTUN_GDATA, &ptn, 0, sizeof (ptn)) < 0) { in check_stdin()
420 if (ptn.ptn_name[0] != '\0') { in check_stdin()
1071 union ppptun_name ptn; in act_open() local
1103 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%.*s:pppoe", in act_open()
1105 if (strioctl(tunfd, PPPTUN_SDATA, &ptn, sizeof (ptn), 0) < 0) { in act_open()
[all …]
/titanic_50/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c1113 union ppptun_name *ptn; in sppptun_inner_ioctl() local
1168 iop->ioc_count != sizeof (*ptn) || in sppptun_inner_ioctl()
1174 ptn = (union ppptun_name *)mp->b_cont->b_rptr; in sppptun_inner_ioctl()
1175 ptn->ptn_name[sizeof (ptn->ptn_name) - 1] = '\0'; in sppptun_inner_ioctl()
1177 tll = tll_lookup_on_name(ptn->ptn_name, tll->tll_zoneid); in sppptun_inner_ioctl()
1183 (void) strcpy(tll->tll_name, ptn->ptn_name); in sppptun_inner_ioctl()
1246 ptn = (union ppptun_name *)mp->b_cont->b_rptr; in sppptun_inner_ioctl()
1247 i = ptn->ptn_index; in sppptun_inner_ioctl()
1255 bcopy(tll->tll_name, ptn->ptn_name, in sppptun_inner_ioctl()
1256 sizeof (ptn->ptn_name)); in sppptun_inner_ioctl()
[all …]
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c94 union ppptun_name ptn; in pppoe_check_options() local
112 retv = strioctl(tstfd, PPPTUN_GDATA, &ptn, 0, sizeof (ptn)); in pppoe_check_options()
125 retv = strioctl(0, PPPTUN_GDATA, &ptn, 0, sizeof (ptn)); in pppoe_check_options()
130 if (strcmp(ptn.ptn_name + strlen(ptn.ptn_name) - 6, in pppoe_check_options()
/titanic_50/usr/src/cmd/mdb/common/modules/nsmb/
H A Dnsmb.c510 const smb_passid_t *ptn = data; in pwtree_cb() local
514 if (cbd->uid != (uid_t)-1 && cbd->uid != ptn->uid) { in pwtree_cb()
524 mdb_printf(" %d", (uintptr_t)ptn->uid); in pwtree_cb()
525 print_str((uintptr_t)ptn->srvdom); in pwtree_cb()
526 print_str((uintptr_t)ptn->username); in pwtree_cb()