Lines Matching refs:txq

1080 	netif_tx_stop_queue(q->txq);  in eth_txq_stop()
2377 struct sge_ofld_txq *txq = s->egr_map[id]; in sge_tx_timer_cb() local
2380 tasklet_schedule(&txq->qresume_tsk); in sge_tx_timer_cb()
2389 time_after_eq(jiffies, q->txq->trans_start + HZ / 100) && in sge_tx_timer_cb()
2390 __netif_tx_trylock(q->txq)) { in sge_tx_timer_cb()
2401 __netif_tx_unlock(q->txq); in sge_tx_timer_cb()
2570 int t4_sge_alloc_eth_txq(struct adapter *adap, struct sge_eth_txq *txq, in t4_sge_alloc_eth_txq() argument
2580 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_eth_txq()
2582 txq->q.desc = alloc_ring(adap->pdev_dev, txq->q.size, in t4_sge_alloc_eth_txq()
2584 &txq->q.phys_addr, &txq->q.sdesc, s->stat_len, in t4_sge_alloc_eth_txq()
2586 if (!txq->q.desc) in t4_sge_alloc_eth_txq()
2606 c.eqaddr = cpu_to_be64(txq->q.phys_addr); in t4_sge_alloc_eth_txq()
2610 kfree(txq->q.sdesc); in t4_sge_alloc_eth_txq()
2611 txq->q.sdesc = NULL; in t4_sge_alloc_eth_txq()
2614 txq->q.desc, txq->q.phys_addr); in t4_sge_alloc_eth_txq()
2615 txq->q.desc = NULL; in t4_sge_alloc_eth_txq()
2619 init_txq(adap, &txq->q, FW_EQ_ETH_CMD_EQID_G(ntohl(c.eqid_pkd))); in t4_sge_alloc_eth_txq()
2620 txq->txq = netdevq; in t4_sge_alloc_eth_txq()
2621 txq->tso = txq->tx_cso = txq->vlan_ins = 0; in t4_sge_alloc_eth_txq()
2622 txq->mapping_err = 0; in t4_sge_alloc_eth_txq()
2626 int t4_sge_alloc_ctrl_txq(struct adapter *adap, struct sge_ctrl_txq *txq, in t4_sge_alloc_ctrl_txq() argument
2636 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_ctrl_txq()
2638 txq->q.desc = alloc_ring(adap->pdev_dev, nentries, in t4_sge_alloc_ctrl_txq()
2639 sizeof(struct tx_desc), 0, &txq->q.phys_addr, in t4_sge_alloc_ctrl_txq()
2641 if (!txq->q.desc) in t4_sge_alloc_ctrl_txq()
2660 c.eqaddr = cpu_to_be64(txq->q.phys_addr); in t4_sge_alloc_ctrl_txq()
2666 txq->q.desc, txq->q.phys_addr); in t4_sge_alloc_ctrl_txq()
2667 txq->q.desc = NULL; in t4_sge_alloc_ctrl_txq()
2671 init_txq(adap, &txq->q, FW_EQ_CTRL_CMD_EQID_G(ntohl(c.cmpliqid_eqid))); in t4_sge_alloc_ctrl_txq()
2672 txq->adap = adap; in t4_sge_alloc_ctrl_txq()
2673 skb_queue_head_init(&txq->sendq); in t4_sge_alloc_ctrl_txq()
2674 tasklet_init(&txq->qresume_tsk, restart_ctrlq, (unsigned long)txq); in t4_sge_alloc_ctrl_txq()
2675 txq->full = 0; in t4_sge_alloc_ctrl_txq()
2679 int t4_sge_alloc_ofld_txq(struct adapter *adap, struct sge_ofld_txq *txq, in t4_sge_alloc_ofld_txq() argument
2688 nentries = txq->q.size + s->stat_len / sizeof(struct tx_desc); in t4_sge_alloc_ofld_txq()
2690 txq->q.desc = alloc_ring(adap->pdev_dev, txq->q.size, in t4_sge_alloc_ofld_txq()
2692 &txq->q.phys_addr, &txq->q.sdesc, s->stat_len, in t4_sge_alloc_ofld_txq()
2694 if (!txq->q.desc) in t4_sge_alloc_ofld_txq()
2712 c.eqaddr = cpu_to_be64(txq->q.phys_addr); in t4_sge_alloc_ofld_txq()
2716 kfree(txq->q.sdesc); in t4_sge_alloc_ofld_txq()
2717 txq->q.sdesc = NULL; in t4_sge_alloc_ofld_txq()
2720 txq->q.desc, txq->q.phys_addr); in t4_sge_alloc_ofld_txq()
2721 txq->q.desc = NULL; in t4_sge_alloc_ofld_txq()
2725 init_txq(adap, &txq->q, FW_EQ_OFLD_CMD_EQID_G(ntohl(c.eqid_pkd))); in t4_sge_alloc_ofld_txq()
2726 txq->adap = adap; in t4_sge_alloc_ofld_txq()
2727 skb_queue_head_init(&txq->sendq); in t4_sge_alloc_ofld_txq()
2728 tasklet_init(&txq->qresume_tsk, restart_ofldq, (unsigned long)txq); in t4_sge_alloc_ofld_txq()
2729 txq->full = 0; in t4_sge_alloc_ofld_txq()
2730 txq->mapping_err = 0; in t4_sge_alloc_ofld_txq()