/linux-master/drivers/slimbus/ |
H A D | qcom-ngd-ctrl.c | 176 int tx_tail; member in struct:qcom_slim_ngd_ctrl 536 if ((ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM == ctrl->tx_head) { 540 desc = &ctrl->txdesc[ctrl->tx_tail]; 541 desc->base = ctrl->tx_base + ctrl->tx_tail * SLIM_MSGQ_BUF_LEN; 543 ctrl->tx_tail = (ctrl->tx_tail + 1) % QCOM_SLIM_NGD_DESC_NUM; 735 ctrl->tx_tail = 0;
|
/linux-master/arch/sparc/kernel/ |
H A D | ldc.c | 124 unsigned long tx_tail; member in struct:ldc_channel 226 t = tx_advance(lp, lp->tx_tail); 233 return p + (lp->tx_tail / LDC_PACKET_SIZE); 256 tail = lp->tx_tail; 282 t = tx_advance(lp, lp->tx_tail); 289 return p + (lp->tx_tail / LDC_PACKET_SIZE); 294 unsigned long orig_tail = lp->tx_tail; 297 lp->tx_tail = tail; 306 lp->tx_tail = orig_tail; 312 lp->tx_tail [all...] |
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_cmd.h | 578 __le16 tx_tail; member in struct:hclge_cfg_tx_queue_pointer_cmd
|
/linux-master/drivers/net/can/ |
H A D | xilinx_can.c | 217 * @tx_tail: Tx CAN packets successfully sended on the queue 243 unsigned int tx_tail; member in struct:xcan_priv 468 priv->tx_tail = 0; 761 if ((priv->tx_head - priv->tx_tail) == priv->tx_max) 1397 frames_in_fifo = priv->tx_head - priv->tx_tail; 1439 stats->tx_bytes += can_get_echo_skb(ndev, priv->tx_tail % 1441 priv->tx_tail++;
|
H A D | at91_can.c | 159 unsigned int tx_tail; member in struct:at91_priv 282 return (priv->tx_tail & get_head_mb_mask(priv)) + get_mb_tx_first(priv); 359 priv->tx_head = priv->tx_tail = 0; 642 * priv->tx_tail holds the number of the oldest can_frame put for 646 * We iterate from priv->tx_tail to priv->tx_head and check if the 657 for (/* nix */; (priv->tx_head - priv->tx_tail) > 0; priv->tx_tail++) { 688 (priv->tx_tail & get_head_mask(priv)) == 0)
|
H A D | ti_hecc.c | 188 u32 tx_tail; member in struct:ti_hecc_priv 199 return priv->tx_tail & HECC_TX_MB_MASK; 361 priv->tx_tail = HECC_TX_MASK; 482 "BUG: TX mbx not ready tx_head=%08X, tx_tail=%08X\n", 483 priv->tx_head, priv->tx_tail); 739 while (priv->tx_tail - priv->tx_head > 0) { 753 --priv->tx_tail; 757 if ((priv->tx_head == priv->tx_tail && 759 (((priv->tx_tail & HECC_TX_MASK) == HECC_TX_MASK) &&
|
H A D | bxcan.c | 179 unsigned int tx_tail; member in struct:bxcan_priv 268 return priv->tx_tail % BXCAN_TX_MB_NUM; 273 return BXCAN_TX_MB_NUM - (priv->tx_head - priv->tx_tail); 288 "Stopping tx-queue (tx_head=0x%08x, tx_tail=0x%08x, len=%d).\n", 289 priv->tx_head, priv->tx_tail, 290 priv->tx_head - priv->tx_tail); 442 while (priv->tx_head - priv->tx_tail > 0) { 450 priv->tx_tail++; 692 priv->tx_tail = 0; 1004 priv->tx_tail [all...] |
/linux-master/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-core.c | 1259 u8 chip_tx_tail, tx_tail, offset; local 1269 tx_tail = mcp251xfd_get_tx_tail(tx_ring); 1273 * - tx_tail information is inconsistent 1277 if (chip_tx_tail != tx_tail || 1281 "ECC Error information inconsistent (addr=0x%04x, nr=%d, tx_tail=0x%08x(%d), chip_tx_tail=%d, offset=%d).\n", 1282 addr, nr, tx_ring->tail, tx_tail, chip_tx_tail, 1288 "Recovering %s ECC Error at address 0x%04x (in TX-RAM, tx_obj=%d, tx_tail=0x%08x(%d), offset=%d).\n", 1291 addr, nr, tx_ring->tail, tx_tail, offset);
|
/linux-master/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_main.c | 1199 "queue stopped %d, tx_head %u, tx_tail %u, global_tx_head %u, global_tx_tail %u\n", 1200 netif_queue_stopped(dev), priv->tx_head, priv->tx_tail, 1747 /* priv->tx_head, tx_tail and global_tx_tail/head are already 0 */
|
H A D | ipoib_ib.c | 409 ++priv->tx_tail; 706 if ((int) priv->tx_tail - (int) ah->last_send >= 0) { 820 while (priv->tx_head != priv->tx_tail || recvs_pending(dev)) { 824 priv->tx_head - priv->tx_tail, 831 while ((int)priv->tx_tail - (int)priv->tx_head < 0) { 832 tx_req = &priv->tx_ring[priv->tx_tail & 836 ++priv->tx_tail;
|
H A D | ipoib.h | 253 unsigned int tx_tail; member in struct:ipoib_cm_tx 384 unsigned int tx_tail; member in struct:ipoib_dev_priv
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | sdma.c | 2194 sde->tx_tail, 2302 WARN_ON_ONCE(sde->tx_ring[sde->tx_tail & sde->sdma_mask]); 2304 sde->tx_ring[sde->tx_tail++ & sde->sdma_mask] = tx;
|
H A D | trace_tx.h | 370 __field(u16, tx_tail) 377 __entry->tx_tail = sde->tx_tail; 384 "[%s] SDE(%u) sn %llu hwhead %u swhead %u next_descq_idx %u tx_head %u tx_tail %u", 392 __entry->tx_tail 406 __field(u16, tx_tail) 413 __entry->tx_tail = sde->tx_tail; 419 "[%s] SDE(%u) hwhead %u swhead %u next_descq_idx %u tx_head %u tx_tail %u", 426 __entry->tx_tail [all...] |
H A D | sdma.h | 319 u16 tx_tail; member in struct:sdma_engine
|
/linux-master/drivers/net/ethernet/cadence/ |
H A D | macb_main.c | 1098 queue->tx_tail, queue->tx_head); 1125 for (tail = queue->tx_tail; tail != queue->tx_head; tail++) { 1185 queue->tx_tail = 0; 1242 for (tail = queue->tx_tail; tail != head && packets < budget; tail++) { 1294 queue->tx_tail = tail; 1296 CIRC_CNT(queue->tx_head, queue->tx_tail, 1718 if (queue->tx_head == queue->tx_tail) 1741 if (queue->tx_head != queue->tx_tail) { 1745 if (macb_tx_desc(queue, queue->tx_tail)->ctrl & MACB_BIT(TX_USED)) 2377 if (CIRC_SPACE(queue->tx_head, queue->tx_tail, [all...] |
H A D | macb.h | 1218 /* Lock to protect tx_head and tx_tail */ 1220 unsigned int tx_head, tx_tail; member in struct:macb_queue
|
/linux-master/drivers/net/hamradio/ |
H A D | baycom_epp.c | 186 enum { tx_idle = 0, tx_keyup, tx_data, tx_tail } state; enumerator in enum:baycom_state::__anon678::__anon679 343 bc->ch_params.tx_tail = data[1]; 344 PKP("TX tail = %ums", bc->ch_params.tx_tail); 426 if (bc->hdlctx.state == tx_tail && !(stat & EPP_PTTBIT)) 471 bc->hdlctx.state = tx_tail; 472 bc->hdlctx.flags = tenms_to_flags(bc, bc->ch_params.tx_tail); 484 case tx_tail: 1019 hi.data.cp.tx_tail = bc->ch_params.tx_tail; 1029 bc->ch_params.tx_tail [all...] |
/linux-master/drivers/net/ethernet/moxa/ |
H A D | moxart_ether.c | 132 priv->tx_tail = 0; 282 return CIRC_SPACE(priv->tx_head, priv->tx_tail, TX_DESC_NUM); 289 unsigned int tx_tail = priv->tx_tail; local 291 while (tx_tail != tx_head) { 292 dma_unmap_single(&priv->pdev->dev, priv->tx_mapping[tx_tail], 293 priv->tx_len[tx_tail], DMA_TO_DEVICE); 296 ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len; 298 dev_consume_skb_irq(priv->tx_skb[tx_tail]); 299 priv->tx_skb[tx_tail] [all...] |
/linux-master/drivers/net/ethernet/hisilicon/ |
H A D | hip04_eth.c | 248 unsigned int tx_tail ____cacheline_aligned_in_smp; 450 unsigned tx_tail = priv->tx_tail; local 456 count = tx_count(READ_ONCE(priv->tx_head), tx_tail); 461 desc = &priv->tx_desc[tx_tail]; 469 if (priv->tx_phys[tx_tail]) { 470 dma_unmap_single(priv->dev, priv->tx_phys[tx_tail], 471 priv->tx_skb[tx_tail]->len, 473 priv->tx_phys[tx_tail] = 0; 476 bytes_compl += priv->tx_skb[tx_tail] [all...] |
/linux-master/drivers/net/ethernet/calxeda/ |
H A D | xgmac.c | 363 unsigned int tx_tail; member in struct:xgmac_priv 401 dma_ring_space((p)->tx_head, (p)->tx_tail, DMA_TX_RING_SZ) 769 priv->tx_tail = 0; 868 while (dma_ring_cnt(priv->tx_head, priv->tx_tail, DMA_TX_RING_SZ)) { 869 unsigned int entry = priv->tx_tail; 878 priv->tx_head, priv->tx_tail); 894 priv->tx_tail = dma_ring_incr(entry, DMA_TX_RING_SZ); 897 /* Ensure tx_tail is visible to xgmac_xmit */ 924 priv->tx_tail = 0;
|
/linux-master/drivers/net/ethernet/amd/ |
H A D | au1000_eth.c | 704 aup->tx_tail = aup->tx_head; 866 ptxd = aup->tx_dma_ring[aup->tx_tail]; 874 aup->tx_tail = (aup->tx_tail + 1) & (NUM_TX_DMA - 1); 875 ptxd = aup->tx_dma_ring[aup->tx_tail];
|
/linux-master/drivers/net/ethernet/actions/ |
H A D | owl-emac.c | 637 unsigned int tx_tail; local 640 tx_tail = ring->tail; 641 desc = &ring->descs[tx_tail]; 673 netdev->stats.tx_bytes += ring->skbs[tx_tail]->len; 680 skb = ring->skbs[tx_tail]; 681 owl_emac_dma_unmap_tx(priv, skb, ring->skbs_dma[tx_tail]); 684 ring->skbs[tx_tail] = NULL; 685 ring->skbs_dma[tx_tail] = 0;
|
/linux-master/drivers/net/can/usb/etas_es58x/ |
H A D | es58x_core.h | 239 * @tx_tail: Index of the oldest packet still pending for 240 * completion. @tx_tail & echo_skb_mask represents the beginning 264 u32 tx_tail; member in struct:es58x_priv 291 * @fifo_mask: Bit mask to quickly convert the tx_tail and tx_head
|
H A D | es58x_core.c | 279 u32 num_echo_skb = priv->tx_head - priv->tx_tail; 300 can_free_echo_skb(netdev, priv->tx_tail & fifo_mask, &frame_len); 303 priv->tx_tail++; 331 rcv_packet_idx, priv->tx_tail, priv->tx_head, 332 priv->tx_head - priv->tx_tail, 335 if ((s32)(rcv_packet_idx - priv->tx_tail) < 0) { 349 rcv_packet_idx - priv->tx_tail, 350 priv->tx_tail, rcv_packet_idx - 1); 351 while (priv->tx_tail != rcv_packet_idx) { 352 if (priv->tx_tail [all...] |
/linux-master/drivers/net/can/rcar/ |
H A D | rcar_canfd.c | 536 u32 tx_tail; /* Incremented on xmit done */ member in struct:rcar_canfd_channel 1122 sent = priv->tx_tail % RCANFD_FIFO_DEPTH; 1127 priv->tx_tail++; 1136 if (priv->tx_head - priv->tx_tail <= unsent) { 1556 if (priv->tx_head - priv->tx_tail >= RCANFD_FIFO_DEPTH)
|