Lines Matching refs:p
156 irq_desc_t *p = NULL; in irq_register() local
158 p = &interrupt_desc[irq_num - 32]; in irq_register()
160 p = &local_apic_interrupt_desc[irq_num - 150]; in irq_register()
166 p->controller = controller; in irq_register()
167 if (p->irq_name == NULL) in irq_register()
170 p->irq_name = (char *)kmalloc(namelen, 0); in irq_register()
171 memset(p->irq_name, 0, namelen); in irq_register()
172 strncpy(p->irq_name, irq_name, namelen); in irq_register()
175 p->parameter = paramater; in irq_register()
176 p->flags = 0; in irq_register()
177 p->handler = handler; in irq_register()
180 p->controller->install(irq_num, arg); in irq_register()
182 p->controller->enable(irq_num); in irq_register()
196 irq_desc_t *p = &interrupt_desc[irq_num - 32]; in irq_unregister() local
197 p->controller->disable(irq_num); in irq_unregister()
198 p->controller->uninstall(irq_num); in irq_unregister()
200 p->controller = NULL; in irq_unregister()
201 if (p->irq_name) in irq_unregister()
202 kfree(p->irq_name); in irq_unregister()
203 p->irq_name = NULL; in irq_unregister()
204 p->parameter = NULL; in irq_unregister()
205 p->flags = 0; in irq_unregister()
206 p->handler = NULL; in irq_unregister()