Lines Matching refs:capture

57 	struct pwm_nxp_s32_capture_data capture[EMIOS_ICU_IP_NUM_OF_CHANNELS];  member
287 data->capture[channel].continuous = (flags & PWM_CAPTURE_MODE_MASK); in pwm_nxp_s32_capture_configure()
288 data->capture[channel].inverted = (flags & PWM_POLARITY_MASK); in pwm_nxp_s32_capture_configure()
289 data->capture[channel].pulse_capture = (flags & PWM_CAPTURE_TYPE_PULSE); in pwm_nxp_s32_capture_configure()
290 data->capture[channel].period_capture = (flags & PWM_CAPTURE_TYPE_PERIOD); in pwm_nxp_s32_capture_configure()
291 data->capture[channel].callback = cb; in pwm_nxp_s32_capture_configure()
292 data->capture[channel].user_data = user_data; in pwm_nxp_s32_capture_configure()
316 if (!data->capture[channel].callback) { in pwm_nxp_s32_capture_enable()
328 if (data->capture[channel].period_capture && !data->capture[channel].pulse_capture) { in pwm_nxp_s32_capture_enable()
341 data->capture[channel].edge_buff, in pwm_nxp_s32_capture_enable()
490 if (data->capture[channel].period_capture && !data->capture[channel].pulse_capture) { in pwm_nxp_s32_capture_callback()
491 period = pwm_nxp_s32_capture_calc(data->capture[channel].edge_buff[0], in pwm_nxp_s32_capture_callback()
492 data->capture[channel].edge_buff[1]); in pwm_nxp_s32_capture_callback()
494 if (data->capture[channel].pulse_capture) { in pwm_nxp_s32_capture_callback()
495 pulse = pwm_nxp_s32_pulse_calc(data->capture[channel].inverted, in pwm_nxp_s32_capture_callback()
496 data->capture[channel].edge_buff, in pwm_nxp_s32_capture_callback()
501 if (data->capture[channel].period_capture) { in pwm_nxp_s32_capture_callback()
502 period = pwm_nxp_s32_capture_calc(data->capture[channel].edge_buff[0], in pwm_nxp_s32_capture_callback()
503 data->capture[channel].edge_buff[2]); in pwm_nxp_s32_capture_callback()
507 if (!data->capture[channel].continuous) { in pwm_nxp_s32_capture_callback()
511 data->capture[channel].callback(dev, channel, period, pulse, 0, in pwm_nxp_s32_capture_callback()
512 data->capture[channel].user_data); in pwm_nxp_s32_capture_callback()