Home
last modified time | relevance | path

Searched refs:int64_t (Results 1 – 25 of 370) sorted by relevance

12345678910>>...15

/Zephyr-latest/lib/utils/
Dtimeutil.c31 static int64_t time_days_from_civil(int64_t y, in time_days_from_civil()
37 int64_t era = ((y >= 0) ? y : (y - 399)) / 400; in time_days_from_civil()
45 int64_t timeutil_timegm64(const struct tm *tm) in timeutil_timegm64()
47 int64_t y = TIME_UTILS_BASE_YEAR + (int64_t)tm->tm_year; in timeutil_timegm64()
50 int64_t ndays = time_days_from_civil(y, m, d); in timeutil_timegm64()
51 int64_t time = tm->tm_sec; in timeutil_timegm64()
61 int64_t time = timeutil_timegm64(tm); in timeutil_timegm()
66 && ((time < (int64_t)INT32_MIN) in timeutil_timegm()
67 || (time > (int64_t)INT32_MAX))) { in timeutil_timegm()
137 int64_t local_delta = local - tsp->base.local; in timeutil_sync_ref_from_local()
[all …]
/Zephyr-latest/tests/subsys/settings/src/
Dsettings_test_getset_int64.c15 int64_t new_val64; in ZTEST()
19 rc = settings_runtime_set(name, &new_val64, sizeof(int64_t)); in ZTEST()
28 zassert_equal(rc, sizeof(int64_t), "the key value should been available"); in ZTEST()
30 memcpy(&new_val64, tmp, sizeof(int64_t)); in ZTEST()
37 rc = settings_runtime_set(name, &new_val64, sizeof(int64_t)); in ZTEST()
46 zassert_equal(rc, sizeof(int64_t), "the key value should been available"); in ZTEST()
48 memcpy(&new_val64, tmp, sizeof(int64_t)); in ZTEST()
/Zephyr-latest/scripts/native_simulator/native/src/include/
Dnsi_timer_model.h21 void hwtimer_set_silent_ticks(int64_t sys_ticks);
23 int64_t hwtimer_get_pending_silent_ticks(void);
26 void hwtimer_set_rtc_offset(int64_t offset);
29 void hwtimer_adjust_rtc_offset(int64_t offset_delta);
31 int64_t hwtimer_get_simu_rtc_time(void);
/Zephyr-latest/boards/native/native_posix/
Dtimer_model.h22 void hwtimer_set_silent_ticks(int64_t sys_ticks);
24 int64_t hwtimer_get_pending_silent_ticks(void);
27 void hwtimer_set_rtc_offset(int64_t offset);
30 void hwtimer_adjust_rtc_offset(int64_t offset_delta);
32 int64_t hwtimer_get_simu_rtc_time(void);
Dtimer_model.c73 static int64_t silent_ticks;
106 static int64_t last_drift_offset;
113 static int64_t rtc_offset;
195 int64_t diff = expected_rt - real_time; in hwtimer_tick_timer_reached()
271 void hwtimer_set_silent_ticks(int64_t sys_ticks) in hwtimer_set_silent_ticks()
276 int64_t hwtimer_get_pending_silent_ticks(void) in hwtimer_get_pending_silent_ticks()
295 void hwtimer_set_rtc_offset(int64_t offset) in hwtimer_set_rtc_offset()
312 void hwtimer_adjust_rtc_offset(int64_t offset_delta) in hwtimer_adjust_rtc_offset()
323 int64_t s_diff = current_stime - last_radj_stime; in hwtimer_adjust_rt_ratio()
331 int64_t r_drift = (long double)(clock_ratio-1.0)/(clock_ratio)*s_diff; in hwtimer_adjust_rt_ratio()
[all …]
/Zephyr-latest/subsys/shell/modules/kernel_service/
Duptime.c18 int64_t milliseconds = k_uptime_get(); in cmd_kernel_uptime()
19 int64_t days; in cmd_kernel_uptime()
20 int64_t hours; in cmd_kernel_uptime()
21 int64_t minutes; in cmd_kernel_uptime()
22 int64_t seconds; in cmd_kernel_uptime()
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/
Dphy_3d_sensor.c26 static int64_t shifted_q31_to_scaled_int64(q31_t q, int8_t shift, int64_t scale) in shifted_q31_to_scaled_int64()
28 int64_t scaled_value; in shifted_q31_to_scaled_int64()
29 int64_t shifted_value; in shifted_q31_to_scaled_int64()
31 shifted_value = (int64_t)q << shift; in shifted_q31_to_scaled_int64()
45 static q31_t scaled_int64_to_shifted_q31(int64_t val, int64_t scale, in scaled_int64_to_shifted_q31()
53 int64_t micro_ms2 = sensor_value_to_micro(val); in accel_sensor_value_to_q31()
54 int64_t micro_g = micro_ms2 * 1000000LL / SENSOR_G; in accel_sensor_value_to_q31()
62 int64_t micro_g = shifted_q31_to_scaled_int64(q, in accel_q31_to_sensor_value()
64 int64_t micro_ms2 = micro_g * SENSOR_G / 1000000LL; in accel_q31_to_sensor_value()
78 int64_t micro_rad = (int64_t)sensor_value_to_micro(val); in gyro_sensor_value_to_q31()
[all …]
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_util.c107 int64_t v, f = 0; in lwm2m_float_to_b64()
109 int64_t val1 = (int64_t)*in; in lwm2m_float_to_b64()
110 int64_t val2 = (*in - (int64_t)*in) * PRECISION64; in lwm2m_float_to_b64()
131 f |= ((int64_t)1 << 52); in lwm2m_float_to_b64()
151 f |= (int64_t)1 << (51 - i); in lwm2m_float_to_b64()
259 int64_t f, k; in lwm2m_b64_to_float()
262 int64_t val1, val2; in lwm2m_b64_to_float()
281 f = ((int64_t)1 << 52); in lwm2m_b64_to_float()
283 f += ((int64_t)(b64[1] & 0xF) << 48); in lwm2m_b64_to_float()
284 f += ((int64_t)b64[2] << 40); in lwm2m_b64_to_float()
[all …]
Dlwm2m_senml_cbor_types.h40 int64_t record_bt;
48 int64_t record_t;
54 int64_t union_vi;
86 int64_t value_int;
/Zephyr-latest/tests/posix/common/src/
Dclock.c31 static inline int64_t ts_to_ns(const struct timespec *ts) in ts_to_ns()
55 _decl_op(int64_t, tp_diff, -); /* a - b */
59 int64_t lo, int64_t hi) in tp_diff_in_range_ns()
61 int64_t diff = tp_diff(a, b); in tp_diff_in_range_ns()
119 int64_t diff_ns; in ZTEST()
175 int64_t cma_prev = 0; in ZTEST()
176 int64_t cma; in ZTEST()
177 int64_t x_i; in ZTEST()
179 int64_t lo = CONFIG_TEST_CLOCK_RT_SLEEP_MS; in ZTEST()
180 int64_t hi = CONFIG_TEST_CLOCK_RT_SLEEP_MS + CONFIG_TEST_CLOCK_RT_ERROR_MS; in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp.c48 static int64_t q16_16_s_to_ll_us(uint32_t t) in q16_16_s_to_ll_us()
50 return (int64_t)(t >> 16) * (int64_t)USEC_PER_SEC + in q16_16_s_to_ll_us()
51 (((int64_t)(t & 0xFFFF) * (int64_t)USEC_PER_SEC) >> 16); in q16_16_s_to_ll_us()
54 static int64_t q32_32_s_to_ll_us(uint32_t t_s, uint32_t t_f) in q32_32_s_to_ll_us()
97 int64_t dest_ts_us = k_ticks_to_us_near64(k_uptime_ticks()); in parse_response()
98 int64_t orig_ts_us = in parse_response()
101 int64_t rx_ts_us = q32_32_s_to_ll_us(ntohl(pkt->rx_tm_s), ntohl(pkt->rx_tm_f)); in parse_response()
102 int64_t tx_ts_us = q32_32_s_to_ll_us(ntohl(pkt->tx_tm_s), ntohl(pkt->tx_tm_f)); in parse_response()
109 int64_t d_us = (dest_ts_us - orig_ts_us) - (tx_ts_us - rx_ts_us); in parse_response()
110 int64_t clk_offset_us = ((rx_ts_us - orig_ts_us) + (tx_ts_us - dest_ts_us)) / 2; in parse_response()
[all …]
/Zephyr-latest/modules/thrift/src/thrift/server/
DTServerFramework.h116 virtual int64_t getConcurrentClientLimit() const;
122 virtual int64_t getConcurrentClientCount() const;
128 virtual int64_t getConcurrentClientCountHWM() const;
140 virtual void setConcurrentClientLimit(int64_t newLimit);
181 int64_t clients_;
186 int64_t hwm_;
191 int64_t limit_;
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607.c25 int64_t dT; in ms5607_compensate()
26 int64_t OFF; in ms5607_compensate()
27 int64_t SENS; in ms5607_compensate()
28 int64_t temp_sq; in ms5607_compensate()
29 int64_t Ti; in ms5607_compensate()
30 int64_t OFFi; in ms5607_compensate()
31 int64_t SENSi; in ms5607_compensate()
40 OFF = ((int64_t)(data->off_t1) << 17) + (dT * data->tco) / (1ll << 6); in ms5607_compensate()
41 SENS = ((int64_t)(data->sens_t1) << 16) + (dT * data->tcs) / (1ll << 7); in ms5607_compensate()
48 temp_sq = (int64_t)(data->temperature - 2000) * in ms5607_compensate()
[all …]
/Zephyr-latest/subsys/pm/policy/
Dpolicy_events.c43 int64_t pm_policy_next_event_ticks(void) in pm_policy_next_event_ticks()
45 int64_t ticks = -1; in pm_policy_next_event_ticks()
62 void pm_policy_event_register(struct pm_policy_event *evt, int64_t uptime_ticks) in pm_policy_event_register()
71 void pm_policy_event_update(struct pm_policy_event *evt, int64_t uptime_ticks) in pm_policy_event_update()
/Zephyr-latest/tests/bsim/bluetooth/host/privacy/central/src/
Ddut.c101 int64_t old_time = k_uptime_get(); in dut_procedure_connect_timeout()
108 int64_t new_time = k_uptime_get(); in dut_procedure_connect_timeout()
109 int64_t time_diff_ms = new_time - old_time; in dut_procedure_connect_timeout()
110 int64_t expected_conn_timeout_ms = CONFIG_BT_CREATE_CONN_TIMEOUT * 1000; in dut_procedure_connect_timeout()
111 int64_t diff_to_expected_ms = abs(time_diff_ms - expected_conn_timeout_ms); in dut_procedure_connect_timeout()
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c106 int64_t scaled_value; in sb_tsi_emul_set_channel()
114 scaled_value = (int64_t)*value << shift; in sb_tsi_emul_set_channel()
115 millicelsius = scaled_value * 1000 / ((int64_t)INT32_MAX + 1); in sb_tsi_emul_set_channel()
133 *upper = (int64_t)(255.875 * ((int64_t)INT32_MAX + 1)) >> *shift; in sb_tsi_emul_get_sample_range()
134 *epsilon = (int64_t)(0.125 * ((int64_t)INT32_MAX + 1)) >> *shift; in sb_tsi_emul_get_sample_range()
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c280 int64_t partial_data1; in bmp388_compensate_temp()
281 int64_t partial_data2; in bmp388_compensate_temp()
282 int64_t partial_data3; in bmp388_compensate_temp()
283 int64_t partial_data4; in bmp388_compensate_temp()
284 int64_t partial_data5; in bmp388_compensate_temp()
288 partial_data1 = ((int64_t)data->sample.raw_temp - (256 * cal->t1)); in bmp388_compensate_temp()
291 partial_data4 = (int64_t)partial_data3 * cal->t3; in bmp388_compensate_temp()
292 partial_data5 = ((int64_t)(partial_data2 * 262144) + partial_data4); in bmp388_compensate_temp()
307 int64_t tmp = (data->sample.comp_temp * 250000) / 16384; in bmp388_temp_channel_get()
321 int64_t partial_data1; in bmp388_compensate_press()
[all …]
/Zephyr-latest/drivers/sensor/meas/ms5837/
Dms5837.c53 int64_t dT; in ms5837_compensate_30()
54 int64_t OFF; in ms5837_compensate_30()
55 int64_t SENS; in ms5837_compensate_30()
56 int64_t temp_sq; in ms5837_compensate_30()
68 OFF = ((int64_t)(data->off_t1) << 16) + (dT * data->tco) / (1ll << 7); in ms5837_compensate_30()
69 SENS = ((int64_t)(data->sens_t1) << 15) + (dT * data->tcs) / (1ll << 8); in ms5837_compensate_30()
76 temp_sq = (int64_t)(data->temperature - 2000) * (data->temperature - 2000); in ms5837_compensate_30()
110 int64_t dT; in ms5837_compensate_02()
111 int64_t OFF; in ms5837_compensate_02()
112 int64_t SENS; in ms5837_compensate_02()
[all …]
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.c32 int64_t osdp_millis_now(void) in osdp_millis_now()
34 return (int64_t) k_uptime_get(); in osdp_millis_now()
37 int64_t osdp_millis_since(int64_t last) in osdp_millis_since()
39 int64_t tmp = last; in osdp_millis_since()
41 return (int64_t) k_uptime_delta(&tmp); in osdp_millis_since()
/Zephyr-latest/tests/kernel/sleep/src/
Dusleep.c67 int64_t elapsed_ms = 0; in ZTEST_USER()
70 int64_t start_ms; in ZTEST_USER()
71 int64_t end_ms; in ZTEST_USER()
/Zephyr-latest/include/zephyr/dsp/
Dutils.h64 #define Z_SHIFT_Q31_TO_F32(src, m) ((float32_t)(((int64_t)src) << m) / (float32_t)(1U << 31))
91 #define Z_SHIFT_Q31_TO_F64(src, m) ((float64_t)(((int64_t)src) << m) / (1ULL << 31))
135 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
165 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
/Zephyr-latest/subsys/net/ip/
Dnet_timeout.c44 int64_t net_timeout_deadline(const struct net_timeout *timeout, in net_timeout_deadline()
45 int64_t now) in net_timeout_deadline()
61 return (int64_t)deadline; in net_timeout_deadline()
67 int64_t ret = timeout->timer_timeout; in net_timeout_remaining()
70 ret -= (int64_t)(int32_t)(now - timeout->timer_start); in net_timeout_remaining()
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c110 int64_t scaled_value; in f75303_emul_set_channel()
132 scaled_value = (int64_t)*value << shift; in f75303_emul_set_channel()
133 millicelsius = scaled_value * 1000 / ((int64_t)INT32_MAX + 1); in f75303_emul_set_channel()
153 *upper = (int64_t)(255.875 * ((int64_t)INT32_MAX + 1)) >> *shift; in f75303_emul_get_sample_range()
154 *epsilon = (int64_t)(0.125 * ((int64_t)INT32_MAX + 1)) >> *shift; in f75303_emul_get_sample_range()
/Zephyr-latest/scripts/native_simulator/native/src/
Dtimer_model.c68 static int64_t silent_ticks;
96 static int64_t last_drift_offset;
103 static int64_t rtc_offset;
185 int64_t diff = expected_rt - real_time; in hwtimer_tick_timer_reached()
263 void hwtimer_set_silent_ticks(int64_t sys_ticks) in hwtimer_set_silent_ticks()
268 int64_t hwtimer_get_pending_silent_ticks(void) in hwtimer_get_pending_silent_ticks()
287 void hwtimer_set_rtc_offset(int64_t offset) in hwtimer_set_rtc_offset()
304 void hwtimer_adjust_rtc_offset(int64_t offset_delta) in hwtimer_adjust_rtc_offset()
315 int64_t s_diff = current_stime - last_radj_stime; in hwtimer_adjust_rt_ratio()
323 int64_t r_drift = (long double)(clock_ratio-1.0)/(clock_ratio)*s_diff; in hwtimer_adjust_rt_ratio()
[all …]
/Zephyr-latest/include/zephyr/pm/
Dpolicy.h70 int64_t uptime_ticks;
158 void pm_policy_event_register(struct pm_policy_event *evt, int64_t uptime_ticks);
171 void pm_policy_event_update(struct pm_policy_event *evt, int64_t uptime_ticks);
218 int64_t pm_policy_next_event_ticks(void);
268 static inline int64_t pm_policy_next_event_ticks(void) in pm_policy_next_event_ticks()

12345678910>>...15