| /linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
| H A 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() 23 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_get_stats() 45 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local 51 struct hclge_comm_tqp *tqp = in hclge_comm_tqps_get_strings() local 62 struct hclge_comm_tqp *tqp; in hclge_comm_tqps_update_stats() local 68 tqp = container_of(kinfo->tqp[i], struct hclge_comm_tqp, q); in hclge_comm_tqps_update_stats() 72 desc.data[0] = cpu_to_le32(tqp->index); in hclge_comm_tqps_update_stats() 105 struct hclge_comm_tqp *tqp; in hclge_comm_reset_tqp_stats() local 110 queue = kinfo->tqp[i]; in hclge_comm_reset_tqp_stats() [all …]
|
| /linux-6.15/drivers/net/ethernet/hisilicon/hns3/ |
| H A 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;
|
| H A D | hns3_debugfs.c | 646 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 649 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 652 sprintf(result[j++], "%u", readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 666 str_on_off(readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 671 str_on_off(readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 676 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 678 base_add_l = readl_relaxed(ring->tqp->io_base + in hns3_dump_rx_queue_info() 771 str_on_off(readl_relaxed(ring->tqp->io_base + in hns3_dump_tx_queue_info() 776 str_on_off(readl_relaxed(ring->tqp->io_base + in hns3_dump_tx_queue_info() 781 base_add_h = readl_relaxed(ring->tqp->io_base + in hns3_dump_tx_queue_info() [all …]
|
| H A D | hns3_enet.c | 656 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable() 717 hns3_tqp_enable(h->kinfo.tqp[i]); in hns3_enable_irqs_and_tqps() 727 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_disable_irqs_and_tqps() 773 ring->tqp->tqp_index); in hns3_config_xps() 2075 __iowrite64_copy(ring->tqp->mem_base, desc, in hns3_tx_push_bd() 2130 if (ring->tqp->mem_base) in hns3_tx_doorbell() 3707 writel(i, ring->tqp->io_base + in hns3_nic_alloc_rx_buffers() 4550 chain->tqp_index = ring->tqp->tqp_index; in hns3_create_ring_chain() 4899 ring->tqp = q; in hns3_ring_get_cfg() 4931 hns3_queue_to_ring(h->kinfo.tqp[i], priv); in hns3_get_ring_config() [all …]
|
| H A D | hns3_enet.h | 471 struct hnae3_queue *tqp; member 638 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()
|
| H A D | hnae3.h | 857 struct hnae3_queue **tqp; /* array base of all TQPs in this instance */ member
|
| H A D | hns3_ethtool.c | 1181 h->kinfo.tqp[i]->buf_size = rx_buf_len; in hns3_change_rx_buf_len()
|
| /linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_regs.c | 129 struct hnae3_queue *tqp; in hclgevf_get_regs() local 150 tqp = &hdev->htqp[j].q; in hclgevf_get_regs() 152 *reg++ = readl_relaxed(tqp->io_base - in hclgevf_get_regs()
|
| H A D | hclgevf_main.c | 302 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local 310 tqp = hdev->htqp; in hclgevf_alloc_tqps() 313 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps() 314 tqp->index = i; in hclgevf_alloc_tqps() 316 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps() 317 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps() 318 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps() 319 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps() 343 tqp++; in hclgevf_alloc_tqps() 373 if (!kinfo->tqp) in hclgevf_knic_setup() [all …]
|
| /linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_regs.c | 515 struct hnae3_queue *tqp; in hclge_fetch_pf_reg() local 536 tqp = kinfo->tqp[j]; in hclge_fetch_pf_reg() 538 *reg++ = readl_relaxed(tqp->io_base - in hclge_fetch_pf_reg()
|
| H A 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()
|
| H A 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()
|
| H A D | hclge_main.c | 1630 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local 1638 tqp = hdev->htqp; in hclge_alloc_tqps() 1641 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps() 1642 tqp->index = i; in hclge_alloc_tqps() 1644 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps() 1645 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps() 1671 tqp++; in hclge_alloc_tqps() 1747 if (!kinfo->tqp) in hclge_knic_setup() 10808 struct hclge_comm_tqp *tqp; in hclge_covert_handle_qid_global() local 10811 queue = handle->kinfo.tqp[queue_id]; in hclge_covert_handle_qid_global() [all …]
|
| H A 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()
|