Lines Matching refs:bufi
268 unsigned int bufi; member
1417 adc->bufi = 0; in stm32_adc_single_conv()
1563 adc->buffer[adc->bufi] = stm32_adc_readw(adc, regs->dr); in stm32_adc_isr()
1565 adc->bufi++; in stm32_adc_isr()
1566 if (adc->bufi >= adc->num_conv) { in stm32_adc_isr()
1703 if (i >= adc->bufi) in stm32_adc_dma_residue()
1704 size = i - adc->bufi; in stm32_adc_dma_residue()
1706 size = adc->rx_buf_sz + i - adc->bufi; in stm32_adc_dma_residue()
1729 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_dma_buffer_done()
1732 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi]; in stm32_adc_dma_buffer_done()
1737 adc->bufi += indio_dev->scan_bytes; in stm32_adc_dma_buffer_done()
1738 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_dma_buffer_done()
1739 adc->bufi = 0; in stm32_adc_dma_buffer_done()
1804 adc->bufi = 0; in stm32_adc_buffer_postenable()
1858 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_trigger_handler()
1861 adc->bufi = 0; in stm32_adc_trigger_handler()