Lines Matching refs:lodr_bits
420 int lodr_bits, odr_bits; in kmx61_set_odr() local
426 lodr_bits = kmx61_convert_freq_to_bit(val, val2); in kmx61_set_odr()
427 if (lodr_bits < 0) in kmx61_set_odr()
428 return lodr_bits; in kmx61_set_odr()
438 odr_bits |= lodr_bits << KMX61_ACC_ODR_SHIFT; in kmx61_set_odr()
440 odr_bits |= lodr_bits << KMX61_MAG_ODR_SHIFT; in kmx61_set_odr()
461 u8 lodr_bits; in kmx61_get_odr() local
464 lodr_bits = (data->odr_bits >> KMX61_ACC_ODR_SHIFT) & in kmx61_get_odr()
467 lodr_bits = (data->odr_bits >> KMX61_MAG_ODR_SHIFT) & in kmx61_get_odr()
472 if (lodr_bits >= ARRAY_SIZE(kmx61_samp_freq_table)) in kmx61_get_odr()
475 *val = kmx61_samp_freq_table[lodr_bits].val; in kmx61_get_odr()
476 *val2 = kmx61_samp_freq_table[lodr_bits].val2; in kmx61_get_odr()