Home
last modified time | relevance | path

Searched refs:pip (Results 1 – 25 of 54) sorted by relevance

123

/titanic_41/usr/src/uts/common/sys/
H A Dmdi_impldefs.h225 int (*vo_pi_init)(dev_info_t *vdip, mdi_pathinfo_t *pip, int flags);
228 int (*vo_pi_uninit)(dev_info_t *vdip, mdi_pathinfo_t *pip,
232 int (*vo_pi_state_change)(dev_info_t *vdip, mdi_pathinfo_t *pip,
766 #define MDI_PI_ERRSTAT(pip, x) { \ argument
767 if (MDI_PI((pip))->pi_kstats != NULL) { \
769 pep = MDI_PI(pip)->pi_kstats->pi_kstat_errstats->ks_data; \
790 #define MDI_PI_LOCK(pip) mutex_enter(&MDI_PI(pip)->pi_mutex) argument
791 #define MDI_PI_TRYLOCK(pip) mutex_tryenter(&MDI_PI(pip)->pi_mutex) argument
792 #define MDI_PI_UNLOCK(pip) mutex_exit(&MDI_PI(pip)->pi_mutex) argument
794 #define MDI_PI_LOCKED(pip) MUTEX_HELD(&MDI_PI(pip)->pi_mutex) argument
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dsunmdi.c272 static mdi_pathinfo_t *i_mdi_enable_disable_path(mdi_pathinfo_t *pip,
714 mdi_pathinfo_t *pip; in mdi_phci_unregister() local
756 for (pip = (mdi_pathinfo_t *)ph->ph_path_head; pip; in mdi_phci_unregister()
757 pip = (mdi_pathinfo_t *)MDI_PI(pip)->pi_phci_link) in mdi_phci_unregister()
758 MDI_PI(pip)->pi_phci = NULL; in mdi_phci_unregister()
1052 i_mdi_phci_lock(mdi_phci_t *ph, mdi_pathinfo_t *pip) in i_mdi_phci_lock() argument
1054 if (pip) { in i_mdi_phci_lock()
1058 MDI_PI_HOLD(pip); in i_mdi_phci_lock()
1059 MDI_PI_UNLOCK(pip); in i_mdi_phci_lock()
1061 MDI_PI_LOCK(pip); in i_mdi_phci_lock()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_ldom.c52 pi_ldompri_open(topo_mod_t *mod, pi_enum_t *pip) in pi_ldompri_open() argument
54 if (mod == NULL || pip == NULL) { in pi_ldompri_open()
65 pip->ldomp = ldom_init(pi_alloc, pi_free); in pi_ldompri_open()
66 if (pip->ldomp == NULL) { in pi_ldompri_open()
74 pip->ldom_bufsize = ldom_get_core_md(pip->ldomp, &(pip->ldom_bufp)); in pi_ldompri_open()
75 if (pip->ldom_bufsize < 1) { in pi_ldompri_open()
77 pip->ldom_bufsize); in pi_ldompri_open()
78 ldom_fini(pip->ldomp); in pi_ldompri_open()
84 pip->mdp = md_init_intern(pip->ldom_bufp, pi_alloc, pi_free); in pi_ldompri_open()
85 if (pip->mdp == NULL || in pi_ldompri_open()
[all …]
H A Dpi_walker.c195 pi_walker(pi_enum_t *pip, tnode_t *t_parent, const char *hc_name, in pi_walker() argument
204 if (pip == NULL) { in pi_walker()
207 mod = pip->mod; in pi_walker()
261 result = md_walk_dag(pip->mdp, mde_node, component_cookie, arc_cookie, in pi_walker()
262 pi_walker_node, (void *)pip); in pi_walker()
319 pi_enum_t *pip = (pi_enum_t *)private; in pi_walker_node() local
328 if (pip == NULL) { in pi_walker_node()
331 mod = pip->mod; in pi_walker_node()
333 topo_mod_dprintf(pip->mod, in pi_walker_node()
338 skip = pi_skip_node(mod, pip->mdp, mde_node); in pi_walker_node()
H A Dsun4vpi.c221 pi_enum_components(pi_enum_t *pip, tnode_t *t_parent, const char *hc_name, in pi_enum_components() argument
232 topo_mod_t *mod = pip->mod; in pi_enum_components()
233 md_t *mdp = pip->mdp; in pi_enum_components()
272 result = pi_walker(pip, t_parent, hc_name, in pi_enum_components()
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_provider.c503 dt_probe_instance_t *pip, *pip_next; in dt_probe_destroy() local
517 for (pip = prp->pr_inst; pip != NULL; pip = pip_next) { in dt_probe_destroy()
518 pip_next = pip->pi_next; in dt_probe_destroy()
519 dt_free(dtp, pip->pi_offs); in dt_probe_destroy()
520 dt_free(dtp, pip->pi_enoffs); in dt_probe_destroy()
521 dt_free(dtp, pip); in dt_probe_destroy()
534 dt_probe_instance_t *pip; in dt_probe_define() local
540 for (pip = prp->pr_inst; pip != NULL; pip = pip->pi_next) { in dt_probe_define()
541 if (strcmp(pip->pi_fname, fname) == 0 && in dt_probe_define()
542 ((rname == NULL && pip->pi_rname[0] == '\0') || in dt_probe_define()
[all …]
H A Ddt_program.c85 dtrace_proginfo_t *pip) in dtrace_program_info() argument
91 if (pip == NULL) in dtrace_program_info()
94 bzero(pip, sizeof (dtrace_proginfo_t)); in dtrace_program_info()
97 pip->dpi_descattr = _dtrace_maxattr; in dtrace_program_info()
98 pip->dpi_stmtattr = _dtrace_maxattr; in dtrace_program_info()
100 pip->dpi_descattr = _dtrace_defattr; in dtrace_program_info()
101 pip->dpi_stmtattr = _dtrace_defattr; in dtrace_program_info()
111 pip->dpi_descattr = in dtrace_program_info()
112 dt_attr_min(stp->ds_desc->dtsd_descattr, pip->dpi_descattr); in dtrace_program_info()
114 pip->dpi_stmtattr = in dtrace_program_info()
[all …]
H A Ddt_dof.c402 dt_probe_instance_t *pip; in dof_add_probe() local
436 for (pip = prp->pr_inst; pip != NULL; pip = pip->pi_next) { in dof_add_probe()
437 dt_dprintf("adding probe for %s:%s\n", pip->pi_fname, in dof_add_probe()
440 dofpr.dofpr_func = dof_add_string(ddo, pip->pi_fname); in dof_add_probe()
447 assert(pip->pi_noffs + pip->pi_nenoffs > 0); in dof_add_probe()
451 dofpr.dofpr_noffs = pip->pi_noffs; in dof_add_probe()
452 dt_buf_write(dtp, &ddo->ddo_offs, pip->pi_offs, in dof_add_probe()
453 pip->pi_noffs * sizeof (uint32_t), sizeof (uint32_t)); in dof_add_probe()
457 dofpr.dofpr_nenoffs = pip->pi_nenoffs; in dof_add_probe()
458 dt_buf_write(dtp, &ddo->ddo_enoffs, pip->pi_enoffs, in dof_add_probe()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Dpckt.c212 struct pckt_info *pip; in pcktopen() local
227 pip = kmem_alloc(sizeof (*pip), KM_SLEEP); in pcktopen()
228 bzero(pip, sizeof (*pip)); in pcktopen()
231 pip->model = ddi_model_convert_from(get_udatamodel()); in pcktopen()
237 pip->pi_qptr = q; in pcktopen()
238 q->q_ptr = pip; in pcktopen()
239 WR(q)->q_ptr = pip; in pcktopen()
253 kmem_free(pip, sizeof (*pip)); in pcktopen()
293 struct pckt_info *pip = (struct pckt_info *)q->q_ptr; in pcktclose() local
299 if (pip->pi_bufcall_id) { in pcktclose()
[all …]
H A Dtphci.c486 mdi_pathinfo_t *pip; in tphci_bus_config() local
512 rval = mdi_pi_alloc(parent, cname, guid, paddr, 0, &pip); in tphci_bus_config()
524 mdi_hold_path(pip); in tphci_bus_config()
526 rval = mdi_pi_online(pip, 0); in tphci_bus_config()
528 mdi_rele_path(pip); in tphci_bus_config()
532 (void) mdi_pi_free(pip, 0); in tphci_bus_config()
538 *childp = mdi_pi_get_client(pip); in tphci_bus_config()
552 mdi_pathinfo_t *pip, *next; in tphci_bus_unconfig() local
563 pip = mdi_pi_find(parent, NULL, caddr); in tphci_bus_unconfig()
564 if (pip) { in tphci_bus_unconfig()
[all …]
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/
H A Dos-ip.c119 struct nsldapi_os_statusinfo *pip, short events );
121 struct nsldapi_os_statusinfo *pip, short events );
123 struct nsldapi_os_statusinfo *pip, short revents );
128 struct nsldapi_cb_statusinfo *pip, short events );
130 struct nsldapi_cb_statusinfo *pip, short events );
132 struct nsldapi_cb_statusinfo *pip, short revents );
1233 nsldapi_add_to_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip, argument
1240 for ( i = 0; i < pip->ossi_pollfds_size; ++i ) {
1241 if ( pip->ossi_pollfds[ i ].fd == fd ) {
1242 if (( pip->ossi_pollfds[ i ].events & events )
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/scsi_vhci/
H A Dscsi_vhci.c138 mdi_pathinfo_t *pip);
922 mdi_pathinfo_t *pip; in vhci_scsi_tgt_init() local
987 (MDI_SELECT_ONLINE_PATH | MDI_SELECT_STANDBY_PATH), NULL, &pip); in vhci_scsi_tgt_init()
989 mdi_rele_path(pip); in vhci_scsi_tgt_init()
1044 NULL, &pip); in vhci_scsi_tgt_init()
1046 mdi_rele_path(pip); in vhci_scsi_tgt_init()
1137 mdi_pathinfo_t *pip; in vhci_scsi_start() local
1351 (void *)(intptr_t)resrv_instance, &pip); in vhci_scsi_start()
1353 if ((rval == MDI_SUCCESS) && (pip != NULL)) { in vhci_scsi_start()
1355 mdi_pi_get_vhci_private(pip); in vhci_scsi_start()
[all …]
H A Dmpapi_impl.c916 mdi_pathinfo_t *pip; in vhci_get_path_list_for_mp_lu() local
946 pip = (mdi_pathinfo_t *)mppathp->resp; in vhci_get_path_list_for_mp_lu()
947 mdi_hold_path(pip); in vhci_get_path_list_for_mp_lu()
957 if (!(MDI_PI_FLAGS_IS_DEVICE_REMOVED(pip))) { in vhci_get_path_list_for_mp_lu()
967 mdi_rele_path(pip); in vhci_get_path_list_for_mp_lu()
1001 mdi_pathinfo_t *pip; in vhci_get_path_list_for_init_port() local
1049 pip = (mdi_pathinfo_t *)mppathp->resp; in vhci_get_path_list_for_init_port()
1050 mdi_hold_path(pip); in vhci_get_path_list_for_init_port()
1060 if (!(MDI_PI_FLAGS_IS_DEVICE_REMOVED(pip))) { in vhci_get_path_list_for_init_port()
1070 mdi_rele_path(pip); in vhci_get_path_list_for_init_port()
[all …]
/titanic_41/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c356 av1394_ioctl_plug_init_local(av1394_inst_t *avp, iec61883_plug_init_t *pip) in av1394_ioctl_plug_init_local() argument
364 if ((pip->pi_type == IEC61883_PLUG_MASTER_IN) || in av1394_ioctl_plug_init_local()
365 (pip->pi_type == IEC61883_PLUG_MASTER_OUT)) { in av1394_ioctl_plug_init_local()
366 pip->pi_handle = av1394_pcr_make_ph(pip->pi_loc, in av1394_ioctl_plug_init_local()
367 pip->pi_type, 0); in av1394_ioctl_plug_init_local()
373 if (pip->pi_num == IEC61883_PLUG_ANY) { in av1394_ioctl_plug_init_local()
374 if (pip->pi_type == IEC61883_PLUG_OUT) { in av1394_ioctl_plug_init_local()
378 ASSERT(pip->pi_type == IEC61883_PLUG_IN); in av1394_ioctl_plug_init_local()
394 ph = av1394_pcr_make_ph(pip->pi_loc, pip->pi_type, pip->pi_num); in av1394_ioctl_plug_init_local()
408 pip->pi_rnum = av1394_pcr_idx2num(idx); in av1394_ioctl_plug_init_local()
[all …]
/titanic_41/usr/src/uts/sparc/os/
H A Dbootdev.c213 mdi_pathinfo_t *pip = NULL; in i_devname_to_promname() local
286 while ((pip = mdi_get_next_phci_path(dip, pip)) != NULL) { in i_devname_to_promname()
296 MDI_PI_LOCK(pip); in i_devname_to_promname()
297 MDI_PI_HOLD(pip); in i_devname_to_promname()
298 MDI_PI_UNLOCK(pip); in i_devname_to_promname()
300 if (mdi_pi_pathname_obp(pip, prom_path) != NULL) { in i_devname_to_promname()
307 pdip = mdi_pi_get_phci(pip); in i_devname_to_promname()
324 unit_address = MDI_PI(pip)->pi_addr; in i_devname_to_promname()
352 if (MDI_PI_IS_ONLINE(pip)) { in i_devname_to_promname()
364 MDI_PI_LOCK(pip); in i_devname_to_promname()
[all …]
/titanic_41/usr/src/cmd/gcore/
H A Dgcore.c48 const psinfo_t *pip = Ppsinfo(P); in convert_path() local
67 len = snprintf(fname, size, "%d", (int)pip->pr_pid); in convert_path()
70 len = snprintf(fname, size, "%d", (int)pip->pr_uid); in convert_path()
73 len = snprintf(fname, size, "%d", (int)pip->pr_gid); in convert_path()
76 len = snprintf(fname, size, "%s", pip->pr_fname); in convert_path()
105 if ((len = getzonenamebyid(pip->pr_zoneid, fname, in convert_path()
108 (int)pip->pr_zoneid); in convert_path()
/titanic_41/usr/src/lib/scsi/libses/common/
H A Dses_snap.c118 spc3_diag_page_impl_t *pip; in ses_snap_ctl_page() local
164 pip = (spc3_diag_page_impl_t *)pp->ssp_page; in ses_snap_ctl_page()
165 pip->sdpi_page_code = (uint8_t)page; in ses_snap_ctl_page()
166 SCSI_WRITE16(&pip->sdpi_page_length, in ses_snap_ctl_page()
169 SCSI_WRITE32((uint8_t *)pip + dp->spd_gcoff, sp->ss_generation); in ses_snap_ctl_page()
180 spc3_diag_page_impl_t *pip; in read_status_page() local
254 pip = (spc3_diag_page_impl_t *)buf; in read_status_page()
256 if (pip->sdpi_page_code == page) in read_status_page()
259 retpage = pip->sdpi_page_code; in read_status_page()
324 ses2_supported_ses_diag_page_impl_t *pip; in pages_skel_create() local
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/os/
H A Dpda.c80 p2o_info_t *pip; in pda_open() local
87 pip = (p2o_info_t *)kmem_alloc(sizeof (p2o_info_t), KM_SLEEP); in pda_open()
89 pip->p2o_cpuid = (int)SIGBCPU->cpu_id; in pda_open()
90 pip->p2o_ptr = cpu_p2o_mapin(pip->p2o_cpuid); in pda_open()
92 if (pip->p2o_ptr == NULL) { in pda_open()
93 kmem_free((caddr_t)pip, sizeof (p2o_info_t)); in pda_open()
96 return ((pda_handle_t)pip); in pda_open()
103 p2o_info_t *pip; in pda_close() local
105 if ((pip = (p2o_info_t *)ph) == NULL) in pda_close()
108 cpu_p2o_mapout(pip->p2o_cpuid, pip->p2o_ptr); in pda_close()
[all …]
/titanic_41/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_prop.c1130 topo_ipgroup_info_t *pip; in topo_pgroup_info() local
1141 pip = pg->tpg_info; in topo_pgroup_info()
1143 topo_hdl_strdup(thp, pip->tpi_name)) == NULL) { in topo_pgroup_info()
1150 info->tpi_namestab = pip->tpi_namestab; in topo_pgroup_info()
1151 info->tpi_datastab = pip->tpi_datastab; in topo_pgroup_info()
1152 info->tpi_version = pip->tpi_version; in topo_pgroup_info()
1164 pgroup_seterr(tnode_t *node, topo_pgroup_t *pg, topo_ipgroup_info_t *pip, in pgroup_seterr() argument
1169 if (pip != NULL) { in pgroup_seterr()
1170 if (pip->tpi_name != NULL) in pgroup_seterr()
1171 topo_hdl_strfree(thp, (char *)pip->tpi_name); in pgroup_seterr()
[all …]
/titanic_41/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_enclosure_ctl.c164 ses2_string_out_page_impl_t *pip; in enc_ctl_string() local
188 if ((pip = ses_plugin_ctlpage_lookup(sp, ses_node_snapshot(np), in enc_ctl_string()
192 bcopy(data, pip->ssopi_data, datalen); in enc_ctl_string()
203 ses2_subnick_ctl_page_impl_t *pip, dummy; in enc_ctl_nick() local
222 if ((pip = ses_plugin_ctlpage_lookup(sp, ses_node_snapshot(np), in enc_ctl_nick()
226 pip->sspci_subenclosure_identifier = eid; in enc_ctl_nick()
227 bcopy(nick, pip->sspci_subenclosure_nickname, len); in enc_ctl_nick()
H A Dses2_element.c84 ses2_psu_status_impl_t *pip = (ses2_psu_status_impl_t *)esip; in elem_parse_psu() local
88 pip->spsi_ident); in elem_parse_psu()
90 pip->spsi_dc_over_current); in elem_parse_psu()
92 pip->spsi_dc_under_voltage); in elem_parse_psu()
94 pip->spsi_dc_over_voltage); in elem_parse_psu()
96 pip->spsi_dc_fail); in elem_parse_psu()
98 pip->spsi_ac_fail); in elem_parse_psu()
100 pip->spsi_temp_warn); in elem_parse_psu()
102 pip->spsi_overtmp_fail); in elem_parse_psu()
103 SES_NV_ADD(boolean_value, nverr, nvl, SES_PROP_OFF, pip->spsi_off); in elem_parse_psu()
[all …]
/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_lun.c303 mdi_pathinfo_t *pip = NULL; in iscsi_lun_virt_create() local
334 0, &pip); in iscsi_lun_virt_create()
337 mdi_pi_set_phci_private(pip, (caddr_t)ilp); in iscsi_lun_virt_create()
339 if (mdi_prop_update_string(pip, MDI_GUID, in iscsi_lun_virt_create()
348 if (mdi_prop_update_int(pip, TARGET_PROP, in iscsi_lun_virt_create()
357 if (mdi_prop_update_int(pip, LUN_PROP, in iscsi_lun_virt_create()
366 if (mdi_prop_update_string_array(pip, "compatible", in iscsi_lun_virt_create()
376 mdi_rtn = mdi_pi_online(pip, 0); in iscsi_lun_virt_create()
382 ilp->lun_pip = pip; in iscsi_lun_virt_create()
387 if (pip && mdi_rtn != MDI_SUCCESS) { in iscsi_lun_virt_create()
[all …]
/titanic_41/usr/src/cmd/logadm/
H A Dopts.c448 struct printerinfo *pip = (struct printerinfo *)arg; in printer() local
451 if (pip->isswitch) { in printer()
452 char *ep = pip->exclude; in printer()
458 (void) fprintf(pip->stream, " %s%s", (pip->isswitch) ? "-" : "", lhs); in printer()
460 (void) fprintf(pip->stream, " "); in printer()
461 opts_printword(s, pip->stream); in printer()
/titanic_41/usr/src/lib/libpam/
H A Dpam_framework.c396 struct pam_item *pip; in pam_set_item() local
420 pip = &(pamh->ps_item[item_type]); in pam_set_item()
425 if (pip->pi_addr != NULL) in pam_set_item()
426 (void) memset(pip->pi_addr, 0, pip->pi_size); in pam_set_item()
436 if (pip->pi_addr != NULL) { in pam_set_item()
437 free(pip->pi_addr); in pam_set_item()
441 pip->pi_addr = NULL; in pam_set_item()
442 pip->pi_size = 0; in pam_set_item()
444 pip->pi_addr = strdup((char *)item); in pam_set_item()
445 if (pip->pi_addr == NULL) { in pam_set_item()
[all …]
/titanic_41/usr/src/cmd/mdb/i86xpv/modules/xpv/
H A Dxpv.c265 uintptr_t pip; in _mdb_init() local
268 if (mdb_readsym(&pip, sizeof (pip), "xpv_panic_info") == -1) { in _mdb_init()
273 pip, 0) == -1) in _mdb_init()

123