Lines Matching refs:tqp
549 struct hclge_tqp *tqp; in hclge_tqps_update_stats() local
553 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
554 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
559 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
567 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclge_tqps_update_stats()
572 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
573 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
579 desc[0].data[0] = cpu_to_le32((tqp->index & 0x1ff)); in hclge_tqps_update_stats()
587 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclge_tqps_update_stats()
597 struct hclge_tqp *tqp; in hclge_tqps_get_stats() local
602 tqp = container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_tqps_get_stats()
603 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclge_tqps_get_stats()
607 tqp = container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_tqps_get_stats()
608 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclge_tqps_get_stats()
629 struct hclge_tqp *tqp = container_of(handle->kinfo.tqp[i], in hclge_tqps_get_strings() local
632 tqp->index); in hclge_tqps_get_strings()
637 struct hclge_tqp *tqp = container_of(kinfo->tqp[i], in hclge_tqps_get_strings() local
640 tqp->index); in hclge_tqps_get_strings()
1576 struct hclge_tqp *tqp; in hclge_alloc_tqps() local
1584 tqp = hdev->htqp; in hclge_alloc_tqps()
1587 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps()
1588 tqp->index = i; in hclge_alloc_tqps()
1590 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1591 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps()
1592 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()
1593 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()
1594 tqp->q.io_base = hdev->hw.io_base + HCLGE_TQP_REG_OFFSET + in hclge_alloc_tqps()
1597 tqp++; in hclge_alloc_tqps()
1640 kinfo->tqp[alloced] = &hdev->htqp[i].q; in hclge_assign_tqp()
1670 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup()
1672 if (!kinfo->tqp) in hclge_knic_setup()
1692 container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_map_tqp_to_vport()
6934 struct hclge_tqp *tqp; in hclge_reset_tqp_stats() local
6939 queue = handle->kinfo.tqp[i]; in hclge_reset_tqp_stats()
6940 tqp = container_of(queue, struct hclge_tqp, q); in hclge_reset_tqp_stats()
6941 memset(&tqp->tqp_stats, 0, sizeof(tqp->tqp_stats)); in hclge_reset_tqp_stats()
9348 struct hclge_tqp *tqp; in hclge_covert_handle_qid_global() local
9350 queue = handle->kinfo.tqp[queue_id]; in hclge_covert_handle_qid_global()
9351 tqp = container_of(queue, struct hclge_tqp, q); in hclge_covert_handle_qid_global()
9353 return tqp->index; in hclge_covert_handle_qid_global()