/Zephyr-latest/subsys/shell/ |
D | shell_history.c | 110 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-latest/subsys/bluetooth/host/ |
D | data.c | 50 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()
|
D | monitor.c | 289 size_t total_len; member 298 for (i = 0; i < length && ctx->total_len < sizeof(ctx->msg); i++) { in monitor_log_out() 307 ctx->msg[ctx->total_len++] = data[i]; in monitor_log_out() 344 ctx.total_len = 0; in monitor_log_process() 355 sizeof(user_log) + sizeof(id) + ctx.total_len + 1); in monitor_log_process() 363 monitor_send(ctx.msg, ctx.total_len); in monitor_log_process()
|
/Zephyr-latest/drivers/disk/ |
D | loopback_disk.c | 41 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-latest/tests/net/ipv6_fragment/src/ |
D | main.c | 1040 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-latest/subsys/net/lib/mqtt/ |
D | mqtt_transport_socket_tcp.c | 91 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()
|
D | mqtt_transport_socket_tls.c | 147 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-latest/drivers/ethernet/ |
D | eth_gecko.c | 144 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 …]
|
D | eth_smsc911x.c | 477 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()
|
D | eth_stm32_hal.c | 329 size_t total_len; in eth_tx() local 350 total_len = net_pkt_get_len(pkt); in eth_tx() 351 if (total_len > (ETH_STM32_TX_BUF_SIZE * ETH_TXBUFNB)) { in eth_tx() 382 remaining_read = total_len; in eth_tx() 408 if (net_pkt_read(pkt, dma_buffer, total_len)) { in eth_tx() 415 tx_config.Length = total_len; in eth_tx() 477 hal_ret = HAL_ETH_TransmitFrame(heth, total_len); in eth_tx() 555 size_t total_len = 0; in eth_rx() local 591 total_len += rx_header->size; in eth_rx() 600 total_len = heth->RxFrameInfos.length; in eth_rx() [all …]
|
D | eth_numaker.c | 470 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-latest/drivers/crypto/ |
D | crypto_it8xxx2_sha.c | 56 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()
|
D | crypto_it8xxx2_sha_v2.c | 69 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-latest/subsys/net/lib/lwm2m/ |
D | lwm2m_rw_plain_text.c | 348 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()
|
/Zephyr-latest/drivers/spi/ |
D | spi_context.h | 443 size_t total_len = 0; in spi_context_total_tx_len() local 446 total_len += ctx->current_tx[n].len; in spi_context_total_tx_len() 449 return total_len; in spi_context_total_tx_len() 455 size_t total_len = 0; in spi_context_total_rx_len() local 458 total_len += ctx->current_rx[n].len; in spi_context_total_rx_len() 461 return total_len; in spi_context_total_rx_len()
|
/Zephyr-latest/drivers/espi/ |
D | espi_taf_npcx.c | 330 uint32_t total_len = pckt->len; in espi_taf_npcx_flash_read() local 331 uint32_t len = total_len; in espi_taf_npcx_flash_read() 346 if (total_len > max_read_req) { in espi_taf_npcx_flash_read() 356 if (total_len <= config->rx_plsz) { in espi_taf_npcx_flash_read() 358 len = total_len; in espi_taf_npcx_flash_read() 378 total_len -= len; in espi_taf_npcx_flash_read() 381 if (total_len <= config->rx_plsz) { in espi_taf_npcx_flash_read() 383 len = total_len; in espi_taf_npcx_flash_read() 387 } while (total_len); in espi_taf_npcx_flash_read()
|
/Zephyr-latest/tests/subsys/logging/log_frontend_stmesp_demux/src/ |
D | main.c | 52 zassert_equal(exp_len, packet.log->hdr.total_len, "%d: Unexpected len:%d (exp:%d)", line, in claim_packet() 53 packet.log->hdr.total_len, exp_len); in claim_packet() 190 union log_frontend_stmesp_demux_header hdr = {.log = {.total_len = len}}; in write_packet() 288 union log_frontend_stmesp_demux_header hdr0 = {.log = {.total_len = len0}}; in ZTEST() 289 union log_frontend_stmesp_demux_header hdr1 = {.log = {.total_len = len1}}; in ZTEST() 326 union log_frontend_stmesp_demux_header hdr = {.log = {.total_len = len}}; in ZTEST() 450 union log_frontend_stmesp_demux_header hdr = {.log = {.total_len = len}}; in ZTEST()
|
/Zephyr-latest/subsys/logging/frontends/ |
D | log_frontend_stmesp_demux.c | 130 static uint32_t calc_wlen(uint32_t total_len) in calc_wlen() argument 132 return DIV_ROUND_UP(ROUND_UP(total_len, Z_LOG_MSG_ALIGNMENT), sizeof(uint32_t)); in calc_wlen() 148 len = calc_wlen(p.log->hdr.total_len + in get_wlen() 474 uint32_t pkt_len = hdr.log.total_len + offsetof(struct log_frontend_stmesp_demux_log, data); in log_frontend_stmesp_demux_packet_start() 527 if (demux.curr->off + len <= demux.curr->packet->hdr.total_len) { in log_frontend_stmesp_demux_data() 541 if (demux.curr->off != demux.curr->packet->hdr.total_len) { in log_frontend_stmesp_demux_packet_end()
|
D | log_frontend_stmesp.c | 343 int total_len; in log_frontend_msg() local 354 total_len = desc.data_len + sname_len /* null terminator */; in log_frontend_msg() 358 hdr.log.total_len = total_len + package_len; in log_frontend_msg() 387 (early_buf_alloc(hdr.log.total_len + sizeof(hdr)) == false)) { in log_frontend_msg()
|
D | log_frontend_dict_uart.c | 268 size_t total_len = plen + dlen + sizeof(struct log_frontend_uart_pkt); in log_frontend_msg() local 269 size_t total_wlen = DIV_ROUND_UP(total_len, sizeof(uint32_t)); in log_frontend_msg() 288 pkt->hdr.noff = sizeof(uint32_t) * total_wlen - total_len; in log_frontend_msg()
|
/Zephyr-latest/include/zephyr/net/ |
D | zperf.h | 66 uint64_t total_len; /**< Total length of the transferred data */ member
|
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_smartbond.c | 115 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-latest/include/zephyr/logging/ |
D | log_frontend_stmesp_demux.h | 59 uint32_t total_len : LOG_FRONTEND_STMESP_DEMUX_TLENGTH_BITS; member
|
/Zephyr-latest/modules/nrf_wifi/os/ |
D | shim.c | 397 unsigned int total_len; in net_raw_pkt_from_nbuf() local 407 total_len = raw_hdr_len + nwb_len; in net_raw_pkt_from_nbuf() 409 data = (unsigned char *)k_malloc(total_len); in net_raw_pkt_from_nbuf() 415 pkt = net_pkt_rx_alloc_with_buffer(iface, total_len, AF_PACKET, ETH_P_ALL, K_MSEC(100)); in net_raw_pkt_from_nbuf() 424 if (net_pkt_write(pkt, data, total_len)) { in net_raw_pkt_from_nbuf()
|
/Zephyr-latest/subsys/bluetooth/controller/hci/ |
D | hci_driver.c | 186 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()
|