| /linux/include/trace/events/ |
| H A D | pwm.h | 32 #define __field_pwmwf(wf) \ argument 33 __field(u64, wf ## _period_length_ns) \ 34 __field(u64, wf ## _duty_length_ns) \ 35 __field(u64, wf ## _duty_offset_ns) \ 37 #define fast_assign_pwmwf(wf) \ argument 38 __entry->wf ## _period_length_ns = wf->period_length_ns; \ 39 __entry->wf ## _duty_length_ns = wf->duty_length_ns; \ 40 __entry->wf ## _duty_offset_ns = wf->duty_offset_ns 42 #define printk_pwmwf_format(wf) \ argument 45 #define printk_pwmwf_formatargs(wf) \ argument [all …]
|
| /linux/drivers/pwm/ |
| H A D | core.c | 56 static bool pwm_wf_valid(const struct pwm_waveform *wf) in DEFINE_GUARD() 64 if (wf->period_length_ns > S64_MAX) in DEFINE_GUARD() 67 if (wf->duty_length_ns > wf->period_length_ns) in DEFINE_GUARD() 74 if (wf->duty_offset_ns && wf->duty_offset_ns >= wf->period_length_ns) in DEFINE_GUARD() 80 static void pwm_wf2state(const struct pwm_waveform *wf, struct pwm_state *state) in pwm_wf2state() argument 82 if (wf->period_length_ns) { in pwm_wf2state() 83 if (wf->duty_length_ns + wf->duty_offset_ns < wf->period_length_ns) in pwm_wf2state() 87 .period = wf->period_length_ns, in pwm_wf2state() 88 .duty_cycle = wf->duty_length_ns, in pwm_wf2state() 94 .period = wf->period_length_ns, in pwm_wf2state() [all …]
|
| H A D | pwm-max7360.c | 58 const struct pwm_waveform *wf, in max7360_pwm_round_waveform_tohw() argument 70 if (wf->duty_length_ns >= MAX7360_PWM_PERIOD_NS) { in max7360_pwm_round_waveform_tohw() 73 duty_steps = (u32)wf->duty_length_ns * MAX7360_PWM_STEPS / MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_tohw() 79 wfhw->enabled = !!wf->period_length_ns; in max7360_pwm_round_waveform_tohw() 81 if (wf->period_length_ns && wf->period_length_ns < MAX7360_PWM_PERIOD_NS) in max7360_pwm_round_waveform_tohw() 88 const void *_wfhw, struct pwm_waveform *wf) in max7360_pwm_round_waveform_fromhw() argument 92 wf->period_length_ns = wfhw->enabled ? MAX7360_PWM_PERIOD_NS : 0; in max7360_pwm_round_waveform_fromhw() 93 wf->duty_offset_ns = 0; in max7360_pwm_round_waveform_fromhw() 97 wf->duty_length_ns = MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_fromhw() 99 wf->duty_length_ns = DIV_ROUND_UP(wfhw->duty_steps * MAX7360_PWM_PERIOD_NS, in max7360_pwm_round_waveform_fromhw() [all …]
|
| H A D | pwm-argon-fan-hat.c | 23 const struct pwm_waveform *wf, in argon_fan_hat_round_waveform_tohw() argument 28 if (wf->duty_length_ns > ARGON40_FAN_HAT_PERIOD_NS) in argon_fan_hat_round_waveform_tohw() 31 *wfhw = mul_u64_u64_div_u64(wf->duty_length_ns, 100, ARGON40_FAN_HAT_PERIOD_NS); in argon_fan_hat_round_waveform_tohw() 39 struct pwm_waveform *wf) in argon_fan_hat_round_waveform_fromhw() argument 43 wf->period_length_ns = ARGON40_FAN_HAT_PERIOD_NS; in argon_fan_hat_round_waveform_fromhw() 44 wf->duty_length_ns = DIV64_U64_ROUND_UP(wf->period_length_ns * *wfhw, 100); in argon_fan_hat_round_waveform_fromhw() 45 wf->duty_offset_ns = 0; in argon_fan_hat_round_waveform_fromhw()
|
| H A D | pwm-axi-pwmgen.c | 73 const struct pwm_waveform *wf, in axi_pwmgen_round_waveform_tohw() argument 80 if (wf->period_length_ns == 0) { in axi_pwmgen_round_waveform_tohw() 89 mul_u64_u32_div(wf->period_length_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw() 106 mul_u64_u32_div(wf->duty_length_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw() 109 mul_u64_u32_div(wf->duty_offset_ns, ddata->clk_rate_hz, NSEC_PER_SEC), in axi_pwmgen_round_waveform_tohw() 115 pwm->hwpwm, wf->duty_length_ns, wf->period_length_ns, wf->duty_offset_ns, in axi_pwmgen_round_waveform_tohw() 122 const void *_wfhw, struct pwm_waveform *wf) in axi_pwmgen_round_waveform_fromhw() argument 127 wf->period_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->period_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw() 130 wf->duty_length_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_cycle_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw() 133 wf->duty_offset_ns = DIV64_U64_ROUND_UP((u64)wfhw->duty_offset_cnt * NSEC_PER_SEC, in axi_pwmgen_round_waveform_fromhw()
|
| /linux/kernel/ |
| H A D | watch_queue.c | 157 static bool filter_watch_notification(const struct watch_filter *wf, in filter_watch_notification() argument 166 if (!test_bit(n->type, wf->type_filter)) in filter_watch_notification() 169 for (i = 0; i < wf->nr_filters; i++) { in filter_watch_notification() 170 wt = &wf->filters[i]; in filter_watch_notification() 198 const struct watch_filter *wf; in __post_watch_notification() local 216 wf = rcu_dereference(wqueue->filter); in __post_watch_notification() 217 if (wf && !filter_watch_notification(wf, n)) in __post_watch_notification()
|
| /linux/arch/arm64/boot/dts/mediatek/ |
| H A D | mt7986b-rfb.dts | 142 wf_2g_5g_pins: wf-2g-5g-pins { 159 wf_dbdc_pins: wf-dbdc-pins {
|
| H A D | mt7986a-bananapi-bpi-r3.dts | 342 wf_2g_5g_pins: wf-2g-5g-pins { 359 wf_dbdc_pins: wf-dbdc-pins { 376 wf_led_pins: wf-led-pins {
|
| H A D | mt7986a-bananapi-bpi-r3-mini.dts | 394 wf_2g_5g_pins: wf-2g-5g-pins { 411 wf_dbdc_pins: wf-dbdc-pins { 428 wf_led_pins: wf-led-pins {
|
| H A D | mt7986a-rfb.dts | 215 wf_2g_5g_pins: wf-2g-5g-pins { 232 wf_dbdc_pins: wf-dbdc-pins {
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | huge_pages.c | 1833 intel_wakeref_t wf; in igt_shrink_thp() local 1870 wf = intel_runtime_pm_get(&i915->runtime_pm); /* active shrink */ in igt_shrink_thp() 1946 intel_runtime_pm_put(&i915->runtime_pm, wf); in igt_shrink_thp()
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sc7180-trogdor.dtsi | 191 pp1800_wf_cam: pp1800-wf-cam-regulator { 229 pp2800_wf_cam: pp2800-wf-cam-regulator { 1535 wf_cam_en: wf-cam-en-state {
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3588-orangepi-5.dtsi | 149 vcc3v3_wf: regulator-vcc3v3-wf {
|
| /linux/ |
| H A D | CREDITS | 2862 E: minyard@wf-rch.cirr.com
|