Lines Matching refs:bufi
199 unsigned int bufi; member
1075 adc->bufi = 0; in stm32_adc_single_conv()
1175 adc->buffer[adc->bufi] = stm32_adc_readw(adc, regs->dr); in stm32_adc_isr()
1177 adc->bufi++; in stm32_adc_isr()
1178 if (adc->bufi >= adc->num_conv) { in stm32_adc_isr()
1297 if (i >= adc->bufi) in stm32_adc_dma_residue()
1298 size = i - adc->bufi; in stm32_adc_dma_residue()
1300 size = adc->rx_buf_sz + i - adc->bufi; in stm32_adc_dma_residue()
1323 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_dma_buffer_done()
1326 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi]; in stm32_adc_dma_buffer_done()
1331 adc->bufi += indio_dev->scan_bytes; in stm32_adc_dma_buffer_done()
1332 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_dma_buffer_done()
1333 adc->bufi = 0; in stm32_adc_dma_buffer_done()
1403 adc->bufi = 0; in stm32_adc_buffer_postenable()
1460 dev_dbg(&indio_dev->dev, "%s bufi=%d\n", __func__, adc->bufi); in stm32_adc_trigger_handler()
1464 adc->bufi = 0; in stm32_adc_trigger_handler()
1471 u16 *buffer = (u16 *)&adc->rx_buf[adc->bufi]; in stm32_adc_trigger_handler()
1476 adc->bufi += indio_dev->scan_bytes; in stm32_adc_trigger_handler()
1477 if (adc->bufi >= adc->rx_buf_sz) in stm32_adc_trigger_handler()
1478 adc->bufi = 0; in stm32_adc_trigger_handler()