/trusted-firmware-a/plat/arm/board/juno/ |
A D | juno_trusted_boot.c | 28 uint8_t *dst; in juno_get_rotpk_info_regs() local 38 dst = (uint8_t *)&rotpk_hash_der[ARM_ROTPK_HEADER_LEN]; in juno_get_rotpk_info_regs() 72 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in juno_get_rotpk_info_regs() 73 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in juno_get_rotpk_info_regs() 74 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in juno_get_rotpk_info_regs() 75 *dst++ = (uint8_t)(tmp & 0xFF); in juno_get_rotpk_info_regs() 82 *dst++ = (uint8_t)((tmp >> 24) & 0xFF); in juno_get_rotpk_info_regs() 83 *dst++ = (uint8_t)((tmp >> 16) & 0xFF); in juno_get_rotpk_info_regs() 84 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in juno_get_rotpk_info_regs() 85 *dst++ = (uint8_t)(tmp & 0xFF); in juno_get_rotpk_info_regs()
|
/trusted-firmware-a/lib/libc/ |
A D | strlcat.c | 31 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()
|
A D | memmove.c | 9 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() 30 return dst; in memmove()
|
A D | memset.c | 11 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()
|
A D | memcpy.c | 10 void *memcpy(void *dst, const void *src, size_t len) in memcpy() argument 13 char *d = dst; in memcpy() 18 return dst; in memcpy()
|
A D | strlcpy.c | 30 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()
|
/trusted-firmware-a/drivers/renesas/common/dma/ |
A D | dma_driver.c | 88 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()
|
/trusted-firmware-a/plat/arm/board/common/ |
A D | board_arm_trusted_boot.c | 61 uint8_t *dst; in arm_get_rotpk_info_regs() local 72 dst = (uint8_t *)&rotpk_hash_der[ARM_ROTPK_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() 115 unsigned char *dst; in arm_get_rotpk_info_cc() local 123 dst = &rotpk_hash_der[ARM_ROTPK_HEADER_LEN]; in arm_get_rotpk_info_cc() 126 return cc_get_rotpk_hash(dst, ARM_ROTPK_HASH_LEN, flags); in arm_get_rotpk_info_cc()
|
/trusted-firmware-a/plat/brcm/board/common/ |
A D | board_arm_trusted_boot.c | 130 uint8_t *dst; in plat_get_rotpk_info() local 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() 191 *dst++ = (uint8_t)((tmp >> 8) & 0xFF); in plat_get_rotpk_info() 192 *dst++ = (uint8_t)(tmp & 0xFF); in plat_get_rotpk_info() 217 memcpy(dst, in plat_get_rotpk_info() 222 if (dst[i] != 0) in plat_get_rotpk_info() [all …]
|
A D | bcm_elog.c | 44 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()
|
/trusted-firmware-a/include/lib/libc/ |
A D | string.h | 16 void *memcpy(void *dst, const void *src, size_t len); 17 void *memmove(void *dst, const void *src, size_t len); 24 void *memset(void *dst, int val, size_t count); 28 size_t strlcpy(char * dst, const char * src, size_t dsize); 29 size_t strlcat(char * dst, const char * src, size_t dsize);
|
/trusted-firmware-a/plat/hisilicon/hikey/ |
A D | hisi_mcu.c | 172 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()
|
/trusted-firmware-a/drivers/renesas/common/io/ |
A D | io_rcar.c | 50 uintptr_t dst; member 221 *dst = 0; in rcar_read_certificate() 228 *dst = 0; in rcar_read_certificate() 279 if (dst < dram_start || dst > dram_end - len) { in check_load_area() 286 if (dst >= prot_start && dst < prot_end) { in check_load_area() 291 if (dst < prot_start && dst > prot_start - len) { in check_load_area() 306 uintptr_t dst, partition, handle; in load_bl33x() local 352 rc = check_load_area(dst, len); in load_bl33x() 368 memset((void *)dst, 0x00, len); in load_bl33x() 508 current_file.dst = 0; in rcar_file_open() [all …]
|
/trusted-firmware-a/plat/mediatek/mt8183/drivers/sspm/ |
A D | sspm.c | 13 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()
|
/trusted-firmware-a/plat/amlogic/common/ |
A D | aml_scpi.c | 108 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()
|
A D | aml_efuse.c | 14 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()
|
A D | aml_sip_svc.c | 64 void *dst = (void *)AML_SHARE_MEM_OUTPUT_BASE; in aml_sip_handler() local 65 uint64_t ret = aml_efuse_read(dst, (uint32_t)x1, x2); in aml_sip_handler()
|
/trusted-firmware-a/drivers/rpi3/rng/ |
A D | rpi3_rng.c | 57 uint32_t *dst = buf; in rpi3_rng_read() local 67 *dst++ = data; in rpi3_rng_read() 73 memcpy(dst, &data, left); in rpi3_rng_read()
|
/trusted-firmware-a/drivers/auth/cryptocell/712/ |
A D | cryptocell_plat_helpers.c | 31 int cc_get_rotpk_hash(unsigned char *dst, unsigned int len, unsigned int *flags) in cc_get_rotpk_hash() argument 36 assert(dst != NULL); in cc_get_rotpk_hash() 61 (uint32_t *)dst, HASH_RESULT_SIZE_IN_WORDS); in cc_get_rotpk_hash()
|
/trusted-firmware-a/tools/sptool/ |
A D | sp_mk_generator.py | 105 dst = out_dir + "/" + key + ".pkg" variable 107 out_file.write("SPTOOL_ARGS += -i " + ":".join(src) + " -o " + dst + "\n") 142 out_file.write("FIP_ARGS += --blob uuid=" + str(uuid_std) + ",file=" + dst + "\n") 148 out_file.write("CRT_ARGS += --sp-pkg" + str(pkg_num) + " " + dst + "\n")
|
/trusted-firmware-a/drivers/auth/cryptocell/713/ |
A D | cryptocell_plat_helpers.c | 23 int cc_get_rotpk_hash(unsigned char *dst, unsigned int len, unsigned int *flags) in cc_get_rotpk_hash() argument 28 uint32_t *key = (uint32_t *)dst; in cc_get_rotpk_hash() 30 assert(dst != NULL); in cc_get_rotpk_hash()
|
/trusted-firmware-a/include/plat/brcm/common/ |
A D | bcm_elog.h | 17 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
|
/trusted-firmware-a/plat/arm/board/morello/ |
A D | morello_bl31_setup.c | 65 static void copy_bl33(uint32_t src, uint32_t dst, uint32_t size) in copy_bl33() argument 71 mmio_write_64((dst + i), mmio_read_64(src + i)); in copy_bl33() 74 if (mmio_read_64(src + i) != mmio_read_64(dst + i)) { in copy_bl33()
|
/trusted-firmware-a/plat/amlogic/common/include/ |
A D | aml_private.h | 30 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);
|
/trusted-firmware-a/plat/arm/board/n1sdp/ |
A D | n1sdp_bl31_setup.c | 157 void copy_bl33(uint32_t src, uint32_t dst, uint32_t size) in copy_bl33() argument 163 mmio_write_64((dst + i), mmio_read_64(src + i)); in copy_bl33() 166 if (mmio_read_64(src + i) != mmio_read_64(dst + i)) { in copy_bl33()
|