Lines Matching refs:hbp
327 struct cmi_msri_bkt *hbp = &msrihash[idx]; in msri_addent() local
330 mutex_enter(&hbp->msrib_lock); in msri_addent()
332 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) { in msri_addent()
345 if (hbp->msrib_head != NULL) in msri_addent()
346 hbp->msrib_head->msrie_prev = hep; in msri_addent()
347 hep->msrie_next = hbp->msrib_head; in msri_addent()
349 hbp->msrib_head = hep; in msri_addent()
352 mutex_exit(&hbp->msrib_lock); in msri_addent()
363 struct cmi_msri_bkt *hbp = &msrihash[idx]; in msri_lookup() local
374 if (!mutex_tryenter(&hbp->msrib_lock)) in msri_lookup()
377 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) { in msri_lookup()
384 mutex_exit(&hbp->msrib_lock); in msri_lookup()
397 struct cmi_msri_bkt *hbp = &msrihash[idx]; in msri_rment() local
400 if (!mutex_tryenter(&hbp->msrib_lock)) in msri_rment()
403 for (hep = hbp->msrib_head; hep != NULL; hep = hep->msrie_next) { in msri_rment()
411 if (hbp->msrib_head == hep) in msri_rment()
412 hbp->msrib_head = hep->msrie_next; in msri_rment()
419 mutex_exit(&hbp->msrib_lock); in msri_rment()
475 struct cmi_pcii_bkt *hbp = &pciihash[idx]; in pcii_addent() local
480 mutex_enter(&hbp->pciib_lock); in pcii_addent()
482 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) { in pcii_addent()
498 if (hbp->pciib_head != NULL) in pcii_addent()
499 hbp->pciib_head->pcii_prev = hep; in pcii_addent()
500 hep->pcii_next = hbp->pciib_head; in pcii_addent()
502 hbp->pciib_head = hep; in pcii_addent()
505 mutex_exit(&hbp->pciib_lock); in pcii_addent()
518 struct cmi_pcii_bkt *hbp = &pciihash[idx]; in pcii_lookup() local
521 if (!mutex_tryenter(&hbp->pciib_lock)) in pcii_lookup()
524 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) { in pcii_lookup()
531 mutex_exit(&hbp->pciib_lock); in pcii_lookup()
540 struct cmi_pcii_bkt *hbp = &pciihash[idx]; in pcii_rment() local
543 mutex_enter(&hbp->pciib_lock); in pcii_rment()
545 for (hep = hbp->pciib_head; hep != NULL; hep = hep->pcii_next) { in pcii_rment()
553 if (hbp->pciib_head == hep) in pcii_rment()
554 hbp->pciib_head = hep->pcii_next; in pcii_rment()
561 mutex_exit(&hbp->pciib_lock); in pcii_rment()