Home
last modified time | relevance | path

Searched refs:total_len (Results 1 – 25 of 37) sorted by relevance

12

/Zephyr-Core-3.7.0/subsys/shell/
Dshell_history.c110 uint32_t total_len; in remove_from_tail() local
121 total_len = offsetof(struct shell_history_item, data) + in remove_from_tail()
123 ring_buf_get(history->ring_buf, NULL, total_len); in remove_from_tail()
139 uint32_t total_len = len + offsetof(struct shell_history_item, data); in z_shell_history_put() local
142 uint16_t padding = (~total_len + 1) & (sizeof(void *) - 1); in z_shell_history_put()
145 total_len += padding; in z_shell_history_put()
147 if (total_len > ring_buf_capacity_get(history->ring_buf)) { in z_shell_history_put()
180 (uint8_t **)&h_item, total_len); in z_shell_history_put()
184 if (claim_len < total_len) { in z_shell_history_put()
187 (uint8_t **)&h_item, total_len); in z_shell_history_put()
[all …]
/Zephyr-Core-3.7.0/subsys/bluetooth/host/
Ddata.c50 size_t total_len = 0; in bt_data_get_len() local
53 total_len += sizeof(data[i].data_len) + sizeof(data[i].type) + data[i].data_len; in bt_data_get_len()
56 return total_len; in bt_data_get_len()
Dmonitor.c275 size_t total_len; member
284 for (i = 0; i < length && ctx->total_len < sizeof(ctx->msg); i++) { in monitor_log_out()
293 ctx->msg[ctx->total_len++] = data[i]; in monitor_log_out()
330 ctx.total_len = 0; in monitor_log_process()
341 sizeof(user_log) + sizeof(id) + ctx.total_len + 1); in monitor_log_process()
349 monitor_send(ctx.msg, ctx.total_len); in monitor_log_process()
/Zephyr-Core-3.7.0/drivers/disk/
Dloopback_disk.c41 const size_t total_len = num_sector * LOOPBACK_SECTOR_SIZE; in loopback_disk_access_read() local
42 size_t len_left = total_len; in loopback_disk_access_read()
79 const size_t total_len = num_sector * LOOPBACK_SECTOR_SIZE; in loopback_disk_access_write() local
82 while (buf_offset < total_len) { in loopback_disk_access_write()
83 ret = fs_write(&ctx->file, &data_buf[buf_offset], total_len - buf_offset); in loopback_disk_access_write()
/Zephyr-Core-3.7.0/tests/net/ipv6_fragment/src/
Dmain.c1040 size_t total_len = net_pkt_get_len(pkt); in verify_fragment() local
1042 total_len -= sizeof(struct net_ipv6_hdr); in verify_fragment()
1044 ipv6_first_frag[4] = total_len / 256; in verify_fragment()
1045 ipv6_first_frag[5] = total_len - in verify_fragment()
1048 if ((total_len / 256) != pkt->buffer->data[4]) { in verify_fragment()
1053 if ((total_len - pkt->buffer->data[4] * 256U) != in verify_fragment()
1072 pkt_recv_data_len += total_len - 8 /* HBHO */ - in verify_fragment()
1092 size_t total_len = net_pkt_get_len(pkt); in verify_fragment() local
1094 total_len -= sizeof(struct net_ipv6_hdr); in verify_fragment()
1096 ipv6_second_frag[4] = total_len / 256; in verify_fragment()
[all …]
/Zephyr-Core-3.7.0/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tcp.c91 size_t total_len = 0; in mqtt_client_tcp_write_msg() local
94 total_len += message->msg_iov[i].iov_len; in mqtt_client_tcp_write_msg()
97 while (offset < total_len) { in mqtt_client_tcp_write_msg()
104 if (offset >= total_len) { in mqtt_client_tcp_write_msg()
Dmqtt_transport_socket_tls.c147 size_t total_len = 0; in mqtt_client_tls_write_msg() local
150 total_len += message->msg_iov[i].iov_len; in mqtt_client_tls_write_msg()
153 while (offset < total_len) { in mqtt_client_tls_write_msg()
160 if (offset >= total_len) { in mqtt_client_tls_write_msg()
/Zephyr-Core-3.7.0/drivers/ethernet/
Deth_gecko.c144 uint16_t frag_len, total_len; in frame_get() local
155 total_len = 0; in frame_get()
178 total_len += (dma_rx_desc_tab[j].status & in frame_get()
190 rx_buf_idx, total_len); in frame_get()
196 total_len, AF_UNSPEC, 0, K_NO_WAIT); in frame_get()
208 while (total_len) { in frame_get()
209 frag_len = MIN(total_len, ETH_RX_BUF_SIZE); in frame_get()
224 total_len -= frag_len; in frame_get()
269 uint16_t total_len; in eth_tx() local
281 total_len = net_pkt_get_len(pkt); in eth_tx()
[all …]
Deth_smsc911x.c477 uint16_t total_len = net_pkt_get_len(pkt); in eth_tx() local
484 | total_len; in eth_tx()
486 txcmd_b = total_len << 16 | total_len; in eth_tx()
490 if (net_pkt_read(pkt, tx_buf, total_len)) { in eth_tx()
494 res = smsc_write_tx_fifo(tx_buf, total_len, true); in eth_tx()
Deth_stm32_hal.c311 size_t total_len; in eth_tx() local
332 total_len = net_pkt_get_len(pkt); in eth_tx()
333 if (total_len > (ETH_STM32_TX_BUF_SIZE * ETH_TXBUFNB)) { in eth_tx()
374 remaining_read = total_len; in eth_tx()
404 if (net_pkt_read(pkt, dma_buffer, total_len)) { in eth_tx()
413 tx_buffer_def.len = total_len; in eth_tx()
421 tx_config.Length = total_len; in eth_tx()
454 LOG_HEXDUMP_ERR(dma_buffer, total_len, "eth packet timeout"); in eth_tx()
489 hal_ret = HAL_ETH_TransmitFrame(heth, total_len); in eth_tx()
600 size_t total_len = 0; in eth_rx() local
[all …]
Deth_numaker.c470 uint16_t total_len = net_pkt_get_len(pkt); in numaker_eth_tx() local
475 if (total_len > NET_ETH_MAX_FRAME_SIZE) { in numaker_eth_tx()
477 LOG_ERR("TX packet length [%d] over max [%d]", total_len, NET_ETH_MAX_FRAME_SIZE); in numaker_eth_tx()
487 if (net_pkt_read(pkt, buffer, total_len)) { in numaker_eth_tx()
492 m_numaker_gmacdev_trigger_tx(gmacdev, total_len); in numaker_eth_tx()
/Zephyr-Core-3.7.0/drivers/crypto/
Dcrypto_it8xxx2_sha.c56 uint32_t total_len; member
90 chip_ctx.total_len = 0; in it8xxx2_sha256_init()
145 chip_ctx.total_len += pkt->in_len; in it8xxx2_hash_handler()
160 chip_ctx.w_sha[15] = sys_cpu_to_be32(chip_ctx.total_len * 8); in it8xxx2_hash_handler()
Dcrypto_it8xxx2_sha_v2.c69 uint32_t total_len; member
78 chip_ctx.total_len = 0; in it8xxx2_sha256_init()
200 chip_ctx.total_len += pkt->in_len; in it8xxx2_hash_handler()
234 chip_ctx.w_sha[15] = sys_cpu_to_be32(chip_ctx.total_len * 8); in it8xxx2_hash_handler()
/Zephyr-Core-3.7.0/drivers/espi/
Despi_taf_npcx.c319 uint32_t total_len = pckt->len; in espi_taf_npcx_flash_read() local
320 uint32_t len = total_len; in espi_taf_npcx_flash_read()
336 if (total_len > max_read_req) { in espi_taf_npcx_flash_read()
346 if (total_len <= config->rx_plsz) { in espi_taf_npcx_flash_read()
348 len = total_len; in espi_taf_npcx_flash_read()
368 total_len -= len; in espi_taf_npcx_flash_read()
371 if (total_len <= config->rx_plsz) { in espi_taf_npcx_flash_read()
373 len = total_len; in espi_taf_npcx_flash_read()
377 } while (total_len); in espi_taf_npcx_flash_read()
/Zephyr-Core-3.7.0/subsys/net/lib/lwm2m/
Dlwm2m_rw_plain_text.c348 int len, total_len; in get_objlnk() local
355 total_len = len; in get_objlnk()
359 total_len++; in get_objlnk()
367 total_len += len; in get_objlnk()
370 return total_len; in get_objlnk()
Dlwm2m_rw_json.c814 int len, total_len; in get_objlnk() local
840 total_len = len; in get_objlnk()
853 total_len += len; in get_objlnk()
856 return total_len; in get_objlnk()
Dlwm2m_rw_cbor.c437 opaque->len = hndl.total_len; in get_opaque()
438 opaque->remaining = hndl.total_len; in get_opaque()
/Zephyr-Core-3.7.0/drivers/spi/
Dspi_context.h435 size_t total_len = 0; in spi_context_total_tx_len() local
438 total_len += ctx->current_tx[n].len; in spi_context_total_tx_len()
441 return total_len; in spi_context_total_tx_len()
447 size_t total_len = 0; in spi_context_total_rx_len() local
450 total_len += ctx->current_rx[n].len; in spi_context_total_rx_len()
453 return total_len; in spi_context_total_rx_len()
/Zephyr-Core-3.7.0/include/zephyr/net/
Dzperf.h66 uint64_t total_len; /**< Total length of the transferred data */ member
/Zephyr-Core-3.7.0/subsys/logging/
Dlog_frontend_dict_uart.c272 size_t total_len = plen + dlen + sizeof(struct log_frontend_uart_pkt); in log_frontend_msg() local
273 size_t total_wlen = DIV_ROUND_UP(total_len, sizeof(uint32_t)); in log_frontend_msg()
292 pkt->hdr.noff = sizeof(uint32_t) * total_wlen - total_len; in log_frontend_msg()
/Zephyr-Core-3.7.0/drivers/usb/device/
Dusb_dc_smartbond.c115 uint16_t total_len; /** Total length of current transfer */ member
372 remaining = ep_state->total_len - ep_state->transferred; in fill_tx_fifo()
450 ep_state->total_len = 0; in start_rx_packet()
493 uint16_t remaining = ep_state->total_len - ep_state->transferred; in start_tx_packet()
610 if (ep0_in_state->transferred == ep0_in_state->total_len) { in handle_ep0_tx()
616 ep0_out_state->total_len = 0; in handle_ep0_tx()
751 if (ep_state->transferred == ep_state->total_len) { in handle_epx_tx_ev()
833 dev_state.ep_state[1][i].total_len = 0; in handle_bus_reset()
1414 ep_state->total_len = 0; in usb_dc_ep_enable()
1508 ep_state->total_len = data_len; in usb_dc_ep_write()
/Zephyr-Core-3.7.0/subsys/net/lib/coap/
Dcoap_client.c552 int total_len; in recv_response() local
557 total_len = receive(client->fd, client->recv_buf, sizeof(client->recv_buf), in recv_response()
561 if (total_len < 0) { in recv_response()
564 } else if (total_len == 0) { in recv_response()
569 available_len = MIN(total_len, sizeof(client->recv_buf)); in recv_response()
570 *truncated = available_len < total_len; in recv_response()
/Zephyr-Core-3.7.0/subsys/bluetooth/controller/hci/
Dhci_driver.c186 uint16_t total_len; in sink_sdu_emit_hci() local
206 total_len = sdu->total_sdu_size; in sink_sdu_emit_hci()
221 total_len = 0; in sink_sdu_emit_hci()
244 slen_packed = bt_iso_pkt_len_pack(total_len, packet_status_flag); in sink_sdu_emit_hci()
/Zephyr-Core-3.7.0/subsys/bluetooth/shell/
Dgatt.c722 size_t total_len; in cmd_show_db() local
749 total_len = stats.svc_count * sizeof(struct bt_gatt_service); in cmd_show_db()
750 total_len += stats.chrc_count * sizeof(struct bt_gatt_chrc); in cmd_show_db()
751 total_len += stats.attr_count * sizeof(struct bt_gatt_attr); in cmd_show_db()
752 total_len += stats.ccc_count * sizeof(struct _bt_gatt_ccc); in cmd_show_db()
756 stats.svc_count, stats.attr_count, total_len); in cmd_show_db()
/Zephyr-Core-3.7.0/subsys/net/lib/websocket/
Dwebsocket.c552 size_t total_len = 0; in sendmsg_all() local
555 total_len += message->msg_iov[i].iov_len; in sendmsg_all()
558 while (offset < total_len) { in sendmsg_all()
583 if (offset >= total_len) { in sendmsg_all()
601 return total_len; in sendmsg_all()

12