/Linux-v4.19/drivers/net/ethernet/moxa/ |
D | moxart_ether.c | 137 priv->tx_head = 0; in moxart_mac_setup_desc_ring() 285 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space() 291 unsigned int tx_head = priv->tx_head; in moxart_tx_finished() local 294 while (tx_tail != tx_head) { in moxart_tx_finished() 337 unsigned int tx_head; in moxart_mac_start_xmit() local 343 tx_head = priv->tx_head; in moxart_mac_start_xmit() 344 desc = priv->tx_desc_base + (TX_REG_DESC_SIZE * tx_head); in moxart_mac_start_xmit() 358 priv->tx_mapping[tx_head] = dma_map_single(&ndev->dev, skb->data, in moxart_mac_start_xmit() 360 if (dma_mapping_error(&ndev->dev, priv->tx_mapping[tx_head])) { in moxart_mac_start_xmit() 365 priv->tx_len[tx_head] = len; in moxart_mac_start_xmit() [all …]
|
/Linux-v4.19/drivers/net/ethernet/amd/ |
D | sun3lance.c | 142 struct lance_tx_head tx_head[TX_RING_SIZE]; member 398 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe() 400 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe() 404 (dvma_vtob(MEM->tx_head)))); in lance_probe() 465 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring() 466 MEM->tx_head[i].flag = 0; in lance_init_ring() 467 MEM->tx_head[i].base_hi = in lance_init_ring() 469 MEM->tx_head[i].length = 0; in lance_init_ring() 470 MEM->tx_head[i].misc = 0; in lance_init_ring() 496 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring() [all …]
|
D | atarilance.c | 157 struct lance_tx_head tx_head[TX_RING_SIZE]; member 619 MEM->init.tx_ring.adr_lo = offsetof( struct lance_memory, tx_head ); in lance_probe1() 706 MEM->tx_head[i].base = offset; in lance_init_ring() 707 MEM->tx_head[i].flag = TMD1_OWN_HOST; in lance_init_ring() 708 MEM->tx_head[i].base_hi = 0; in lance_init_ring() 709 MEM->tx_head[i].length = 0; in lance_init_ring() 710 MEM->tx_head[i].misc = 0; in lance_init_ring() 757 i, MEM->tx_head[i].base, in lance_tx_timeout() 758 -MEM->tx_head[i].length, in lance_tx_timeout() 759 MEM->tx_head[i].misc )); in lance_tx_timeout() [all …]
|
D | au1000_eth.h | 95 u32 tx_head; member
|
D | au1000_eth.c | 737 aup->tx_head = (aup->tx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init() 738 aup->tx_tail = aup->tx_head; in au1000_init() 1004 skb->data, aup->tx_head); in au1000_tx() 1006 ptxd = aup->tx_dma_ring[aup->tx_head]; in au1000_tx() 1023 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx() 1039 aup->tx_head = (aup->tx_head + 1) & (NUM_TX_DMA - 1); in au1000_tx()
|
/Linux-v4.19/drivers/infiniband/hw/hfi1/ |
D | iowait.h | 104 struct list_head tx_head; member 157 INIT_LIST_HEAD(&wait->tx_head); in iowait_init() 302 if (!list_empty(&wait->tx_head)) { in iowait_get_txhead() 304 &wait->tx_head, in iowait_get_txhead() 380 return !list_empty(&wait->tx_head); in iowait_packet_queued()
|
D | trace_tx.h | 403 __field(u16, tx_head) 410 __entry->tx_head = sde->tx_head; 423 __entry->tx_head, 439 __field(u16, tx_head) 446 __entry->tx_head = sde->tx_head; 457 __entry->tx_head,
|
/Linux-v4.19/drivers/staging/vt6656/ |
D | rxtx.c | 588 union vnt_tx_head *tx_head, bool need_mic) in vnt_rxtx_rts() argument 591 struct vnt_rrv_time_rts *buf = &tx_head->tx_rts.rts; in vnt_rxtx_rts() 592 union vnt_tx_data_head *head = &tx_head->tx_rts.tx.head; in vnt_rxtx_rts() 611 head = &tx_head->tx_rts.tx.mic.head; in vnt_rxtx_rts() 620 union vnt_tx_head *tx_head, bool need_mic) in vnt_rxtx_cts() argument 623 struct vnt_rrv_time_cts *buf = &tx_head->tx_cts.cts; in vnt_rxtx_cts() 624 union vnt_tx_data_head *head = &tx_head->tx_cts.tx.head; in vnt_rxtx_cts() 638 head = &tx_head->tx_cts.tx.mic.head; in vnt_rxtx_cts() 648 union vnt_tx_head *tx_head, bool need_rts, bool need_mic) in vnt_rxtx_ab() argument 651 struct vnt_rrv_time_ab *buf = &tx_head->tx_ab.ab; in vnt_rxtx_ab() [all …]
|
/Linux-v4.19/drivers/net/ethernet/i825xx/ |
D | ether1.c | 505 priv(dev)->tx_head = NOP_ADDR + NOP_SIZE; in ether1_init_for_open() 622 if (priv(dev)->tx_head + size > TX_AREA_END) { in ether1_txalloc() 623 if (tail > priv(dev)->tx_head) in ether1_txalloc() 628 priv(dev)->tx_head = start + size; in ether1_txalloc() 630 if (priv(dev)->tx_head < tail && (priv(dev)->tx_head + size) > tail) in ether1_txalloc() 632 start = priv(dev)->tx_head; in ether1_txalloc() 633 priv(dev)->tx_head += size; in ether1_txalloc() 732 tmp = priv(dev)->tx_head; in ether1_sendpacket() 734 priv(dev)->tx_head = tmp; in ether1_sendpacket() 837 caddr = priv(dev)->tx_head; in ether1_xmit_done() [all …]
|
/Linux-v4.19/drivers/net/ethernet/hisilicon/ |
D | hip04_eth.c | 166 unsigned int tx_head; member 376 count = tx_count(READ_ONCE(priv->tx_head), tx_tail); in hip04_tx_reclaim() 429 unsigned int tx_head = priv->tx_head, count; in hip04_mac_start_xmit() local 430 struct tx_desc *desc = &priv->tx_desc[tx_head]; in hip04_mac_start_xmit() 434 count = tx_count(tx_head, READ_ONCE(priv->tx_tail)); in hip04_mac_start_xmit() 446 priv->tx_skb[tx_head] = skb; in hip04_mac_start_xmit() 447 priv->tx_phys[tx_head] = phys; in hip04_mac_start_xmit() 451 phys = priv->tx_desc_dma + tx_head * sizeof(struct tx_desc); in hip04_mac_start_xmit() 456 priv->tx_head = TX_NEXT(tx_head); in hip04_mac_start_xmit() 636 priv->tx_head = 0; in hip04_mac_open()
|
/Linux-v4.19/drivers/net/can/ |
D | ti_hecc.c | 204 u32 tx_head; member 212 return priv->tx_head & HECC_TX_MB_MASK; in get_tx_head_mb() 222 return (priv->tx_head >> HECC_TX_PRIO_SHIFT) & MAX_TX_PRIO; in get_tx_head_prio() 377 priv->tx_head = priv->tx_tail = HECC_TX_MASK; in ti_hecc_start() 488 priv->tx_head, priv->tx_tail); in ti_hecc_xmit() 514 --priv->tx_head; in ti_hecc_xmit() 516 (priv->tx_head & HECC_TX_MASK) == HECC_TX_MASK) { in ti_hecc_xmit() 762 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt() 781 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt() 782 ((priv->tx_head & HECC_TX_MASK) != HECC_TX_MASK)) || in ti_hecc_interrupt() [all …]
|
D | xilinx_can.c | 184 unsigned int tx_head; member 321 priv->tx_head = 0; in set_reset_mode() 552 can_put_echo_skb(skb, ndev, priv->tx_head % priv->tx_max); in xcan_start_xmit_fifo() 556 priv->tx_head++; in xcan_start_xmit_fifo() 565 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit_fifo() 591 priv->tx_head++; in xcan_start_xmit_mailbox() 1061 frames_in_fifo = priv->tx_head - priv->tx_tail; in xcan_tx_interrupt()
|
/Linux-v4.19/drivers/net/ethernet/qualcomm/ |
D | qca_uart.c | 57 unsigned char *tx_head; /* pointer to next XMIT byte */ member 151 written = serdev_device_write_buf(qca->serdev, qca->tx_head, in qcauart_transmit() 155 qca->tx_head += written; in qcauart_transmit() 240 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit()
|
/Linux-v4.19/drivers/net/ethernet/seeq/ |
D | ether3.c | 338 priv(dev)->tx_head = 0; in ether3_init_for_open() 469 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout() 477 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout() 505 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket() 514 ptr = 0x600 * priv(dev)->tx_head; in ether3_sendpacket() 515 priv(dev)->tx_head = next_ptr; in ether3_sendpacket() 537 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
|
/Linux-v4.19/drivers/infiniband/ulp/ipoib/ |
D | ipoib_ib.c | 411 ((priv->tx_head - priv->tx_tail) <= ipoib_sendq_size >> 1) && in ipoib_ib_handle_tx_wc() 623 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)]; in ipoib_send() 636 if (priv->tx_head - priv->tx_tail == ipoib_sendq_size - 1) { in ipoib_send() 649 rc = post_send(priv, priv->tx_head & (ipoib_sendq_size - 1), in ipoib_send() 662 rc = priv->tx_head; in ipoib_send() 663 ++priv->tx_head; in ipoib_send() 793 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop_default() 797 priv->tx_head - priv->tx_tail, in ipoib_ib_dev_stop_default() 804 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { in ipoib_ib_dev_stop_default()
|
D | ipoib_cm.c | 741 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send() 750 tx_req = &tx->tx_ring[tx->tx_head & (ipoib_sendq_size - 1)]; in ipoib_cm_send() 759 if ((priv->tx_head - priv->tx_tail) == ipoib_sendq_size - 1) { in ipoib_cm_send() 777 rc = post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), tx_req); in ipoib_cm_send() 788 ++tx->tx_head; in ipoib_cm_send() 789 ++priv->tx_head; in ipoib_cm_send() 826 (priv->tx_head - priv->tx_tail) <= ipoib_sendq_size >> 1 && in ipoib_cm_handle_tx_wc() 1209 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy() 1217 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1220 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy() [all …]
|
/Linux-v4.19/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) 298 unsigned tx_head; member 507 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt() 542 unsigned tx_head = de->tx_head; in de_tx() local 545 while (tx_tail != tx_head) { in de_tx() 621 entry = de->tx_head; in de_start_xmit() 642 de->tx_head = NEXT_TX(entry); in de_start_xmit() 751 entry = de->tx_head; in __de_set_rx_mode() [all …]
|
/Linux-v4.19/drivers/net/can/rcar/ |
D | rcar_can.c | 93 u32 tx_head; member 378 if (priv->tx_head - priv->tx_tail <= unsent) in rcar_can_tx_done() 614 priv->tx_dlc[priv->tx_head % RCAR_CAN_FIFO_DEPTH] = cf->can_dlc; in rcar_can_start_xmit() 615 can_put_echo_skb(skb, ndev, priv->tx_head % RCAR_CAN_FIFO_DEPTH); in rcar_can_start_xmit() 616 priv->tx_head++; in rcar_can_start_xmit() 623 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH) in rcar_can_start_xmit()
|
/Linux-v4.19/drivers/net/ethernet/cadence/ |
D | macb_main.c | 717 queue->tx_tail, queue->tx_head); in macb_tx_error_task() 741 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { in macb_tx_error_task() 800 queue->tx_head = 0; in macb_tx_error_task() 831 head = queue->tx_head; in macb_tx_interrupt() 887 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_interrupt() 1443 unsigned int len, entry, i, tx_head = queue->tx_head; in macb_tx_map() local 1469 entry = macb_tx_ring_wrap(bp, tx_head); in macb_tx_map() 1487 tx_head++; in macb_tx_map() 1500 entry = macb_tx_ring_wrap(bp, tx_head); in macb_tx_map() 1517 tx_head++; in macb_tx_map() [all …]
|
/Linux-v4.19/drivers/net/ethernet/silan/ |
D | sc92031.c | 280 unsigned tx_head; member 411 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear() 415 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear() 658 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet() 956 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit() 958 entry = priv->tx_head++ % NUM_TX_DESC; in sc92031_start_xmit() 983 if (priv->tx_head - priv->tx_tail >= NUM_TX_DESC) in sc92031_start_xmit() 1014 priv->tx_head = priv->tx_tail = 0; in sc92031_open()
|
/Linux-v4.19/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) 341 unsigned tx_head ____cacheline_aligned; 645 unsigned tx_head = cp->tx_head; in cp_tx() local 649 while (tx_tail != tx_head) { in cp_tx() 746 entry = cp->tx_head; in cp_start_xmit() 862 cp->tx_head = NEXT_TX(entry); in cp_start_xmit() 961 cp->tx_head = cp->tx_tail = 0; in cp_stop_hw() 1094 cp->tx_head = cp->tx_tail = 0; in cp_init_rings_index() [all …]
|
/Linux-v4.19/drivers/net/ethernet/calxeda/ |
D | xgmac.c | 373 unsigned int tx_head; member 412 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ) 781 priv->tx_head = 0; in xgmac_dma_desc_rings_init() 879 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete() 889 priv->tx_head, priv->tx_tail); in xgmac_tx_complete() 936 priv->tx_head = 0; in xgmac_tx_timeout_work() 1102 entry = priv->tx_head; in xgmac_xmit() 1147 priv->tx_head = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit() 1161 entry = priv->tx_head; in xgmac_xmit()
|
/Linux-v4.19/drivers/net/can/mscan/ |
D | mscan.c | 146 INIT_LIST_HEAD(&priv->tx_head); in mscan_start() 281 list_add_tail(&priv->tx_queue[buf_id].list, &priv->tx_head); in mscan_start_xmit() 451 list_for_each_safe(pos, tmp, &priv->tx_head) { in mscan_isr() 467 if (list_empty(&priv->tx_head)) { in mscan_isr()
|
/Linux-v4.19/arch/sparc/kernel/ |
D | ldc.c | 123 unsigned long tx_head; member 227 if (t == lp->tx_head) in handshake_get_tx_packet() 247 return lp->tx_head; in head_for_data() 529 &lp->tx_head, in ldc_abort() 926 &lp->tx_head, in ldc_tx() 931 orig_state, lp->chan_state, lp->tx_head, lp->tx_tail); in ldc_tx() 1339 &lp->tx_head, in ldc_bind() 1346 lp->tx_acked = lp->tx_head; in ldc_bind() 1495 lp->tx_head, lp->tx_tail, lp->tx_num_entries, in __ldc_print() 1506 hv_err = sun4v_ldc_tx_get_state(lp->id, &lp->tx_head, &lp->tx_tail, in write_raw() [all …]
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | tlan.c | 1082 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx() 1378 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() 1379 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1401 CIRC_INC(priv->tx_head, TLAN_NUM_TX_LISTS); in tlan_handle_tx_eof() 1402 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1412 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() 1413 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1415 + sizeof(struct tlan_list)*priv->tx_head; in tlan_handle_tx_eof() 1654 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc() 1655 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eoc() [all …]
|