Lines Matching refs:activity
198 u8 activity; member
212 static enum iio_modifier mma9553_activity_to_mod(enum activity_level activity) in mma9553_activity_to_mod() argument
214 switch (activity) { in mma9553_activity_to_mod()
321 u8 *activity, u16 *stepcnt) in mma9553_read_activity_stepcnt() argument
335 *activity = mma9553_get_bits(buf[0], MMA9553_MASK_STATUS_ACTIVITY); in mma9553_read_activity_stepcnt()
371 ret = mma9553_read_activity_stepcnt(data, &data->activity, in mma9553_conf_gpio()
477 u8 activity; in mma9553_read_raw() local
505 activity = in mma9553_read_raw()
513 if (chan->channel2 == mma9553_activity_to_mod(activity)) in mma9553_read_raw()
1018 u8 activity; in mma9553_event_handler() local
1023 ret = mma9553_read_activity_stepcnt(data, &activity, &stepcnt); in mma9553_event_handler()
1031 data->activity), in mma9553_event_handler()
1034 mma9553_activity_to_mod(activity), in mma9553_event_handler()
1048 if (activity != data->activity) { in mma9553_event_handler()
1049 data->activity = activity; in mma9553_event_handler()