Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_ih.c51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init()
158 wptr &= ih->ptr_mask; in amdgpu_ih_ring_write()
173 uint32_t cur_rptr = ih->rptr | (*prev_rptr & ~ih->ptr_mask); in amdgpu_ih_has_checkpoint_processed()
177 cur_rptr += ih->ptr_mask + 1; in amdgpu_ih_has_checkpoint_processed()
182 (cur_rptr & ih->ptr_mask) == amdgpu_ih_get_wptr(adev, ih); in amdgpu_ih_has_checkpoint_processed()
208 checkpoint_wptr += ih->ptr_mask + 1; in amdgpu_ih_wait_on_checkpoint_process()
243 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
A Dcik_ih.c202 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cik_ih_get_wptr()
203 ih->rptr = (wptr + 16) & ih->ptr_mask; in cik_ih_get_wptr()
208 return (wptr & ih->ptr_mask); in cik_ih_get_wptr()
A 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()
A Diceland_ih.c212 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in iceland_ih_get_wptr()
213 ih->rptr = (wptr + 16) & ih->ptr_mask; in iceland_ih_get_wptr()
220 return (wptr & ih->ptr_mask); in iceland_ih_get_wptr()
A Dcz_ih.c213 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in cz_ih_get_wptr()
214 ih->rptr = (wptr + 16) & ih->ptr_mask; in cz_ih_get_wptr()
221 return (wptr & ih->ptr_mask); in cz_ih_get_wptr()
A Dtonga_ih.c216 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask); in tonga_ih_get_wptr()
217 ih->rptr = (wptr + 16) & ih->ptr_mask; in tonga_ih_get_wptr()
223 return (wptr & ih->ptr_mask); in tonga_ih_get_wptr()
A Damdgpu_ring.h225 uint64_t ptr_mask; member
316 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write()
347 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write_multiple()
A Damdgpu_ih.h50 uint32_t ptr_mask; member
A Dvega10_ih.c360 tmp = (wptr + 32) & ih->ptr_mask; in vega10_ih_get_wptr()
371 return (wptr & ih->ptr_mask); in vega10_ih_get_wptr()
A Dvega20_ih.c411 tmp = (wptr + 32) & ih->ptr_mask; in vega20_ih_get_wptr()
422 return (wptr & ih->ptr_mask); in vega20_ih_get_wptr()
A Dnavi10_ih.c434 tmp = (wptr + 32) & ih->ptr_mask; in navi10_ih_get_wptr()
444 return (wptr & ih->ptr_mask); in navi10_ih_get_wptr()
/linux/drivers/net/ethernet/sfc/
A 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()
A Def100_tx.c27 (tx_queue->ptr_mask + 2) * in ef100_tx_probe()
120 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in ef100_notify_tx_desc()
280 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
340 tx_queue->ptr_mask; in ef100_ev_tx()
361 if (!tx_queue->buffer || !tx_queue->ptr_mask) { in ef100_enqueue_skb()
A 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()
A Dfarch.c287 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
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()
507 entries = rx_queue->ptr_mask + 1; in efx_farch_rx_probe()
947 rx_queue->ptr_mask)) { in efx_farch_handle_rx_bad_index()
953 dropped = (index - expected) & rx_queue->ptr_mask; in efx_farch_handle_rx_bad_index()
992 rx_queue->ptr_mask); in efx_farch_handle_rx_event()
1005 rx_queue->removed_count & rx_queue->ptr_mask, in efx_farch_handle_rx_event()
1019 rx_queue->removed_count & rx_queue->ptr_mask, in efx_farch_handle_rx_event()
[all …]
A 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()
A Dnet_driver.h271 unsigned int ptr_mask; member
395 unsigned int ptr_mask; member
1615 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
1695 return tx_queue->insert_count & tx_queue->ptr_mask; in efx_tx_queue_get_insert_index()
A Drx_common.c211 rx_queue->ptr_mask = entries - 1; in efx_probe_rx_queue()
216 rx_queue->ptr_mask); in efx_probe_rx_queue()
302 unsigned int index = i & rx_queue->ptr_mask; in efx_fini_rx_queue()
420 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
A 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()
A Def10.c2192 (tx_queue->ptr_mask + 1) * in efx_ef10_tx_probe()
2204 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2403 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2440 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
2467 old_write_count & tx_queue->ptr_mask); in efx_ef10_tx_write()
2583 rx_queue->notified_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2588 write_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2656 unsigned int dropped = (actual - expected) & rx_queue->ptr_mask; in efx_ef10_handle_rx_bad_lbits()
2675 rx_desc_ptr = rx_queue->removed_count & rx_queue->ptr_mask; in efx_ef10_handle_rx_abort()
2906 rx_queue->removed_count & rx_queue->ptr_mask, in efx_ef10_handle_rx_event()
[all …]
/linux/drivers/gpu/drm/radeon/
A Dradeon_ring.c88 ring->ring_free_dw &= ring->ptr_mask; in radeon_ring_free_size()
316 size &= ring->ptr_mask; in radeon_ring_backup()
330 ptr &= ring->ptr_mask; in radeon_ring_backup()
417 ring->ptr_mask = (ring->ring_size / 4) - 1; in radeon_ring_init()
506 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info_show()
514 i = (i + 1) & ring->ptr_mask; in radeon_debugfs_ring_info_show()
/linux/drivers/net/ethernet/sfc/falcon/
A 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()
A Dfarch.c339 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()
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()
961 dropped = (index - expected) & rx_queue->ptr_mask; in ef4_farch_handle_rx_bad_index()
1001 rx_queue->ptr_mask); in ef4_farch_handle_rx_event()
1014 rx_queue->removed_count & rx_queue->ptr_mask, in ef4_farch_handle_rx_event()
1028 rx_queue->removed_count & rx_queue->ptr_mask, in ef4_farch_handle_rx_event()
[all …]
A 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()
A 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()

Completed in 91 milliseconds

12