Searched defs:hdlp (Results 1 - 25 of 90) sorted by relevance

1234

/illumos-gate/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_pcicfg.c40 mccfgsetup(struct _mc_pcicfg_hdl *hdlp, mc_t *mc, enum mc_funcnum func) argument
42 hdlp->cfh_mc = mc;
43 hdlp->cfh_func = func;
48 if (pci_config_setup(mc->mc_funcs[func].mcf_devi, &hdlp->cfh_hdl) !=
58 struct _mc_pcicfg_hdl *hdlp; local
60 *cookiep = hdlp = kmem_alloc(sizeof (struct _mc_pcicfg_hdl), KM_SLEEP);
62 if (mccfgsetup(hdlp, mc, func) == DDI_FAILURE) {
63 kmem_free(hdlp, sizeof (*hdlp));
73 struct _mc_pcicfg_hdl *hdlp local
82 struct _mc_pcicfg_hdl *hdlp = cookie; local
90 struct _mc_pcicfg_hdl *hdlp = cookie; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dhotplug.c68 uintptr_t hdlp = (uintptr_t)dev->devi_hp_hdlp; local
72 while (hdlp) {
73 if (mdb_vread(&hdl, sizeof (ddi_hp_cn_handle_t), hdlp) == -1) {
74 mdb_warn("Failed to read hdlp!\n");
91 hdlp, ddihp_get_cn_state(hdl.cn_info.cn_state),
94 hdlp = (uintptr_t)hdl.next;
150 mdb_warn("Failed to read hdlp!\n");
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmach_rootnex.c65 ddi_intr_handle_impl_t *hdlp);
69 ddi_intr_handle_impl_t *hdlp);
73 ddi_intr_handle_impl_t *hdlp);
83 ddi_intr_handle_impl_t *hdlp)
85 return (i_ddi_add_ivintr(hdlp));
94 ddi_intr_handle_impl_t *hdlp)
96 i_ddi_rem_ivintr(hdlp);
107 ddi_intr_handle_impl_t *hdlp)
109 return (hdlp->ih_pri);
82 rootnex_add_intr_impl(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
93 rootnex_remove_intr_impl(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
106 rootnex_get_intr_pri(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
H A Dvnex.c110 ddi_intr_op_t intr_op, ddi_intr_handle_impl_t *hdlp, void *result);
404 vnex_enable_intr(dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
409 vid_p = vnex_locate_id(rdip, hdlp->ih_vector);
431 vnex_disable_intr(dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
435 vid_p = vnex_locate_id(rdip, hdlp->ih_vector);
450 ddi_intr_handle_impl_t *hdlp; local
454 else if ((hdlp = vid_p->vid_ddi_hdlp) == NULL)
457 return (hdlp->ih_inum);
462 ddi_intr_handle_impl_t *hdlp)
483 ino = hdlp
461 vnex_add_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
524 vnex_remove_intr(dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
543 vnex_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, ddi_intr_handle_impl_t *hdlp, void *result) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/opl/io/pcicmu/
H A Dpcmu_intr.c170 pcmu_add_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
181 ino = PCMU_IB_MONDO_TO_INO(hdlp->ih_vector);
197 ih_p = pcmu_ib_alloc_ih(rdip, hdlp->ih_inum,
198 hdlp->ih_cb_func, hdlp->ih_cb_arg1, hdlp->ih_cb_arg2);
201 uint32_t intr_index = hdlp->ih_inum;
219 hdlp->ih_vector = mondo;
222 hdlp->ih_pri, hdlp
275 pcmu_remove_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
[all...]
H A Dpcmu_ib.c726 ddi_intr_handle_impl_t *hdlp, uint_t new_intr_state)
737 PCMU_IB_MONDO_TO_INO((int32_t)hdlp->ih_vector))) == 0) {
744 rdip, hdlp->ih_inum)) {
725 pcmu_ib_update_intr_state(pcmu_t *pcmu_p, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp, uint_t new_intr_state) argument
/illumos-gate/usr/src/uts/common/os/
H A Dddi_hp_ndi.c53 static int ddihp_cn_req_handler(ddi_hp_cn_handle_t *hdlp,
66 ddi_hp_cn_handle_t *hdlp; local
86 hdlp = ddihp_cn_name_to_handle(dip, info_p->cn_name);
87 if (hdlp) {
96 hdlp = (ddi_hp_cn_handle_t *)kmem_zalloc(
100 hdlp->cn_dip = dip;
101 bcopy(info_p, &(hdlp->cn_info), sizeof (*info_p));
104 hdlp->cn_info.cn_name = ddi_strdup(info_p->cn_name, KM_SLEEP);
106 if (ddihp_cn_getstate(hdlp) != DDI_SUCCESS) {
107 DDI_HP_NEXDBG((CE_CONT, "ndi_hp_register: dip %p, hdlp
137 ddi_hp_cn_handle_t *hdlp; local
208 ddi_hp_cn_handle_t *hdlp; local
343 ddi_hp_cn_handle_t *hdlp; local
371 ddihp_cn_req_handler(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t target_state) argument
[all...]
H A Dddi_hp_impl.c52 static int ddihp_cn_pre_change_state(ddi_hp_cn_handle_t *hdlp,
54 static int ddihp_cn_post_change_state(ddi_hp_cn_handle_t *hdlp,
56 static int ddihp_cn_handle_state_change(ddi_hp_cn_handle_t *hdlp);
57 static int ddihp_cn_change_children_state(ddi_hp_cn_handle_t *hdlp,
60 static int ddihp_port_change_state(ddi_hp_cn_handle_t *hdlp,
62 static int ddihp_port_upgrade_state(ddi_hp_cn_handle_t *hdlp,
64 static int ddihp_port_downgrade_state(ddi_hp_cn_handle_t *hdlp,
67 static void ddihp_update_last_change(ddi_hp_cn_handle_t *hdlp);
83 ddi_hp_cn_handle_t *hdlp; local
105 hdlp
169 ddihp_cn_getstate(ddi_hp_cn_handle_t *hdlp) argument
204 ddihp_cn_unregister(ddi_hp_cn_handle_t *hdlp) argument
238 ddi_hp_cn_handle_t *hdlp; local
263 ddihp_connector_ops(ddi_hp_cn_handle_t *hdlp, ddi_hp_op_t op, void *arg, void *result) argument
320 ddihp_port_ops(ddi_hp_cn_handle_t *hdlp, ddi_hp_op_t op, void *arg, void *result) argument
420 ddihp_cn_gen_sysevent(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_sysevent_t event_sub_class, int hint, int kmflag) argument
589 ddihp_cn_pre_change_state(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t target_state) argument
647 ddihp_cn_post_change_state(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t new_state) argument
687 ddihp_cn_handle_state_change(ddi_hp_cn_handle_t *hdlp) argument
743 ddihp_cn_change_children_state(ddi_hp_cn_handle_t *hdlp, boolean_t online) argument
839 ddihp_port_change_state(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t target_state) argument
862 ddihp_port_upgrade_state(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t target_state) argument
940 ddihp_port_downgrade_state(ddi_hp_cn_handle_t *hdlp, ddi_hp_cn_state_t target_state) argument
1023 ddihp_update_last_change(ddi_hp_cn_handle_t *hdlp) argument
[all...]
H A Dddi_intr_impl.c485 ddi_intr_handle_impl_t *hdlp = (ddi_intr_handle_impl_t *)h; local
488 DDI_INTR_APIDBG((CE_CONT, "get_intr_affinity: hdlp = %p\n",
489 (void *)hdlp));
491 if ((hdlp == NULL) || (tgt_p == NULL))
494 rw_enter(&hdlp->ih_rwlock, RW_READER);
495 if (hdlp->ih_state != DDI_IHDL_STATE_ENABLE) {
496 rw_exit(&hdlp->ih_rwlock);
500 ret = i_ddi_intr_ops(hdlp->ih_dip, hdlp->ih_dip,
501 DDI_INTROP_GETTARGET, hdlp, (voi
516 ddi_intr_handle_impl_t *hdlp = (ddi_intr_handle_impl_t *)h; local
[all...]
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_rcm.c235 scsi_rcm_init(uint_t rcm_flag, char **errstring, rcm_handle_t **hdlp) argument
238 if (rcm_alloc_handle(NULL, rcm_flag, NULL, hdlp) != RCM_SUCCESS) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/
H A Dpsvcplugin.c56 static psvc_opaque_t hdlp; variable
212 err = psvc_init(&hdlp);
226 err = psvc_get_attr(hdlp, objp->name, PSVC_PRESENCE_ATTR,
230 err = psvc_get_attr(hdlp, objp->name, PSVC_FEATURES_ATTR,
283 psvc_fini(hdlp);
284 hdlp = NULL;
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/
H A Dpsvcplugin.c53 static psvc_opaque_t hdlp; variable
134 err = psvc_init(&hdlp);
148 err = psvc_get_attr(hdlp, objp->name, PSVC_PRESENCE_ATTR,
152 err = psvc_get_attr(hdlp, objp->name, PSVC_FEATURES_ATTR,
204 psvc_fini(hdlp);
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_kstats.c36 ddi_intr_handle_impl_t *hdlp; member in struct:pci_kstat_private
77 ddi_intr_handle_impl_t tmp_hdl, *ih_p = private_data->hdlp;
159 ddi_intr_handle_impl_t *hdlp)
171 private_data->hdlp = hdlp;
194 ddi_intr_handle_impl_t *hdlp; local
198 hdlp = kstat_private->hdlp;
199 ((ihdl_plat_t *)hdlp->ih_private)->ip_ksp = NULL;
158 pci_kstat_create(kstat_t **kspp, dev_info_t *rootnex_dip, ddi_intr_handle_impl_t *hdlp) argument
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c487 t1394_addr_handle_t *hdlp)
509 *hdlp = aa.aa_hdl;
520 av1394_pcr_free_addr(av1394_inst_t *avp, t1394_addr_handle_t *hdlp) argument
524 ret = t1394_free_addr(avp->av_t1394_hdl, hdlp, 0);
486 av1394_pcr_alloc_addr(av1394_inst_t *avp, uint64_t addr, t1394_addr_handle_t *hdlp) argument
/illumos-gate/usr/src/uts/common/io/
H A Dpseudonex.c79 ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result);
309 ddi_intr_handle_impl_t *hdlp, void *result)
308 pseudonex_intr_op(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result) argument
H A Dtphci.c61 ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result);
379 ddi_intr_handle_impl_t *hdlp, void *result)
378 tphci_intr_op(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result) argument
H A Dtvhci.c60 ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result);
436 ddi_intr_handle_impl_t *hdlp, void *result)
435 tvhci_intr_op(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t op, ddi_intr_handle_impl_t *hdlp, void *result) argument
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drsrc_info.c541 ri_unpack(caddr_t buf, size_t size, ri_hdl_t **hdlp) argument
546 if (hdlp == NULL)
549 *hdlp = NULL;
602 *hdlp = ri_hdl;
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/common/
H A Dintr_common.c94 ddi_softint_hdl_impl_t hdlp; local
119 (mdb_vread(&hdlp, sizeof (ddi_softint_hdl_impl_t),
122 (uintptr_t)hdlp.ih_pending) == -1))
131 (uintptr_t)avhp.av_intarg1, (uintptr_t)hdlp.ih_dip);
/illumos-gate/usr/src/uts/sun4u/io/
H A Dmach_rootnex.c59 ddi_intr_handle_impl_t *hdlp);
63 ddi_intr_handle_impl_t *hdlp);
67 ddi_intr_handle_impl_t *hdlp);
77 ddi_intr_handle_impl_t *hdlp)
94 hdlp->ih_pri = 5;
101 hdlp->ih_vector |= (UPAID_TO_IGN(portid) << 6);
125 if ((ret = i_ddi_add_ivintr(hdlp)) != DDI_SUCCESS)
141 mondo_vector |= (IMR_VALID | (uint64_t)hdlp->ih_vector);
159 ddi_intr_handle_impl_t *hdlp)
172 hdlp
76 rootnex_add_intr_impl(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
158 rootnex_remove_intr_impl(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
216 rootnex_get_intr_pri(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_intr.c451 pci_add_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
465 ino = IB_MONDO_TO_INO(hdlp->ih_vector);
475 if (hdlp->ih_vector & PCI_PULSE_INO) {
483 hdlp->ih_vector = CB_MONDO_TO_XMONDO(cb_p, mondo);
485 if (i_ddi_add_ivintr(hdlp) != DDI_SUCCESS)
510 ih_p = ib_alloc_ih(rdip, hdlp->ih_inum,
511 hdlp->ih_cb_func, hdlp->ih_cb_arg1, hdlp->ih_cb_arg2);
519 if (ino_p && (ipil_p = ib_ino_locate_ipil(ino_p, hdlp
622 pci_remove_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/xaui/
H A Dxaui.c283 ldom_hdl_t *hdlp; local
301 hdlp = ldom_init(xaui_topo_alloc, xaui_topo_free);
302 if (hdlp == NULL) {
307 (void) ldom_get_type(hdlp, &type);
309 bufsize = ldom_get_core_md(hdlp, &bufp);
311 bufsize = ldom_get_local_md(hdlp, &bufp);
315 ldom_fini(hdlp);
323 ldom_fini(hdlp);
332 ldom_fini(hdlp);
344 ldom_fini(hdlp);
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcplugin/
H A Dpsvcplugin.c56 static psvc_opaque_t hdlp; variable
239 err = psvc_get_attr(hdlp, id, PSVC_FEATURES_ATTR, &features);
260 err = psvc_set_attr(hdlp, name, PSVC_SWITCH_STATE_ATTR,
459 err = psvc_init(&hdlp);
475 err = psvc_get_attr(hdlp, objp->name, PSVC_PRESENCE_ATTR,
479 err = psvc_get_attr(hdlp, objp->name, PSVC_FEATURES_ATTR,
501 psvc_fini(hdlp);
/illumos-gate/usr/src/uts/sparc/io/pciex/
H A Dpcieb_sparc.c59 pcieb_set_prot_scan(dev_info_t *dip, ddi_acc_impl_t *hdlp) argument
71 ddi_intr_handle_impl_t *hdlp, void *result)
79 (hdlp->ih_type != DDI_INTR_TYPE_FIXED))
102 intr = hdlp->ih_vector;
109 hdlp->ih_vector = ((intr - 1 + (d % 4)) % 4 + 1);
119 return (i_ddi_intr_ops(dip, rdip, intr_op, hdlp, result));
70 pcieb_plat_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, ddi_intr_handle_impl_t *hdlp, void *result) argument
/illumos-gate/usr/src/uts/common/io/pci-ide/
H A Dpci-ide.c96 ddi_intr_handle_impl_t *hdlp, int *pri);
100 ddi_intr_handle_impl_t *hdlp, void *result);
656 ddi_intr_handle_impl_t *hdlp, int *pri)
664 if ((ispecp = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) == NULL) {
692 if (hdlp->ih_inum < num_intpriorities)
693 ispecp->intrspec_pri = intpriorities[hdlp->ih_inum];
705 ddi_intr_handle_impl_t *hdlp, void *result)
711 PDBG(("pciide_intr_ops: dip %p rdip %p op %x hdlp %p\n",
712 (void *)dip, (void *)rdip, intr_op, (void *)hdlp));
727 return (pciide_alloc_intr(dip, rdip, hdlp, resul
655 pciide_get_pri(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp, int *pri) argument
704 pciide_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, ddi_intr_handle_impl_t *hdlp, void *result) argument
778 pciide_alloc_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp, void *result) argument
831 pciide_free_intr(dev_info_t *dip, dev_info_t *rdip, ddi_intr_handle_impl_t *hdlp) argument
[all...]

Completed in 319 milliseconds

1234