Lines Matching defs:napi
230 * @n: napi struct to get the defer_hard_irqs field from
240 * napi_set_defer_hard_irqs - set the defer_hard_irqs for a napi
259 struct napi_struct *napi;
263 list_for_each_entry(napi, &netdev->napi_list, dev_list)
264 napi_set_defer_hard_irqs(napi, defer);
272 * @n: napi struct to get the gro_flush_timeout from
283 * napi_set_gro_flush_timeout - set the gro_flush_timeout for a napi
284 * @n: napi struct to set the gro_flush_timeout
305 struct napi_struct *napi;
309 list_for_each_entry(napi, &netdev->napi_list, dev_list)
310 napi_set_gro_flush_timeout(napi, timeout);
318 * @n: napi struct to get the irq_suspend_timeout from
329 * napi_set_irq_suspend_timeout - set the irq_suspend_timeout for a napi
330 * @n: napi struct to set the irq_suspend_timeout
369 void xdp_do_check_flushed(struct napi_struct *napi);
371 static inline void xdp_do_check_flushed(struct napi_struct *napi) { }
375 static inline void napi_assert_will_not_race(const struct napi_struct *napi)
378 if (!napi->poll_list.next)
382 WARN_ON(!test_bit(NAPI_STATE_SCHED, &napi->state));
383 WARN_ON(READ_ONCE(napi->list_owner) != -1);