Searched refs:freq_div (Results 1 – 2 of 2) sorted by relevance
202 int freq_div = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7; in ltq_ar10_cpu_hz() local216 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() local288 switch (freq_div) { in ltq_grx390_cpu_hz()305 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX)) & 0x7); in ltq_grx390_fpi_hz() local321 switch (freq_div) { in ltq_grx390_fpi_hz()
944 static u64 inv_mpu6050_convert_wom_to_roc(unsigned int threshold, unsigned int freq_div) in inv_mpu6050_convert_wom_to_roc() argument953 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() argument966 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() argument1004 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() argument1063 if (freq_div <= freq_dividers[i]) { in inv_mpu6050_set_lp_odr()