Home
last modified time | relevance | path

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

12

/subsys/shell/
A 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()
145 total_len += padding; 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()
188 if (claim2_len == total_len) { in z_shell_history_put()
194 total_len += claim_len; in z_shell_history_put()
195 claim_len = total_len; in z_shell_history_put()
[all …]
/subsys/bluetooth/host/
A Ddata.c55 size_t total_len = 0; in bt_data_get_len() local
58 total_len += sizeof(data[i].data_len) + sizeof(data[i].type) + data[i].data_len; in bt_data_get_len()
61 return total_len; in bt_data_get_len()
A Dmonitor.c296 size_t total_len; member
305 for (i = 0; i < length && ctx->total_len < sizeof(ctx->msg); i++) { in monitor_log_out()
314 ctx->msg[ctx->total_len++] = data[i]; in monitor_log_out()
351 ctx.total_len = 0; in monitor_log_process()
362 sizeof(user_log) + sizeof(id) + ctx.total_len + 1); in monitor_log_process()
370 monitor_send(ctx.msg, ctx.total_len); in monitor_log_process()
/subsys/net/lib/mqtt/
A Dmqtt_transport_socket_tcp.c109 size_t total_len = 0; in mqtt_client_tcp_write_msg() local
112 total_len += message->msg_iov[i].iov_len; in mqtt_client_tcp_write_msg()
115 while (offset < total_len) { in mqtt_client_tcp_write_msg()
122 if (offset >= total_len) { in mqtt_client_tcp_write_msg()
A Dmqtt_transport_socket_tls.c165 size_t total_len = 0; in mqtt_client_tls_write_msg() local
168 total_len += message->msg_iov[i].iov_len; in mqtt_client_tls_write_msg()
171 while (offset < total_len) { in mqtt_client_tls_write_msg()
178 if (offset >= total_len) { in mqtt_client_tls_write_msg()
A Dmqtt_encoder.c500 size_t total_len = 0; in user_properties_length() local
510 total_len += len; in user_properties_length()
513 return total_len; in user_properties_length()
/subsys/net/lib/lwm2m/
A Dlwm2m_rw_plain_text.c350 int len, total_len; in get_objlnk() local
357 total_len = len; in get_objlnk()
361 total_len++; in get_objlnk()
369 total_len += len; in get_objlnk()
372 return total_len; in get_objlnk()
A Dlwm2m_rw_json.c816 int len, total_len; in get_objlnk() local
842 total_len = len; in get_objlnk()
855 total_len += len; in get_objlnk()
858 return total_len; in get_objlnk()
A Dlwm2m_rw_senml_json.c1287 int len, total_len; in get_objlnk() local
1313 total_len = len; in get_objlnk()
1326 total_len += len; in get_objlnk()
1329 return total_len; in get_objlnk()
/subsys/bluetooth/audio/
A Dbap_scan_delegator.c617 uint16_t total_len; in scan_delegator_add_src() local
632 uint16_t index = total_len; in scan_delegator_add_src()
635 if (total_len > buf->len) { in scan_delegator_add_src()
642 total_len += subgroup->metadata_len; in scan_delegator_add_src()
643 if (total_len > buf->len) { in scan_delegator_add_src()
650 if (total_len != buf->len) { in scan_delegator_add_src()
845 uint16_t total_len; in scan_delegator_mod_src() local
861 uint16_t index = total_len; in scan_delegator_mod_src()
864 if (total_len > buf->len) { in scan_delegator_mod_src()
872 if (total_len > buf->len) { in scan_delegator_mod_src()
[all …]
/subsys/logging/frontends/
A Dlog_frontend_stmesp_demux.c147 static uint32_t calc_wlen(uint32_t total_len) in calc_wlen() argument
149 return DIV_ROUND_UP(ROUND_UP(total_len, Z_LOG_MSG_ALIGNMENT), sizeof(uint32_t)); in calc_wlen()
165 len = calc_wlen(p.log->hdr.total_len + in get_wlen()
515 uint32_t pkt_len = hdr.log.total_len + offsetof(struct log_frontend_stmesp_demux_log, data); in log_frontend_stmesp_demux_packet_start()
568 if (demux.curr->off + len <= demux.curr->packet->hdr.total_len) { in log_frontend_stmesp_demux_data()
582 if (demux.curr->off != demux.curr->packet->hdr.total_len) { in log_frontend_stmesp_demux_packet_end()
A Dlog_frontend_stmesp.c343 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()
A Dlog_frontend_dict_uart.c268 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()
/subsys/pmci/mctp/
A Dmctp_uart.c73 uint8_t total_len; in mctp_uart_pkt_escape() local
77 total_len = pkt->end - pkt->mctp_hdr_off; in mctp_uart_pkt_escape()
81 for (i = 0, j = 0; i < total_len; i++, j++) { in mctp_uart_pkt_escape()
/subsys/net/lib/coap/
A Dcoap_client.c647 int total_len; in recv_response() local
657 total_len = receive(client->fd, client->recv_buf, sizeof(client->recv_buf), flags, in recv_response()
660 if (total_len < 0) { in recv_response()
663 } else if (total_len == 0) { in recv_response()
668 available_len = MIN(total_len, sizeof(client->recv_buf)); in recv_response()
669 *truncated = available_len < total_len; in recv_response()
/subsys/bluetooth/host/classic/
A Dsdp.c791 uint32_t total_len = 0; in copy_attribute() local
835 total_len += copy_len; in copy_attribute()
842 total_len += size; in copy_attribute()
874 total_len += copy_len; in copy_attribute()
881 total_len += copy_len; in copy_attribute()
888 total_len += copy_len; in copy_attribute()
899 return total_len; in copy_attribute()
1905 session->total_len = 0; in sdp_client_params_iterator()
2338 if (session->total_len && (session->recv_len != session->total_len)) { in sdp_client_receive_ssa_sa()
2340 session->total_len); in sdp_client_receive_ssa_sa()
[all …]
/subsys/bluetooth/controller/hci/
A Dhci_driver.c126 uint16_t total_len; in sink_sdu_emit_hci() local
146 total_len = sdu->total_sdu_size; in sink_sdu_emit_hci()
161 total_len = 0; in sink_sdu_emit_hci()
184 slen_packed = bt_iso_pkt_len_pack(total_len, packet_status_flag); in sink_sdu_emit_hci()
/subsys/bluetooth/host/shell/
A Dgatt.c718 size_t total_len; in cmd_show_db() local
745 total_len = stats.svc_count * sizeof(struct bt_gatt_service); in cmd_show_db()
746 total_len += stats.chrc_count * sizeof(struct bt_gatt_chrc); in cmd_show_db()
747 total_len += stats.attr_count * sizeof(struct bt_gatt_attr); in cmd_show_db()
748 total_len += stats.ccc_count * sizeof(struct bt_gatt_ccc_managed_user_data); in cmd_show_db()
752 stats.svc_count, stats.attr_count, total_len); in cmd_show_db()
/subsys/net/lib/websocket/
A Dwebsocket.c554 size_t total_len = 0; in sendmsg_all() local
557 total_len += message->msg_iov[i].iov_len; in sendmsg_all()
560 while (offset < total_len) { in sendmsg_all()
585 if (offset >= total_len) { in sendmsg_all()
603 return total_len; in sendmsg_all()
/subsys/usb/device_next/class/
A Dusbd_midi2.c299 size_t total_len = sys_le16_to_cpu(config->desc->grptrm_header.wTotalLength); in usbd_midi_class_cth() local
321 if (setup->wLength > head_len && total_len > head_len) { in usbd_midi_class_cth()
323 MIN(total_len, setup->wLength) - head_len); in usbd_midi_class_cth()
/subsys/net/lib/zperf/
A Dzperf_tcp_uploader.c124 results->total_len = (uint64_t)nb_packets * packet_size; in tcp_upload()
A Dzperf_tcp_receiver.c82 results.total_len = session->length; in tcp_received()
A Dzperf_udp_uploader.c49 results->total_len = (((uint64_t)ntohl(UNALIGNED_GET(&stat->total_len1))) << 32) + in zperf_upload_decode_stat()
A Dzperf_shell.c338 ((result->total_len * 8ULL * USEC_PER_SEC) / in udp_session_cb()
503 ((results->total_len * 8 * USEC_PER_SEC) / in shell_udp_upload_print_stats()
1485 ((result->total_len * 8ULL * USEC_PER_SEC) / in tcp_session_cb()
A Dzperf_udp_receiver.c183 results.total_len = session->length; in udp_received()

Completed in 74 milliseconds

12