Home
last modified time | relevance | path

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

123

/rk3399_ARM-atf/lib/locks/exclusive/aarch64/
H A Dspinlock.c14 static void spin_lock_atomic(volatile uint32_t *dst) in spin_lock_atomic() argument
29 : "+m" (*dst), [tmp] "=&r" (tmp), [src] "+r" (src) in spin_lock_atomic()
30 : [dst] "r" (dst)); in spin_lock_atomic()
36 static void spin_lock_excl(volatile uint32_t *dst) in spin_lock_excl() argument
48 : "+m" (*dst), [tmp] "=&r" (tmp), [src] "+r" (src) in spin_lock_excl()
49 : [dst] "r" (dst)); in spin_lock_excl()
54 volatile uint32_t *dst = &(lock->lock); in spin_lock() local
57 spin_lock_atomic(dst); in spin_lock()
59 spin_lock_excl(dst); in spin_lock()
70 volatile uint32_t *dst = &(lock->lock); in spin_unlock() local
[all …]
/rk3399_ARM-atf/lib/locks/exclusive/aarch32/
H A Dspinlock.c11 volatile uint32_t *dst = &(lock->lock); in spin_lock() local
24 : "+m" (*dst), [tmp] "=&r" (tmp), [src] "+r" (src) in spin_lock()
25 : [dst] "r" (dst)); in spin_lock()
30 volatile uint32_t *dst = &(lock->lock); in spin_unlock() local
50 : "=m" (dst) in spin_unlock()
51 : [val] "r" (val), [dst] "r" (dst)); in spin_unlock()
56 volatile uint32_t *dst = &(lock->lock); in spin_trylock() local
69 : "+m" (*dst), [tmp] "=&r" (tmp), [out] "=r" (out) in spin_trylock()
70 : [src] "r" (src), [dst] "r" (dst)); in spin_trylock()
/rk3399_ARM-atf/lib/libc/
H A Dstrlcat.c31 strlcat(char * dst, const char * src, size_t dsize) in strlcat() argument
33 const char *odst = dst; in strlcat()
39 while (n-- != 0 && *dst != '\0') in strlcat()
40 dst++; in strlcat()
41 dlen = dst - odst; in strlcat()
48 *dst++ = *src; in strlcat()
53 *dst = '\0'; in strlcat()
H A Dmemmove.c9 void *memmove(void *dst, const void *src, size_t len) in memmove() argument
19 if (((size_t)dst - (size_t)src) >= len) { in memmove()
21 return memcpy(dst, src, len); in memmove()
24 const char *end = dst; in memmove()
26 char *d = (char *)dst + len; in memmove()
31 return dst; in memmove()
H A Dmemset.c11 void *memset(void *dst, int val, size_t count) in memset() argument
13 uint8_t *ptr = dst; in memset()
19 return dst; in memset()
27 return dst; in memset()
50 return dst; in memset()
H A Dmemcpy_s.c12 int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize) in memcpy_s() argument
15 unsigned int *d = (unsigned int *)dst; in memcpy_s()
20 if ((dst == NULL) || (src == NULL)) { in memcpy_s()
56 (void)memcpy(dst, src, ssize); in memcpy_s()
H A Dmemcpy.c10 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument
13 char *d = dst; in memcpy()
19 return dst; in memcpy()
H A Dstrlcpy.c30 strlcpy(char * dst, const char * src, size_t dsize) in strlcpy() argument
38 if ((*dst++ = *src++) == '\0') in strlcpy()
46 *dst = '\0'; /* NUL-terminate dst */ in strlcpy()
/rk3399_ARM-atf/include/lib/per_cpu/
H A Dper_cpu_macros.S21 .macro per_cpu_cur label, dst=x0, clobber=x1 argument
23 .ifc \dst,\clobber
28 adr_l \dst, \label
34 sub \dst, \dst, \clobber
40 add \dst, \clobber, \dst
/rk3399_ARM-atf/plat/arm/board/juno/
H A Djuno_trusted_boot.c27 uint8_t *dst; in juno_get_rotpk_info_regs() local
37 dst = (uint8_t *)&rotpk_hash_der[ARM_ROTPK_HASH_DER_HEADER_LEN]; in juno_get_rotpk_info_regs()
71 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in juno_get_rotpk_info_regs()
72 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in juno_get_rotpk_info_regs()
73 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in juno_get_rotpk_info_regs()
74 *dst++ = (uint8_t)(tmp & 0xFF); in juno_get_rotpk_info_regs()
81 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in juno_get_rotpk_info_regs()
82 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in juno_get_rotpk_info_regs()
83 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in juno_get_rotpk_info_regs()
84 *dst++ = (uint8_t)(tmp & 0xFF); in juno_get_rotpk_info_regs()
/rk3399_ARM-atf/drivers/renesas/common/dma/
H A Ddma_driver.c88 static void dma_start(uintptr_t dst, uint32_t src, uint32_t len) in dma_start() argument
91 mmio_write_32(DMA_DMAFIXDAR, (dst >> DMAFIXDAR_32BIT_SHIFT) & in dma_start()
93 mmio_write_32(DMA_DMADAR, dst & UINT32_MAX); in dma_start()
119 void rcar_dma_exec(uintptr_t dst, uint32_t src, uint32_t len) in rcar_dma_exec() argument
137 if ((dst & UINT32_MAX) + dma_len > DMADAR_BOUNDARY_ADDR || in rcar_dma_exec()
138 (dst + dma_len > DMA_DST_LIMIT) || in rcar_dma_exec()
139 (dst & DMA_FRACTION_MASK)) { in rcar_dma_exec()
141 dst, dma_len); in rcar_dma_exec()
145 dma_start(dst, src, dma_len); in rcar_dma_exec()
/rk3399_ARM-atf/drivers/renesas/common/io/
H A Dio_rcar.c50 uintptr_t dst; member
233 void rcar_read_certificate(uint64_t cert, uint32_t *len, uintptr_t *dst) in rcar_read_certificate() argument
249 *dst = 0; in rcar_read_certificate()
256 *dst = 0; in rcar_read_certificate()
279 *dst = 0; in rcar_read_certificate()
286 *dst = ((uintptr_t) mmio_read_32(dsth) << 32) + in rcar_read_certificate()
295 *dst = 0; in rcar_read_certificate()
302 *dst = ((uintptr_t) mmio_read_32(dsth) << 32) + in rcar_read_certificate()
306 static int32_t check_load_area(uintptr_t dst, uintptr_t len) in check_load_area() argument
308 uint32_t legacy = dst + len <= UINT32_MAX - 1 ? 1 : 0; in check_load_area()
[all …]
/rk3399_ARM-atf/plat/brcm/board/common/
H A Dboard_arm_trusted_boot.c130 uint8_t *dst; in plat_get_rotpk_info() local
140 dst = (uint8_t *)&rotpk_hash_der[rotpk_hash_hdr_len]; in plat_get_rotpk_info()
143 memcpy(dst, arm_devel_rotpk_hash, SHA256_BYTES); in plat_get_rotpk_info()
179 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in plat_get_rotpk_info()
180 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in plat_get_rotpk_info()
181 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in plat_get_rotpk_info()
182 *dst++ = (uint8_t)(tmp & 0xFF); in plat_get_rotpk_info()
189 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in plat_get_rotpk_info()
190 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in plat_get_rotpk_info()
191 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in plat_get_rotpk_info()
[all …]
H A Dbcm_elog.c44 extern void memcpy16(void *dst, const void *src, unsigned int len);
145 int bcm_elog_copy_log(void *dst, uint32_t max_size) in bcm_elog_copy_log() argument
150 if (!elog->is_active || ((uintptr_t)dst == elog->base)) in bcm_elog_copy_log()
175 memcpy16(dst, (const void *)elog->base, len + BCM_ELOG_HEADER_LEN); in bcm_elog_copy_log()
176 elog->base = (uintptr_t)dst; in bcm_elog_copy_log()
/rk3399_ARM-atf/plat/hisilicon/hikey/
H A Dhisi_mcu.c172 int *src, *dst; in hisi_mcu_load_image() local
186 dst = (int *)(intptr_t)mcu2ap_addr(head->secs[i].dst_offset); in hisi_mcu_load_image()
188 memcpy((void *)dst, (void *)src, head->secs[i].size); in hisi_mcu_load_image()
194 __func__, (unsigned int)(uintptr_t)dst); in hisi_mcu_load_image()
201 __func__, (unsigned int)(uintptr_t)dst, in hisi_mcu_load_image()
202 dst[0], dst[1], dst[2], dst[3]); in hisi_mcu_load_image()
/rk3399_ARM-atf/include/lib/libc/
H A Dstring.h33 int memcpy_s(void *dst, size_t dsize, void *src, size_t ssize);
34 void *memmove(void *dst, const void *src, size_t len);
37 size_t strlcpy(char * dst, const char * src, size_t dsize);
38 size_t strlcat(char * dst, const char * src, size_t dsize);
H A Dstring_private.h14 void *memcpy(void *dst, const void *src, size_t len);
20 void *memset(void *dst, int val, size_t count);
/rk3399_ARM-atf/plat/mediatek/mt8183/drivers/sspm/
H A Dsspm.c13 static void memcpy_to_sspm(uint32_t dst, uint32_t *src, uint32_t len) in memcpy_to_sspm() argument
16 mmio_write_32(dst, *src); in memcpy_to_sspm()
17 dst += sizeof(uint32_t); in memcpy_to_sspm()
22 static void memcpy_from_sspm(uint32_t *dst, uint32_t src, uint32_t len) in memcpy_from_sspm() argument
25 *dst = mmio_read_32(src); in memcpy_from_sspm()
26 dst++; in memcpy_from_sspm()
/rk3399_ARM-atf/plat/amlogic/common/
H A Daml_scpi.c108 uint32_t aml_scpi_efuse_read(void *dst, uint32_t base, uint32_t size) in aml_scpi_efuse_read() argument
128 memcpy(dst, response + 1, *response); in aml_scpi_efuse_read()
170 void *dst = (void *)AML_MHU_SECURE_AP_TO_SCP_PAYLOAD; in aml_scpi_copy_scp_data() local
178 memcpy(dst, data + sz, MIN(SIZE_FWBLK, len - sz)); in aml_scpi_copy_scp_data()
185 volatile uint64_t *dst = (uint64_t *)AML_MHU_SECURE_AP_TO_SCP_PAYLOAD; in aml_scpi_set_scp_addr() local
191 *dst = addr; in aml_scpi_set_scp_addr()
202 void *dst = (void *)AML_MHU_SECURE_AP_TO_SCP_PAYLOAD; in aml_scpi_send_fw_hash() local
204 memcpy(dst, hash, len); in aml_scpi_send_fw_hash()
H A Daml_efuse.c14 uint64_t aml_efuse_read(void *dst, uint32_t offset, uint32_t size) in aml_efuse_read() argument
19 return aml_scpi_efuse_read(dst, offset + EFUSE_BASE, size); in aml_efuse_read()
/rk3399_ARM-atf/plat/arm/board/common/
H A Dboard_arm_trusted_boot.c61 uint8_t *dst; in arm_get_rotpk_info_regs() local
72 dst = (uint8_t *)&rotpk_hash_der[ARM_ROTPK_HASH_DER_HEADER_LEN]; in arm_get_rotpk_info_regs()
80 *dst++ = (uint8_t)(tmp & 0xFF); in arm_get_rotpk_info_regs()
81 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in arm_get_rotpk_info_regs()
82 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in arm_get_rotpk_info_regs()
83 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in arm_get_rotpk_info_regs()
/rk3399_ARM-atf/include/plat/brcm/common/
H A Dbcm_elog.h17 int bcm_elog_copy_log(void *dst, uint32_t max_size);
28 static inline int bcm_elog_copy_log(void *dst, uint32_t max_size) in bcm_elog_copy_log() argument
/rk3399_ARM-atf/drivers/rpi3/rng/
H A Drpi3_rng.c70 uint32_t *dst = buf; in rpi3_rng_read() local
80 *dst++ = data; in rpi3_rng_read()
86 memcpy(dst, &data, left); in rpi3_rng_read()
/rk3399_ARM-atf/include/drivers/partition/
H A Defi.h23 static inline void *guidcpy(void *dst, const void *src) in guidcpy() argument
25 return memcpy(dst, src, sizeof(struct efi_guid)); in guidcpy()
/rk3399_ARM-atf/plat/amlogic/common/include/
H A Daml_private.h30 uint32_t aml_scpi_efuse_read(void *dst, uint32_t base, uint32_t size);
38 uint64_t aml_efuse_read(void *dst, uint32_t offset, uint32_t size);

123