Home
last modified time | relevance | path

Searched refs:DIV_ROUND_UP (Results 1 – 25 of 121) sorted by relevance

12345

/Zephyr-latest/include/zephyr/sys/
Dbitarray.h59 [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)), \
Dlinear_range.h209 *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()
Dhash_map_api.h217 .initial_n_buckets = NHPOT(DIV_ROUND_UP(100, _load_factor)), \
/Zephyr-latest/drivers/dai/nxp/esai/
Desai.c60 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/
Dwdt_npcx.c248 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/
Dticker.h45 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
/Zephyr-latest/drivers/led_strip/
Dlpd880x.c50 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/
Dlll_vendor.h58 #define EVENT_TICKER_RES_MARGIN_US DIV_ROUND_UP(HAL_TICKER_CNTR_CLK_UNIT_FSEC, \
/Zephyr-latest/samples/drivers/display/src/
Dmain.c264 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/
Dmain.c101 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/
Dmain.c21 #define UNCODED_FRAGS (DIV_ROUND_UP(FIRMWARE_SIZE, FRAG_SIZE))
23 (DIV_ROUND_UP(UNCODED_FRAGS * CONFIG_LORAWAN_FRAG_TRANSPORT_MAX_REDUNDANCY, 100))
Dfrag_encoder.c82 int uncoded_frags = DIV_ROUND_UP(uncoded_len, frag_size); in lorawan_frag_encoder()
/Zephyr-latest/tests/subsys/logging/log_blocking/src/
Dmain.c67 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/
Dticker_vendor_hal.h39 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
/Zephyr-latest/drivers/spi/
Dspi_nrfx_common.c44 DIV_ROUND_UP(CONFIG_SPI_NRFX_WAKE_TIMEOUT_US * in spi_nrfx_wake_request()
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/
Dticker.h58 DIV_ROUND_UP(((uint64_t) (x) * HAL_TICKER_FSEC_PER_USEC), \
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_internal.h47 #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/
Di3c_stm32.c457 *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/
Dblob.h108 uint8_t missing[DIV_ROUND_UP(CONFIG_BT_MESH_BLOB_CHUNK_COUNT_MAX,
Dblob_srv.h31 (DIV_ROUND_UP(CONFIG_BT_MESH_BLOB_SIZE_MAX, \
/Zephyr-latest/drivers/fpga/
Dfpga_ice40_spi.c105 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/
Dots_dir_list_internal.h31 DIV_ROUND_UP(CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU, DIR_LIST_OBJ_RECORD_MAX_SIZE))
/Zephyr-latest/subsys/bluetooth/mesh/
Dblob_srv.c49 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/
Dsram.c106 ebb_in_use = DIV_ROUND_UP(memory_size, SRAM_BANK_SIZE); in hp_sram_init()
/Zephyr-latest/drivers/pwm/
Dpwm_ene_kb1200.c42 prescaler = DIV_ROUND_UP(period_cycles, PWM_MAX_CYCLES); in pwm_kb1200_set_cycles()

12345