Lines Matching refs:tqp
326 static void hns3_tqp_enable(struct hnae3_queue *tqp) in hns3_tqp_enable() argument
330 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
332 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
335 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
339 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
341 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
397 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
404 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
426 ring->tqp->tqp_index); in hns3_config_xps()
499 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
954 struct hnae3_handle *handle = tx_ring->tqp->handle; in hns3_handle_vtags()
1420 ring->tqp->io_base + HNS3_RING_TX_RING_TAIL_REG); in hns3_tx_doorbell()
1904 hw_head = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1906 hw_tail = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1908 fbd_num = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1910 fbd_oft = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1912 ebd_num = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1914 ebd_oft = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1916 bd_num = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1918 bd_err = readl_relaxed(tx_ring->tqp->io_base + in hns3_get_tx_timeo_queue_info()
1920 ring_en = readl_relaxed(tx_ring->tqp->io_base + HNS3_RING_EN_REG); in hns3_get_tx_timeo_queue_info()
1921 tc = readl_relaxed(tx_ring->tqp->io_base + HNS3_RING_TX_RING_TC_REG); in hns3_get_tx_timeo_queue_info()
2576 dev_queue = netdev_get_tx_queue(netdev, ring->tqp->tqp_index); in hns3_clean_tx_ring()
2638 writel(i, ring->tqp->io_base + HNS3_RING_RX_RING_HEAD_REG); in hns3_nic_alloc_rx_buffers()
2816 struct hnae3_handle *handle = ring->tqp->handle; in hns3_parse_vlan_tag()
2817 struct pci_dev *pdev = ring->tqp->handle->pdev; in hns3_parse_vlan_tag()
3016 struct hnae3_handle *handle = ring->tqp->handle; in hns3_set_rx_skb_rss_type()
3173 skb_record_rx_queue(skb, ring->tqp->tqp_index); in hns3_handle_rx_bd()
3414 cur_chain->tqp_index = tx_ring->tqp->tqp_index; in hns3_get_vector_ring_chain()
3431 chain->tqp_index = tx_ring->tqp->tqp_index; in hns3_get_vector_ring_chain()
3446 cur_chain->tqp_index = rx_ring->tqp->tqp_index; in hns3_get_vector_ring_chain()
3461 chain->tqp_index = rx_ring->tqp->tqp_index; in hns3_get_vector_ring_chain()
3717 ring->tqp = q; in hns3_ring_get_cfg()
3729 static void hns3_queue_to_ring(struct hnae3_queue *tqp, in hns3_queue_to_ring() argument
3732 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_TX); in hns3_queue_to_ring()
3733 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_RX); in hns3_queue_to_ring()
3750 hns3_queue_to_ring(h->kinfo.tqp[i], priv); in hns3_get_ring_config()
3841 struct hnae3_queue *q = ring->tqp; in hns3_init_ring_hw()
3879 q = priv->ring[tc_info->tqp_offset + j].tqp; in hns3_init_tx_ring_tc()