Searched defs:dst (Results 1 - 25 of 44) sorted by relevance

12

/device/google/contexthub/firmware/lib/libc/
H A Dstrncpy.c38 * Copy src to dst, truncating or null-padding to always copy n bytes.
39 * Return dst.
42 strncpy(char *dst, const char *src, size_t n) argument
45 char *d = dst;
57 return (dst);
H A Dbcopy.c70 char *dst = dst0; local
74 if (length == 0 || dst == src) /* nothing to do */
83 if ((unsigned long)dst < (unsigned long)src) {
88 if ((t | (uintptr_t)dst) & wmask) {
93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize)
98 TLOOP1(*dst++ = *src++);
104 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize);
106 TLOOP(*dst++ = *src++);
114 dst
[all...]
H A Dmemset.c67 u_char *dst; local
69 dst = dst0;
78 * dst dst+length-1
85 *dst++ = VAL;
103 if ((t = (long)dst & wmask) != 0) {
107 *dst++ = VAL;
114 *(u_int *)dst = WIDEVAL;
115 dst += wsize;
122 *dst
[all...]
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
H A Dns_netint.c28 uint16_t dst; local
30 NS_GET16(dst, src);
31 return (dst);
36 uint32_t dst; local
38 NS_GET32(dst, src);
39 return (dst);
43 ns_put16(uint16_t src, u_char *dst) { argument
44 NS_PUT16(src, dst);
48 ns_put32(uint32_t src, u_char *dst) { argument
49 NS_PUT32(src, dst);
[all...]
H A Dinet_neta.c80 * inet_neta(src, dst, size)
83 * pointer to dst, or NULL if an error occurred (check errno).
92 char *dst,
96 char *odst = dst;
106 tp = dst;
107 dst += SPRINTF((dst, "%u", b));
109 *dst++ = '.';
110 *dst = '\0';
112 size -= (size_t)(dst
90 inet_neta( u_long src, char *dst, size_t size ) argument
[all...]
H A Dinet_net_ntop.c40 char *dst, size_t size);
44 * inet_net_ntop(af, src, bits, dst, size)
48 * pointer to dst, or NULL if an error occurred (check errno).
57 char *dst,
63 return (inet_net_ntop_ipv4(src, bits, dst, size));
72 * inet_net_ntop_ipv4(src, bits, dst, size)
76 * pointer to dst, or NULL if an error occurred (check errno).
87 char *dst,
91 char *odst = dst;
103 *dst
53 inet_net_ntop( int af, const void *src, int bits, char *dst, size_t size ) argument
84 inet_net_ntop_ipv4( const u_char *src, int bits, char *dst, size_t size ) argument
[all...]
H A Dinet_net_pton.c81 static int inet_net_pton_ipv4 (const char *src, u_char *dst,
86 * inet_net_pton(af, src, dst, size)
89 * "size" is in bytes and describes "dst".
101 void *dst,
107 return (inet_net_pton_ipv4(src, dst, size));
116 * inet_net_pton_ipv4(src, dst, size)
119 * "size" is in bytes and describes "dst".
133 u_char *dst,
144 const u_char *odst = dst;
152 *dst
98 inet_net_pton( int af, const char *src, void *dst, size_t size ) argument
131 inet_net_pton_ipv4( const char *src, u_char *dst, size_t size ) argument
[all...]
H A Dmap_v4v6.c94 _map_v4v6_address(const char *src, char *dst) argument
96 u_char *p = (u_char *)dst;
H A Dns_ttl.c80 ns_format_ttl(u_long src, char *dst, size_t dstlen) { argument
81 char *odst = dst;
93 T(fmt1(weeks, 'W', &dst, &dstlen));
97 T(fmt1(days, 'D', &dst, &dstlen));
101 T(fmt1(hours, 'H', &dst, &dstlen));
105 T(fmt1(mins, 'M', &dst, &dstlen));
109 T(fmt1(secs, 'S', &dst, &dstlen));
121 return ((int)(dst - odst));
125 ns_parse_ttl(const char *src, u_long *dst) { argument
165 *dst
[all...]
H A Dns_name.c82 * ns_name_ntop(src, dst, dstsiz)
91 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) { argument
98 dn = dst;
99 eom = dst + dstsiz;
107 if (dn != dst) {
145 if (dn == dst) {
157 return ((int)(dn - dst));
161 * ns_name_pton(src, dst, dstsiz)
172 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { argument
178 bp = dst;
278 ns_name_unpack(const u_char *msg, const u_char *eom, const u_char *src, u_char *dst, size_t dstsiz) argument
364 ns_name_pack(const u_char *src, u_char *dst, int dstsiz, const u_char **dnptrs, const u_char **lastdnptr) argument
456 ns_name_uncompress(const u_char *msg, const u_char *eom, const u_char *src, char *dst, size_t dstsiz) argument
484 ns_name_compress(const char *src, u_char *dst, size_t dstsiz, const u_char **dnptrs, const u_char **lastdnptr) argument
[all...]
H A Dres_comp.c118 char *dst, int dstsiz)
120 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz);
122 if (n > 0 && dst[0] == '.')
123 dst[0] = '\0';
133 dn_comp(const char *src, u_char *dst, int dstsiz, argument
136 return (ns_name_compress(src, dst, (size_t)dstsiz,
279 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } argument
280 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } argument
117 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, char *dst, int dstsiz) argument
[all...]
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
H A Dwcsftime.c61 char *dst, *dstp, *sformat; local
65 sformat = dst = NULL;
89 dst = malloc(maxsize * MB_CUR_MAX);
90 if (dst == NULL)
92 if (strftime(dst, maxsize, sformat, timeptr) == 0)
94 dstp = dst;
100 free(dst);
106 free(dst);
H A Dmultibyte_Utf8.c374 If dst is not a null pointer, the converted character is then stored into
375 the array pointed to by dst.
607 pointed to by src into a sequence of corresponding wide characters. If dst is not a null
608 pointer, the converted characters are stored into the array pointed to by dst. Conversion
611 not form a valid multibyte character, or (if dst is not a null pointer) when len wide
612 characters have been stored into the array pointed to by dst. Each conversion takes
615 If dst is not a null pointer, the pointer object pointed to by src is assigned either a null
618 reaching a terminating null character and if dst is not a null pointer, the resulting state
621 @param[out] dst Pointer to where the resulting wide character sequence is stored.
623 @param[in] len Maximum number of wide characters to be stored into dst
637 mbsrtowcs( wchar_t *dst, const char **src, size_t len, mbstate_t *ps ) argument
[all...]
/device/linaro/bootloader/arm-trusted-firmware/lib/stdlib/
H A Dmem.c34 * Fill @count bytes of memory pointed to by @dst with @val
36 void *memset(void *dst, int val, size_t count) argument
38 char *ptr = dst;
43 return dst;
67 * Copy @len bytes from @src to @dst
69 void *memcpy(void *dst, const void *src, size_t len) argument
72 char *d = dst;
77 return dst;
81 * Move @len bytes from @src to @dst
83 void *memmove(void *dst, cons argument
[all...]
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/
H A Dinet_ntop.c61 static const char *inet_ntop4(const u_char *src, char *dst, socklen_t size);
62 static const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
65 * inet_ntop(af, src, dst, size)
68 * pointer to presentation format address (`dst'), or NULL (see errno).
73 inet_ntop(int af, const void *src, char *dst, socklen_t size) argument
77 _DIAGASSERT(dst != NULL);
81 return (inet_ntop4(src, dst, size));
83 return (inet_ntop6(src, dst, size));
92 * inet_ntop4(src, dst, size)
95 * `dst' (a
103 inet_ntop4(const u_char *src, char *dst, socklen_t size) argument
129 inet_ntop6(const u_char *src, char *dst, socklen_t size) argument
[all...]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
H A DglUtils.h56 void glUtilsPackPointerData(unsigned char *dst, unsigned char *str,
114 template <class T> void shiftIndices(const T *src, T *dst, int count, int offset) argument
117 *dst = *src + offset;
118 dst++;
139 (const T *src, T *dst, int count, int offset,
142 if (!shouldExclude) return shiftIndices(src, dst, count, offset);
146 *dst = *src;
148 *dst = *src + offset;
150 dst++;
138 shiftIndicesExcept(const T *src, T *dst, int count, int offset, bool shouldExclude, T whatExclude) argument
H A DglUtils.cpp401 void glUtilsPackPointerData(unsigned char *dst, unsigned char *src, argument
418 memcpy(dst, src, datalen);
421 memcpy(dst, src, vsize);
422 dst += vsize;
/device/google/contexthub/lib/nanohub/
H A Dnanoapp.c46 bool readFile(void *dst, uint32_t len, const char *fileName) argument
54 if (len != fread(dst, 1, len, f))
71 uint8_t *dst = NULL; local
81 len += grow; dst = reallocOrDie(dst, len);
83 block = fread(dst + total, 1, grow, f);
91 free(dst);
93 dst = NULL;
98 return dst;
H A Daes.c204 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) argument
249 *dst++ = *k++ ^
255 *dst++ = *k++ ^
261 *dst++ = *k++ ^
267 *dst++ = *k++ ^
274 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) argument
319 *dst++ = *k++ ^
325 *dst++ = *k++ ^
331 *dst++ = *k++ ^
337 *dst
358 aesCbcEncr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst) argument
369 aesCbcDecr(struct AesCbcContext *ctx, const uint32_t *src, uint32_t *dst) argument
[all...]
/device/google/contexthub/firmware/os/platform/stm32/
H A DeeData.c108 static bool eeWrite(void *dst, const void *src, uint32_t len) argument
110 return BL.blProgramEe(dst, src, len, BL_FLASH_KEY1, BL_FLASH_KEY2);
/device/google/dragon/recovery/updater/
H A Dupdate_fw.cpp52 static int update_partition(struct flash_device *src, struct flash_device *dst, argument
68 res = flash_erase(dst, offset, size);
74 res = flash_write(dst, offset, content, size);
/device/google/marlin/camera/QCamera2/HAL/test/
H A Dqcamera_test.cpp228 SkBitmap *dst; local
250 dst = bitmap0;
253 dst = bitmap1;
261 dstOffset = i * (unsigned int)dst->width() * mfmtMultiplier;
263 memcpy(((unsigned char *)dst->getPixels()) + dstOffset,
268 return dst;
/device/google/contexthub/util/nanoapp_encr/
H A Dnanoapp_encr.c37 static void rand_bytes(void *dst, uint32_t len) argument
50 if (len != fread(dst, 1, len, urandom)) {
/device/linaro/bootloader/arm-trusted-firmware/drivers/io/
H A Dio_fip.c116 static inline int copy_uuid(uuid_t *dst, const uuid_t *src) argument
118 memcpy(dst, src, sizeof(uuid_t));
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/drivers/
H A Dhisi_mcu.c148 ERROR("%s: number=%d, dst offset=%d size=%d\n",
217 int *src, *dst; local
231 dst = (int *)(intptr_t)mcu2ap_addr(head->secs[i].dst_offset);
233 memcpy((void *)dst, (void *)src, head->secs[i].size);
237 INFO("%s: dst = 0x%x\n", __func__, dst);
243 dst, dst[0], dst[1], dst[
[all...]

Completed in 293 milliseconds

12