Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 25 of 26) sorted by relevance

12

/Zephyr-Core-3.5.0/tests/subsys/logging/log_api/src/
Dmock_backend.c73 struct mock_log_backend_msg *exp = &mock->exp_msgs[mock->msg_rec_idx]; in mock_log_backend_generic_record() local
75 exp->check = true; in mock_log_backend_generic_record()
76 exp->timestamp = timestamp; in mock_log_backend_generic_record()
77 exp->source_id = source_id; in mock_log_backend_generic_record()
78 exp->domain_id = domain_id; in mock_log_backend_generic_record()
79 exp->level = level; in mock_log_backend_generic_record()
83 __ASSERT_NO_MSG(len < sizeof(exp->str)); in mock_log_backend_generic_record()
85 memcpy(exp->str, str, len); in mock_log_backend_generic_record()
86 exp->str[len] = 0; in mock_log_backend_generic_record()
88 if (data_len <= sizeof(exp->data)) { in mock_log_backend_generic_record()
[all …]
/Zephyr-Core-3.5.0/include/zephyr/net/
Dgptp.h73 #define GPTP_POW2(exp) pow(2, exp) argument
76 static inline double gptp_pow2(int exp) in gptp_pow2() argument
80 if (exp >= 0) { in gptp_pow2()
81 res = 1 << exp; in gptp_pow2()
85 while (exp++) { in gptp_pow2()
93 #define GPTP_POW2(exp) gptp_pow2(exp) argument
/Zephyr-Core-3.5.0/scripts/utils/
Dntc_thermistor_table.py38 exp = beta * ((1 / c_to_k(temp_c)) - (1 / t0_kelvin))
39 resistance = r25 * math.exp(exp)
/Zephyr-Core-3.5.0/subsys/testsuite/ztest/include/zephyr/
Dztest_assert.h382 #define zassert_mem_equal__(buf, exp, size, ...) \ argument
383 zassert(memcmp(buf, exp, size) == 0, #buf " not equal to " #exp, ##__VA_ARGS__)
540 #define zassume_mem_equal__(buf, exp, size, ...) \ argument
541 zassume(memcmp(buf, exp, size) == 0, #buf " not equal to " #exp, ##__VA_ARGS__)
666 #define zexpect_mem_equal(buf, exp, size, ...) \ argument
667 zexpect(memcmp(buf, exp, size) == 0, #buf " not equal to " #exp, ##__VA_ARGS__)
/Zephyr-Core-3.5.0/subsys/jwt/
Djwt.c132 int32_t exp; member
139 JSON_OBJ_DESCR_PRIM(struct jwt_payload, exp, JSON_TOK_NUMBER),
174 int32_t exp, in jwt_add_payload() argument
179 .exp = exp, in jwt_add_payload()
/Zephyr-Core-3.5.0/drivers/flash/
Dspi_nor.c180 .exp = 16,
184 .exp = 12,
799 if ((etp->exp != 0) in spi_nor_erase()
800 && SPI_NOR_IS_ALIGNED(addr, etp->exp) in spi_nor_erase()
801 && (size >= BIT(etp->exp)) in spi_nor_erase()
803 || (etp->exp > bet->exp))) { in spi_nor_erase()
809 addr += BIT(bet->exp); in spi_nor_erase()
810 size -= BIT(bet->exp); in spi_nor_erase()
985 LOG_DBG("Erase %u with %02x", (uint32_t)BIT(etp->exp), etp->cmd); in spi_nor_process_bfp()
1106 uint8_t exp = 0; in setup_pages_layout() local
[all …]
Djesd216.h295 uint8_t exp; member
359 uint8_t exp = (dw11 >> 4) & 0x0F; in jesd216_bfp_page_size() local
361 return BIT(exp); in jesd216_bfp_page_size()
Djesd216.c139 uint8_t exp = (uint8_t)dw; in jesd216_bfp_erase() local
142 if (exp == 0) { in jesd216_bfp_erase()
146 etp->exp = exp; in jesd216_bfp_erase()
Dflash_stm32_qspi.c553 if ((etp->exp != 0) in flash_stm32_qspi_erase()
554 && SPI_NOR_IS_ALIGNED(addr, etp->exp) in flash_stm32_qspi_erase()
555 && SPI_NOR_IS_ALIGNED(size, etp->exp) in flash_stm32_qspi_erase()
557 || (etp->exp > bet->exp))) { in flash_stm32_qspi_erase()
564 addr += BIT(bet->exp); in flash_stm32_qspi_erase()
565 size -= BIT(bet->exp); in flash_stm32_qspi_erase()
730 uint8_t exp = 0; in setup_pages_layout() local
738 && ((exp == 0) || (etp->exp < exp))) { in setup_pages_layout()
739 exp = etp->exp; in setup_pages_layout()
743 if (exp == 0) { in setup_pages_layout()
[all …]
Dflash_andes_qspi.c431 if ((etp->exp != 0) && in flash_andes_qspi_erase()
432 SPI_NOR_IS_ALIGNED(addr, etp->exp) && in flash_andes_qspi_erase()
433 SPI_NOR_IS_ALIGNED(size, etp->exp) && in flash_andes_qspi_erase()
434 ((bet == NULL) || (etp->exp > bet->exp))) { in flash_andes_qspi_erase()
442 addr += BIT(bet->exp); in flash_andes_qspi_erase()
443 size -= BIT(bet->exp); in flash_andes_qspi_erase()
522 (uint32_t)BIT(etp->exp), etp->cmd); in spi_nor_process_bfp()
638 ((exponent == 0) || (etp->exp < exponent))) { in setup_pages_layout()
639 exponent = etp->exp; in setup_pages_layout()
Dflash_stm32_ospi.c1064 if ((etp->exp != 0) in flash_stm32_ospi_erase()
1065 && SPI_NOR_IS_ALIGNED(addr, etp->exp) in flash_stm32_ospi_erase()
1066 && SPI_NOR_IS_ALIGNED(size, etp->exp) in flash_stm32_ospi_erase()
1068 || (etp->exp > bet->exp))) { in flash_stm32_ospi_erase()
1102 addr += BIT(bet->exp); in flash_stm32_ospi_erase()
1103 size -= BIT(bet->exp); in flash_stm32_ospi_erase()
1499 && ((value == 0) || (etp->exp < value))) { in setup_pages_layout()
1500 value = etp->exp; in setup_pages_layout()
1765 (uint32_t)BIT(etp->exp), etp->cmd); in spi_nor_process_bfp()
/Zephyr-Core-3.5.0/tests/kernel/semaphore/semaphore/src/
Dmain.c26 #define expect_k_sem_take(sem, timeout, exp, str) do { \ argument
28 int _exp = (exp); \
32 #define expect_k_sem_init(sem, init, max, exp, str) do { \ argument
34 int _exp = (exp); \
38 #define expect_k_sem_count_get(sem, exp, str) do { \ argument
40 unsigned int _exp = (exp); \
44 #define expect_k_sem_take_nomsg(sem, timeout, exp) \ argument
45 expect_k_sem_take((sem), (timeout), (exp), "k_sem_take incorrect return value: %d != %d")
46 #define expect_k_sem_init_nomsg(sem, init, max, exp) \ argument
47 expect_k_sem_init((sem), (init), (max), (exp), \
[all …]
/Zephyr-Core-3.5.0/include/zephyr/data/
Djwt.h79 int32_t exp,
/Zephyr-Core-3.5.0/drivers/watchdog/
Dwdt_wwdgt_gd32.c54 uint32_t timeout, uint32_t exp) in gd32_wwdgt_calc_ticks() argument
64 / (WWDGT_INTERNAL_DIVIDER * (1 << exp) * MSEC_PER_SEC) - 1) in gd32_wwdgt_calc_ticks()
/Zephyr-Core-3.5.0/boards/arm/nrf9160dk_nrf52840/
Dnrf9160dk_nrf52840_0_14_0.overlay15 io_expander_pins_routing: switch-io-exp-en {
/Zephyr-Core-3.5.0/drivers/clock_control/
Dclock_control_litex.h74 lcko->margin.exp = CLKOUT_MARGIN_EXP(N);
232 uint32_t exp; member
Dclock_control_litex.c1224 static uint32_t litex_clk_pow(uint32_t base, uint32_t exp) in litex_clk_pow() argument
1228 while (exp--) { in litex_clk_pow()
1243 if (lcko->margin.exp) { in litex_clk_calc_clkout_params()
1244 margin = litex_clk_pow(10, lcko->margin.exp); in litex_clk_calc_clkout_params()
1254 if (lcko->margin.exp) { in litex_clk_calc_clkout_params()
1343 if (lcko->margin.exp) { in litex_clk_check_rate_range()
1344 margin = litex_clk_pow(10, lcko->margin.exp); in litex_clk_check_rate_range()
/Zephyr-Core-3.5.0/tests/kernel/timer/timer_api/src/
Dmain.c70 #define TIMER_ASSERT(exp, tmr) \ argument
72 if (!(exp)) { \
74 zassert_true(exp); \
/Zephyr-Core-3.5.0/scripts/coccinelle/
Dsymbols.txt35 exp
/Zephyr-Core-3.5.0/dts/riscv/
Driscv32-litex-vexriscv.dtsi270 litex,clock-margin-exp = <2>;
283 litex,clock-margin-exp = <2>;
/Zephyr-Core-3.5.0/tests/lib/spsc_pbuf/src/
Dmain.c116 static int check_buffer(char *buf, uint16_t len, char exp) in check_buffer() argument
119 if (buf[i] != exp) { in check_buffer()
/Zephyr-Core-3.5.0/samples/drivers/jesd216/src/
Dmain.c113 (uint32_t)BIT(etype.exp)); in summarize_dw89()
/Zephyr-Core-3.5.0/drivers/sensor/npm1300_charger/
Dnpm1300_charger.c143 exp((float)config->thermistor_beta * (inv_temp_k - inv_t0)); in calc_ntc_res()
/Zephyr-Core-3.5.0/modules/tflite-micro/
DCMakeLists.txt119 ${TENSORFLOW_LITE_MICRO_DIR}/tensorflow/lite/micro/kernels/exp.cc
/Zephyr-Core-3.5.0/subsys/bluetooth/host/
Dsmp.c5082 uint8_t exp[16] = { 0x2d, 0x87, 0x74, 0xa9, 0xbe, 0xa1, 0xed, 0xf1, in smp_f4_test() local
5092 if (memcmp(res, exp, 16)) { in smp_f4_test()
5149 uint8_t exp[16] = { 0x61, 0x8f, 0x95, 0xda, 0x09, 0x0b, 0x6c, 0xd2, in smp_f6_test() local
5158 if (memcmp(res, exp, 16)) in smp_f6_test()

12