Lines Matching refs:hdlp

293 	apix_impl_t *hdlp;
298 hdlp = kmem_zalloc(nproc * sizeof (apix_impl_t), KM_SLEEP);
300 apixs[i] = &hdlp[i];
1128 * hdlp - pointer to the internal interrupt handle structure for the
1138 apix_intr_ops(dev_info_t *dip, ddi_intr_handle_impl_t *hdlp,
1147 ispec->intrspec_pri = hdlp->ih_pri;
1148 ispec->intrspec_vec = hdlp->ih_inum;
1149 ispec->intrspec_func = hdlp->ih_cb_func;
1153 switch (hdlp->ih_type) {
1156 *result = apix_alloc_msi(dip, hdlp->ih_inum,
1157 hdlp->ih_scratch1,
1158 (int)(uintptr_t)hdlp->ih_scratch2);
1162 *result = apix_alloc_msix(dip, hdlp->ih_inum,
1163 hdlp->ih_scratch1,
1164 (int)(uintptr_t)hdlp->ih_scratch2);
1168 if ((ihdl_plat_t *)hdlp->ih_private == NULL) {
1171 ispec = ((ihdl_plat_t *)hdlp->ih_private)->ip_ispecp;
1172 *result = apix_intx_alloc_vector(dip, hdlp->ih_inum,
1180 apix_free_vectors(dip, hdlp->ih_inum, hdlp->ih_scratch1,
1181 hdlp->ih_type);
1189 vecp = apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type);
1202 if (hdlp->ih_type == DDI_INTR_TYPE_FIXED) {
1203 vecp = apix_intx_xlate_vector(dip, hdlp->ih_inum,
1212 vecp = apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type);
1219 if (hdlp->ih_type != DDI_INTR_TYPE_FIXED)
1222 vecp = apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type);
1229 if (hdlp->ih_type != DDI_INTR_TYPE_FIXED)
1232 vecp = apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type);
1239 if (hdlp->ih_type != DDI_INTR_TYPE_FIXED)
1242 vecp = apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type);
1253 if (hdlp->ih_type == DDI_INTR_TYPE_FIXED)
1256 if (apix_get_dev_map(dip, hdlp->ih_inum, hdlp->ih_type) == NULL)
1268 target = (int)(intptr_t)hdlp->ih_private;
1277 vecp = apix_get_req_vector(hdlp, hdlp->ih_flags);
1281 hdlp->ih_vector));
1300 hdlp->ih_vector = APIX_VIRTVECTOR(newvecp->v_cpuid,
1310 if (apix_get_intr_info(hdlp, hdlp->ih_private) != PSM_SUCCESS)
1317 * masked off the MSI/X bits in hdlp->ih_type if not
1321 * hdlp->ih_type passed in from the nexus has all the
1337 *result = hdlp->ih_type;
1339 *result = hdlp->ih_type & ~DDI_INTR_TYPE_MSIX;
1341 *result = hdlp->ih_type & ~(DDI_INTR_TYPE_MSI |
1346 if (hdlp->ih_type == DDI_INTR_TYPE_FIXED)
1351 ((apic_get_type_t *)(hdlp->ih_private))->avgi_type =
1353 ((apic_get_type_t *)(hdlp->ih_private))->avgi_num_intr =
1355 ((apic_get_type_t *)(hdlp->ih_private))->avgi_num_cpu =
1357 hdlp->ih_ver = apic_get_apic_version();
1467 apix_get_req_vector(ddi_intr_handle_impl_t *hdlp, ushort_t flags)
1475 return (apix_intx_get_vector(hdlp->ih_vector));
1477 virt_vec = (virt_vec == 0) ? hdlp->ih_vector : virt_vec;
1486 vecp = apix_get_dev_map(hdlp->ih_dip, hdlp->ih_inum,
1487 hdlp->ih_type);
1497 apix_get_intr_info(ddi_intr_handle_impl_t *hdlp,
1504 vecp = apix_get_req_vector(hdlp, intr_params_p->avgi_req_flags);