Home
last modified time | relevance | path

Searched refs:iobm (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dioport.c54 struct io_bitmap *iobm = tsk->thread.io_bitmap; in io_bitmap_exit() local
58 if (iobm && refcount_dec_and_test(&iobm->refcnt)) in io_bitmap_exit()
59 kfree(iobm); in io_bitmap_exit()
69 struct io_bitmap *iobm; in ksys_ioperm() local
82 iobm = t->io_bitmap; in ksys_ioperm()
83 if (!iobm) { in ksys_ioperm()
87 iobm = kmalloc(sizeof(*iobm), GFP_KERNEL); in ksys_ioperm()
88 if (!iobm) in ksys_ioperm()
[all...]
H A Dprocess.c359 static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm) in tss_copy_io_bitmap() argument
369 memcpy(tss->io_bitmap.bitmap, iobm->bitmap, in tss_copy_io_bitmap()
370 max(tss->io_bitmap.prev_max, iobm->max)); in tss_copy_io_bitmap()
376 tss->io_bitmap.prev_max = iobm->max; in tss_copy_io_bitmap()
377 tss->io_bitmap.prev_sequence = iobm->sequence; in tss_copy_io_bitmap()
397 struct io_bitmap *iobm = t->io_bitmap; in native_tss_update_io_bitmap() local
403 if (tss->io_bitmap.prev_sequence != iobm->sequence) in native_tss_update_io_bitmap()
404 tss_copy_io_bitmap(tss, iobm); in native_tss_update_io_bitmap()
H A Dptrace.c677 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_active() local
679 return iobm ? DIV_ROUND_UP(iobm->max, regset->size) : 0; in ioperm_active()
686 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_get() local
688 if (!iobm) in ioperm_get()
691 return membuf_write(&to, iobm->bitmap, IO_BITMAP_BYTES); in ioperm_get()
H A Dsev-es.c457 struct io_bitmap *iobm = t->io_bitmap; in vc_ioio_check() local
460 if (!iobm) in vc_ioio_check()
464 if (test_bit(idx, iobm->bitmap)) in vc_ioio_check()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dioport.c54 struct io_bitmap *iobm = tsk->thread.io_bitmap; in io_bitmap_exit() local
58 if (iobm && refcount_dec_and_test(&iobm->refcnt)) in io_bitmap_exit()
59 kfree(iobm); in io_bitmap_exit()
69 struct io_bitmap *iobm; in ksys_ioperm() local
82 iobm = t->io_bitmap; in ksys_ioperm()
83 if (!iobm) { in ksys_ioperm()
87 iobm = kmalloc(sizeof(*iobm), GFP_KERNEL); in ksys_ioperm()
88 if (!iobm) in ksys_ioperm()
[all...]
H A Dprocess.c426 static void tss_copy_io_bitmap(struct tss_struct *tss, struct io_bitmap *iobm) in tss_copy_io_bitmap() argument
436 memcpy(tss->io_bitmap.bitmap, iobm->bitmap, in tss_copy_io_bitmap()
437 max(tss->io_bitmap.prev_max, iobm->max)); in tss_copy_io_bitmap()
443 tss->io_bitmap.prev_max = iobm->max; in tss_copy_io_bitmap()
444 tss->io_bitmap.prev_sequence = iobm->sequence; in tss_copy_io_bitmap()
464 struct io_bitmap *iobm = t->io_bitmap; in native_tss_update_io_bitmap() local
470 if (tss->io_bitmap.prev_sequence != iobm->sequence) in native_tss_update_io_bitmap()
471 tss_copy_io_bitmap(tss, iobm); in native_tss_update_io_bitmap()
H A Dptrace.c696 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_active() local
698 return iobm ? DIV_ROUND_UP(iobm->max, regset->size) : 0; in ioperm_active()
705 struct io_bitmap *iobm = target->thread.io_bitmap; in ioperm_get() local
707 if (!iobm) in ioperm_get()
710 return membuf_write(&to, iobm->bitmap, IO_BITMAP_BYTES); in ioperm_get()
H A Dsev.c533 struct io_bitmap *iobm = t->io_bitmap; in vc_ioio_check() local
536 if (!iobm) in vc_ioio_check()
540 if (test_bit(idx, iobm->bitmap)) in vc_ioio_check()

Completed in 12 milliseconds