| /kernel/lib/libc/string/ |
| A D | strlcpy.c | 13 strlcpy(char *dst, char const *src, size_t s) in strlcpy() argument 18 return strlen(src); in strlcpy() 21 for (i= 0; ((i< s-1) && src[i]); i++) { in strlcpy() 22 dst[i]= src[i]; in strlcpy() 27 return i + strlen(src+i); in strlcpy()
|
| A D | strlcat.c | 13 strlcat(char *dst, char const *src, size_t s) in strlcat() argument 19 return j+strlen(src); in strlcat() 24 for (i= 0; ((i< s-1) && src[i]); i++) { in strlcat() 25 dst[i]= src[i]; in strlcat() 30 return j + i + strlen(src+i); in strlcat()
|
| A D | strxfrm.c | 12 strxfrm(char *dest, const char *src, size_t n) in strxfrm() argument 14 size_t len = strlen(src); in strxfrm() 18 memcpy(dest, src, copy_len); in strxfrm()
|
| A D | strcpy.c | 12 strcpy(char *dest, char const *src) in strcpy() argument 16 while ((*dest++ = *src++) != '\0') in strcpy()
|
| A D | strcat.c | 12 strcat(char *dest, char const *src) in strcat() argument 18 while ((*dest++ = *src++) != '\0') in strcat()
|
| A D | strncpy.c | 12 strncpy(char *dest, char const *src, size_t count) in strncpy() argument 16 while (count-- && (*dest++ = *src++) != '\0') in strncpy()
|
| A D | strncat.c | 12 strncat(char *dest, char const *src, size_t count) in strncat() argument 19 while ((*dest++ = *src++)) { in strncat()
|
| A D | memcpy.c | 19 void *memcpy(void *dest, const void *src, size_t count) in memcpy() argument 22 const char *s = (const char *)src; in memcpy() 25 if (count == 0 || dest == src) in memcpy()
|
| A D | memmove.c | 19 memmove(void *dest, void const *src, size_t count) in memmove() argument 22 const char *s = (const char *)src; in memmove() 25 if (count == 0 || dest == src) in memmove()
|
| /kernel/target/pc/multiboot/ |
| A D | util.c | 8 void* memcpy(void* restrict dest, const void* restrict src, size_t len) { in memcpy() argument 13 "0"(dest), "1"(src), "2"(len) : in memcpy() 18 void* memmove(void* restrict dest, const void* restrict src, size_t len) { in memmove() argument 19 if ((uintptr_t)dest < (uintptr_t)src) { in memmove() 24 "0"(dest), "1"(src), "2"(len) : in memmove() 30 "=D"(dest), "=S"(src), "=c"(len) : in memmove() 32 "1"((uint8_t*)src + len - 1), in memmove()
|
| /kernel/arch/arm64/ |
| A D | user_copy_c.cpp | 12 zx_status_t arch_copy_from_user(void* dst, const void* src, size_t len) { in arch_copy_from_user() argument 16 if (!is_user_address_range((vaddr_t)src, len)) { in arch_copy_from_user() 20 return _arm64_user_copy(dst, src, len, in arch_copy_from_user() 24 zx_status_t arch_copy_to_user(void* dst, const void* src, size_t len) { in arch_copy_to_user() argument 29 return _arm64_user_copy(dst, src, len, in arch_copy_to_user()
|
| /kernel/object/ |
| A D | pager_dispatcher.cpp | 37 auto src = fbl::AdoptRef(new (&ac) PageSource(wrapper.get(), get_koid())); in CreateSource() local 43 wrapper->src_ = src; in CreateSource() 48 *src_out = ktl::move(src); in CreateSource() 52 void PagerDispatcher::ReleaseSource(PageSourceWrapper* src) { in ReleaseSource() argument 54 srcs_.erase(*src); in ReleaseSource() 62 auto& src = srcs_.front(); in on_zero_handles() local 65 fbl::AutoLock lock(&src.mtx_); in on_zero_handles() 66 inner = src.src_; in on_zero_handles()
|
| A D | buffer_chain.cpp | 29 zx_status_t BufferChain::CopyInKernel(const void* src, size_t dst_offset, size_t size) { in CopyInKernel() argument 30 return CopyInCommon(KernelPtrAdapter(src), dst_offset, size); in CopyInKernel() 33 template zx_status_t BufferChain::CopyInCommon(user_in_ptr<const void> src, size_t dst_offset,
|
| A D | mbuf.cpp | 51 char* src = cur.data_ + cur.off_; in Read() local 53 if (dst.byte_offset(pos).copy_array_to_user(src, copy_len) != ZX_OK) in Read() 79 zx_status_t MBufChain::WriteDatagram(user_in_ptr<const void> src, size_t len, in WriteDatagram() argument 103 if (src.byte_offset(pos).copy_array_from_user(buf.data_, copy_len) != ZX_OK) { in WriteDatagram() 130 zx_status_t MBufChain::WriteStream(user_in_ptr<const void> src, size_t len, size_t* written) { in WriteStream() argument 154 if (src.byte_offset(pos).copy_array_from_user(dst, copy_len) != ZX_OK) in WriteStream()
|
| /kernel/lib/libc/string/arch/x86/ |
| A D | tests.cpp | 46 char src[kBufLen + 1]; in memcpy_func_test() local 49 initialize_buffer(src, sizeof(src), static_cast<char>(len + 1), len); in memcpy_func_test() 50 cpy(dst, src, len); in memcpy_func_test() 51 ASSERT_TRUE(!memcmp(src, dst, len), "buffer mismatch"); in memcpy_func_test() 62 char src[kBufLen + 1]; in memcpy_func_test() local 68 src[i] = static_cast<char>(0xff); in memcpy_func_test() 71 src[i] = static_cast<char>(i - src_offset + 1); in memcpy_func_test() 73 src[kBufLen] = static_cast<char>(0xff); in memcpy_func_test() 76 cpy(dst + dst_offset, src + src_offset, cpy_len); in memcpy_func_test()
|
| /kernel/arch/x86/ |
| A D | user_copy.cpp | 65 zx_status_t arch_copy_from_user(void* dst, const void* src, size_t len) { in arch_copy_from_user() argument 68 if (!can_access(src, len)) in arch_copy_from_user() 72 zx_status_t status = _x86_copy_to_or_from_user(dst, src, len, in arch_copy_from_user() 79 zx_status_t arch_copy_to_user(void* dst, const void* src, size_t len) { in arch_copy_to_user() argument 86 zx_status_t status = _x86_copy_to_or_from_user(dst, src, len, in arch_copy_to_user()
|
| /kernel/include/arch/ |
| A D | user_copy.h | 27 zx_status_t arch_copy_from_user(void *dst, const void *src, size_t len); 41 zx_status_t arch_copy_to_user(void *dst, const void *src, size_t len);
|
| /kernel/object/include/object/ |
| A D | buffer_chain.h | 73 const char* src = iter->data() + copy_offset; in CopyOut() local 74 const zx_status_t status = dst.copy_array_to_user(src, copy_len); in CopyOut() 138 zx_status_t CopyIn(user_in_ptr<const void> src, size_t dst_offset, size_t size) { in CopyIn() argument 139 return CopyInCommon(src, dst_offset, size); in CopyIn() 143 zx_status_t CopyInKernel(const void* src, size_t dst_offset, size_t size); 186 zx_status_t CopyInCommon(PTR_IN src, size_t dst_offset, size_t size) { in CopyInCommon() argument 194 const zx_status_t status = src.copy_array_from_user(dst, copy_len); in CopyInCommon() 198 src = src.byte_offset(copy_len); in CopyInCommon()
|
| A D | socket_dispatcher.h | 36 zx_status_t Write(user_in_ptr<const void> src, size_t len, size_t* written); 38 zx_status_t WriteControl(user_in_ptr<const void> src, size_t len); 81 …zx_status_t WriteSelfLocked(user_in_ptr<const void> src, size_t len, size_t* nwritten) TA_REQ(get_… 82 zx_status_t WriteControlSelfLocked(user_in_ptr<const void> src, size_t len) TA_REQ(get_lock());
|
| /kernel/tests/ |
| A D | string_tests.cpp | 19 static uint8_t* src; variable 29 static inline void* mymemcpy(void* dst, const void* src, size_t len) { in mymemcpy() argument 30 return memcpy(dst, src, len); in mymemcpy() 37 extern void* mymemcpy(void* dst, const void* src, size_t len); 47 static void* c_memmove(void* dest, void const* src, size_t count) { in c_memmove() argument 49 const char* s = (const char*)src; in c_memmove() 52 if (count == 0 || dest == src) in c_memmove() 212 fillbuf(src, maxsize * 2, 567); in validate_memcpy() 301 src = dst = src2 = dst2 = nullptr; in string_tests() 315 src = base; in string_tests() [all …]
|
| /kernel/lib/gfx/ |
| A D | gfx.cpp | 178 if (dest < src) { in copyrect() 182 *dest = *src; in copyrect() 184 src++; in copyrect() 197 *dest = *src; in copyrect() 199 src--; in copyrect() 291 return src; in alpha32_add_ignore_destalpha() 352 *dest = *src; in gfx_surface_blend() 354 src++; in gfx_surface_blend() 374 src++; in gfx_surface_blend() 393 src++; in gfx_surface_blend() [all …]
|
| /kernel/lib/libc/string/arch/arm64/ |
| A D | rules.mk | 13 third_party/lib/cortex-strings/src/aarch64/memcpy.S \ 14 third_party/lib/cortex-strings/no-neon/src/aarch64/memset.S \
|
| /kernel/lib/user_copy/include/lib/user_copy/ |
| A D | user_ptr.h | 63 zx_status_t copy_to_user(const S& src) const { in copy_to_user() argument 66 return arch_copy_to_user(ptr_, &src, sizeof(S)); in copy_to_user() 70 zx_status_t copy_array_to_user(const T* src, size_t count) const { in copy_array_to_user() argument 76 return arch_copy_to_user(ptr_, src, len); in copy_array_to_user() 80 zx_status_t copy_array_to_user(const T* src, size_t count, size_t offset) const { in copy_array_to_user() argument 86 return arch_copy_to_user(ptr_ + offset, src, len); in copy_array_to_user()
|
| /kernel/syscalls/ |
| A D | pager.cpp | 51 fbl::RefPtr<PageSource> src; in sys_pager_create_vmo() local 52 status = pager_dispatcher->CreateSource(ktl::move(port_dispatcher), key, &src); in sys_pager_create_vmo() 58 status = VmObjectPaged::CreateExternal(ktl::move(src), size, &vmo); in sys_pager_create_vmo()
|
| /kernel/include/ |
| A D | mexec.h | 26 void* src; member 56 static_assert(__offsetof(memmov_ops_t, src) == MEMMOV_OPS_SRC_OFFSET, "");
|