Home
last modified time | relevance | path

Searched refs:size (Results 1 – 12 of 12) sorted by relevance

/nrf_hw_models-latest/tests/zephyr_apps/54_aar_ccm_ecb/src/
Dcommon.h27 static inline void reverse_bytearray(uint8_t *p_array_in, uint8_t *p_array_out, unsigned size) {
28 for (unsigned i = 0; i < size; i++) {
29 p_array_out[size - i - 1] = p_array_in[i];
33 static inline void print_byte_array(uint8_t *in, unsigned size) { in print_byte_array() argument
34 for (unsigned i = 0; i < size; i++) { in print_byte_array()
43 static inline void print_uint32_array(uint32_t *in, unsigned size) { in print_uint32_array() argument
44 for (unsigned i = 0; i < size; i++) { in print_uint32_array()
Dtest_ccm.c79 static void print_and_verify_bytearray(uint8_t *p_vals, uint8_t *p_expected_vals, unsigned size) in print_and_verify_bytearray() argument
84 for (size_t i = 0; i < size; i++) { in print_and_verify_bytearray()
/nrf_hw_models-latest/src/HW_models/
DNHW_NVM_backend.c38 st->storage = (uint8_t *)bs_malloc(st->size); in nhw_nvm_initialize_data_storage()
55 if (ftruncate(st->fd, st->size) == -1) { in nhw_nvm_initialize_data_storage()
60 st->storage = mmap(NULL, st->size, PROT_WRITE | PROT_READ, MAP_SHARED, st->fd, 0); in nhw_nvm_initialize_data_storage()
69 (void)memset(st->storage, 0xFF, st->size); in nhw_nvm_initialize_data_storage()
74 size_t size, char *type_s) in nhw_nvm_init_storage() argument
80 st->size = size; in nhw_nvm_init_storage()
102 munmap(st->storage, st->size); in nhw_nvm_clear_storage()
DNHW_RRAMC.c158 (void)memset(this->uicr_st.storage, 0xFF, this->uicr_st.size); in nhw_RRAMC_erase_uicr()
167 (void)memset(this->rram_st.storage, 0xFF, this->rram_st.size); in nhw_RRAMC_erase_all()
335 void nhw_RRAMC_write_buffer(uint32_t address, void *src, size_t size) { in nhw_RRAMC_write_buffer() argument
342 if (offset + size >= backend->size) { in nhw_RRAMC_write_buffer()
343 OUT_OF_RRAM_ERROR(address + size); in nhw_RRAMC_write_buffer()
346 (void)memcpy(&backend->storage[offset], src, size); in nhw_RRAMC_write_buffer()
365 void nhw_RRAMC_read_buffer(void *dest, uint32_t address, size_t size) { in nhw_RRAMC_read_buffer() argument
372 if (offset + size >= backend->size) { in nhw_RRAMC_read_buffer()
373 OUT_OF_RRAM_ERROR(address + size); in nhw_RRAMC_read_buffer()
376 (void)memcpy(dest, &backend->storage[offset], size); in nhw_RRAMC_read_buffer()
DNHW_RRAMC.h25 void nhw_RRAMC_write_buffer(uint32_t address, void *src, size_t size);
26 void nhw_RRAMC_read_buffer(void *dest, uint32_t address, size_t size);
DNHW_UART_backend_fifo.c163 static void write_to_tx_fifo(struct ufifo_st_t *u_el, void *ptr, size_t size) { in write_to_tx_fifo() argument
164 int res = write(u_el->fifo_tx, ptr, size); in write_to_tx_fifo()
166 if (res != (int)size) { in write_to_tx_fifo()
189 msg.header.size = sizeof(msg); in tx_sync_line_params()
201 msg.size = sizeof(msg); in tx_nop()
211 msg.size = sizeof(msg); in tx_disconnect()
231 msg.header.size = sizeof(msg); in nhw_ufifo_tx_byte()
249 msg.header.size = sizeof(msg); in nhw_ufifo_RTS_pin_toggle()
296 static int uf_rx_lowlevel_read(struct ufifo_st_t *u_el, void *buf, size_t size) { in uf_rx_lowlevel_read() argument
297 int ret = read(u_el->fifo_rx, buf, size); in uf_rx_lowlevel_read()
[all …]
DNHW_NVM_backend.h23 size_t size; member
39 size_t size, char *type);
DNRF_GPIO_backend.c173 static int readline(char *s, int size, FILE *stream) in readline() argument
180 while ((i < size - 1) && ((c=getc(stream)) != EOF) && c!='\n') { in readline()
201 if (i >= size - 1) { in readline()
203 size-1); in readline()
DNHW_NVMC.c234 (void)memset(this->uicr_st.storage, 0xFF, this->uicr_st.size); in nhw_nvmc_complete_erase_uicr()
243 (void)memset(this->flash_st.storage, 0xFF, this->flash_st.size); in nhw_nvmc_complete_erase_all()
615 void nhw_nmvc_read_buffer(void *dest, uint32_t address, size_t size) { in nhw_nmvc_read_buffer() argument
625 for (uint32_t i = offset; i < offset + size ; i+= this->flash_page_size) { in nhw_nmvc_read_buffer()
630 if (offset + size > backend->size) { in nhw_nmvc_read_buffer()
631 OUT_OF_FLASH_ERROR(address + size); in nhw_nmvc_read_buffer()
634 (void)memcpy(dest, &backend->storage[offset], size); in nhw_nmvc_read_buffer()
DNHW_UART_backend_fifo.h47 uint16_t size; member
DNHW_NVMC.h30 void nhw_nmvc_read_buffer(void *dest, uint32_t address, size_t size);
DNRF_PPI.c665 uint size; member
679 tasks_queue.size = TASK_QUEUE_ALLOC_SIZE; in nrf_ppi_init()
704 if (tasks_queue.used >= tasks_queue.size) { in nrf_ppi_enqueue_task()
705 tasks_queue.size += TASK_QUEUE_ALLOC_SIZE; in nrf_ppi_enqueue_task()
706 tasks_queue.q = bs_realloc(tasks_queue.q, tasks_queue.size*sizeof(dest_f_t)); in nrf_ppi_enqueue_task()