Home
last modified time | relevance | path

Searched refs:tx_head (Results 1 – 45 of 45) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/moxa/
Dmoxart_ether.c126 priv->tx_head = 0; in moxart_mac_setup_desc_ring()
272 unsigned tx_head = priv->tx_head; in moxart_tx_finished() local
275 while (tx_tail != tx_head) { in moxart_tx_finished()
315 unsigned int tx_head = priv->tx_head; in moxart_mac_start_xmit() local
319 desc = priv->tx_desc_base + (TX_REG_DESC_SIZE * tx_head); in moxart_mac_start_xmit()
330 priv->tx_mapping[tx_head] = dma_map_single(&ndev->dev, skb->data, in moxart_mac_start_xmit()
332 if (dma_mapping_error(&ndev->dev, priv->tx_mapping[tx_head])) { in moxart_mac_start_xmit()
337 priv->tx_len[tx_head] = len; in moxart_mac_start_xmit()
338 priv->tx_skb[tx_head] = skb; in moxart_mac_start_xmit()
340 writel(priv->tx_mapping[tx_head], in moxart_mac_start_xmit()
[all …]
Dmoxart_ether.h314 unsigned int tx_head; member
/linux-4.4.14/drivers/net/ethernet/amd/
Dsun3lance.c141 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 …]
Datarilance.c157 struct lance_tx_head tx_head[TX_RING_SIZE]; member
620 MEM->init.tx_ring.adr_lo = offsetof( struct lance_memory, tx_head ); in lance_probe1()
707 MEM->tx_head[i].base = offset; in lance_init_ring()
708 MEM->tx_head[i].flag = TMD1_OWN_HOST; in lance_init_ring()
709 MEM->tx_head[i].base_hi = 0; in lance_init_ring()
710 MEM->tx_head[i].length = 0; in lance_init_ring()
711 MEM->tx_head[i].misc = 0; in lance_init_ring()
758 i, MEM->tx_head[i].base, in lance_tx_timeout()
759 -MEM->tx_head[i].length, in lance_tx_timeout()
760 MEM->tx_head[i].misc )); in lance_tx_timeout()
[all …]
Dau1000_eth.h95 u32 tx_head; member
Dau1000_eth.c765 aup->tx_head = (aup->tx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init()
766 aup->tx_tail = aup->tx_head; in au1000_init()
1033 skb->data, aup->tx_head); in au1000_tx()
1035 ptxd = aup->tx_dma_ring[aup->tx_head]; in au1000_tx()
1052 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx()
1068 aup->tx_head = (aup->tx_head + 1) & (NUM_TX_DMA - 1); in au1000_tx()
/linux-4.4.14/drivers/staging/vt6656/
Drxtx.c590 union vnt_tx_head *tx_head, bool need_mic) in vnt_rxtx_rts() argument
593 struct vnt_rrv_time_rts *buf = &tx_head->tx_rts.rts; in vnt_rxtx_rts()
594 union vnt_tx_data_head *head = &tx_head->tx_rts.tx.head; in vnt_rxtx_rts()
613 head = &tx_head->tx_rts.tx.mic.head; in vnt_rxtx_rts()
622 union vnt_tx_head *tx_head, bool need_mic) in vnt_rxtx_cts() argument
625 struct vnt_rrv_time_cts *buf = &tx_head->tx_cts.cts; in vnt_rxtx_cts()
626 union vnt_tx_data_head *head = &tx_head->tx_cts.tx.head; in vnt_rxtx_cts()
640 head = &tx_head->tx_cts.tx.mic.head; in vnt_rxtx_cts()
650 union vnt_tx_head *tx_head, bool need_rts, bool need_mic) in vnt_rxtx_ab() argument
653 struct vnt_rrv_time_ab *buf = &tx_head->tx_ab.ab; in vnt_rxtx_ab()
[all …]
Drxtx.h236 union vnt_tx_head tx_head; member
/linux-4.4.14/drivers/net/ethernet/i825xx/
Dether1.c504 priv(dev)->tx_head = NOP_ADDR + NOP_SIZE; in ether1_init_for_open()
621 if (priv(dev)->tx_head + size > TX_AREA_END) { in ether1_txalloc()
622 if (tail > priv(dev)->tx_head) in ether1_txalloc()
627 priv(dev)->tx_head = start + size; in ether1_txalloc()
629 if (priv(dev)->tx_head < tail && (priv(dev)->tx_head + size) > tail) in ether1_txalloc()
631 start = priv(dev)->tx_head; in ether1_txalloc()
632 priv(dev)->tx_head += size; in ether1_txalloc()
731 tmp = priv(dev)->tx_head; in ether1_sendpacket()
733 priv(dev)->tx_head = tmp; in ether1_sendpacket()
836 caddr = priv(dev)->tx_head; in ether1_xmit_done()
[all …]
Dether1.h42 unsigned int tx_head; member
/linux-4.4.14/drivers/staging/rdma/hfi1/
Diowait.h97 struct list_head tx_head; member
140 INIT_LIST_HEAD(&wait->tx_head); in iowait_init()
Dtrace.h927 __field(u16, tx_head)
935 __entry->tx_head = sde->tx_head;
948 __entry->tx_head,
967 __field(u16, tx_head)
975 __entry->tx_head = sde->tx_head;
986 __entry->tx_head,
Dsdma.c563 return sde->tx_ring[sde->tx_head & sde->sdma_mask]; in get_txhead()
592 sde->tx_ring[sde->tx_head++ & sde->sdma_mask] = NULL; in sdma_flush_descq()
1444 if (!list_empty(&wait->tx_head)) { in sdma_desc_avail()
1446 &wait->tx_head, in sdma_desc_avail()
1497 sde->tx_ring[sde->tx_head++ & sde->sdma_mask] = NULL; in sdma_make_progress()
1913 sde->tx_head, in sdma_seqfile_dump_sde()
Dqp.c546 while (!list_empty(&qp->s_iowait.tx_head)) { in flush_tx_list()
550 &qp->s_iowait.tx_head, in flush_tx_list()
1424 list_add_tail(&stx->list, &wait->tx_head); in iowait_sleep()
Dsdma.h465 u16 tx_head; member
Dverbs.c1016 if (!list_empty(&qp->s_iowait.tx_head)) { in hfi1_verbs_send_dma()
1018 &qp->s_iowait.tx_head, in hfi1_verbs_send_dma()
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhip04_eth.c166 unsigned int tx_head; member
376 count = tx_count(ACCESS_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, ACCESS_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()
633 priv->tx_head = 0; in hip04_mac_open()
/linux-4.4.14/drivers/net/irda/
Dau1k_ir.c158 u32 tx_head; member
310 aup->tx_head = aup->tx_tail = aup->rx_head = 0; in au1k_irda_set_speed()
423 while (!(ptxd->flags & AU_OWN) && (aup->tx_tail != aup->tx_head)) { in au1k_tx_ack()
438 if (aup->tx_tail == aup->tx_head) { in au1k_tx_ack()
553 aup->tx_head = 0; in au1k_init()
672 if (aup->tx_tail == aup->tx_head) { in au1k_irda_hard_xmit()
680 ptxd = aup->tx_ring[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()
695 pDB = aup->tx_db_inuse[aup->tx_head]; in au1k_irda_hard_xmit()
724 aup->tx_head = (aup->tx_head + 1) & (NUM_IR_DESC - 1); in au1k_irda_hard_xmit()
/linux-4.4.14/drivers/net/can/
Dti_hecc.c222 u32 tx_head; member
230 return priv->tx_head & HECC_TX_MB_MASK; in get_tx_head_mb()
240 return (priv->tx_head >> HECC_TX_PRIO_SHIFT) & MAX_TX_PRIO; in get_tx_head_prio()
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()
529 --priv->tx_head; in ti_hecc_xmit()
531 (priv->tx_head & HECC_TX_MASK) == HECC_TX_MASK) { in ti_hecc_xmit()
774 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
793 if (((priv->tx_head == priv->tx_tail) && in ti_hecc_interrupt()
794 ((priv->tx_head & HECC_TX_MASK) != HECC_TX_MASK)) || in ti_hecc_interrupt()
[all …]
Drcar_can.c93 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()
Dxilinx_can.c134 unsigned int tx_head; member
440 can_put_echo_skb(skb, ndev, priv->tx_head % priv->tx_max); in xcan_start_xmit()
441 priv->tx_head++; in xcan_start_xmit()
457 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) in xcan_start_xmit()
746 while ((priv->tx_head - priv->tx_tail > 0) && in xcan_tx_interrupt()
/linux-4.4.14/drivers/net/ethernet/cadence/
Dmacb.c563 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()
642 queue->tx_head = 0; in macb_tx_error_task()
673 head = queue->tx_head; in macb_tx_interrupt()
720 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_interrupt()
1165 unsigned int len, entry, i, tx_head = queue->tx_head; in macb_tx_map() local
1178 entry = macb_tx_ring_wrap(tx_head); in macb_tx_map()
1196 tx_head++; in macb_tx_map()
1207 entry = macb_tx_ring_wrap(tx_head); in macb_tx_map()
1224 tx_head++; in macb_tx_map()
[all …]
Dmacb.h778 unsigned int tx_head, tx_tail; member
/linux-4.4.14/drivers/net/ethernet/seeq/
Dether3.c337 priv(dev)->tx_head = 0; in ether3_init_for_open()
468 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
476 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
504 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
513 ptr = 0x600 * priv(dev)->tx_head; in ether3_sendpacket()
514 priv(dev)->tx_head = next_ptr; in ether3_sendpacket()
536 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
Dether3.h164 unsigned char tx_head; /* buffer nr to insert next packet */ member
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
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)
298 unsigned tx_head; member
509 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt()
544 unsigned tx_head = de->tx_head; in de_tx() local
547 while (tx_tail != tx_head) { in de_tx()
623 entry = de->tx_head; in de_start_xmit()
644 de->tx_head = NEXT_TX(entry); in de_start_xmit()
753 entry = de->tx_head; in __de_set_rx_mode()
[all …]
/linux-4.4.14/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c577 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)]; in ipoib_send()
600 rc = post_send(priv, priv->tx_head & (ipoib_sendq_size - 1), in ipoib_send()
613 address->last_send = priv->tx_head; in ipoib_send()
614 ++priv->tx_head; in ipoib_send()
845 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop()
848 priv->tx_head - priv->tx_tail, recvs_pending(dev)); in ipoib_ib_dev_stop()
854 while ((int) priv->tx_tail - (int) priv->tx_head < 0) { in ipoib_ib_dev_stop()
Dipoib_cm.c724 tx->tx_head, skb->len, tx->qp->qp_num); in ipoib_cm_send()
733 tx_req = &tx->tx_ring[tx->tx_head & (ipoib_sendq_size - 1)]; in ipoib_cm_send()
745 rc = post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), tx_req); in ipoib_cm_send()
753 ++tx->tx_head; in ipoib_cm_send()
1174 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy()
1182 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
1185 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy()
1195 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
Dipoib.h243 unsigned tx_head; member
360 unsigned tx_head; member
Dipoib_main.c1041 priv->tx_head, priv->tx_tail); in ipoib_timeout()
/linux-4.4.14/drivers/net/ethernet/silan/
Dsc92031.c280 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-4.4.14/drivers/net/ethernet/realtek/
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_head ____cacheline_aligned;
652 unsigned tx_head = cp->tx_head; in cp_tx() local
656 while (tx_tail != tx_head) { in cp_tx()
753 entry = cp->tx_head; in cp_start_xmit()
869 cp->tx_head = NEXT_TX(entry); in cp_start_xmit()
968 cp->tx_head = cp->tx_tail = 0; in cp_stop_hw()
1101 cp->tx_head = cp->tx_tail = 0; in cp_init_rings_index()
[all …]
/linux-4.4.14/drivers/usb/musb/
Dcppi_dma.h25 u32 tx_head; /* "DMA packet" head descriptor */ member
Dcppi_dma.c98 musb_writel(&tx->tx_head, 0, 0); in cppi_reset_tx()
396 musb_readl(&tx->tx_head, 0), in cppi_dump_tx()
663 musb_writel(&tx_ram->tx_head, 0, (u32)tx->freelist->dma); in cppi_next_tx_segment()
/linux-4.4.14/drivers/net/ethernet/calxeda/
Dxgmac.c372 unsigned int tx_head; member
411 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ)
780 priv->tx_head = 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()
888 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
935 priv->tx_head = 0; in xgmac_tx_timeout_work()
1101 entry = priv->tx_head; in xgmac_xmit()
1146 priv->tx_head = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()
1160 entry = priv->tx_head; in xgmac_xmit()
/linux-4.4.14/drivers/net/can/mscan/
Dmscan.c146 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()
Dmscan.h294 struct list_head tx_head; member
/linux-4.4.14/drivers/net/ethernet/ti/
Dtlan.c1083 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1379 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1380 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1402 CIRC_INC(priv->tx_head, TLAN_NUM_TX_LISTS); in tlan_handle_tx_eof()
1403 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1413 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1414 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1416 + sizeof(struct tlan_list)*priv->tx_head; in tlan_handle_tx_eof()
1658 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc()
1659 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eoc()
[all …]
Dtlan.h190 u32 tx_head; member
/linux-4.4.14/arch/sparc/kernel/
Dldc.c123 unsigned long tx_head; member
234 if (t == lp->tx_head) in handshake_get_tx_packet()
254 return lp->tx_head; in head_for_data()
535 &lp->tx_head, in ldc_abort()
927 &lp->tx_head, in ldc_tx()
932 orig_state, lp->chan_state, lp->tx_head, lp->tx_tail); in ldc_tx()
1333 &lp->tx_head, in ldc_bind()
1340 lp->tx_acked = lp->tx_head; in ldc_bind()
1523 hv_err = sun4v_ldc_tx_get_state(lp->id, &lp->tx_head, &lp->tx_tail, in write_nonraw()
/linux-4.4.14/drivers/net/hamradio/
Ddmascc.c213 int tx_head, tx_tail, tx_count; member
751 priv->tx_head = priv->tx_tail = priv->tx_count = 0; in scc_open()
930 i = priv->tx_head; in scc_send_packet()
938 priv->tx_head = (i + 1) % NUM_TX_BUF; in scc_send_packet()
/linux-4.4.14/drivers/staging/dgap/
Ddgap.c2616 head = readw(&bs->tx_head); in dgap_wmove()
2648 writew(head, &bs->tx_head); in dgap_wmove()
2701 head = readw(&ch->ch_bs->tx_head); in dgap_param()
3160 head = readw(&ch->ch_bs->tx_head); in dgap_tty_flush_buffer()
3254 thead = readw(&bs->tx_head) & tmask; in dgap_tty_chars_in_buffer()
3465 head = readw(&bs->tx_head) & tmask; in dgap_tty_write_room()
3543 head = readw(&(bs->tx_head)) & tmask; in dgap_tty_write()
3578 head = readw(&bs->tx_head) & tmask; in dgap_tty_write()
3589 head = readw(&bs->tx_head) & tmask; in dgap_tty_write()
3626 writew(head, &bs->tx_head); in dgap_tty_write()
[all …]
Ddgap.h1082 unsigned short tx_head; /* W Tx buffer head offset */ member
/linux-4.4.14/drivers/net/ethernet/intel/i40evf/
Di40e_txrx.c156 struct i40e_tx_desc *tx_head; in i40e_clean_tx_irq() local
165 tx_head = I40E_TX_DESC(tx_ring, i40e_get_head(tx_ring)); in i40e_clean_tx_irq()
178 if (tx_head == tx_desc) in i40e_clean_tx_irq()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c638 struct i40e_tx_desc *tx_head; in i40e_clean_tx_irq() local
647 tx_head = I40E_TX_DESC(tx_ring, i40e_get_head(tx_ring)); in i40e_clean_tx_irq()
660 if (tx_head == tx_desc) in i40e_clean_tx_irq()