Lines Matching refs:ih
180 struct arbus_intrhand * const ih = kmem_zalloc(sizeof(*ih), KM_NOSLEEP);
181 if (ih == NULL)
184 ih->ih_cirq = ih->ih_mirq = -1;
185 ih->ih_cookie = NULL;
188 ih->ih_mirq = mirq;
189 ih->ih_cookie = atheros_misc_intr_establish(mirq, handler, arg);
191 ih->ih_cirq = cirq;
192 ih->ih_cookie = atheros_cpu_intr_establish(cirq, handler, arg);
194 return ih;
196 if (ih->ih_cookie == NULL) {
197 kmem_free(ih, sizeof(*ih));
200 return ih;
206 struct arbus_intrhand * const ih = arg;
207 if (ih->ih_mirq >= 0)
208 atheros_misc_intr_disestablish(ih->ih_cookie);
209 else if (ih->ih_cirq >= 0)
210 atheros_cpu_intr_disestablish(ih->ih_cookie);
211 kmem_free(ih, sizeof(*ih));