Home
last modified time | relevance | path

Searched refs:freq_div (Results 1 – 2 of 2) sorted by relevance

/linux/arch/mips/lantiq/xway/
H A Dclk.c202 int freq_div = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7; in ltq_ar10_cpu_hz() local
216 switch (freq_div) { in ltq_ar10_cpu_hz()
271 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7); in ltq_grx390_cpu_hz() local
288 switch (freq_div) { in ltq_grx390_cpu_hz()
305 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX)) & 0x7); in ltq_grx390_fpi_hz() local
321 switch (freq_div) { in ltq_grx390_fpi_hz()
/linux/drivers/iio/imu/inv_mpu6050/
H A Dinv_mpu_core.c944 static u64 inv_mpu6050_convert_wom_to_roc(unsigned int threshold, unsigned int freq_div) in inv_mpu6050_convert_wom_to_roc() argument
953 return div_u64(value * INV_MPU6050_INTERNAL_FREQ_HZ, freq_div); in inv_mpu6050_convert_wom_to_roc()
956 static unsigned int inv_mpu6050_convert_roc_to_wom(u64 roc, unsigned int freq_div) in inv_mpu6050_convert_roc_to_wom() argument
966 value = div_u64(roc * freq_div, convert * INV_MPU6050_INTERNAL_FREQ_HZ); in inv_mpu6050_convert_roc_to_wom()
998 unsigned int freq_div) in inv_mpu6050_set_wom_threshold() argument
1004 threshold = inv_mpu6050_convert_roc_to_wom(value, freq_div); in inv_mpu6050_set_wom_threshold()
1005 value = inv_mpu6050_convert_wom_to_roc(threshold, freq_div); in inv_mpu6050_set_wom_threshold()
1033 static int inv_mpu6050_set_lp_odr(struct inv_mpu6050_state *st, unsigned int freq_div, in inv_mpu6050_set_lp_odr() argument
1063 if (freq_div <= freq_dividers[i]) { in inv_mpu6050_set_lp_odr()