Lines Matching full:activity

76  * The internal activity level must be stable for ACTTHD samples before
77 * ACTIVITY is updated. The ACTIVITY variable contains the current activity
94 /* Status register - activity field */
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()
346 * If both step detector and activity are enabled, use the MRGFL bit. in mma9553_conf_gpio()
361 /* Save initial values for activity and stepcnt */ in mma9553_conf_gpio()
363 ret = mma9553_read_activity_stepcnt(data, &data->activity, in mma9553_conf_gpio()
418 * Clear the activity debounce counter when the activity level changes, in mma9553_init()
419 * so that the confidence level applies for any activity level. in mma9553_init()
444 * parameters (speed, distance, calories, activity) in mma9553_read_status_word()
469 u8 activity; in mma9553_read_raw() local
497 activity = in mma9553_read_raw()
502 * so we will always have 100% for current activity and in mma9553_read_raw()
505 if (chan->channel2 == mma9553_activity_to_mod(activity)) in mma9553_read_raw()
1009 u8 activity; in mma9553_event_handler() local
1014 ret = mma9553_read_activity_stepcnt(data, &activity, &stepcnt); in mma9553_event_handler()
1022 data->activity), in mma9553_event_handler()
1025 mma9553_activity_to_mod(activity), in mma9553_event_handler()
1039 if (activity != data->activity) { in mma9553_event_handler()
1040 data->activity = activity; in mma9553_event_handler()
1041 /* ev_activity can be NULL if activity == ACTIVITY_UNKNOWN */ in mma9553_event_handler()