Lines Matching refs:code
32 static inline int ext_hash(__u16 code)
34 return (code + (code >> 9)) & 0xff;
37 int register_external_interrupt(__u16 code, ext_int_handler_t handler)
45 p->code = code;
47 index = ext_hash(code);
53 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler,
60 p->code = code;
62 index = ext_hash(code);
68 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler)
73 index = ext_hash(code);
77 if (p->code == code && p->handler == handler)
92 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler,
98 if (p == NULL || p->code != code || p->handler != handler)
100 index = ext_hash(code);
116 void __irq_entry do_extint(struct pt_regs *regs, unsigned short code)
130 if (code != 0x1004)
132 index = ext_hash(code);
134 if (likely(p->code == code))
135 p->handler(code);