Searched refs:tx_tail (Results 1 - 25 of 43) sorted by relevance

12

/linux-master/include/uapi/linux/
H A Dhdlcdrv.h28 int tx_tail; /* the transmitter keyoff delay in 10ms units */ member in struct:hdlcdrv_channel_params
/linux-master/drivers/net/ethernet/moxa/
H A Dmoxart_ether.c132 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 Dhip04_eth.c248 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/amd/
H A Dau1000_eth.h79 u32 tx_tail; member in struct:au1000_private
/linux-master/drivers/net/ethernet/seeq/
H A Dether3.c336 priv(dev)->tx_tail = 0;
466 priv(dev)->tx_head, priv(dev)->tx_tail);
467 ether3_setbuffer(dev, buffer_read, priv(dev)->tx_tail);
474 priv(dev)->tx_head = priv(dev)->tx_tail = 0;
506 if (priv(dev)->tx_tail == next_ptr) {
539 if (priv(dev)->tx_tail == next_ptr)
687 unsigned int tx_tail = priv(dev)->tx_tail; local
696 ether3_setbuffer(dev, buffer_read, tx_tail * 0x600);
719 tx_tail
[all...]
H A Dether3.h162 unsigned char tx_tail; /* buffer nr of transmitting packet */ member in struct:dev_priv
/linux-master/drivers/net/can/usb/etas_es58x/
H A Des58x_core.c279 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...]
H A Des58x_fd.c82 rcv_packet_idx = (priv->tx_tail & mask) | echo_msg[0].packet_idx;
95 return es58x_can_get_echo_skb(netdev, priv->tx_tail, tstamps, num_element);
/linux-master/drivers/net/ethernet/silan/
H A Dsc92031.c282 unsigned tx_tail; member in struct:sc92031_priv
410 while (priv->tx_head - priv->tx_tail > 0) {
411 priv->tx_tail++;
414 priv->tx_head = priv->tx_tail = 0;
656 old_tx_tail = priv->tx_tail;
657 while (priv->tx_head - priv->tx_tail > 0) {
658 entry = priv->tx_tail % NUM_TX_DESC;
664 priv->tx_tail++;
690 if (priv->tx_tail != old_tx_tail)
953 BUG_ON(priv->tx_head - priv->tx_tail >
[all...]
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_cmd.h95 __le16 tx_tail; member in struct:hclgevf_cfg_tx_queue_pointer_cmd
/linux-master/drivers/net/can/
H A Dbxcan.c179 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...]
H A Dti_hecc.c188 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 Dat91_can.c159 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)
/linux-master/drivers/net/hamradio/
H A Dbaycom_epp.c186 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...]
H A Dhdlcdrv.c238 s->ch_params.tx_tail = data[1];
239 PKP("TX tail = %ums", s->ch_params.tx_tail);
292 int flgs = tenms_to_2flags(s, s->ch_params.tx_tail);
510 bi.data.cp.tx_tail = s->ch_params.tx_tail;
520 s->ch_params.tx_tail = bi.data.cp.tx_tail;
/linux-master/drivers/net/ethernet/dec/tulip/
H A 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)
293 unsigned tx_tail; member in struct:de_private
506 de->rx_tail, de->tx_head, de->tx_tail);
542 unsigned tx_tail = de->tx_tail; local
544 while (tx_tail != tx_head) {
549 status = le32_to_cpu(de->tx_ring[tx_tail].opts1);
553 skb = de->tx_skb[tx_tail]
[all...]
/linux-master/arch/sparc/kernel/
H A Dldc.c124 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/realtek/
H A 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)
342 unsigned tx_tail; member in struct:cp_private
651 unsigned tx_tail = cp->tx_tail; local
654 while (tx_tail != tx_head) {
655 struct cp_desc *txd = cp->tx_ring + tx_tail;
664 skb = cp->tx_skb[tx_tail];
668 cp->tx_opts[tx_tail]
[all...]
/linux-master/drivers/net/ethernet/i825xx/
H A Dether1.h40 volatile unsigned int tx_tail; member in struct:ether1_priv
H A Dether1.c503 priv(dev)->tx_tail = TDR_ADDR;
617 tail = priv(dev)->tx_tail;
747 caddr = priv(dev)->tx_tail;
761 priv(dev)->tx_tail = NOP_ADDR;
832 priv(dev)->tx_tail = caddr;
/linux-master/drivers/net/ethernet/actions/
H A Dowl-emac.c637 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/infiniband/hw/hfi1/
H A Dtrace_tx.h370 __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...]
/linux-master/drivers/infiniband/ulp/ipoib/
H A Dipoib_ib.c409 ++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;
/linux-master/drivers/net/can/rcar/
H A Drcar_can.c98 u32 tx_tail; member in struct:rcar_can_priv
379 if (priv->tx_head - priv->tx_tail <= unsent)
384 priv->tx_tail % RCAR_CAN_FIFO_DEPTH,
387 priv->tx_tail++;
621 if (priv->tx_head - priv->tx_tail >= RCAR_CAN_FIFO_DEPTH)
/linux-master/drivers/net/ethernet/ti/
H A Dtlan.c1054 tail_list = priv->tx_list + priv->tx_tail;
1056 priv->tx_list_dma + sizeof(struct tlan_list)*priv->tx_tail;
1061 dev->name, priv->tx_head, priv->tx_tail);
1085 priv->tx_tail);
1091 priv->tx_tail);
1092 if (priv->tx_tail == 0) {
1096 (priv->tx_list + (priv->tx_tail - 1))->forward
1102 CIRC_INC(priv->tx_tail, TLAN_NUM_TX_LISTS);
1357 priv->tx_head, priv->tx_tail);
1391 priv->tx_head, priv->tx_tail);
[all...]

Completed in 394 milliseconds

12