D | max2165.c | 150 static int fixpt_div32(u32 dividend, u32 divisor, u32 *quotient, u32 *fraction) in fixpt_div32() argument 172 *fraction = f; in fixpt_div32() 182 u32 quotient, fraction; in max2165_set_rf() local 187 "ient, &fraction); in max2165_set_rf() 191 /* 20-bit fraction */ in max2165_set_rf() 192 fraction >>= 12; in max2165_set_rf() 195 max2165_mask_write_reg(priv, REG_NDIV_FRAC2, 0x0F, fraction >> 16); in max2165_set_rf() 196 max2165_write_reg(priv, REG_NDIV_FRAC1, fraction >> 8); in max2165_set_rf() 197 max2165_write_reg(priv, REG_NDIV_FRAC0, fraction); in max2165_set_rf()
|