Home
last modified time | relevance | path

Searched refs:tqp (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_regs.c129 struct hnae3_queue *tqp; in hclgevf_get_regs() local
150 tqp = &hdev->htqp[j].q; in hclgevf_get_regs()
152 *reg++ = readl_relaxed(tqp->io_base - in hclgevf_get_regs()
H A Dhclgevf_main.c302 struct hclge_comm_tqp *tqp; in hclgevf_alloc_tqps() local
310 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 …]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_regs.c515 struct hnae3_queue *tqp; in hclge_fetch_pf_reg() local
536 tqp = kinfo->tqp[j]; in hclge_fetch_pf_reg()
538 *reg++ = readl_relaxed(tqp->io_base - in hclge_fetch_pf_reg()
H A Dhclge_main.h1123 struct hclge_comm_tqp *tqp = in hclge_get_queue_id() local
1126 return tqp->index; in hclge_get_queue_id()
H A Dhclge_mbx.c207 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()
H A Dhclge_main.c1630 struct hclge_comm_tqp *tqp; in hclge_alloc_tqps() local
1638 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 …]
H A Dhclge_tm.c954 struct hnae3_queue **tqp = kinfo->tqp; in hclge_vport_q_to_qs_map() local
960 struct hnae3_queue *q = tqp[tc_info->tqp_offset[i] + j]; in hclge_vport_q_to_qs_map()
/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_enet.c653 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
657 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() argument
666 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 …]
H A Dhns3_enet.h471 struct hnae3_queue *tqp; member
640 return readl_relaxed(ring->tqp->io_base + reg); in hns3_tqp_read_reg()