Home
last modified time | relevance | path

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

/linux-5.19.10/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 …]
/linux-5.19.10/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.c603 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
606 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
609 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
612 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
615 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
618 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
622 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
626 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
631 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
633 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info()
[all …]
Dhns3_enet.c655 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
659 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
661 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
664 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
668 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
670 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
726 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
733 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
755 ring->tqp->tqp_index); in hns3_config_xps()
833 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
[all …]
Dhns3_enet.h468 struct hnae3_queue *tqp; member
635 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
Dhnae3.h789 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
Dhns3_ethtool.c1148 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c319 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local
327 tqp = hdev->htqp; in hclgevf_alloc_tqps()
330 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
331 tqp->index = i; in hclgevf_alloc_tqps()
333 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
334 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
335 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
336 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps()
342 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
346 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()
[all …]
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.h1066 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local
1069 return tqp->index; in hclge_get_queue_id()
Dhclge_mbx.c202 hclge_get_queue_id(vport->nic.kinfo.tqp in hclge_get_ring_chain_from_mbx()
218 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.c912 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
918 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()