Home
last modified time | relevance | path

Searched refs:kaddr (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/sys/cddl/dev/dtrace/arm/
H A Ddtrace_isa.c167 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck()
180 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin()
183 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin()
184 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin()
188 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout()
191 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout()
192 dtrace_copy(kaddr, uaddr, size); in dtrace_copyout()
196 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr()
199 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyinstr()
200 dtrace_copystr(uaddr, kaddr, siz in dtrace_copyinstr()
166 dtrace_copycheck(uintptr_t uaddr,uintptr_t kaddr,size_t size) dtrace_copycheck() argument
179 dtrace_copyin(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyin() argument
187 dtrace_copyout(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyout() argument
195 dtrace_copyinstr(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyinstr() argument
203 dtrace_copyoutstr(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyoutstr() argument
[all...]
/freebsd/sys/amd64/amd64/
H A Dcopyout.c150 int copyinstr_nosmap(const void *udaddr, void *kaddr, size_t len,
152 int copyinstr_smap(const void *udaddr, void *kaddr, size_t len,
161 int copyin_nosmap_std(const void *udaddr, void *kaddr, size_t len);
162 int copyin_smap_std(const void *udaddr, void *kaddr, size_t len);
163 int copyin_nosmap_erms(const void *udaddr, void *kaddr, size_t len);
164 int copyin_smap_erms(const void *udaddr, void *kaddr, size_t len);
180 int copyout_nosmap_std(const void *kaddr, void *udaddr, size_t len);
181 int copyout_smap_std(const void *kaddr, void *udaddr, size_t len);
182 int copyout_nosmap_erms(const void *kaddr, void *udaddr, size_t len);
183 int copyout_smap_erms(const void *kaddr, void *udaddr, size_t len);
/freebsd/sys/cddl/dev/dtrace/aarch64/
H A Ddtrace_isa.c324 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck()
337 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin()
341 if (dtrace_copycheck(uaddr, kaddr, size))
342 dtrace_copy(uaddr, kaddr, size);
346 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout()
350 if (dtrace_copycheck(uaddr, kaddr, size))
351 dtrace_copy(kaddr, uaddr, size);
355 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr()
359 if (dtrace_copycheck(uaddr, kaddr, size))
360 dtrace_copystr(uaddr, kaddr, siz
321 dtrace_copycheck(uintptr_t uaddr,uintptr_t kaddr,size_t size) dtrace_copycheck() argument
334 dtrace_copyin(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyin() argument
343 dtrace_copyout(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyout() argument
352 dtrace_copyinstr(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyinstr() argument
361 dtrace_copyoutstr(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyoutstr() argument
[all...]
/freebsd/sys/cddl/dev/dtrace/riscv/
H A Ddtrace_isa.c352 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck()
365 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin()
369 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin()
370 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin()
374 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout()
378 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout()
379 dtrace_copy(kaddr, uaddr, size); in dtrace_copyout()
383 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr()
387 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyinstr()
388 dtrace_copystr(uaddr, kaddr, siz in dtrace_copyinstr()
351 dtrace_copycheck(uintptr_t uaddr,uintptr_t kaddr,size_t size) dtrace_copycheck() argument
364 dtrace_copyin(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyin() argument
373 dtrace_copyout(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyout() argument
382 dtrace_copyinstr(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyinstr() argument
391 dtrace_copyoutstr(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyoutstr() argument
[all...]
/freebsd/sys/i386/i386/
H A Dcopyout.c46 int copyin_fast(const void *udaddr, void *kaddr, size_t len, u_int);
48 int copyout_fast(const void *kaddr, void *udaddr, size_t len, u_int);
96 vm_offset_t kaddr; in cp_slow0() local
114 kaddr = pc->pc_copyout_maddr; in cp_slow0()
118 kaddr = pc->pc_copyout_saddr; in cp_slow0()
120 pmap_cp_slow0_map(kaddr, plen, m); in cp_slow0()
121 kaddr += uva - trunc_page(uva); in cp_slow0()
122 f(kaddr, arg); in cp_slow0()
158 copyinstr(const void *udaddr, void *kaddr, size_t maxlen, size_t *lencopied) in copyinstr() argument
167 for (plen = 0, uc = (vm_offset_t)udaddr, ca.kc = (vm_offset_t)kaddr; in copyinstr()
[all …]
/freebsd/sys/cddl/dev/dtrace/powerpc/
H A Ddtrace_isa.c560 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size)
562 ASSERT(INKERNEL(kaddr) && kaddr + size >= kaddr);
574 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size,
577 if (dtrace_copycheck(uaddr, kaddr, size))
578 if (copyin((const void *)uaddr, (void *)kaddr, size)) {
585 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size,
588 if (dtrace_copycheck(uaddr, kaddr, size)) {
589 if (copyout((const void *)kaddr, (voi
558 dtrace_copycheck(uintptr_t uaddr,uintptr_t kaddr,size_t size) global() argument
572 dtrace_copyin(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) global() argument
583 dtrace_copyout(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) global() argument
595 dtrace_copyinstr(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) global() argument
618 dtrace_copyoutstr(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) global() argument
[all...]
/freebsd/sys/cddl/dev/dtrace/i386/
H A Ddtrace_isa.c587 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck()
589 ASSERT(kaddr >= kernelbase && kaddr + size >= kaddr); in dtrace_copycheck()
601 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin()
604 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin()
605 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin()
609 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout()
612 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout()
613 dtrace_copy(kaddr, uadd in dtrace_copyout()
586 dtrace_copycheck(uintptr_t uaddr,uintptr_t kaddr,size_t size) dtrace_copycheck() argument
600 dtrace_copyin(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyin() argument
608 dtrace_copyout(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyout() argument
616 dtrace_copyinstr(uintptr_t uaddr,uintptr_t kaddr,size_t size,volatile uint16_t * flags) dtrace_copyinstr() argument
624 dtrace_copyoutstr(uintptr_t kaddr,uintptr_t uaddr,size_t size,volatile uint16_t * flags) dtrace_copyoutstr() argument
[all...]
/freebsd/sys/cddl/dev/dtrace/amd64/
H A Ddtrace_isa.c560 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck() argument
562 ASSERT(INKERNEL(kaddr) && kaddr + size >= kaddr); in dtrace_copycheck()
574 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin() argument
577 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin()
578 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin()
582 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout() argument
585 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout()
586 dtrace_copy(kaddr, uaddr, size); in dtrace_copyout()
590 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr() argument
593 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyinstr()
[all …]
/freebsd/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_proc.c31 uread(proc_t *p, void *kaddr, size_t len, uintptr_t uaddr) in uread() argument
35 n = proc_readmem(curthread, p, uaddr, kaddr, len); in uread()
42 uwrite(proc_t *p, void *kaddr, size_t len, uintptr_t uaddr) in uwrite() argument
46 n = proc_writemem(curthread, p, uaddr, kaddr, len); in uwrite()
/freebsd/usr.bin/ipcs/
H A Dipc.c131 unsigned long kaddr; in kget() local
157 kaddr = (u_long)msqids; in kget()
163 kaddr = (u_long)shmsegs; in kget()
169 kaddr = (u_long)sema; in kget()
173 kaddr = symbols[idx].n_value; in kget()
178 if ((unsigned)kvm_read(kd, kaddr, addr, size) != size) in kget()
/freebsd/sys/dev/smbus/
H A Dsmb.c176 smbcopyincmd32(struct smbcmd32 *uaddr, struct smbcmd *kaddr) in smbcopyincmd32() argument
178 CP(*uaddr, *kaddr, cmd); in smbcopyincmd32()
179 CP(*uaddr, *kaddr, op); in smbcopyincmd32()
180 CP(*uaddr, *kaddr, wdata.word); in smbcopyincmd32()
181 CP(*uaddr, *kaddr, slave); in smbcopyincmd32()
182 PTRIN_CP(*uaddr, *kaddr, wbuf); in smbcopyincmd32()
183 CP(*uaddr, *kaddr, wcount); in smbcopyincmd32()
184 PTRIN_CP(*uaddr, *kaddr, rbuf); in smbcopyincmd32()
185 CP(*uaddr, *kaddr, rcount); in smbcopyincmd32()
/freebsd/sys/powerpc/powerpc/
H A Dcopyinout.c93 int copyinstr_remap(const void *udaddr, void *kaddr, size_t len, size_t *done);
94 int copyinstr_direct(const void *udaddr, void *kaddr, size_t len, size_t *done);
95 int copyout_remap(const void *kaddr, void *udaddr, size_t len);
96 int copyout_direct(const void *kaddr, void *udaddr, size_t len);
97 int copyin_remap(const void *uaddr, void *kaddr, size_t len);
98 int copyin_direct(const void *uaddr, void *kaddr, size_t len);
159 REMAP(copyout)(const void *kaddr, void *udaddr, size_t len) in REMAP()
177 kp = kaddr; in REMAP()
198 REMAP(copyin)(const void *udaddr, void *kaddr, size_t len) in REMAP()
216 kp = kaddr; in REMAP()
[all …]
/freebsd/sys/arm64/arm64/
H A Ddb_interface.c158 void *prev_jb, *kaddr; in db_write_bytes() local
166 if (!arm64_get_writable_addr((void *)addr, &kaddr)) { in db_write_bytes()
178 cpu_icache_sync_range(kaddr, size); in db_write_bytes()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Duaccess.h64 extern int linux_copyin(const void *uaddr, void *kaddr, size_t len);
65 extern int linux_copyout(const void *kaddr, void *uaddr, size_t len);
/freebsd/sys/kern/
H A Dsubr_csan.c355 kcsan_copyin(const void *uaddr, void *kaddr, size_t len) in kcsan_copyin() argument
357 kcsan_access((uintptr_t)kaddr, len, true, false, __RET_ADDR); in kcsan_copyin()
358 return copyin(uaddr, kaddr, len); in kcsan_copyin()
362 kcsan_copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done) in kcsan_copyinstr() argument
364 kcsan_access((uintptr_t)kaddr, len, true, false, __RET_ADDR); in kcsan_copyinstr()
365 return copyinstr(uaddr, kaddr, len, done); in kcsan_copyinstr()
369 kcsan_copyout(const void *kaddr, void *uaddr, size_t len) in kcsan_copyout() argument
371 kcsan_access((uintptr_t)kaddr, len, false, false, __RET_ADDR); in kcsan_copyout()
372 return copyout(kaddr, uaddr, len); in kcsan_copyout()
H A Dsubr_msan.c863 kmsan_copyin(const void *uaddr, void *kaddr, size_t len) in kmsan_copyin() argument
867 kmsan_check_arg(sizeof(uaddr) + sizeof(kaddr) + sizeof(len), in kmsan_copyin()
869 ret = copyin(uaddr, kaddr, len); in kmsan_copyin()
871 kmsan_shadow_fill((uintptr_t)kaddr, KMSAN_STATE_INITED, len); in kmsan_copyin()
877 kmsan_copyout(const void *kaddr, void *uaddr, size_t len) in kmsan_copyout() argument
879 kmsan_check_arg(sizeof(kaddr) + sizeof(uaddr) + sizeof(len), in kmsan_copyout()
881 kmsan_shadow_check((uintptr_t)kaddr, len, "copyout():arg1"); in kmsan_copyout()
883 return (copyout(kaddr, uaddr, len)); in kmsan_copyout()
887 kmsan_copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done) in kmsan_copyinstr() argument
892 kmsan_check_arg(sizeof(uaddr) + sizeof(kaddr) + in kmsan_copyinstr()
[all …]
H A Dsubr_asan.c525 kasan_copyin(const void *uaddr, void *kaddr, size_t len) in kasan_copyin() argument
527 kasan_shadow_check((unsigned long)kaddr, len, true, __RET_ADDR); in kasan_copyin()
528 return (copyin(uaddr, kaddr, len)); in kasan_copyin()
532 kasan_copyinstr(const void *uaddr, void *kaddr, size_t len, size_t *done) in kasan_copyinstr() argument
534 kasan_shadow_check((unsigned long)kaddr, len, true, __RET_ADDR); in kasan_copyinstr()
535 return (copyinstr(uaddr, kaddr, len, done)); in kasan_copyinstr()
539 kasan_copyout(const void *kaddr, void *uaddr, size_t len) in kasan_copyout() argument
541 kasan_shadow_check((unsigned long)kaddr, len, false, __RET_ADDR); in kasan_copyout()
542 return (copyout(kaddr, uaddr, len)); in kasan_copyout()
H A Dsubr_uio.c70 copyin_nofault(const void *udaddr, void *kaddr, size_t len) in copyin_nofault() argument
75 error = copyin(udaddr, kaddr, len); in copyin_nofault()
81 copyout_nofault(const void *kaddr, void *udaddr, size_t len) in copyout_nofault() argument
86 error = copyout(kaddr, udaddr, len); in copyout_nofault()
/freebsd/sys/sys/
H A Dsystm.h306 void * _Nonnull __restrict kaddr, size_t len,
309 void * _Nonnull __restrict kaddr, size_t len);
311 void * _Nonnull __restrict kaddr, size_t len);
312 int __result_use_or_ignore_check copyout(const void * _Nonnull __restrict kaddr,
315 const void * _Nonnull __restrict kaddr, void * __restrict udaddr,
/freebsd/usr.bin/vmstat/
H A Dvmstat.c1192 uintptr_t kaddr; in read_intrcnts() local
1201 kread(X_INTRCNT, &kaddr, sizeof(kaddr)); in read_intrcnts()
1202 kreadptr(kaddr, *intrcnts, intrcntlen); in read_intrcnts()
1257 uintptr_t kaddr; in dointr() local
1271 kread(X_INTRNAMES, &kaddr, sizeof(kaddr)); in dointr()
1272 kreadptr(kaddr, intrnames, inamlen); in dointr()
/freebsd/sys/geom/eli/
H A Dg_eli_privacy.c65 g_eli_bio_copyin(struct bio *bp, void *kaddr) in g_eli_bio_copyin() argument
70 iov[0].iov_base = kaddr; in g_eli_bio_copyin()
/freebsd/sys/dev/usb/
H A Dusb_generic.c1270 void *kaddr; in ugen_fs_copy_in() local
1404 kaddr = xfer->frbuffers[0].buffer; in ugen_fs_copy_in()
1405 kaddr = USB_ADD_BYTES(kaddr, offset); in ugen_fs_copy_in()
1411 kaddr = xfer->frbuffers[n].buffer; in ugen_fs_copy_in()
1415 error = copyin(uaddr, kaddr, length); in ugen_fs_copy_in()
1551 void *kaddr; in ugen_fs_copy_out() local
1651 kaddr = USB_ADD_BYTES( in ugen_fs_copy_out()
1655 kaddr = xfer->frbuffers[n].buffer; in ugen_fs_copy_out()
1659 error = copyout(kaddr, uaddr, length); in ugen_fs_copy_out()
/freebsd/sys/i386/include/
H A Dpmap_base.h52 void (*pm_cp_slow0_map)(vm_offset_t kaddr, int plen, vm_page_t *ma);
/freebsd/sys/dev/cxgbe/crypto/
H A Dt4_crypto.h209 __be32 kaddr; member
/freebsd/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c117 copyout_page(vm_page_t p, size_t offset, void *kaddr, size_t size) in copyout_page() argument
125 memcpy(dst + offset, kaddr, size); in copyout_page()

12