Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/sfc/siena/
H A Dtx_common.c19 return DIV_ROUND_UP(tx_queue->ptr_mask + 1, in efx_tx_cb_page_count()
32 tx_queue->ptr_mask = entries - 1; in efx_siena_probe_tx_queue()
36 tx_queue->queue, efx->txq_entries, tx_queue->ptr_mask); in efx_siena_probe_tx_queue()
184 buffer = &tx_queue->buffer[tx_queue->read_count & tx_queue->ptr_mask]; in efx_siena_fini_tx_queue()
206 stop_index = (index + 1) & tx_queue->ptr_mask; in efx_dequeue_buffers()
207 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
223 read_ptr = tx_queue->read_count & tx_queue->ptr_mask; in efx_dequeue_buffers()
245 EFX_WARN_ON_ONCE_PARANOID(index > tx_queue->ptr_mask); in efx_siena_xmit_done()
H A 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()
378 entries = tx_queue->ptr_mask + 1; in efx_farch_tx_probe()
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()
508 entries = rx_queue->ptr_mask + 1; in efx_farch_rx_probe()
949 rx_queue->ptr_mask)) { in efx_farch_handle_rx_bad_index()
954 expected = rx_queue->removed_count & rx_queue->ptr_mask; in efx_farch_handle_rx_bad_index()
[all …]
H A Dnet_driver.h270 unsigned int ptr_mask; member
394 unsigned int ptr_mask; member
1591 if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask))) in efx_rx_buf_next()
1671 return tx_queue->insert_count & tx_queue->ptr_mask; in efx_tx_queue_get_insert_index()
H A Drx_common.c202 rx_queue->ptr_mask = entries - 1; in efx_siena_probe_rx_queue()
207 rx_queue->ptr_mask); in efx_siena_probe_rx_queue()
293 unsigned int index = i & rx_queue->ptr_mask; in efx_siena_fini_rx_queue()
411 index = rx_queue->added_count & rx_queue->ptr_mask; in efx_init_rx_buffers()
H A Drx.c151 (index + n_frags - 1) & rx_queue->ptr_mask, len, in efx_siena_rx_packet()
/linux/drivers/gpu/drm/radeon/
H A Dradeon_ring.c90 ring->ring_free_dw &= ring->ptr_mask; in radeon_ring_free_size()
318 size &= ring->ptr_mask; in radeon_ring_backup()
332 ptr &= ring->ptr_mask; in radeon_ring_backup()
420 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_show()
516 i = (i + 1) & ring->ptr_mask; in radeon_debugfs_ring_info_show()
H A Dr600.c3474 rdev->ih.ptr_mask = rdev->ih.ring_size - 1; in r600_ih_ring_init()
4053 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in r600_get_ih_wptr()
4054 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in r600_get_ih_wptr()
4059 return (wptr & rdev->ih.ptr_mask); in r600_get_ih_wptr()
4321 rptr &= rdev->ih.ptr_mask; in r600_irq_process()
H A Dradeon.h809 uint32_t ptr_mask; member
935 uint32_t ptr_mask; member
2685 ring->wptr &= ring->ptr_mask; in radeon_ring_write()
H A Devergreen.c4691 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in evergreen_get_ih_wptr()
4692 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in evergreen_get_ih_wptr()
4697 return (wptr & rdev->ih.ptr_mask); in evergreen_get_ih_wptr()
4910 rptr &= rdev->ih.ptr_mask; in evergreen_irq_process()
H A Dsi.c6206 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in si_get_ih_wptr()
6207 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in si_get_ih_wptr()
6212 return (wptr & rdev->ih.ptr_mask); in si_get_ih_wptr()
6416 rptr &= rdev->ih.ptr_mask; in si_irq_process()
H A Dcik.c7497 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask); in cik_get_ih_wptr()
7498 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask; in cik_get_ih_wptr()
7503 return (wptr & rdev->ih.ptr_mask); in cik_get_ih_wptr()
8082 rptr &= rdev->ih.ptr_mask; in cik_irq_process()
H A Dr100.c2980 count = (rdp + ring->ring_size - wdp) & ring->ptr_mask; in r100_debugfs_cp_ring_info_show()
2988 i = (rdp + j) & ring->ptr_mask; in r100_debugfs_cp_ring_info_show()
/linux/drivers/net/ethernet/sfc/
H 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()
278 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
295 write_ptr = new_write_count & tx_queue->ptr_mask; in ef100_tx_make_descriptors()
358 tx_queue->ptr_mask; in ef100_ev_tx()
386 if (!tx_queue->buffer || !tx_queue->ptr_mask) { in __ef100_enqueue_skb()
H 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()
H A Def10.c2213 (tx_queue->ptr_mask + 1) * in efx_ef10_tx_probe()
2225 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_push_tx_desc()
2424 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_notify_tx_desc()
2461 write_ptr = tx_queue->write_count & tx_queue->ptr_mask; in efx_ef10_tx_write()
2488 old_write_count & tx_queue->ptr_mask); in efx_ef10_tx_write()
2614 rx_queue->notified_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2619 write_count & rx_queue->ptr_mask); in efx_ef10_rx_write()
2687 unsigned int dropped = (actual - expected) & rx_queue->ptr_mask; in efx_ef10_handle_rx_bad_lbits()
2706 rx_desc_ptr = rx_queue->removed_count & rx_queue->ptr_mask; in efx_ef10_handle_rx_abort()
2937 rx_queue->removed_count & rx_queue->ptr_mask, in efx_ef10_handle_rx_event()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ih.c51 ih->ptr_mask = ih->ring_size - 1; in amdgpu_ih_ring_init()
159 wptr &= ih->ptr_mask; in amdgpu_ih_ring_write()
227 ih->rptr &= ih->ptr_mask; in amdgpu_ih_process()
295 ring_index = (rptr & ih->ptr_mask) >> 2; in amdgpu_ih_decode_iv_ts_helper()
H A Damdgpu_ring.h259 uint64_t ptr_mask; member
381 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write()
406 ring->wptr &= ring->ptr_mask; in amdgpu_ring_write_multiple()
H A Damdgpu_ih.h53 uint32_t ptr_mask; member
H A Damdgpu_ring.c125 ring->wptr &= ring->ptr_mask; in amdgpu_ring_insert_nop()
343 ring->ptr_mask = ring->funcs->support_64bit_ptrs ? in amdgpu_ring_init()
/linux/drivers/net/ethernet/sfc/falcon/
H 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()
800 unsigned index = i & rx_queue->ptr_mask; in ef4_fini_rx_queue()