Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 99) sorted by relevance

1234

/tf-a-ffa_el3_spmc/lib/semihosting/
A Dsemihosting.c28 size_t length; member
85 read_block.length = *length; in semihosting_file_read()
89 if (result == *length) { in semihosting_file_read()
91 } else if (result < *length) { in semihosting_file_read()
92 *length -= result; in semihosting_file_read()
111 write_block.length = *length; in semihosting_file_write()
116 *length = result; in semihosting_file_write()
160 long length; in semihosting_get_flen() local
180 size_t length; in semihosting_download_file() local
202 if (length > buf_size) { in semihosting_download_file()
[all …]
/tf-a-ffa_el3_spmc/drivers/intel/soc/stratix10/io/
A Ds10_memmap_qspi.c50 size_t length, size_t *length_read);
52 size_t length, size_t *length_written);
122 current_file.size = block_spec->length; in memmap_block_open()
163 assert(length != NULL); in memmap_block_len()
165 *length = ((file_state_t *)entity->info)->size; in memmap_block_len()
173 size_t length, size_t *length_read) in memmap_block_read() argument
184 pos_after = fp->file_pos + length; in memmap_block_read()
189 *length_read = length; in memmap_block_read()
200 size_t length, size_t *length_written) in memmap_block_write() argument
211 pos_after = fp->file_pos + length; in memmap_block_write()
[all …]
/tf-a-ffa_el3_spmc/drivers/io/
A Dio_memmap.c48 size_t length, size_t *length_read);
50 size_t length, size_t *length_written);
119 current_memmap_file.size = block_spec->length; in memmap_block_open()
160 assert(length != NULL); in memmap_block_len()
170 size_t length, size_t *length_read) in memmap_block_read() argument
181 pos_after = fp->file_pos + length; in memmap_block_read()
187 *length_read = length; in memmap_block_read()
198 size_t length, size_t *length_written) in memmap_block_write() argument
209 pos_after = fp->file_pos + length; in memmap_block_write()
213 (void *)buffer, length); in memmap_block_write()
[all …]
A Dio_semihosting.c29 static int sh_file_len(io_entity_t *entity, size_t *length);
30 static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
33 size_t length, size_t *length_written);
107 static int sh_file_len(io_entity_t *entity, size_t *length) in sh_file_len() argument
112 assert(length != NULL); in sh_file_len()
119 *length = (size_t)sh_result; in sh_file_len()
132 size_t bytes = length; in sh_file_read()
143 *length_read = (bytes != length) ? bytes : length; in sh_file_read()
153 size_t length, size_t *length_written) in sh_file_write() argument
157 size_t bytes = length; in sh_file_write()
[all …]
A Dio_dummy.c32 static int dummy_block_len(io_entity_t *entity, size_t *length);
34 size_t length, size_t *length_read);
93 current_file.size = block_spec->length; in dummy_block_open()
106 static int dummy_block_len(io_entity_t *entity, size_t *length) in dummy_block_len() argument
109 assert(length != NULL); in dummy_block_len()
111 *length = ((struct file_state *)entity->info)->size; in dummy_block_len()
119 size_t length, size_t *length_read) in dummy_block_read() argument
123 *length_read = length; in dummy_block_read()
A Dio_block.c143 cur->size = region->length; in block_open()
272 assert((length <= cur->size) && in block_read()
273 (length > 0U) && in block_read()
299 if ((skip + left) > buf->length) { in block_read()
305 request = buf->length; in block_read()
344 assert(count == length); in block_read()
384 assert((length <= cur->size) && in block_write()
385 (length > 0U) && in block_write()
412 if ((skip + left) > buf->length) { in block_write()
418 request = buf->length; in block_write()
[all …]
A Dio_encrypted.c37 static int enc_file_len(io_entity_t *entity, size_t *length);
38 static int enc_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
128 static int enc_file_len(io_entity_t *entity, size_t *length) in enc_file_len() argument
133 assert(length != NULL); in enc_file_len()
135 result = io_size(backend_handle, length); in enc_file_len()
145 if (*length < sizeof(struct fw_enc_hdr)) in enc_file_len()
148 *length -= sizeof(struct fw_enc_hdr); in enc_file_len()
153 static int enc_file_read(io_entity_t *entity, uintptr_t buffer, size_t length, in enc_file_read() argument
189 result = io_read(backend_handle, buffer, length, &bytes_read); in enc_file_read()
A Dio_mtd.c31 static int mtd_read(io_entity_t *entity, uintptr_t buffer, size_t length,
203 static int mtd_read(io_entity_t *entity, uintptr_t buffer, size_t length, in mtd_read() argument
211 assert((length > 0U) && (buffer != (uintptr_t)NULL)); in mtd_read()
218 cur->base + cur->pos, buffer, length); in mtd_read()
219 if ((cur->base + cur->pos + length) > cur->dev_spec->device_size) { in mtd_read()
224 length, out_length); in mtd_read()
229 assert(*out_length == length); in mtd_read()
/tf-a-ffa_el3_spmc/drivers/st/crypto/
A Dstm32_hash.c72 size_t length; member
185 size_t remain_length = length; in stm32_hash_update()
188 if ((length == 0U) || (buffer == NULL)) { in stm32_hash_update()
194 if (stm32_remain.length != 0U) { in stm32_hash_update()
198 length); in stm32_hash_update()
203 if (stm32_remain.length == sizeof(uint32_t)) { in stm32_hash_update()
227 assert(stm32_remain.length == 0U); in stm32_hash_update()
230 stm32_remain.length = remain_length; in stm32_hash_update()
245 if (stm32_remain.length != 0U) { in stm32_hash_final()
253 8U * stm32_remain.length); in stm32_hash_final()
[all …]
/tf-a-ffa_el3_spmc/lib/psci/
A Dpsci_mem_protect.c29 u_register_t psci_mem_chk_range(uintptr_t base, u_register_t length) in psci_mem_chk_range() argument
35 if ((length == 0U) || check_uptr_overflow(base, length - 1U)) in psci_mem_chk_range()
38 ret = psci_plat_pm_ops->mem_protect_chk(base, length); in psci_mem_chk_range()
/tf-a-ffa_el3_spmc/drivers/mtd/nand/
A Dcore.c24 int nand_read(unsigned int offset, uintptr_t buffer, size_t length, in nand_read() argument
28 unsigned int end_block = (offset + length - 1U) / nand_dev.block_size; in nand_read()
39 block, end_block, page_start, nb_pages, length, offset); in nand_read()
43 if (((start_offset != 0U) || (length % nand_dev.page_size) != 0U) && in nand_read()
70 (length < nand_dev.page_size)) { in nand_read()
81 length); in nand_read()
99 length -= bytes_read; in nand_read()
103 if (length == 0U) { in nand_read()
/tf-a-ffa_el3_spmc/drivers/renesas/common/io/
A Dio_memdrv.c79 size_t length, size_t *cnt) in memdrv_block_read() argument
87 (unsigned long long)fp->file_pos, length, length); in memdrv_block_read()
89 if (FLASH_MEMORY_SIZE < (fp->file_pos + (signed long long)length)) { in memdrv_block_read()
94 rcar_dma_exec(buffer, fp->base + (uintptr_t)fp->file_pos, length); in memdrv_block_read()
95 fp->file_pos += (signed long long)length; in memdrv_block_read()
96 *cnt = length; in memdrv_block_read()
A Dio_emmcdrv.c54 size_t length, size_t *length_read) in emmcdrv_block_read() argument
61 sector_num = (length + EMMC_SECTOR_SIZE - 1U) >> EMMC_SECTOR_SIZE_SHIFT; in emmcdrv_block_read()
66 sector_add, length, sector_num); in emmcdrv_block_read()
68 if ((buffer + length - 1U) <= (uintptr_t)UINT32_MAX) { in emmcdrv_block_read()
77 *length_read = length; in emmcdrv_block_read()
78 fp->file_pos += (signed long long)length; in emmcdrv_block_read()
/tf-a-ffa_el3_spmc/drivers/allwinner/axp/
A Dcommon.c125 int node, length; in board_uses_usb0_host_mode() local
134 prop = fdt_getprop(fdt, node, "dr_mode", &length); in board_uses_usb0_host_mode()
139 return !strncmp(prop, "host", length); in board_uses_usb0_host_mode()
176 int length; in axp_setup_regulators() local
182 name = fdt_get_name(fdt, node, &length); in axp_setup_regulators()
185 if (!strncmp(name, "dc1sw", length) || in axp_setup_regulators()
186 !strncmp(name, "sw", length)) { in axp_setup_regulators()
192 if (!strncmp(name, reg->dt_name, length)) { in axp_setup_regulators()
/tf-a-ffa_el3_spmc/include/drivers/io/
A Dio_storage.h64 size_t length; member
93 int io_size(uintptr_t handle, size_t *length);
95 int io_read(uintptr_t handle, uintptr_t buffer, size_t length,
98 int io_write(uintptr_t handle, const uintptr_t buffer, size_t length,
A Dio_driver.h43 int (*size)(io_entity_t *entity, size_t *length);
44 int (*read)(io_entity_t *entity, uintptr_t buffer, size_t length,
47 size_t length, size_t *length_written);
A Dio_mtd.h35 int (*read)(unsigned int offset, uintptr_t buffer, size_t length,
46 int (*write)(unsigned int offset, uintptr_t buffer, size_t length);
/tf-a-ffa_el3_spmc/lib/libfdt/
A Dfdt_ro.c730 return length; in fdt_stringlist_count()
732 end = list + length; in fdt_stringlist_count()
741 list += length; in fdt_stringlist_count()
756 return length; in fdt_stringlist_search()
759 end = list + length; in fdt_stringlist_search()
768 if (length == len && memcmp(list, string, length) == 0) in fdt_stringlist_search()
771 list += length; in fdt_stringlist_search()
783 int length; in fdt_stringlist_get() local
788 *lenp = length; in fdt_stringlist_get()
793 end = list + length; in fdt_stringlist_get()
[all …]
/tf-a-ffa_el3_spmc/common/
A Dfdt_wrappers.c95 unsigned int length, void *value) in fdtw_read_bytes() argument
114 if ((unsigned int)value_len < length) { in fdtw_read_bytes()
119 (void)memcpy(value, ptr, length); in fdtw_read_bytes()
161 unsigned int length, uint8_t *uuid) in fdtw_read_uuid() argument
172 if (length < UUID_BYTES_LENGTH) { in fdtw_read_uuid()
249 if ((unsigned int)value_len < length) { in fdtw_write_inplace_bytes()
257 data, (int)length); in fdtw_write_inplace_bytes()
456 length = fdt32_to_cpu(ranges_prop->len); in fdtw_search_all_xlat_entries()
529 int length, local_bus_node; in fdtw_translate_address() local
545 local_bus_node, "ranges", &length); in fdtw_translate_address()
[all …]
/tf-a-ffa_el3_spmc/drivers/st/io/
A Dio_stm32image.c32 static int stm32image_partition_size(io_entity_t *entity, size_t *length);
34 size_t length, size_t *length_read);
165 static int stm32image_partition_size(io_entity_t *entity, size_t *length) in stm32image_partition_size() argument
174 assert(length != NULL); in stm32image_partition_size()
235 *length = stm32image_dev.lba_size; in stm32image_partition_size()
237 *length = header->image_length; in stm32image_partition_size()
240 INFO("STM32 Image size : %lu\n", (unsigned long)*length); in stm32image_partition_size()
247 size_t length, size_t *length_read) in stm32image_partition_read() argument
283 result = stm32image_partition_size(entity, &length); in stm32image_partition_read()
296 local_length = round_up(length - ((MAX_LBA_SIZE) - hdr_sz), in stm32image_partition_read()
[all …]
A Dio_mmc.c25 static int mmc_block_read(io_entity_t *entity, uintptr_t buffer, size_t length,
105 size_t length, size_t *length_read) in mmc_block_read() argument
111 buffer, length); in mmc_block_read()
113 if (*length_read == length) { in mmc_block_read()
117 (unsigned long)*length_read, (unsigned long)length, in mmc_block_read()
/tf-a-ffa_el3_spmc/include/common/
A Dfdt_wrappers.h28 unsigned int length, uint8_t *uuid);
32 unsigned int length, void *value);
34 unsigned int length, const void *data);
/tf-a-ffa_el3_spmc/plat/hisilicon/hikey/
A Dhikey_io_storage.c51 .length = PLAT_PARTITION_BLOCK_SIZE *
60 .length = HIKEY_BL1_MMC_DATA_SIZE,
65 .length = HIKEY_MMC_DATA_SIZE,
283 if (emmc_fip_spec.length == 0) { in hikey_set_fip_addr()
291 emmc_fip_spec.length = entry->length; in hikey_set_fip_addr()
/tf-a-ffa_el3_spmc/include/lib/
A Dutils.h57 void zero_normalmem(void *mem, u_register_t length);
70 void zeromem(void *mem, u_register_t length);
/tf-a-ffa_el3_spmc/drivers/st/fmc/
A Dstm32_fmc2_nand.c579 length -= sizeof(uint8_t); in stm32_fmc2_read_data()
586 length -= sizeof(uint16_t); in stm32_fmc2_read_data()
593 length -= sizeof(uint32_t); in stm32_fmc2_read_data()
597 if (length >= sizeof(uint16_t)) { in stm32_fmc2_read_data()
600 length -= sizeof(uint16_t); in stm32_fmc2_read_data()
603 if (length != 0U) { in stm32_fmc2_read_data()
627 length -= sizeof(uint8_t); in stm32_fmc2_write_data()
634 length -= sizeof(uint16_t); in stm32_fmc2_write_data()
641 length -= sizeof(uint32_t); in stm32_fmc2_write_data()
648 length -= sizeof(uint16_t); in stm32_fmc2_write_data()
[all …]

Completed in 44 milliseconds

1234