Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_ring_mux.c58 start = s_start & ring->buf_mask; in amdgpu_ring_mux_copy_pkt_from_sw_ring()
59 end = s_end & ring->buf_mask; in amdgpu_ring_mux_copy_pkt_from_sw_ring()
110 if (chunk->cntl_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks()
113 if (chunk->ce_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks()
115 if (chunk->de_offset <= e->ring->buf_mask) in amdgpu_mux_resubmit_chunks()
297 end = e->end_ptr_in_hw_ring & mux->real_ring->buf_mask; in amdgpu_ring_mux_get_rptr()
306 e->sw_rptr = (e->sw_cptr + offset) & ring->buf_mask; in amdgpu_ring_mux_get_rptr()
429 offset = ring->wptr & ring->buf_mask; in amdgpu_sw_ring_ib_mark_offset()
457 chunk->cntl_offset = ring->buf_mask + 1; in amdgpu_ring_mux_start_ib()
458 chunk->de_offset = ring->buf_mask + 1; in amdgpu_ring_mux_start_ib()
[all …]
H A Damdgpu_ring.h256 uint32_t buf_mask; member
366 while (i <= ring->buf_mask) in amdgpu_ring_clear_ring()
375 ring->ring[ring->wptr++ & ring->buf_mask] = v; in amdgpu_ring_write()
389 occupied = ring->wptr & ring->buf_mask; in amdgpu_ring_write_multiple()
391 chunk1 = ring->buf_mask + 1 - occupied; in amdgpu_ring_write_multiple()
H A Damdgpu_ring.c323 ring->buf_mask = (ring->ring_size / 4) - 1; in amdgpu_ring_init()
325 0xffffffffffffffff : ring->buf_mask; in amdgpu_ring_init()
482 early[0] = amdgpu_ring_get_rptr(ring) & ring->buf_mask; in amdgpu_debugfs_ring_read()
483 early[1] = amdgpu_ring_get_wptr(ring) & ring->buf_mask; in amdgpu_debugfs_ring_read()
484 early[2] = ring->wptr & ring->buf_mask; in amdgpu_debugfs_ring_read()
H A Dsdma_v6_0.c90 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v6_0_ring_init_cond_exec()
101 BUG_ON(offset > ring->buf_mask); in sdma_v6_0_ring_patch_cond_exec()
104 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v6_0_ring_patch_cond_exec()
108 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v6_0_ring_patch_cond_exec()
H A Dsdma_v5_2.c100 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v5_2_ring_init_cond_exec()
111 BUG_ON(offset > ring->buf_mask); in sdma_v5_2_ring_patch_cond_exec()
114 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v5_2_ring_patch_cond_exec()
118 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v5_2_ring_patch_cond_exec()
H A Dsdma_v5_0.c260 ret = ring->wptr & ring->buf_mask;/* this is the offset we need patch later */ in sdma_v5_0_ring_init_cond_exec()
271 BUG_ON(offset > ring->buf_mask); in sdma_v5_0_ring_patch_cond_exec()
274 cur = (ring->wptr - 1) & ring->buf_mask; in sdma_v5_0_ring_patch_cond_exec()
278 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in sdma_v5_0_ring_patch_cond_exec()
H A Dgfx_v9_0.c5209 if (offset + (payload_size >> 2) <= ring->buf_mask + 1) { in gfx_v9_0_ring_patch_ce_meta()
5213 (ring->buf_mask + 1 - offset) << 2); in gfx_v9_0_ring_patch_ce_meta()
5214 payload_size -= (ring->buf_mask + 1 - offset) << 2; in gfx_v9_0_ring_patch_ce_meta()
5216 ce_payload_cpu_addr + ((ring->buf_mask + 1 - offset) << 2), in gfx_v9_0_ring_patch_ce_meta()
5244 if (offset + (payload_size >> 2) <= ring->buf_mask + 1) { in gfx_v9_0_ring_patch_de_meta()
5248 (ring->buf_mask + 1 - offset) << 2); in gfx_v9_0_ring_patch_de_meta()
5249 payload_size -= (ring->buf_mask + 1 - offset) << 2; in gfx_v9_0_ring_patch_de_meta()
5251 de_payload_cpu_addr + ((ring->buf_mask + 1 - offset) << 2), in gfx_v9_0_ring_patch_de_meta()
5622 ret = ring->wptr & ring->buf_mask; in gfx_v9_0_ring_emit_init_cond_exec()
5630 BUG_ON(offset > ring->buf_mask); in gfx_v9_0_ring_emit_patch_cond_exec()
[all …]
H A Dgfx_v11_0.c5162 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_set_wptr_gfx()
5225 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_set_wptr_compute()
5512 ret = ring->wptr & ring->buf_mask; in gfx_v11_0_ring_emit_init_cond_exec()
5521 BUG_ON(offset > ring->buf_mask); in gfx_v11_0_ring_emit_patch_cond_exec()
5524 cur = (ring->wptr - 1) & ring->buf_mask; in gfx_v11_0_ring_emit_patch_cond_exec()
5528 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in gfx_v11_0_ring_emit_patch_cond_exec()
H A Dgfx_v10_0.c8166 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_set_wptr_gfx()
8229 wptr_tmp = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_set_wptr_compute()
8510 ret = ring->wptr & ring->buf_mask; in gfx_v10_0_ring_emit_init_cond_exec()
8520 BUG_ON(offset > ring->buf_mask); in gfx_v10_0_ring_emit_patch_cond_exec()
8523 cur = (ring->wptr - 1) & ring->buf_mask; in gfx_v10_0_ring_emit_patch_cond_exec()
8527 ring->ring[offset] = (ring->buf_mask + 1) - offset + cur; in gfx_v10_0_ring_emit_patch_cond_exec()
H A Dgfx_v8_0.c6338 ret = ring->wptr & ring->buf_mask; in gfx_v8_0_ring_emit_init_cond_exec()
6347 BUG_ON(offset > ring->buf_mask); in gfx_v8_0_ring_emit_patch_cond_exec()
6350 cur = (ring->wptr & ring->buf_mask) - 1; in gfx_v8_0_ring_emit_patch_cond_exec()
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/
H A 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()
H A Dfimc-isp.h137 unsigned int buf_mask; member
/openbmc/linux/sound/pci/cs46xx/
H A Dcs46xx_dsp_scb_types.h985 buf_mask