Home
last modified time | relevance | path

Searched refs:DIV_ROUND_DOWN_ULL (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_snps_hdmi_pll.c88 curve_1_interpolated = DIV_ROUND_DOWN_ULL(curve_1_interpolated, CURVE1_MULTIPLIER); in get_ana_cp_int_prop()
95 curve_2_scaled1 = DIV_ROUND_DOWN_ULL(temp, 16000); in get_ana_cp_int_prop()
96 curve_2_scaled2 = DIV_ROUND_DOWN_ULL(temp, 160); in get_ana_cp_int_prop()
102 DIV_ROUND_DOWN_ULL(scaled_vco_div_refclk1, (curve_0_interpolated * in get_ana_cp_int_prop()
103 DIV_ROUND_DOWN_ULL(curve_1_interpolated, CURVE0_MULTIPLIER))); in get_ana_cp_int_prop()
106 DIV_ROUND_CLOSEST_ULL(DIV_ROUND_DOWN_ULL(adjusted_vco_clk1, curve_2_scaled1), in get_ana_cp_int_prop()
114 (curve_2_scaled_int * DIV_ROUND_DOWN_ULL(curve_0_interpolated, in get_ana_cp_int_prop()
119 DIV_ROUND_DOWN_ULL(1000000000000ULL, 55)); in get_ana_cp_int_prop()
168 tx_clk_div = ilog2(DIV_ROUND_DOWN_ULL(INTEL_SNPS_PHY_HDMI_9999MHZ, datarate)); in compute_hdmi_tmds_pll()
171 tx_clk_div = ilog2(DIV_ROUND_DOWN_ULL(INTEL_SNPS_PHY_HDMI_16GHZ, datarate)); in compute_hdmi_tmds_pll()
[all …]
/linux-6.15/include/linux/
H A Dmath.h51 #define DIV_ROUND_DOWN_ULL(ll, d) \ macro
55 DIV_ROUND_DOWN_ULL((unsigned long long)(ll) + (d) - 1, (d))
/linux-6.15/drivers/pwm/
H A Dpwm-keembay.c155 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
161 div = DIV_ROUND_DOWN_ULL(div, NSEC_PER_SEC); in keembay_pwm_apply()
H A Dpwm-raspberrypi-poe.c113 duty_cycle = DIV_ROUND_DOWN_ULL(state->duty_cycle * RPI_PWM_MAX_DUTY, in raspberrypi_pwm_apply()
H A Dpwm-sl28cpld.c76 (DIV_ROUND_DOWN_ULL((duty_cycle), NSEC_PER_SEC / SL28CPLD_PWM_CLK))
H A Dpwm-pca9685.c469 state->duty_cycle = DIV_ROUND_DOWN_ULL(duty * state->period, PCA9685_COUNTER_RANGE); in pca9685_pwm_get_state()
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Duser_pages.c41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE); in hfi1_can_pin_pages()
/linux-6.15/drivers/gpu/drm/meson/
H A Dmeson_vclk.c116 (PIXEL_FREQ_1000_1001(DIV_ROUND_DOWN_ULL(_freq, 10ULL)) * 10)
630 pll_freq = DIV_ROUND_DOWN_ULL(pll_freq, 2); in meson_hdmi_pll_get_m()
632 return DIV_ROUND_DOWN_ULL(pll_freq, XTAL_FREQ); in meson_hdmi_pll_get_m()
1061 hdmi_tx_div = DIV_ROUND_DOWN_ULL(vclk_freq, dac_freq); in meson_vclk_setup()
1069 venc_div = DIV_ROUND_DOWN_ULL(vclk_freq, venc_freq); in meson_vclk_setup()
/linux-6.15/lib/dim/
H A Ddim.c78 curr_stats->cpe_ratio = DIV_ROUND_DOWN_ULL( in dim_calc_stats()
/linux-6.15/drivers/reset/
H A Dreset-brcmstb.c100 priv->rcdev.nr_resets = DIV_ROUND_DOWN_ULL(resource_size(res), in brcmstb_reset_probe()
/linux-6.15/drivers/clk/mstar/
H A Dclk-msc313-cpupll.c123 return DIV_ROUND_DOWN_ULL(prescaled, reg); in msc313_cpupll_frequencyforreg()
/linux-6.15/drivers/clk/zynqmp/
H A Ddivider.c57 down = DIV_ROUND_DOWN_ULL((u64)parent_rate, rate); in zynqmp_divider_get_val()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_rect.c74 return DIV_ROUND_DOWN_ULL(tmp, dst); in clip_scaled()
H A Ddrm_vblank.c1015 vblank_start = DIV_ROUND_DOWN_ULL( in drm_crtc_next_vblank_start()
/linux-6.15/net/ceph/
H A Dstriper.c232 DIV_ROUND_DOWN_ULL(objoff, l->stripe_unit); in ceph_extent_to_file()
/linux-6.15/drivers/gpu/drm/mcde/
H A Dmcde_dsi.c604 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.15/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.h243 DIV_ROUND_DOWN_ULL((IDPF_CTLQ_MAX_BUF_LEN - IDPF_RX_PTYPE_HDR_SZ), \
/linux-6.15/drivers/net/wireless/realtek/rtw89/
H A Dsar.c501 linear = DIV_ROUND_DOWN_ULL(tas->total_txpwr, tas->window_size * PERCENT); in rtw89_tas_rolling_average()
/linux-6.15/drivers/gpu/drm/bridge/imx/
H A Dimx93-mipi-dsi.c251 max_n = DIV_ROUND_DOWN_ULL((u64)fin, MHZ(2)); in dphy_pll_get_configure_from_opts()
/linux-6.15/drivers/gpu/drm/tiny/
H A Dbochs.c585 if (mode->vdisplay > DIV_ROUND_DOWN_ULL(bochs->fb_size, pitch)) in bochs_mode_config_mode_valid()
/linux-6.15/drivers/accel/habanalabs/common/mmu/
H A Dmmu.c513 page_id = DIV_ROUND_DOWN_ULL(abs_phys_addr, dram_page_size); in hl_mmu_pa_page_with_offset()
/linux-6.15/drivers/mtd/spi-nor/
H A Dcore.c1202 *first = DIV_ROUND_DOWN_ULL(start, bank_size); in spi_nor_offset_to_banks()
1203 *last = DIV_ROUND_DOWN_ULL(start + len - 1, bank_size); in spi_nor_offset_to_banks()
/linux-6.15/drivers/gpu/drm/bridge/cadence/
H A Dcdns-dsi-core.c813 tx_byte_period = DIV_ROUND_DOWN_ULL((u64)NSEC_PER_SEC * 8, in cdns_dsi_bridge_enable()
/linux-6.15/drivers/clk/xilinx/
H A Dclk-xlnx-clock-wizard.c739 rate_div = DIV_ROUND_DOWN_ULL(parent_rate * 1000, rate); in clk_wzrd_dynamic_reconfig_f()
/linux-6.15/drivers/mtd/nand/raw/
H A Ddenali.c782 t_x = DIV_ROUND_DOWN_ULL(1000000000000ULL, denali->clk_x_rate); in denali_setup_interface()

12