/tf-a-ffa_el3_spmc/lib/zlib/ |
A D | adler32.c | 16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;} argument 17 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 18 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 19 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 20 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 65 const Bytef *buf; 87 if (buf == Z_NULL) 108 buf += 16; 118 DO16(buf); 119 buf += 16; [all …]
|
A D | crc32.c | 204 const unsigned char FAR *buf; 207 if (buf == Z_NULL) return 0UL; 237 unsigned long ZEXPORT crc32(crc, buf, len) in crc32() argument 239 const unsigned char FAR *buf; 242 return crc32_z(crc, buf, len); 268 const unsigned char FAR *buf; 276 while (len && ((ptrdiff_t)buf & 3)) { 290 buf = (const unsigned char FAR *)buf4; 308 const unsigned char FAR *buf; 316 while (len && ((ptrdiff_t)buf & 3)) { [all …]
|
A D | zutil.c | 219 voidpf buf; in zcalloc() local 228 buf = farmalloc(bsize); in zcalloc() 229 if (*(ush*)&buf != 0) return buf; in zcalloc() 231 buf = farmalloc(bsize + 16L); in zcalloc() 233 if (buf == NULL || next_ptr >= MAX_PTR) return NULL; in zcalloc() 234 table[next_ptr].org_ptr = buf; in zcalloc() 237 *((ush*)&buf+1) += ((ush)((uch*)buf-0) + 15) >> 4; in zcalloc() 238 *(ush*)&buf = 0; in zcalloc() 239 table[next_ptr++].new_ptr = buf; in zcalloc() 240 return buf; in zcalloc()
|
/tf-a-ffa_el3_spmc/lib/libfdt/ |
A D | fdt_empty_tree.c | 13 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 17 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 21 err = fdt_finish_reservemap(buf); in fdt_create_empty_tree() 25 err = fdt_begin_node(buf, ""); in fdt_create_empty_tree() 29 err = fdt_end_node(buf); in fdt_create_empty_tree() 33 err = fdt_finish(buf); in fdt_create_empty_tree() 37 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
A D | fdt_sw.c | 113 void *fdt = buf; in fdt_create_with_flags() 121 memset(buf, 0, bufsize); in fdt_create_with_flags() 143 int fdt_create(void *buf, int bufsize) in fdt_create() argument 145 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 169 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 173 if (buf <= fdt) { in fdt_resize() 174 memmove(buf, fdt, headsize); in fdt_resize() 178 memmove(buf, fdt, headsize); in fdt_resize() 181 fdt_set_totalsize(buf, bufsize); in fdt_resize() 182 if (fdt_off_dt_strings(buf)) in fdt_resize() [all …]
|
A D | fdt_rw.c | 442 err = fdt_move(fdt, buf, bufsize); in fdt_open_into() 445 fdt_set_version(buf, 17); in fdt_open_into() 446 fdt_set_size_dt_struct(buf, struct_size); in fdt_open_into() 447 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 459 tmp = buf; in fdt_open_into() 464 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 469 memmove(buf, tmp, newsize); in fdt_open_into() 471 fdt_set_magic(buf, FDT_MAGIC); in fdt_open_into() 472 fdt_set_totalsize(buf, bufsize); in fdt_open_into() 473 fdt_set_version(buf, 17); in fdt_open_into() [all …]
|
/tf-a-ffa_el3_spmc/plat/socionext/uniphier/ |
A D | uniphier_usb.c | 65 static int uniphier_ld11_usb_read(int lba, uintptr_t buf, size_t size) in uniphier_ld11_usb_read() argument 68 unsigned int size, uintptr_t buf); in uniphier_ld11_usb_read() 74 return rom_usb_read(UNIPHIER_LD11_USB_DESC_BASE, lba, size, buf); in uniphier_ld11_usb_read() 89 unsigned int size, uintptr_t buf); in uniphier_ld20_usb_read() 97 ret = rom_usb_read(UNIPHIER_LD20_USB_DESC_BASE, lba, size, buf); in uniphier_ld20_usb_read() 116 unsigned int size, uintptr_t buf); in uniphier_pxs3_usb_read() 122 ret = rom_usb_read(UNIPHIER_PXS3_USB_DESC_BASE, lba, size, buf); in uniphier_pxs3_usb_read() 129 int (*read)(int lba, uintptr_t buf, size_t size); 151 inv_dcache_range(buf, size); in uniphier_usb_read() 153 ret = __uniphier_usb_read(lba, buf, size); in uniphier_usb_read() [all …]
|
A D | uniphier_nand.c | 120 static int uniphier_nand_read_pages(struct uniphier_nand *nand, uintptr_t buf, in uniphier_nand_read_pages() argument 142 mmio_write_32(nand->host_base + DENALI_HOST_DATA, buf); in uniphier_nand_read_pages() 145 mmio_write_32(nand->host_base + DENALI_HOST_DATA, buf >> 32); in uniphier_nand_read_pages() 163 uintptr_t buf, size_t size) in __uniphier_nand_read() argument 171 uintptr_t p = buf; in __uniphier_nand_read() 211 return MIN(size, p - buf); in __uniphier_nand_read() 214 static size_t uniphier_nand_read(int lba, uintptr_t buf, size_t size) in uniphier_nand_read() argument 218 inv_dcache_range(buf, size); in uniphier_nand_read() 220 count = __uniphier_nand_read(&uniphier_nand, lba, buf, size); in uniphier_nand_read() 222 inv_dcache_range(buf, size); in uniphier_nand_read()
|
/tf-a-ffa_el3_spmc/plat/rpi/common/ |
A D | rpi3_stack_protector.c | 20 u_register_t buf[TRNG_NBYTES / sizeof(u_register_t)]; in plat_get_stack_protector_canary() local 23 rpi3_rng_read(buf, sizeof(buf)); in plat_get_stack_protector_canary() 25 for (i = 0U; i < ARRAY_SIZE(buf); i++) in plat_get_stack_protector_canary() 26 ret ^= buf[i]; in plat_get_stack_protector_canary()
|
/tf-a-ffa_el3_spmc/common/ |
A D | tf_crc32.c | 27 uint32_t tf_crc32(uint32_t crc, const unsigned char *buf, size_t size) in tf_crc32() argument 29 assert(buf != NULL); in tf_crc32() 32 const unsigned char *local_buf = buf; in tf_crc32()
|
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey960/ |
A D | hikey960_bl2_setup.c | 51 int *buf; in plat_hikey960_bl2_handle_scp_bl2() local 61 buf = (int *)scp_bl2_image_info->image_base; in plat_hikey960_bl2_handle_scp_bl2() 66 buf[i], buf[i+1], buf[i+2], buf[i+3]); in plat_hikey960_bl2_handle_scp_bl2() 68 buf = (int *)(scp_bl2_image_info->image_base + in plat_hikey960_bl2_handle_scp_bl2() 74 buf[i], buf[i+1], buf[i+2], buf[i+3]); in plat_hikey960_bl2_handle_scp_bl2() 79 (void)buf; in plat_hikey960_bl2_handle_scp_bl2()
|
A D | hikey960_io_storage.c | 37 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size); 38 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size); 303 size_t ufs_read_lun3_blks(int lba, uintptr_t buf, size_t size) in ufs_read_lun3_blks() argument 305 return ufs_read_blocks(3, lba, buf, size); in ufs_read_lun3_blks() 308 size_t ufs_write_lun3_blks(int lba, const uintptr_t buf, size_t size) in ufs_write_lun3_blks() argument 310 return ufs_write_blocks(3, lba, buf, size); in ufs_write_lun3_blks()
|
/tf-a-ffa_el3_spmc/drivers/rpi3/rng/ |
A D | rpi3_rng.c | 53 void rpi3_rng_read(void *buf, size_t len) in rpi3_rng_read() argument 57 uint32_t *dst = buf; in rpi3_rng_read() 59 assert(buf != NULL); in rpi3_rng_read() 61 assert(check_uptr_overflow((uintptr_t) buf, (uintptr_t) len) == 0); in rpi3_rng_read()
|
/tf-a-ffa_el3_spmc/drivers/ufs/ |
A D | ufs.c | 279 flush_dcache_range(buf, length); in ufs_prepare_cmd() 281 inv_dcache_range(buf, length); in ufs_prepare_cmd() 299 buf += MAX_PRDT_SIZE; in ufs_prepare_cmd() 349 (void *)buf, length); in ufs_prepare_query() 539 memcpy((void *)buf, in ufs_query() 600 uintptr_t buf; in ufs_read_capacity() local 610 buf = (uintptr_t)data; in ufs_read_capacity() 611 buf = (buf + CACHE_WRITEBACK_GRANULE - 1) & in ufs_read_capacity() 618 buf, READ_CAPACITY_LENGTH); in ufs_read_capacity() 655 memset((void *)buf, 0, size); in ufs_read_blocks() [all …]
|
/tf-a-ffa_el3_spmc/include/drivers/ |
A D | mmc.h | 131 int (*prepare)(int lba, uintptr_t buf, size_t size); 132 int (*read)(int lba, uintptr_t buf, size_t size); 133 int (*write)(int lba, const uintptr_t buf, size_t size); 233 size_t mmc_read_blocks(int lba, uintptr_t buf, size_t size); 234 size_t mmc_write_blocks(int lba, const uintptr_t buf, size_t size); 236 size_t mmc_rpmb_read_blocks(int lba, uintptr_t buf, size_t size); 237 size_t mmc_rpmb_write_blocks(int lba, const uintptr_t buf, size_t size); 239 size_t mmc_boot_part_read_blocks(int lba, uintptr_t buf, size_t size);
|
/tf-a-ffa_el3_spmc/tools/amlogic/ |
A D | doimage.c | 49 uint8_t buf[BUFLEN]; in main() local 78 while ((len = read(fin, buf, sizeof(buf))) > 0) in main() 79 if (fdwrite(fout, buf, len) < 0) in main()
|
/tf-a-ffa_el3_spmc/drivers/io/ |
A D | io_block.c | 248 io_block_spec_t *buf; in block_read() local 270 buf = &(cur->dev_spec->buffer); in block_read() 299 if ((skip + left) > buf->length) { in block_read() 305 request = buf->length; in block_read() 317 request = ops->read(lba, buf->offset, request); in block_read() 338 (void *)(buf->offset + skip), in block_read() 360 io_block_spec_t *buf; in block_write() local 382 buf = &(cur->dev_spec->buffer); in block_write() 412 if ((skip + left) > buf->length) { in block_write() 418 request = buf->length; in block_write() [all …]
|
/tf-a-ffa_el3_spmc/drivers/nxp/i2c/ |
A D | i2c.c | 145 unsigned char *buf, int len) in read_data() argument 176 buf[i] = i2c_in(&ccsr_i2c->dr); in read_data() 183 const unsigned char *buf, int len) in write_data() argument 189 ret = tx_byte(ccsr_i2c, buf[i]); in write_data() 201 unsigned char *buf, int len) in i2c_read() argument 223 return read_data(ccsr_i2c, chip, buf, len); in i2c_read() 227 const unsigned char *buf, int len) in i2c_write() argument 237 return write_data(ccsr_i2c, chip, buf, len); in i2c_write()
|
/tf-a-ffa_el3_spmc/include/drivers/io/ |
A D | io_block.h | 14 size_t (*read)(int lba, uintptr_t buf, size_t size); 15 size_t (*write)(int lba, const uintptr_t buf, size_t size);
|
/tf-a-ffa_el3_spmc/plat/marvell/armada/a8k/a80x0_puzzle/board/ |
A D | system_power.c | 22 unsigned char add_xor_checksum(unsigned char *buf, unsigned char xor_len) in add_xor_checksum() argument 28 xor_sum ^= buf[i]; in add_xor_checksum()
|
/tf-a-ffa_el3_spmc/plat/brcm/board/stingray/src/ |
A D | bl2_setup.c | 246 uint32_t buf[2]; in read_avs_otp_bits() local 248 if (bcm_otpc_read(offset, &buf[0], BYTES_TO_READ, 1) == -1) in read_avs_otp_bits() 252 offset/WORD_SIZE, buf[1], buf[0]); in read_avs_otp_bits() 257 buf[1]); in read_avs_otp_bits() 313 uint32_t buf[2]; in set_swreg_based_on_otp() local 316 if (bcm_otpc_read(offset, &buf[0], BYTES_TO_READ, 1) == -1) in set_swreg_based_on_otp() 320 offset/WORD_SIZE, buf[1], buf[0]); in set_swreg_based_on_otp() 322 if (IS_SR_B0(buf[1])) { in set_swreg_based_on_otp() 353 if (IS_SR_B0(buf[1])) { in set_swreg_based_on_otp()
|
/tf-a-ffa_el3_spmc/lib/debugfs/ |
A D | devroot.c | 61 static int rootread(chan_t *channel, void *buf, int size) in rootread() argument 71 dir = buf; in rootread() 79 return buf_to_channel(channel, buf, dp->data, size, dp->length); in rootread()
|
/tf-a-ffa_el3_spmc/include/drivers/nxp/i2c/ |
A D | i2c.h | 47 unsigned char *buf, int len); 49 const unsigned char *buf, int len);
|
/tf-a-ffa_el3_spmc/drivers/synopsys/emmc/ |
A D | dw_mmc.c | 126 static int dw_prepare(int lba, uintptr_t buf, size_t size); 127 static int dw_read(int lba, uintptr_t buf, size_t size); 128 static int dw_write(int lba, uintptr_t buf, size_t size); 342 static int dw_prepare(int lba, uintptr_t buf, size_t size) in dw_prepare() argument 348 assert(((buf & DWMMC_ADDRESS_MASK) == 0) && in dw_prepare() 354 flush_dcache_range(buf, size); in dw_prepare() 373 desc[i].des2 = buf + DWMMC_DMA_MAX_BUFFER_SIZE * i; in dw_prepare() 396 static int dw_read(int lba, uintptr_t buf, size_t size) in dw_read() argument 406 inv_dcache_range(buf, size); in dw_read() 411 static int dw_write(int lba, uintptr_t buf, size_t size) in dw_write() argument
|
/tf-a-ffa_el3_spmc/drivers/imx/usdhc/ |
A D | imx_usdhc.c | 23 static int imx_usdhc_prepare(int lba, uintptr_t buf, size_t size); 24 static int imx_usdhc_read(int lba, uintptr_t buf, size_t size); 25 static int imx_usdhc_write(int lba, uintptr_t buf, size_t size); 268 static int imx_usdhc_prepare(int lba, uintptr_t buf, size_t size) in imx_usdhc_prepare() argument 272 mmio_write_32(reg_base + DSADDR, buf); in imx_usdhc_prepare() 279 static int imx_usdhc_read(int lba, uintptr_t buf, size_t size) in imx_usdhc_read() argument 284 static int imx_usdhc_write(int lba, uintptr_t buf, size_t size) in imx_usdhc_write() argument
|