Lines Matching refs:pwm_waveform
26 /// Mirrors struct [`struct pwm_waveform`](srctree/include/linux/pwm.h).
46 impl From<bindings::pwm_waveform> for Waveform {
47 fn from(wf: bindings::pwm_waveform) -> Self {
56 impl From<Waveform> for bindings::pwm_waveform {
58 bindings::pwm_waveform {
127 let c_wf = bindings::pwm_waveform::from(*wf);
130 // `&c_wf` is a valid pointer to a `pwm_waveform` struct. The C function
138 let mut c_wf = bindings::pwm_waveform::from(*wf);
141 // `&mut c_wf` is a valid pointer to a mutable `pwm_waveform` struct that
158 let mut c_wf = bindings::pwm_waveform::default();
161 // to a stack-allocated `pwm_waveform` struct for the kernel to fill.
365 wf_ptr: *const bindings::pwm_waveform,
396 wf_ptr: *mut bindings::pwm_waveform,