Searched refs:RT_DIV_ROUND_UP (Results 1 – 7 of 7) sorted by relevance
| /components/drivers/include/drivers/ |
| A D | misc.h | 24 #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 D | dev_spi_dm.c | 27 delay->value = RT_DIV_ROUND_UP(value, 1000); in ofw_parse_delay()
|
| /components/drivers/thermal/ |
| A D | thermal-cool-pwm-fan.c | 116 pwm_conf->pulse = RT_DIV_ROUND_UP(pwm * (period - 1), MAX_PWM); in pwm_fan_cool_set_cur_level()
|
| /components/drivers/dma/ |
| A D | dma_pool.c | 271 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 D | pcie-dw_host.c | 159 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 D | watchdog-dw.c | 185 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 D | nvme.c | 378 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 14 milliseconds