Home
last modified time | relevance | path

Searched refs:buffer_ptr (Results 1 – 25 of 48) sorted by relevance

12

/external/tpm2/
Dmarshal_test.c33 BYTE *buffer_ptr = buffer; \
40 BYTE *buffer_ptr = buffer; \
46 buffer_ptr = buffer; \
51 buffer_ptr = buffer; \
83 UINT16 bytes_marshalled = uint32_t_Marshal(&value, &buffer_ptr, &size); in BasicTypesSuccessTest()
86 CHECK_EQ(buffer_ptr, buffer+num_bytes) in BasicTypesSuccessTest()
89 TPM_RC rc = uint32_t_Unmarshal(&value, &buffer_ptr, &size); in BasicTypesSuccessTest()
92 CHECK_EQ(buffer_ptr, buffer+num_bytes); in BasicTypesSuccessTest()
101 UINT16 bytes_marshalled = uint32_t_Marshal(&value, &buffer_ptr, &size); in BasicTypesFailureTest()
104 CHECK_EQ(buffer, buffer_ptr); in BasicTypesFailureTest()
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DHashing.h387 bool store_and_advance(char *&buffer_ptr, char *buffer_end, const T& value,
390 if (buffer_ptr + store_size > buffer_end)
393 memcpy(buffer_ptr, value_data + offset, store_size);
394 buffer_ptr += store_size;
406 char buffer[64], *buffer_ptr = buffer;
408 while (first != last && store_and_advance(buffer_ptr, buffer_end,
412 return hash_short(buffer, buffer_ptr - buffer, seed);
413 assert(buffer_ptr == buffer_end);
420 buffer_ptr = buffer;
421 while (first != last && store_and_advance(buffer_ptr, buffer_end,
[all …]
/external/llvm/include/llvm/ADT/
DHashing.h387 bool store_and_advance(char *&buffer_ptr, char *buffer_end, const T& value,
390 if (buffer_ptr + store_size > buffer_end)
393 memcpy(buffer_ptr, value_data + offset, store_size);
394 buffer_ptr += store_size;
406 char buffer[64], *buffer_ptr = buffer;
408 while (first != last && store_and_advance(buffer_ptr, buffer_end,
412 return hash_short(buffer, buffer_ptr - buffer, seed);
413 assert(buffer_ptr == buffer_end);
420 buffer_ptr = buffer;
421 while (first != last && store_and_advance(buffer_ptr, buffer_end,
[all …]
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jdcoefct.c251 JBLOCKROW buffer_ptr; in consume_data() local
278 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in consume_data()
280 coef->MCU_buffer[blkn++] = buffer_ptr++; in consume_data()
322 JBLOCKROW buffer_ptr; in decompress_data() local
359 buffer_ptr = buffer[block_row]; in decompress_data()
362 (*inverse_DCT) (cinfo, compptr, (JCOEFPTR) buffer_ptr, in decompress_data()
364 buffer_ptr++; in decompress_data()
468 JBLOCKROW buffer_ptr, prev_block_row, next_block_row; in decompress_smooth_data() local
544 buffer_ptr = buffer[block_row]; in decompress_smooth_data()
546 prev_block_row = buffer_ptr; in decompress_smooth_data()
[all …]
Dfpdfapi_jctrans.c288 JBLOCKROW buffer_ptr; in compress_output() local
316 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in compress_output()
318 MCU_buffer[blkn++] = buffer_ptr++; in compress_output()
Dfpdfapi_jccoefct.c348 JBLOCKROW buffer_ptr; in compress_output() local
374 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in compress_output()
376 coef->MCU_buffer[blkn++] = buffer_ptr++; in compress_output()
/external/libjpeg-turbo/
Djdcoefct.c198 JBLOCKROW buffer_ptr; in consume_data() local
225 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in consume_data()
227 coef->MCU_buffer[blkn++] = buffer_ptr++; in consume_data()
269 JBLOCKROW buffer_ptr; in decompress_data() local
306 buffer_ptr = buffer[block_row] + cinfo->master->first_MCU_col[ci]; in decompress_data()
310 (*inverse_DCT) (cinfo, compptr, (JCOEFPTR) buffer_ptr, in decompress_data()
312 buffer_ptr++; in decompress_data()
416 JBLOCKROW buffer_ptr, prev_block_row, next_block_row; in decompress_smooth_data() local
495 buffer_ptr = buffer[block_row] + cinfo->master->first_MCU_col[ci]; in decompress_smooth_data()
497 prev_block_row = buffer_ptr; in decompress_smooth_data()
[all …]
Djctrans.c302 JBLOCKROW buffer_ptr; in compress_output() local
330 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in compress_output()
332 MCU_buffer[blkn++] = buffer_ptr++; in compress_output()
Djccoefct.c348 JBLOCKROW buffer_ptr; in compress_output() local
374 buffer_ptr = buffer[ci][yindex+yoffset] + start_col; in compress_output()
376 coef->MCU_buffer[blkn++] = buffer_ptr++; in compress_output()
/external/mesa3d/src/mesa/vbo/
Dvbo_exec_draw.c295 GLsizeiptr length = (exec->vtx.buffer_ptr - exec->vtx.buffer_map) * in vbo_exec_vtx_unmap()
304 exec->vtx.buffer_used += (exec->vtx.buffer_ptr - in vbo_exec_vtx_unmap()
308 assert(exec->vtx.buffer_ptr != NULL); in vbo_exec_vtx_unmap()
312 exec->vtx.buffer_ptr = NULL; in vbo_exec_vtx_unmap()
336 assert(!exec->vtx.buffer_ptr); in vbo_exec_vtx_map()
349 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_map()
352 exec->vtx.buffer_ptr = exec->vtx.buffer_map = NULL; in vbo_exec_vtx_map()
381 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_map()
467 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_vtx_flush()
Dvbo_exec_api.c70 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_buffers()
141 if (!exec->vtx.buffer_ptr) { in vbo_exec_vtx_wrap()
151 memcpy(exec->vtx.buffer_ptr, in vbo_exec_vtx_wrap()
154 exec->vtx.buffer_ptr += numComponents; in vbo_exec_vtx_wrap()
316 exec->vtx.buffer_ptr = exec->vtx.buffer_map; in vbo_exec_wrap_upgrade_vertex()
351 fi_type *dest = exec->vtx.buffer_ptr; in vbo_exec_wrap_upgrade_vertex()
353 assert(exec->vtx.buffer_ptr == exec->vtx.buffer_map); in vbo_exec_wrap_upgrade_vertex()
386 exec->vtx.buffer_ptr = dest; in vbo_exec_wrap_upgrade_vertex()
493 if (unlikely(!exec->vtx.buffer_ptr)) { \
496 assert(exec->vtx.buffer_ptr); \
[all …]
Dvbo_save_api.c316 assert(save->buffer == save->buffer_ptr); in _save_reset_counters()
394 save->buffer_ptr += sz; in convert_line_loop_to_strip()
534 save->buffer_ptr = vbo_save_map_vertex_store(ctx, save->vertex_store); in _save_compile_vertex_list()
535 save->out_of_memory = save->buffer_ptr == NULL; in _save_compile_vertex_list()
539 save->buffer_ptr = save->vertex_store->buffer + save->vertex_store->used; in _save_compile_vertex_list()
618 memcpy(save->buffer_ptr, in _save_wrap_filled_vertex()
621 save->buffer_ptr += numComponents; in _save_wrap_filled_vertex()
769 save->buffer_ptr = dest; in _save_upgrade_vertex()
857 save->buffer_ptr[i] = save->vertex[i]; \
859 save->buffer_ptr += save->vertex_size; \
[all …]
/external/mesa3d/src/glx/
Dindirect_glx.c244 INT32 *buffer_ptr; in indirect_bind_tex_image() local
268 buffer_ptr = (INT32 *) (drawable_ptr + 1); in indirect_bind_tex_image()
269 num_attrib_ptr = (CARD32 *) (buffer_ptr + 1); in indirect_bind_tex_image()
273 *buffer_ptr = buffer; in indirect_bind_tex_image()
295 INT32 *buffer_ptr; in indirect_release_tex_image() local
310 buffer_ptr = (INT32 *) (drawable_ptr + 1); in indirect_release_tex_image()
313 *buffer_ptr = buffer; in indirect_release_tex_image()
/external/c-ares/
Dares_query.c46 void ares__rc4(rc4_key* key, unsigned char *buffer_ptr, int buffer_len) in ares__rc4() argument
66 buffer_ptr[counter] = (unsigned char)(buffer_ptr[counter]^state[xorIndex]); in ares__rc4()
/external/netperf/src/
Dnettest_sctp.c693 message_int_ptr = (int *)(send_ring->buffer_ptr); in send_sctp_stream()
711 send_ring->buffer_ptr, send_size, in send_sctp_stream()
794 sctp_recvmsg(send_socket, send_ring->buffer_ptr, send_size, NULL, in send_sctp_stream()
1307 message_int_ptr = (int *)recv_ring->buffer_ptr; in recv_sctp_stream()
1322 recv_ring->buffer_ptr, recv_size, in recv_sctp_stream()
1353 if (sctp_process_event(s_data, recv_ring->buffer_ptr) == SCTP_CLOSE) in recv_sctp_stream()
1370 message_int_ptr = (int *)(recv_ring->buffer_ptr); in recv_sctp_stream()
1831 message_int_ptr = (int *)(send_ring->buffer_ptr); in send_sctp_stream_1toMany()
1851 send_ring->buffer_ptr, in send_sctp_stream_1toMany()
1951 sctp_recvmsg(send_socket[num_associations], send_ring->buffer_ptr, in send_sctp_stream_1toMany()
[all …]
Dnettest_sdp.c513 access_buffer(send_ring->buffer_ptr, in send_sdp_stream()
530 send_ring->buffer_ptr, in send_sdp_stream()
593 recv(send_socket, send_ring->buffer_ptr, send_size, 0); in send_sdp_stream()
1223 recv_ring->buffer_ptr, in send_sdp_maerts()
1236 access_buffer(recv_ring->buffer_ptr, in send_sdp_maerts()
1814 while ((len = recv(s_data, recv_ring->buffer_ptr, recv_size, 0)) != 0) { in recv_sdp_stream()
1826 access_buffer(recv_ring->buffer_ptr, in recv_sdp_stream()
2163 access_buffer(send_ring->buffer_ptr, in recv_sdp_maerts()
2171 send_ring->buffer_ptr, in recv_sdp_maerts()
2205 recv(s_data, send_ring->buffer_ptr, send_size, 0); in recv_sdp_maerts()
[all …]
Dnettest_unix.c483 message_int_ptr = (int *)(send_ring->buffer_ptr); in send_stream_stream()
495 send_ring->buffer_ptr, in send_stream_stream()
940 message_int_ptr = (int *)recv_ring->buffer_ptr; in recv_stream_stream()
952 while ((len = recv(s_data, recv_ring->buffer_ptr, recv_size, 0)) != 0) { in recv_stream_stream()
965 message_int_ptr = (int *)(recv_ring->buffer_ptr); in recv_stream_stream()
1279 send_ring->buffer_ptr, in send_stream_rr()
1294 temp_message_ptr = recv_ring->buffer_ptr; in send_stream_rr()
1730 message_int_ptr = (int *)(send_ring->buffer_ptr); in send_dg_stream()
1742 send_ring->buffer_ptr, in send_dg_stream()
2107 recv_ring->buffer_ptr, in recv_dg_stream()
[all …]
Dnettest_xti.c902 access_buffer(send_ring->buffer_ptr, in send_xti_tcp_stream()
915 send_ring->buffer_ptr, in send_xti_tcp_stream()
1549 access_buffer(recv_ring->buffer_ptr, in recv_xti_tcp_stream()
1560 recv_ring->buffer_ptr, in recv_xti_tcp_stream()
1571 access_buffer(recv_ring->buffer_ptr, in recv_xti_tcp_stream()
2083 send_ring->buffer_ptr, in send_xti_tcp_rr()
2104 temp_message_ptr = recv_ring->buffer_ptr; in send_xti_tcp_rr()
2716 unitdata.udata.buf = send_ring->buffer_ptr; in send_xti_udp_stream()
2770 access_buffer(send_ring->buffer_ptr, in send_xti_udp_stream()
2799 unitdata.udata.buf = send_ring->buffer_ptr; in send_xti_udp_stream()
[all …]
Dnettest_bsd.c2060 access_buffer(send_ring->buffer_ptr, in send_tcp_stream()
2077 send_ring->buffer_ptr, in send_tcp_stream()
2140 recv(send_socket, send_ring->buffer_ptr, send_size, 0); in send_tcp_stream()
2792 recv_ring->buffer_ptr, in send_tcp_maerts()
2805 access_buffer(recv_ring->buffer_ptr, in send_tcp_maerts()
3715 access_buffer(send_ring->buffer_ptr, in send_exs_tcp_stream()
3730 (exs_send (send_socket, send_ring->buffer_ptr, send_size, in send_exs_tcp_stream()
3841 recv(send_socket, send_ring->buffer_ptr, send_size, 0); in send_exs_tcp_stream()
5143 while (!times_up && ((len = recv(s_data, recv_ring->buffer_ptr, recv_size, 0)) != 0)) { in recv_tcp_stream()
5157 access_buffer(recv_ring->buffer_ptr, in recv_tcp_stream()
[all …]
Dnetlib.c1585 temp_link->buffer_ptr = (char *)(( (long)(temp_link->buffer_base) + in allocate_buffer_ring()
1589 temp_link->buffer_ptr = (char *)(( (ULONG_PTR)(temp_link->buffer_base) + in allocate_buffer_ring()
1593 temp_link->buffer_ptr += offset; in allocate_buffer_ring()
1596 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1614 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1643 access_buffer(char *buffer_ptr,int length, int dirty_count, int clean_count) { in access_buffer() argument
1649 temp_buffer = buffer_ptr; in access_buffer()
1776 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1780 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1784 temp_link->buffer_ptr += offset; in allocate_exs_buffer_ring()
[all …]
/external/webrtc/talk/app/webrtc/test/
Dfakeaudiocapturemodule.cc617 Sample* buffer_ptr = reinterpret_cast<Sample*>(send_buffer_); in SetSendBuffer() local
621 buffer_ptr[i] = value; in SetSendBuffer()
630 const Sample* buffer_ptr = reinterpret_cast<const Sample*>(rec_buffer_); in CheckRecBuffer() local
634 if (buffer_ptr[i] >= value) return true; in CheckRecBuffer()
/external/openssh/
Dssh-pkcs11-helper.c109 buffer_append(&oqueue, buffer_ptr(m), mlen); in send_msg()
222 cp = buffer_ptr(&iqueue); in process()
347 len = write(out, buffer_ptr(&oqueue), olen); in main()
Dttymodes.c337 packet_put_string(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes()
339 packet_put_raw(buffer_ptr(&buf), buffer_len(&buf)); in tty_make_modes()
Dmux.c654 buffer_put_string(&c->output, buffer_ptr(&out), buffer_len(&out)); in mux_confirm_remote_forward()
1075 buffer_put_string(&cc->output, buffer_ptr(&reply), buffer_len(&reply)); in mux_stdio_confirm()
1152 buffer_put_string(&c->output, buffer_ptr(&out), in mux_master_read_cb()
1202 buffer_put_string(&c->output, buffer_ptr(&out), in mux_master_read_cb()
1230 buffer_put_string(&mux_chan->output, buffer_ptr(&m), buffer_len(&m)); in mux_exit_message()
1251 buffer_put_string(&mux_chan->output, buffer_ptr(&m), buffer_len(&m)); in mux_tty_alloc_failed()
1404 buffer_put_string(&cc->output, buffer_ptr(&reply), buffer_len(&reply)); in mux_session_confirm()
1497 buffer_put_string(&queue, buffer_ptr(m), buffer_len(m)); in mux_client_write_packet()
1500 ptr = buffer_ptr(&queue); in mux_client_write_packet()
1554 need = get_u32(buffer_ptr(&queue)); in mux_client_read_packet()
[all …]
Dclientloop.c531 packet_put_string(buffer_ptr(&stdin_buffer), len); in client_make_packets_from_stdin_data()
725 atomicio(vwrite, fileno(stdout), buffer_ptr(bout), in client_suspend_self()
728 atomicio(vwrite, fileno(stderr), buffer_ptr(berr), in client_suspend_self()
1393 len = write(fileno(stdout), buffer_ptr(&stdout_buffer), in client_process_output()
1417 len = write(fileno(stderr), buffer_ptr(&stderr_buffer), in client_process_output()
1761 buffer_ptr(&stdout_buffer), buffer_len(&stdout_buffer)); in client_loop()
1771 buffer_ptr(&stderr_buffer), buffer_len(&stderr_buffer)); in client_loop()
2671 len, (u_char*)buffer_ptr(cmd)); in client_session2_setup()
2676 len, (u_char*)buffer_ptr(cmd)); in client_session2_setup()
2680 packet_put_string(buffer_ptr(cmd), buffer_len(cmd)); in client_session2_setup()

12