aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/efx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sfc/efx.c')
-rw-r--r--drivers/net/sfc/efx.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 4b7168fc546a..e5c33c66eda3 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -213,7 +213,7 @@ static int efx_process_channel(struct efx_channel *channel, int rx_quota)
213 !channel->enabled)) 213 !channel->enabled))
214 return 0; 214 return 0;
215 215
216 rx_packets = falcon_process_eventq(channel, rx_quota); 216 rx_packets = efx_nic_process_eventq(channel, rx_quota);
217 if (rx_packets == 0) 217 if (rx_packets == 0)
218 return 0; 218 return 0;
219 219
@@ -245,7 +245,7 @@ static inline void efx_channel_processed(struct efx_channel *channel)
245 channel->work_pending = false; 245 channel->work_pending = false;
246 smp_wmb(); 246 smp_wmb();
247 247
248 falcon_eventq_read_ack(channel); 248 efx_nic_eventq_read_ack(channel);
249} 249}
250 250
251/* NAPI poll handler 251/* NAPI poll handler
@@ -316,7 +316,7 @@ void efx_process_channel_now(struct efx_channel *channel)
316 BUG_ON(!channel->enabled); 316 BUG_ON(!channel->enabled);
317 317
318 /* Disable interrupts and wait for ISRs to complete */ 318 /* Disable interrupts and wait for ISRs to complete */
319 falcon_disable_interrupts(efx); 319 efx_nic_disable_interrupts(efx);
320 if (efx->legacy_irq) 320 if (efx->legacy_irq)
321 synchronize_irq(efx->legacy_irq); 321 synchronize_irq(efx->legacy_irq);
322 if (channel->irq) 322 if (channel->irq)
@@ -333,7 +333,7 @@ void efx_process_channel_now(struct efx_channel *channel)
333 efx_channel_processed(channel); 333 efx_channel_processed(channel);
334 334
335 napi_enable(&channel->napi_str); 335 napi_enable(&channel->napi_str);
336 falcon_enable_interrupts(efx); 336 efx_nic_enable_interrupts(efx);
337} 337}
338 338
339/* Create event queue 339/* Create event queue
@@ -345,7 +345,7 @@ static int efx_probe_eventq(struct efx_channel *channel)
345{ 345{
346 EFX_LOG(channel->efx, "chan %d create event queue\n", channel->channel); 346 EFX_LOG(channel->efx, "chan %d create event queue\n", channel->channel);
347 347
348 return falcon_probe_eventq(channel); 348 return efx_nic_probe_eventq(channel);
349} 349}
350 350
351/* Prepare channel's event queue */ 351/* Prepare channel's event queue */
@@ -355,21 +355,21 @@ static void efx_init_eventq(struct efx_channel *channel)
355 355
356 channel->eventq_read_ptr = 0; 356 channel->eventq_read_ptr = 0;
357 357
358 falcon_init_eventq(channel); 358 efx_nic_init_eventq(channel);
359} 359}
360 360
361static void efx_fini_eventq(struct efx_channel *channel) 361static void efx_fini_eventq(struct efx_channel *channel)
362{ 362{
363 EFX_LOG(channel->efx, "chan %d fini event queue\n", channel->channel); 363 EFX_LOG(channel->efx, "chan %d fini event queue\n", channel->channel);
364 364
365 falcon_fini_eventq(channel); 365 efx_nic_fini_eventq(channel);
366} 366}
367 367
368static void efx_remove_eventq(struct efx_channel *channel) 368static void efx_remove_eventq(struct efx_channel *channel)
369{ 369{
370 EFX_LOG(channel->efx, "chan %d remove event queue\n", channel->channel); 370 EFX_LOG(channel->efx, "chan %d remove event queue\n", channel->channel);
371 371
372 falcon_remove_eventq(channel); 372 efx_nic_remove_eventq(channel);
373} 373}
374 374
375/************************************************************************** 375/**************************************************************************
@@ -535,7 +535,7 @@ static void efx_fini_channels(struct efx_nic *efx)
535 EFX_ASSERT_RESET_SERIALISED(efx); 535 EFX_ASSERT_RESET_SERIALISED(efx);
536 BUG_ON(efx->port_enabled); 536 BUG_ON(efx->port_enabled);
537 537
538 rc = falcon_flush_queues(efx); 538 rc = efx_nic_flush_queues(efx);
539 if (rc) 539 if (rc)
540 EFX_ERR(efx, "failed to flush queues\n"); 540 EFX_ERR(efx, "failed to flush queues\n");
541 else 541 else
@@ -1172,7 +1172,7 @@ static void efx_start_all(struct efx_nic *efx)
1172 efx_for_each_channel(channel, efx) 1172 efx_for_each_channel(channel, efx)
1173 efx_start_channel(channel); 1173 efx_start_channel(channel);
1174 1174
1175 falcon_enable_interrupts(efx); 1175 efx_nic_enable_interrupts(efx);
1176 1176
1177 /* Start the hardware monitor if there is one. Otherwise (we're link 1177 /* Start the hardware monitor if there is one. Otherwise (we're link
1178 * event driven), we have to poll the PHY because after an event queue 1178 * event driven), we have to poll the PHY because after an event queue
@@ -1226,7 +1226,7 @@ static void efx_stop_all(struct efx_nic *efx)
1226 efx->type->stop_stats(efx); 1226 efx->type->stop_stats(efx);
1227 1227
1228 /* Disable interrupts and wait for ISR to complete */ 1228 /* Disable interrupts and wait for ISR to complete */
1229 falcon_disable_interrupts(efx); 1229 efx_nic_disable_interrupts(efx);
1230 if (efx->legacy_irq) 1230 if (efx->legacy_irq)
1231 synchronize_irq(efx->legacy_irq); 1231 synchronize_irq(efx->legacy_irq);
1232 efx_for_each_channel(channel, efx) { 1232 efx_for_each_channel(channel, efx) {
@@ -1286,8 +1286,8 @@ void efx_init_irq_moderation(struct efx_nic *efx, int tx_usecs, int rx_usecs,
1286{ 1286{
1287 struct efx_tx_queue *tx_queue; 1287 struct efx_tx_queue *tx_queue;
1288 struct efx_rx_queue *rx_queue; 1288 struct efx_rx_queue *rx_queue;
1289 unsigned tx_ticks = irq_mod_ticks(tx_usecs, FALCON_IRQ_MOD_RESOLUTION); 1289 unsigned tx_ticks = irq_mod_ticks(tx_usecs, EFX_IRQ_MOD_RESOLUTION);
1290 unsigned rx_ticks = irq_mod_ticks(rx_usecs, FALCON_IRQ_MOD_RESOLUTION); 1290 unsigned rx_ticks = irq_mod_ticks(rx_usecs, EFX_IRQ_MOD_RESOLUTION);
1291 1291
1292 EFX_ASSERT_RESET_SERIALISED(efx); 1292 EFX_ASSERT_RESET_SERIALISED(efx);
1293 1293
@@ -2042,7 +2042,7 @@ static void efx_fini_struct(struct efx_nic *efx)
2042 */ 2042 */
2043static void efx_pci_remove_main(struct efx_nic *efx) 2043static void efx_pci_remove_main(struct efx_nic *efx)
2044{ 2044{
2045 falcon_fini_interrupt(efx); 2045 efx_nic_fini_interrupt(efx);
2046 efx_fini_channels(efx); 2046 efx_fini_channels(efx);
2047 efx_fini_port(efx); 2047 efx_fini_port(efx);
2048 efx->type->fini(efx); 2048 efx->type->fini(efx);
@@ -2119,7 +2119,7 @@ static int efx_pci_probe_main(struct efx_nic *efx)
2119 2119
2120 efx_init_channels(efx); 2120 efx_init_channels(efx);
2121 2121
2122 rc = falcon_init_interrupt(efx); 2122 rc = efx_nic_init_interrupt(efx);
2123 if (rc) 2123 if (rc)
2124 goto fail5; 2124 goto fail5;
2125 2125