Lines Matching refs:lodr_bits
424 int lodr_bits, odr_bits; in kmx61_set_odr() local
430 lodr_bits = kmx61_convert_freq_to_bit(val, val2); in kmx61_set_odr()
431 if (lodr_bits < 0) in kmx61_set_odr()
432 return lodr_bits; in kmx61_set_odr()
442 odr_bits |= lodr_bits << KMX61_ACC_ODR_SHIFT; in kmx61_set_odr()
444 odr_bits |= lodr_bits << KMX61_MAG_ODR_SHIFT; in kmx61_set_odr()
465 u8 lodr_bits; in kmx61_get_odr() local
468 lodr_bits = (data->odr_bits >> KMX61_ACC_ODR_SHIFT) & in kmx61_get_odr()
471 lodr_bits = (data->odr_bits >> KMX61_MAG_ODR_SHIFT) & in kmx61_get_odr()
476 if (lodr_bits >= ARRAY_SIZE(kmx61_samp_freq_table)) in kmx61_get_odr()
479 *val = kmx61_samp_freq_table[lodr_bits].val; in kmx61_get_odr()
480 *val2 = kmx61_samp_freq_table[lodr_bits].val2; in kmx61_get_odr()