Searched refs:KMX61_MAG (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/iio/imu/
H A Dkmx61.c118 #define KMX61_MAG 0x02 macro
258 .address = KMX61_MAG, \
351 if (device & KMX61_MAG) { kmx61_set_mode()
396 if (device & KMX61_MAG) { kmx61_get_mode()
427 ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); kmx61_set_odr()
436 ret = kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, kmx61_set_odr()
444 if (device & KMX61_MAG) kmx61_set_odr()
460 return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); kmx61_set_odr()
471 else if (device & KMX61_MAG) kmx61_get_odr()
518 KMX61_ACC | KMX61_MAG); kmx61_set_scale()
523 KMX61_ACC | KMX61_MAG, true); kmx61_set_scale()
532 KMX61_ACC | KMX61_MAG, true); kmx61_set_scale()
580 ret = kmx61_set_mode(data, 0, KMX61_ACC | KMX61_MAG, true); kmx61_chip_init()
596 ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); kmx61_setup_new_data_interrupt()
600 ret = kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); kmx61_setup_new_data_interrupt()
614 if (device & KMX61_MAG) kmx61_setup_new_data_interrupt()
620 if (device & KMX61_MAG) kmx61_setup_new_data_interrupt()
646 return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); kmx61_setup_new_data_interrupt()
676 ret = kmx61_get_mode(data, &mode, KMX61_ACC | KMX61_MAG); kmx61_setup_any_motion_interrupt()
680 ret = kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); kmx61_setup_any_motion_interrupt()
721 return kmx61_set_mode(data, mode, KMX61_ACC | KMX61_MAG, true); kmx61_setup_any_motion_interrupt()
748 if (device & KMX61_MAG) { kmx61_set_power_state()
750 ret = kmx61_set_mode(data, 0, KMX61_MAG, true); kmx61_set_power_state()
1046 device = KMX61_MAG; kmx61_data_rdy_trigger_set_state()
1432 kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); kmx61_probe()
1456 kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); kmx61_remove()
1469 ret = kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, kmx61_suspend()
1486 return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true); kmx61_resume()
1497 ret = kmx61_set_mode(data, KMX61_ALL_STBY, KMX61_ACC | KMX61_MAG, true); kmx61_runtime_suspend()
1513 return kmx61_set_mode(data, stby, KMX61_ACC | KMX61_MAG, true); kmx61_runtime_resume()

Completed in 50 milliseconds