Lines Matching refs:tqp

614 	struct hclge_tqp *tqp;  in hclge_tqps_update_stats()  local
618 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
619 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
624 desc[0].data[0] = cpu_to_le32(tqp->index); in hclge_tqps_update_stats()
632 tqp->tqp_stats.rcb_rx_ring_pktnum_rcd += in hclge_tqps_update_stats()
637 queue = handle->kinfo.tqp[i]; in hclge_tqps_update_stats()
638 tqp = container_of(queue, struct hclge_tqp, q); in hclge_tqps_update_stats()
644 desc[0].data[0] = cpu_to_le32(tqp->index); in hclge_tqps_update_stats()
652 tqp->tqp_stats.rcb_tx_ring_pktnum_rcd += in hclge_tqps_update_stats()
662 struct hclge_tqp *tqp; in hclge_tqps_get_stats() local
667 tqp = container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_tqps_get_stats()
668 *buff++ = tqp->tqp_stats.rcb_tx_ring_pktnum_rcd; in hclge_tqps_get_stats()
672 tqp = container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_tqps_get_stats()
673 *buff++ = tqp->tqp_stats.rcb_rx_ring_pktnum_rcd; in hclge_tqps_get_stats()
694 struct hclge_tqp *tqp = container_of(handle->kinfo.tqp[i], in hclge_tqps_get_strings() local
697 tqp->index); in hclge_tqps_get_strings()
702 struct hclge_tqp *tqp = container_of(kinfo->tqp[i], in hclge_tqps_get_strings() local
705 tqp->index); in hclge_tqps_get_strings()
1739 struct hclge_tqp *tqp; in hclge_alloc_tqps() local
1747 tqp = hdev->htqp; in hclge_alloc_tqps()
1750 tqp->dev = &hdev->pdev->dev; in hclge_alloc_tqps()
1751 tqp->index = i; in hclge_alloc_tqps()
1753 tqp->q.ae_algo = &ae_algo; in hclge_alloc_tqps()
1754 tqp->q.buf_size = hdev->rx_buf_len; in hclge_alloc_tqps()
1755 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()
1756 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()
1762 tqp->q.io_base = hdev->hw.io_base + in hclge_alloc_tqps()
1766 tqp->q.io_base = hdev->hw.io_base + in hclge_alloc_tqps()
1772 tqp++; in hclge_alloc_tqps()
1815 kinfo->tqp[alloced] = &hdev->htqp[i].q; in hclge_assign_tqp()
1846 kinfo->tqp = devm_kcalloc(&hdev->pdev->dev, num_tqps, in hclge_knic_setup()
1848 if (!kinfo->tqp) in hclge_knic_setup()
1868 container_of(kinfo->tqp[i], struct hclge_tqp, q); in hclge_map_tqp_to_vport()
8221 struct hclge_tqp *tqp; in hclge_reset_tqp_stats() local
8226 queue = handle->kinfo.tqp[i]; in hclge_reset_tqp_stats()
8227 tqp = container_of(queue, struct hclge_tqp, q); in hclge_reset_tqp_stats()
8228 memset(&tqp->tqp_stats, 0, sizeof(tqp->tqp_stats)); in hclge_reset_tqp_stats()
10885 struct hclge_tqp *tqp; in hclge_covert_handle_qid_global() local
10887 queue = handle->kinfo.tqp[queue_id]; in hclge_covert_handle_qid_global()
10888 tqp = container_of(queue, struct hclge_tqp, q); in hclge_covert_handle_qid_global()
10890 return tqp->index; in hclge_covert_handle_qid_global()