Lines Matching refs:iv_p

115 	intr_vec_t	*iv_p;  in iv_alloc()  local
126 iv_p = (type == SOFTINT_MT) ? in iv_alloc()
129 if (iv_p->iv_pil == 0) { in iv_alloc()
130 iv_p->iv_pil = 1; /* Default PIL */ in iv_alloc()
137 return (iv_p); in iv_alloc()
156 iv_p = kmem_cache_alloc(intr_vec_cache, KM_SLEEP); in iv_alloc()
157 bzero(iv_p, sizeof (intr_vec_t)); in iv_alloc()
158 iv_p->iv_flags = IV_CACHE_ALLOC; in iv_alloc()
160 return (iv_p); in iv_alloc()
167 iv_free(intr_vec_t *iv_p) in iv_free() argument
169 if (iv_p->iv_flags & IV_CACHE_ALLOC) { in iv_free()
170 ASSERT(!(iv_p->iv_flags & IV_SOFTINT_MT)); in iv_free()
171 kmem_cache_free(intr_vec_cache, iv_p); in iv_free()
174 bzero(iv_p, (iv_p->iv_flags & IV_SOFTINT_MT) ? in iv_free()
187 intr_vec_t *iv_p, *new_iv_p; in add_ivintr() local
200 for (iv_p = (intr_vec_t *)intr_vec_table[inum]; in add_ivintr()
201 iv_p; iv_p = iv_p->iv_vec_next) { in add_ivintr()
202 if (iv_p->iv_pil == pil) { in add_ivintr()
209 ASSERT(iv_p == NULL); in add_ivintr()
231 intr_vec_t *iv_p, *prev_iv_p; in rem_ivintr() local
238 for (iv_p = prev_iv_p = (intr_vec_t *)intr_vec_table[inum]; in rem_ivintr()
239 iv_p; prev_iv_p = iv_p, iv_p = iv_p->iv_vec_next) in rem_ivintr()
240 if (iv_p->iv_pil == pil) in rem_ivintr()
243 if (iv_p == NULL) { in rem_ivintr()
248 ASSERT(iv_p->iv_pil_next == NULL); in rem_ivintr()
250 if (prev_iv_p == iv_p) in rem_ivintr()
251 intr_vec_table[inum] = (uint64_t)iv_p->iv_vec_next; in rem_ivintr()
253 prev_iv_p->iv_vec_next = iv_p->iv_vec_next; in rem_ivintr()
257 iv_free(iv_p); in rem_ivintr()
268 intr_vec_t *iv_p; in add_softintr() local
273 iv_p = iv_alloc(type); in add_softintr()
275 iv_p->iv_handler = (intrfunc)intr_handler; in add_softintr()
276 iv_p->iv_arg1 = intr_arg1; in add_softintr()
277 iv_p->iv_pil = (ushort_t)pil; in add_softintr()
279 iv_p->iv_flags |= IV_SOFTINT_MT; in add_softintr()
283 iv_p->iv_vec_next = softint_list; in add_softintr()
284 softint_list = iv_p; in add_softintr()
287 return ((uint64_t)iv_p); in add_softintr()
296 intr_vec_t *iv_p = (intr_vec_t *)softint_id; in rem_softintr() local
298 ASSERT(iv_p != NULL); in rem_softintr()
300 if (iv_p->iv_flags & IV_SOFTINT_PEND) in rem_softintr()
303 ASSERT(iv_p->iv_pil_next == NULL); in rem_softintr()
306 if (softint_list == iv_p) { in rem_softintr()
307 softint_list = iv_p->iv_vec_next; in rem_softintr()
311 while (list && (list->iv_vec_next != iv_p)) in rem_softintr()
314 list->iv_vec_next = iv_p->iv_vec_next; in rem_softintr()
318 iv_free(iv_p); in rem_softintr()
331 intr_vec_t *iv_p = (intr_vec_t *)softint_id; in update_softint_arg2() local
333 ASSERT(iv_p != NULL); in update_softint_arg2()
335 if (iv_p->iv_flags & IV_SOFTINT_PEND) in update_softint_arg2()
338 iv_p->iv_arg2 = intr_arg2; in update_softint_arg2()
348 intr_vec_t *iv_p = (intr_vec_t *)softint_id; in update_softint_pri() local
350 ASSERT(iv_p != NULL); in update_softint_pri()
355 iv_p->iv_pil = pil; in update_softint_pri()