Home
last modified time | relevance | path

Searched refs:packet_size (Results 1 – 14 of 14) sorted by relevance

/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_tcp_uploader.c41 unsigned int packet_size, in tcp_upload() argument
50 if (packet_size > PACKET_SIZE_MAX) { in tcp_upload()
53 packet_size = PACKET_SIZE_MAX; in tcp_upload()
69 ret = sendall(sock, sample_packet, packet_size); in tcp_upload()
106 results->packet_size = packet_size; in tcp_upload()
142 ret = tcp_upload(sock, param->duration_ms, param->packet_size, result); in zperf_tcp_upload()
191 ret = tcp_upload(sock, round_duration, param.packet_size, &periodic_result); in tcp_upload_async_work()
205 result.packet_size = periodic_result.packet_size; in tcp_upload_async_work()
208 ret = tcp_upload(sock, param.duration_ms, param.packet_size, &result); in tcp_upload_async_work()
Dzperf_udp_uploader.c52 uint32_t packet_size, in zperf_upload_fin() argument
91 hdr->num_of_bytes = htonl(packet_size); in zperf_upload_fin()
94 ret = zsock_send(sock, sample_packet, packet_size, 0); in zperf_upload_fin()
146 uint32_t packet_size = param->packet_size; in udp_upload() local
148 uint32_t packet_duration_us = zperf_packet_duration(packet_size, rate_in_kbps); in udp_upload()
158 if (packet_size > PACKET_SIZE_MAX) { in udp_upload()
161 packet_size = PACKET_SIZE_MAX; in udp_upload()
162 } else if (packet_size < sizeof(struct zperf_udp_datagram)) { in udp_upload()
165 packet_size = sizeof(struct zperf_udp_datagram); in udp_upload()
227 hdr->num_of_bytes = htonl(packet_size); in udp_upload()
[all …]
Dzperf_common.c217 uint32_t zperf_packet_duration(uint32_t packet_size, uint32_t rate_in_kbps) in zperf_packet_duration() argument
219 return (uint32_t)(((uint64_t)packet_size * 8U * USEC_PER_SEC) / in zperf_packet_duration()
Dzperf_internal.h109 uint32_t zperf_packet_duration(uint32_t packet_size, uint32_t rate_in_kbps);
Dzperf_shell.c497 (uint64_t)results->packet_size * (uint64_t)8 * in shell_udp_upload_print_stats()
553 (uint64_t)results->packet_size * (uint64_t)8 * in shell_tcp_upload_print_stats()
584 (uint64_t)results->packet_size * (uint64_t)8 * in shell_tcp_upload_print_periodic()
719 param->packet_size); in execute_upload()
736 zperf_packet_duration(param->packet_size, param->rate_kbps); in execute_upload()
1041 param.packet_size = parse_number(argv[start + 4], K, K_UNIT); in shell_cmd_upload()
1043 param.packet_size = DEF_PACKET_SIZE; in shell_cmd_upload()
1227 param.packet_size = parse_number(argv[start + 3], K, K_UNIT); in shell_cmd_upload2()
1229 param.packet_size = DEF_PACKET_SIZE; in shell_cmd_upload2()
Dzperf_udp_receiver.c186 results.packet_size = session->length / session->counter; in udp_received()
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367_decoder.c253 uint8_t packet_size, struct sensor_chan_spec chan_spec, uint8_t packet_alignment, in adxl367_get_12b_accel() argument
403 struct sensor_q31_data *data, const uint8_t *buffer, int count, uint8_t packet_size) in adxl367_get_12b_temp() argument
406 uint8_t offset = ((packet_size - 1) * 12) / 8; in adxl367_get_12b_temp()
407 uint8_t start_offset = ((packet_size - 1) * 12) % 8; in adxl367_get_12b_temp()
426 uint8_t packet_size = enc_data->packet_size; in adxl367_decode_12b_stream() local
440 sample_end += (packet_size * 12) / 8; in adxl367_decode_12b_stream()
442 sample_end += (packet_size * 12) / 8 + 1; in adxl367_decode_12b_stream()
452 if (enc_data->packet_size % 2) { in adxl367_decode_12b_stream()
477 adxl367_get_12b_temp(enc_data, data, buffer, count, packet_size); in adxl367_decode_12b_stream()
487 int ret = adxl367_get_12b_accel(enc_data, data, buffer, count, packet_size, in adxl367_decode_12b_stream()
[all …]
Dadxl367_stream.c201 size_t packet_size = sample_numb; in adxl367_process_fifo_samples_cb() local
233 packet_size = packet_size * 12 / 8; in adxl367_process_fifo_samples_cb()
235 packet_size++; in adxl367_process_fifo_samples_cb()
241 packet_size *= 2; in adxl367_process_fifo_samples_cb()
254 const size_t min_read_size = sizeof(struct adxl367_fifo_data) + packet_size; in adxl367_process_fifo_samples_cb()
280 hdr->packet_size = sample_numb; in adxl367_process_fifo_samples_cb()
282 hdr->packet_size = packet_size; in adxl367_process_fifo_samples_cb()
359 uint32_t pkts = read_len / packet_size; in adxl367_process_fifo_samples_cb()
361 read_len = pkts * packet_size; in adxl367_process_fifo_samples_cb()
Dadxl367.h411 uint8_t packet_size; member
/Zephyr-latest/include/zephyr/net/
Dzperf.h42 uint16_t packet_size; member
70 uint32_t packet_size; /**< Packet size */ member
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_rtio_stream.c93 const size_t packet_size = drv_data->cfg.fifo_hires ? 20 : 16; in icm42688_fifo_count_cb() local
94 const size_t min_read_size = sizeof(struct icm42688_fifo_data) + packet_size; in icm42688_fifo_count_cb()
128 uint32_t pkts = read_len / packet_size; in icm42688_fifo_count_cb()
130 read_len = pkts * packet_size; in icm42688_fifo_count_cb()
/Zephyr-latest/drivers/sensor/adi/adxl372/
Dadxl372_stream.c140 size_t packet_size; in adxl372_get_packet_size() local
146 packet_size = 2; in adxl372_get_packet_size()
152 packet_size = 4; in adxl372_get_packet_size()
156 packet_size = 6; in adxl372_get_packet_size()
160 return packet_size; in adxl372_get_packet_size()
/Zephyr-latest/drivers/modem/
Dsimcom-sim7080.c309 int ret, packet_size; in sockread_common() local
359 packet_size = modem_socket_next_packet_size(&mdata.socket_config, sock); in sockread_common()
360 modem_socket_packet_size_update(&mdata.socket_config, sock, -packet_size); in sockread_common()
380 int ret, packet_size; in offload_recvfrom() local
401 packet_size = modem_socket_next_packet_size(&mdata.socket_config, sock); in offload_recvfrom()
402 if (!packet_size) { in offload_recvfrom()
409 packet_size = modem_socket_next_packet_size(&mdata.socket_config, sock); in offload_recvfrom()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c648 uint16_t packet_size = FIFO_HEADER_SIZE + FIFO_ACCEL_DATA_SIZE + FIFO_GYRO_DATA_SIZE + in icm42670_fetch_from_fifo() local
675 status |= inv_imu_read_reg(&data->driver, FIFO_DATA, packet_size * packet_count, in icm42670_fetch_from_fifo()
690 fifo_idx += packet_size; in icm42670_fetch_from_fifo()