| /linux-6.15/drivers/phy/mediatek/ |
| H A D | phy-mtk-hdmi-mt8195.c | 223 if (tmds_clk < 25 * MEGA || tmds_clk > 594 * MEGA) in mtk_hdmi_pll_calc() 226 if (tmds_clk >= 340 * MEGA) in mtk_hdmi_pll_calc() 232 da_hdmitx21_ref_ck = 26 * MEGA; in mtk_hdmi_pll_calc() 240 if (tmds_clk < 54 * MEGA) in mtk_hdmi_pll_calc() 242 else if (tmds_clk >= 54 * MEGA && (tmds_clk * 100) < 14835 * MEGA) in mtk_hdmi_pll_calc() 244 else if ((tmds_clk * 100) >= 14835 * MEGA && (tmds_clk * 10) < 2967 * MEGA) in mtk_hdmi_pll_calc() 246 else if ((tmds_clk * 10) >= 2967 * MEGA && tmds_clk <= 594 * MEGA) in mtk_hdmi_pll_calc() 324 if (tmds_clk > 300 * MEGA && tmds_clk <= 594 * MEGA) { in mtk_hdmi_pll_drv_setting() 329 } else if (((u64)pixel_clk * 1000) >= 74175 * MEGA && pixel_clk <= 300 * MEGA) { in mtk_hdmi_pll_drv_setting() 334 } else if (pixel_clk >= 27 * MEGA && ((u64)pixel_clk * 1000) < 74175 * MEGA) { in mtk_hdmi_pll_drv_setting()
|
| /linux-6.15/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-timestamp.c | 79 priv->can.clock.freq / MEGA, in rkcanfd_timestamp_init() 80 priv->can.clock.freq % MEGA / KILO / 10, in rkcanfd_timestamp_init() 81 bitrate / MEGA, in rkcanfd_timestamp_init() 82 bitrate % MEGA / KILO / 100, in rkcanfd_timestamp_init() 84 rate / MEGA, in rkcanfd_timestamp_init() 85 rate % MEGA / KILO / 10, in rkcanfd_timestamp_init()
|
| H A D | rockchip_canfd.h | 297 #define RKCANFD_ERRATUM_5_SYSCLOCK_HZ_MIN (300 * MEGA)
|
| /linux-6.15/include/linux/ |
| H A D | units.h | 12 #define MEGA 1000000UL macro 39 #define BYTES_PER_MBIT (MEGA / BITS_PER_BYTE)
|
| /linux-6.15/drivers/iio/dac/ |
| H A D | adi-axi-dac.c | 244 scale = DIV_ROUND_CLOSEST_ULL((u64)raw * MEGA, in axi_dac_scale_get() 247 vals[0] = scale / MEGA; in axi_dac_scale_get() 248 vals[1] = scale % MEGA; in axi_dac_scale_get() 279 vals[0] = phase / MEGA; in axi_dac_phase_get() 280 vals[1] = phase % MEGA; in axi_dac_phase_get() 349 scale = integer * MEGA + frac; in axi_dac_scale_set() 350 if (scale <= -2 * (int)MEGA || scale >= 2 * (int)MEGA) in axi_dac_scale_set() 359 raw |= div_u64((u64)scale * AXI_DAC_CHAN_CNTRL_3_SCALE_INT, MEGA); in axi_dac_scale_set() 392 phase = integer * MEGA + frac; in axi_dac_phase_set()
|
| H A D | ad9739a.c | 67 #define AD9739A_MIN_DAC_CLK (1600 * MEGA) 68 #define AD9739A_MAX_DAC_CLK (2500 * MEGA)
|
| /linux-6.15/drivers/iio/adc/ |
| H A D | ad7380.c | 614 .max_conversion_rate_hz = 4 * MEGA, 627 .max_conversion_rate_hz = 4 * MEGA, 642 .max_conversion_rate_hz = 4 * MEGA, 657 .max_conversion_rate_hz = 4 * MEGA, 671 .max_conversion_rate_hz = 4 * MEGA, 685 .max_conversion_rate_hz = 4 * MEGA, 699 .max_conversion_rate_hz = 4 * MEGA, 713 .max_conversion_rate_hz = 4 * MEGA, 726 .max_conversion_rate_hz = 4 * MEGA, 741 .max_conversion_rate_hz = 4 * MEGA, [all …]
|
| H A D | ad7625.c | 28 #define AD7960_MAX_NBW_FREQ (2 * MEGA) 130 .max_sample_freq_hz = 6 * MEGA, 140 .max_sample_freq_hz = 10 * MEGA, 150 .max_sample_freq_hz = 5 * MEGA, 160 .max_sample_freq_hz = 5 * MEGA,
|
| H A D | ad7944.c | 180 AD7944_DEFINE_CHIP_INFO(ad7944, ad7944, 2.5 * MEGA, 14, 0); 181 AD7944_DEFINE_CHIP_INFO(ad7985, ad7944, 2.5 * MEGA, 16, 0); 183 AD7944_DEFINE_CHIP_INFO(ad7986, ad7986, 2 * MEGA, 18, 1); 835 ret = ad7944_set_sample_freq(adc, 2 * MEGA); in ad7944_probe()
|
| H A D | ad4851.c | 1087 .max_sample_rate_hz = 1 * MEGA, 1096 .max_sample_rate_hz = 1 * MEGA, 1123 .max_sample_rate_hz = 1 * MEGA, 1132 .max_sample_rate_hz = 1 * MEGA, 1141 .max_sample_rate_hz = 1 * MEGA,
|
| /linux-6.15/drivers/iio/imu/bmi323/ |
| H A D | bmi323.h | 200 ((val2) * (scale)) / MEGA) 202 #define BMI323_RAW_TO_MICRO(raw, scale) ((((raw) % (scale)) * MEGA) / scale)
|
| H A D | bmi323_core.c | 324 1280 * MEGA, 325 640 * MEGA, 326 320 * MEGA, 327 160 * MEGA, 328 80 * MEGA, 329 40 * MEGA, 330 20 * MEGA, 331 10 * MEGA, 332 5 * MEGA, 1785 *val = BMI323_TEMP_SCALE / MEGA; in bmi323_read_raw() [all …]
|
| /linux-6.15/drivers/gpu/drm/mgag200/ |
| H A D | mgag200_g200eh5.c | 23 const unsigned long long VCO_MIN = 2500 * MEGA; // Hz in mgag200_g200eh5_pixpllc_atomic_check() 24 const unsigned long long PLL_FREQ_REF = 25 * MEGA; // Hz in mgag200_g200eh5_pixpllc_atomic_check()
|
| /linux-6.15/drivers/iio/accel/ |
| H A D | kionix-kx022a.c | 383 320 * MEGA, 384 160 * MEGA, 385 80 * MEGA, 386 40 * MEGA, 387 20 * MEGA, 388 10 * MEGA, 389 5 * MEGA,
|
| H A D | adxl355_core.c | 281 odr = mul_u64_u32_shr(adxl355_odr_table[data->odr][0], MEGA, 0) + in adxl355_fill_3db_frequency_table() 290 data->adxl355_hpf_3db_table[i][1] = div_u64(rem, MEGA * 100); in adxl355_fill_3db_frequency_table()
|
| /linux-6.15/drivers/iio/common/ssp_sensors/ |
| H A D | ssp_iio.c | 87 (int64_t)get_unaligned_le32(buf + len) * MEGA; in ssp_common_process_data()
|
| /linux-6.15/drivers/crypto/intel/qat/qat_common/ |
| H A D | adf_tl_debugfs.c | 233 vals->curr = div_u64(hist_vals[sample_cnt - 1] * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps() 234 vals->min = div_u64(min_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps() 235 vals->max = div_u64(max_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps() 236 vals->avg = div_u64(avg_array(hist_vals, sample_cnt) * bw_hw_2_bits, MEGA); in tl_bw_hw_units_to_mbps()
|
| /linux-6.15/drivers/net/can/usb/kvaser_usb/ |
| H A D | kvaser_usb_leaf.c | 486 .freq = 8 * MEGA /* Hz */, 494 .freq = 16 * MEGA /* Hz */, 502 .freq = 16 * MEGA /* Hz */, 510 .freq = 16 * MEGA /* Hz */, 518 .freq = 16 * MEGA /* Hz */, 526 .freq = 24 * MEGA /* Hz */, 534 .freq = 32 * MEGA /* Hz */,
|
| /linux-6.15/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8qm-lvds-phy.c | 47 #define MIN_CLKIN_FREQ (25 * MEGA) 48 #define MAX_CLKIN_FREQ (165 * MEGA)
|
| /linux-6.15/drivers/net/can/usb/etas_es58x/ |
| H A D | es581_4.c | 473 .bitrate_max = 1 * MEGA /* BPS */, 474 .clock = {.freq = 50 * MEGA /* Hz */},
|
| H A D | es58x_fd.c | 526 .bitrate_max = 8 * MEGA /* BPS */, 527 .clock = {.freq = 80 * MEGA /* Hz */},
|
| /linux-6.15/drivers/phy/qualcomm/ |
| H A D | phy-qcom-uniphy-pcie-28lp.c | 96 .pipe_clk_rate = 250 * MEGA,
|
| /linux-6.15/drivers/clk/renesas/ |
| H A D | rzg2l-cpg.c | 191 if (event != PRE_RATE_CHANGE || (cnd->new_rate / MEGA == 266)) in rzg2l_cpg_sd_clk_mux_notifier() 555 params->pl5_intin = rate / MEGA; in rzg2l_cpg_get_foutpostdiv_rate() 556 params->pl5_fracin = div_u64(((u64)rate % MEGA) << 24, MEGA); in rzg2l_cpg_get_foutpostdiv_rate() 562 foutvco_rate = div_u64(mul_u32_u32(EXTAL_FREQ_IN_MEGA_HZ * MEGA, in rzg2l_cpg_get_foutpostdiv_rate()
|
| /linux-6.15/drivers/ptp/ |
| H A D | ptp_dfl_tod.c | 60 #define TOD_MAX_ADJ (500 * MEGA)
|
| /linux-6.15/drivers/net/can/usb/ |
| H A D | esd_usb.c | 32 #define ESD_USB_2_CAN_CLOCK (60 * MEGA) /* Hz */ 33 #define ESD_USB_M_CAN_CLOCK (36 * MEGA) /* Hz */ 34 #define ESD_USB_3_CAN_CLOCK (80 * MEGA) /* Hz */
|