Home
last modified time | relevance | path

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

/drivers/gpu/drm/radeon/
Dradeon_ring.c85 ring->ring_free_dw &= ring->ptr_mask; in radeon_ring_free_size()
310 size &= ring->ptr_mask; in radeon_ring_backup()
324 ptr &= ring->ptr_mask; in radeon_ring_backup()
410 ring->ptr_mask = (ring->ring_size / 4) - 1; in radeon_ring_init()
504 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in radeon_debugfs_ring_info()
512 i = (i + 1) & ring->ptr_mask; in radeon_debugfs_ring_info()
Dr600.c3428 rdev->ih.ptr_mask = rdev->ih.ring_size - 1; in r600_ih_ring_init()
4007 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in r600_get_ih_wptr()
4008 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in r600_get_ih_wptr()
4013 return (wptr & rdev->ih.ptr_mask); in r600_get_ih_wptr()
4275 rptr &= rdev->ih.ptr_mask; in r600_irq_process()
Dradeon.h863 uint32_t ptr_mask; member
989 uint32_t ptr_mask; member
2704 ring->wptr &= ring->ptr_mask; in radeon_ring_write()
Devergreen.c5026 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in evergreen_get_ih_wptr()
5027 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in evergreen_get_ih_wptr()
5032 return (wptr & rdev->ih.ptr_mask); in evergreen_get_ih_wptr()
5496 rptr &= rdev->ih.ptr_mask; in evergreen_irq_process()
Dsi.c6412 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in si_get_ih_wptr()
6413 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in si_get_ih_wptr()
6418 return (wptr & rdev->ih.ptr_mask); in si_get_ih_wptr()
6848 rptr &= rdev->ih.ptr_mask; in si_irq_process()
Dcik.c7846 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in cik_get_ih_wptr()
7847 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in cik_get_ih_wptr()
7852 return (wptr & rdev->ih.ptr_mask); in cik_get_ih_wptr()
8438 rptr &= rdev->ih.ptr_mask; in cik_irq_process()
Dr100.c2958 count = (rdp + ring->ring_size - wdp) & ring->ptr_mask; in r100_debugfs_cp_ring_info()
2966 i = (rdp + j) & ring->ptr_mask; in r100_debugfs_cp_ring_info()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ring.c66 ring->ring_free_dw &= ring->ptr_mask; in amdgpu_ring_free_size()
240 size &= ring->ptr_mask; in amdgpu_ring_backup()
254 ptr &= ring->ptr_mask; in amdgpu_ring_backup()
391 ring->ptr_mask = (ring->ring_size / 4) - 1; in amdgpu_ring_init()
507 i = (rptr + ring->ptr_mask + 1 - 32) & ring->ptr_mask; in amdgpu_debugfs_ring_info()
515 i = (i + 1) & ring->ptr_mask; in amdgpu_debugfs_ring_info()
Dcik_ih.c200 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cik_ih_get_wptr()
201 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cik_ih_get_wptr()
206 return (wptr & adev->irq.ih.ptr_mask); in cik_ih_get_wptr()
Dcz_ih.c202 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in cz_ih_get_wptr()
203 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in cz_ih_get_wptr()
208 return (wptr & adev->irq.ih.ptr_mask); in cz_ih_get_wptr()
Diceland_ih.c202 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr()
203 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in iceland_ih_get_wptr()
208 return (wptr & adev->irq.ih.ptr_mask); in iceland_ih_get_wptr()
Damdgpu_ih.c92 adev->irq.ih.ptr_mask = adev->irq.ih.ring_size - 1; in amdgpu_ih_ring_init()
206 adev->irq.ih.rptr &= adev->irq.ih.ptr_mask; in amdgpu_ih_process()
Dtonga_ih.c213 wptr, adev->irq.ih.rptr, (wptr + 16) & adev->irq.ih.ptr_mask); in tonga_ih_get_wptr()
214 adev->irq.ih.rptr = (wptr + 16) & adev->irq.ih.ptr_mask; in tonga_ih_get_wptr()
219 return (wptr & adev->irq.ih.ptr_mask); in tonga_ih_get_wptr()
Damdgpu_ih.h38 uint32_t ptr_mask; member
Damdgpu.h863 uint32_t ptr_mask; member
2207 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write()
/drivers/net/ethernet/sfc/
Dtx.c39 return tx_queue->insert_count & tx_queue->ptr_mask; in efx_tx_queue_get_insert_index()
496 stop_index = (index + 1) & tx_queue->ptr_mask; in efx_dequeue_buffers()
497 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
514 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
629 EFX_BUG_ON_PARANOID(index > tx_queue->ptr_mask); in efx_xmit_done()
676 return DIV_ROUND_UP(tx_queue->ptr_mask + 1, 2 * TSOH_PER_PAGE); in efx_tsoh_page_count()
688 tx_queue->ptr_mask = entries - 1; in efx_probe_tx_queue()
692 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask); in efx_probe_tx_queue()
758 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_fini_tx_queue()
887 (tx_queue->insert_count & tx_queue->ptr_mask) / 2; in efx_tsoh_get_buffer()
Dfarch.c288 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_notify_tx_desc()
304 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_push_tx_desc()
329 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_farch_tx_write()
350 old_write_count & tx_queue->ptr_mask); in efx_farch_tx_write()
364 entries = tx_queue->ptr_mask + 1; in efx_farch_tx_probe()
494 rx_queue->notified_count & rx_queue->ptr_mask); in efx_farch_rx_write()
499 write_ptr = rx_queue->added_count & rx_queue->ptr_mask; in efx_farch_rx_write()
510 entries = rx_queue->ptr_mask + 1; in efx_farch_rx_probe()
851 tx_queue->ptr_mask); in efx_farch_handle_tx_event()
963 rx_queue->ptr_mask)) { in efx_farch_handle_rx_bad_index()
[all …]
Drx.c81 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
191 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
560 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_rx_packet()
698 rx_queue->ptr_mask = entries - 1; in efx_probe_rx_queue()
703 rx_queue->ptr_mask); in efx_probe_rx_queue()
798 unsigned index = i & rx_queue->ptr_mask; in efx_fini_rx_queue()
Def10.c1739 (tx_queue->ptr_mask + 1) * in efx_ef10_tx_probe()
1751 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
1774 MCDI_SET_DWORD(inbuf, INIT_TXQ_IN_SIZE, tx_queue->ptr_mask + 1); in efx_ef10_tx_init()
1862 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
1880 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
1903 old_write_count & tx_queue->ptr_mask); in efx_ef10_tx_write()
2129 (rx_queue->ptr_mask + 1) * in efx_ef10_rx_probe()
2152 MCDI_SET_DWORD(inbuf, INIT_RXQ_IN_SIZE, rx_queue->ptr_mask + 1); in efx_ef10_rx_init()
2239 rx_queue->notified_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2244 write_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
[all …]
Dnet_driver.h236 unsigned int ptr_mask; member
346 unsigned int ptr_mask; member