Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/net/ethernet/moxa/
Dmoxart_ether.c139 priv->tx_head = 0; in moxart_mac_setup_desc_ring()
287 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); in moxart_tx_queue_space()
293 unsigned int tx_head = priv->tx_head; in moxart_tx_finished() local
296 while (tx_tail != tx_head) { in moxart_tx_finished()
340 unsigned int tx_head; in moxart_mac_start_xmit() local
346 tx_head = priv->tx_head; in moxart_mac_start_xmit()
347 desc = priv->tx_desc_base + (TX_REG_DESC_SIZE * tx_head); in moxart_mac_start_xmit()
361 priv->tx_mapping[tx_head] = dma_map_single(&ndev->dev, skb->data, in moxart_mac_start_xmit()
363 if (dma_mapping_error(&ndev->dev, priv->tx_mapping[tx_head])) { in moxart_mac_start_xmit()
368 priv->tx_len[tx_head] = len; in moxart_mac_start_xmit()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Diowait.h93 struct list_head tx_head; member
330 if (!list_empty(&wait->tx_head)) { in iowait_get_txhead()
332 &wait->tx_head, in iowait_get_txhead()
345 if (!list_empty(&w->tx_head)) { in iowait_get_desc()
346 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_get_desc()
368 if (!list_empty(&w->tx_head)) { in iowait_update_priority()
369 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_update_priority()
450 return !list_empty(&wait->tx_head); in iowait_packet_queued()
Dtrace_tx.h411 __field(u16, tx_head)
418 __entry->tx_head = sde->tx_head;
431 __entry->tx_head,
447 __field(u16, tx_head)
454 __entry->tx_head = sde->tx_head;
465 __entry->tx_head,
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/
Dsun3lance.c142 struct lance_tx_head tx_head[TX_RING_SIZE]; member
399 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe()
401 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe()
405 (dvma_vtob(MEM->tx_head)))); in lance_probe()
466 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring()
467 MEM->tx_head[i].flag = 0; in lance_init_ring()
468 MEM->tx_head[i].base_hi = in lance_init_ring()
470 MEM->tx_head[i].length = 0; in lance_init_ring()
471 MEM->tx_head[i].misc = 0; in lance_init_ring()
497 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.c703 aup->tx_head = (aup->tx_dma_ring[0]->buff_stat & 0xC) >> 2; in au1000_init()
704 aup->tx_tail = aup->tx_head; in au1000_init()
967 skb->data, aup->tx_head); in au1000_tx()
969 ptxd = aup->tx_dma_ring[aup->tx_head]; in au1000_tx()
986 pDB = aup->tx_db_inuse[aup->tx_head]; in au1000_tx()
1002 aup->tx_head = (aup->tx_head + 1) & (NUM_TX_DMA - 1); in au1000_tx()
Dau1000_eth.h78 u32 tx_head; member
/kernel/linux/linux-5.10/drivers/staging/vt6656/
Drxtx.c332 mic_hdr = &tx_buffer->tx_head.tx_rts.tx.mic.hdr; in vnt_fill_txkey()
334 mic_hdr = &tx_buffer->tx_head.tx_cts.tx.mic.hdr; in vnt_fill_txkey()
336 mic_hdr = &tx_buffer->tx_head.tx_ab.tx.mic.hdr; in vnt_fill_txkey()
383 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_rts() local
384 struct vnt_rrv_time_rts *buf = &tx_head->tx_rts.rts; in vnt_rxtx_rts()
385 union vnt_tx_data_head *head = &tx_head->tx_rts.tx.head; in vnt_rxtx_rts()
396 head = &tx_head->tx_rts.tx.mic.head; in vnt_rxtx_rts()
406 union vnt_tx_head *tx_head = &tx_buffer->tx_head; in vnt_rxtx_cts() local
407 struct vnt_rrv_time_cts *buf = &tx_head->tx_cts.cts; in vnt_rxtx_cts()
408 union vnt_tx_data_head *head = &tx_head->tx_cts.tx.head; in vnt_rxtx_cts()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/
Dether1.c502 priv(dev)->tx_head = NOP_ADDR + NOP_SIZE; in ether1_init_for_open()
619 if (priv(dev)->tx_head + size > TX_AREA_END) { in ether1_txalloc()
620 if (tail > priv(dev)->tx_head) in ether1_txalloc()
625 priv(dev)->tx_head = start + size; in ether1_txalloc()
627 if (priv(dev)->tx_head < tail && (priv(dev)->tx_head + size) > tail) in ether1_txalloc()
629 start = priv(dev)->tx_head; in ether1_txalloc()
630 priv(dev)->tx_head += size; in ether1_txalloc()
729 tmp = priv(dev)->tx_head; in ether1_sendpacket()
731 priv(dev)->tx_head = tmp; in ether1_sendpacket()
834 caddr = priv(dev)->tx_head; in ether1_xmit_done()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/
Dhip04_eth.c230 unsigned int tx_head; member
456 count = tx_count(READ_ONCE(priv->tx_head), tx_tail); in hip04_tx_reclaim()
510 unsigned int tx_head = priv->tx_head, count; in hip04_mac_start_xmit() local
511 struct tx_desc *desc = &priv->tx_desc[tx_head]; in hip04_mac_start_xmit()
515 count = tx_count(tx_head, READ_ONCE(priv->tx_tail)); in hip04_mac_start_xmit()
527 priv->tx_skb[tx_head] = skb; in hip04_mac_start_xmit()
528 priv->tx_phys[tx_head] = phys; in hip04_mac_start_xmit()
540 phys = priv->tx_desc_dma + tx_head * sizeof(struct tx_desc); in hip04_mac_start_xmit()
548 priv->tx_head = TX_NEXT(tx_head); in hip04_mac_start_xmit()
730 priv->tx_head = 0; in hip04_mac_open()
/kernel/linux/linux-5.10/drivers/net/can/
Dti_hecc.c197 u32 tx_head; member
204 return priv->tx_head & HECC_TX_MB_MASK; in get_tx_head_mb()
214 return (priv->tx_head >> HECC_TX_PRIO_SHIFT) & MAX_TX_PRIO; in get_tx_head_prio()
370 priv->tx_head = HECC_TX_MASK; in ti_hecc_start()
493 priv->tx_head, priv->tx_tail); in ti_hecc_xmit()
519 --priv->tx_head; in ti_hecc_xmit()
521 (priv->tx_head & HECC_TX_MASK) == HECC_TX_MASK) { in ti_hecc_xmit()
748 while (priv->tx_tail - priv->tx_head > 0) { in ti_hecc_interrupt()
767 if ((priv->tx_head == priv->tx_tail && in ti_hecc_interrupt()
768 ((priv->tx_head & HECC_TX_MASK) != HECC_TX_MASK)) || in ti_hecc_interrupt()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/
Dqca_uart.c57 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()
/kernel/linux/linux-5.10/drivers/net/ethernet/seeq/
Dether3.c335 priv(dev)->tx_head = 0; in ether3_init_for_open()
466 priv(dev)->tx_head, priv(dev)->tx_tail); in ether3_timeout()
474 priv(dev)->tx_head = priv(dev)->tx_tail = 0; in ether3_timeout()
502 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
511 ptr = 0x600 * priv(dev)->tx_head; in ether3_sendpacket()
512 priv(dev)->tx_head = next_ptr; in ether3_sendpacket()
534 next_ptr = (priv(dev)->tx_head + 1) & 15; in ether3_sendpacket()
Dether3.h161 unsigned char tx_head; /* buffer nr to insert next packet */ member
/kernel/linux/linux-5.10/drivers/net/ethernet/dec/tulip/
Dde2104x.c96 (((CP)->tx_tail <= (CP)->tx_head) ? \
97 (CP)->tx_tail + (DE_TX_RING_SIZE - 1) - (CP)->tx_head : \
98 (CP)->tx_tail - (CP)->tx_head - 1)
292 unsigned tx_head; member
506 de->rx_tail, de->tx_head, de->tx_tail); in de_interrupt()
541 unsigned tx_head = de->tx_head; in de_tx() local
544 while (tx_tail != tx_head) { in de_tx()
622 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/silan/
Dsc92031.c280 unsigned tx_head; member
410 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_clear()
414 priv->tx_head = priv->tx_tail = 0; in _sc92031_tx_clear()
657 while (priv->tx_head - priv->tx_tail > 0) { in _sc92031_tx_tasklet()
953 BUG_ON(priv->tx_head - priv->tx_tail >= NUM_TX_DESC); in sc92031_start_xmit()
955 entry = priv->tx_head++ % NUM_TX_DESC; in sc92031_start_xmit()
979 if (priv->tx_head - priv->tx_tail >= NUM_TX_DESC) in sc92031_start_xmit()
1010 priv->tx_head = priv->tx_tail = 0; in sc92031_open()
/kernel/linux/linux-5.10/drivers/net/can/rcar/
Drcar_can.c98 u32 tx_head; member
383 if (priv->tx_head - priv->tx_tail <= unsent) in rcar_can_tx_done()
619 priv->tx_dlc[priv->tx_head % RCAR_CAN_FIFO_DEPTH] = cf->can_dlc; in rcar_can_start_xmit()
620 can_put_echo_skb(skb, ndev, priv->tx_head % RCAR_CAN_FIFO_DEPTH); in rcar_can_start_xmit()
621 priv->tx_head++; in rcar_can_start_xmit()
628 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH) in rcar_can_start_xmit()
/kernel/linux/linux-5.10/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;
650 unsigned tx_head = cp->tx_head; in cp_tx() local
654 while (tx_tail != tx_head) { in cp_tx()
751 entry = cp->tx_head; in cp_start_xmit()
867 cp->tx_head = NEXT_TX(entry); in cp_start_xmit()
966 cp->tx_head = cp->tx_tail = 0; in cp_stop_hw()
1099 cp->tx_head = cp->tx_tail = 0; in cp_init_rings_index()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/ipoib/
Dipoib_ib.c626 tx_req = &priv->tx_ring[priv->tx_head & (ipoib_sendq_size - 1)]; in ipoib_send()
653 rc = post_send(priv, priv->tx_head & (ipoib_sendq_size - 1), in ipoib_send()
666 rc = priv->tx_head; in ipoib_send()
667 ++priv->tx_head; in ipoib_send()
796 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { in ipoib_ib_dev_stop_default()
800 priv->tx_head - priv->tx_tail, in ipoib_ib_dev_stop_default()
807 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { in ipoib_ib_dev_stop_default()
/kernel/linux/linux-5.10/drivers/net/ethernet/cadence/
Dmacb_main.c903 queue->tx_tail, queue->tx_head); in macb_tx_error_task()
927 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { in macb_tx_error_task()
986 queue->tx_head = 0; in macb_tx_error_task()
1017 head = queue->tx_head; in macb_tx_interrupt()
1075 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_interrupt()
1508 unsigned int head = queue->tx_head; in macb_tx_restart()
1710 unsigned int len, entry, i, tx_head = queue->tx_head; in macb_tx_map() local
1736 entry = macb_tx_ring_wrap(bp, tx_head); in macb_tx_map()
1754 tx_head++; in macb_tx_map()
1767 entry = macb_tx_ring_wrap(bp, tx_head); in macb_tx_map()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/calxeda/
Dxgmac.c362 unsigned int tx_head; member
401 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ)
770 priv->tx_head = 0; in xgmac_dma_desc_rings_init()
868 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { in xgmac_tx_complete()
878 priv->tx_head, priv->tx_tail); in xgmac_tx_complete()
925 priv->tx_head = 0; in xgmac_tx_timeout_work()
1091 entry = priv->tx_head; in xgmac_xmit()
1136 priv->tx_head = dma_ring_incr(entry, DMA_TX_RING_SZ); in xgmac_xmit()
1150 entry = priv->tx_head; in xgmac_xmit()
/kernel/linux/linux-5.10/drivers/net/can/mscan/
Dmscan.c135 INIT_LIST_HEAD(&priv->tx_head); in mscan_start()
271 list_add_tail(&priv->tx_queue[buf_id].list, &priv->tx_head); in mscan_start_xmit()
440 list_for_each_safe(pos, tmp, &priv->tx_head) { in mscan_isr()
456 if (list_empty(&priv->tx_head)) { in mscan_isr()
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dldc.c123 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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/ti/
Dtlan.c1059 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx()
1355 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1356 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1378 CIRC_INC(priv->tx_head, TLAN_NUM_TX_LISTS); in tlan_handle_tx_eof()
1379 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1389 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof()
1390 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof()
1392 + sizeof(struct tlan_list)*priv->tx_head; in tlan_handle_tx_eof()
1631 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc()
1632 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eoc()
[all …]
/kernel/linux/linux-5.10/drivers/usb/musb/
Dcppi_dma.h19 u32 tx_head; /* "DMA packet" head descriptor */ member

123