Home
last modified time | relevance | path

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

12

/external/mesa3d/src/gallium/winsys/radeon/drm/
Dradeon_drm_bo.c46 radeon_winsys_bo_create(struct radeon_winsys *rws,
68 return drmCommandWriteRead(bo->rws->fd, DRM_RADEON_GEM_BUSY, in radeon_real_bo_is_busy()
80 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_is_busy()
91 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_is_busy()
101 while (drmCommandWrite(bo->rws->fd, DRM_RADEON_GEM_WAIT_IDLE, in radeon_real_bo_wait_idle()
110 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
114 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
119 mtx_lock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
128 mtx_unlock(&bo->rws->bo_fence_lock); in radeon_bo_wait_idle()
182 if (bo->rws->info.drm_minor < 38) in radeon_bo_get_initial_domain()
[all …]
Dradeon_drm_winsys.c535 static void radeon_winsys_destroy(struct radeon_winsys *rws) in radeon_winsys_destroy() argument
537 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_winsys_destroy()
563 FREE(rws); in radeon_winsys_destroy()
566 static void radeon_query_info(struct radeon_winsys *rws, in radeon_query_info() argument
569 *info = ((struct radeon_drm_winsys *)rws)->info; in radeon_query_info()
594 static uint64_t radeon_query_value(struct radeon_winsys *rws, in radeon_query_value() argument
597 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_query_value()
666 static bool radeon_read_registers(struct radeon_winsys *rws, in radeon_read_registers() argument
670 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_read_registers()
709 struct radeon_drm_winsys *rws = (struct radeon_drm_winsys*)ws; in radeon_winsys_unref() local
[all …]
Dradeon_drm_bo.h56 struct radeon_drm_winsys *rws; member
Dradeon_drm_surface.c223 static int radeon_winsys_surface_init(struct radeon_winsys *rws, in radeon_winsys_surface_init() argument
229 struct radeon_drm_winsys *ws = (struct radeon_drm_winsys*)rws; in radeon_winsys_surface_init()
Dradeon_drm_cs.h105 return num_refs == bo->rws->num_cs || in radeon_bo_is_referenced_by_cs()
/external/syzkaller/vendor/golang.org/x/net/http2/
Dserver.go69 rws := &responseWriterState{}
70 rws.bw = bufio.NewWriterSize(chunkWriter{rws}, handlerChunkWriteSize)
71 return rws
2033 rws := responseWriterStatePool.Get().(*responseWriterState)
2034 bwSave := rws.bw
2035 *rws = responseWriterState{} // zero all the fields
2036 rws.conn = sc
2037 rws.bw = bwSave
2038 rws.bw.Reset(chunkWriter{rws})
2039 rws.stream = st
[all …]
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_winsys.c68 static void radv_amdgpu_winsys_query_info(struct radeon_winsys *rws, in radv_amdgpu_winsys_query_info() argument
71 *info = ((struct radv_amdgpu_winsys *)rws)->info; in radv_amdgpu_winsys_query_info()
74 static uint64_t radv_amdgpu_winsys_query_value(struct radeon_winsys *rws, in radv_amdgpu_winsys_query_value() argument
77 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys *)rws; in radv_amdgpu_winsys_query_value()
129 static bool radv_amdgpu_winsys_read_registers(struct radeon_winsys *rws, in radv_amdgpu_winsys_read_registers() argument
133 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys*)rws; in radv_amdgpu_winsys_read_registers()
139 static const char *radv_amdgpu_winsys_get_chip_name(struct radeon_winsys *rws) in radv_amdgpu_winsys_get_chip_name() argument
141 amdgpu_device_handle dev = ((struct radv_amdgpu_winsys *)rws)->dev; in radv_amdgpu_winsys_get_chip_name()
146 static void radv_amdgpu_winsys_destroy(struct radeon_winsys *rws) in radv_amdgpu_winsys_destroy() argument
148 struct radv_amdgpu_winsys *ws = (struct radv_amdgpu_winsys*)rws; in radv_amdgpu_winsys_destroy()
[all …]
Dradv_amdgpu_surface.c100 static int radv_amdgpu_winsys_surface_best(struct radeon_winsys *rws, in radv_amdgpu_winsys_surface_best() argument
/external/mesa3d/src/gallium/drivers/r300/
Dr300_screen.c710 struct radeon_winsys *rws = radeon_winsys(pscreen); in r300_destroy_screen() local
712 if (rws && !rws->unref(rws)) in r300_destroy_screen()
718 if (rws) in r300_destroy_screen()
719 rws->destroy(rws); in r300_destroy_screen()
728 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_fence_reference() local
730 rws->fence_reference(ptr, fence); in r300_fence_reference()
738 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_fence_finish() local
740 return rws->fence_wait(rws, fence, timeout); in r300_fence_finish()
743 struct pipe_screen* r300_screen_create(struct radeon_winsys *rws, in r300_screen_create() argument
753 rws->query_info(rws, &r300screen->info); in r300_screen_create()
[all …]
Dr300_screen_buffer.c75 struct radeon_winsys *rws = r300->screen->rws; in r300_buffer_transfer_map() local
98 if (r300->rws->cs_is_buffer_referenced(r300->cs, rbuf->buf, RADEON_USAGE_READWRITE) || in r300_buffer_transfer_map()
99 !r300->rws->buffer_wait(rbuf->buf, 0, RADEON_USAGE_READWRITE)) { in r300_buffer_transfer_map()
104 new_buf = r300->rws->buffer_create(r300->rws, rbuf->b.b.width0, in r300_buffer_transfer_map()
129 map = rws->buffer_map(rbuf->buf, r300->cs, usage); in r300_buffer_transfer_map()
184 r300screen->rws->buffer_create(r300screen->rws, rbuf->b.b.width0, in r300_buffer_create()
Dr300_flush.c56 r300->rws->cs_flush(r300->cs, flags, fence); in r300_flush_and_cleanup()
89 r300->rws->cs_flush(r300->cs, flags, fence); in r300_flush()
93 r300->rws->cs_flush(r300->cs, flags, NULL); in r300_flush()
116 r300->rws->fence_reference(fence, NULL); in r300_flush()
121 r300->rws->cs_request_feature(r300->cs, RADEON_FID_R300_HYPERZ_ACCESS, in r300_flush()
Dr300_context.c78 r300->rws->cs_request_feature(r300->cs, RADEON_FID_R300_HYPERZ_ACCESS, FALSE); in r300_destroy_context()
81 r300->rws->cs_request_feature(r300->cs, RADEON_FID_R300_CMASK_ACCESS, FALSE); in r300_destroy_context()
96 r300->rws->cs_destroy(r300->cs); in r300_destroy_context()
98 r300->rws->ctx_destroy(r300->ctx); in r300_destroy_context()
375 struct radeon_winsys *rws = r300screen->rws; local
380 r300->rws = rws;
390 r300->ctx = rws->ctx_create(rws);
394 r300->cs = rws->cs_create(r300->ctx, RING_GFX, r300_flush_callback, r300);
Dr300_query.c62 q->buf = r300->rws->buffer_create(r300->rws, in r300_create_query()
152 r300->rws->buffer_wait(q->buf, PIPE_TIMEOUT_INFINITE, in r300_get_query_result()
156 vresult->b = r300->rws->buffer_wait(q->buf, 0, RADEON_USAGE_READWRITE); in r300_get_query_result()
161 map = r300->rws->buffer_map(q->buf, r300->cs, in r300_get_query_result()
Dr300_texture.c1044 struct radeon_winsys *rws = r300_screen(screen)->rws; in r300_resource_get_handle() local
1051 return rws->buffer_get_handle(tex->buf, tex->tex.stride_in_bytes[0], in r300_resource_get_handle()
1073 struct radeon_winsys *rws = rscreen->rws; in r300_texture_create_object() local
1116 tex->buf = rws->buffer_create(rws, tex->tex.size_in_bytes, 2048, in r300_texture_create_object()
1133 rws->buffer_set_metadata(tex->buf, &tiling); in r300_texture_create_object()
1172 struct radeon_winsys *rws = rscreen->rws; in r300_texture_from_handle() local
1185 buffer = rws->buffer_from_handle(rws, whandle, &stride, NULL); in r300_texture_from_handle()
1189 rws->buffer_get_metadata(buffer, &tiling); in r300_texture_from_handle()
Dr300_transfer.c118 r300->rws->cs_is_buffer_referenced(r300->cs, tex->buf, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
123 !r300->rws->buffer_wait(tex->buf, 0, RADEON_USAGE_READWRITE); in r300_texture_transfer_map()
221 map = r300->rws->buffer_map(trans->linear_texture->buf, in r300_texture_transfer_map()
233 map = r300->rws->buffer_map(tex->buf, r300->cs, usage); in r300_texture_transfer_map()
Dr300_screen.h38 struct radeon_winsys *rws; member
62 return r300_screen(screen)->rws; in radeon_winsys()
Dr300_render.c218 if (!r300->rws->cs_check_space(r300->cs, cs_dwords)) { in r300_reserve_cs_dwords()
375 map[vbi] = (uint32_t*)r300->rws->buffer_map( in r300_draw_arrays_immediate()
610 uint16_t *ptr = r300->rws->buffer_map(r300_resource(orgIndexBuffer)->buf, in r300_draw_elements()
905 struct radeon_winsys *rws = r300->rws; in r300_render_allocate_vertices() local
915 r300->vbo = rws->buffer_create(rws, in r300_render_allocate_vertices()
923 r300render->vbo_ptr = rws->buffer_map(r300->vbo, r300->cs, in r300_render_allocate_vertices()
Dr300_emit.c1051 OUT_CS(r300->rws->cs_lookup_buffer(r300->cs, r300->vbo) * 4); in r300_emit_vertex_arrays_swtcl()
1322 r300->rws->cs_add_buffer(r300->cs, tex->buf, in r300_emit_buffer_validate()
1333 r300->rws->cs_add_buffer(r300->cs, tex->buf, in r300_emit_buffer_validate()
1344 r300->rws->cs_add_buffer(r300->cs, aa->dest->buf, in r300_emit_buffer_validate()
1358 r300->rws->cs_add_buffer(r300->cs, tex->buf, in r300_emit_buffer_validate()
1365 r300->rws->cs_add_buffer(r300->cs, r300->query_current->buf, in r300_emit_buffer_validate()
1371 r300->rws->cs_add_buffer(r300->cs, r300->vbo, in r300_emit_buffer_validate()
1387 r300->rws->cs_add_buffer(r300->cs, r300_resource(buf)->buf, in r300_emit_buffer_validate()
1395 r300->rws->cs_add_buffer(r300->cs, r300_resource(index_buffer)->buf, in r300_emit_buffer_validate()
1401 if (!r300->rws->cs_validate(r300->cs)) { in r300_emit_buffer_validate()
Dr300_public.h12 struct pipe_screen* r300_screen_create(struct radeon_winsys *rws,
Dr300_cs.h43 struct radeon_winsys *cs_winsys = (context)->rws; \
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_winsys.c87 static void amdgpu_winsys_destroy(struct radeon_winsys *rws) in amdgpu_winsys_destroy() argument
89 struct amdgpu_winsys *ws = (struct amdgpu_winsys*)rws; in amdgpu_winsys_destroy()
102 FREE(rws); in amdgpu_winsys_destroy()
105 static void amdgpu_winsys_query_info(struct radeon_winsys *rws, in amdgpu_winsys_query_info() argument
108 *info = ((struct amdgpu_winsys *)rws)->info; in amdgpu_winsys_query_info()
118 static uint64_t amdgpu_query_value(struct radeon_winsys *rws, in amdgpu_query_value() argument
121 struct amdgpu_winsys *ws = (struct amdgpu_winsys*)rws; in amdgpu_query_value()
186 static bool amdgpu_read_registers(struct radeon_winsys *rws, in amdgpu_read_registers() argument
190 struct amdgpu_winsys *ws = (struct amdgpu_winsys*)rws; in amdgpu_read_registers()
210 static bool amdgpu_winsys_unref(struct radeon_winsys *rws) in amdgpu_winsys_unref() argument
[all …]
Damdgpu_surface.c63 static int amdgpu_surface_init(struct radeon_winsys *rws, in amdgpu_surface_init() argument
69 struct amdgpu_winsys *ws = (struct amdgpu_winsys*)rws; in amdgpu_surface_init()
Damdgpu_cs.c60 amdgpu_fence_import_sync_file(struct radeon_winsys *rws, int fd) in amdgpu_fence_import_sync_file() argument
62 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_fence_import_sync_file()
91 static int amdgpu_fence_export_sync_file(struct radeon_winsys *rws, in amdgpu_fence_export_sync_file() argument
94 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_fence_export_sync_file()
117 static int amdgpu_export_signalled_sync_file(struct radeon_winsys *rws) in amdgpu_export_signalled_sync_file() argument
119 struct amdgpu_winsys *ws = amdgpu_winsys(rws); in amdgpu_export_signalled_sync_file()
226 static bool amdgpu_fence_wait_rel_timeout(struct radeon_winsys *rws, in amdgpu_fence_wait_rel_timeout() argument
1055 static void amdgpu_cs_add_fence_dependency(struct radeon_winsys_cs *rws, in amdgpu_cs_add_fence_dependency() argument
1058 struct amdgpu_cs *acs = amdgpu_cs(rws); in amdgpu_cs_add_fence_dependency()
/external/pcre/dist2/src/
Dpcre2_dfa_match.c408 RWS_anchor *rws = *rwsptr; in more_workspace() local
411 if (rws->next != NULL) in more_workspace()
413 new = rws->next; in more_workspace()
421 unsigned int newsize = rws->size * 2; in more_workspace()
432 rws->next = new; in more_workspace()
2681 RWS_anchor *rws = (RWS_anchor *)RWS; in internal_dfa_match() local
2683 if (rws->free < RWS_RSIZE + RWS_OVEC_OSIZE) in internal_dfa_match()
2685 rc = more_workspace(&rws, RWS_OVEC_OSIZE, mb); in internal_dfa_match()
2687 RWS = (int *)rws; in internal_dfa_match()
2690 local_offsets = (PCRE2_SIZE *)(RWS + rws->size - rws->free); in internal_dfa_match()
[all …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_fence.c133 static bool si_fine_fence_signaled(struct radeon_winsys *rws, in si_fine_fence_signaled() argument
136 char *map = rws->buffer_map(fine->buf->buf, NULL, PIPE_TRANSFER_READ | in si_fine_fence_signaled()
189 struct radeon_winsys *rws = ((struct si_screen*)screen)->ws; in si_fence_finish() local
224 if (!rws->fence_wait(rws, rfence->sdma, timeout)) in si_fence_finish()
238 si_fine_fence_signaled(rws, &rfence->fine)) { in si_fence_finish()
239 rws->fence_reference(&rfence->gfx, NULL); in si_fence_finish()
288 if (rws->fence_wait(rws, rfence->gfx, timeout)) in si_fence_finish()
294 si_fine_fence_signaled(rws, &rfence->fine)) in si_fence_finish()

12