Searched defs:enable_count (Results 1 - 2 of 2) sorted by relevance

/drivers/clocksource/
H A Dsh_tmu.c54 unsigned int enable_count; member in struct:sh_tmu_channel
179 if (ch->enable_count++ > 0)
202 if (WARN_ON(ch->enable_count == 0))
205 if (--ch->enable_count > 0)
300 if (--ch->enable_count == 0) {
313 if (ch->enable_count++ == 0) {
490 ch->enable_count = 0;
/drivers/regulator/
H A Dcore.c82 u32 enable_count; /* a number of enabled shared GPIO */ member in struct:regulator_enable_gpio
1724 * regulator_ena_gpio_ctrl - balance enable_count of each GPIO and actual GPIO pin control
1728 * GPIO is enabled in case of initial use. (enable_count is 0)
1729 * GPIO is disabled when it is not shared any more. (enable_count <= 1)
1740 if (pin->enable_count == 0)
1744 pin->enable_count++;
1746 if (pin->enable_count > 1) {
1747 pin->enable_count--;
1752 if (pin->enable_count <= 1) {
1755 pin->enable_count
[all...]

Completed in 4051 milliseconds