Lines Matching refs:tqp

655 static void hns3_tqp_enable(struct hnae3_queue *tqp)  in hns3_tqp_enable()  argument
659 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
661 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
664 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
668 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
670 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
726 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
733 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
755 ring->tqp->tqp_index); in hns3_config_xps()
833 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
1031 u32 alloc_size = ring->tqp->handle->kinfo.tx_spare_buf_size; in hns3_init_tx_spare_buffer()
1080 ring->tqp->handle->kinfo.tx_spare_buf_size = 0; in hns3_init_tx_spare_buffer()
1484 struct hnae3_handle *handle = tx_ring->tqp->handle; in hns3_handle_vtags()
2065 __iowrite64_copy(ring->tqp->mem_base, desc, in hns3_tx_push_bd()
2083 __iowrite64_copy(ring->tqp->mem_base + HNS3_MEM_DOORBELL_OFFSET, in hns3_tx_mem_doorbell()
2115 if (ring->tqp->mem_base) in hns3_tx_doorbell()
2119 ring->tqp->io_base + HNS3_RING_TX_RING_TAIL_REG); in hns3_tx_doorbell()
3592 dev_queue = netdev_get_tx_queue(netdev, ring->tqp->tqp_index); in hns3_clean_tx_ring()
3643 writel(i, ring->tqp->io_base + in hns3_nic_alloc_rx_buffers()
3655 writel(i, ring->tqp->io_base + HNS3_RING_RX_RING_HEAD_REG); in hns3_nic_alloc_rx_buffers()
3915 struct hnae3_handle *handle = ring->tqp->handle; in hns3_parse_vlan_tag()
3916 struct pci_dev *pdev = ring->tqp->handle->pdev; in hns3_parse_vlan_tag()
4134 struct hnae3_handle *handle = ring->tqp->handle; in hns3_set_rx_skb_rss_type()
4315 skb_record_rx_queue(skb, ring->tqp->tqp_index); in hns3_handle_rx_bd()
4467 chain->tqp_index = ring->tqp->tqp_index; in hns3_create_ring_chain()
4816 ring->tqp = q; in hns3_ring_get_cfg()
4827 static void hns3_queue_to_ring(struct hnae3_queue *tqp, in hns3_queue_to_ring() argument
4830 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_TX); in hns3_queue_to_ring()
4831 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_RX); in hns3_queue_to_ring()
4848 hns3_queue_to_ring(h->kinfo.tqp[i], priv); in hns3_get_ring_config()
4981 struct hnae3_queue *q = ring->tqp; in hns3_init_ring_hw()
5015 q = priv->ring[tc_info->tqp_offset[i] + j].tqp; in hns3_init_tx_ring_tc()