/third_party/mesa3d/src/gallium/drivers/virgl/ |
D | virgl_encode.c | 306 if ((ctx->cbuf->cdw + len + 1) > VIRGL_MAX_CMDBUF_DWORDS) in virgl_encoder_write_cmd_dword() 309 virgl_encoder_write_dword(ctx->cbuf, dword); in virgl_encoder_write_cmd_dword() 329 virgl_encoder_emit_resource(vs, ctx->cbuf, res); in virgl_encoder_write_res() 336 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_bind_object() 344 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_delete_object() 356 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_blend_state() 365 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state() 368 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state() 386 virgl_encoder_write_dword(ctx->cbuf, tmp); in virgl_encode_blend_state() 398 virgl_encoder_write_dword(ctx->cbuf, handle); in virgl_encode_dsa_state() [all …]
|
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/ |
D | virgl_vtest_winsys.c | 401 static boolean virgl_vtest_lookup_res(struct virgl_vtest_cmd_buf *cbuf, in virgl_vtest_lookup_res() argument 404 unsigned hash = res->res_handle & (sizeof(cbuf->is_handle_added)-1); in virgl_vtest_lookup_res() 407 if (cbuf->is_handle_added[hash]) { in virgl_vtest_lookup_res() 408 i = cbuf->reloc_indices_hashlist[hash]; in virgl_vtest_lookup_res() 409 if (cbuf->res_bo[i] == res) in virgl_vtest_lookup_res() 412 for (i = 0; i < cbuf->cres; i++) { in virgl_vtest_lookup_res() 413 if (cbuf->res_bo[i] == res) { in virgl_vtest_lookup_res() 414 cbuf->reloc_indices_hashlist[hash] = i; in virgl_vtest_lookup_res() 423 struct virgl_vtest_cmd_buf *cbuf) in virgl_vtest_release_all_res() argument 427 for (i = 0; i < cbuf->cres; i++) { in virgl_vtest_release_all_res() [all …]
|
/third_party/mesa3d/src/gallium/winsys/virgl/drm/ |
D | virgl_drm_winsys.c | 710 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/musl/libc-test/src/functionalext/supplement/unistd/ |
D | sethostname.c | 32 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()
|
D | setdomainname.c | 32 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()
|
/third_party/iowow/src/utils/ |
D | iwxstr.c | 118 char cbuf[32]; in iwxstr_vaprintf() local 119 cbuf[0] = '%'; in iwxstr_vaprintf() 123 while (strchr("0123456789 .+-hlLzI", *format) && *format && cblen < sizeof(cbuf) - 1) { in iwxstr_vaprintf() 127 cbuf[cblen++] = *(format++); in iwxstr_vaprintf() 129 cbuf[cblen++] = *format; in iwxstr_vaprintf() 130 cbuf[cblen] = '\0'; in iwxstr_vaprintf() 141 tlen = sprintf(tbuf, cbuf, va_arg(ap, long long)); in iwxstr_vaprintf() 143 tlen = sprintf(tbuf, cbuf, va_arg(ap, long)); in iwxstr_vaprintf() 145 tlen = sprintf(tbuf, cbuf, va_arg(ap, int)); in iwxstr_vaprintf() 155 tlen = sprintf(tbuf, cbuf, va_arg(ap, unsigned long long)); in iwxstr_vaprintf() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_state_fs_fastpath.c | 126 __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()
|
D | lp_scene.c | 203 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_rasterization() local 204 init_scene_texture(&scene->cbufs[i], cbuf); in lp_scene_begin_rasterization() 227 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_end_rasterization() local 228 if (llvmpipe_resource_is_texture(cbuf->texture)) { in lp_scene_end_rasterization() 229 llvmpipe_resource_unmap(cbuf->texture, in lp_scene_end_rasterization() 230 cbuf->u.tex.level, in lp_scene_end_rasterization() 231 cbuf->u.tex.first_layer); in lp_scene_end_rasterization() 602 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_binning() local 603 if (cbuf) { in lp_scene_begin_binning() 604 if (llvmpipe_resource_is_texture(cbuf->texture)) { in lp_scene_begin_binning() [all …]
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_job.c | 168 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/libsnd/src/ |
D | txw.c | 132 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 …]
|
D | dwd.c | 128 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/etnaviv/ |
D | etnaviv_state.c | 145 struct etna_surface *cbuf = etna_surface(fb->cbufs[0]); in etna_set_framebuffer_state() local 146 struct etna_resource *res = etna_resource(cbuf->base.texture); in etna_set_framebuffer_state() 148 uint32_t fmt = translate_pe_format(cbuf->base.format); in etna_set_framebuffer_state() 151 etna_update_render_resource(pctx, etna_resource(cbuf->prsc)); in etna_set_framebuffer_state() 168 if ((cbuf->surf.offset & 63) || in etna_set_framebuffer_state() 169 (((cbuf->surf.stride * 4) & 63) && cbuf->surf.height > 4)) { in etna_set_framebuffer_state() 176 cbuf->surf.offset, cbuf->surf.stride * 4); in etna_set_framebuffer_state() 180 cs->PE_COLOR_ADDR = cbuf->reloc[0]; in etna_set_framebuffer_state() 186 cs->PE_PIPE_COLOR_ADDR[i] = cbuf->reloc[i]; in etna_set_framebuffer_state() 190 cs->PE_COLOR_STRIDE = cbuf->surf.stride; in etna_set_framebuffer_state() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | name2uni.cpp | 124 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/ |
D | name2uni.cpp | 124 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/ |
D | name2uni.cpp | 124 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/python/Modules/_ssl/ |
D | debughelpers.c | 14 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/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_quad_fs.c | 84 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/mksh/ |
D | edit.c | 3443 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/boost/boost/graph/ |
D | buffer_concepts.hpp | 36 void const_constraints(const B& cbuf) in const_constraints() argument 42 const_reference ct = cbuf.top(); in const_constraints() 43 s = cbuf.size(); in const_constraints() 44 if (cbuf.empty()) in const_constraints()
|
/third_party/mesa3d/src/gallium/drivers/i915/ |
D | i915_state_immediate.c | 162 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()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | name2uni.cpp | 124 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local 125 if (cbuf == NULL) { in handleTransliterate() 193 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate() 196 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate() 253 uprv_free(cbuf); in handleTransliterate()
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
D | ucbuf.cpp | 168 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/flutter/skia/third_party/externals/icu/source/tools/toolutil/ |
D | ucbuf.cpp | 168 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/ |
D | ucbuf.cpp | 168 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/ |
D | ucbuf.cpp | 168 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 …]
|