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