/trusted-firmware-a/lib/utils/ |
A D | mem_region.c | 39 assert(tbl->nbytes > 0); in clear_mem_regions() 40 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in clear_mem_regions() 41 zero_normalmem((void *) (tbl->base), tbl->nbytes); in clear_mem_regions() 72 size = regions[i].nbytes; in clear_map_dyn_mem_regions() 116 uintptr_t addr, size_t nbytes) in mem_region_in_array_chk() argument 122 assert(nbytes != 0U); in mem_region_in_array_chk() 123 assert(!check_uptr_overflow(addr, nbytes-1)); in mem_region_in_array_chk() 126 region_end = addr + (nbytes - 1U); in mem_region_in_array_chk() 128 assert(tbl->nbytes > 0); in mem_region_in_array_chk() 129 assert(!check_uptr_overflow(tbl->base, tbl->nbytes-1)); in mem_region_in_array_chk() [all …]
|
/trusted-firmware-a/drivers/io/ |
A D | io_block.c | 334 padding = (nbytes > left) ? nbytes - left : 0U; in block_read() 335 nbytes -= padding; in block_read() 339 nbytes); in block_read() 342 count += nbytes; in block_read() 437 padding = (nbytes > left) ? nbytes - left : 0U; in block_write() 438 nbytes -= padding; in block_write() 463 padding = (nbytes > left) ? nbytes - left : 0U; in block_write() 469 nbytes); in block_write() 482 padding = (nbytes > left) ? nbytes - left : 0U; in block_write() 483 nbytes -= padding; in block_write() [all …]
|
/trusted-firmware-a/drivers/st/spi/ |
A D | stm32_qspi.c | 141 if (op->data.nbytes == 0U) { in stm32_qspi_wait_cmd() 192 for (len = op->data.nbytes; len != 0U; len--) { in stm32_qspi_poll() 213 op->data.nbytes); in stm32_qspi_mm() 220 if (op->data.nbytes == 0U) { in stm32_qspi_tx() 251 op->addr.val, op->data.nbytes); in stm32_qspi_exec_op() 258 addr_max = op->addr.val + op->data.nbytes + 1U; in stm32_qspi_exec_op() 269 if (op->data.nbytes != 0U) { in stm32_qspi_exec_op() 277 if (op->addr.nbytes != 0U) { in stm32_qspi_exec_op() 278 ccr |= (op->addr.nbytes - 1U) << QSPI_CCR_ADSIZE_SHIFT; in stm32_qspi_exec_op() 284 ccr |= (op->dummy.nbytes * 8U / op->dummy.buswidth) << in stm32_qspi_exec_op() [all …]
|
/trusted-firmware-a/include/drivers/ |
A D | spi_mem.h | 56 uint8_t nbytes; member 62 uint8_t nbytes; member 69 unsigned int nbytes; member
|
/trusted-firmware-a/drivers/mtd/nor/ |
A D | spi_nor.c | 48 op.data.nbytes = len; in spi_nor_reg() 298 nor_dev.read_op.data.nbytes = MIN(length, remain_len); in spi_nor_read() 300 nor_dev.read_op.data.nbytes = length; in spi_nor_read() 309 length -= nor_dev.read_op.data.nbytes; in spi_nor_read() 310 nor_dev.read_op.addr.val += nor_dev.read_op.data.nbytes; in spi_nor_read() 311 nor_dev.read_op.data.buf += nor_dev.read_op.data.nbytes; in spi_nor_read() 312 *length_read += nor_dev.read_op.data.nbytes; in spi_nor_read() 333 nor_dev.read_op.addr.nbytes = 3U; in spi_nor_init()
|
/trusted-firmware-a/drivers/mtd/nand/ |
A D | spi_nand.c | 44 op.addr.nbytes = 1U; in spi_nand_reg() 48 op.data.nbytes = 1U; in spi_nand_reg() 153 op.data.nbytes = SPI_NAND_MAX_ID_LEN; in spi_nand_read_id() 173 op.addr.nbytes = 3U; in spi_nand_load_page() 194 spinand_dev.spi_read_cache_op.data.nbytes = len; in spi_nand_read_from_cache() 279 spinand_dev.spi_read_cache_op.addr.nbytes = 2U; in spi_nand_init() 281 spinand_dev.spi_read_cache_op.dummy.nbytes = 1U; in spi_nand_init()
|
/trusted-firmware-a/plat/st/stm32mp1/ |
A D | stm32mp1_boot_device.c | 145 device->spi_read_cache_op.addr.nbytes = 2U; in plat_get_spi_nand_data() 147 device->spi_read_cache_op.dummy.nbytes = 1U; in plat_get_spi_nand_data() 164 device->read_op.addr.nbytes = 3U; in plat_get_nor_data() 166 device->read_op.dummy.nbytes = 1U; in plat_get_nor_data()
|
/trusted-firmware-a/include/lib/ |
A D | utils.h | 21 size_t nbytes; member 48 uintptr_t addr, size_t nbytes);
|
/trusted-firmware-a/drivers/mtd/spi-mem/ |
A D | spi_mem.c | 70 if ((op->addr.nbytes != 0U) && in spi_mem_supports_op() 75 if ((op->dummy.nbytes != 0U) && in spi_mem_supports_op() 80 if ((op->data.nbytes != 0U) && in spi_mem_supports_op() 158 op->addr.val, op->data.nbytes); in spi_mem_exec_op()
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t186/drivers/se/ |
A D | se.c | 73 uint32_t nbytes, uint32_t last_buf, uint32_t src_len_inbytes) in tegra_se_start_normal_operation() argument 81 if ((src_addr == 0UL) || (nbytes == 0U)) in tegra_se_start_normal_operation() 87 (nbytes & 0xffffffU)); in tegra_se_start_normal_operation()
|
/trusted-firmware-a/lib/debugfs/ |
A D | dev.c | 167 int buf_to_channel(chan_t *channel, void *dst, void *src, int nbytes, long len) in buf_to_channel() argument 179 if ((channel->offset + nbytes) > len) { in buf_to_channel() 180 nbytes = len - channel->offset; in buf_to_channel() 183 memcpy(dst, addr + channel->offset, nbytes); in buf_to_channel() 185 channel->offset += nbytes; in buf_to_channel() 187 return nbytes; in buf_to_channel()
|
A D | dev.h | 96 int buf_to_channel(chan_t *c, void *dst, void *src, int nbytes, long len);
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t194/drivers/se/ |
A D | se.c | 230 uint32_t nbytes, uint32_t last_buf, uint32_t src_len_inbytes) in tegra_se_start_normal_operation() argument 238 if ((src_addr == 0ULL) || (nbytes == 0U)) in tegra_se_start_normal_operation() 244 (nbytes & MAX_SHA_ENGINE_CHUNK_SIZE)); in tegra_se_start_normal_operation()
|
/trusted-firmware-a/plat/nvidia/tegra/soc/t210/drivers/se/ |
A D | security_engine.c | 308 static int tegra_se_perform_operation(const tegra_se_dev_t *se_dev, uint32_t nbytes, in tegra_se_perform_operation() argument 311 uint32_t nblocks = nbytes / TEGRA_SE_AES_BLOCK_SIZE; in tegra_se_perform_operation() 350 int tegra_se_start_normal_operation(const tegra_se_dev_t *se_dev, uint32_t nbytes) in tegra_se_start_normal_operation() argument 352 return tegra_se_perform_operation(se_dev, nbytes, false); in tegra_se_start_normal_operation() 358 int tegra_se_start_ctx_save_operation(const tegra_se_dev_t *se_dev, uint32_t nbytes) in tegra_se_start_ctx_save_operation() argument 360 return tegra_se_perform_operation(se_dev, nbytes, true); in tegra_se_start_ctx_save_operation()
|
/trusted-firmware-a/lib/zlib/ |
A D | zutil.h | 92 void *_Cdecl farmalloc( unsigned long nbytes );
|