Home
last modified time | relevance | path

Searched refs:rx_queue (Results 1 – 25 of 118) sorted by relevance

12345

/drivers/net/ethernet/sfc/falcon/
A Drx.c115 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in ef4_reuse_page()
122 if (rx_queue->page_remove != rx_queue->page_add) in ef4_reuse_page()
191 index = rx_queue->added_count & rx_queue->ptr_mask; in ef4_init_rx_buffers()
256 index = rx_queue->page_add & rx_queue->page_ptr_mask; in ef4_recycle_rx_page()
367 if (rx_queue->added_count == rx_queue->removed_count) in ef4_fast_push_rx_descriptors()
376 rx_queue->added_count - rx_queue->removed_count); in ef4_fast_push_rx_descriptors()
379 if (rx_queue->notified_count != rx_queue->added_count) in ef4_fast_push_rx_descriptors()
750 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in ef4_init_rx_queue()
761 rx_queue->page_add = rx_queue->page_ptr_mask + 1; in ef4_init_rx_queue()
792 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in ef4_fini_rx_queue()
[all …]
A Dnic.h112 return ((ef4_qword_t *) (rx_queue->rxd.buf.addr)) + index; in ef4_rx_desc()
335 return rx_queue->efx->type->rx_probe(rx_queue); in ef4_nic_probe_rx()
339 rx_queue->efx->type->rx_init(rx_queue); in ef4_nic_init_rx()
343 rx_queue->efx->type->rx_remove(rx_queue); in ef4_nic_remove_rx()
347 rx_queue->efx->type->rx_write(rx_queue); in ef4_nic_notify_rx_desc()
351 rx_queue->efx->type->rx_defer_refill(rx_queue); in ef4_nic_generate_fill_event()
390 int ef4_farch_rx_probe(struct ef4_rx_queue *rx_queue);
391 void ef4_farch_rx_init(struct ef4_rx_queue *rx_queue);
392 void ef4_farch_rx_fini(struct ef4_rx_queue *rx_queue);
393 void ef4_farch_rx_remove(struct ef4_rx_queue *rx_queue);
[all …]
A Dfarch.c497 rx_queue, in ef4_farch_rx_write()
498 rx_queue->notified_count & rx_queue->ptr_mask); in ef4_farch_rx_write()
503 write_ptr = rx_queue->added_count & rx_queue->ptr_mask; in ef4_farch_rx_write()
536 ef4_rx_queue_index(rx_queue), rx_queue->rxd.index, in ef4_farch_rx_init()
537 rx_queue->rxd.index + rx_queue->rxd.entries - 1); in ef4_farch_rx_init()
592 ef4_free_special_buffer(rx_queue->efx, &rx_queue->rxd); in ef4_farch_rx_remove()
1014 rx_queue->removed_count & rx_queue->ptr_mask, in ef4_farch_handle_rx_event()
1016 rx_queue->removed_count += rx_queue->scatter_n; in ef4_farch_handle_rx_event()
1028 rx_queue->removed_count & rx_queue->ptr_mask, in ef4_farch_handle_rx_event()
1079 rx_queue->removed_count & rx_queue->ptr_mask, in ef4_farch_handle_rx_event()
[all …]
A Dnet_driver.h444 struct ef4_rx_queue rx_queue; member
1090 int (*rx_probe)(struct ef4_rx_queue *rx_queue);
1091 void (*rx_init)(struct ef4_rx_queue *rx_queue);
1092 void (*rx_remove)(struct ef4_rx_queue *rx_queue);
1093 void (*rx_write)(struct ef4_rx_queue *rx_queue);
1236 return channel->rx_queue.core_index >= 0; in ef4_channel_has_rx_queue()
1243 return &channel->rx_queue; in ef4_channel_get_rx_queue()
1251 for (_rx_queue = &(_channel)->rx_queue; \
1258 return container_of(rx_queue, struct ef4_channel, rx_queue); in ef4_rx_queue_channel()
1263 return ef4_rx_queue_channel(rx_queue)->channel; in ef4_rx_queue_index()
[all …]
A Defx.h40 int ef4_probe_rx_queue(struct ef4_rx_queue *rx_queue);
41 void ef4_remove_rx_queue(struct ef4_rx_queue *rx_queue);
42 void ef4_init_rx_queue(struct ef4_rx_queue *rx_queue);
43 void ef4_fini_rx_queue(struct ef4_rx_queue *rx_queue);
44 void ef4_fast_push_rx_descriptors(struct ef4_rx_queue *rx_queue, bool atomic);
47 void ef4_rx_packet(struct ef4_rx_queue *rx_queue, unsigned int index,
54 void ef4_schedule_slow_fill(struct ef4_rx_queue *rx_queue);
/drivers/net/ethernet/sfc/
A Drx_common.c44 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in efx_reuse_page()
51 if (rx_queue->page_remove != rx_queue->page_add) in efx_reuse_page()
86 index = rx_queue->page_add & rx_queue->page_ptr_mask; in efx_recycle_rx_page()
227 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_init_rx_queue()
239 rx_queue->page_add = rx_queue->page_ptr_mask + 1; in efx_init_rx_queue()
244 rx_queue->old_rx_packets = rx_queue->rx_packets; in efx_init_rx_queue()
245 rx_queue->old_rx_bytes = rx_queue->rx_bytes; in efx_init_rx_queue()
283 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_fini_rx_queue()
309 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_remove_rx_queue()
411 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
[all …]
A Def100_rx.c137 ++rx_queue->rx_packets; in __ef100_rx_packet()
138 rx_queue->rx_bytes += rx_buf->len; in __ef100_rx_packet()
153 struct efx_nic *efx = rx_queue->efx; in ef100_rx_packet()
186 ef100_rx_packet(rx_queue, in efx_ef100_ev_rx()
187 rx_queue->removed_count & rx_queue->ptr_mask); in efx_ef100_ev_rx()
188 ++rx_queue->removed_count; in efx_ef100_ev_rx()
203 rxd = efx_rx_desc(rx_queue, idx); in ef100_rx_write()
214 rx_queue->added_count & rx_queue->ptr_mask); in ef100_rx_write()
215 efx_writed_page(rx_queue->efx, &rxdb, in ef100_rx_write()
217 if (rx_queue->grant_credits) in ef100_rx_write()
[all …]
A Drx.c47 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet__check_len()
124 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet()
128 rx_buf = efx_rx_buffer(rx_queue, index); in efx_rx_packet()
148 efx_rx_queue_index(rx_queue), index, in efx_rx_packet()
195 rx_buf = efx_rx_buffer(rx_queue, index); in efx_rx_packet()
215 struct efx_rx_queue *rx_queue; in efx_rx_deliver() local
253 struct efx_rx_queue *rx_queue; in efx_do_xdp() local
269 efx_free_rx_buffers(rx_queue, rx_buf, in efx_do_xdp()
390 efx_free_rx_buffers(rx_queue, rx_buf, in __efx_rx_packet()
395 rx_queue->rx_packets++; in __efx_rx_packet()
[all …]
A Dnic_common.h98 efx_rx_desc(struct efx_rx_queue *rx_queue, unsigned int index) in efx_rx_desc() argument
100 return ((efx_qword_t *)(rx_queue->rxd.addr)) + index; in efx_rx_desc()
138 static inline int efx_nic_probe_rx(struct efx_rx_queue *rx_queue) in efx_nic_probe_rx() argument
140 return rx_queue->efx->type->rx_probe(rx_queue); in efx_nic_probe_rx()
142 static inline void efx_nic_init_rx(struct efx_rx_queue *rx_queue) in efx_nic_init_rx() argument
144 rx_queue->efx->type->rx_init(rx_queue); in efx_nic_init_rx()
146 static inline void efx_nic_remove_rx(struct efx_rx_queue *rx_queue) in efx_nic_remove_rx() argument
148 rx_queue->efx->type->rx_remove(rx_queue); in efx_nic_remove_rx()
150 static inline void efx_nic_notify_rx_desc(struct efx_rx_queue *rx_queue) in efx_nic_notify_rx_desc() argument
152 rx_queue->efx->type->rx_write(rx_queue); in efx_nic_notify_rx_desc()
[all …]
A Dmcdi_functions.c272 return efx_nic_alloc_buffer(rx_queue->efx, &rx_queue->rxd, in efx_mcdi_rx_probe()
273 (rx_queue->ptr_mask + 1) * in efx_mcdi_rx_probe()
283 struct efx_nic *efx = rx_queue->efx; in efx_mcdi_rx_init()
290 rx_queue->scatter_n = 0; in efx_mcdi_rx_init()
291 rx_queue->scatter_len = 0; in efx_mcdi_rx_init()
309 dma_addr = rx_queue->rxd.dma_addr; in efx_mcdi_rx_init()
323 efx_rx_queue_index(rx_queue)); in efx_mcdi_rx_init()
328 efx_nic_free_buffer(rx_queue->efx, &rx_queue->rxd); in efx_mcdi_rx_remove()
335 struct efx_nic *efx = rx_queue->efx; in efx_mcdi_rx_fini()
358 struct efx_rx_queue *rx_queue; in efx_fini_dmaq() local
[all …]
A Drx_common.h55 int efx_probe_rx_queue(struct efx_rx_queue *rx_queue);
56 void efx_init_rx_queue(struct efx_rx_queue *rx_queue);
57 void efx_fini_rx_queue(struct efx_rx_queue *rx_queue);
58 void efx_remove_rx_queue(struct efx_rx_queue *rx_queue);
59 void efx_destroy_rx_queue(struct efx_rx_queue *rx_queue);
61 void efx_init_rx_buffer(struct efx_rx_queue *rx_queue,
75 void efx_free_rx_buffers(struct efx_rx_queue *rx_queue,
79 void efx_schedule_slow_fill(struct efx_rx_queue *rx_queue);
81 void efx_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue, bool atomic);
A Defx_channels.c532 struct efx_rx_queue *rx_queue; in efx_alloc_channel() local
557 rx_queue = &channel->rx_queue; in efx_alloc_channel()
558 rx_queue->efx = efx; in efx_alloc_channel()
602 struct efx_rx_queue *rx_queue; in efx_copy_channel() local
628 rx_queue = &channel->rx_queue; in efx_copy_channel()
629 rx_queue->buffer = NULL; in efx_copy_channel()
630 memset(&rx_queue->rxd, 0, sizeof(rx_queue->rxd)); in efx_copy_channel()
642 struct efx_rx_queue *rx_queue; in efx_probe_channel() local
742 struct efx_rx_queue *rx_queue; in efx_remove_channel() local
1092 struct efx_rx_queue *rx_queue; in efx_start_channels() local
[all …]
A Dtc_counters.c280 struct efx_rx_queue *rx_queue = &channel->rx_queue; in efx_tc_probe_channel() local
283 rx_queue->core_index = 0; in efx_tc_probe_channel()
295 return efx_mae_start_counters(efx, rx_queue); in efx_tc_start_channel()
304 rc = efx_mae_stop_counters(efx, rx_queue); in efx_tc_stop_channel()
309 rx_queue->grant_credits = false; in efx_tc_stop_channel()
310 flush_work(&rx_queue->grant_work); in efx_tc_stop_channel()
510 static bool efx_tc_rx(struct efx_rx_queue *rx_queue, u32 mark) in efx_tc_rx() argument
512 struct efx_channel *channel = efx_rx_queue_channel(rx_queue); in efx_tc_rx()
513 struct efx_rx_buffer *rx_buf = efx_rx_buffer(rx_queue, in efx_tc_rx()
516 struct efx_nic *efx = rx_queue->efx; in efx_tc_rx()
[all …]
A Dmcdi_functions.h25 int efx_mcdi_rx_probe(struct efx_rx_queue *rx_queue);
26 void efx_mcdi_rx_init(struct efx_rx_queue *rx_queue);
27 void efx_mcdi_rx_remove(struct efx_rx_queue *rx_queue);
28 void efx_mcdi_rx_fini(struct efx_rx_queue *rx_queue);
A Dnet_driver.h577 struct efx_rx_queue rx_queue; member
1464 int (*rx_probe)(struct efx_rx_queue *rx_queue);
1465 void (*rx_init)(struct efx_rx_queue *rx_queue);
1656 return channel->rx_queue.core_index >= 0; in efx_channel_has_rx_queue()
1663 return &channel->rx_queue; in efx_channel_get_rx_queue()
1671 for (_rx_queue = &(_channel)->rx_queue; \
1678 return container_of(rx_queue, struct efx_channel, rx_queue); in efx_rx_queue_channel()
1683 return efx_rx_queue_channel(rx_queue)->channel; in efx_rx_queue_index()
1692 return &rx_queue->buffer[index]; in efx_rx_buffer()
1698 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
[all …]
/drivers/net/ethernet/sfc/siena/
A Drx_common.c47 index = rx_queue->page_remove & rx_queue->page_ptr_mask; in efx_reuse_page()
54 if (rx_queue->page_remove != rx_queue->page_add) in efx_reuse_page()
89 index = rx_queue->page_add & rx_queue->page_ptr_mask; in efx_recycle_rx_page()
230 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_siena_init_rx_queue()
241 rx_queue->page_add = rx_queue->page_ptr_mask + 1; in efx_siena_init_rx_queue()
282 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_siena_fini_rx_queue()
289 for (i = rx_queue->removed_count; i < rx_queue->added_count; in efx_siena_fini_rx_queue()
306 netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, in efx_siena_remove_rx_queue()
408 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
498 rx_queue->added_count - rx_queue->removed_count); in efx_siena_fast_push_rx_descriptors()
[all …]
A Drx.c47 struct efx_nic *efx = rx_queue->efx; in efx_rx_packet__check_len()
124 struct efx_nic *efx = rx_queue->efx; in efx_siena_rx_packet()
128 rx_queue->rx_packets++; in efx_siena_rx_packet()
130 rx_buf = efx_rx_buffer(rx_queue, index); in efx_siena_rx_packet()
150 efx_rx_queue_index(rx_queue), index, in efx_siena_rx_packet()
187 rx_buf = efx_rx_buf_next(rx_queue, rx_buf); in efx_siena_rx_packet()
197 rx_buf = efx_rx_buffer(rx_queue, index); in efx_siena_rx_packet()
217 struct efx_rx_queue *rx_queue; in efx_rx_deliver() local
255 struct efx_rx_queue *rx_queue; in efx_do_xdp() local
271 efx_siena_free_rx_buffers(rx_queue, rx_buf, in efx_do_xdp()
[all …]
A Dnic_common.h97 efx_rx_desc(struct efx_rx_queue *rx_queue, unsigned int index) in efx_rx_desc() argument
99 return ((efx_qword_t *) (rx_queue->rxd.buf.addr)) + index; in efx_rx_desc()
137 static inline int efx_nic_probe_rx(struct efx_rx_queue *rx_queue) in efx_nic_probe_rx() argument
139 return rx_queue->efx->type->rx_probe(rx_queue); in efx_nic_probe_rx()
141 static inline void efx_nic_init_rx(struct efx_rx_queue *rx_queue) in efx_nic_init_rx() argument
143 rx_queue->efx->type->rx_init(rx_queue); in efx_nic_init_rx()
145 static inline void efx_nic_remove_rx(struct efx_rx_queue *rx_queue) in efx_nic_remove_rx() argument
147 rx_queue->efx->type->rx_remove(rx_queue); in efx_nic_remove_rx()
149 static inline void efx_nic_notify_rx_desc(struct efx_rx_queue *rx_queue) in efx_nic_notify_rx_desc() argument
151 rx_queue->efx->type->rx_write(rx_queue); in efx_nic_notify_rx_desc()
[all …]
A Dfarch.c491 rx_queue, in efx_farch_rx_write()
492 rx_queue->notified_count & rx_queue->ptr_mask); in efx_farch_rx_write()
497 write_ptr = rx_queue->added_count & rx_queue->ptr_mask; in efx_farch_rx_write()
524 efx_rx_queue_index(rx_queue), rx_queue->rxd.index, in efx_farch_rx_init()
525 rx_queue->rxd.index + rx_queue->rxd.entries - 1); in efx_farch_rx_init()
580 efx_free_special_buffer(rx_queue->efx, &rx_queue->rxd); in efx_farch_rx_remove()
1007 rx_queue->removed_count & rx_queue->ptr_mask, in efx_farch_handle_rx_event()
1009 rx_queue->removed_count += rx_queue->scatter_n; in efx_farch_handle_rx_event()
1021 rx_queue->removed_count & rx_queue->ptr_mask, in efx_farch_handle_rx_event()
1072 rx_queue->removed_count & rx_queue->ptr_mask, in efx_farch_handle_rx_event()
[all …]
A Defx_channels.c534 struct efx_rx_queue *rx_queue; in efx_alloc_channel() local
559 rx_queue = &channel->rx_queue; in efx_alloc_channel()
560 rx_queue->efx = efx; in efx_alloc_channel()
605 struct efx_rx_queue *rx_queue; in efx_copy_channel() local
631 rx_queue = &channel->rx_queue; in efx_copy_channel()
632 rx_queue->buffer = NULL; in efx_copy_channel()
633 memset(&rx_queue->rxd, 0, sizeof(rx_queue->rxd)); in efx_copy_channel()
645 struct efx_rx_queue *rx_queue; in efx_probe_channel() local
748 struct efx_rx_queue *rx_queue; in efx_siena_remove_channel() local
881 rx_queue->rxd.index + in efx_siena_realloc_channels()
[all …]
A Drx_common.h55 int efx_siena_probe_rx_queue(struct efx_rx_queue *rx_queue);
56 void efx_siena_init_rx_queue(struct efx_rx_queue *rx_queue);
57 void efx_siena_fini_rx_queue(struct efx_rx_queue *rx_queue);
58 void efx_siena_remove_rx_queue(struct efx_rx_queue *rx_queue);
68 void efx_siena_free_rx_buffers(struct efx_rx_queue *rx_queue,
73 void efx_siena_fast_push_rx_descriptors(struct efx_rx_queue *rx_queue,
A Dnet_driver.h545 struct efx_rx_queue rx_queue; member
1356 int (*rx_probe)(struct efx_rx_queue *rx_queue);
1357 void (*rx_init)(struct efx_rx_queue *rx_queue);
1549 return channel->rx_queue.core_index >= 0; in efx_channel_has_rx_queue()
1556 return &channel->rx_queue; in efx_channel_get_rx_queue()
1564 for (_rx_queue = &(_channel)->rx_queue; \
1571 return container_of(rx_queue, struct efx_channel, rx_queue); in efx_rx_queue_channel()
1576 return efx_rx_queue_channel(rx_queue)->channel; in efx_rx_queue_index()
1585 return &rx_queue->buffer[index]; in efx_rx_buffer()
1591 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
[all …]
A Dnic.h131 int efx_farch_rx_probe(struct efx_rx_queue *rx_queue);
132 void efx_farch_rx_init(struct efx_rx_queue *rx_queue);
133 void efx_farch_rx_fini(struct efx_rx_queue *rx_queue);
134 void efx_farch_rx_remove(struct efx_rx_queue *rx_queue);
135 void efx_farch_rx_write(struct efx_rx_queue *rx_queue);
136 void efx_farch_rx_defer_refill(struct efx_rx_queue *rx_queue);
/drivers/net/ethernet/freescale/
A Dgianfar.c118 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
553 if (!grp->rx_queue) in gfar_parse_group()
554 grp->rx_queue = priv->rx_queue[i]; in gfar_parse_group()
1135 rx_queue = priv->rx_queue[i]; in free_skb_resources()
1310 rx_queue = priv->rx_queue[i]; in gfar_init_bds()
1319 gfar_alloc_rx_buffs(rx_queue, gfar_rxbd_unused(rx_queue)); in gfar_init_bds()
1366 rx_queue = priv->rx_queue[i]; in gfar_alloc_skb_resources()
1390 rx_queue = priv->rx_queue[i]; in gfar_alloc_skb_resources()
1391 rx_queue->rx_buff = kcalloc(rx_queue->rx_ring_size, in gfar_alloc_skb_resources()
1542 rx_queue = priv->rx_queue[i]; in gfar_update_link_state()
[all …]
/drivers/net/ethernet/ibm/
A Dibmveth.c104 return be32_to_cpu(adapter->rx_queue.queue_addr[adapter->rx_queue.index].flags_off); in ibmveth_rxq_flags()
135 return be32_to_cpu(adapter->rx_queue.queue_addr[adapter->rx_queue.index].length); in ibmveth_rxq_frame_length()
510 u64 correlator = adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator; in ibmveth_rxq_get_buffer()
541 cor = adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator; in ibmveth_rxq_harvest_buffer()
546 if (++adapter->rx_queue.index == adapter->rx_queue.num_slots) { in ibmveth_rxq_harvest_buffer()
547 adapter->rx_queue.index = 0; in ibmveth_rxq_harvest_buffer()
548 adapter->rx_queue.toggle = !adapter->rx_queue.toggle; in ibmveth_rxq_harvest_buffer()
648 adapter->rx_queue.queue_addr = in ibmveth_open()
673 adapter->rx_queue.index = 0; in ibmveth_open()
675 adapter->rx_queue.toggle = 1; in ibmveth_open()
[all …]

Completed in 86 milliseconds

12345