Searched refs:tqp (Results 1 – 9 of 9) sorted by relevance
129 struct hnae3_queue *tqp; in hclgevf_get_regs() local150 tqp = &hdev->htqp[j].q; in hclgevf_get_regs()152 *reg++ = readl_relaxed(tqp->io_base - in hclgevf_get_regs()
302 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local310 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()325 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()329 tqp->q.io_base = hdev->hw.hw.io_base + in hclgevf_alloc_tqps()[all …]
515 struct hnae3_queue *tqp; in hclge_fetch_pf_reg() local536 tqp = kinfo->tqp[j]; in hclge_fetch_pf_reg()538 *reg++ = readl_relaxed(tqp->io_base - in hclge_fetch_pf_reg()
1123 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local1126 return tqp->index; in hclge_get_queue_id()
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()
1630 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local1638 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()1646 tqp->q.tx_desc_num = hdev->num_tx_desc; in hclge_alloc_tqps()1647 tqp->q.rx_desc_num = hdev->num_rx_desc; in hclge_alloc_tqps()1653 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()1657 tqp->q.io_base = hdev->hw.hw.io_base + in hclge_alloc_tqps()[all …]
954 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local960 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()
653 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument657 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()659 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()662 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument666 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()668 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()718 hns3_tqp_enable(h->kinfo.tqp[i]); in hns3_enable_irqs_and_tqps()728 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_disable_irqs_and_tqps()774 ring->tqp->tqp_index); in hns3_config_xps()1042 u32 alloc_size = ring->tqp->handle->kinfo.tx_spare_buf_size; in hns3_init_tx_spare_buffer()[all …]
471 struct hnae3_queue *tqp; member640 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()