Lines Matching refs:activity
190 u8 activity; member
204 static enum iio_modifier mma9553_activity_to_mod(enum activity_level activity) in mma9553_activity_to_mod() argument
206 switch (activity) { in mma9553_activity_to_mod()
313 u8 *activity, u16 *stepcnt) in mma9553_read_activity_stepcnt() argument
327 *activity = mma9553_get_bits(buf[0], MMA9553_MASK_STATUS_ACTIVITY); in mma9553_read_activity_stepcnt()
363 ret = mma9553_read_activity_stepcnt(data, &data->activity, in mma9553_conf_gpio()
469 u8 activity; in mma9553_read_raw() local
497 activity = in mma9553_read_raw()
505 if (chan->channel2 == mma9553_activity_to_mod(activity)) in mma9553_read_raw()
1010 u8 activity; in mma9553_event_handler() local
1015 ret = mma9553_read_activity_stepcnt(data, &activity, &stepcnt); in mma9553_event_handler()
1023 data->activity), in mma9553_event_handler()
1026 mma9553_activity_to_mod(activity), in mma9553_event_handler()
1040 if (activity != data->activity) { in mma9553_event_handler()
1041 data->activity = activity; in mma9553_event_handler()