Lines Matching defs:hep

328 	struct cmi_msri_hashent *hep;
332 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) {
333 if (CMI_MSRI_MATCH(hep, hdl, msr))
337 if (hep != NULL) {
338 hep->msrie_msrval = val;
340 hep = kmem_alloc(sizeof (*hep), KM_SLEEP);
341 hep->msrie_hdl = hdl;
342 hep->msrie_msrnum = msr;
343 hep->msrie_msrval = val;
346 hbp->msrib_head->msrie_prev = hep;
347 hep->msrie_next = hbp->msrib_head;
348 hep->msrie_prev = NULL;
349 hbp->msrib_head = hep;
364 struct cmi_msri_hashent *hep;
377 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) {
378 if (CMI_MSRI_MATCH(hep, hdl, msr)) {
379 *valp = hep->msrie_msrval;
386 return (hep != NULL);
398 struct cmi_msri_hashent *hep;
403 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) {
404 if (CMI_MSRI_MATCH(hep, hdl, msr)) {
405 if (hep->msrie_prev != NULL)
406 hep->msrie_prev->msrie_next = hep->msrie_next;
408 if (hep->msrie_next != NULL)
409 hep->msrie_next->msrie_prev = hep->msrie_prev;
411 if (hbp->msrib_head == hep)
412 hbp->msrib_head = hep->msrie_next;
414 kmem_free(hep, sizeof (*hep));
476 struct cmi_pcii_hashent *hep;
482 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) {
483 if (CMI_PCII_MATCH(hep, bus, dev, func, reg, asz))
487 if (hep != NULL) {
488 hep->pcii_val = val;
490 hep = kmem_alloc(sizeof (*hep), KM_SLEEP);
491 hep->pcii_bus = bus;
492 hep->pcii_dev = dev;
493 hep->pcii_func = func;
494 hep->pcii_reg = reg;
495 hep->pcii_asize = asz;
496 hep->pcii_val = val;
499 hbp->pciib_head->pcii_prev = hep;
500 hep->pcii_next = hbp->pciib_head;
501 hep->pcii_prev = NULL;
502 hbp->pciib_head = hep;
519 struct cmi_pcii_hashent *hep;
524 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) {
525 if (CMI_PCII_MATCH(hep, bus, dev, func, reg, asz)) {
526 *valp = hep->pcii_val;
533 return (hep != NULL);
541 struct cmi_pcii_hashent *hep;
545 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) {
546 if (CMI_PCII_MATCH(hep, bus, dev, func, reg, asz)) {
547 if (hep->pcii_prev != NULL)
548 hep->pcii_prev->pcii_next = hep->pcii_next;
550 if (hep->pcii_next != NULL)
551 hep->pcii_next->pcii_prev = hep->pcii_prev;
553 if (hbp->pciib_head == hep)
554 hbp->pciib_head = hep->pcii_next;
556 kmem_free(hep, sizeof (*hep));