Home
last modified time | relevance | path

Searched refs:rx_left (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/spi/
Dspi-fsl-espi.c278 unsigned int rx_left; in fsl_espi_read_rx_fifo() local
282 rx_left = espi->rx_t->len - espi->rx_pos; in fsl_espi_read_rx_fifo()
284 while (rx_fifo_avail >= min(4U, rx_left) && rx_left) { in fsl_espi_read_rx_fifo()
285 if (rx_left >= 4) { in fsl_espi_read_rx_fifo()
293 rx_left -= 4; in fsl_espi_read_rx_fifo()
295 } else if (rx_left >= 2 && rx_buf && espi->swab) { in fsl_espi_read_rx_fifo()
300 rx_left -= 2; in fsl_espi_read_rx_fifo()
308 rx_left -= 1; in fsl_espi_read_rx_fifo()
313 if (!rx_left) { in fsl_espi_read_rx_fifo()
Dspi-dw.c175 u32 rx_left = (dws->rx_end - dws->rx) / dws->n_bytes; in rx_max() local
177 return min_t(u32, rx_left, dw_readl(dws, DW_SPI_RXFLR)); in rx_max()
Dspi-pic32.c192 u32 rx_left = (pic32s->rx_end - pic32s->rx) / n_bytes; in pic32_rx_max() local
194 return min_t(u32, rx_left, pic32_rx_fifo_level(pic32s)); in pic32_rx_max()
Dspi-rockchip.c268 u32 rx_left = (rs->rx_end - rs->rx) / rs->n_bytes; in rx_max() local
271 return min(rx_left, rx_room); in rx_max()
/Linux-v4.19/drivers/net/ethernet/sis/
Dsis190.c578 u32 rx_left, cur_rx = tp->cur_rx; in sis190_rx_interrupt() local
581 rx_left = NUM_RX_DESC + tp->dirty_rx - cur_rx; in sis190_rx_interrupt()
582 rx_left = sis190_rx_quota(rx_left, (u32) dev->quota); in sis190_rx_interrupt()
584 for (; rx_left > 0; rx_left--, cur_rx++) { in sis190_rx_interrupt()
/Linux-v4.19/drivers/net/ethernet/realtek/
Dr8169.c6373 unsigned int cur_rx, rx_left; in rtl_rx() local
6378 for (rx_left = min(budget, NUM_RX_DESC); rx_left > 0; rx_left--, cur_rx++) { in rtl_rx()