| /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/spi/ |
| H A D | spi-offload-trigger-pwm.c | 41 struct pwm_waveform wf = { }; in spi_offload_trigger_pwm_validate() local 50 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_validate() 52 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_validate() 53 wf.duty_offset_ns = periodic->offset_ns; in spi_offload_trigger_pwm_validate() 55 ret = pwm_round_waveform_might_sleep(st->pwm, &wf); in spi_offload_trigger_pwm_validate() 59 periodic->frequency_hz = DIV_ROUND_UP_ULL(NSEC_PER_SEC, wf.period_length_ns); in spi_offload_trigger_pwm_validate() 60 periodic->offset_ns = wf.duty_offset_ns; in spi_offload_trigger_pwm_validate() 70 struct pwm_waveform wf = { }; in spi_offload_trigger_pwm_enable() local 78 wf.period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, periodic->frequency_hz); in spi_offload_trigger_pwm_enable() 80 wf.duty_length_ns = wf.period_length_ns / 2; in spi_offload_trigger_pwm_enable() [all …]
|
| /linux/drivers/pwm/ |
| H A D | pwm-max7360.c | 57 const struct pwm_waveform *wf, in max7360_pwm_round_waveform_tohw() argument 69 if (wf->duty_length_ns >= MAX7360_PWM_PERIOD_NS) { in max7360_pwm_round_waveform_tohw() 72 duty_steps = (u32)wf->duty_length_ns * MAX7360_PWM_STEPS / MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_tohw() 78 wfhw->enabled = !!wf->period_length_ns; in max7360_pwm_round_waveform_tohw() 80 if (wf->period_length_ns && wf->period_length_ns < MAX7360_PWM_PERIOD_NS) in max7360_pwm_round_waveform_tohw() 87 const void *_wfhw, struct pwm_waveform *wf) in max7360_pwm_round_waveform_fromhw() argument 91 wf->period_length_ns = wfhw->enabled ? MAX7360_PWM_PERIOD_NS : 0; in max7360_pwm_round_waveform_fromhw() 92 wf->duty_offset_ns = 0; in max7360_pwm_round_waveform_fromhw() 96 wf->duty_length_ns = MAX7360_PWM_PERIOD_NS; in max7360_pwm_round_waveform_fromhw() 98 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-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-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 {
|
| /linux/drivers/hwmon/ |
| H A D | adt7470.c | 900 const struct pwm_waveform *wf, in adt7470_pwm_round_waveform_tohw() argument 907 if (wf->duty_length_ns == 0) { in adt7470_pwm_round_waveform_tohw() 922 if (actual_period > wf->period_length_ns) in adt7470_pwm_round_waveform_tohw() 926 if (wf->duty_length_ns >= actual_period) { in adt7470_pwm_round_waveform_tohw() 929 wfhw->val = mul_u64_u64_div_u64(wf->duty_length_ns, in adt7470_pwm_round_waveform_tohw() 940 struct pwm_waveform *wf) in adt7470_pwm_round_waveform_fromhw() argument 945 wf->period_length_ns = DIV_ROUND_UP_ULL(NSEC_PER_SEC, data->pwm_freq); in adt7470_pwm_round_waveform_fromhw() 946 wf->duty_offset_ns = 0; in adt7470_pwm_round_waveform_fromhw() 947 wf->duty_length_ns = DIV_ROUND_UP_ULL((u64)wfhw->val * wf->period_length_ns, in adt7470_pwm_round_waveform_fromhw()
|
| /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/drivers/gpu/drm/i915/display/ |
| H A D | intel_ddi.c | 1007 struct ref_tracker *wf; in main_link_aux_power_domain_put() local 1009 wf = fetch_and_zero(&dig_port->aux_wakeref); in main_link_aux_power_domain_put() 1010 if (!wf) in main_link_aux_power_domain_put() 1013 intel_display_power_put(display, domain, wf); in main_link_aux_power_domain_put()
|
| /linux/ |
| H A D | CREDITS | 2880 E: minyard@wf-rch.cirr.com
|