Lines Matching refs:gate
55 static inline void pack_gate(gate_desc *gate, unsigned type, unsigned long func, in pack_gate() argument
58 gate->offset_low = PTR_LOW(func); in pack_gate()
59 gate->segment = __KERNEL_CS; in pack_gate()
60 gate->ist = ist; in pack_gate()
61 gate->p = 1; in pack_gate()
62 gate->dpl = dpl; in pack_gate()
63 gate->zero0 = 0; in pack_gate()
64 gate->zero1 = 0; in pack_gate()
65 gate->type = type; in pack_gate()
66 gate->offset_middle = PTR_MIDDLE(func); in pack_gate()
67 gate->offset_high = PTR_HIGH(func); in pack_gate()
71 static inline void pack_gate(gate_desc *gate, unsigned char type, in pack_gate() argument
75 gate->a = (seg << 16) | (base & 0xffff); in pack_gate()
76 gate->b = (base & 0xffff0000) | (((0x80 | type | (dpl << 5)) & 0xff) << 8); in pack_gate()
119 static inline void native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate) in native_write_idt_entry() argument
121 memcpy(&idt[entry], gate, sizeof(*gate)); in native_write_idt_entry()
307 static inline void set_nmi_gate(int gate, void *addr) in set_nmi_gate() argument
312 write_idt_entry(debug_idt_table, gate, &s); in set_nmi_gate()
319 static inline void write_trace_idt_entry(int entry, const gate_desc *gate) in write_trace_idt_entry() argument
321 write_idt_entry(trace_idt_table, entry, gate); in write_trace_idt_entry()
324 static inline void _trace_set_gate(int gate, unsigned type, void *addr, in _trace_set_gate() argument
334 write_trace_idt_entry(gate, &s); in _trace_set_gate()
337 static inline void write_trace_idt_entry(int entry, const gate_desc *gate) in write_trace_idt_entry() argument
341 #define _trace_set_gate(gate, type, addr, dpl, ist, seg) argument
344 static inline void _set_gate(int gate, unsigned type, void *addr, in _set_gate() argument
354 write_idt_entry(idt_table, gate, &s); in _set_gate()
355 write_trace_idt_entry(gate, &s); in _set_gate()