• Home
  • Raw
  • Download

Lines Matching refs:dev_queue

1776 static inline void netif_tx_start_queue(struct netdev_queue *dev_queue)  in netif_tx_start_queue()  argument
1778 clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_start_queue()
1802 static inline void netif_tx_wake_queue(struct netdev_queue *dev_queue) in netif_tx_wake_queue() argument
1806 netif_tx_start_queue(dev_queue); in netif_tx_wake_queue()
1810 if (test_and_clear_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state)) in netif_tx_wake_queue()
1811 __netif_schedule(dev_queue->qdisc); in netif_tx_wake_queue()
1836 static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue) in netif_tx_stop_queue() argument
1838 if (WARN_ON(!dev_queue)) { in netif_tx_stop_queue()
1842 set_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_stop_queue()
1867 static inline bool netif_tx_queue_stopped(const struct netdev_queue *dev_queue) in netif_tx_queue_stopped() argument
1869 return test_bit(__QUEUE_STATE_DRV_XOFF, &dev_queue->state); in netif_tx_queue_stopped()
1883 static inline bool netif_xmit_stopped(const struct netdev_queue *dev_queue) in netif_xmit_stopped() argument
1885 return dev_queue->state & QUEUE_STATE_ANY_XOFF; in netif_xmit_stopped()
1888 static inline bool netif_xmit_frozen_or_stopped(const struct netdev_queue *dev_queue) in netif_xmit_frozen_or_stopped() argument
1890 return dev_queue->state & QUEUE_STATE_ANY_XOFF_OR_FROZEN; in netif_xmit_frozen_or_stopped()
1893 static inline void netdev_tx_sent_queue(struct netdev_queue *dev_queue, in netdev_tx_sent_queue() argument
1897 dql_queued(&dev_queue->dql, bytes); in netdev_tx_sent_queue()
1899 if (likely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
1902 set_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state); in netdev_tx_sent_queue()
1912 if (unlikely(dql_avail(&dev_queue->dql) >= 0)) in netdev_tx_sent_queue()
1913 clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state); in netdev_tx_sent_queue()
1922 static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, in netdev_tx_completed_queue() argument
1929 dql_completed(&dev_queue->dql, bytes); in netdev_tx_completed_queue()
1938 if (dql_avail(&dev_queue->dql) < 0) in netdev_tx_completed_queue()
1941 if (test_and_clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state)) in netdev_tx_completed_queue()
1942 netif_schedule_queue(dev_queue); in netdev_tx_completed_queue()
1960 static inline void netdev_reset_queue(struct net_device *dev_queue) in netdev_reset_queue() argument
1962 netdev_tx_reset_queue(netdev_get_tx_queue(dev_queue, 0)); in netdev_reset_queue()