Lines Matching refs:gate
80 static inline void pack_gate(gate_desc *gate, unsigned type, unsigned long func, in pack_gate() argument
83 gate->offset_low = (u16) func; in pack_gate()
84 gate->bits.p = 1; in pack_gate()
85 gate->bits.dpl = dpl; in pack_gate()
86 gate->bits.zero = 0; in pack_gate()
87 gate->bits.type = type; in pack_gate()
88 gate->offset_middle = (u16) (func >> 16); in pack_gate()
90 gate->segment = __KERNEL_CS; in pack_gate()
91 gate->bits.ist = ist; in pack_gate()
92 gate->reserved = 0; in pack_gate()
93 gate->offset_high = (u32) (func >> 32); in pack_gate()
95 gate->segment = seg; in pack_gate()
96 gate->bits.ist = 0; in pack_gate()
137 static inline void native_write_idt_entry(gate_desc *idt, int entry, const gate_desc *gate) in native_write_idt_entry() argument
139 memcpy(&idt[entry], gate, sizeof(*gate)); in native_write_idt_entry()
420 static inline void idt_init_desc(gate_desc *gate, const struct idt_data *d) in idt_init_desc() argument
424 gate->offset_low = (u16) addr; in idt_init_desc()
425 gate->segment = (u16) d->segment; in idt_init_desc()
426 gate->bits = d->bits; in idt_init_desc()
427 gate->offset_middle = (u16) (addr >> 16); in idt_init_desc()
429 gate->offset_high = (u32) (addr >> 32); in idt_init_desc()
430 gate->reserved = 0; in idt_init_desc()