Home
last modified time | relevance | path

Searched refs:ksegment (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/char/agp/
Dcompat_ioctl.c95 struct agp_segment *ksegment; in compat_agpioc_reserve_wrap() local
107 ksegment = kmalloc_array(kreserve.seg_count, in compat_agpioc_reserve_wrap()
108 sizeof(*ksegment), in compat_agpioc_reserve_wrap()
110 if (!ksegment) { in compat_agpioc_reserve_wrap()
118 kfree(ksegment); in compat_agpioc_reserve_wrap()
123 ksegment[seg].pg_start = usegment[seg].pg_start; in compat_agpioc_reserve_wrap()
124 ksegment[seg].pg_count = usegment[seg].pg_count; in compat_agpioc_reserve_wrap()
125 ksegment[seg].prot = usegment[seg].prot; in compat_agpioc_reserve_wrap()
129 kreserve.seg_list = ksegment; in compat_agpioc_reserve_wrap()
136 kfree(ksegment); in compat_agpioc_reserve_wrap()
/Linux-v5.15/kernel/
Dkexec_file.c414 struct kexec_segment *ksegment; in SYSCALL_DEFINE5() local
416 ksegment = &image->segment[i]; in SYSCALL_DEFINE5()
418 i, ksegment->buf, ksegment->bufsz, ksegment->mem, in SYSCALL_DEFINE5()
419 ksegment->memsz); in SYSCALL_DEFINE5()
669 struct kexec_segment *ksegment; in kexec_add_buffer() local
701 ksegment = &kbuf->image->segment[kbuf->image->nr_segments]; in kexec_add_buffer()
702 ksegment->kbuf = kbuf->buffer; in kexec_add_buffer()
703 ksegment->bufsz = kbuf->bufsz; in kexec_add_buffer()
704 ksegment->mem = kbuf->mem; in kexec_add_buffer()
705 ksegment->memsz = kbuf->memsz; in kexec_add_buffer()
[all …]