Home
last modified time | relevance | path

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

/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()
44 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local
45 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
46 snprintf(buff, ETH_GSTRING_LEN, "txq%u_pktnum_rcd", tqp->index); in hclge_comm_tqps_get_strings()
51 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local
52 container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_strings()
[all …]
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_trace.h77 __string(devname, ring->tqp->handle->kinfo.netdev->name)
81 __entry->index = ring->tqp->tqp_index;
87 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
109 __string(devname, ring->tqp->handle->kinfo.netdev->name)
113 __entry->index = ring->tqp->tqp_index;
120 __assign_str(devname, ring->tqp->handle->kinfo.netdev->name);
Dhns3_debugfs.c642 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
645 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()
661 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
665 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
670 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
672 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.h837 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
Dhns3_ethtool.c1195 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c267 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local
275 tqp = hdev->htqp; in hclgevf_alloc_tqps()
278 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
279 tqp->index = i; in hclgevf_alloc_tqps()
281 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
282 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
283 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
284 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps()
290 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
294 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
[all …]
/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h1100 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local
1103 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.c1583 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local
1591 tqp = hdev->htqp; in hclge_alloc_tqps()
1594 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps()
1595 tqp->index = i; in hclge_alloc_tqps()
1597 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1598 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps()
1599 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()
1600 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()
1606 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()
1610 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()