Home
last modified time | relevance | path

Searched refs:RT_DIV_ROUND_UP (Results 1 – 7 of 7) sorted by relevance

/components/drivers/include/drivers/
A Dmisc.h24 #define RT_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) macro
53 #define RT_BITS_TO_BYTES(nr) RT_DIV_ROUND_UP(nr, RT_BITS_PER_TYPE(char))
54 #define RT_BITS_TO_LONGS(nr) RT_DIV_ROUND_UP(nr, RT_BITS_PER_TYPE(long))
/components/drivers/spi/
A Ddev_spi_dm.c27 delay->value = RT_DIV_ROUND_UP(value, 1000); in ofw_parse_delay()
/components/drivers/thermal/
A Dthermal-cool-pwm-fan.c116 pwm_conf->pulse = RT_DIV_ROUND_UP(pwm * (period - 1), MAX_PWM); in pwm_fan_cool_set_cur_level()
/components/drivers/dma/
A Ddma_pool.c271 size = RT_DIV_ROUND_UP(size, ARCH_PAGE_SIZE); in dma_pool_alloc()
306 size = RT_DIV_ROUND_UP(size, ARCH_PAGE_SIZE); in dma_pool_free()
/components/drivers/pci/host/dw/
A Dpcie-dw_host.c159 num_ctrls = RT_DIV_ROUND_UP(port->irq_count, MAX_MSI_IRQS_PER_CTRL); in dw_handle_msi_irq()
548 num_ctrls = RT_DIV_ROUND_UP(port->irq_count, MAX_MSI_IRQS_PER_CTRL); in dw_pcie_setup_rc()
/components/drivers/watchdog/
A Dwatchdog-dw.c185 timeout = dw_wdt_find_best_top(dw_wdt, RT_DIV_ROUND_UP(top_s, dw_wdt->rmod), &top_val); in dw_wdt_set_timeout()
/components/drivers/nvme/
A Dnvme.c378 prps = RT_DIV_ROUND_UP(remain_length, page_size); in nvme_blk_rw()
379 pages = RT_DIV_ROUND_UP(prps - 1, prps_per_page - 1); in nvme_blk_rw()

Completed in 27 milliseconds