Lines Matching refs:tqp

658 static void hns3_tqp_enable(struct hnae3_queue *tqp)  in hns3_tqp_enable()  argument
662 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_enable()
664 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_enable()
667 static void hns3_tqp_disable(struct hnae3_queue *tqp) in hns3_tqp_disable() argument
671 rcb_reg = hns3_read_dev(tqp, HNS3_RING_EN_REG); in hns3_tqp_disable()
673 hns3_write_dev(tqp, HNS3_RING_EN_REG, rcb_reg); in hns3_tqp_disable()
729 hns3_tqp_enable(h->kinfo.tqp[j]); in hns3_nic_net_up()
736 hns3_tqp_disable(h->kinfo.tqp[j]); in hns3_nic_net_up()
758 ring->tqp->tqp_index); in hns3_config_xps()
836 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_nic_net_down()
1034 u32 alloc_size = ring->tqp->handle->kinfo.tx_spare_buf_size; in hns3_init_tx_spare_buffer()
1083 ring->tqp->handle->kinfo.tx_spare_buf_size = 0; in hns3_init_tx_spare_buffer()
1487 struct hnae3_handle *handle = tx_ring->tqp->handle; in hns3_handle_vtags()
2068 __iowrite64_copy(ring->tqp->mem_base, desc, in hns3_tx_push_bd()
2086 __iowrite64_copy(ring->tqp->mem_base + HNS3_MEM_DOORBELL_OFFSET, in hns3_tx_mem_doorbell()
2118 if (ring->tqp->mem_base) in hns3_tx_doorbell()
2122 ring->tqp->io_base + HNS3_RING_TX_RING_TAIL_REG); in hns3_tx_doorbell()
3637 dev_queue = netdev_get_tx_queue(netdev, ring->tqp->tqp_index); in hns3_clean_tx_ring()
3688 writel(i, ring->tqp->io_base + in hns3_nic_alloc_rx_buffers()
3700 writel(i, ring->tqp->io_base + HNS3_RING_RX_RING_HEAD_REG); in hns3_nic_alloc_rx_buffers()
3958 struct hnae3_handle *handle = ring->tqp->handle; in hns3_parse_vlan_tag()
3959 struct pci_dev *pdev = ring->tqp->handle->pdev; in hns3_parse_vlan_tag()
4379 skb_record_rx_queue(skb, ring->tqp->tqp_index); in hns3_handle_rx_bd()
4531 chain->tqp_index = ring->tqp->tqp_index; in hns3_create_ring_chain()
4880 ring->tqp = q; in hns3_ring_get_cfg()
4891 static void hns3_queue_to_ring(struct hnae3_queue *tqp, in hns3_queue_to_ring() argument
4894 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_TX); in hns3_queue_to_ring()
4895 hns3_ring_get_cfg(tqp, priv, HNAE3_RING_TYPE_RX); in hns3_queue_to_ring()
4912 hns3_queue_to_ring(h->kinfo.tqp[i], priv); in hns3_get_ring_config()
5045 struct hnae3_queue *q = ring->tqp; in hns3_init_ring_hw()
5079 q = priv->ring[tc_info->tqp_offset[i] + j].tqp; in hns3_init_tx_ring_tc()
5865 hns3_tqp_disable(h->kinfo.tqp[i]); in hns3_external_lb_prepare()
5892 hns3_tqp_enable(h->kinfo.tqp[i]); in hns3_external_lb_restore()