Home
last modified time | relevance | path

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

1234

/external/vboot_reference/tests/
Dvb21_common_tests.c55 uint8_t cbuf[sizeof(struct vb2_struct_common) + 128]; in test_common_header_functions() local
56 uint8_t cbufgood[sizeof(cbuf)]; in test_common_header_functions()
57 struct vb2_struct_common *c = (struct vb2_struct_common *)cbuf; in test_common_header_functions()
62 c->total_size = sizeof(cbuf); in test_common_header_functions()
65 memcpy(cbuf + c->fixed_size, test_desc, sizeof(test_desc)); in test_common_header_functions()
68 c2 = (struct vb2_struct_common *)(cbuf + desc_end); in test_common_header_functions()
77 TEST_SUCC(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
79 memcpy(cbufgood, cbuf, sizeof(cbufgood)); in test_common_header_functions()
81 memcpy(cbuf, cbufgood, sizeof(cbuf)); in test_common_header_functions()
83 TEST_EQ(vb2_verify_common_header(cbuf, sizeof(cbuf)), in test_common_header_functions()
[all …]
Dvb21_host_misc_tests.c37 uint8_t cbuf[sizeof(struct vb2_struct_common) + 12]; in file_tests() local
38 struct vb2_struct_common *c = (struct vb2_struct_common *)cbuf; in file_tests()
56 memset(cbuf, 0, sizeof(cbuf)); in file_tests()
58 c->total_size = sizeof(cbuf); in file_tests()
60 cbuf[sizeof(cbuf) - 1] = 0xed; /* Some non-zero data at the end */ in file_tests()
/external/guava/guava/src/com/google/common/io/
DLineBuffer.java50 protected void add(char[] cbuf, int off, int len) throws IOException { in add() argument
54 if (finishLine(cbuf[pos] == '\n')) { in add()
61 switch (cbuf[pos]) { in add()
63 line.append(cbuf, start, pos - start); in add()
66 if (finishLine(cbuf[pos + 1] == '\n')) { in add()
74 line.append(cbuf, start, pos - start); in add()
83 line.append(cbuf, start, off + len - start); in add()
DCharStreams.java196 public void write(char[] cbuf) { in write() argument
197 checkNotNull(cbuf); in write()
201 public void write(char[] cbuf, int off, int len) { in write() argument
202 checkPositionIndexes(off, off + len, cbuf.length); in write()
272 public int read(char[] cbuf, int off, int len) throws IOException { in asReader()
273 return read(CharBuffer.wrap(cbuf, off, len)); in asReader()
DMultiReader.java52 @Override public int read(@Nullable char cbuf[], int off, int len) throws IOException { in read() argument
56 int result = current.read(cbuf, off, len); in read()
59 return read(cbuf, off, len); in read()
DLineReader.java42 private final CharBuffer cbuf = CharBuffer.wrap(buf); field in LineReader
73 cbuf.clear(); in readLine()
78 : readable.read(cbuf); in readLine()
DCharSequenceReader.java82 public synchronized int read(char[] cbuf, int off, int len) throws IOException { in read() argument
83 checkPositionIndexes(off, off + len, cbuf.length); in read()
90 cbuf[off + i] = seq.charAt(pos++); in read()
/external/sl4a/ScriptingLayerForAndroid/src/de/mud/terminal/
DVDUBuffer.java365 char cbuf[][] = null; in insertLine() local
394 cbuf = new char[size][]; in insertLine()
397 System.arraycopy(charArray, oldBase + l, cbuf, 0, bottom - l - (n - 1)); in insertLine()
399 System.arraycopy(cbuf, 0, charArray, oldBase + l + n, bottom - l - (n - 1)); in insertLine()
401 cbuf = charArray; in insertLine()
422 cbuf = new char[newBufSize][]; in insertLine()
426 cbuf = charArray; in insertLine()
432 System.arraycopy(charArray, offset, cbuf, 0, oldBase - offset); in insertLine()
438 System.arraycopy(charArray, oldBase, cbuf, newScreenBase, top); in insertLine()
444 System.arraycopy(charArray, oldBase + top, cbuf, oldBase - offset, n); in insertLine()
[all …]
/external/mesa3d/src/gallium/drivers/llvmpipe/
Dlp_scene.c143 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_begin_rasterization() local
144 assert(cbuf->u.tex.first_layer == cbuf->u.tex.last_layer); in lp_scene_begin_rasterization()
145 scene->cbufs[i].stride = llvmpipe_resource_stride(cbuf->texture, in lp_scene_begin_rasterization()
146 cbuf->u.tex.level); in lp_scene_begin_rasterization()
148 scene->cbufs[i].map = llvmpipe_resource_map(cbuf->texture, in lp_scene_begin_rasterization()
149 cbuf->u.tex.level, in lp_scene_begin_rasterization()
150 cbuf->u.tex.first_layer, in lp_scene_begin_rasterization()
184 struct pipe_surface *cbuf = scene->fb.cbufs[i]; in lp_scene_end_rasterization() local
185 llvmpipe_resource_unmap(cbuf->texture, in lp_scene_end_rasterization()
186 cbuf->u.tex.level, in lp_scene_end_rasterization()
[all …]
Dlp_state_fs.c248 unsigned cbuf; in generate_fs() local
296 for(cbuf = 0; cbuf < key->nr_cbufs; cbuf++) { in generate_fs()
298 color[cbuf][chan] = lp_build_alloca(gallivm, vec_type, "color"); in generate_fs()
416 unsigned cbuf = shader->info.base.output_semantic_index[attrib]; in generate_fs() local
424 LLVMBuildStore(builder, out, color[cbuf][chan]); in generate_fs()
476 unsigned cbuf; in generate_fs_loop() local
539 for(cbuf = 0; cbuf < key->nr_cbufs; cbuf++) { in generate_fs_loop()
541 out_color[cbuf][chan] = lp_build_array_alloca(gallivm, in generate_fs_loop()
655 unsigned cbuf = shader->info.base.output_semantic_index[attrib]; in generate_fs_loop() local
663 color_ptr = LLVMBuildGEP(builder, out_color[cbuf][chan], in generate_fs_loop()
[all …]
Dlp_rast_priv.h194 struct pipe_surface *cbuf = scene->fb.cbufs[buf]; in lp_rast_get_color_tile_pointer() local
196 assert(cbuf); in lp_rast_get_color_tile_pointer()
197 lpt = llvmpipe_resource(cbuf->texture); in lp_rast_get_color_tile_pointer()
202 cbuf->u.tex.first_layer, in lp_rast_get_color_tile_pointer()
203 cbuf->u.tex.level, in lp_rast_get_color_tile_pointer()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_quad_fs.c87 uint cbuf; in coverage_quad() local
90 for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) { in coverage_quad()
91 float (*quadColor)[4] = quad->output.color[cbuf]; in coverage_quad()
/external/mksh/src/
Dedit.c3371 char *cbuf; member
3550 ebuf.cbuf = buf; in x_vi()
3551 if (undobuf.cbuf == NULL) { in x_vi()
3554 undobuf.cbuf = alloc(LINE, AEDIT); in x_vi()
3628 if (es->cbuf != buf) in x_vi()
3629 memcpy(buf, es->cbuf, es->linelen); in x_vi()
3716 es->cbuf[es->cursor++] = ch; in vi_hook()
3818 new_es.cbuf = locpat; in vi_hook()
3841 es->cbuf[es->linelen++] = '^'; in vi_hook()
3842 es->cbuf[es->linelen++] = UNCTRL(ch); in vi_hook()
[all …]
/external/proguard/src/proguard/io/
DManifestRewriter.java117 public int read(char[] cbuf, int off, int len) throws IOException in read() argument
129 cbuf[off + count++] = (char)c; in read()
197 public void write(char[] cbuf, int off, int len) throws IOException in write() argument
201 write(cbuf[off + count]); in write()
/external/icu/icu4c/source/i18n/
Dname2uni.cpp122 char* cbuf = (char*) uprv_malloc(maxLen); in handleTransliterate() local
123 if (cbuf == NULL) { in handleTransliterate()
191 name.extract(0, len, cbuf, maxLen, US_INV); in handleTransliterate()
194 c = u_charFromName(U_EXTENDED_CHAR_NAME, cbuf, &status); in handleTransliterate()
251 uprv_free(cbuf); in handleTransliterate()
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.c166 char* cbuf = carr; in ucbuf_fillucbuf() local
185 inputRead=T_FileStream_read(buf->in,cbuf,cbufSize-offset); in ucbuf_fillucbuf()
190 cbuf = (char*)uprv_malloc(cbufSize); in ucbuf_fillucbuf()
191 if (cbuf == NULL) { in ucbuf_fillucbuf()
195 inputRead= T_FileStream_read(buf->in,cbuf,cbufSize); in ucbuf_fillucbuf()
218 source = cbuf; in ucbuf_fillucbuf()
246 pos = (int32_t)(source - cbuf - len); in ucbuf_fillucbuf()
252 memcpy(preContext,cbuf+start,stop-start); in ucbuf_fillucbuf()
258 …top = (int32_t)(((pos+CONTEXT_LEN)<= (sourceLimit-cbuf) )? (pos+(CONTEXT_LEN-1)) : (sourceLimit-c… in ucbuf_fillucbuf()
286 source = cbuf; in ucbuf_fillucbuf()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DLineBufferTest.java132 public int read(CharBuffer cbuf) throws IOException { in getChunkedReadable()
133 return reader.read(cbuf); in getChunkedReadable()
140 @Override public int read(char[] cbuf, int off, int len)
142 return super.read(cbuf, off, Math.min(chunk, len));
DTestWriter.java49 public void write(char[] cbuf, int off, int len) throws IOException { in write() argument
50 super.write(cbuf, off, len); in write()
DTestCharSink.java64 public void write(char[] cbuf, int off, int len) throws IOException { in openStream() argument
65 super.write(cbuf, off, len); in openStream()
/external/mesa3d/src/gallium/drivers/i915/
Di915_clear.c62 struct pipe_surface *cbuf = i915->framebuffer.cbufs[0]; in i915_clear_emit() local
65 cbuf_tex = i915_texture(cbuf->texture); in i915_clear_emit()
67 util_pack_color(color->f, cbuf->format, &u_color); in i915_clear_emit()
78 util_pack_color(color->f, cbuf->format, &u_color); in i915_clear_emit()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestLogWriter.java22 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
23 write(new String(cbuf, off, len)); in write()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DTestLogWriter.java23 public void write(char cbuf[], int off, int len) throws IOException { in write() argument
24 write(new String(cbuf, off, len)); in write()
/external/mesa3d/src/gallium/state_trackers/vega/
Drenderer.c152 struct pipe_resource *cbuf; in renderer_set_mvp() local
172 cbuf = renderer->vs_cbuf; in renderer_set_mvp()
173 pipe_resource_reference(&cbuf, NULL); in renderer_set_mvp()
174 cbuf = pipe_buffer_create(renderer->pipe->screen, in renderer_set_mvp()
178 if (cbuf) { in renderer_set_mvp()
179 pipe_buffer_write(renderer->pipe, cbuf, in renderer_set_mvp()
183 PIPE_SHADER_VERTEX, 0, cbuf); in renderer_set_mvp()
186 renderer->vs_cbuf = cbuf; in renderer_set_mvp()
364 struct pipe_surface *cbuf, in renderer_set_target() argument
371 fb.width = cbuf->width; in renderer_set_target()
[all …]
/external/ppp/pppd/
Dsession.c183 char *cbuf;
360 cbuf = crypt(passwd, pw->pw_passwd);
361 if (!cbuf || strcmp(cbuf, pw->pw_passwd) != 0)
/external/opencv/cv/src/
Dcvstereobm.cpp197 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM_SSE2() local
223 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2()
227 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM_SSE2()
233 cbuf[d] = (uchar)diff; in icvFindStereoCorrespondenceBM_SSE2()
254 uchar* cbuf = cbuf0 + ((x1 + wsz2 + 1) % (wsz + 1))*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM_SSE2() local
260 for( y = -dy0; y < height + dy1; y++, cbuf += ndisp, cbuf_sub += ndisp, in icvFindStereoCorrespondenceBM_SSE2()
273 _mm_store_si128((__m128i*)(cbuf + d), diff); in icvFindStereoCorrespondenceBM_SSE2()
404 uchar *cbuf0, *cbuf; in icvFindStereoCorrespondenceBM() local
429 hsad = hsad0 - dy0*ndisp; cbuf = cbuf0 + (x + wsz2 + 1)*cstep - dy0*ndisp; in icvFindStereoCorrespondenceBM()
433 … for( y = -dy0; y < height + dy1; y++, hsad += ndisp, cbuf += ndisp, lptr += sstep, rptr += sstep ) in icvFindStereoCorrespondenceBM()
[all …]

1234