Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 110) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dfile_util.py18 def _copy_file_contents(src, dst, buffer_size=16*1024): argument
36 if os.path.exists(dst):
38 os.unlink(dst)
41 "could not delete '%s': %s" % (dst, errstr))
44 fdst = open(dst, 'wb')
47 "could not create '%s': %s" % (dst, errstr))
63 "could not write to '%s': %s" % (dst, errstr))
71 def copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0, argument
111 if os.path.isdir(dst):
112 dir = dst
[all …]
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dinet_net_ntop.c40 char *dst, size_t size);
57 char *dst, in inet_net_ntop() argument
63 return (inet_net_ntop_ipv4(src, bits, dst, size)); in inet_net_ntop()
87 char *dst, in inet_net_ntop_ipv4() argument
91 char *odst = dst; in inet_net_ntop_ipv4()
103 *dst++ = '0'; in inet_net_ntop_ipv4()
104 *dst = '\0'; in inet_net_ntop_ipv4()
111 t = dst; in inet_net_ntop_ipv4()
112 dst += SPRINTF((dst, "%u", *src++)); in inet_net_ntop_ipv4()
114 *dst++ = '.'; in inet_net_ntop_ipv4()
[all …]
Dns_netint.c28 uint16_t dst; in ns_get16() local
30 NS_GET16(dst, src); in ns_get16()
31 return (dst); in ns_get16()
36 uint32_t dst; in ns_get32() local
38 NS_GET32(dst, src); in ns_get32()
39 return (dst); in ns_get32()
43 ns_put16(uint16_t src, u_char *dst) { in ns_put16() argument
44 NS_PUT16(src, dst); in ns_put16()
48 ns_put32(uint32_t src, u_char *dst) { in ns_put32() argument
49 NS_PUT32(src, dst); in ns_put32()
Dinet_neta.c92 char *dst, in inet_neta() argument
96 char *odst = dst; in inet_neta()
106 tp = dst; in inet_neta()
107 dst += SPRINTF((dst, "%u", b)); in inet_neta()
109 *dst++ = '.'; in inet_neta()
110 *dst = '\0'; in inet_neta()
112 size -= (size_t)(dst - tp); in inet_neta()
115 if (dst == odst) { in inet_neta()
118 strcpy(dst, "0.0.0.0"); in inet_neta()
Dinet_net_pton.c81 static int inet_net_pton_ipv4 (const char *src, u_char *dst,
101 void *dst, in inet_net_pton() argument
107 return (inet_net_pton_ipv4(src, dst, size)); in inet_net_pton()
133 u_char *dst, in inet_net_pton_ipv4() argument
144 const u_char *odst = dst; in inet_net_pton_ipv4()
152 *dst = 0, dirty = 0; in inet_net_pton_ipv4()
160 *dst |= n; in inet_net_pton_ipv4()
162 *dst <<= 4; in inet_net_pton_ipv4()
164 *++dst = 0, dirty = 0; in inet_net_pton_ipv4()
185 *dst++ = (u_char) tmp; in inet_net_pton_ipv4()
[all …]
Dns_name.c91 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) { in ns_name_ntop() argument
98 dn = dst; in ns_name_ntop()
99 eom = dst + dstsiz; in ns_name_ntop()
107 if (dn != dst) { in ns_name_ntop()
145 if (dn == dst) { in ns_name_ntop()
157 return ((int)(dn - dst)); in ns_name_ntop()
172 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton() argument
178 bp = dst; in ns_name_pton()
179 eom = dst + dstsiz; in ns_name_pton()
228 if ((bp - dst) > MAXCDNAME) { in ns_name_pton()
[all …]
Dns_ttl.c80 ns_format_ttl(u_long src, char *dst, size_t dstlen) { in ns_format_ttl() argument
81 char *odst = dst; in ns_format_ttl()
93 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl()
97 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
101 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
105 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl()
109 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl()
121 return ((int)(dst - odst)); in ns_format_ttl()
125 ns_parse_ttl(const char *src, u_long *dst) { in ns_parse_ttl() argument
165 *dst = ttl; in ns_parse_ttl()
Dres_comp.c118 char *dst, int dstsiz) in dn_expand() argument
120 int n = ns_name_uncompress(msg, eom, src, dst, (size_t)dstsiz); in dn_expand()
122 if (n > 0 && dst[0] == '.') in dn_expand()
123 dst[0] = '\0'; in dn_expand()
133 dn_comp(const char *src, u_char *dst, int dstsiz, in dn_comp() argument
136 return (ns_name_compress(src, dst, (size_t)dstsiz, in dn_comp()
279 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } in __putlong() argument
280 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } in __putshort() argument
Dinet_pton.c75 static int inet_pton4 (const char *src, u_char *dst);
76 static int inet_pton6 (const char *src, u_char *dst);
93 void *dst in inet_pton() argument
98 return (inet_pton4(src, dst)); in inet_pton()
100 return (inet_pton6(src, dst)); in inet_pton()
121 u_char *dst in inet_pton4() argument
156 memcpy(dst, tmp, NS_INADDRSZ); in inet_pton4()
176 u_char *dst in inet_pton6() argument
255 memcpy(dst, tmp, NS_IN6ADDRSZ); in inet_pton6()
/device/linaro/bootloader/edk2/MdePkg/Library/BaseMemoryLibOptDxe/AArch64/
DSetMem.S67 #define dst x3 macro
150 bic dst, dstin, 15
156 sub count, dstend, dst // Count is 16 too large.
157 add dst, dst, 16
159 1: stp q0, q0, [dst], 64
160 stp q0, q0, [dst, -32]
179 str q0, [dst, 16]
180 stp q0, q0, [dst, 32]
181 bic dst, dst, 63
182 stp q0, q0, [dst, 64]
[all …]
/device/google/contexthub/firmware/lib/libc/
Dbcopy.c70 char *dst = dst0; in memcpy() local
74 if (length == 0 || dst == src) /* nothing to do */ in memcpy()
83 if ((unsigned long)dst < (unsigned long)src) { in memcpy()
88 if ((t | (uintptr_t)dst) & wmask) { in memcpy()
93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) in memcpy()
98 TLOOP1(*dst++ = *src++); in memcpy()
104 TLOOP(*(word *)dst = *(word *)src; src += wsize; dst += wsize); in memcpy()
106 TLOOP(*dst++ = *src++); in memcpy()
114 dst += length; in memcpy()
116 if ((t | (uintptr_t)dst) & wmask) { in memcpy()
[all …]
Dmemset.c67 u_char *dst; in bzero() local
69 dst = dst0; in bzero()
85 *dst++ = VAL; in bzero()
103 if ((t = (long)dst & wmask) != 0) { in bzero()
107 *dst++ = VAL; in bzero()
114 *(u_int *)dst = WIDEVAL; in bzero()
115 dst += wsize; in bzero()
122 *dst++ = VAL; in bzero()
/device/linaro/bootloader/arm-trusted-firmware/lib/stdlib/
Dmem.c12 void *memset(void *dst, int val, size_t count) in memset() argument
14 char *ptr = dst; in memset()
19 return dst; in memset()
45 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument
48 char *d = dst; in memcpy()
53 return dst; in memcpy()
59 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
69 if ((size_t)dst - (size_t)src >= len) { in memmove()
71 return memcpy(dst, src, len); in memmove()
74 const char *end = dst; in memmove()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dshutil.py54 def _samefile(src, dst): argument
58 return os.path.samefile(src, dst)
64 os.path.normcase(os.path.abspath(dst)))
66 def copyfile(src, dst): argument
68 if _samefile(src, dst):
69 raise Error("`%s` and `%s` are the same file" % (src, dst))
71 for fn in [src, dst]:
83 with open(dst, 'wb') as fdst:
86 def copymode(src, dst): argument
91 os.chmod(dst, mode)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dshutil.py53 def _samefile(src, dst): argument
57 return os.path.samefile(src, dst)
63 os.path.normcase(os.path.abspath(dst)))
65 def copyfile(src, dst): argument
67 if _samefile(src, dst):
68 raise Error("`%s` and `%s` are the same file" % (src, dst))
70 for fn in [src, dst]:
82 with open(dst, 'wb') as fdst:
85 def copymode(src, dst): argument
90 os.chmod(dst, mode)
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/NetUtil/
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);
73 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop() argument
77 _DIAGASSERT(dst != NULL); in inet_ntop()
81 return (inet_ntop4(src, dst, size)); in inet_ntop()
83 return (inet_ntop6(src, dst, size)); in inet_ntop()
103 inet_ntop4(const u_char *src, char *dst, socklen_t size) in inet_ntop4() argument
109 _DIAGASSERT(dst != NULL); in inet_ntop4()
118 strncpyX(dst, tmp, (size_t)size); in inet_ntop4()
119 return (dst); in inet_ntop4()
[all …]
/device/linaro/bootloader/arm-trusted-firmware/plat/arm/board/common/
Dboard_arm_trusted_boot.c69 uint8_t *dst; in plat_get_rotpk_info() local
77 dst = (uint8_t *)&rotpk_hash_der[rotpk_hash_hdr_len]; in plat_get_rotpk_info()
81 memcpy(dst, arm_devel_rotpk_hash, SHA256_BYTES); in plat_get_rotpk_info()
117 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in plat_get_rotpk_info()
118 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in plat_get_rotpk_info()
119 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in plat_get_rotpk_info()
120 *dst++ = (uint8_t)(tmp & 0xFF); in plat_get_rotpk_info()
127 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in plat_get_rotpk_info()
128 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in plat_get_rotpk_info()
129 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in plat_get_rotpk_info()
[all …]
/device/linaro/bootloader/edk2/StdLib/LibC/Locale/
Dwcsftime.c61 char *dst, *dstp, *sformat; in wcsftime() local
65 sformat = dst = NULL; in wcsftime()
89 dst = malloc(maxsize * MB_CUR_MAX); in wcsftime()
90 if (dst == NULL) in wcsftime()
92 if (strftime(dst, maxsize, sformat, timeptr) == 0) in wcsftime()
94 dstp = dst; in wcsftime()
100 free(dst); in wcsftime()
106 free(dst); in wcsftime()
/device/google/cuttlefish_common/guest/hals/hwcomposer/cutf_cvm/
Dvsoc_composer.cpp61 typedef int (*ConverterFunction)(const BufferSpec& src, const BufferSpec& dst,
63 int DoCopy(const BufferSpec& src, const BufferSpec& dst, bool v_flip);
64 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool v_flip);
167 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in ConvertFromYV12() argument
185 uint8_t* dst_buffer = dst.buffer + dst.crop_y * dst.stride + in ConvertFromYV12()
186 dst.crop_x * formatToBytesPerPixel(dst.format); in ConvertFromYV12()
190 dst_buffer, dst.stride, dst.crop_width, in ConvertFromYV12()
191 v_flip ? -dst.crop_height : dst.crop_height); in ConvertFromYV12()
194 int DoConversion(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoConversion() argument
195 return (*GetConverter(src.format))(src, dst, v_flip); in DoConversion()
[all …]
/device/google/cuttlefish_common/guest/hals/hwcomposer/vsoc/
Dvsoc_composer.cpp63 typedef int (*ConverterFunction)(const BufferSpec& src, const BufferSpec& dst,
65 int DoCopy(const BufferSpec& src, const BufferSpec& dst, bool v_flip);
66 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool v_flip);
169 int ConvertFromYV12(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in ConvertFromYV12() argument
187 uint8_t* dst_buffer = dst.buffer + dst.crop_y * dst.stride + in ConvertFromYV12()
188 dst.crop_x * formatToBytesPerPixel(dst.format); in ConvertFromYV12()
192 dst_buffer, dst.stride, dst.crop_width, in ConvertFromYV12()
193 v_flip ? -dst.crop_height : dst.crop_height); in ConvertFromYV12()
196 int DoConversion(const BufferSpec& src, const BufferSpec& dst, bool v_flip) { in DoConversion() argument
197 return (*GetConverter(src.format))(src, dst, v_flip); in DoConversion()
[all …]
/device/google/contexthub/lib/nanohub/
Dnanoapp.c46 bool readFile(void *dst, uint32_t len, const char *fileName) in readFile() argument
54 if (len != fread(dst, 1, len, f)) in readFile()
71 uint8_t *dst = NULL; in loadFile() local
81 len += grow; dst = reallocOrDie(dst, len); in loadFile()
83 block = fread(dst + total, 1, grow, f); in loadFile()
91 free(dst); in loadFile()
93 dst = NULL; in loadFile()
98 return dst; in loadFile()
Daes.c204 void aesEncr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesEncr() argument
249 *dst++ = *k++ ^ in aesEncr()
255 *dst++ = *k++ ^ in aesEncr()
261 *dst++ = *k++ ^ in aesEncr()
267 *dst++ = *k++ ^ in aesEncr()
274 void aesDecr(struct AesContext *ctx, const uint32_t *src, uint32_t *dst) in aesDecr() argument
319 *dst++ = *k++ ^ in aesDecr()
325 *dst++ = *k++ ^ in aesDecr()
331 *dst++ = *k++ ^ in aesDecr()
337 *dst++ = *k++ ^ in aesDecr()
[all …]
/device/linaro/bootloader/edk2/BaseTools/Conf/
Dbuild_rule.template48 # ${dst} Destination file(s) built from ${src} (full path)
131 "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
135 "$(CC)" $(CC_FLAGS) -c -o ${dst} $(INC) ${src}
138 "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src}
157 "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src}
161 "$(CC)" $(CC_FLAGS) -c -o ${dst} $(INC) ${src}
162 "$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst}
175 "$(CC)" $(CC_FLAGS) $(CC_XIPFLAGS) -c -o ${dst} $(INC) ${src}
202 "$(ASM)" /Fo${dst} $(ASM_FLAGS) /I${s_path} $(INC) ${d_path}(+)${s_base}.iii
208 "$(ASM)" $(ASM_FLAGS) -o ${dst} $(INC) ${d_path}(+)${s_base}.iii
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DglUtils.h62 void glUtilsPackPointerData(unsigned char *dst, unsigned char *str,
120 template <class T> void shiftIndices(const T *src, T *dst, int count, int offset) in shiftIndices() argument
123 *dst = *src + offset; in shiftIndices()
124 dst++; in shiftIndices()
145 (const T *src, T *dst, int count, int offset, in shiftIndicesExcept() argument
148 if (!shouldExclude) return shiftIndices(src, dst, count, offset); in shiftIndicesExcept()
152 *dst = *src; in shiftIndicesExcept()
154 *dst = *src + offset; in shiftIndicesExcept()
156 dst++; in shiftIndicesExcept()
/device/linaro/bootloader/arm-trusted-firmware/plat/hisilicon/hikey/
Dhisi_mcu.c169 int *src, *dst; in hisi_mcu_load_image() local
183 dst = (int *)(intptr_t)mcu2ap_addr(head->secs[i].dst_offset); in hisi_mcu_load_image()
185 memcpy((void *)dst, (void *)src, head->secs[i].size); in hisi_mcu_load_image()
191 __func__, (unsigned int)(uintptr_t)dst); in hisi_mcu_load_image()
198 __func__, (unsigned int)(uintptr_t)dst, in hisi_mcu_load_image()
199 dst[0], dst[1], dst[2], dst[3]); in hisi_mcu_load_image()

12345