Lines Matching defs:timer_users
45 * @offset_timer: Maps an offset to an @timer_users index, or zero if disabled
46 * @timer_users: Tracks the number of users for each timer
48 * The @timer_users has four elements but the first element is unused. This is
51 * of @offset_timer is used as an index into @timer_users. This behaviour of
64 unsigned int timer_users[4];
793 if (WARN(gpio->timer_users[timer] == UINT_MAX,
798 gpio->timer_users[timer]++;
811 if (WARN(gpio->timer_users[gpio->offset_timer[offset]] == 0,
816 gpio->timer_users[gpio->offset_timer[offset]]--;
893 for (j = 1; j < ARRAY_SIZE(gpio->timer_users); j++) {
894 if (gpio->timer_users[j] == 0)
898 if (j == ARRAY_SIZE(gpio->timer_users)) {