Searched refs:pwm_channels_mask (Results 1 – 2 of 2) sorted by relevance
45 unsigned long pwm_channels_mask; member298 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()
41 u32 pwm_channels_mask = GENMASK(jz->chip.npwm - 1, 2); in jz4740_pwm_can_use_chn() local45 &pwm_channels_mask); in jz4740_pwm_can_use_chn()47 return !!(pwm_channels_mask & BIT(channel)); in jz4740_pwm_can_use_chn()