Lines Matching refs:m_data

98 static struct driver_data m_data = {  variable
99 ADC_CONTEXT_INIT_TIMER(m_data, ctx),
100 ADC_CONTEXT_INIT_LOCK(m_data, ctx),
101 ADC_CONTEXT_INIT_SYNC(m_data, ctx),
274 m_data.single_ended_channels &= ~BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
277 m_data.single_ended_channels |= BIT(channel_cfg->channel_id); in adc_nrfx_channel_setup()
301 m_data.positive_inputs[channel_id] = channel_cfg->input_positive; in adc_nrfx_channel_setup()
336 m_data.user_buffer = (uint8_t *)m_data.user_buffer + in adc_context_update_buffer_pointer()
445 return sequence->channels & m_data.single_ended_channels; in has_single_ended()
452 uint8_t single_ended_channels = m_data.single_ended_channels; in correct_single_ended()
497 if (m_data.positive_inputs[channel_id] == 0U) { in start_read()
512 if ((m_data.single_ended_channels & BIT(channel_id)) && in start_read()
535 saadc_psels[m_data.positive_inputs[channel_id]] in start_read()
537 m_data.positive_inputs[channel_id] in start_read()
569 m_data.user_buffer = sequence->buffer; in start_read()
570 m_data.active_channels = active_channels; in start_read()
573 (nrf_saadc_value_t *)m_data.samples_buffer, in start_read()
581 adc_context_start_read(&m_data.ctx, sequence); in start_read()
583 return adc_context_wait_for_completion(&m_data.ctx); in start_read()
592 adc_context_lock(&m_data.ctx, false, NULL); in adc_nrfx_read()
594 adc_context_release(&m_data.ctx, error); in adc_nrfx_read()
607 adc_context_lock(&m_data.ctx, true, async); in adc_nrfx_read_async()
609 adc_context_release(&m_data.ctx, error); in adc_nrfx_read_async()
623 if (has_single_ended(&m_data.ctx.sequence)) { in saadc_irq_handler()
624 correct_single_ended(&m_data.ctx.sequence); in saadc_irq_handler()
628 memcpy(m_data.user_buffer, m_data.samples_buffer, in saadc_irq_handler()
629 samples_to_bytes(&m_data.ctx.sequence, m_data.active_channels)); in saadc_irq_handler()
632 adc_context_on_sampling_done(&m_data.ctx, dev); in saadc_irq_handler()
659 adc_context_unlock_unconditionally(&m_data.ctx); in init_saadc()