Home
last modified time | relevance | path

Searched refs:cbuf (Results 1 – 25 of 117) sorted by relevance

12345

/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_encode.c316 if ((ctx->cbuf->cdw + len + 1) > VIRGL_MAX_CMDBUF_DWORDS) in virgl_encoder_write_cmd_dword()
319 virgl_encoder_write_dword(ctx->cbuf, dword); in virgl_encoder_write_cmd_dword()
339 virgl_encoder_emit_resource(vs, ctx->cbuf, res); in virgl_encoder_write_res()
346 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_bind_object()
354 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_delete_object()
366 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_blend_state()
375 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state()
378 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state()
396 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state()
408 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_dsa_state()
[all …]
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/
Dvirgl_vtest_winsys.c417 static boolean virgl_vtest_lookup_res(struct virgl_vtest_cmd_buf *cbuf, in virgl_vtest_lookup_res() argument
420 unsigned hash = res->res_handle & (sizeof(cbuf->is_handle_added)-1); in virgl_vtest_lookup_res()
423 if (cbuf->is_handle_added[hash]) { in virgl_vtest_lookup_res()
424 i = cbuf->reloc_indices_hashlist[hash]; in virgl_vtest_lookup_res()
425 if (cbuf->res_bo[i] == res) in virgl_vtest_lookup_res()
428 for (i = 0; i < cbuf->cres; i++) { in virgl_vtest_lookup_res()
429 if (cbuf->res_bo[i] == res) { in virgl_vtest_lookup_res()
430 cbuf->reloc_indices_hashlist[hash] = i; in virgl_vtest_lookup_res()
439 struct virgl_vtest_cmd_buf *cbuf) in virgl_vtest_release_all_res() argument
443 for (i = 0; i < cbuf->cres; i++) { in virgl_vtest_release_all_res()
[all …]
/third_party/mesa3d/src/gallium/winsys/virgl/drm/
Dvirgl_drm_winsys.c710 static bool virgl_drm_alloc_res_list(struct virgl_drm_cmd_buf *cbuf, in virgl_drm_alloc_res_list() argument
713 cbuf->nres = initial_size; in virgl_drm_alloc_res_list()
714 cbuf->cres = 0; in virgl_drm_alloc_res_list()
716 cbuf->res_bo = CALLOC(cbuf->nres, sizeof(struct virgl_hw_buf*)); in virgl_drm_alloc_res_list()
717 if (!cbuf->res_bo) in virgl_drm_alloc_res_list()
720 cbuf->res_hlist = MALLOC(cbuf->nres * sizeof(uint32_t)); in virgl_drm_alloc_res_list()
721 if (!cbuf->res_hlist) { in virgl_drm_alloc_res_list()
722 FREE(cbuf->res_bo); in virgl_drm_alloc_res_list()
729 static void virgl_drm_free_res_list(struct virgl_drm_cmd_buf *cbuf) in virgl_drm_free_res_list() argument
733 for (i = 0; i < cbuf->cres; i++) { in virgl_drm_free_res_list()
[all …]
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_shader_buffer.c115 struct svga_shader_buffer *cbuf = &svga->curr.shader_buffers[shader][i]; in svga_set_shader_buffers() local
118 cbuf->desc = *buf; in svga_set_shader_buffers()
119 pipe_resource_reference(&cbuf->resource, buf->buffer); in svga_set_shader_buffers()
125 cbuf->desc.buffer = NULL; in svga_set_shader_buffers()
126 pipe_resource_reference(&cbuf->resource, NULL); in svga_set_shader_buffers()
128 cbuf->uav_index = -1; in svga_set_shader_buffers()
135 struct svga_shader_buffer *cbuf = &svga->curr.shader_buffers[shader][i]; in svga_set_shader_buffers() local
136 cbuf->desc.buffer = NULL; in svga_set_shader_buffers()
137 cbuf->uav_index = -1; in svga_set_shader_buffers()
138 pipe_resource_reference(&cbuf->resource, NULL); in svga_set_shader_buffers()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dsetdomainname.c32 char cbuf[BUFSIZ] = {0}; in setdomainname_0100() local
33 int result = getdomainname(cbuf, sizeof(cbuf)); in setdomainname_0100()
56 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0100()
71 char cbuf[BUFSIZ] = {0}; in setdomainname_0200() local
72 int result = getdomainname(cbuf, sizeof(cbuf)); in setdomainname_0200()
95 result = setdomainname(cbuf, strlen(cbuf)); in setdomainname_0200()
Dsethostname.c32 char cbuf[BUFSIZ] = {0}; in sethostname_0100() local
33 int result = gethostname(cbuf, sizeof(cbuf)); in sethostname_0100()
56 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0100()
71 char cbuf[BUFSIZ] = {0}; in sethostname_0200() local
72 int result = gethostname(cbuf, sizeof(cbuf)); in sethostname_0200()
95 result = sethostname(cbuf, strlen(cbuf)); in sethostname_0200()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_state_fs_fastpath.c126 __m128i *cbuf = (__m128i *)cbufs[0]; in opaque_color() local
127 unsigned stride = strides[0] / sizeof *cbuf; in opaque_color()
133 mm_store_mask_si128(cbuf, vec_mask[0], vec_color); cbuf += stride; in opaque_color()
134 mm_store_mask_si128(cbuf, vec_mask[1], vec_color); cbuf += stride; in opaque_color()
135 mm_store_mask_si128(cbuf, vec_mask[2], vec_color); cbuf += stride; in opaque_color()
136 mm_store_mask_si128(cbuf, vec_mask[3], vec_color); in opaque_color()
Dlp_scene.c207 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_rasterization() local
208 init_scene_texture(&scene->cbufs[i], cbuf); in lp_scene_begin_rasterization()
229 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_end_rasterization() local
230 if (llvmpipe_resource_is_texture(cbuf->texture)) { in lp_scene_end_rasterization()
231 llvmpipe_resource_unmap(cbuf->texture, in lp_scene_end_rasterization()
232 cbuf->u.tex.level, in lp_scene_end_rasterization()
233 cbuf->u.tex.first_layer); in lp_scene_end_rasterization()
633 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_binning() local
634 if (cbuf) { in lp_scene_begin_binning()
635 if (llvmpipe_resource_is_texture(cbuf->texture)) { in lp_scene_begin_binning()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_job.c168 struct pipe_surface *cbuf, struct pipe_surface *zsbuf) in vc4_get_job() argument
171 struct vc4_job_key local_key = {.cbuf = cbuf, .zsbuf = zsbuf}; in vc4_get_job()
180 if (cbuf) in vc4_get_job()
181 vc4_flush_jobs_reading_resource(vc4, cbuf->texture); in vc4_get_job()
187 if (cbuf) { in vc4_get_job()
188 if (cbuf->texture->nr_samples > 1) { in vc4_get_job()
190 pipe_surface_reference(&job->msaa_color_write, cbuf); in vc4_get_job()
192 pipe_surface_reference(&job->color_write, cbuf); in vc4_get_job()
213 if (cbuf) in vc4_get_job()
214 _mesa_hash_table_insert(vc4->write_jobs, cbuf->texture, job); in vc4_get_job()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_state.c147 struct etna_surface *cbuf = etna_surface(fb->cbufs[0]); in etna_set_framebuffer_state() local
148 struct etna_resource *res = etna_resource(cbuf->base.texture); in etna_set_framebuffer_state()
150 uint32_t fmt = translate_pe_format(cbuf->base.format); in etna_set_framebuffer_state()
154 etna_update_render_resource(pctx, etna_resource(cbuf->prsc)); in etna_set_framebuffer_state()
165 if (util_format_get_blocksize(cbuf->base.format) <= 2) in etna_set_framebuffer_state()
178 if ((cbuf->surf.offset & 63) || in etna_set_framebuffer_state()
179 (((cbuf->surf.stride * 4) & 63) && cbuf->surf.height > 4)) { in etna_set_framebuffer_state()
186 cbuf->surf.offset, cbuf->surf.stride * 4); in etna_set_framebuffer_state()
195 cs->PE_PIPE_COLOR_ADDR[i] = cbuf->reloc[i]; in etna_set_framebuffer_state()
199 cs->PE_COLOR_ADDR = cbuf->reloc[0]; in etna_set_framebuffer_state()
[all …]
/third_party/libsnd/src/
Dtxw.c132 memset (ubuf.cbuf, 0, sizeof (ubuf.cbuf)) ; in txw_read_header()
133 psf_binheader_readf (psf, "pb", 0, ubuf.cbuf, 16) ; in txw_read_header()
135 if (memcmp (ubuf.cbuf, "LM8953\0\0\0\0\0\0\0\0\0\0", 16) != 0) in txw_read_header()
245 bufferlen = sizeof (ubuf.cbuf) / 3 ; in txw_read_s()
249 count = psf_fread (ubuf.cbuf, 3, readcount, psf) ; in txw_read_s()
275 bufferlen = sizeof (ubuf.cbuf) / 3 ; in txw_read_i()
279 count = psf_fread (ubuf.cbuf, 3, readcount, psf) ; in txw_read_i()
311 bufferlen = sizeof (ubuf.cbuf) / 3 ; in txw_read_f()
315 count = psf_fread (ubuf.cbuf, 3, readcount, psf) ; in txw_read_f()
347 bufferlen = sizeof (ubuf.cbuf) / 3 ; in txw_read_d()
[all …]
Ddwd.c128 memset (ubuf.cbuf, 0, sizeof (ubuf.cbuf)) ; in dwd_read_header()
130 psf_binheader_readf (psf, "pb", 0, ubuf.cbuf, DWD_IDENTIFIER_LEN) ; in dwd_read_header()
132 if (memcmp (ubuf.cbuf, DWD_IDENTIFIER, DWD_IDENTIFIER_LEN) != 0) in dwd_read_header()
135 psf_log_printf (psf, "Read only : DiamondWare Digitized (.dwd)\n", ubuf.cbuf) ; in dwd_read_header()
/third_party/mesa3d/src/gallium/drivers/lima/
Dlima_job.c58 struct lima_surface *surf = lima_surface(job->key.cbuf); in lima_get_fb_info()
102 struct pipe_surface *cbuf, in lima_job_create() argument
129 pipe_surface_reference(&s->key.cbuf, cbuf); in lima_job_create()
146 if (job->key.cbuf && (job->resolve & PIPE_CLEAR_COLOR0)) in lima_job_free()
147 _mesa_hash_table_remove_key(ctx->write_jobs, job->key.cbuf->texture); in lima_job_free()
151 pipe_surface_reference(&job->key.cbuf, NULL); in lima_job_free()
163 struct pipe_surface *cbuf, in lima_job_get_with_fb() argument
167 .cbuf = cbuf, in lima_job_get_with_fb()
175 struct lima_job *job = lima_job_create(ctx, cbuf, zsbuf); in lima_job_get_with_fb()
316 if (!(job->key.cbuf && (job->resolve & PIPE_CLEAR_COLOR0))) in lima_job_get_damage()
[all …]
/third_party/f2fs-tools/fsck/
Dcompress.c47 memset(cc->cbuf->cdata, 0, cc->cluster_size * F2FS_BLKSIZE in reset_cc()
61 cc->cbuf = (struct compress_data *)((char *) cc->rbuf + size); in lzo_compress_init()
66 int ret = lzo1x_1_15_compress(cc->rbuf, cc->rlen, cc->cbuf->cdata, in lzo_compress()
68 cc->cbuf->clen = cpu_to_le32(cc->clen); in lzo_compress()
82 cc->cbuf = (struct compress_data *)((char *) cc->rbuf + size); in lz4_compress_init()
88 (char *)cc->cbuf->cdata, cc->rlen, in lz4_compress()
96 cc->cbuf->clen = cpu_to_le32(cc->clen); in lz4_compress()
/third_party/python/Modules/_ssl/
Ddebughelpers.c14 const char *cbuf = (const char *)buf; in _PySSL_msg_callback() local
47 msg_type = (int)cbuf[1]; in _PySSL_msg_callback()
50 msg_type = (int)cbuf[0]; in _PySSL_msg_callback()
55 version = cbuf[1] << 8 | cbuf[2]; in _PySSL_msg_callback()
56 msg_type = (int)cbuf[0]; in _PySSL_msg_callback()
61 msg_type = (int)cbuf[0]; in _PySSL_msg_callback()
/third_party/mksh/
Dedit.c3443 char *cbuf; member
3621 ebuf.cbuf = buf; in x_vi()
3622 if (undobuf.cbuf == NULL) { in x_vi()
3625 undobuf.cbuf = alloc(LINE, AEDIT); in x_vi()
3673 xbuf = ebuf.cbuf; in x_vi()
3702 if (vs->cbuf != buf) in x_vi()
3703 memcpy(buf, vs->cbuf, vs->linelen); in x_vi()
3794 vs->cbuf[vs->cursor++] = ch; in vi_hook()
3896 new_es.cbuf = locpat; in vi_hook()
3919 vs->cbuf[vs->linelen++] = '^'; in vi_hook()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dname2uni.cpp124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local
125 if (cbuf == NULL) { in handleTransliterate()
193 cbuf[0] = 0; in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
197 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate()
254 uprv_free(cbuf); in handleTransliterate()
/third_party/skia/third_party/externals/icu/source/i18n/
Dname2uni.cpp124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local
125 if (cbuf == NULL) { in handleTransliterate()
193 cbuf[0] = 0; in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
197 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate()
254 uprv_free(cbuf); in handleTransliterate()
/third_party/icu/icu4c/source/i18n/
Dname2uni.cpp124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local
125 if (cbuf == NULL) { in handleTransliterate()
193 cbuf[0] = 0; in handleTransliterate()
194 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
197 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate()
254 uprv_free(cbuf); in handleTransliterate()
/third_party/mesa3d/src/gallium/drivers/softpipe/
Dsp_quad_fs.c84 uint cbuf; in coverage_quad() local
87 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) { in coverage_quad()
88 float (*quadColor)[4] = quad->output.color[cbuf]; in coverage_quad()
/third_party/flutter/skia/third_party/externals/icu/source/tools/toolutil/
Ducbuf.cpp168 char* cbuf = carr; in ucbuf_fillucbuf() local
187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf()
192 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf()
193 if (cbuf == NULL) { in ucbuf_fillucbuf()
197 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf()
220 source = cbuf; in ucbuf_fillucbuf()
248 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf()
254 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf()
260 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf()
288 source = cbuf; in ucbuf_fillucbuf()
[all …]
/third_party/node/deps/icu-small/source/tools/toolutil/
Ducbuf.cpp168 char* cbuf = carr; in ucbuf_fillucbuf() local
187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf()
192 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf()
193 if (cbuf == NULL) { in ucbuf_fillucbuf()
197 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf()
220 source = cbuf; in ucbuf_fillucbuf()
248 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf()
254 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf()
260 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf()
288 source = cbuf; in ucbuf_fillucbuf()
[all …]
/third_party/icu/icu4c/source/tools/toolutil/
Ducbuf.cpp168 char* cbuf = carr; in ucbuf_fillucbuf() local
187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf()
192 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf()
193 if (cbuf == NULL) { in ucbuf_fillucbuf()
197 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf()
220 source = cbuf; in ucbuf_fillucbuf()
248 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf()
254 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf()
260 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf()
288 source = cbuf; in ucbuf_fillucbuf()
[all …]
/third_party/skia/third_party/externals/icu/source/tools/toolutil/
Ducbuf.cpp168 char* cbuf = carr; in ucbuf_fillucbuf() local
187 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf()
192 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf()
193 if (cbuf == NULL) { in ucbuf_fillucbuf()
197 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf()
220 source = cbuf; in ucbuf_fillucbuf()
248 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf()
254 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf()
260 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf()
288 source = cbuf; in ucbuf_fillucbuf()
[all …]
/third_party/mesa3d/src/gallium/drivers/i915/
Di915_state_immediate.c162 struct i915_surface *cbuf = i915_surface(i915->framebuffer.cbufs[0]); in upload_S6() local
163 if (cbuf && cbuf->alpha_in_g) in upload_S6()
165 else if (cbuf && cbuf->alpha_is_x) in upload_S6()

12345