/linux/drivers/regulator/ |
H A D | pwm-regulator.c | 48 unsigned int dutycycle; member 58 unsigned int dutycycle; in pwm_regulator_init_state() local 62 dutycycle = pwm_get_relative_duty_cycle(&pwm_state, 100); in pwm_regulator_init_state() 65 if (dutycycle == drvdata->duty_cycle_table[i].dutycycle) { in pwm_regulator_init_state() 91 drvdata->duty_cycle_table[selector].dutycycle, 100); in pwm_regulator_set_voltage_sel() 203 unsigned int dutycycle; in pwm_regulator_set_voltage() local 218 dutycycle = DIV_ROUND_CLOSEST_ULL((u64)(req_min_uV - min_uV) * in pwm_regulator_set_voltage() 223 dutycycle = min_uV_duty - dutycycle; in pwm_regulator_set_voltage() 225 dutycycle = min_uV_duty + dutycycle; in pwm_regulator_set_voltage() 227 pwm_set_relative_duty_cycle(&pstate, dutycycle, duty_unit); in pwm_regulator_set_voltage()
|
/linux/arch/arm64/boot/dts/amlogic/ |
H A D | meson-g12b-khadas-vim3.dtsi | 24 pwm-dutycycle-range = <100 0>; 43 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-bananapi-cm4.dtsi | 101 pwm-dutycycle-range = <100 0>; 120 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-odroid.dtsi | 149 pwm-dutycycle-range = <100 0>; 168 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-w400.dtsi | 102 pwm-dutycycle-range = <100 0>; 121 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-a311d-libretech-cc.dts | 26 pwm-dutycycle-range = <100 0>;
|
H A D | meson-sm1-khadas-vim3l.dts | 30 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-bananapi.dtsi | 142 pwm-dutycycle-range = <100 0>; 154 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12b-radxa-zero2.dts | 145 pwm-dutycycle-range = <100 0>; 164 pwm-dutycycle-range = <100 0>;
|
H A D | meson-s4-s805x2-aq222.dts | 89 pwm-dutycycle-range = <100 0>;
|
H A D | meson-sm1-ac2xx.dtsi | 102 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12a-radxa-zero.dts | 126 pwm-dutycycle-range = <100 0>;
|
H A D | meson-sm1-bananapi.dtsi | 161 pwm-dutycycle-range = <100 0>;
|
H A D | meson-sm1-odroid.dtsi | 122 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12a-x96-max.dts | 143 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12a-fbx8am.dts | 137 pwm-dutycycle-range = <100 0>;
|
H A D | meson-g12a-sei510.dts | 144 pwm-dutycycle-range = <100 0>;
|
H A D | meson-libretech-cottonwood.dtsi | 171 pwm-dutycycle-range = <100 0>;
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3568-mecsbc.dts | 47 pwm-dutycycle-range = <0 100>; /* dutycycle inverted 0% => 0.915V */ 88 pwm-dutycycle-range = <0 100>; /* dutycycle inverted 0% => 0.915V */
|
H A D | rk3399-gru.dtsi | 110 pwm-dutycycle-range = <100 0>; 111 pwm-dutycycle-unit = <100>; 139 pwm-dutycycle-range = <100 0>; 140 pwm-dutycycle-unit = <100>; 168 pwm-dutycycle-range = <100 0>; 169 pwm-dutycycle-unit = <100>;
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | axentia,tse850-pcm5142.txt | 73 pwm-dutycycle-unit = <1000>; 74 pwm-dutycycle-range = <100 1000>;
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-tse850-3.dts | 40 pwm-dutycycle-unit = <1000>; 41 pwm-dutycycle-range = <100 1000>;
|
/linux/arch/arm/boot/dts/amlogic/ |
H A D | meson8b-ec100.dts | 182 pwm-dutycycle-range = <100 0>; 266 pwm-dutycycle-range = <100 0>;
|
/linux/drivers/hwmon/ |
H A D | corsair-psu.c | 153 static int corsairpsu_dutycycle_to_pwm(const long dutycycle) in corsairpsu_dutycycle_to_pwm() argument 157 return (result * dutycycle) >> 16; in corsairpsu_dutycycle_to_pwm()
|
/linux/drivers/pwm/ |
H A D | core.c | 811 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config() local 813 do_div(dutycycle, state.period); in pwm_adjust_config() 814 state.duty_cycle = dutycycle; in pwm_adjust_config()
|