Lines Matching refs:queue

82 static int atl1c_alloc_rx_buffer(struct atl1c_adapter *adapter, u32 queue,
367 * @txqueue: index of hanging tx queue
873 * @queue: idx of transmit queue
876 u32 queue)
878 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[queue];
889 netdev_tx_reset_queue(netdev_get_tx_queue(adapter->netdev, queue));
901 * @queue: idx of transmit queue
903 static void atl1c_clean_rx_ring(struct atl1c_adapter *adapter, u32 queue)
905 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[queue];
906 struct atl1c_rrd_ring *rrd_ring = &adapter->rrd_ring[queue];
997 /* Even though only one tpd queue is actually used, the "high"
998 * priority tpd queue also gets initialized
1094 /* just enable normal priority TX queue */
1746 static int atl1c_alloc_rx_buffer(struct atl1c_adapter *adapter, u32 queue,
1749 struct atl1c_rfd_ring *rfd_ring = &adapter->rfd_ring[queue];
1750 struct atl1c_rrd_ring *rrd_ring = &adapter->rrd_ring[queue];
1825 AT_WRITE_REG(&adapter->hw, atl1c_qregs[queue].rfd_prod,
1979 static inline u16 atl1c_tpd_avail(struct atl1c_adapter *adapter, u32 queue)
1981 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[queue];
1999 u32 queue)
2001 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[queue];
2043 u32 queue)
2091 *tpd = atl1c_get_tpd(adapter, queue);
2143 u32 queue)
2145 struct atl1c_tpd_ring *tpd_ring = &adpt->tpd_ring[queue];
2165 u32 queue)
2206 use_tpd = atl1c_get_tpd(adapter, queue);
2228 use_tpd = atl1c_get_tpd(adapter, queue);
2261 static void atl1c_tx_queue(struct atl1c_adapter *adapter, u32 queue)
2263 struct atl1c_tpd_ring *tpd_ring = &adapter->tpd_ring[queue];
2265 AT_WRITE_REGW(&adapter->hw, atl1c_qregs[queue].tpd_prod,
2273 u32 queue = skb_get_queue_mapping(skb);
2274 struct netdev_queue *txq = netdev_get_tx_queue(netdev, queue);
2285 if (atl1c_tpd_avail(adapter, queue) < tpd_req) {
2286 /* no enough descriptor, just stop queue */
2287 atl1c_tx_queue(adapter, queue);
2292 tpd = atl1c_get_tpd(adapter, queue);
2295 if (atl1c_tso_csum(adapter, skb, &tpd, queue) != 0) {
2296 atl1c_tx_queue(adapter, queue);
2314 if (atl1c_tx_map(adapter, skb, tpd, queue) < 0) {
2318 atl1c_tx_rollback(adapter, tpd, queue);
2324 atl1c_tx_queue(adapter, queue);