Lines Matching defs:code
30 static inline int ext_hash(__u16 code)
32 return (code + (code >> 9)) & 0xff;
35 int register_external_interrupt(__u16 code, ext_int_handler_t handler)
43 p->code = code;
45 index = ext_hash(code);
51 int register_early_external_interrupt(__u16 code, ext_int_handler_t handler,
58 p->code = code;
60 index = ext_hash(code);
66 int unregister_external_interrupt(__u16 code, ext_int_handler_t handler)
71 index = ext_hash(code);
75 if (p->code == code && p->handler == handler)
90 int unregister_early_external_interrupt(__u16 code, ext_int_handler_t handler,
96 if (p == NULL || p->code != code || p->handler != handler)
98 index = ext_hash(code);
114 void do_extint(struct pt_regs *regs, unsigned short code)
130 index = ext_hash(code);
132 if (likely(p->code == code))
133 p->handler(code);