Home
last modified time | relevance | path

Searched refs:ptr_mask (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
Dtx_common.c18 return DIV_ROUND_UP(tx_queue->ptr_mask + 1, in efx_tx_cb_page_count()
31 tx_queue->ptr_mask = entries - 1; in efx_probe_tx_queue()
35 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask); in efx_probe_tx_queue()
111 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_fini_tx_queue()
205 stop_index = (index + 1) & tx_queue->ptr_mask; in efx_dequeue_buffers()
206 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
222 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
244 EFX_WARN_ON_ONCE_PARANOID(index > tx_queue->ptr_mask); in efx_xmit_done()
Def100_tx.c27 (tx_queue->ptr_mask + 2) * in ef100_tx_probe()
136 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef100_notify_tx_desc()
264 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
324 tx_queue->ptr_mask; in ef100_ev_tx()
345 if (!tx_queue->buffer || !tx_queue->ptr_mask) { in ef100_enqueue_skb()
Def100_rx.c145 rx_queue->removed_count & rx_queue->ptr_mask); in efx_ef100_ev_rx()
158 idx = rx_queue->notified_count & rx_queue->ptr_mask; in ef100_rx_write()
169 rx_queue->added_count & rx_queue->ptr_mask); in ef100_rx_write()
Dfarch.c287 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
303 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
328 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
349 old_write_count & tx_queue->ptr_mask); in efx_farch_tx_write()
377 entries = tx_queue->ptr_mask + 1; in efx_farch_tx_probe()
491 rx_queue->notified_count & rx_queue->ptr_mask); in efx_farch_rx_write()
496 write_ptr = rx_queue->added_count & rx_queue->ptr_mask; in efx_farch_rx_write()
507 entries = rx_queue->ptr_mask + 1; in efx_farch_rx_probe()
947 rx_queue->ptr_mask)) { in efx_farch_handle_rx_bad_index()
952 expected = rx_queue->removed_count & rx_queue->ptr_mask; in efx_farch_handle_rx_bad_index()
[all …]
Dmcdi_functions.c178 MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_SIZE, tx_queue->ptr_mask + 1); in efx_mcdi_tx_init()
273 (rx_queue->ptr_mask + 1) * in efx_mcdi_rx_probe()
297 MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_SIZE, rx_queue->ptr_mask + 1); in efx_mcdi_rx_init()
Dnet_driver.h271 unsigned int ptr_mask; member
395 unsigned int ptr_mask; member
1604 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
1684 return tx_queue->insert_count & tx_queue->ptr_mask; in efx_tx_queue_get_insert_index()
Drx_common.c214 rx_queue->ptr_mask = entries - 1; in efx_probe_rx_queue()
219 rx_queue->ptr_mask); in efx_probe_rx_queue()
305 unsigned int index = i & rx_queue->ptr_mask; in efx_fini_rx_queue()
423 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
Dtx.c561 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
582 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_xmit_done_single()
Def10.c2179 (tx_queue->ptr_mask + 1) * in efx_ef10_tx_probe()
2191 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2390 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2427 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
2454 old_write_count & tx_queue->ptr_mask); in efx_ef10_tx_write()
2570 rx_queue->notified_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2575 write_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2643 unsigned int dropped = (actual - expected) & rx_queue->ptr_mask; in efx_ef10_handle_rx_bad_lbits()
2662 rx_desc_ptr = rx_queue->removed_count & rx_queue->ptr_mask; in efx_ef10_handle_rx_abort()
2893 rx_queue->removed_count & rx_queue->ptr_mask, in efx_ef10_handle_rx_event()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_ring.c89 ring->ring_free_dw &= ring->ptr_mask; in radeon_ring_free_size()
314 size &= ring->ptr_mask; in radeon_ring_backup()
328 ptr &= ring->ptr_mask; in radeon_ring_backup()
414 ring->ptr_mask = (ring->ring_size / 4) - 1; in radeon_ring_init()
508 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info()
516 i = (i + 1) & ring->ptr_mask; in radeon_debugfs_ring_info()
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
Dtx.c362 stop_index = (index + 1) & tx_queue->ptr_mask; in ef4_dequeue_buffers()
363 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
380 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in ef4_dequeue_buffers()
498 EF4_BUG_ON_PARANOID(index > tx_queue->ptr_mask); in ef4_xmit_done()
535 return DIV_ROUND_UP(tx_queue->ptr_mask + 1, PAGE_SIZE >> EF4_TX_CB_ORDER); in ef4_tx_cb_page_count()
547 tx_queue->ptr_mask = entries - 1; in ef4_probe_tx_queue()
551 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask); in ef4_probe_tx_queue()
619 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in ef4_fini_tx_queue()
Dfarch.c277 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_notify_tx_desc()
293 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_push_tx_desc()
318 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef4_farch_tx_write()
339 old_write_count & tx_queue->ptr_mask); in ef4_farch_tx_write()
368 entries = tx_queue->ptr_mask + 1; in ef4_farch_tx_probe()
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()
514 entries = rx_queue->ptr_mask + 1; in ef4_farch_rx_probe()
844 tx_queue->ptr_mask); in ef4_farch_handle_tx_event()
955 rx_queue->ptr_mask)) { in ef4_farch_handle_rx_bad_index()
[all …]
Drx.c78 if (unlikely(rx_buf == ef4_rx_buffer(rx_queue, rx_queue->ptr_mask))) in ef4_rx_buf_next()
191 index = rx_queue->added_count & rx_queue->ptr_mask; in ef4_init_rx_buffers()
560 (index + n_frags - 1) & rx_queue->ptr_mask, len, in ef4_rx_packet()
695 rx_queue->ptr_mask = entries - 1; in ef4_probe_rx_queue()
700 rx_queue->ptr_mask); in ef4_probe_rx_queue()
798 unsigned index = i & rx_queue->ptr_mask; in ef4_fini_rx_queue()
Dnet_driver.h221 unsigned int ptr_mask; member
333 unsigned int ptr_mask; member
1312 return tx_queue->insert_count & tx_queue->ptr_mask; in ef4_tx_queue_get_insert_index()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ih.c51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init()
165 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
Dsi_ih.c117 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in si_ih_get_wptr()
118 ih->rptr = (wptr + 16) & ih->ptr_mask; in si_ih_get_wptr()
123 return (wptr & ih->ptr_mask); in si_ih_get_wptr()
Dcik_ih.c201 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr()
202 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr()
207 return (wptr & ih->ptr_mask); in cik_ih_get_wptr()
Diceland_ih.c211 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr()
212 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr()
219 return (wptr & ih->ptr_mask); in iceland_ih_get_wptr()
Dcz_ih.c212 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr()
213 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr()
220 return (wptr & ih->ptr_mask); in cz_ih_get_wptr()
Dtonga_ih.c215 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr()
216 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr()
222 return (wptr & ih->ptr_mask); in tonga_ih_get_wptr()
Damdgpu_ih.h38 uint32_t ptr_mask; member
Damdgpu_ring.h217 uint64_t ptr_mask; member
315 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write()
346 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write_multiple()
Dvega10_ih.c406 tmp = (wptr + 32) & ih->ptr_mask; in vega10_ih_get_wptr()
426 return (wptr & ih->ptr_mask); in vega10_ih_get_wptr()
Dnavi10_ih.c477 tmp = (wptr + 32) & ih->ptr_mask; in navi10_ih_get_wptr()
496 return (wptr & ih->ptr_mask); in navi10_ih_get_wptr()
Damdgpu_ring.c243 ring->ptr_mask = ring->funcs->support_64bit_ptrs ? in amdgpu_ring_init()

12