duty 793 arch/arm/common/locomo.c void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf) duty 806 arch/arm/common/locomo.c locomo_writel(duty, lchip->base + LOCOMO_FRONTLIGHT + LOCOMO_ALD); duty 213 arch/arm/include/asm/hardware/locomo.h void locomo_frontlight_set(struct locomo_dev *dev, int duty, int vr, int bpwf); duty 85 arch/mips/include/asm/mach-jz4740/timer.h static inline void jz4740_timer_set_duty(unsigned int timer, uint16_t duty) duty 87 arch/mips/include/asm/mach-jz4740/timer.h writew(duty, jz4740_timer_base + JZ_REG_TIMER_DHR(timer)); duty 47 drivers/clk/clk-pwm.c static int clk_pwm_get_duty_cycle(struct clk_hw *hw, struct clk_duty *duty) duty 54 drivers/clk/clk-pwm.c duty->num = state.duty_cycle; duty 55 drivers/clk/clk-pwm.c duty->den = state.period; duty 82 drivers/clk/clk.c struct clk_duty duty; duty 2686 drivers/clk/clk.c core->duty.num = 1; duty 2687 drivers/clk/clk.c core->duty.den = 2; duty 2694 drivers/clk/clk.c struct clk_duty *duty = &core->duty; duty 2700 drivers/clk/clk.c ret = core->ops->get_duty_cycle(core->hw, duty); duty 2705 drivers/clk/clk.c if (duty->den == 0 || duty->num > duty->den) { duty 2724 drivers/clk/clk.c memcpy(&core->duty, &core->parent->duty, sizeof(core->duty)); duty 2733 drivers/clk/clk.c struct clk_duty *duty); duty 2736 drivers/clk/clk.c struct clk_duty *duty) duty 2745 drivers/clk/clk.c trace_clk_set_duty_cycle(core, duty); duty 2748 drivers/clk/clk.c return clk_core_set_duty_cycle_parent_nolock(core, duty); duty 2750 drivers/clk/clk.c ret = core->ops->set_duty_cycle(core->hw, duty); duty 2752 drivers/clk/clk.c memcpy(&core->duty, duty, sizeof(*duty)); duty 2754 drivers/clk/clk.c trace_clk_set_duty_cycle_complete(core, duty); duty 2760 drivers/clk/clk.c struct clk_duty *duty) duty 2766 drivers/clk/clk.c ret = clk_core_set_duty_cycle_nolock(core->parent, duty); duty 2767 drivers/clk/clk.c memcpy(&core->duty, &core->parent->duty, sizeof(core->duty)); duty 2787 drivers/clk/clk.c struct clk_duty duty; duty 2796 drivers/clk/clk.c duty.num = num; duty 2797 drivers/clk/clk.c duty.den = den; duty 2804 drivers/clk/clk.c ret = clk_core_set_duty_cycle_nolock(clk->core, &duty); duty 2818 drivers/clk/clk.c struct clk_duty *duty = &core->duty; duty 2825 drivers/clk/clk.c ret = mult_frac(scale, duty->num, duty->den); duty 3107 drivers/clk/clk.c struct clk_duty *duty = &core->duty; duty 3109 drivers/clk/clk.c seq_printf(s, "%u/%u\n", duty->num, duty->den); duty 125 drivers/clk/meson/sclk-div.c struct clk_duty *duty) duty 131 drivers/clk/meson/sclk-div.c memcpy(&sclk->cached_duty, duty, sizeof(*duty)); duty 139 drivers/clk/meson/sclk-div.c struct clk_duty *duty) duty 146 drivers/clk/meson/sclk-div.c duty->num = 1; duty 147 drivers/clk/meson/sclk-div.c duty->den = 2; duty 152 drivers/clk/meson/sclk-div.c duty->num = hi + 1; duty 153 drivers/clk/meson/sclk-div.c duty->den = sclk->cached_div; duty 6566 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 duty, duty100; duty 6574 drivers/gpu/drm/amd/amdgpu/si_dpm.c duty = (RREG32(CG_THERMAL_STATUS) & FDO_PWM_DUTY_MASK) >> FDO_PWM_DUTY_SHIFT; duty 6579 drivers/gpu/drm/amd/amdgpu/si_dpm.c tmp64 = (u64)duty * 100; duty 6595 drivers/gpu/drm/amd/amdgpu/si_dpm.c u32 duty, duty100; duty 6614 drivers/gpu/drm/amd/amdgpu/si_dpm.c duty = (u32)tmp64; duty 6617 drivers/gpu/drm/amd/amdgpu/si_dpm.c tmp |= FDO_STATIC_DUTY(duty); duty 58 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c uint32_t duty; duty 66 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c duty = PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, duty 73 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c tmp64 = (uint64_t)duty * 100; duty 199 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c uint32_t duty; duty 219 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c duty = (uint32_t)tmp64; duty 222 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_thermal.c CG_FDO_CTRL0, FDO_STATIC_DUTY, duty); duty 256 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c uint32_t duty; duty 276 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c duty = (uint32_t)tmp64; duty 280 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c CG_FDO_CTRL0, FDO_STATIC_DUTY, duty)); duty 141 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c uint32_t duty; duty 158 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c duty = (uint32_t)tmp64; duty 162 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_thermal.c CG_FDO_CTRL0, FDO_STATIC_DUTY, duty)); duty 1426 drivers/gpu/drm/amd/powerplay/smu_v11_0.c uint32_t duty100, duty; duty 1442 drivers/gpu/drm/amd/powerplay/smu_v11_0.c duty = (uint32_t)tmp64; duty 1446 drivers/gpu/drm/amd/powerplay/smu_v11_0.c CG_FDO_CTRL0, FDO_STATIC_DUTY, duty)); duty 42 drivers/gpu/drm/nouveau/nouveau_led.c u32 div, duty; duty 45 drivers/gpu/drm/nouveau/nouveau_led.c duty = nvif_rd32(device, 0x61c884) & 0x00ffffff; duty 48 drivers/gpu/drm/nouveau/nouveau_led.c return duty * LED_FULL / div; duty 62 drivers/gpu/drm/nouveau/nouveau_led.c u32 div, duty; duty 65 drivers/gpu/drm/nouveau/nouveau_led.c duty = value * div / LED_FULL; duty 73 drivers/gpu/drm/nouveau/nouveau_led.c nvif_wr32(device, 0x61c884, 0xc0000000 | duty); duty 44 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c u16 duty, i; duty 59 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = cur_trip->fan_duty; duty 62 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = 0; duty 66 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return duty; duty 74 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c u16 duty; duty 83 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = (temp - linear_min_temp); duty 84 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty *= (therm->fan->bios.max_duty - therm->fan->bios.min_duty); duty 85 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty /= (linear_max_temp - linear_min_temp); duty 86 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty += therm->fan->bios.min_duty; duty 87 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c return duty; duty 113 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c int duty = -1; duty 123 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = nvkm_therm_fan_get(therm); duty 124 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (duty < 0) duty 125 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = 100; duty 131 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = nvkm_therm_update_trip(therm); duty 134 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = nvkm_therm_update_linear(therm); duty 138 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = therm->cstate; duty 141 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c duty = nvkm_therm_update_linear_fallback(therm); duty 157 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c if (duty >= 0) { duty 158 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_debug(subdev, "FAN target request: %d%%\n", duty); duty 159 drivers/gpu/drm/nouveau/nvkm/subdev/therm/base.c nvkm_therm_fan_set(therm, immd, duty); duty 39 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c int duty; duty 53 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c duty = fan->get(therm); duty 54 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (duty == target) { duty 60 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (!immediate && duty >= 0) { duty 65 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (duty < target) duty 66 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c duty = min(duty + 3, target); duty 67 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c else if (duty > target) duty 68 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c duty = max(duty - 3, target); duty 70 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c duty = target; duty 73 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c nvkm_debug(subdev, "FAN update: %d\n", duty); duty 74 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c ret = fan->set(therm, duty); duty 86 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (target != duty) { duty 91 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c if (duty > target) duty 93 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fan.c else if (duty == target) duty 44 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c u32 divs, duty; duty 47 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c ret = therm->func->pwm_get(therm, fan->func.line, &divs, &duty); duty 49 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c divs = max(divs, duty); duty 51 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c duty = divs - duty; duty 52 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c return (duty * 100) / divs; duty 63 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c u32 divs, duty; duty 74 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c duty = ((divs * percent) + 99) / 100; duty 76 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c duty = divs - duty; duty 78 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c ret = therm->func->pwm_set(therm, fan->func.line, divs, duty); duty 91 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c u32 divs, duty; duty 97 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fanpwm.c therm->func->pwm_get(therm, func->line, &divs, &duty) == -ENODEV) duty 46 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c int duty; duty 53 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c duty = !nvkm_gpio_get(gpio, 0, DCB_GPIO_FAN, 0xff); duty 54 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c nvkm_gpio_set(gpio, 0, DCB_GPIO_FAN, 0xff, duty); duty 56 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c if (percent != (duty * 100)) { duty 58 drivers/gpu/drm/nouveau/nvkm/subdev/therm/fantog.c if (!duty) duty 67 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c gf119_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) duty 76 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c *duty = nvkm_rd32(device, 0x00e118 + (indx * 8)); duty 81 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c *duty = nvkm_rd32(device, 0x0200dc) & 0x1fff; duty 89 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c gf119_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) duty 97 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c nvkm_wr32(device, 0x00e118 + (indx * 8), duty | 0x80000000); duty 100 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gf119.c nvkm_wr32(device, 0x0200dc, duty | 0x40000000); duty 34 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c gm107_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) duty 38 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c *duty = nvkm_rd32(device, 0x10eb24) & 0x1fff; duty 43 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c gm107_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) duty 47 drivers/gpu/drm/nouveau/nvkm/subdev/therm/gm107.c nvkm_wr32(device, 0x10eb14, duty | 0x80000000); duty 121 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c nv40_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) duty 128 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c *duty = (reg & 0x7fff0000) >> 16; duty 137 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c *duty = (reg & 0x7fffffff); duty 149 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c nv40_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) duty 154 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c nvkm_mask(device, 0x0010f0, 0x7fff7fff, (duty << 16) | divs); duty 158 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv40.c nvkm_mask(device, 0x0015f4, 0x7fffffff, duty); duty 66 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv50.c nv50_fan_pwm_get(struct nvkm_therm *therm, int line, u32 *divs, u32 *duty) duty 75 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv50.c *duty = nvkm_rd32(device, 0x00e118 + (id * 8)); duty 83 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv50.c nv50_fan_pwm_set(struct nvkm_therm *therm, int line, u32 divs, u32 duty) duty 91 drivers/gpu/drm/nouveau/nvkm/subdev/therm/nv50.c nvkm_wr32(device, 0x00e118 + (id * 8), duty | 0x80000000); duty 43 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c u32 div, duty; duty 46 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c duty = nvkm_rd32(device, 0x20344); duty 48 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c return bios->base + bios->pwm_range * duty / div; duty 56 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c u32 div, duty; duty 60 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c duty = DIV_ROUND_UP((uv - bios->base) * div, bios->pwm_range); duty 63 drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c nvkm_wr32(device, 0x20344, 0x80000000 | duty); duty 1078 drivers/gpu/drm/radeon/ci_dpm.c u32 duty, duty100; duty 1085 drivers/gpu/drm/radeon/ci_dpm.c duty = (RREG32_SMC(CG_THERMAL_STATUS) & FDO_PWM_DUTY_MASK) >> FDO_PWM_DUTY_SHIFT; duty 1090 drivers/gpu/drm/radeon/ci_dpm.c tmp64 = (u64)duty * 100; duty 1104 drivers/gpu/drm/radeon/ci_dpm.c u32 duty, duty100; duty 1124 drivers/gpu/drm/radeon/ci_dpm.c duty = (u32)tmp64; duty 1127 drivers/gpu/drm/radeon/ci_dpm.c tmp |= FDO_STATIC_DUTY(duty); duty 6139 drivers/gpu/drm/radeon/si_dpm.c u32 duty, duty100; duty 6146 drivers/gpu/drm/radeon/si_dpm.c duty = (RREG32(CG_THERMAL_STATUS) & FDO_PWM_DUTY_MASK) >> FDO_PWM_DUTY_SHIFT; duty 6151 drivers/gpu/drm/radeon/si_dpm.c tmp64 = (u64)duty * 100; duty 6166 drivers/gpu/drm/radeon/si_dpm.c u32 duty, duty100; duty 6185 drivers/gpu/drm/radeon/si_dpm.c duty = (u32)tmp64; duty 6188 drivers/gpu/drm/radeon/si_dpm.c tmp |= FDO_STATIC_DUTY(duty); duty 766 drivers/hwmon/f75375s.c bool manu, duty; duty 772 drivers/hwmon/f75375s.c duty = ((mode >> F75387_FAN_DUTY_MODE(nr)) & 1); duty 773 drivers/hwmon/f75375s.c if (!manu && duty) duty 776 drivers/hwmon/f75375s.c else if (manu && !duty) duty 779 drivers/hwmon/f75375s.c else if (!manu && !duty) duty 57 drivers/hwmon/mlxreg-fan.c #define MLXREG_FAN_PWM_DUTY2STATE(duty) (DIV_ROUND_CLOSEST((duty) * \ duty 425 drivers/hwmon/pwm-fan.c unsigned long duty; duty 440 drivers/hwmon/pwm-fan.c duty = DIV_ROUND_UP(ctx->pwm_value * (pargs.period - 1), MAX_PWM); duty 441 drivers/hwmon/pwm-fan.c ret = pwm_config(ctx->pwm, duty, pargs.period); duty 61 drivers/input/misc/max8997_haptic.c unsigned int duty = chip->pwm_period * chip->level / 100; duty 62 drivers/input/misc/max8997_haptic.c ret = pwm_config(chip->pwm, duty, chip->pwm_period); duty 27 drivers/leds/leds-pwm.c int duty; duty 37 drivers/leds/leds-pwm.c int new_duty = led_dat->duty; duty 53 drivers/leds/leds-pwm.c unsigned long long duty = led_dat->period; duty 55 drivers/leds/leds-pwm.c duty *= brightness; duty 56 drivers/leds/leds-pwm.c do_div(duty, max); duty 59 drivers/leds/leds-pwm.c duty = led_dat->period - duty; duty 61 drivers/leds/leds-pwm.c led_dat->duty = duty; duty 46 drivers/media/rc/ir-rx51.c int duty, period = DIV_ROUND_CLOSEST(NSEC_PER_SEC, ir_rx51->freq); duty 48 drivers/media/rc/ir-rx51.c duty = DIV_ROUND_CLOSEST(ir_rx51->duty_cycle * period, 100); duty 50 drivers/media/rc/ir-rx51.c pwm_config(pwm, duty, period); duty 176 drivers/media/rc/ir-rx51.c static int ir_rx51_set_duty_cycle(struct rc_dev *dev, u32 duty) duty 180 drivers/media/rc/ir-rx51.c ir_rx51->duty_cycle = duty; duty 56 drivers/media/rc/pwm-ir-tx.c int i, duty, period; duty 61 drivers/media/rc/pwm-ir-tx.c duty = DIV_ROUND_CLOSEST(pwm_ir->duty_cycle * period, 100); duty 63 drivers/media/rc/pwm-ir-tx.c pwm_config(pwm, duty, period); duty 127 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c static inline int mlxsw_duty_to_state(u8 duty) duty 129 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c return DIV_ROUND_CLOSEST(duty * MLXSW_THERMAL_MAX_STATE, duty 678 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c u8 duty; duty 691 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c duty = mlxsw_reg_mfsc_pwm_duty_cycle_get(mfsc_pl); duty 692 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c *p_state = mlxsw_duty_to_state(duty); duty 705 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c u8 duty; duty 731 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c duty = mlxsw_reg_mfsc_pwm_duty_cycle_get(mfsc_pl); duty 732 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c cur_state = mlxsw_duty_to_state(duty); duty 36 drivers/pwm/pwm-atmel-tcb.c unsigned duty; /* PWM duty expressed in clk cycles */ duty 96 drivers/pwm/pwm-atmel-tcb.c tcbpwm->duty = 0; duty 108 drivers/pwm/pwm-atmel-tcb.c tcbpwm->duty = duty 111 drivers/pwm/pwm-atmel-tcb.c tcbpwm->duty = duty 160 drivers/pwm/pwm-atmel-tcb.c if (tcbpwm->duty == 0) duty 219 drivers/pwm/pwm-atmel-tcb.c if (tcbpwm->duty == 0) duty 250 drivers/pwm/pwm-atmel-tcb.c if (tcbpwm->duty != tcbpwm->period && tcbpwm->duty > 0) { duty 269 drivers/pwm/pwm-atmel-tcb.c __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RA)); duty 271 drivers/pwm/pwm-atmel-tcb.c __raw_writel(tcbpwm->duty, regs + ATMEL_TC_REG(group, RB)); duty 295 drivers/pwm/pwm-atmel-tcb.c unsigned duty; duty 330 drivers/pwm/pwm-atmel-tcb.c duty = div_u64(duty_ns, min); duty 350 drivers/pwm/pwm-atmel-tcb.c if ((atcbpwm && atcbpwm->duty > 0 && duty 351 drivers/pwm/pwm-atmel-tcb.c atcbpwm->duty != atcbpwm->period) && duty 360 drivers/pwm/pwm-atmel-tcb.c tcbpwm->duty = duty; duty 53 drivers/pwm/pwm-atmel.c u8 duty; duty 170 drivers/pwm/pwm-atmel.c atmel_pwm->data->regs.duty, cdty); duty 283 drivers/pwm/pwm-atmel.c .duty = PWMV1_CDTY, duty 297 drivers/pwm/pwm-atmel.c .duty = PWMV2_CDTY, duty 311 drivers/pwm/pwm-atmel.c .duty = PWMV1_CDTY, duty 122 drivers/pwm/pwm-bcm-iproc.c u32 value, period, duty; duty 144 drivers/pwm/pwm-bcm-iproc.c duty = div64_u64(value, div); duty 147 drivers/pwm/pwm-bcm-iproc.c duty < IPROC_PWM_DUTY_CYCLE_MIN) duty 151 drivers/pwm/pwm-bcm-iproc.c duty <= IPROC_PWM_DUTY_CYCLE_MAX) duty 169 drivers/pwm/pwm-bcm-iproc.c writel(duty, ip->base + IPROC_PWM_DUTY_CYCLE_OFFSET(pwm->hwpwm)); duty 44 drivers/pwm/pwm-berlin.c u32 duty; duty 95 drivers/pwm/pwm-berlin.c u32 value, duty, period; duty 113 drivers/pwm/pwm-berlin.c duty = cycles; duty 122 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, pwm_dev->hwpwm, duty, BERLIN_PWM_DUTY); duty 254 drivers/pwm/pwm-berlin.c channel->duty = berlin_pwm_readl(pwm, i, BERLIN_PWM_DUTY); duty 281 drivers/pwm/pwm-berlin.c berlin_pwm_writel(pwm, i, channel->duty, BERLIN_PWM_DUTY); duty 67 drivers/pwm/pwm-clps711x.c unsigned int duty; duty 72 drivers/pwm/pwm-clps711x.c duty = clps711x_get_duty(pwm, duty_ns); duty 73 drivers/pwm/pwm-clps711x.c clps711x_pwm_update_val(priv, pwm->hwpwm, duty); duty 81 drivers/pwm/pwm-clps711x.c unsigned int duty; duty 83 drivers/pwm/pwm-clps711x.c duty = clps711x_get_duty(pwm, pwm_get_duty_cycle(pwm)); duty 84 drivers/pwm/pwm-clps711x.c clps711x_pwm_update_val(priv, pwm->hwpwm, duty); duty 33 drivers/pwm/pwm-cros-ec.c static int cros_ec_pwm_set_duty(struct cros_ec_device *ec, u8 index, u16 duty) duty 49 drivers/pwm/pwm-cros-ec.c params->duty = duty; duty 87 drivers/pwm/pwm-cros-ec.c return resp->duty; duty 193 drivers/pwm/pwm-fsl-ftm.c unsigned long long duty; duty 198 drivers/pwm/pwm-fsl-ftm.c duty = (unsigned long long)duty_ns * period; duty 199 drivers/pwm/pwm-fsl-ftm.c do_div(duty, period_ns); duty 201 drivers/pwm/pwm-fsl-ftm.c return (unsigned int)duty; duty 232 drivers/pwm/pwm-fsl-ftm.c unsigned int duty; duty 283 drivers/pwm/pwm-fsl-ftm.c duty = fsl_pwm_calculate_duty(fpc, newstate->duty_cycle); duty 287 drivers/pwm/pwm-fsl-ftm.c regmap_write(fpc->regmap, FTM_CV(pwm->hwpwm), duty); duty 103 drivers/pwm/pwm-hibvt.c u32 freq, period, duty; duty 108 drivers/pwm/pwm-hibvt.c duty = div_u64(period * duty_cycle_ns, period_ns); duty 114 drivers/pwm/pwm-hibvt.c PWM_DUTY_MASK, duty); duty 95 drivers/pwm/pwm-img.c u32 val, div, duty, timebase; duty 129 drivers/pwm/pwm-img.c duty = DIV_ROUND_UP(timebase * duty_ns, period_ns); duty 141 drivers/pwm/pwm-img.c val = (duty << PWM_CH_CFG_DUTY_SHIFT) | duty 95 drivers/pwm/pwm-jz4740.c unsigned long period, duty; duty 113 drivers/pwm/pwm-jz4740.c duty = period - tmp; duty 115 drivers/pwm/pwm-jz4740.c if (duty >= period) duty 116 drivers/pwm/pwm-jz4740.c duty = period - 1; duty 121 drivers/pwm/pwm-jz4740.c jz4740_timer_set_duty(pwm->hwpwm, duty); duty 165 drivers/pwm/pwm-meson.c unsigned int duty, period, pre_div, cnt, duty_cnt; duty 168 drivers/pwm/pwm-meson.c duty = state->duty_cycle; duty 172 drivers/pwm/pwm-meson.c duty = period - duty; duty 197 drivers/pwm/pwm-meson.c if (duty == period) { duty 201 drivers/pwm/pwm-meson.c } else if (duty == 0) { duty 207 drivers/pwm/pwm-meson.c duty_cnt = div64_u64(fin_freq * (u64)duty, duty 215 drivers/pwm/pwm-meson.c duty, pre_div, duty_cnt); duty 250 drivers/pwm/pwm-pca9685.c unsigned long long duty; duty 323 drivers/pwm/pwm-pca9685.c duty = PCA9685_COUNTER_RANGE * (unsigned long long)duty_ns; duty 324 drivers/pwm/pwm-pca9685.c duty = DIV_ROUND_UP_ULL(duty, period_ns); duty 331 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, (int)duty & 0xff); duty 338 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, ((int)duty >> 8) & 0xf); duty 78 drivers/pwm/pwm-renesas-tpu.c u16 duty; duty 179 drivers/pwm/pwm-renesas-tpu.c tpu_pwm_write(pwm, TPU_TGRAn, pwm->duty); duty 183 drivers/pwm/pwm-renesas-tpu.c pwm->channel, pwm->duty, pwm->period); duty 227 drivers/pwm/pwm-renesas-tpu.c pwm->duty = 0; duty 254 drivers/pwm/pwm-renesas-tpu.c u32 duty; duty 276 drivers/pwm/pwm-renesas-tpu.c duty = clk_rate / prescalers[prescaler] duty 278 drivers/pwm/pwm-renesas-tpu.c if (duty > period) duty 281 drivers/pwm/pwm-renesas-tpu.c duty = 0; duty 286 drivers/pwm/pwm-renesas-tpu.c clk_rate, prescalers[prescaler], period, duty); duty 293 drivers/pwm/pwm-renesas-tpu.c pwm->duty = duty; duty 305 drivers/pwm/pwm-renesas-tpu.c tpu_pwm_write(pwm, TPU_TGRAn, pwm->duty); duty 307 drivers/pwm/pwm-renesas-tpu.c pwm->duty); duty 315 drivers/pwm/pwm-renesas-tpu.c if (duty == 0 || duty == period) { duty 320 drivers/pwm/pwm-renesas-tpu.c tpu_pwm_set_pin(pwm, duty ? TPU_PIN_ACTIVE : TPU_PIN_INACTIVE); duty 350 drivers/pwm/pwm-renesas-tpu.c if (pwm->duty == 0 || pwm->duty == pwm->period) { duty 351 drivers/pwm/pwm-renesas-tpu.c tpu_pwm_set_pin(pwm, pwm->duty ? duty 41 drivers/pwm/pwm-rockchip.c unsigned long duty; duty 81 drivers/pwm/pwm-rockchip.c tmp = readl_relaxed(pc->base + pc->data->regs.duty); duty 105 drivers/pwm/pwm-rockchip.c unsigned long period, duty; duty 121 drivers/pwm/pwm-rockchip.c duty = DIV_ROUND_CLOSEST_ULL(div, pc->data->prescaler * NSEC_PER_SEC); duty 134 drivers/pwm/pwm-rockchip.c writel(duty, pc->base + pc->data->regs.duty); duty 229 drivers/pwm/pwm-rockchip.c .duty = 0x04, duty 242 drivers/pwm/pwm-rockchip.c .duty = 0x08, duty 256 drivers/pwm/pwm-rockchip.c .duty = 0x08, duty 270 drivers/pwm/pwm-rockchip.c .duty = 0x08, duty 113 drivers/pwm/pwm-sifive.c u32 duty, val; duty 115 drivers/pwm/pwm-sifive.c duty = readl(ddata->regs + PWM_SIFIVE_PWMCMP0 + duty 118 drivers/pwm/pwm-sifive.c state->enabled = duty > 0; duty 126 drivers/pwm/pwm-sifive.c (u64)duty * ddata->real_period >> PWM_SIFIVE_CMPWIDTH; duty 74 drivers/pwm/pwm-sprd.c u32 val, duty, prescale; duty 109 drivers/pwm/pwm-sprd.c duty = val & SPRD_PWM_DUTY_MSK; duty 110 drivers/pwm/pwm-sprd.c tmp = (prescale + 1) * NSEC_PER_SEC * duty; duty 122 drivers/pwm/pwm-sprd.c u32 prescale, duty; duty 135 drivers/pwm/pwm-sprd.c duty = duty_ns * SPRD_PWM_MOD_MAX / period_ns; duty 153 drivers/pwm/pwm-sprd.c sprd_pwm_write(spc, pwm->hwpwm, SPRD_PWM_DUTY, duty); duty 173 drivers/pwm/pwm-stmpe.c unsigned long duty; duty 186 drivers/pwm/pwm-stmpe.c duty = duty_ns * 256; duty 187 drivers/pwm/pwm-stmpe.c duty = DIV_ROUND_CLOSEST(duty, period_ns); duty 188 drivers/pwm/pwm-stmpe.c value = duty; duty 223 drivers/pwm/pwm-sun4i.c u32 period, duty, val; duty 227 drivers/pwm/pwm-sun4i.c &duty, &period, &prescaler); duty 245 drivers/pwm/pwm-sun4i.c val = (duty & PWM_DTY_MASK) | PWM_PRD(period); duty 92 drivers/staging/greybus/pwm.c u8 which, u32 duty, u32 period) duty 102 drivers/staging/greybus/pwm.c request.duty = cpu_to_le32(duty); duty 171 drivers/video/backlight/lm3630a_bl.c unsigned int duty = br * period / br_max; duty 173 drivers/video/backlight/lm3630a_bl.c pwm_config(pchip->pwmd, duty, period); duty 174 drivers/video/backlight/lm3630a_bl.c if (duty) duty 237 drivers/video/backlight/lp855x_bl.c unsigned int duty = br * period / max_br; duty 255 drivers/video/backlight/lp855x_bl.c pwm_config(lp->pwm, duty, period); duty 256 drivers/video/backlight/lp855x_bl.c if (duty) duty 124 drivers/video/backlight/lp8788_bl.c unsigned int duty; duty 132 drivers/video/backlight/lp8788_bl.c duty = br * period / max_br; duty 152 drivers/video/backlight/lp8788_bl.c pwm_config(bl->pwm, duty, period); duty 153 drivers/video/backlight/lp8788_bl.c if (duty) duty 243 include/linux/clk-provider.h struct clk_duty *duty); duty 245 include/linux/clk-provider.h struct clk_duty *duty); duty 815 include/linux/greybus/greybus_protocols.h __le32 duty; duty 1751 include/linux/platform_data/cros_ec_commands.h uint16_t duty; /* Duty cycle, EC_PWM_MAX_DUTY = 100% */ duty 1764 include/linux/platform_data/cros_ec_commands.h uint16_t duty; /* Duty cycle, EC_PWM_MAX_DUTY = 100% */ duty 123 include/linux/pwm.h static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) duty 126 include/linux/pwm.h pwm->state.duty_cycle = duty; duty 189 include/trace/events/clk.h TP_PROTO(struct clk_core *core, struct clk_duty *duty), duty 191 include/trace/events/clk.h TP_ARGS(core, duty), duty 201 include/trace/events/clk.h __entry->num = duty->num; duty 202 include/trace/events/clk.h __entry->den = duty->den; duty 211 include/trace/events/clk.h TP_PROTO(struct clk_core *core, struct clk_duty *duty), duty 213 include/trace/events/clk.h TP_ARGS(core, duty) duty 218 include/trace/events/clk.h TP_PROTO(struct clk_core *core, struct clk_duty *duty), duty 220 include/trace/events/clk.h TP_ARGS(core, duty)