Home
last modified time | relevance | path

Searched refs:kiov (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/include/linux/
Dvringh.h178 static inline void vringh_kiov_init(struct vringh_kiov *kiov, in vringh_kiov_init() argument
181 kiov->used = kiov->i = 0; in vringh_kiov_init()
182 kiov->consumed = 0; in vringh_kiov_init()
183 kiov->max_num = num; in vringh_kiov_init()
184 kiov->iov = kvec; in vringh_kiov_init()
187 static inline void vringh_kiov_reset(struct vringh_kiov *kiov) in vringh_kiov_reset() argument
189 kiov->iov[kiov->i].iov_len += kiov->consumed; in vringh_kiov_reset()
190 kiov->iov[kiov->i].iov_base -= kiov->consumed; in vringh_kiov_reset()
191 kiov->consumed = 0; in vringh_kiov_reset()
192 kiov->i = 0; in vringh_kiov_reset()
[all …]
/linux-6.1.9/arch/arm64/kernel/
Dmte.c421 struct iovec *kiov, unsigned int gup_flags) in __access_remote_tags() argument
424 void __user *buf = kiov->iov_base; in __access_remote_tags()
425 size_t len = kiov->iov_len; in __access_remote_tags()
483 kiov->iov_len = buf - kiov->iov_base; in __access_remote_tags()
484 if (!kiov->iov_len) { in __access_remote_tags()
500 struct iovec *kiov, unsigned int gup_flags) in access_remote_tags() argument
516 ret = __access_remote_tags(mm, addr, kiov, gup_flags); in access_remote_tags()
526 struct iovec kiov; in mte_ptrace_copy_tags() local
533 if (get_user(kiov.iov_base, &uiov->iov_base) || in mte_ptrace_copy_tags()
534 get_user(kiov.iov_len, &uiov->iov_len)) in mte_ptrace_copy_tags()
[all …]
/linux-6.1.9/kernel/
Dptrace.c908 struct iovec *kiov) in ptrace_regset() argument
914 if (!regset || (kiov->iov_len % regset->size) != 0) in ptrace_regset()
918 kiov->iov_len = min(kiov->iov_len, in ptrace_regset()
923 kiov->iov_len, kiov->iov_base); in ptrace_regset()
926 kiov->iov_len, kiov->iov_base); in ptrace_regset()
1227 struct iovec kiov; in ptrace_request() local
1233 if (__get_user(kiov.iov_base, &uiov->iov_base) || in ptrace_request()
1234 __get_user(kiov.iov_len, &uiov->iov_len)) in ptrace_request()
1237 ret = ptrace_regset(child, request, addr, &kiov); in ptrace_request()
1239 ret = __put_user(kiov.iov_len, &uiov->iov_len); in ptrace_request()
[all …]
/linux-6.1.9/drivers/tee/
Dtee_shm.c43 struct kvec *kiov; in shm_get_kernel_pages() local
45 kiov = kcalloc(page_count, sizeof(*kiov), GFP_KERNEL); in shm_get_kernel_pages()
46 if (!kiov) in shm_get_kernel_pages()
50 kiov[n].iov_base = (void *)(start + n * PAGE_SIZE); in shm_get_kernel_pages()
51 kiov[n].iov_len = PAGE_SIZE; in shm_get_kernel_pages()
54 rc = get_kernel_pages(kiov, page_count, 0, pages); in shm_get_kernel_pages()
55 kfree(kiov); in shm_get_kernel_pages()
/linux-6.1.9/mm/
Dswap.c173 int get_kernel_pages(const struct kvec *kiov, int nr_segs, int write, in get_kernel_pages() argument
179 if (WARN_ON(kiov[seg].iov_len != PAGE_SIZE)) in get_kernel_pages()
182 pages[seg] = kmap_to_page(kiov[seg].iov_base); in get_kernel_pages()