/Linux-v6.6/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() 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-v6.6/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; 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);
|
D | hns3_debugfs.c | 639 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 642 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() 658 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 662 sprintf(result[j++], "%s", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 667 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 669 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 | 469 struct hnae3_queue *tqp; member 636 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
|
D | hnae3.h | 837 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
|
D | hns3_ethtool.c | 1180 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_main.c | 267 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 …]
|
/Linux-v6.6/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.h | 1097 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local 1100 return tqp->index; in hclge_get_queue_id()
|
D | hclge_main.c | 1579 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local 1587 tqp = hdev->htqp; in hclge_alloc_tqps() 1590 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps() 1591 tqp->index = i; in hclge_alloc_tqps() 1593 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps() 1594 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps() 1595 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps() 1596 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps() 1602 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps() 1606 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps() [all …]
|
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_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()
|