Lines Matching full:napi

190  * napi_get_defer_hard_irqs - get the NAPI's defer_hard_irqs
191 * @n: napi struct to get the defer_hard_irqs field from
193 * Return: the per-NAPI value of the defar_hard_irqs field.
201 * napi_set_defer_hard_irqs - set the defer_hard_irqs for a napi
220 struct napi_struct *napi; in netdev_set_defer_hard_irqs() local
224 list_for_each_entry(napi, &netdev->napi_list, dev_list) in netdev_set_defer_hard_irqs()
225 napi_set_defer_hard_irqs(napi, defer); in netdev_set_defer_hard_irqs()
233 * @n: napi struct to get the gro_flush_timeout from
235 * Return: the per-NAPI value of the gro_flush_timeout field.
244 * napi_set_gro_flush_timeout - set the gro_flush_timeout for a napi
245 * @n: napi struct to set the gro_flush_timeout
248 * napi_set_gro_flush_timeout sets the per-NAPI gro_flush_timeout
266 struct napi_struct *napi; in netdev_set_gro_flush_timeout() local
270 list_for_each_entry(napi, &netdev->napi_list, dev_list) in netdev_set_gro_flush_timeout()
271 napi_set_gro_flush_timeout(napi, timeout); in netdev_set_gro_flush_timeout()
279 * @n: napi struct to get the irq_suspend_timeout from
281 * Return: the per-NAPI value of the irq_suspend_timeout field.
290 * napi_set_irq_suspend_timeout - set the irq_suspend_timeout for a napi
291 * @n: napi struct to set the irq_suspend_timeout
294 * napi_set_irq_suspend_timeout sets the per-NAPI irq_suspend_timeout
305 void xdp_do_check_flushed(struct napi_struct *napi);
307 static inline void xdp_do_check_flushed(struct napi_struct *napi) { } in xdp_do_check_flushed() argument
310 /* Best effort check that NAPI is not idle (can't be scheduled to run) */
311 static inline void napi_assert_will_not_race(const struct napi_struct *napi) in napi_assert_will_not_race() argument
314 if (!napi->poll_list.next) in napi_assert_will_not_race()
318 WARN_ON(!test_bit(NAPI_STATE_SCHED, &napi->state)); in napi_assert_will_not_race()
319 WARN_ON(READ_ONCE(napi->list_owner) != -1); in napi_assert_will_not_race()