Lines Matching full:variant
73 * @variant: local copy of hardware variant data
83 struct samsung_pwm_variant variant; member
142 bits = (fls(divisor) - 1) - pwm->variant.div_base; in pwm_samsung_set_divisor()
156 struct samsung_pwm_variant *variant = &chip->variant; in pwm_samsung_is_tdiv() local
163 return (BIT(reg) & variant->tclk_mask) == 0; in pwm_samsung_is_tdiv()
185 struct samsung_pwm_variant *variant = &chip->variant; in pwm_samsung_calc_tin() local
210 if (variant->bits < 32) { in pwm_samsung_calc_tin()
212 for (div = variant->div_base; div < 4; ++div) in pwm_samsung_calc_tin()
213 if ((rate >> (variant->bits + div)) < freq) in pwm_samsung_calc_tin()
220 div = variant->div_base; in pwm_samsung_calc_tin()
233 if (!(our_chip->variant.output_mask & BIT(pwm->hwpwm))) { in pwm_samsung_request()
532 memcpy(&chip->variant, match->data, sizeof(chip->variant)); in pwm_samsung_parse_dt()
541 chip->variant.output_mask |= BIT(val); in pwm_samsung_parse_dt()
579 memcpy(&chip->variant, pdev->dev.platform_data, in pwm_samsung_probe()
580 sizeof(chip->variant)); in pwm_samsung_probe()
600 if (chip->variant.output_mask & BIT(chan)) in pwm_samsung_probe()
649 if (our_chip->variant.output_mask & BIT(i)) in pwm_samsung_resume()