| /linux/drivers/net/can/rockchip/ |
| H A D | rockchip_canfd-tx.c | 26 priv->tx_head, priv->tx_tail); in rkcanfd_tx_tail_is_eff() 60 const unsigned int tx_head = rkcanfd_get_tx_head(priv); in rkcanfd_xmit_retry() local 61 const u32 reg_cmd = RKCANFD_REG_CMD_TX_REQ(tx_head); in rkcanfd_xmit_retry() 70 unsigned int tx_head, frame_len; in rkcanfd_start_xmit() local 85 priv->tx_head, priv->tx_tail, in rkcanfd_start_xmit() 117 tx_head = rkcanfd_get_tx_head(priv); in rkcanfd_start_xmit() 118 reg_cmd = RKCANFD_REG_CMD_TX_REQ(tx_head); in rkcanfd_start_xmit() 127 err = can_put_echo_skb(skb, ndev, tx_head, frame_len); in rkcanfd_start_xmit() 131 WRITE_ONCE(priv->tx_head, priv->tx_head + 1); in rkcanfd_start_xmit()
|
| H A D | rockchip_canfd.h | 466 unsigned int tx_head; member 515 return READ_ONCE(priv->tx_head) & (RKCANFD_TXFIFO_DEPTH - 1); in rkcanfd_get_tx_head() 527 return READ_ONCE(priv->tx_head) - READ_ONCE(priv->tx_tail); in rkcanfd_get_tx_pending()
|
| /linux/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-tx.c | 23 u8 tx_head; in mcp251xfd_get_tx_obj_next() local 25 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_get_tx_obj_next() 27 return &tx_ring->obj[tx_head]; in mcp251xfd_get_tx_obj_next() 141 u8 tx_head; in mcp251xfd_tx_failure_drop() local 145 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_tx_failure_drop() 146 can_free_echo_skb(ndev, tx_head, &frame_len); in mcp251xfd_tx_failure_drop() 210 u8 tx_head; in mcp251xfd_start_xmit() local 224 tx_head = mcp251xfd_get_tx_head(tx_ring); in mcp251xfd_start_xmit() 230 err = can_put_echo_skb(skb, ndev, tx_head, frame_len); in mcp251xfd_start_xmit()
|
| /linux/drivers/net/ethernet/amd/ |
| H A D | sun3lance.c | 143 struct lance_tx_head tx_head[TX_RING_SIZE]; member 394 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_probe() 396 (dvma_vtob(MEM->tx_head) >> 16); in lance_probe() 400 (dvma_vtob(MEM->tx_head)))); in lance_probe() 461 MEM->tx_head[i].base = dvma_vtob(MEM->tx_data[i]); in lance_init_ring() 462 MEM->tx_head[i].flag = 0; in lance_init_ring() 463 MEM->tx_head[i].base_hi = in lance_init_ring() 465 MEM->tx_head[i].length = 0; in lance_init_ring() 466 MEM->tx_head[i].misc = 0; in lance_init_ring() 492 MEM->init.tdra = dvma_vtob(MEM->tx_head); in lance_init_ring() [all …]
|
| H A D | atarilance.c | 158 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 …]
|
| H A D | au1000_eth.c | 703 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()
|
| H A D | au1000_eth.h | 78 u32 tx_head; member
|
| /linux/drivers/net/ethernet/i825xx/ |
| H A D | ether1.c | 502 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 …]
|
| H A D | ether1.h | 39 unsigned int tx_head; member
|
| /linux/drivers/net/ethernet/qualcomm/ |
| H A D | qca_uart.c | 43 unsigned char *tx_head; /* pointer to next XMIT byte */ member 136 written = serdev_device_write_buf(qca->serdev, qca->tx_head, in qcauart_transmit() 140 qca->tx_head += written; in qcauart_transmit() 225 qca->tx_head = qca->tx_buffer + written; in qcauart_netdev_xmit()
|
| /linux/drivers/net/can/usb/etas_es58x/ |
| H A D | es58x_core.c | 279 u32 num_echo_skb = priv->tx_head - priv->tx_tail; in es58x_is_echo_skb_threshold_reached() 331 rcv_packet_idx, priv->tx_tail, priv->tx_head, in es58x_can_get_echo_skb_recovery() 332 priv->tx_head - priv->tx_tail, in es58x_can_get_echo_skb_recovery() 340 } else if ((s32)(rcv_packet_idx - priv->tx_head) >= 0) { in es58x_can_get_echo_skb_recovery() 352 if (priv->tx_tail == priv->tx_head) in es58x_can_get_echo_skb_recovery() 387 unsigned int num_echo_skb = priv->tx_head - priv->tx_tail; in es58x_can_get_echo_skb() 476 priv->tx_head = 0; in es58x_can_reset_echo_fifo() 505 priv->tx_head--; in es58x_flush_pending_tx_msg() 507 can_free_echo_skb(netdev, priv->tx_head & fifo_mask, in es58x_flush_pending_tx_msg() 543 priv->tx_head - priv->tx_tail, in es58x_tx_ack_msg() [all …]
|
| /linux/drivers/net/ethernet/seeq/ |
| H A D | ether3.c | 335 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()
|
| H A D | ether3.h | 161 unsigned char tx_head; /* buffer nr to insert next packet */ member
|
| /linux/drivers/net/can/ |
| H A D | bxcan.c | 178 unsigned int tx_head; member 263 return priv->tx_head % BXCAN_TX_MB_NUM; in bxcan_get_tx_head() 273 return BXCAN_TX_MB_NUM - (priv->tx_head - priv->tx_tail); in bxcan_get_tx_free() 289 priv->tx_head, priv->tx_tail, in bxcan_tx_busy() 290 priv->tx_head - priv->tx_tail); in bxcan_tx_busy() 442 while (priv->tx_head - priv->tx_tail > 0) { in bxcan_tx_isr() 691 priv->tx_head = 0; in bxcan_chip_start() 852 priv->tx_head++; in bxcan_start_xmit() 1002 priv->tx_head = 0; in bxcan_probe()
|
| /linux/drivers/net/ethernet/actions/ |
| H A D | owl-emac.c | 496 unsigned int tx_head; in owl_emac_setup_frame_xmit() local 515 tx_head = ring->head; in owl_emac_setup_frame_xmit() 516 desc = &ring->descs[tx_head]; in owl_emac_setup_frame_xmit() 530 ring->skbs[tx_head] = skb; in owl_emac_setup_frame_xmit() 531 ring->skbs_dma[tx_head] = dma_addr; in owl_emac_setup_frame_xmit() 572 unsigned int tx_head; in owl_emac_ndo_start_xmit() local 586 tx_head = ring->head; in owl_emac_ndo_start_xmit() 587 desc = &ring->descs[tx_head]; in owl_emac_ndo_start_xmit() 605 ring->skbs[tx_head] = skb; in owl_emac_ndo_start_xmit() 606 ring->skbs_dma[tx_head] = dma_addr; in owl_emac_ndo_start_xmit()
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | de2104x.c | 96 (((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 …]
|
| /linux/drivers/net/ethernet/silan/ |
| H A D | sc92031.c | 280 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()
|
| /linux/drivers/net/ethernet/realtek/ |
| H A 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; 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 …]
|
| /linux/arch/sparc/kernel/ |
| H A 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/drivers/net/ethernet/ti/ |
| H A D | tlan.c | 1061 dev->name, priv->tx_head, priv->tx_tail); in tlan_start_tx() 1357 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() 1358 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1380 CIRC_INC(priv->tx_head, TLAN_NUM_TX_LISTS); in tlan_handle_tx_eof() 1381 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1391 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eof() 1392 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eof() 1394 + sizeof(struct tlan_list)*priv->tx_head; in tlan_handle_tx_eof() 1633 priv->tx_head, priv->tx_tail); in tlan_handle_tx_eoc() 1634 head_list = priv->tx_list + priv->tx_head; in tlan_handle_tx_eoc() [all …]
|
| /linux/drivers/usb/musb/ |
| H A D | cppi_dma.h | 19 u32 tx_head; /* "DMA packet" head descriptor */ member
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_cmd.h | 96 __le16 tx_head; member
|
| /linux/drivers/net/ethernet/cadence/ |
| H A D | macb_main.c | 1039 queue_index, queue->tx_tail, queue->tx_head); in macb_tx_error_task() 1066 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { in macb_tx_error_task() 1126 queue->tx_head = 0; in macb_tx_error_task() 1185 head = queue->tx_head; in macb_tx_complete() 1244 CIRC_CNT(queue->tx_head, queue->tx_tail, in macb_tx_complete() 1678 if (queue->tx_head == queue->tx_tail) in macb_tx_restart() 1683 head_idx = macb_adj_dma_desc_idx(bp, macb_tx_ring_wrap(bp, queue->tx_head)); in macb_tx_restart() 1702 if (queue->tx_head != queue->tx_tail) { in macb_tx_complete_pending() 1998 unsigned int len, i, tx_head = queue->tx_head; in macb_tx_map() local 2024 tx_skb = macb_tx_skb(queue, tx_head); in macb_tx_map() [all …]
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | iowait.c | 69 INIT_LIST_HEAD(&wait->wait[i].tx_head); in iowait_init()
|
| /linux/drivers/infiniband/ulp/ipoib/ |
| H A 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() 778 rc = post_send(priv, tx, tx->tx_head & (ipoib_sendq_size - 1), tx_req); in ipoib_cm_send() 789 ++tx->tx_head; in ipoib_cm_send() 1206 p->qp ? p->qp->qp_num : 0, p->tx_head, p->tx_tail); in ipoib_cm_tx_destroy() 1214 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy() 1217 p->tx_head - p->tx_tail); in ipoib_cm_tx_destroy() 1227 while ((int) p->tx_tail - (int) p->tx_head < 0) { in ipoib_cm_tx_destroy()
|