Lines Matching refs:tqp
106 struct hclgevf_tqp *tqp; in hclgevf_tqps_update_stats() local
111 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_update_stats()
116 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
124 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
130 desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); in hclgevf_tqps_update_stats()
138 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclgevf_tqps_update_stats()
148 struct hclgevf_tqp *tqp; in hclgevf_tqps_get_stats() local
153 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
154 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
157 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_tqps_get_stats()
158 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclgevf_tqps_get_stats()
178 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], in hclgevf_tqps_get_strings() local
181 tqp->index); in hclgevf_tqps_get_strings()
186 struct hclgevf_tqp *tqp = container_of(kinfo->tqp[i], in hclgevf_tqps_get_strings() local
189 tqp->index); in hclgevf_tqps_get_strings()
388 struct hclgevf_tqp *tqp; in hclgevf_alloc_tqps() local
396 tqp = hdev->htqp; in hclgevf_alloc_tqps()
399 tqp->dev = &hdev->pdev->dev; in hclgevf_alloc_tqps()
400 tqp->index = i; in hclgevf_alloc_tqps()
402 tqp->q.ae_algo = &ae_algovf; in hclgevf_alloc_tqps()
403 tqp->q.buf_size = hdev->rx_buf_len; in hclgevf_alloc_tqps()
404 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclgevf_alloc_tqps()
405 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclgevf_alloc_tqps()
406 tqp->q.io_base = hdev->hw.io_base + HCLGEVF_TQP_REG_OFFSET + in hclgevf_alloc_tqps()
409 tqp++; in hclgevf_alloc_tqps()
436 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, kinfo->num_tqps, in hclgevf_knic_setup()
438 if (!kinfo->tqp) in hclgevf_knic_setup()
444 kinfo->tqp[i] = &hdev->htqp[i].q; in hclgevf_knic_setup()
1214 struct hclgevf_tqp *tqp; in hclgevf_reset_tqp_stats() local
1218 tqp = container_of(kinfo->tqp[i], struct hclgevf_tqp, q); in hclgevf_reset_tqp_stats()
1219 memset(&tqp->tqp_stats, 0, sizeof(tqp->tqp_stats)); in hclgevf_reset_tqp_stats()