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