Home
last modified time | relevance | path

Searched refs:pdp (Results 1 – 25 of 73) sorted by relevance

123

/titanic_41/usr/src/uts/common/xen/os/
H A Dxvdi.c240 struct xendev_ppd *pdp; in xvdi_init_dev() local
262 pdp = kmem_zalloc(sizeof (*pdp), KM_SLEEP); in xvdi_init_dev()
263 pdp->xd_domain = domid; in xvdi_init_dev()
264 pdp->xd_vdevnum = vdevnum; in xvdi_init_dev()
265 pdp->xd_devclass = devcls; in xvdi_init_dev()
266 pdp->xd_evtchn = INVALID_EVTCHN; in xvdi_init_dev()
267 list_create(&pdp->xd_xb_watches, sizeof (xd_xb_watches_t), in xvdi_init_dev()
269 mutex_init(&pdp->xd_evt_lk, NULL, MUTEX_DRIVER, NULL); in xvdi_init_dev()
270 mutex_init(&pdp->xd_ndi_lk, NULL, MUTEX_DRIVER, NULL); in xvdi_init_dev()
271 ddi_set_parent_data(dip, pdp); in xvdi_init_dev()
[all …]
/titanic_41/usr/src/uts/common/fs/portfs/
H A Dport_fd.c82 polldat_t *pdp = PFTOD(pfd); in port_fd_callback() local
87 ASSERT((pdp != NULL) && (events != NULL)); in port_fd_callback()
95 fp = getf(pdp->pd_fd); in port_fd_callback()
100 releasef(pdp->pd_fd); in port_fd_callback()
101 if (fp != pdp->pd_fp) { in port_fd_callback()
106 *events = pdp->pd_portev->portkev_events; /* update events */ in port_fd_callback()
114 pdp->pd_portev = NULL; in port_fd_callback()
115 pcp = (port_fdcache_t *)pdp->pd_pcache; in port_fd_callback()
117 pdp->pd_fp = NULL; in port_fd_callback()
118 pdp->pd_events = 0; in port_fd_callback()
[all …]
/titanic_41/usr/src/uts/common/syscall/
H A Dpoll.c740 polldat_t *pdp; in pollwakeup() local
762 for (pdp = php->ph_list; pdp; pdp = pdp->pd_next) in pollwakeup()
767 for (pdp = php->ph_list; pdp; pdp = pdp->pd_next) in pollwakeup()
770 ASSERT(pdp != NULL); in pollwakeup()
772 pdp = php->ph_list; in pollwakeup()
775 first = pdp; in pollwakeup()
777 if ((pdp->pd_events & events) || in pollwakeup()
782 if (pdp->pd_portev != NULL) { in pollwakeup()
783 port_kevent_t *pkevp = pdp->pd_portev; in pollwakeup()
795 (pdp->pd_events | POLLHUP | in pollwakeup()
[all …]
/titanic_41/usr/src/uts/common/io/
H A Ddevpoll.c249 polldat_t *pdp; in dp_pcache_poll() local
298 pdp = pcache_lookup_fd(pcp, fd); in dp_pcache_poll()
300 ASSERT(pdp != NULL); in dp_pcache_poll()
301 ASSERT(pdp->pd_fd == fd); in dp_pcache_poll()
302 if (pdp->pd_fp == NULL) { in dp_pcache_poll()
324 if (fp != pdp->pd_fp) { in dp_pcache_poll()
340 pdp->pd_fp = fp; in dp_pcache_poll()
354 error = VOP_POLL(fp->f_vnode, pdp->pd_events, 0, in dp_pcache_poll()
366 if (php != NULL && pdp->pd_php != NULL && in dp_pcache_poll()
367 php != pdp->pd_php) { in dp_pcache_poll()
[all …]
/titanic_41/usr/src/cmd/mdb/common/kmdb/
H A Dkmdb_promio.c59 pio_data_t *pdp = io->io_data; in pio_read() local
62 return (kmdb_prom_read(buf, nbytes, &pdp->pio_ti)); in pio_read()
70 pio_data_t *pdp = io->io_data; in pio_write() local
73 return (kmdb_prom_write(buf, nbytes, &pdp->pio_ti)); in pio_write()
90 pio_data_t *pdp = io->io_data; in pio_ctl() local
102 if (!(pdp->pio_flags & PIO_FL_TIO_READ)) { in pio_ctl()
103 (void) kmdb_prom_term_ctl(TCGETS, &pdp->pio_ti); in pio_ctl()
104 pdp->pio_flags |= PIO_FL_TIO_READ; in pio_ctl()
107 bcopy(&pdp->pio_ti, ti, sizeof (struct termios)); in pio_ctl()
122 bcopy(ti, &pdp->pio_ti, sizeof (struct termios)); in pio_ctl()
[all …]
/titanic_41/usr/src/lib/libdtrace/common/
H A Ddt_pid.c395 dt_pid_fix_mod(dtrace_probedesc_t *pdp, struct ps_prochandle *P) in dt_pid_fix_mod() argument
405 if (strchr(pdp->dtpd_mod, '`') != NULL) { in dt_pid_fix_mod()
408 if (strncmp(pdp->dtpd_mod, "LM", 2) != 0 || in dt_pid_fix_mod()
409 !isdigit(pdp->dtpd_mod[2])) in dt_pid_fix_mod()
412 lmid = strtoul(&pdp->dtpd_mod[2], &end, 16); in dt_pid_fix_mod()
420 obj = pdp->dtpd_mod; in dt_pid_fix_mod()
433 dt_pid_objname(pdp->dtpd_mod, sizeof (pdp->dtpd_mod), lmid, obj); in dt_pid_fix_mod()
440 dt_pid_create_pid_probes(dtrace_probedesc_t *pdp, dtrace_hdl_t *dtp, in dt_pid_create_pid_probes() argument
458 &pdp->dtpd_provider[3])); in dt_pid_create_pid_probes()
461 pp.dpp_mod = pdp->dtpd_mod[0] != '\0' ? pdp->dtpd_mod : "*"; in dt_pid_create_pid_probes()
[all …]
H A Ddt_provider.c214 dt_probe_keylen(const dtrace_probedesc_t *pdp) in dt_probe_keylen() argument
216 return (strlen(pdp->dtpd_mod) + 1 + in dt_probe_keylen()
217 strlen(pdp->dtpd_func) + 1 + strlen(pdp->dtpd_name) + 1); in dt_probe_keylen()
221 dt_probe_key(const dtrace_probedesc_t *pdp, char *s) in dt_probe_key() argument
224 pdp->dtpd_mod, pdp->dtpd_func, pdp->dtpd_name); in dt_probe_key()
233 dt_probe_discover(dt_provider_t *pvp, const dtrace_probedesc_t *pdp) in dt_probe_discover() argument
236 char *name = dt_probe_key(pdp, alloca(dt_probe_keylen(pdp))); in dt_probe_discover()
249 assert(strcmp(pvp->pv_desc.dtvd_name, pdp->dtpd_provider) == 0); in dt_probe_discover()
250 assert(pdp->dtpd_id != DTRACE_IDNONE); in dt_probe_discover()
253 pvp->pv_desc.dtvd_name, name, pdp->dtpd_id); in dt_probe_discover()
[all …]
H A Ddt_subr.c56 const char *s, int argc, char *const argv[], dtrace_probedesc_t *pdp) in dtrace_xstr2desc() argument
66 bzero(pdp, sizeof (dtrace_probedesc_t)); in dtrace_xstr2desc()
142 bcopy(q, (char *)pdp + off, len); in dtrace_xstr2desc()
143 bcopy(v, (char *)pdp + off + len, vlen); in dtrace_xstr2desc()
144 bcopy(w, (char *)pdp + off + len + vlen, wlen); in dtrace_xstr2desc()
147 pdp->dtpd_id = DTRACE_IDNONE; in dtrace_xstr2desc()
153 const char *s, dtrace_probedesc_t *pdp) in dtrace_str2desc() argument
155 return (dtrace_xstr2desc(dtp, spec, s, 0, NULL, pdp)); in dtrace_str2desc()
159 dtrace_id2desc(dtrace_hdl_t *dtp, dtrace_id_t id, dtrace_probedesc_t *pdp) in dtrace_id2desc() argument
161 bzero(pdp, sizeof (dtrace_probedesc_t)); in dtrace_id2desc()
[all …]
/titanic_41/usr/src/cmd/dtrace/test/cmd/chkargs/
H A Dchkargs.c39 probe(dtrace_hdl_t *dtp, const dtrace_probedesc_t *pdp, void *data) in probe() argument
49 if (dtrace_probe_info(dtp, pdp, &p) != 0) { in probe()
51 "%s:%s:%s:%s [%d]\n", pdp->dtpd_provider, pdp->dtpd_mod, in probe()
52 pdp->dtpd_func, pdp->dtpd_name, pdp->dtpd_id); in probe()
60 arg.dtargd_id = pdp->dtpd_id; in probe()
66 pdp->dtpd_provider, pdp->dtpd_mod, pdp->dtpd_func, in probe()
67 pdp->dtpd_name, pdp->dtpd_id, in probe()
76 (void) printf("%d args[%d] : %s\n", pdp->dtpd_id, i, in probe()
88 dtrace_probedesc_t pd, *pdp = NULL; in main() local
138 pdp = &pd; in main()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/i86pc/pcibus/
H A Dpci_i86pc.c74 did_t *pdp; in ba_is_2() local
80 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_2()
81 if (!pdp) in ba_is_2()
83 did_BDF(pdp, NULL, &d, NULL); in ba_is_2()
90 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_2()
91 return (pdp && did_physlot_exists(pdp)); in ba_is_2()
103 did_t *pdp; in ba_is_4() local
109 pdp = did_find(mod, topo_node_getspecific(ptp)); in ba_is_4()
110 if (!pdp) in ba_is_4()
112 did_BDF(pdp, NULL, &d, NULL); in ba_is_4()
[all …]
/titanic_41/usr/src/lib/libipadm/common/
H A Dipadm_prop.c373 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_mtu() argument
387 status = i_ipadm_get_prop(iph, arg, pdp, val, &size, in i_ipadm_set_mtu()
413 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_metric() argument
446 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_usesrc() argument
524 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_hostmodel() argument
536 return (i_ipadm_set_prop(iph, NULL, pdp, pval, proto, flags)); in i_ipadm_set_hostmodel()
542 ipadm_prop_desc_t *pdp, char *buf, uint_t *bufsize, uint_t proto, in i_ipadm_get_hostmodel() argument
558 status = i_ipadm_get_prop(iph, arg, pdp, buf, bufsize, proto, in i_ipadm_get_hostmodel()
584 ipadm_prop_desc_t *pdp, const void *pval, uint_t proto, uint_t flags) in i_ipadm_set_ifprop_flags() argument
594 if (strcmp(pdp->ipd_name, "exchange_routes") == 0 || in i_ipadm_set_ifprop_flags()
[all …]
/titanic_41/usr/src/lib/libdladm/common/
H A Dpropfuncs.c523 fprop_desc_t *pdp; in i_dladm_get_prop_temp() local
536 pdp = &prop_tbl->pt_table[i]; in i_dladm_get_prop_temp()
541 status = pdp->pd_get(handle, name, prop_val, val_cntp); in i_dladm_get_prop_temp()
544 if (pdp->pd_defval.vd_name == NULL) { in i_dladm_get_prop_temp()
548 (void) strcpy(*prop_val, pdp->pd_defval.vd_name); in i_dladm_get_prop_temp()
553 if (pdp->pd_getmod != NULL) { in i_dladm_get_prop_temp()
554 status = pdp->pd_getmod(handle, name, prop_val, in i_dladm_get_prop_temp()
558 cnt = pdp->pd_nmodval; in i_dladm_get_prop_temp()
566 pdp->pd_modval[i].vd_name); in i_dladm_get_prop_temp()
581 fprop_desc_t *pdp, char **prop_val, uint_t val_cnt, uint_t flags) in i_dladm_set_one_prop_temp() argument
[all …]
H A Dlinkprop.c83 typedef dladm_status_t pd_getf_t(dladm_handle_t, prop_desc_t *pdp,
116 typedef dladm_status_t pd_checkf_t(dladm_handle_t, prop_desc_t *pdp,
903 check_prop(dladm_handle_t handle, prop_desc_t *pdp, datalink_id_t linkid, in check_prop() argument
912 for (i = 0; i < pdp->pd_noptval; i++) { in check_prop()
914 pdp->pd_optval[i].vd_name) == 0) { in check_prop()
918 if (i == pdp->pd_noptval) in check_prop()
921 (void) memcpy(&vdp[j], &pdp->pd_optval[i], sizeof (val_desc_t)); in check_prop()
928 datalink_class_t class, uint32_t media, prop_desc_t *pdp, char **prop_val, in i_dladm_set_single_prop() argument
936 if (!(pdp->pd_class & class)) in i_dladm_set_single_prop()
939 if (!DATALINK_MEDIA_ACCEPTED(pdp->pd_dmedia, media)) in i_dladm_set_single_prop()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Ddoor.c67 struct portdata *pdp; in bridge_door_server() local
125 if ((pdp = find_by_linkid(bdc->bdc_linkid)) == NULL) in bridge_door_server()
127 retv = STP_IN_port_get_cfg(0, pdp->port_index, &portcfg); in bridge_door_server()
135 if ((pdp = find_by_linkid(bdc->bdc_linkid)) == NULL) in bridge_door_server()
137 portstate.port_no = pdp->port_index; in bridge_door_server()
140 if (pdp->sdu_failed) in bridge_door_server()
144 else if (pdp->admin_non_stp && pdp->bpdu_protect) in bridge_door_server()
152 if ((pdp = find_by_linkid(bdc->bdc_linkid)) == NULL) in bridge_door_server()
154 twoints[0] = pdp->admin_status ? 1 : 0; in bridge_door_server()
H A Devents.c358 struct portdata *pdp; in handle_refresh() local
412 pdp = allports[i]; in handle_refresh()
414 if (!pdp->referenced) { in handle_refresh()
415 if (pdp->stp_added) { in handle_refresh()
416 (void) STP_IN_port_remove(pdp->vlan_id, in handle_refresh()
417 pdp->port_index); in handle_refresh()
418 pdp->stp_added = B_FALSE; in handle_refresh()
420 if (pdp->dlpi != NULL) { in handle_refresh()
421 dlpi_close(pdp->dlpi); in handle_refresh()
422 pdp->dlpi = NULL; in handle_refresh()
[all …]
H A Drstp.c237 struct portdata *pdp; in tx_bpdu() local
243 pdp = allports[port_index - 1]; in tx_bpdu()
244 rc = dlpi_send(pdp->dlpi, NULL, 0, bpdu, bpdu_len, NULL); in tx_bpdu()
248 bpdu_len, pdp->name); in tx_bpdu()
251 syslog(LOG_WARNING, "failed to send to %s: %s", pdp->name, in tx_bpdu()
279 struct portdata *pdp; in get_init_port_cfg() local
287 pdp = allports[port_index - 1]; in get_init_port_cfg()
297 linkid = pdp->linkid; in get_init_port_cfg()
344 pdp->admin_non_stp = cfg->admin_non_stp; in get_init_port_cfg()
345 if (!pdp->admin_non_stp) in get_init_port_cfg()
[all …]
/titanic_41/usr/src/uts/sun4u/io/
H A Dppm_xgsubr.c374 ppm_dev_t *pdp; in ppm_get_dev() local
377 pdp = PPM_GET_PRIVATE(dip); in ppm_get_dev()
378 if (pdp == NULL) in ppm_get_dev()
379 pdp = ppm_add_dev(dip, domp); in ppm_get_dev()
382 return (pdp); in ppm_get_dev()
394 ppm_dev_t *pdp, **devpp; in ppm_rem_dev() local
397 pdp = PPM_GET_PRIVATE(dip); in ppm_rem_dev()
398 ASSERT(pdp); in ppm_rem_dev()
399 domp = pdp->domp; in ppm_rem_dev()
403 for (devpp = &domp->devlist; (pdp = *devpp) != NULL; ) { in ppm_rem_dev()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dpanic.c260 panic_data_t *pdp = (panic_data_t *)panicbuf; in panicsys() local
262 pdp->pd_version = PANICBUFVERS; in panicsys()
263 pdp->pd_msgoff = sizeof (panic_data_t) - sizeof (panic_nv_t); in panicsys()
265 (void) strncpy(pdp->pd_uuid, dump_get_uuid(), in panicsys()
266 sizeof (pdp->pd_uuid)); in panicsys()
269 panic_savetrap(pdp, t->t_panic_trap); in panicsys()
271 panic_saveregs(pdp, rp); in panicsys()
273 (void) vsnprintf(&panicbuf[pdp->pd_msgoff], in panicsys()
274 PANICBUFSIZE - pdp->pd_msgoff, format, alist); in panicsys()
312 panic_quiesce_hw(pdp); in panicsys()
/titanic_41/usr/src/uts/common/sys/
H A Dpanic.h104 #define PANICNVGET(pdp) \ argument
105 ((pdp)->pd_nvdata + (((pdp)->pd_msgoff - \
114 #define PANICNVSET(pdp, pnv) \ argument
115 (pdp)->pd_msgoff = (uint32_t)((char *)(pnv) - (char *)(pdp));
/titanic_41/usr/src/lib/libproc/common/
H A DPscantext.c59 prmap_t *pdp; /* pointer to map descriptor */ in Pscantext() local
126 for (pdp = &prbuf[nmappings - 1]; sysaddr == 0 && syspri != 1 && in Pscantext()
127 pdp >= prbuf; pdp--) { in Pscantext()
129 offset = (off_t)pdp->pr_vaddr; /* beginning of text */ in Pscantext()
130 endoff = offset + pdp->pr_size; in Pscantext()
133 if ((pdp->pr_mflags&MA_EXEC) == 0 || in Pscantext()
/titanic_41/usr/src/cmd/sgs/rtld/common/
H A Dpaths.c55 Pdesc *pdp; in set_dirs() local
57 if ((pdp = alist_append(alpp, NULL, sizeof (Pdesc), in set_dirs()
61 pdp->pd_pname = (char *)sdp->sd_name; in set_dirs()
62 pdp->pd_plen = sdp->sd_len; in set_dirs()
63 pdp->pd_flags = flags; in set_dirs()
74 Pdesc *pdp; in print_default_dirs() local
79 for (ALIST_TRAVERSE(alp, idx, pdp)) { in print_default_dirs()
80 flags = pdp->pd_flags; in print_default_dirs()
90 (void) printf(fmt, pdp->pd_pname); in print_default_dirs()
92 DBG_CALL(Dbg_libs_path(lml, pdp->pd_pname, in print_default_dirs()
[all …]
/titanic_41/usr/src/uts/common/xen/io/
H A Dxpvd.c318 struct xendev_ppd *pdp; in xpvd_prop_op() local
324 pdp = (struct xendev_ppd *)ddi_get_parent_data(ch_dip); in xpvd_prop_op()
326 if ((pdp == NULL) || !(mod_flags & (DDI_PROP_CANSLEEP)) || in xpvd_prop_op()
327 (mod_flags & DDI_PROP_NOTPROM) || (pdp->xd_xsdev.nodename == NULL)) in xpvd_prop_op()
335 if ((xenbus_read(XBT_NULL, pdp->xd_xsdev.nodename, name, &prop_str, in xpvd_prop_op()
340 if ((pdp->xd_xsdev.otherend != NULL) && in xpvd_prop_op()
341 (xenbus_read(XBT_NULL, pdp->xd_xsdev.otherend, name, &prop_str, in xpvd_prop_op()
388 struct xendev_ppd *pdp; in xpvd_get_ispec() local
392 if ((pdp = ddi_get_parent_data(rdip)) == NULL) in xpvd_get_ispec()
395 return (&pdp->xd_ispec); in xpvd_get_ispec()
[all …]
/titanic_41/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dpcibus_labels.c220 pci_slot_label_lookup(topo_mod_t *mod, tnode_t *node, did_t *dp, did_t *pdp) in pci_slot_label_lookup() argument
233 dp, b, d, f, pdp); in pci_slot_label_lookup()
251 if (did_physlot(pdp) >= 0) { in pci_slot_label_lookup()
255 __func__, node, did_physlot(pdp)); in pci_slot_label_lookup()
260 l = (char *)did_physlot_name(pdp, d); in pci_slot_label_lookup()
321 (apdp != pdp)) { in pci_slot_label_lookup()
387 if ((l = (char *)pci_label_physlot_lookup(mod, pp, pdp)) in pci_slot_label_lookup()
389 if ((l = (char *)did_physlot_name(pdp, d)) != NULL) { in pci_slot_label_lookup()
423 did_t *dp, *pdp; in pci_label_cmn() local
450 pdp = did_find(mod, topo_node_getspecific(pnode)); in pci_label_cmn()
[all …]
/titanic_41/usr/src/lib/efcode/gp2/
H A Dgp2.c41 private_data_t *pdp = DEVICE_PRIVATE(env); in mem_map_in() local
57 error = fc_run_priv(pdp->common, service, 3, 1, fc_size2cell(len), in mem_map_in()
80 private_data_t *pdp = DEVICE_PRIVATE(env); in mem_map_out() local
106 error = fc_run_priv(pdp->common, service, 2, 0, fc_size2cell(len), in mem_map_out()
116 private_data_t *pdp = DEVICE_PRIVATE(env); in do_get_portid() local
205 private_data_t *pdp = DEVICE_PRIVATE(env); in do_claim_addr() local
217 error = fc_run_priv(pdp->common, service, 6, 2, in do_claim_addr()
277 private_data_t *pdp = DEVICE_PRIVATE(env); in do_device_id() local
296 rc = fc_run_priv(pdp->common, "rx@", 1, 1, virtaddr + 0xe0, in do_device_id()
/titanic_41/usr/src/uts/sun4v/os/
H A Dmach_trap.c264 ptl1_savetrap(panic_data_t *pdp, ptl1_state_t *pstate) in ptl1_savetrap() argument
268 panic_nv_t *pnv = PANICNVGET(pdp); in ptl1_savetrap()
286 PANICNVSET(pdp, pnv); in ptl1_savetrap()
290 panic_savetrap(panic_data_t *pdp, struct panic_trap_info *tip) in panic_savetrap() argument
299 ptl1_savetrap(pdp, pstate); in panic_savetrap()
303 panic_saveregs(pdp, tip->trap_regs); in panic_savetrap()
304 pnv = PANICNVGET(pdp); in panic_savetrap()
310 PANICNVSET(pdp, pnv); in panic_savetrap()

123