Lines Matching full:duty
102 uint32_t duty; in npcm7xx_pwm_calculate_duty() local
106 duty = 0; in npcm7xx_pwm_calculate_duty()
108 duty = NPCM7XX_PWM_MAX_DUTY; in npcm7xx_pwm_calculate_duty()
110 duty = (uint64_t)NPCM7XX_PWM_MAX_DUTY * (p->cmr + 1) / (p->cnr + 1); in npcm7xx_pwm_calculate_duty()
113 duty = 0; in npcm7xx_pwm_calculate_duty()
117 duty = NPCM7XX_PWM_MAX_DUTY - duty; in npcm7xx_pwm_calculate_duty()
120 return duty; in npcm7xx_pwm_calculate_duty()
136 uint32_t duty = npcm7xx_pwm_calculate_duty(p); in npcm7xx_pwm_update_duty() local
138 if (duty != p->duty) { in npcm7xx_pwm_update_duty()
140 p->index, p->duty, duty); in npcm7xx_pwm_update_duty()
141 p->duty = duty; in npcm7xx_pwm_update_duty()
142 qemu_set_irq(p->module->duty_gpio_out[p->index], p->duty); in npcm7xx_pwm_update_duty()
196 * generate frequency and duty-cycle values. in npcm7xx_pwm_write_pcr()
503 object_property_add_uint32_ptr(obj, "duty[*]", in npcm7xx_pwm_init()
504 &s->pwm[i].duty, OBJ_PROP_FLAG_READ); in npcm7xx_pwm_init()
507 "duty-gpio-out", NPCM7XX_PWM_PER_MODULE); in npcm7xx_pwm_init()
523 VMSTATE_UINT32(duty, NPCM7xxPWM),