Lines Matching refs:ih_p

237 ib_cpu_ticks_to_ih_nsec(ib_t *ib_p, ih_t *ih_p, uint32_t cpu_id)  in ib_cpu_ticks_to_ih_nsec()  argument
256 ticks = atomic_swap_64(&ih_p->ih_ticks, 0); in ib_cpu_ticks_to_ih_nsec()
257 ih_p->ih_nsec += (uint64_t)tick2ns(ticks, cpu_id); in ib_cpu_ticks_to_ih_nsec()
511 ib_new_ino_pil(ib_t *ib_p, ib_ino_t ino_num, uint_t pil, ih_t *ih_p) in ib_new_ino_pil() argument
531 ih_p->ih_next = ih_p; in ib_new_ino_pil()
533 ipil_p->ipil_ih_head = ih_p; in ib_new_ino_pil()
534 ipil_p->ipil_ih_tail = ih_p; in ib_new_ino_pil()
535 ipil_p->ipil_ih_start = ih_p; in ib_new_ino_pil()
628 ib_ino_add_intr(pci_t *pci_p, ib_ino_pil_t *ipil_p, ih_t *ih_p) in ib_ino_add_intr() argument
664 ih_p->ih_next = ipil_p->ipil_ih_head; in ib_ino_add_intr()
665 ipil_p->ipil_ih_tail->ih_next = ih_p; in ib_ino_add_intr()
666 ipil_p->ipil_ih_tail = ih_p; in ib_ino_add_intr()
699 ib_ino_rem_intr(pci_t *pci_p, ib_ino_pil_t *ipil_p, ih_t *ih_p) in ib_ino_rem_intr() argument
735 if (ih_lst != ih_p) in ib_ino_rem_intr()
758 (i < ipil_p->ipil_ih_size) && (ih_lst->ih_next != ih_p); in ib_ino_rem_intr()
761 if (ih_lst->ih_next != ih_p) in ib_ino_rem_intr()
765 ih_lst->ih_next = ih_p->ih_next; in ib_ino_rem_intr()
766 if (ipil_p->ipil_ih_head == ih_p) in ib_ino_rem_intr()
767 ipil_p->ipil_ih_head = ih_p->ih_next; in ib_ino_rem_intr()
768 if (ipil_p->ipil_ih_tail == ih_p) in ib_ino_rem_intr()
772 if (ih_p->ih_config_handle) in ib_ino_rem_intr()
773 pci_config_teardown(&ih_p->ih_config_handle); in ib_ino_rem_intr()
774 if (ih_p->ih_ksp != NULL) in ib_ino_rem_intr()
775 kstat_delete(ih_p->ih_ksp); in ib_ino_rem_intr()
776 kmem_free(ih_p, sizeof (ih_t)); in ib_ino_rem_intr()
782 "ino_p=%x does not have ih_p=%x\n", ino_p, ih_p); in ib_ino_rem_intr()
788 ih_t *ih_p = ipil_p->ipil_ih_head; in ib_intr_locate_ih() local
791 for (i = 0; i < ipil_p->ipil_ih_size; i++, ih_p = ih_p->ih_next) { in ib_intr_locate_ih()
792 if (ih_p->ih_dip == rdip && ih_p->ih_inum == inum) in ib_intr_locate_ih()
793 return (ih_p); in ib_intr_locate_ih()
806 ih_t *ih_p; in ib_alloc_ih() local
808 ih_p = kmem_alloc(sizeof (ih_t), KM_SLEEP); in ib_alloc_ih()
809 ih_p->ih_dip = rdip; in ib_alloc_ih()
810 ih_p->ih_inum = inum; in ib_alloc_ih()
811 ih_p->ih_intr_state = PCI_INTR_STATE_DISABLE; in ib_alloc_ih()
812 ih_p->ih_handler = int_handler; in ib_alloc_ih()
813 ih_p->ih_handler_arg1 = int_handler_arg1; in ib_alloc_ih()
814 ih_p->ih_handler_arg2 = int_handler_arg2; in ib_alloc_ih()
815 ih_p->ih_config_handle = NULL; in ib_alloc_ih()
816 ih_p->ih_nsec = 0; in ib_alloc_ih()
817 ih_p->ih_ticks = 0; in ib_alloc_ih()
818 ih_p->ih_ksp = NULL; in ib_alloc_ih()
820 return (ih_p); in ib_alloc_ih()
831 ih_t *ih_p; in ib_update_intr_state() local
857 if (ih_p = ib_intr_locate_ih(ipil_p, rdip, hdlp->ih_inum)) { in ib_update_intr_state()
858 ih_p->ih_intr_state = new_intr_state; in ib_update_intr_state()
997 ih_t *ih_p; in ib_get_ino_devs() local
1008 for (i = 0, ih_p = ipil_p->ipil_ih_head; in ib_get_ino_devs()
1010 i++, j++, ih_p = ih_p->ih_next) { in ib_get_ino_devs()
1012 ddi_driver_name(ih_p->ih_dip), in ib_get_ino_devs()
1014 (void) ddi_pathname(ih_p->ih_dip, devs[i].path); in ib_get_ino_devs()
1016 ddi_get_instance(ih_p->ih_dip); in ib_get_ino_devs()
1032 ih_t *ih_p; in ib_log_new_cpu() local
1046 for (i = 0, ih_p = ipil_p->ipil_ih_head; in ib_log_new_cpu()
1048 i++, ih_p = ih_p->ih_next) { in ib_log_new_cpu()