Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/clocksource/
Dingenic-timer.c45 unsigned long pwm_channels_mask; member
298 tcu->pwm_channels_mask = GENMASK(soc_info->num_channels - 1, in ingenic_tcu_init()
301 (u32 *)&tcu->pwm_channels_mask); in ingenic_tcu_init()
304 if (hweight8(tcu->pwm_channels_mask) > in ingenic_tcu_init()
307 tcu->pwm_channels_mask); in ingenic_tcu_init()
320 timer->channel = find_next_zero_bit(&tcu->pwm_channels_mask, in ingenic_tcu_init()
326 tcu->cs_channel = find_next_zero_bit(&tcu->pwm_channels_mask, in ingenic_tcu_init()
/Linux-v6.6/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()