Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_tqp_stats.c13 struct hclge_comm_tqp *tqp; in hclge_comm_tqps_get_stats() local
18 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
19 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
23 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats()
24 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclge_comm_tqps_get_stats()
46 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local
47 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
48 snprintf(buff, ETH_GSTRING_LEN, "txq%u_pktnum_rcd", tqp->index); in hclge_comm_tqps_get_strings()
53 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local
54 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h77 __string(devname, ring->tqp->handle->kinfo.netdev->name)
81 __entry->index = ring->tqp->tqp_index;
109 __string(devname, ring->tqp->handle->kinfo.netdev->name)
113 __entry->index = ring->tqp->tqp_index;
Dhns3_debugfs.c645 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
648 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
651 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
654 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
657 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
660 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
664 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
668 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
673 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
675 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.h471 struct hnae3_queue *tqp; member
638 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
Dhnae3.h857 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
Dhns3_ethtool.c1200 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c304 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local
312 tqp = hdev->htqp; in hclgevf_alloc_tqps()
315 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
316 tqp->index = i; in hclgevf_alloc_tqps()
318 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
319 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
320 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
321 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps()
327 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
331 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
[all …]
/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h1123 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local
1126 return tqp->index; in hclge_get_queue_id()
Dhclge_mbx.c207 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
223 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
Dhclge_main.c1639 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local
1647 tqp = hdev->htqp; in hclge_alloc_tqps()
1650 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps()
1651 tqp->index = i; in hclge_alloc_tqps()
1653 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1654 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps()
1655 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()
1656 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()
1662 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()
1666 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()
[all …]
Dhclge_tm.c954 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
960 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()