Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-Core-3.6.0/tests/benchmarks/latency_measure/src/
Dint_to_thread.c56 static void int_to_interrupted_thread(uint32_t num_iterations, uint64_t *sum) in int_to_interrupted_thread() argument
61 *sum = 0ull; in int_to_interrupted_thread()
68 *sum += timing_cycles_get(&start, &finish); in int_to_interrupted_thread()
79 uint64_t sum = 0ull; in start_thread_entry() local
99 sum += timing_cycles_get(&start, &finish); in start_thread_entry()
102 timestamp.cycles = sum; in start_thread_entry()
127 static void int_to_another_thread(uint32_t num_iterations, uint64_t *sum, in int_to_another_thread() argument
131 *sum = 0ull; in int_to_another_thread()
157 *sum = timestamp.cycles; in int_to_another_thread()
168 uint64_t sum; in int_to_thread() local
[all …]
Dthread_switch_yield.c52 uint64_t sum = 0ull; in start_thread_entry() local
80 sum += timing_cycles_get(&start, &finish); in start_thread_entry()
89 timestamp.cycles = sum; in start_thread_entry()
98 uint64_t sum; in thread_switch_yield_common() local
130 sum = timestamp.cycles; in thread_switch_yield_common()
132 sum -= timestamp_overhead_adjustment(start_options, alt_options); in thread_switch_yield_common()
141 PRINT_STATS_AVG(summary, (uint32_t)sum, num_iterations, 0, ""); in thread_switch_yield_common()
Devents.c125 uint64_t sum[4] = {0ULL, 0ULL, 0ULL, 0ULL}; in alt_thread_entry() local
139 sum[0] += timing_cycles_get(&start, &mid); in alt_thread_entry()
140 sum[1] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
155 sum[2] += timing_cycles_get(&start, &mid); in alt_thread_entry()
156 sum[3] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
161 timestamp.cycles = sum[0]; in alt_thread_entry()
164 timestamp.cycles = sum[1]; in alt_thread_entry()
167 timestamp.cycles = sum[2]; in alt_thread_entry()
170 timestamp.cycles = sum[3]; in alt_thread_entry()
Dlifo.c173 uint64_t sum[4] = {0ULL, 0ULL, 0ULL, 0ULL}; in alt_thread_entry() local
195 sum[0] += timing_cycles_get(&start, &mid); in alt_thread_entry()
196 sum[1] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
216 sum[2] += timing_cycles_get(&start, &mid); in alt_thread_entry()
217 sum[3] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
221 timestamp.cycles = sum[0]; in alt_thread_entry()
223 timestamp.cycles = sum[1]; in alt_thread_entry()
227 timestamp.cycles = sum[2]; in alt_thread_entry()
229 timestamp.cycles = sum[3]; in alt_thread_entry()
Dfifo.c173 uint64_t sum[4] = {0ULL, 0ULL, 0ULL, 0ULL}; in alt_thread_entry() local
195 sum[0] += timing_cycles_get(&start, &mid); in alt_thread_entry()
196 sum[1] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
216 sum[2] += timing_cycles_get(&start, &mid); in alt_thread_entry()
217 sum[3] += timing_cycles_get(&mid, &finish); in alt_thread_entry()
221 timestamp.cycles = sum[0]; in alt_thread_entry()
223 timestamp.cycles = sum[1]; in alt_thread_entry()
227 timestamp.cycles = sum[2]; in alt_thread_entry()
229 timestamp.cycles = sum[3]; in alt_thread_entry()
/Zephyr-Core-3.6.0/drivers/gnss/
Dgnss_parse.c22 int64_t sum = 0; in gnss_parse_dec_to_nano() local
58 sum += (str[pos] - '0') * increment; in gnss_parse_dec_to_nano()
70 sum = start == 1 ? -sum : sum; in gnss_parse_dec_to_nano()
72 *nano = sum; in gnss_parse_dec_to_nano()
86 sum += (str[pos] - '0') * increment; in gnss_parse_dec_to_nano()
96 sum = start == 1 ? -sum : sum; in gnss_parse_dec_to_nano()
98 *nano = sum; in gnss_parse_dec_to_nano()
/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Ddfu.h29 uint8_t sum[2] = {0, 0}; in dfu_metadata_checksum() local
37 sum[0] += byte; in dfu_metadata_checksum()
38 sum[1] += sum[0]; in dfu_metadata_checksum()
43 return (sum[0] << 8U) | sum[1]; in dfu_metadata_checksum()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dutils.c532 uint64_t sum; in calc_chksum() local
542 sum = BSWAP_16(sum_in); in calc_chksum()
544 sum = sum_in; in calc_chksum()
549 sum += offset_based_swap8(data); in calc_chksum()
555 sum = sum + *((uint16_t *)data); in calc_chksum()
569 sum += sum_a + sum_b; in calc_chksum()
573 sum = sum + p[i++]; in calc_chksum()
578 sum = sum + *((uint16_t *)data); in calc_chksum()
582 sum += offset_based_swap8(data); in calc_chksum()
586 while (sum >> 16) { in calc_chksum()
[all …]
Dnet_stats.h355 UPDATE_STAT(iface, stats.tx_time.sum += in net_stats_update_tx_time()
371 stats.tx_time_detail[i].sum += in net_stats_update_tx_time_detail()
388 UPDATE_STAT(iface, stats.rx_time.sum += in net_stats_update_rx_time()
404 stats.rx_time_detail[i].sum += in net_stats_update_rx_time_detail()
443 UPDATE_STAT(iface, stats.tc.sent[tc].tx_time.sum += in net_stats_update_tc_tx_time()
463 stats.tc.sent[tc].tx_time_detail[i].sum += in net_stats_update_tc_tx_time_detail()
485 UPDATE_STAT(iface, stats.tc.recv[tc].rx_time.sum += in net_stats_update_tc_rx_time()
505 stats.tc.recv[tc].rx_time_detail[i].sum += in net_stats_update_tc_rx_time_detail()
/Zephyr-Core-3.6.0/samples/arch/smp/pi/src/
Dmain.c61 int sum = 0, value; in test_thread() local
64 sum = sum * j + NEW_BASE * array[j]; in test_thread()
65 array[j] = sum % (j * 2 - 1); in test_thread()
66 sum /= j * 2 - 1; in test_thread()
69 value = carry + sum / NEW_BASE; in test_thread()
70 carry = sum % NEW_BASE; in test_thread()
/Zephyr-Core-3.6.0/subsys/shell/modules/
Ddevmem_service.c30 static int sum; variable
185 shell_print(sh, "Number of bytes read: %d", sum); in bypass_cb()
189 while (sum > 4) { in bypass_cb()
192 sum = sum - 4; in bypass_cb()
194 if (sum % 4 == 0) { in bypass_cb()
196 } else if (sum % 4 == 2) { in bypass_cb()
198 } else if (sum % 4 == 3) { in bypass_cb()
216 sum++; in bypass_cb()
227 sum = 0; in cmd_load()
/Zephyr-Core-3.6.0/tests/arch/x86/info/src/
Dtimer.c56 uint64_t sum = 0; in timer() local
65 sum += end - start; in timer()
71 printk("\taverage = %uHz\n", (unsigned) (sum / NR_SAMPLES)); in timer()
/Zephyr-Core-3.6.0/drivers/fuel_gauge/bq27z746/
Demul_bq27z746.c85 uint8_t sum = 0; /* Intentionally 8 bit wide and overflowing */ in emul_bq27z746_read_altmac() local
88 sum += buf[i]; in emul_bq27z746_read_altmac()
90 buf[34] = 0xFF - sum; in emul_bq27z746_read_altmac()
Dbq27z746.c90 uint8_t sum = 0; /* Intentionally 8 bit wide and overflowing */ in bq27z746_read_mac() local
93 sum += buf[i]; in bq27z746_read_mac()
96 const uint8_t checksum_expected = 0xFF - sum; in bq27z746_read_mac()
/Zephyr-Core-3.6.0/drivers/counter/
Dcounter_nrfx_rtc.c140 uint32_t sum = val1 + val2; in ticks_add() local
144 return sum & NRF_RTC_COUNTER_MAX; in ticks_add()
147 sum = sum & top; in ticks_add()
149 sum = sum > top ? sum - (top + 1) : sum; in ticks_add()
152 return skip_zero_on_custom_top(sum, top); in ticks_add()
/Zephyr-Core-3.6.0/tests/net/utils/src/
Dmain.c851 static uint16_t calc_chksum_ref(uint16_t sum, const uint8_t *data, size_t len) in calc_chksum_ref() argument
860 sum += tmp; in calc_chksum_ref()
861 if (sum < tmp) { in calc_chksum_ref()
862 sum++; in calc_chksum_ref()
870 sum += tmp; in calc_chksum_ref()
871 if (sum < tmp) { in calc_chksum_ref()
872 sum++; in calc_chksum_ref()
876 return sum; in calc_chksum_ref()
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dstats.c180 tc.sent[i].tx_time_detail[j].sum) / in get_net_pkt_tc_stats_detail()
186 tc.recv[i].rx_time_detail[j].sum) / in get_net_pkt_tc_stats_detail()
242 tx_time_detail[j].sum) / in get_net_pkt_stats_detail()
248 rx_time_detail[j].sum) / in get_net_pkt_stats_detail()
330 tc.sent[i].tx_time.sum) / in print_tc_tx_stats()
354 (uint32_t)(GET_STAT(iface, tx_time.sum) / (uint64_t)count), in print_tc_tx_stats()
389 tc.recv[i].rx_time.sum) / in print_tc_rx_stats()
413 (uint32_t)(GET_STAT(iface, rx_time.sum) / (uint64_t)count), in print_tc_rx_stats()
/Zephyr-Core-3.6.0/drivers/input/
Dinput_gt911.c189 uint8_t sum = 0; in gt911_get_firmware_checksum() local
193 sum += (*firmware); in gt911_get_firmware_checksum()
197 return (~sum + 1U); in gt911_get_firmware_checksum()
/Zephyr-Core-3.6.0/tests/unit/util/
Dmain.c291 static void fsum(uint32_t incr, uint32_t *sum) in fsum() argument
293 *sum = *sum + incr; in fsum()
297 uint32_t sum = 0; in ZTEST() local
299 FOR_EACH_FIXED_ARG(fsum, (;), &sum, 1, 2, 3); in ZTEST()
301 zassert_equal(sum, 6, "Unexpected value %d", sum); in ZTEST()
/Zephyr-Core-3.6.0/include/zephyr/net/
Dnet_stats.h226 uint64_t sum; member
234 uint64_t sum; member
/Zephyr-Core-3.6.0/kernel/
DCMakeLists.txt127 # Calculate the sum of all "ADD_SIZE" requirements
144 # CONFIG_HEAP_MEM_POOL_SIZE was greater than the sum of the requirements
/Zephyr-Core-3.6.0/cmake/
Dtarget_toolchain_flags.cmake5 # * The MD5 sum of the compiler itself. A MD5 checksum is taken of the content
/Zephyr-Core-3.6.0/scripts/ci/stats/
Dmerged_prs.py92 business_days = sum(1 for day in dates if day.weekday() < 5)
/Zephyr-Core-3.6.0/samples/modules/tflite-micro/magic_wand/train/
Dtrain.py47 print("Model size:", sum(var_sizes) / 1024, "KB")
/Zephyr-Core-3.6.0/samples/drivers/fpga/fpga_controller/
DREADME.rst103 It will print the sum of the read bytes and return to the shell:

12