Lines Matching refs:queue_num

563 	int queue_num, ret;  in init_dma_desc_rings()  local
569 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in init_dma_desc_rings()
570 ret = init_tx_ring(priv->device, queue_num, in init_dma_desc_rings()
571 priv->txq[queue_num], tx_rsize); in init_dma_desc_rings()
580 priv->txq[queue_num]->priv_ptr = priv; in init_dma_desc_rings()
584 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in init_dma_desc_rings()
585 ret = init_rx_ring(netd, queue_num, in init_dma_desc_rings()
586 priv->rxq[queue_num], rx_rsize); in init_dma_desc_rings()
595 priv->rxq[queue_num]->priv_ptr = priv; in init_dma_desc_rings()
603 while (queue_num--) in init_dma_desc_rings()
604 free_tx_ring(priv->device, priv->txq[queue_num], tx_rsize); in init_dma_desc_rings()
608 while (queue_num--) in init_dma_desc_rings()
609 free_rx_ring(priv->device, priv->rxq[queue_num], rx_rsize); in init_dma_desc_rings()
637 int queue_num; in dma_free_tx_skbufs() local
639 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in dma_free_tx_skbufs()
640 struct sxgbe_tx_queue *tqueue = priv->txq[queue_num]; in dma_free_tx_skbufs()
647 int queue_num; in free_dma_desc_resources() local
655 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in free_dma_desc_resources()
656 free_tx_ring(priv->device, priv->txq[queue_num], tx_rsize); in free_dma_desc_resources()
660 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in free_dma_desc_resources()
661 free_rx_ring(priv->device, priv->rxq[queue_num], rx_rsize); in free_dma_desc_resources()
667 int queue_num; in txring_mem_alloc() local
669 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in txring_mem_alloc()
670 priv->txq[queue_num] = devm_kmalloc(priv->device, in txring_mem_alloc()
672 if (!priv->txq[queue_num]) in txring_mem_alloc()
681 int queue_num; in rxring_mem_alloc() local
683 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in rxring_mem_alloc()
684 priv->rxq[queue_num] = devm_kmalloc(priv->device, in rxring_mem_alloc()
686 if (!priv->rxq[queue_num]) in rxring_mem_alloc()
701 int queue_num; in sxgbe_mtl_operation_mode() local
706 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
707 priv->hw->mtl->set_tx_mtl_mode(priv->ioaddr, queue_num, in sxgbe_mtl_operation_mode()
712 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
713 priv->hw->mtl->set_rx_mtl_mode(priv->ioaddr, queue_num, in sxgbe_mtl_operation_mode()
718 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.tx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
719 priv->hw->mtl->set_tx_mtl_mode(priv->ioaddr, queue_num, in sxgbe_mtl_operation_mode()
722 SXGBE_FOR_EACH_QUEUE(priv->hw_cap.rx_mtl_queues, queue_num) in sxgbe_mtl_operation_mode()
723 priv->hw->mtl->set_rx_mtl_mode(priv->ioaddr, queue_num, in sxgbe_mtl_operation_mode()
798 u8 queue_num; in sxgbe_tx_all_clean() local
800 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_tx_all_clean()
801 struct sxgbe_tx_queue *tqueue = priv->txq[queue_num]; in sxgbe_tx_all_clean()
819 static void sxgbe_restart_tx_queue(struct sxgbe_priv_data *priv, int queue_num) in sxgbe_restart_tx_queue() argument
821 struct sxgbe_tx_queue *tx_ring = priv->txq[queue_num]; in sxgbe_restart_tx_queue()
823 queue_num); in sxgbe_restart_tx_queue()
829 priv->hw->dma->stop_tx_queue(priv->ioaddr, queue_num); in sxgbe_restart_tx_queue()
839 priv->hw->dma->start_tx_queue(priv->ioaddr, queue_num); in sxgbe_restart_tx_queue()
855 int queue_num; in sxgbe_reset_all_tx_queues() local
860 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) in sxgbe_reset_all_tx_queues()
861 sxgbe_restart_tx_queue(priv, queue_num); in sxgbe_reset_all_tx_queues()
958 int queue_num; in sxgbe_init_dma_engine() local
966 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) in sxgbe_init_dma_engine()
967 priv->hw->dma->cha_init(priv->ioaddr, queue_num, in sxgbe_init_dma_engine()
969 (priv->txq[queue_num])->dma_tx_phy, in sxgbe_init_dma_engine()
970 (priv->rxq[queue_num])->dma_rx_phy, in sxgbe_init_dma_engine()
984 int queue_num; in sxgbe_init_mtl_engine() local
986 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_init_mtl_engine()
987 priv->hw->mtl->mtl_set_txfifosize(priv->ioaddr, queue_num, in sxgbe_init_mtl_engine()
989 priv->hw->mtl->mtl_enable_txqueue(priv->ioaddr, queue_num); in sxgbe_init_mtl_engine()
1001 int queue_num; in sxgbe_disable_mtl_engine() local
1003 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) in sxgbe_disable_mtl_engine()
1004 priv->hw->mtl->mtl_disable_txqueue(priv->ioaddr, queue_num); in sxgbe_disable_mtl_engine()
1030 u8 queue_num; in sxgbe_tx_init_coalesce() local
1032 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_tx_init_coalesce()
1033 struct sxgbe_tx_queue *p = priv->txq[queue_num]; in sxgbe_tx_init_coalesce()
1044 u8 queue_num; in sxgbe_tx_del_timer() local
1046 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_tx_del_timer()
1047 struct sxgbe_tx_queue *p = priv->txq[queue_num]; in sxgbe_tx_del_timer()
1064 int ret, queue_num; in sxgbe_open() local
1101 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in sxgbe_open()
1102 priv->hw->mac->enable_rxqueue(priv->ioaddr, queue_num); in sxgbe_open()
1129 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_open()
1131 (priv->txq[queue_num])->irq_no, in sxgbe_open()
1133 dev->name, priv->txq[queue_num]); in sxgbe_open()
1142 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in sxgbe_open()
1144 (priv->rxq[queue_num])->irq_no, in sxgbe_open()
1146 dev->name, priv->rxq[queue_num]); in sxgbe_open()
2068 u8 queue_num; in sxgbe_drv_probe() local
2125 SXGBE_FOR_EACH_QUEUE(SXGBE_TX_QUEUES, queue_num) { in sxgbe_drv_probe()
2126 priv->hw->dma->enable_tso(priv->ioaddr, queue_num); in sxgbe_drv_probe()
2209 u8 queue_num; in sxgbe_drv_remove() local
2213 SXGBE_FOR_EACH_QUEUE(SXGBE_RX_QUEUES, queue_num) { in sxgbe_drv_remove()
2214 priv->hw->mac->disable_rxqueue(priv->ioaddr, queue_num); in sxgbe_drv_remove()