Lines Matching refs:ena_napi
192 struct ena_napi *ena_napi = container_of(napi, struct ena_napi, napi); in ena_xdp_io_poll() local
198 xdp_ring = ena_napi->xdp_ring; in ena_xdp_io_poll()
680 ring->napi = &adapter->ena_napi[qid].napi; in ena_init_io_rings_common()
729 adapter->ena_napi[i].dim.mode = DIM_CQ_PERIOD_MODE_START_FROM_EQE; in ena_init_io_rings()
1263 cancel_work_sync(&adapter->ena_napi[i].dim.work); in ena_destroy_all_rx_queues()
1858 struct ena_napi *ena_napi = container_of(dim, struct ena_napi, dim); in ena_dim_work() local
1860 ena_napi->rx_ring->smoothed_interval = cur_moder.usec; in ena_dim_work()
1864 static void ena_adjust_adaptive_rx_intr_moderation(struct ena_napi *ena_napi) in ena_adjust_adaptive_rx_intr_moderation() argument
1867 struct ena_ring *rx_ring = ena_napi->rx_ring; in ena_adjust_adaptive_rx_intr_moderation()
1879 net_dim(&ena_napi->dim, dim_sample); in ena_adjust_adaptive_rx_intr_moderation()
2016 struct ena_napi *ena_napi = container_of(napi, struct ena_napi, napi); in ena_io_poll() local
2024 tx_ring = ena_napi->tx_ring; in ena_io_poll()
2025 rx_ring = ena_napi->rx_ring; in ena_io_poll()
2057 READ_ONCE(ena_napi->interrupts_masked)) { in ena_io_poll()
2059 WRITE_ONCE(ena_napi->interrupts_masked, false); in ena_io_poll()
2064 ena_adjust_adaptive_rx_intr_moderation(ena_napi); in ena_io_poll()
2104 struct ena_napi *ena_napi = data; in ena_intr_msix_io() local
2107 WRITE_ONCE(ena_napi->first_interrupt, true); in ena_intr_msix_io()
2109 WRITE_ONCE(ena_napi->interrupts_masked, true); in ena_intr_msix_io()
2112 napi_schedule_irqoff(&ena_napi->napi); in ena_intr_msix_io()
2197 adapter->irq_tbl[irq_idx].data = &adapter->ena_napi[i]; in ena_setup_io_intr()
2328 netif_napi_del(&adapter->ena_napi[i].napi); in ena_del_napi_in_range()
2331 adapter->ena_napi[i].xdp_ring); in ena_del_napi_in_range()
2341 struct ena_napi *napi = &adapter->ena_napi[i]; in ena_init_napi_in_range()
2363 napi_disable(&adapter->ena_napi[i].napi); in ena_napi_disable_in_range()
2373 napi_enable(&adapter->ena_napi[i].napi); in ena_napi_enable_in_range()
2559 INIT_WORK(&adapter->ena_napi[i].dim.work, ena_dim_work); in ena_create_all_io_rx_queues()
2566 cancel_work_sync(&adapter->ena_napi[i].dim.work); in ena_create_all_io_rx_queues()
2735 napi_schedule(&adapter->ena_napi[i].napi); in ena_up()
3911 struct ena_napi *ena_napi = container_of(rx_ring->napi, struct ena_napi, napi); in check_for_rx_interrupt_queue() local
3913 if (likely(READ_ONCE(ena_napi->first_interrupt))) in check_for_rx_interrupt_queue()
3936 struct ena_napi *ena_napi = container_of(tx_ring->napi, struct ena_napi, napi); in check_missing_comp_in_tx_queue() local
3956 if (unlikely(!READ_ONCE(ena_napi->first_interrupt) && is_tx_comp_time_expired)) { in check_missing_comp_in_tx_queue()