Home
last modified time | relevance | path

Searched refs:total_size (Results 1 – 25 of 60) sorted by relevance

123

/Zephyr-latest/drivers/mm/
Dmm_drv_intel_adsp_regions.c24 uint32_t attributes, uint32_t position, uint32_t *total_size) in append_region() argument
29 total_size += mem_size; in append_region()
34 int i, total_size = 0; in calculate_memory_regions() local
38 CORE_HEAP_SIZE, MEM_REG_ATTR_CORE_HEAP, i, &total_size); in calculate_memory_regions()
43 CORE_HEAP_SIZE, MEM_REG_ATTR_SHARED_HEAP, i, &total_size); in calculate_memory_regions()
47 OPPORTUNISTIC_REGION_SIZE, MEM_REG_ATTR_OPPORTUNISTIC_MEMORY, i, &total_size); in calculate_memory_regions()
52 append_region(NULL, 0, 0, i, &total_size); in calculate_memory_regions()
54 if (total_size > L2_VIRTUAL_SRAM_SIZE) { in calculate_memory_regions()
/Zephyr-latest/lib/utils/
Dring_buffer.c61 uint32_t total_size = 0U; in ring_buf_put() local
67 total_size += partial_size; in ring_buf_put()
72 err = ring_buf_put_finish(buf, total_size); in ring_buf_put()
76 return total_size; in ring_buf_put()
128 uint32_t total_size = 0U; in ring_buf_get() local
137 total_size += partial_size; in ring_buf_get()
141 err = ring_buf_get_finish(buf, total_size); in ring_buf_get()
145 return total_size; in ring_buf_get()
152 uint32_t total_size = 0U; in ring_buf_peek() local
162 total_size += partial_size; in ring_buf_peek()
[all …]
/Zephyr-latest/subsys/bluetooth/mesh/
Dlarge_comp_data_srv.c50 size_t offset, total_size; in handle_large_comp_data_get() local
86 total_size = bt_mesh_comp_page_size(page); in handle_large_comp_data_get()
87 net_buf_simple_add_le16(&rsp, total_size); in handle_large_comp_data_get()
89 if (offset < total_size) { in handle_large_comp_data_get()
111 size_t offset, total_size; in handle_models_metadata_get() local
146 total_size = bt_mesh_metadata_page_0_size(); in handle_models_metadata_get()
147 net_buf_simple_add_le16(&rsp, total_size); in handle_models_metadata_get()
149 if (offset < total_size) { in handle_models_metadata_get()
Dlarge_comp_data_cli.c44 uint16_t total_size; in data_status() local
52 total_size = net_buf_simple_pull_le16(buf); in data_status()
57 rsp->total_size = total_size; in data_status()
71 .total_size = total_size, in data_status()
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/
Dtest_lcd.c191 ASSERT_EQUAL(total_size_local, srv_rsp->total_size); in verify_status_fields()
202 uint16_t offset, uint16_t total_size, uint16_t *prev_len) in rsp_equals_local_data_assert() argument
207 verify_status_fields(srv_rsp, page, offset, total_size); in rsp_equals_local_data_assert()
237 uint16_t offset, total_size; in test_cli_max_sdu_comp_data_request() local
263 total_size = bt_mesh_comp_page_size(0); in test_cli_max_sdu_comp_data_request()
268 rsp_equals_local_data_assert(SRV_ADDR, &srv_rsp, &local_comp, page, offset, total_size, in test_cli_max_sdu_comp_data_request()
305 uint16_t total_size = bt_mesh_comp_page_size(comp_page); in test_cli_split_comp_data_request() local
308 ASSERT_TRUE(total_size <= CONFIG_BT_MESH_COMP_PST_BUF_SIZE); in test_cli_split_comp_data_request()
316 total_size, &prev_len); in test_cli_split_comp_data_request()
324 total_size, &prev_len); in test_cli_split_comp_data_request()
[all …]
/Zephyr-latest/subsys/tracing/
Dtracing_format_common.c61 uint32_t total_size = 0U; in tracing_format_data_put() local
72 total_size += claimed_size; in tracing_format_data_put()
83 tracing_buffer_put_finish(total_size); in tracing_format_data_put()
/Zephyr-latest/samples/net/lwm2m_client/src/
Dtimer.c20 size_t total_size, size_t offset) in timer_on_off_validate_cb() argument
37 size_t total_size, size_t offset) in timer_digital_state_cb() argument
Dled.c25 uint16_t data_len, bool last_block, size_t total_size, size_t offset) in led_on_off_cb() argument
Dfirmware_update.c44 size_t total_size, size_t offset) in firmware_block_received_cb() argument
/Zephyr-latest/drivers/modem/
Dmodem_iface_uart_interrupt.c58 uint32_t total_size = 0; in modem_iface_uart_isr() local
92 total_size += rx; in modem_iface_uart_isr()
96 ret = ring_buf_put_finish(&data->rx_rb, total_size); in modem_iface_uart_isr()
99 if (total_size > 0) { in modem_iface_uart_isr()
/Zephyr-latest/subsys/storage/stream/
Dstream_flash.c251 size_t total_size; member
261 ctx->total_size = 0; in find_flash_total_size()
265 ctx->total_size += info->size; in find_flash_total_size()
290 .total_size = 0 in stream_flash_init()
305 if (inspect_flash_ctx.total_size == 0) { in stream_flash_init()
309 if ((offset + size) > inspect_flash_ctx.total_size || in stream_flash_init()
322 ctx->available = (size == 0 ? inspect_flash_ctx.total_size - offset : in stream_flash_init()
/Zephyr-latest/subsys/net/lib/dns/
Ddns_sd.c304 uint16_t total_size; in add_a_record() local
317 total_size = in add_a_record()
321 if (offset > buf_size || total_size >= buf_size - offset) { in add_a_record()
323 total_size, (int)buf_size - (int)offset); in add_a_record()
345 __ASSERT_NO_MSG(total_size == offset - buf_offset); in add_a_record()
473 uint16_t total_size; in add_txt_record() local
485 total_size = in add_txt_record()
489 if (offset > buf_size || total_size >= buf_size - offset) { in add_txt_record()
491 total_size, (int)buf_size - (int)offset); in add_txt_record()
512 __ASSERT_NO_MSG(total_size == offset - buf_offset); in add_txt_record()
[all …]
/Zephyr-latest/drivers/wifi/eswifi/
Deswifi_bus_uart.c63 uint32_t total_size = 0; in eswifi_iface_uart_isr() local
85 total_size += rx; in eswifi_iface_uart_isr()
89 ring_buf_put_finish(&uart->rx_rb, total_size); in eswifi_iface_uart_isr()
/Zephyr-latest/samples/net/sockets/coap_download/src/
Dmain.c41 size_t total_size = offset + len; in on_coap_response() local
43 LOG_INF("CoAP download done, got %u bytes in %" PRId64 " ms", total_size, in on_coap_response()
/Zephyr-latest/include/zephyr/bluetooth/mesh/
Dlarge_comp_data_cli.h31 uint16_t total_size; member
/Zephyr-latest/include/zephyr/bluetooth/classic/
Dsdp.h290 uint32_t total_size; /**< Total size of the data element */ member
337 .total_size = BIT(_type & BT_SDP_SIZE_DESC_MASK) + 1
347 .total_size = BIT((_type & BT_SDP_SIZE_DESC_MASK) - \
/Zephyr-latest/samples/net/sockets/coap_server/src/
Dlarge.c33 if (ctx.total_size == 0) { in large_get()
75 ctx.total_size - ctx.current); in large_get()
139 ctx.total_size); in large_update_put()
/Zephyr-latest/tests/net/lib/lwm2m/interop/src/
Dfirmware_update.c42 size_t total_size, size_t offset) in firmware_block_received_cb() argument
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c339 size_t total_size = *size + BLOCK_HEADER_SIZE; in alloc_tx_buffer() local
340 size_t num_blocks = DIV_ROUND_UP(total_size, conf->tx.block_size); in alloc_tx_buffer()
441 size_t total_size; in release_tx_blocks() local
448 total_size = size + BLOCK_HEADER_SIZE; in release_tx_blocks()
449 num_blocks = DIV_ROUND_UP(total_size, conf->tx.block_size); in release_tx_blocks()
1336 #define GET_BLOCK_SIZE(i, total_size, local_blocks, remote_blocks) ROUND_DOWN( \ argument
1337 ((total_size) - GET_ICMSG_MIN_SIZE(i, (local_blocks), (remote_blocks))) / \
1343 #define GET_BLOCKS_OFFSET(i, total_size, local_blocks, remote_blocks) \ argument
1344 ((total_size) - GET_BLOCK_SIZE(i, (total_size), (local_blocks), \
/Zephyr-latest/subsys/net/lib/coap/
Dcoap.c1232 size_t total_size) in coap_block_transfer_init() argument
1235 ctx->total_size = total_size; in coap_block_transfer_init()
1301 SET_MORE(val, ctx->current + bytes < ctx->total_size); in coap_append_block1_option()
1324 SET_MORE(val, ctx->current + bytes < ctx->total_size); in coap_append_block2_option()
1336 return coap_append_option_int(cpkt, COAP_OPTION_SIZE1, ctx->total_size); in coap_append_size1_option()
1342 return coap_append_option_int(cpkt, COAP_OPTION_SIZE2, ctx->total_size); in coap_append_size2_option()
1449 if (size && ctx->total_size && ctx->total_size != size) { in update_descriptive_block()
1457 if (ctx->total_size && new_current > ctx->total_size) { in update_descriptive_block()
1462 ctx->total_size = size; in update_descriptive_block()
1490 ctx->total_size = size; in update_control_block1()
[all …]
Dcoap_client.c280 if (internal_req->send_blk_ctx.total_size > 0 || in coap_client_init_request()
283 if (internal_req->send_blk_ctx.total_size == 0) { in coap_client_init_request()
317 if (internal_req->send_blk_ctx.total_size > 0) { in coap_client_init_request()
321 payload_len = internal_req->send_blk_ctx.total_size - in coap_client_init_request()
340 if (internal_req->send_blk_ctx.total_size > 0) { in coap_client_init_request()
497 if (internal_req->send_blk_ctx.total_size > 0) { in resend_request()
929 if (internal_req->send_blk_ctx.total_size > 0) { in handle_response()
932 if (internal_req->send_blk_ctx.total_size == internal_req->send_blk_ctx.current) { in handle_response()
/Zephyr-latest/kernel/
Dstack.c69 size_t total_size; in z_vrfy_k_stack_alloc_init() local
74 &total_size))); in z_vrfy_k_stack_alloc_init()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dipso_timer.c206 size_t total_size, size_t offset) in cumulative_time_post_write_cb() argument
222 size_t total_size, size_t offset) in enabled_post_write_cb() argument
243 size_t total_size, size_t offset) in trigger_counter_post_write_cb() argument
/Zephyr-latest/subsys/bluetooth/mesh/shell/
Dlarge_comp_data.c26 rsp->offset, rsp->total_size); in status_print()
/Zephyr-latest/tests/net/lib/coap/src/
Dmain.c502 if (req_ctx->total_size == 0) { in prepare_block1_request()
527 payload_len = req_ctx->total_size - req_ctx->current; in prepare_block1_request()
548 if (rsp_ctx->total_size == 0) { in prepare_block1_response()
586 req_ctx->current, req_ctx->total_size, in verify_block1_request()
590 zassert_equal(req_ctx->total_size, BLOCK_WISE_TRANSFER_SIZE_GET, in verify_block1_request()
602 zassert_equal(rsp_ctx->total_size, BLOCK_WISE_TRANSFER_SIZE_GET, in verify_block1_response()
642 if (req_ctx->total_size == 0) { in prepare_block2_request()
674 if (rsp_ctx->total_size == 0) { in prepare_block2_response()
701 payload_len = rsp_ctx->total_size - rsp_ctx->current; in prepare_block2_response()
720 zassert_equal(req_ctx->total_size, BLOCK2_WISE_TRANSFER_SIZE_GET, in verify_block2_request()
[all …]

123