Home
last modified time | relevance | path

Searched refs:tqp (Results 1 – 11 of 11) sorted by relevance

/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h78 __string(devname, ring->tqp->handle->kinfo.netdev->name)
82 __entry->index = ring->tqp->tqp_index;
88 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
110 __string(devname, ring->tqp->handle->kinfo.netdev->name)
114 __entry->index = ring->tqp->tqp_index;
121 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
Dhns3_debugfs.c481 sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
484 sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
487 sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
490 sprintf(result[j++], "%4u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
493 sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
496 sprintf(result[j++], "%6u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
500 sprintf(result[j++], "%7s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
504 sprintf(result[j++], "%10s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
509 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
511 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
[all …]
Dhns3_enet.c658 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
662 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
664 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
667 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
671 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
673 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
729 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
736 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
758 ring->tqp->tqp_index); in hns3_config_xps()
836 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
[all …]
Dhns3_enet.h458 struct hnae3_queue *tqp; member
Dhnae3.h775 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c110 struct hclgevf_tqp *tqp; in hclgevf_tqps_update_stats() local
115 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_update_stats()
120 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
128 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
134 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
142 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
152 struct hclgevf_tqp *tqp; in hclgevf_tqps_get_stats() local
157 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
158 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
161 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c576 struct hclge_tqp *tqp; in hclge_tqps_update_stats() local
580 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
581 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
586 desc[0].data[0] = cpu_to_le32(tqp->index); in hclge_tqps_update_stats()
594 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclge_tqps_update_stats()
599 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
600 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
606 desc[0].data[0] = cpu_to_le32(tqp->index); in hclge_tqps_update_stats()
614 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclge_tqps_update_stats()
624 struct hclge_tqp *tqp; in hclge_tqps_get_stats() local
[all …]
Dhclge_main.h1085 struct hclge_tqp *tqp = container_of(queue, struct hclge_tqp, q); in hclge_get_queue_id() local
1087 return tqp->index; in hclge_get_queue_id()
Dhclge_mbx.c201 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
217 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
Dhclge_tm.c901 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
907 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()
/drivers/net/usb/
Dlan78xx.c3587 struct sk_buff_head *tqp = &dev->txq_pend; in lan78xx_tx_bh() local
3597 spin_lock_irqsave(&tqp->lock, flags); in lan78xx_tx_bh()
3598 skb_queue_walk(tqp, skb) { in lan78xx_tx_bh()
3600 if (!skb_queue_is_first(tqp, skb)) { in lan78xx_tx_bh()
3606 __skb_unlink(skb, tqp); in lan78xx_tx_bh()
3607 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3616 spin_unlock_irqrestore(&tqp->lock, flags); in lan78xx_tx_bh()
3626 skb2 = skb_dequeue(tqp); in lan78xx_tx_bh()