/linux-6.12.1/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_tqp_stats.c | 13 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/ |
D | hns3_trace.h | 77 __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;
|
D | hns3_debugfs.c | 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() 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 …]
|
D | hns3_enet.c | 658 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 …]
|
D | hns3_enet.h | 471 struct hnae3_queue *tqp; member 638 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
|
D | hnae3.h | 857 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
|
D | hns3_ethtool.c | 1200 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/ |
D | hclgevf_main.c | 304 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/ |
D | hclge_main.h | 1123 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local 1126 return tqp->index; in hclge_get_queue_id()
|
D | hclge_mbx.c | 207 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()
|
D | hclge_main.c | 1639 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 …]
|
D | hclge_tm.c | 954 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()
|