Lines Matching defs:timer_users
43 * @offset_timer: Maps an offset to an @timer_users index, or zero if disabled
44 * @timer_users: Tracks the number of users for each timer
46 * The @timer_users has four elements but the first element is unused. This is
49 * of @offset_timer is used as an index into @timer_users. This behaviour of
62 unsigned int timer_users[4];
786 if (WARN(gpio->timer_users[timer] == UINT_MAX,
791 gpio->timer_users[timer]++;
804 if (WARN(gpio->timer_users[gpio->offset_timer[offset]] == 0,
809 gpio->timer_users[gpio->offset_timer[offset]]--;
886 for (j = 1; j < ARRAY_SIZE(gpio->timer_users); j++) {
887 if (gpio->timer_users[j] == 0)
891 if (j == ARRAY_SIZE(gpio->timer_users)) {