/Zephyr-latest/include/zephyr/sys/ |
D | bitarray.h | 59 [DIV_ROUND_UP(DIV_ROUND_UP(total_bits, 8), \ 63 .num_bundles = DIV_ROUND_UP( \ 64 DIV_ROUND_UP(total_bits, 8), sizeof(uint32_t)), \
|
D | linear_range.h | 209 *idx = r->min_idx + DIV_ROUND_UP((uint32_t)(val - r->min), in linear_range_get_index() 290 *idx = r->min_idx + DIV_ROUND_UP((uint32_t)(val_min - r->min), r->step); in linear_range_get_win_index()
|
D | hash_map_api.h | 217 .initial_n_buckets = NHPOT(DIV_ROUND_UP(100, _load_factor)), \
|
/Zephyr-latest/drivers/dai/nxp/esai/ |
D | esai.c | 60 if (DIV_ROUND_UP(extal_rate, bclk_rate) > 2 * 8 * 256 * 16) { in esai_get_clock_rate_config() 67 if (DIV_ROUND_UP(extal_rate / 2, bclk_rate) == 1) { in esai_get_clock_rate_config() 93 hclk_div_ratio = DIV_ROUND_UP(extal_rate, hclk_rate); in esai_get_clock_rate_config() 102 hclk_div_ratio = DIV_ROUND_UP(extal_rate, hclk_rate); in esai_get_clock_rate_config() 119 extal_rate = DIV_ROUND_UP(extal_rate, hclk_div_ratio); in esai_get_clock_rate_config() 126 hclk_div_ratio = DIV_ROUND_UP(extal_rate, bclk_rate); in esai_get_clock_rate_config() 132 hclk_div_ratio = DIV_ROUND_UP(extal_rate, bclk_rate); in esai_get_clock_rate_config() 143 hclk_div_ratio = DIV_ROUND_UP(extal_rate / i, bclk_rate); in esai_get_clock_rate_config() 144 bclk_div_ratio = DIV_ROUND_UP(extal_rate / hclk_div_ratio, bclk_rate); in esai_get_clock_rate_config() 162 bclk_div_ratio = DIV_ROUND_UP(extal_rate, bclk_rate); in esai_get_clock_rate_config()
|
/Zephyr-latest/drivers/watchdog/ |
D | wdt_npcx.c | 248 inst->TWDT0 = MAX(DIV_ROUND_UP(data->timeout * NPCX_WDT_CLK, in wdt_npcx_setup() 254 wd_cnt = DIV_ROUND_UP((data->timeout + CONFIG_WDT_NPCX_WARNING_LEADING_TIME_MS) * in wdt_npcx_setup() 258 pre_scal = DIV_ROUND_UP(wd_cnt, 255); in wdt_npcx_setup() 295 min_wnd_t = DIV_ROUND_UP(3 * NPCX_WDT_CLK, 32 * (1 << inst->WDCP)); in wdt_npcx_disable()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/openisa/hal/RV32M1/ |
D | ticker.h | 45 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
|
/Zephyr-latest/drivers/led_strip/ |
D | lpd880x.c | 50 uint8_t reset_size = DIV_ROUND_UP(DIV_ROUND_UP(size, 3), 32); in lpd880x_update()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/ |
D | lll_vendor.h | 58 #define EVENT_TICKER_RES_MARGIN_US DIV_ROUND_UP(HAL_TICKER_CNTR_CLK_UNIT_FSEC, \
|
/Zephyr-latest/samples/drivers/display/src/ |
D | main.c | 264 buf_size = DIV_ROUND_UP(DIV_ROUND_UP( in main() 270 buf_size = DIV_ROUND_UP(DIV_ROUND_UP( in main()
|
/Zephyr-latest/tests/net/lib/http_server/hpack/src/ |
D | main.c | 101 uint8_t expected_len = DIV_ROUND_UP(test_huffman_codes[i].bitlen, 8); in ZTEST() 119 uint8_t buflen = DIV_ROUND_UP(test_huffman_codes[i].bitlen, 8); in ZTEST() 145 expected_len = DIV_ROUND_UP(expected_len, 8); in ZTEST()
|
/Zephyr-latest/tests/subsys/lorawan/frag_decoder/src/ |
D | main.c | 21 #define UNCODED_FRAGS (DIV_ROUND_UP(FIRMWARE_SIZE, FRAG_SIZE)) 23 (DIV_ROUND_UP(UNCODED_FRAGS * CONFIG_LORAWAN_FRAG_TRANSPORT_MAX_REDUNDANCY, 100))
|
D | frag_encoder.c | 82 int uncoded_frags = DIV_ROUND_UP(uncoded_len, frag_size); in lorawan_frag_encoder()
|
/Zephyr-latest/tests/subsys/logging/log_blocking/src/ |
D | main.c | 67 end_ms += MSEC_PER_SEC * DIV_ROUND_UP(CONFIG_TEST_NUM_LOGS, CONFIG_TEST_INPUT_LOG_RATE); in create_start_end() 69 end_ms += MSEC_PER_SEC * DIV_ROUND_UP(CONFIG_TEST_NUM_LOGS, CONFIG_TEST_OUTPUT_LOG_RATE); in create_start_end()
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/include/hal/ |
D | ticker_vendor_hal.h | 39 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
|
/Zephyr-latest/drivers/spi/ |
D | spi_nrfx_common.c | 44 DIV_ROUND_UP(CONFIG_SPI_NRFX_WAKE_TIMEOUT_US * in spi_nrfx_wake_request()
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/ |
D | ticker.h | 58 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
|
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/ |
D | ull_internal.h | 47 #define RADIO_CONN_EVENTS(x, y) ((uint16_t)DIV_ROUND_UP(x, y)) 50 #define RADIO_SYNC_EVENTS(x, y) ((uint16_t)DIV_ROUND_UP(x, y))
|
/Zephyr-latest/drivers/i3c/ |
D | i3c_stm32.c | 457 *scll_od = DIV_ROUND_UP(STM32_I3C_SCLL_OD_MIN_FMP_NS * i3c_clock, in i3c_stm32_calc_scll_od_sclh_i2c() 460 *sclh_i2c = DIV_ROUND_UP(i3c_clock, i2c_bus_freq) - *scll_od - 2; in i3c_stm32_calc_scll_od_sclh_i2c() 462 DIV_ROUND_UP(STM32_I3C_SCLH_I2C_MIN_FMP_NS * i3c_clock, 1000000000ull) - in i3c_stm32_calc_scll_od_sclh_i2c() 471 *scll_od = DIV_ROUND_UP(STM32_I3C_SCLL_OD_MIN_FM_NS * i3c_clock, in i3c_stm32_calc_scll_od_sclh_i2c() 474 *sclh_i2c = DIV_ROUND_UP(i3c_clock, i2c_bus_freq) - *scll_od - 2; in i3c_stm32_calc_scll_od_sclh_i2c() 478 DIV_ROUND_UP(STM32_I3C_SCLH_I2C_MIN_FM_NS * i3c_clock, 1000000000ull) - 1) { in i3c_stm32_calc_scll_od_sclh_i2c() 493 *scll_od = DIV_ROUND_UP(STM32_I3C_SCLL_OD_MIN_FM_NS * in i3c_stm32_calc_scll_od_sclh_i2c() 497 *sclh_i2c = DIV_ROUND_UP(i3c_clock, i2c_bus_freq) - in i3c_stm32_calc_scll_od_sclh_i2c() 502 *scll_od = DIV_ROUND_UP(STM32_I3C_SCLL_OD_MIN_FMP_NS * in i3c_stm32_calc_scll_od_sclh_i2c() 506 *sclh_i2c = DIV_ROUND_UP(i3c_clock, i2c_bus_freq) - in i3c_stm32_calc_scll_od_sclh_i2c() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | blob.h | 108 uint8_t missing[DIV_ROUND_UP(CONFIG_BT_MESH_BLOB_CHUNK_COUNT_MAX,
|
D | blob_srv.h | 31 (DIV_ROUND_UP(CONFIG_BT_MESH_BLOB_SIZE_MAX, \
|
/Zephyr-latest/drivers/fpga/ |
D | fpga_ice40_spi.c | 105 tx_buf.len = DIV_ROUND_UP(config->leading_clocks, BITS_PER_BYTE); in fpga_ice40_load() 137 tx_buf.len = DIV_ROUND_UP(config->trailing_clocks, BITS_PER_BYTE); in fpga_ice40_load()
|
/Zephyr-latest/subsys/bluetooth/services/ots/ |
D | ots_dir_list_internal.h | 31 DIV_ROUND_UP(CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU, DIR_LIST_OBJ_RECORD_MAX_SIZE))
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | blob_srv.c | 49 return DIV_ROUND_UP(srv->state.xfer.size, in block_count_get() 84 uint32_t block_len = DIV_ROUND_UP(block_count_get(srv), 8); in store_state() 150 uint32_t segments_per_chunk = DIV_ROUND_UP( in pull_req_max() 345 DIV_ROUND_UP(block_count_get(srv), 8)); in xfer_status_rsp() 391 DIV_ROUND_UP(srv->block.chunk_count, in block_status_rsp() 396 DIV_ROUND_UP(srv->block.chunk_count, 8))); in block_status_rsp() 663 (DIV_ROUND_UP((1 << srv->state.xfer.block_size_log), chunk_size) > in handle_block_start() 676 srv->block.chunk_count = DIV_ROUND_UP(srv->block.size, chunk_size); in handle_block_start()
|
/Zephyr-latest/soc/intel/intel_adsp/cavs/ |
D | sram.c | 106 ebb_in_use = DIV_ROUND_UP(memory_size, SRAM_BANK_SIZE); in hp_sram_init()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_ene_kb1200.c | 42 prescaler = DIV_ROUND_UP(period_cycles, PWM_MAX_CYCLES); in pwm_kb1200_set_cycles()
|