Home
last modified time | relevance | path

Searched refs:pwm_channels_mask (Results 1 – 2 of 2) sorted by relevance

/drivers/clocksource/
Dingenic-timer.c46 unsigned long pwm_channels_mask; member
299 tcu->pwm_channels_mask = GENMASK(soc_info->num_channels - 1, in ingenic_tcu_init()
302 (u32 *)&tcu->pwm_channels_mask); in ingenic_tcu_init()
305 if (hweight8(tcu->pwm_channels_mask) > in ingenic_tcu_init()
308 tcu->pwm_channels_mask); in ingenic_tcu_init()
321 timer->channel = find_next_zero_bit(&tcu->pwm_channels_mask, in ingenic_tcu_init()
327 tcu->cs_channel = find_next_zero_bit(&tcu->pwm_channels_mask, in ingenic_tcu_init()
/drivers/pwm/
Dpwm-jz4740.c41 u32 pwm_channels_mask = GENMASK(jz->chip.npwm - 1, 2); in jz4740_pwm_can_use_chn() local
45 &pwm_channels_mask); in jz4740_pwm_can_use_chn()
47 return !!(pwm_channels_mask & BIT(channel)); in jz4740_pwm_can_use_chn()