Lines Matching refs:tqp

110 	struct hclgevf_tqp *tqp;  in hclgevf_tqps_update_stats()  local
115 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_update_stats()
120 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
128 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
134 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
142 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
152 struct hclgevf_tqp *tqp; in hclgevf_tqps_get_stats() local
157 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
158 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
161 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
162 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
182 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], in hclgevf_tqps_get_strings() local
185 tqp->index); in hclgevf_tqps_get_strings()
190 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], in hclgevf_tqps_get_strings() local
193 tqp->index); in hclgevf_tqps_get_strings()
400 struct hclgevf_tqp *tqp; in hclgevf_alloc_tqps() local
408 tqp = hdev->htqp; in hclgevf_alloc_tqps()
411 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
412 tqp->index = i; in hclgevf_alloc_tqps()
414 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
415 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
416 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
417 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps()
423 tqp->q.io_base = hdev->hw.io_base + in hclgevf_alloc_tqps()
427 tqp->q.io_base = hdev->hw.io_base + in hclgevf_alloc_tqps()
433 tqp++; in hclgevf_alloc_tqps()
461 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup()
463 if (!kinfo->tqp) in hclgevf_knic_setup()
469 kinfo->tqp[i] = &hdev->htqp[i].q; in hclgevf_knic_setup()
1308 struct hclgevf_tqp *tqp; in hclgevf_reset_tqp_stats() local
1312 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_reset_tqp_stats()
1313 memset(&tqp->tqp_stats, 0, sizeof(tqp->tqp_stats)); in hclgevf_reset_tqp_stats()