Lines Matching refs:capture
46 struct pwm_renesas_ra_capture_data capture; member
248 if (data->capture.is_busy) { in pwm_renesas_ra_configure_capture()
254 data->capture.is_pulse_capture = false; in pwm_renesas_ra_configure_capture()
271 data->capture.is_pulse_capture = true; in pwm_renesas_ra_configure_capture()
296 data->capture.callback = cb; in pwm_renesas_ra_configure_capture()
297 data->capture.user_data = user_data; in pwm_renesas_ra_configure_capture()
298 data->capture.continuous = flags & PWM_CAPTURE_MODE_CONTINUOUS; in pwm_renesas_ra_configure_capture()
300 if (data->capture.continuous) { in pwm_renesas_ra_configure_capture()
321 if (data->capture.is_busy) { in pwm_renesas_ra_enable_capture()
326 if (!data->capture.callback) { in pwm_renesas_ra_enable_capture()
331 data->capture.is_busy = true; in pwm_renesas_ra_enable_capture()
358 data->capture.is_busy = false; in pwm_renesas_ra_disable_capture()
411 if (p_args->capture != 0U) { in fsp_callback()
412 if (data->capture.is_pulse_capture == true) { in fsp_callback()
413 data->capture.pulse = in fsp_callback()
414 (data->capture.overflows * period) + p_args->capture; in fsp_callback()
415 data->capture.callback(dev, GPT_IO_PIN_GTIOCA, 0, in fsp_callback()
416 data->capture.pulse, 0, in fsp_callback()
417 data->capture.user_data); in fsp_callback()
419 data->capture.period = in fsp_callback()
420 (data->capture.overflows * period) + p_args->capture; in fsp_callback()
421 data->capture.callback(dev, GPT_IO_PIN_GTIOCA, data->capture.period, in fsp_callback()
422 0, 0, data->capture.user_data); in fsp_callback()
424 data->capture.overflows = 0U; in fsp_callback()
426 if (data->capture.continuous == false) { in fsp_callback()
431 data->capture.overflows++; in fsp_callback()
433 data->capture.callback(dev, GPT_IO_PIN_GTIOCA, 0, 0, -ECANCELED, in fsp_callback()
434 data->capture.user_data); in fsp_callback()