Searched refs:tx_tail (Results 1 - 25 of 29) sorted by relevance

12

/drivers/net/ethernet/moxa/
H A Dmoxart_ether.c127 priv->tx_tail = 0;
274 unsigned tx_tail = priv->tx_tail; local
276 while (tx_tail != tx_head) {
277 dma_unmap_single(&ndev->dev, priv->tx_mapping[tx_tail],
278 priv->tx_len[tx_tail], DMA_TO_DEVICE);
281 priv->stats.tx_bytes += priv->tx_skb[tx_tail]->len;
283 dev_kfree_skb_irq(priv->tx_skb[tx_tail]);
284 priv->tx_skb[tx_tail] = NULL;
286 tx_tail
[all...]
H A Dmoxart_ether.h320 unsigned int tx_tail; member in struct:moxart_mac_priv_t
/drivers/net/ethernet/amd/
H A Dau1000_eth.h96 u32 tx_tail; member in struct:au1000_private
H A Dau1000_eth.c767 aup->tx_tail = aup->tx_head;
930 ptxd = aup->tx_dma_ring[aup->tx_tail];
938 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1);
939 ptxd = aup->tx_dma_ring[aup->tx_tail];
/drivers/net/ethernet/seeq/
H A Dether3.c338 priv(dev)->tx_tail = 0;
468 priv(dev)->tx_head, priv(dev)->tx_tail);
469 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail);
476 priv(dev)->tx_head = priv(dev)->tx_tail = 0;
508 if (priv(dev)->tx_tail == next_ptr) {
541 if (priv(dev)->tx_tail == next_ptr)
692 unsigned int tx_tail = priv(dev)->tx_tail; local
701 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600);
724 tx_tail
[all...]
H A Dether3.h165 unsigned char tx_tail; /* buffer nr of transmitting packet */ member in struct:dev_priv
/drivers/net/irda/
H A Dau1k_ir.c160 u32 tx_tail; member in struct:au1k_private
313 aup->tx_head = aup->tx_tail = aup->rx_head = 0;
425 ptxd = aup->tx_ring[aup->tx_tail];
426 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) {
432 aup->tx_tail = (aup->tx_tail + 1) & (NUM_IR_DESC - 1);
433 ptxd = aup->tx_ring[aup->tx_tail];
441 if (aup->tx_tail == aup->tx_head) {
557 aup->tx_tail = 0;
675 if (aup->tx_tail
[all...]
/drivers/net/ethernet/silan/
H A Dsc92031.c282 unsigned tx_tail; member in struct:sc92031_priv
411 while (priv->tx_head - priv->tx_tail > 0) {
412 priv->tx_tail++;
415 priv->tx_head = priv->tx_tail = 0;
657 old_tx_tail = priv->tx_tail;
658 while (priv->tx_head - priv->tx_tail > 0) {
659 entry = priv->tx_tail % NUM_TX_DESC;
665 priv->tx_tail++;
691 if (priv->tx_tail != old_tx_tail)
956 BUG_ON(priv->tx_head - priv->tx_tail >
[all...]
/drivers/net/hamradio/
H A Dbaycom_epp.c201 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state; enumerator in enum:baycom_state::__anon4005::__anon4006
354 bc->ch_params.tx_tail = data[1];
355 PKP("TX tail = %ums", bc->ch_params.tx_tail);
437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT))
482 bc->hdlctx.state = tx_tail;
483 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail);
495 case tx_tail:
1016 hi.data.cp.tx_tail = bc->ch_params.tx_tail;
1026 bc->ch_params.tx_tail
[all...]
H A Dhdlcdrv.c250 s->ch_params.tx_tail = data[1];
251 PKP("TX tail = %ums", s->ch_params.tx_tail);
304 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail);
516 bi.data.cp.tx_tail = s->ch_params.tx_tail;
526 s->ch_params.tx_tail = bi.data.cp.tx_tail;
H A Ddmascc.c213 int tx_head, tx_tail, tx_count; member in struct:scc_priv
751 priv->tx_head = priv->tx_tail = priv->tx_count = 0;
981 (int) priv->tx_buf[priv->tx_tail] + n);
983 priv->tx_len[priv->tx_tail] - n);
1000 priv->tx_buf[priv->tx_tail][i], 1);
1290 int i = priv->tx_tail, p = priv->tx_ptr;
1327 i = priv->tx_tail;
1354 priv->tx_tail = (i + 1) % NUM_TX_BUF;
/drivers/net/ethernet/dec/tulip/
H A Dde2104x.c102 (((CP)->tx_tail <= (CP)->tx_head) ? \
103 (CP)->tx_tail + (DE_TX_RING_SIZE - 1) - (CP)->tx_head : \
104 (CP)->tx_tail - (CP)->tx_head - 1)
299 unsigned tx_tail; member in struct:de_private
509 de->rx_tail, de->tx_head, de->tx_tail);
545 unsigned tx_tail = de->tx_tail; local
547 while (tx_tail != tx_head) {
552 status = le32_to_cpu(de->tx_ring[tx_tail].opts1);
556 skb = de->tx_skb[tx_tail]
[all...]
/drivers/net/can/
H A Dti_hecc.c223 u32 tx_tail; member in struct:ti_hecc_priv
235 return priv->tx_tail & HECC_TX_MB_MASK;
392 priv->tx_head = priv->tx_tail = HECC_TX_MASK;
502 "BUG: TX mbx not ready tx_head=%08X, tx_tail=%08X\n",
503 priv->tx_head, priv->tx_tail);
776 while (priv->tx_tail - priv->tx_head > 0) {
791 --priv->tx_tail;
795 if (((priv->tx_head == priv->tx_tail) &&
797 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) &&
H A Drcar_can.c94 u32 tx_tail; member in struct:rcar_can_priv
378 if (priv->tx_head - priv->tx_tail <= unsent)
381 stats->tx_bytes += priv->tx_dlc[priv->tx_tail %
383 priv->tx_dlc[priv->tx_tail % RCAR_CAN_FIFO_DEPTH] = 0;
384 can_get_echo_skb(ndev, priv->tx_tail % RCAR_CAN_FIFO_DEPTH);
385 priv->tx_tail++;
621 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH)
H A Dxilinx_can.c121 * @tx_tail: Tx CAN packets successfully sended on the queue
135 unsigned int tx_tail; member in struct:xcan_priv
457 if ((priv->tx_head - priv->tx_tail) == priv->tx_max)
748 while ((priv->tx_head - priv->tx_tail > 0) &&
751 can_get_echo_skb(ndev, priv->tx_tail %
753 priv->tx_tail++;
/drivers/infiniband/ulp/ipoib/
H A Dipoib_ib.c403 ++priv->tx_tail;
639 if ((int) priv->tx_tail - (int) ah->last_send >= 0) {
834 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) {
837 priv->tx_head - priv->tx_tail, recvs_pending(dev));
843 while ((int) priv->tx_tail - (int) priv->tx_head < 0) {
844 tx_req = &priv->tx_ring[priv->tx_tail &
848 ++priv->tx_tail;
H A Dipoib_cm.c804 ++tx->tx_tail;
1177 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail);
1185 while ((int) p->tx_tail - (int) p->tx_head < 0) {
1188 p->tx_head - p->tx_tail);
1198 while ((int) p->tx_tail - (int) p->tx_head < 0) {
1199 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)];
1203 ++p->tx_tail;
H A Dipoib.h238 unsigned tx_tail; member in struct:ipoib_cm_tx
350 unsigned tx_tail; member in struct:ipoib_dev_priv
/drivers/net/ethernet/realtek/
H A D8139cp.c116 (((CP)->tx_tail <= (CP)->tx_head) ? \
117 (CP)->tx_tail + (CP_TX_RING_SIZE - 1) - (CP)->tx_head : \
118 (CP)->tx_tail - (CP)->tx_head - 1)
341 unsigned tx_tail; member in struct:cp_private
651 unsigned tx_tail = cp->tx_tail; local
654 while (tx_tail != tx_head) {
655 struct cp_desc *txd = cp->tx_ring + tx_tail;
664 skb = cp->tx_skb[tx_tail];
690 "tx done, slot %d\n", tx_tail);
[all...]
/drivers/net/ethernet/i825xx/
H A Dether1.h43 volatile unsigned int tx_tail; member in struct:ether1_priv
H A Dether1.c505 priv(dev)->tx_tail = TDR_ADDR;
619 tail = priv(dev)->tx_tail;
749 caddr = priv(dev)->tx_tail;
763 priv(dev)->tx_tail = NOP_ADDR;
834 priv(dev)->tx_tail = caddr;
/drivers/net/ethernet/cadence/
H A Dmacb.c499 bp->tx_tail, bp->tx_head);
518 for (tail = bp->tx_tail; tail != bp->tx_head; tail++) {
567 bp->tx_head = bp->tx_tail = 0;
593 for (tail = bp->tx_tail; tail != head; tail++) {
637 bp->tx_tail = tail;
639 && CIRC_CNT(bp->tx_head, bp->tx_tail,
1217 if (CIRC_SPACE(bp->tx_head, bp->tx_tail, TX_RING_SIZE) < count) {
1220 netdev_dbg(bp->dev, "tx_head = %u, tx_tail = %u\n",
1221 bp->tx_head, bp->tx_tail);
1238 if (CIRC_SPACE(bp->tx_head, bp->tx_tail, TX_RING_SIZ
[all...]
H A Dmacb.h610 unsigned int tx_head, tx_tail; member in struct:macb
/drivers/net/ethernet/ti/
H A Dtlan.c1077 tail_list = priv->tx_list + priv->tx_tail;
1079 priv->tx_list_dma + sizeof(struct tlan_list)*priv->tx_tail;
1084 dev->name, priv->tx_head, priv->tx_tail);
1108 priv->tx_tail);
1114 priv->tx_tail);
1115 if (priv->tx_tail == 0) {
1119 (priv->tx_list + (priv->tx_tail - 1))->forward
1125 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS);
1380 priv->tx_head, priv->tx_tail);
1414 priv->tx_head, priv->tx_tail);
[all...]
/drivers/net/ethernet/calxeda/
H A Dxgmac.c373 unsigned int tx_tail; member in struct:xgmac_priv
411 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ)
779 priv->tx_tail = 0;
878 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) {
879 unsigned int entry = priv->tx_tail;
888 priv->tx_head, priv->tx_tail);
904 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ);
907 /* Ensure tx_tail is visible to xgmac_xmit */
934 priv->tx_tail = 0;

Completed in 334 milliseconds

12