Home
last modified time | relevance | path

Searched refs:tx_left (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/net/ethernet/qualcomm/
H A Dqca_uart.c57 int tx_left; /* bytes left in XMIT queue */ member
140 if (qca->tx_left <= 0) { in qcauart_transmit()
151 qca->tx_left); in qcauart_transmit()
153 qca->tx_left -= written; in qcauart_transmit()
191 qca->tx_left = 0; in qcauart_netdev_close()
208 WARN_ON(qca->tx_left); in qcauart_netdev_xmit()
238 qca->tx_left = (pos - qca->tx_buffer) - written; in qcauart_netdev_xmit()
/openbmc/linux/drivers/spi/
H A Dspi-fsl-espi.c217 unsigned int tx_left; in fsl_espi_fill_tx_fifo() local
223 tx_left = espi->tx_t->len - espi->tx_pos; in fsl_espi_fill_tx_fifo()
225 while (tx_fifo_avail >= min(4U, tx_left) && tx_left) { in fsl_espi_fill_tx_fifo()
226 if (tx_left >= 4) { in fsl_espi_fill_tx_fifo()
236 tx_left -= 4; in fsl_espi_fill_tx_fifo()
238 } else if (tx_left >= 2 && tx_buf && espi->swab) { in fsl_espi_fill_tx_fifo()
242 tx_left -= 2; in fsl_espi_fill_tx_fifo()
251 tx_left -= 1; in fsl_espi_fill_tx_fifo()
256 if (!tx_left) { in fsl_espi_fill_tx_fifo()
H A Dspi-rockchip.c182 unsigned int tx_left; member
299 u32 words = min(rs->tx_left, tx_free); in rockchip_spi_pio_writer()
301 rs->tx_left -= words; in rockchip_spi_pio_writer()
363 if (rs->tx_left) in rockchip_spi_isr()
383 rs->tx_left = rs->tx ? xfer->len / rs->n_bytes : 0; in rockchip_spi_prepare_irq()
390 if (rs->tx_left) in rockchip_spi_prepare_irq()
H A Dspi-pic32.c163 u32 tx_left, tx_room, rxtx_gap; in pic32_tx_max() local
165 tx_left = (pic32s->tx_end - pic32s->tx) / n_bytes; in pic32_tx_max()
178 return min3(tx_left, tx_room, (u32)(pic32s->fifo_n_elm - rxtx_gap)); in pic32_tx_max()
H A Dspi-mtk-nor.c259 int tx_len, tx_left, prg_left; in mtk_nor_adj_prg_size() local
264 tx_left = MTK_NOR_REG_PRGDATA_MAX + 1 - tx_len; in mtk_nor_adj_prg_size()
265 if (op->data.nbytes > tx_left) in mtk_nor_adj_prg_size()
266 op->data.nbytes = tx_left; in mtk_nor_adj_prg_size()
/openbmc/u-boot/drivers/spi/
H A Dpic32_spi.c109 u32 tx_left, tx_room, rxtx_gap; in pic32_tx_max() local
111 tx_left = (priv->tx_end - priv->tx) / n_bytes; in pic32_tx_max()
116 return min3(tx_left, tx_room, (u32)(priv->fifo_n_word - rxtx_gap)); in pic32_tx_max()
H A Ddesignware_spi.c296 u32 tx_left, tx_room, rxtx_gap; in tx_max() local
298 tx_left = (priv->tx_end - priv->tx) / (priv->bits_per_word >> 3); in tx_max()
312 return min3(tx_left, tx_room, (u32)(priv->fifo_len - rxtx_gap)); in tx_max()
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet-main.c96 int tx_left = TX_RING_SIZE; in fs_enet_napi() local
105 while (((sc = CBDR_SC(bdp)) & BD_ENET_TX_READY) == 0 && tx_left) { in fs_enet_napi()
179 tx_left--; in fs_enet_napi()
301 if (received < budget && tx_left) { in fs_enet_napi()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dsil-sii8620.c639 int tx_left = ctx->burst.tx_count; in sii8620_burst_send() local
642 while (tx_left > 0) { in sii8620_burst_send()
651 tx_left -= len; in sii8620_burst_send()
655 ctx->burst.tx_count = tx_left; in sii8620_burst_send()
/openbmc/linux/drivers/net/ethernet/realtek/
H A D8139too.c1766 unsigned long dirty_tx, tx_left; in rtl8139_tx_interrupt() local
1772 tx_left = tp->cur_tx - dirty_tx; in rtl8139_tx_interrupt()
1773 while (tx_left > 0) { in rtl8139_tx_interrupt()
1813 tx_left--; in rtl8139_tx_interrupt()