Lines Matching refs:tss_seg
2659 struct tss_segment_16 tss_seg; in task_switch_16() local
2663 ret = ops->read_std(ctxt, old_tss_base, &tss_seg, sizeof tss_seg, in task_switch_16()
2668 save_state_to_tss16(ctxt, &tss_seg); in task_switch_16()
2670 ret = ops->write_std(ctxt, old_tss_base, &tss_seg, sizeof tss_seg, in task_switch_16()
2675 ret = ops->read_std(ctxt, new_tss_base, &tss_seg, sizeof tss_seg, in task_switch_16()
2681 tss_seg.prev_task_link = old_tss_sel; in task_switch_16()
2684 &tss_seg.prev_task_link, in task_switch_16()
2685 sizeof tss_seg.prev_task_link, in task_switch_16()
2691 return load_state_from_tss16(ctxt, &tss_seg); in task_switch_16()
2803 struct tss_segment_32 tss_seg; in task_switch_32() local
2809 ret = ops->read_std(ctxt, old_tss_base, &tss_seg, sizeof tss_seg, in task_switch_32()
2814 save_state_to_tss32(ctxt, &tss_seg); in task_switch_32()
2817 ret = ops->write_std(ctxt, old_tss_base + eip_offset, &tss_seg.eip, in task_switch_32()
2822 ret = ops->read_std(ctxt, new_tss_base, &tss_seg, sizeof tss_seg, in task_switch_32()
2828 tss_seg.prev_task_link = old_tss_sel; in task_switch_32()
2831 &tss_seg.prev_task_link, in task_switch_32()
2832 sizeof tss_seg.prev_task_link, in task_switch_32()
2838 return load_state_from_tss32(ctxt, &tss_seg); in task_switch_32()