/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 127 priv->tx_tail = 0; in moxart_mac_setup_desc_ring() 273 unsigned tx_tail = priv->tx_tail; in moxart_tx_finished() local 275 while (tx_tail != tx_head) { in moxart_tx_finished() 276 dma_unmap_single(&ndev->dev, priv->tx_mapping[tx_tail], in moxart_tx_finished() 277 priv->tx_len[tx_tail], DMA_TO_DEVICE); in moxart_tx_finished() 280 priv->stats.tx_bytes += priv->tx_skb[tx_tail]->len; in moxart_tx_finished() 282 dev_kfree_skb_irq(priv->tx_skb[tx_tail]); in moxart_tx_finished() 283 priv->tx_skb[tx_tail] = NULL; in moxart_tx_finished() 285 tx_tail = TX_NEXT(tx_tail); in moxart_tx_finished() 287 priv->tx_tail = tx_tail; in moxart_tx_finished()
|
D | moxart_ether.h | 320 unsigned int tx_tail; member
|
/drivers/net/ethernet/seeq/ |
D | ether3.c | 338 priv(dev)->tx_tail = 0; in ether3_init_for_open() 468 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout() 469 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail); in ether3_timeout() 476 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout() 508 if (priv(dev)->tx_tail == next_ptr) { in ether3_sendpacket() 541 if (priv(dev)->tx_tail == next_ptr) in ether3_sendpacket() 692 unsigned int tx_tail = priv(dev)->tx_tail; in ether3_tx() local 701 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600); in ether3_tx() 724 tx_tail = (tx_tail + 1) & 15; in ether3_tx() 727 if (priv(dev)->tx_tail != tx_tail) { in ether3_tx() [all …]
|
D | ether3.h | 165 unsigned char tx_tail; /* buffer nr of transmitting packet */ member
|
/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 185 unsigned int tx_tail ____cacheline_aligned_in_smp; 372 unsigned tx_tail = priv->tx_tail; in hip04_tx_reclaim() local 378 count = tx_count(ACCESS_ONCE(priv->tx_head), tx_tail); in hip04_tx_reclaim() 383 desc = &priv->tx_desc[tx_tail]; in hip04_tx_reclaim() 391 if (priv->tx_phys[tx_tail]) { in hip04_tx_reclaim() 392 dma_unmap_single(priv->dev, priv->tx_phys[tx_tail], in hip04_tx_reclaim() 393 priv->tx_skb[tx_tail]->len, in hip04_tx_reclaim() 395 priv->tx_phys[tx_tail] = 0; in hip04_tx_reclaim() 398 bytes_compl += priv->tx_skb[tx_tail]->len; in hip04_tx_reclaim() 399 dev_kfree_skb(priv->tx_skb[tx_tail]); in hip04_tx_reclaim() [all …]
|
/drivers/net/irda/ |
D | au1k_ir.c | 159 u32 tx_tail; member 310 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed() 422 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack() 423 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) { in au1k_tx_ack() 429 aup->tx_tail = (aup->tx_tail + 1) & (NUM_IR_DESC - 1); in au1k_tx_ack() 430 ptxd = aup->tx_ring[aup->tx_tail]; in au1k_tx_ack() 438 if (aup->tx_tail == aup->tx_head) { in au1k_tx_ack() 554 aup->tx_tail = 0; in au1k_init() 672 if (aup->tx_tail == aup->tx_head) { in au1k_irda_hard_xmit() 688 } else if (((aup->tx_head + 1) & (NUM_IR_DESC - 1)) == aup->tx_tail) { in au1k_irda_hard_xmit()
|
/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 102 (((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 509 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt() 545 unsigned tx_tail = de->tx_tail; in de_tx() local 547 while (tx_tail != tx_head) { in de_tx() 552 status = le32_to_cpu(de->tx_ring[tx_tail].opts1); in de_tx() 556 skb = de->tx_skb[tx_tail].skb; in de_tx() 562 pci_unmap_single(de->pdev, de->tx_skb[tx_tail].mapping, in de_tx() [all …]
|
/drivers/net/hamradio/ |
D | baycom_epp.c | 201 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state; enumerator 354 bc->ch_params.tx_tail = data[1]; in do_kiss_params() 355 PKP("TX tail = %ums", bc->ch_params.tx_tail); in do_kiss_params() 437 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) in transmit() 482 bc->hdlctx.state = tx_tail; in transmit() 483 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); in transmit() 495 case tx_tail: in transmit() 1019 hi.data.cp.tx_tail = bc->ch_params.tx_tail; in baycom_ioctl() 1029 bc->ch_params.tx_tail = hi.data.cp.tx_tail; in baycom_ioctl()
|
D | hdlcdrv.c | 250 s->ch_params.tx_tail = data[1]; in do_kiss_params() 251 PKP("TX tail = %ums", s->ch_params.tx_tail); in do_kiss_params() 304 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail); in hdlcdrv_transmitter() 519 bi.data.cp.tx_tail = s->ch_params.tx_tail; in hdlcdrv_ioctl() 529 s->ch_params.tx_tail = bi.data.cp.tx_tail; in hdlcdrv_ioctl()
|
D | dmascc.c | 213 int tx_head, tx_tail, tx_count; member 751 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open() 984 (int) priv->tx_buf[priv->tx_tail] + n); in tx_on() 986 priv->tx_len[priv->tx_tail] - n); in tx_on() 1003 priv->tx_buf[priv->tx_tail][i], 1); in tx_on() 1293 int i = priv->tx_tail, p = priv->tx_ptr; in tx_isr() 1330 i = priv->tx_tail; in es_isr() 1357 priv->tx_tail = (i + 1) % NUM_TX_BUF; in es_isr()
|
/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 116 (((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) 342 unsigned tx_tail; member 658 unsigned tx_tail = cp->tx_tail; in cp_tx() local 661 while (tx_tail != tx_head) { in cp_tx() 662 struct cp_desc *txd = cp->tx_ring + tx_tail; in cp_tx() 671 skb = cp->tx_skb[tx_tail]; in cp_tx() 675 cp->tx_opts[tx_tail] & 0xffff, in cp_tx() 697 "tx done, slot %d\n", tx_tail); in cp_tx() [all …]
|
/drivers/net/ethernet/silan/ |
D | sc92031.c | 282 unsigned tx_tail; member 411 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear() 412 priv->tx_tail++; in _sc92031_tx_clear() 415 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear() 657 old_tx_tail = priv->tx_tail; in _sc92031_tx_tasklet() 658 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet() 659 entry = priv->tx_tail % NUM_TX_DESC; in _sc92031_tx_tasklet() 665 priv->tx_tail++; in _sc92031_tx_tasklet() 691 if (priv->tx_tail != old_tx_tail) in _sc92031_tx_tasklet() 956 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit() [all …]
|
/drivers/net/can/ |
D | ti_hecc.c | 223 u32 tx_tail; member 235 return priv->tx_tail & HECC_TX_MB_MASK; in get_tx_tail_mb() 392 priv->tx_head = priv->tx_tail = HECC_TX_MASK; in ti_hecc_start() 503 priv->tx_head, priv->tx_tail); in ti_hecc_xmit() 777 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt() 792 --priv->tx_tail; in ti_hecc_interrupt() 796 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt() 798 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) && in ti_hecc_interrupt()
|
D | rcar_can.c | 97 u32 tx_tail; member 381 if (priv->tx_head - priv->tx_tail <= unsent) in rcar_can_tx_done() 384 stats->tx_bytes += priv->tx_dlc[priv->tx_tail % in rcar_can_tx_done() 386 priv->tx_dlc[priv->tx_tail % RCAR_CAN_FIFO_DEPTH] = 0; in rcar_can_tx_done() 387 can_get_echo_skb(ndev, priv->tx_tail % RCAR_CAN_FIFO_DEPTH); in rcar_can_tx_done() 388 priv->tx_tail++; in rcar_can_tx_done() 626 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH) in rcar_can_start_xmit()
|
D | xilinx_can.c | 140 unsigned int tx_tail; member 252 priv->tx_tail = 0; in set_reset_mode() 479 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit() 870 frames_in_fifo = priv->tx_head - priv->tx_tail; in xcan_tx_interrupt() 910 can_get_echo_skb(ndev, priv->tx_tail % in xcan_tx_interrupt() 912 priv->tx_tail++; in xcan_tx_interrupt()
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ib.c | 395 ++priv->tx_tail; in ipoib_ib_handle_tx_wc() 629 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { in __ipoib_reap_ah() 841 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop() 844 priv->tx_head - priv->tx_tail, recvs_pending(dev)); in ipoib_ib_dev_stop() 850 while ((int) priv->tx_tail - (int) priv->tx_head < 0) { in ipoib_ib_dev_stop() 851 tx_req = &priv->tx_ring[priv->tx_tail & in ipoib_ib_dev_stop() 855 ++priv->tx_tail; in ipoib_ib_dev_stop()
|
D | ipoib_cm.c | 799 ++tx->tx_tail; in ipoib_cm_handle_tx_wc() 1175 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy() 1183 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1186 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy() 1196 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1197 tx_req = &p->tx_ring[p->tx_tail & (ipoib_sendq_size - 1)]; in ipoib_cm_tx_destroy() 1200 ++p->tx_tail; in ipoib_cm_tx_destroy()
|
/drivers/net/ethernet/ti/ |
D | tlan.c | 1075 tail_list = priv->tx_list + priv->tx_tail; in tlan_start_tx() 1077 priv->tx_list_dma + sizeof(struct tlan_list)*priv->tx_tail; in tlan_start_tx() 1082 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx() 1106 priv->tx_tail); in tlan_start_tx() 1112 priv->tx_tail); in tlan_start_tx() 1113 if (priv->tx_tail == 0) { in tlan_start_tx() 1117 (priv->tx_list + (priv->tx_tail - 1))->forward in tlan_start_tx() 1123 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS); in tlan_start_tx() 1378 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() 1412 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() [all …]
|
/drivers/net/ethernet/i825xx/ |
D | ether1.c | 505 priv(dev)->tx_tail = TDR_ADDR; in ether1_init_for_open() 619 tail = priv(dev)->tx_tail; in ether1_txalloc() 749 caddr = priv(dev)->tx_tail; in ether1_xmit_done() 763 priv(dev)->tx_tail = NOP_ADDR; in ether1_xmit_done() 834 priv(dev)->tx_tail = caddr; in ether1_xmit_done()
|
D | ether1.h | 43 volatile unsigned int tx_tail; member
|
/drivers/net/ethernet/calxeda/ |
D | xgmac.c | 373 unsigned int tx_tail; member 411 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ) 779 priv->tx_tail = 0; in xgmac_dma_desc_rings_init() 878 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete() 879 unsigned int entry = priv->tx_tail; in xgmac_tx_complete() 888 priv->tx_head, priv->tx_tail); in xgmac_tx_complete() 904 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_tx_complete() 934 priv->tx_tail = 0; in xgmac_tx_timeout_work()
|
/drivers/staging/rdma/hfi1/ |
D | trace.h | 926 __field(u16, tx_tail) 934 __entry->tx_tail = sde->tx_tail; 949 __entry->tx_tail 966 __field(u16, tx_tail) 974 __entry->tx_tail = sde->tx_tail; 987 __entry->tx_tail
|
/drivers/net/ethernet/amd/ |
D | au1000_eth.h | 96 u32 tx_tail; member
|
D | au1000_eth.c | 766 aup->tx_tail = aup->tx_head; in au1000_init() 929 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack() 937 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); in au1000_tx_ack() 938 ptxd = aup->tx_dma_ring[aup->tx_tail]; in au1000_tx_ack()
|
/drivers/net/ethernet/cadence/ |
D | macb.c | 563 queue->tx_tail, queue->tx_head); in macb_tx_error_task() 589 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { in macb_tx_error_task() 643 queue->tx_tail = 0; in macb_tx_error_task() 674 for (tail = queue->tx_tail; tail != head; tail++) { in macb_tx_interrupt() 718 queue->tx_tail = tail; in macb_tx_interrupt() 720 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_interrupt() 1320 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, TX_RING_SIZE) < count) { in macb_start_xmit() 1324 queue->tx_head, queue->tx_tail); in macb_start_xmit() 1341 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, TX_RING_SIZE) < 1) in macb_start_xmit() 1518 queue->tx_tail = 0; in gem_init_rings() [all …]
|