Home
last modified time | relevance | path

Searched refs:buf_mask (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ !
Damdgpu_ring.c295 ring->buf_mask = (ring->ring_size / 4) - 1; in amdgpu_ring_init()
297 0xffffffffffffffff : ring->buf_mask; in amdgpu_ring_init()
444 early[0] = amdgpu_ring_get_rptr(ring) & ring->buf_mask; in amdgpu_debugfs_ring_read()
445 early[1] = amdgpu_ring_get_wptr(ring) & ring->buf_mask; in amdgpu_debugfs_ring_read()
446 early[2] = ring->wptr & ring->buf_mask; in amdgpu_debugfs_ring_read()
Damdgpu_ring.h243 uint32_t buf_mask; member
334 while (i <= ring->buf_mask) in amdgpu_ring_clear_ring()
343 ring->ring[ring->wptr++ & ring->buf_mask] = v; in amdgpu_ring_write()
357 occupied = ring->wptr & ring->buf_mask; in amdgpu_ring_write_multiple()
359 chunk1 = ring->buf_mask + 1 - occupied; in amdgpu_ring_write_multiple()
Dsdma_v6_0.c112 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v6_0_ring_init_cond_exec()
123 BUG_ON(offset > ring->buf_mask); in sdma_v6_0_ring_patch_cond_exec()
126 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v6_0_ring_patch_cond_exec()
130 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v6_0_ring_patch_cond_exec()
Dsdma_v5_2.c153 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v5_2_ring_init_cond_exec()
164 BUG_ON(offset > ring->buf_mask); in sdma_v5_2_ring_patch_cond_exec()
167 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v5_2_ring_patch_cond_exec()
171 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v5_2_ring_patch_cond_exec()
Dsdma_v5_0.c288 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v5_0_ring_init_cond_exec()
299 BUG_ON(offset > ring->buf_mask); in sdma_v5_0_ring_patch_cond_exec()
302 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v5_0_ring_patch_cond_exec()
306 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v5_0_ring_patch_cond_exec()
Dgfx_v11_0.c5189 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_set_wptr_gfx()
5252 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_set_wptr_compute()
5516 ret = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_emit_init_cond_exec()
5525 BUG_ON(offset > ring->buf_mask); in gfx_v11_0_ring_emit_patch_cond_exec()
5528 cur = (ring->wptr - 1) & ring->buf_mask; in gfx_v11_0_ring_emit_patch_cond_exec()
5532 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in gfx_v11_0_ring_emit_patch_cond_exec()
Dgfx_v10_0.c8360 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_set_wptr_gfx()
8423 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_set_wptr_compute()
8704 ret = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_emit_init_cond_exec()
8713 BUG_ON(offset > ring->buf_mask); in gfx_v10_0_ring_emit_patch_cond_exec()
8716 cur = (ring->wptr - 1) & ring->buf_mask; in gfx_v10_0_ring_emit_patch_cond_exec()
8720 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in gfx_v10_0_ring_emit_patch_cond_exec()
Dgfx_v9_0.c5421 ret = ring->wptr & ring->buf_mask; in gfx_v9_0_ring_emit_init_cond_exec()
5429 BUG_ON(offset > ring->buf_mask); in gfx_v9_0_ring_emit_patch_cond_exec()
5432 cur = (ring->wptr - 1) & ring->buf_mask; in gfx_v9_0_ring_emit_patch_cond_exec()
Dgfx_v8_0.c6363 ret = ring->wptr & ring->buf_mask; in gfx_v8_0_ring_emit_init_cond_exec()
6372 BUG_ON(offset > ring->buf_mask); in gfx_v8_0_ring_emit_patch_cond_exec()
6375 cur = (ring->wptr & ring->buf_mask) - 1; in gfx_v8_0_ring_emit_patch_cond_exec()
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/ !
Dfimc-isp-video.c95 dma->dma_out_mask = video->buf_mask; in isp_video_capture_start_streaming()
198 video->buf_mask |= BIT(ivb->index); in isp_video_capture_buffer_queue()
222 video->buf_mask = (1UL << video->buf_count) - 1; in isp_video_capture_buffer_queue()
250 video->buf_mask &= ~BIT(buf_index); in fimc_isp_video_irq_handler()
251 fimc_is_hw_set_isp_buf_mask(is, video->buf_mask); in fimc_isp_video_irq_handler()
Dfimc-isp.h137 unsigned int buf_mask; member
/linux-6.1.9/sound/pci/cs46xx/ !
Dcs46xx_dsp_scb_types.h985 buf_mask