Lines Matching refs:bufi
207 unsigned int bufi; member
1163 adc->bufi = 0; in stm32_adc_single_conv()
1316 adc->buffer[adc->bufi] = stm32_adc_readw(adc, regs->dr); in stm32_adc_isr()
1318 adc->bufi++; in stm32_adc_isr()
1319 if (adc->bufi >= adc->num_conv) { in stm32_adc_isr()
1460 if (i >= adc->bufi) in stm32_adc_dma_residue()
1461 size = i - adc->bufi; in stm32_adc_dma_residue()
1463 size = adc->rx_buf_sz + i - adc->bufi; in stm32_adc_dma_residue()
1486 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_dma_buffer_done()
1489 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi]; in stm32_adc_dma_buffer_done()
1494 adc->bufi += indio_dev->scan_bytes; in stm32_adc_dma_buffer_done()
1495 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_dma_buffer_done()
1496 adc->bufi = 0; in stm32_adc_dma_buffer_done()
1563 adc->bufi = 0; in stm32_adc_buffer_postenable()
1617 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_trigger_handler()
1621 adc->bufi = 0; in stm32_adc_trigger_handler()
1628 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi]; in stm32_adc_trigger_handler()
1633 adc->bufi += indio_dev->scan_bytes; in stm32_adc_trigger_handler()
1634 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_trigger_handler()
1635 adc->bufi = 0; in stm32_adc_trigger_handler()