Searched refs:DIV_ROUND_DOWN_ULL (Results 1 – 22 of 22) sorted by relevance
/linux-6.1.9/include/linux/ |
D | math.h | 39 #define DIV_ROUND_DOWN_ULL(ll, d) \ macro 43 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
|
/linux-6.1.9/drivers/pwm/ |
D | pwm-keembay.c | 154 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply() 160 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
|
D | pwm-raspberrypi-poe.c | 112 duty_cycle = DIV_ROUND_DOWN_ULL(state->duty_cycle * RPI_PWM_MAX_DUTY, in raspberrypi_pwm_apply()
|
D | pwm-sl28cpld.c | 75 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))
|
D | pwm-pca9685.c | 466 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE); in pca9685_pwm_get_state()
|
/linux-6.1.9/lib/dim/ |
D | dim.c | 77 curr_stats->cpe_ratio = DIV_ROUND_DOWN_ULL( in dim_calc_stats()
|
/linux-6.1.9/drivers/reset/ |
D | reset-brcmstb.c | 101 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe()
|
/linux-6.1.9/net/ceph/ |
D | striper.c | 232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
|
/linux-6.1.9/drivers/gpu/drm/ |
D | drm_rect.c | 74 return DIV_ROUND_DOWN_ULL(tmp, dst); in clip_scaled()
|
/linux-6.1.9/drivers/clk/zynqmp/ |
D | divider.c | 57 down = DIV_ROUND_DOWN_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val()
|
/linux-6.1.9/drivers/gpu/drm/mcde/ |
D | mcde_dsi.c | 604 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* microseconds */ in mcde_dsi_setup_video_mode() 605 bpl = DIV_ROUND_DOWN_ULL(bpl, 1000000); /* seconds */ in mcde_dsi_setup_video_mode()
|
/linux-6.1.9/drivers/clk/xilinx/ |
D | clk-xlnx-clock-wizard.c | 231 rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate); in clk_wzrd_dynamic_reconfig_f()
|
/linux-6.1.9/drivers/misc/habanalabs/common/mmu/ |
D | mmu.c | 552 page_id = DIV_ROUND_DOWN_ULL(abs_phys_addr, dram_page_size); in hl_mmu_pa_page_with_offset()
|
/linux-6.1.9/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 74 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, in hw_ip_info()
|
D | device.c | 51 bar_base_addr = DIV_ROUND_DOWN_ULL(addr, prop->dram_pci_bar_size) * in hl_set_dram_bar()
|
D | memory.c | 1359 DIV_ROUND_DOWN_ULL(vaddr - prop->dram_base_address, in unmap_device_va()
|
/linux-6.1.9/drivers/mtd/nand/raw/ |
D | denali.c | 782 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_interface()
|
D | nand_base.c | 4917 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in find_full_id_nand() 5118 DIV_ROUND_DOWN_ULL((u64)type->chipsize << 20, in nand_detect()
|
D | cadence-nand-controller.c | 2313 u32 clk_period = DIV_ROUND_DOWN_ULL(1000000000000ULL, in cadence_nand_setup_interface()
|
/linux-6.1.9/drivers/gpu/drm/bridge/ |
D | cdns-dsi.c | 847 tx_byte_period = DIV_ROUND_DOWN_ULL((u64)NSEC_PER_SEC * 8, in cdns_dsi_bridge_enable()
|
/linux-6.1.9/sound/soc/codecs/ |
D | pcm512x.c | 846 pcm512x->real_pll = DIV_ROUND_DOWN_ULL((u64)K * pllin_rate, 10000 * P); in pcm512x_find_pll_coeff()
|
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/ |
D | core.c | 2139 DIV_ROUND_DOWN_ULL(stats->tx_unicast, stats->tx_cnt) : 0; in rtw89_traffic_stats_calc() 2141 DIV_ROUND_DOWN_ULL(stats->rx_unicast, stats->rx_cnt) : 0; in rtw89_traffic_stats_calc()
|