Lines Matching refs:gate
79 static inline void pack_gate(gate_desc *gate, unsigned type, unsigned long func, in pack_gate() argument
82 gate->offset_low = (u16) func; in pack_gate()
83 gate->bits.p = 1; in pack_gate()
84 gate->bits.dpl = dpl; in pack_gate()
85 gate->bits.zero = 0; in pack_gate()
86 gate->bits.type = type; in pack_gate()
87 gate->offset_middle = (u16) (func >> 16); in pack_gate()
89 gate->segment = __KERNEL_CS; in pack_gate()
90 gate->bits.ist = ist; in pack_gate()
91 gate->reserved = 0; in pack_gate()
92 gate->offset_high = (u32) (func >> 32); in pack_gate()
94 gate->segment = seg; in pack_gate()
95 gate->bits.ist = 0; in pack_gate()
136 static inline void native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate) in native_write_idt_entry() argument
138 memcpy(&idt[entry], gate, sizeof(*gate)); in native_write_idt_entry()
399 static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d) in idt_init_desc() argument
403 gate->offset_low = (u16) addr; in idt_init_desc()
404 gate->segment = (u16) d->segment; in idt_init_desc()
405 gate->bits = d->bits; in idt_init_desc()
406 gate->offset_middle = (u16) (addr >> 16); in idt_init_desc()
408 gate->offset_high = (u32) (addr >> 32); in idt_init_desc()
409 gate->reserved = 0; in idt_init_desc()