/third_party/icu/icu4c/source/test/cintltst/ |
H A D | cbiapts.c | 383 uint8_t buffer [CLONETEST_ITERATOR_COUNT] [U_BRK_SAFECLONE_BUFFERSIZE]; in TestBreakIteratorSafeClone() local 422 if (NULL != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, NULL)) in TestBreakIteratorSafeClone() 428 if (NULL != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status) || status != U_MEMORY_ALLOCATION_ERROR) in TestBreakIteratorSafeClone() 434 /* Null buffer size pointer is ok */ in TestBreakIteratorSafeClone() 435 if (NULL == (brk = ubrk_safeClone(someIterators[i], buffer[i], NULL, &status)) || U_FAILURE(status)) in TestBreakIteratorSafeClone() 442 /* buffer size pointer is 0 - fill in pbufferSize with a size */ in TestBreakIteratorSafeClone() 444 if (NULL != ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status) || in TestBreakIteratorSafeClone() 452 log_err("FAIL: Pre-calculated buffer size is too small - %d but needed %d\n", U_BRK_SAFECLONE_BUFFERSIZE, bufferSize); in TestBreakIteratorSafeClone() 455 if (NULL == (brk = ubrk_safeClone(someIterators[i], buffer[i], &bufferSize, &status)) || U_FAILURE(status)) in TestBreakIteratorSafeClone() 467 log_err("FAIL: Cloned Iterator failed to deal correctly with too-small buffer siz in TestBreakIteratorSafeClone() [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | rndis.c | 139 FAR struct usbdev_req_s *net_req; /* Pointer to request whose buffer is assigned to network */ 140 FAR struct usbdev_req_s *rx_req; /* Pointer request container that holds RX buffer */ 147 bool ctrlreq_has_encap_response; /* Indicates if ctrlreq buffer holds a response */ 485 * on the bulk OUT endpoint, it is copied to the reserved request buffer. 489 * The processing worker passes the buffer to the network. When the network is 490 * done processing the packet, the buffer might contain data to be sent. 506 * when the RX packet buffer is already in use. 676 * Allocates a request buffer to be used on the network. 717 * Submits the request buffer held by the network. 746 * Frees the request buffer hel [all...] |
/third_party/jerryscript/tests/unit-core/ |
H A D | test-api.cpp | 72 char buffer[32]; in handler() local 84 (jerry_char_t *) buffer, in handler() 87 TEST_ASSERT (!strncmp (buffer, "1", (size_t) sz)); in handler() 382 char buffer[32]; in HWTEST_F() local 455 sz = jerry_string_to_char_buffer (res, (jerry_char_t *) buffer, sz); in HWTEST_F() 458 TEST_ASSERT (!strncmp (buffer, "abcd", (size_t) sz)); in HWTEST_F() 548 sz = jerry_string_to_char_buffer (res, (jerry_char_t *) buffer, sz); in HWTEST_F() 551 TEST_ASSERT (!strncmp (buffer, "string from handler", (size_t) sz)); in HWTEST_F()
|
/third_party/lame/libmp3lame/ |
H A D | bitstream.c | 95 /* in freeformat the buffer is constant */ in get_max_frame_buffer_size_by_constraint() 117 /* All mp3 decoders should have enough buffer to handle this value: size of a 320kbps 32kHz frame */ in get_max_frame_buffer_size_by_constraint() 482 /* yikes! we are out of header buffer space */ in encodeSideInfo2() 787 currently in the buffer. This should be the same as the 789 only after all headers and data have been added to the buffer 793 size of mp3 buffer (including frame headers which may not 794 have yet been send to the mp3 buffer) + 797 total_bytes_output is the size of the mp3 output buffer if 845 /* if flushbits < 0, this would mean that the buffer looks like: in compute_flushbits() 856 ERRORF(gfc, "strange error flushing buffer in compute_flushbits() 988 do_gain_analysis(lame_internal_flags * gfc, unsigned char* buffer, int minimum) do_gain_analysis() argument 1056 do_copy_buffer(lame_internal_flags * gfc, unsigned char *buffer, int size) do_copy_buffer() argument 1079 copy_buffer(lame_internal_flags * gfc, unsigned char *buffer, int size, int mp3data) copy_buffer() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/v3d/ |
H A D | v3dx_state.c | 114 /* The HW treats polygon offset units based on a Z24 buffer, so we in v3d_create_rasterizer_state() 1017 /* sRGB was stored in the tile buffer as linear and in create_texture_shader_state_bo() 1019 * buffer store. Note that this means we would need in create_texture_shader_state_bo() 1262 pipe_resource_reference(&target->base.buffer, prsc); in v3d_create_stream_output_target() 1275 pipe_resource_reference(&target->buffer, NULL); in v3d_stream_output_target_destroy() 1334 if ((buf->buffer == buffers[i].buffer) && in v3d_set_shader_buffers() 1343 pipe_resource_reference(&buf->buffer, buffers[i].buffer); in v3d_set_shader_buffers() 1345 if (buf->buffer) in v3d_set_shader_buffers() [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | uloc.cpp | 540 * @param buf buffer of size [ULOC_KEYWORD_BUFFER_LEN] 557 /* keyword name too long for internal buffer */ in locale_canonKeywordName() 626 /* keyword name too long for internal buffer */ in ulocimp_getKeywords() 709 char* buffer, int32_t bufferCapacity, in uloc_getKeywordValue() 716 CheckedArrayByteSink sink(buffer, bufferCapacity); in uloc_getKeywordValue() 728 u_terminateChars(buffer, bufferCapacity, reslen, status); in uloc_getKeywordValue() 807 /* keyword name too long for internal buffer */ in ulocimp_getKeywordValue() 849 char* buffer, int32_t bufferCapacity, in uloc_setKeywordValue() 879 bufLen = (int32_t)uprv_strlen(buffer); in uloc_setKeywordValue() 901 /* keywordValue too long for internal buffer */ in uloc_setKeywordValue() 707 uloc_getKeywordValue(const char* localeID, const char* keywordName, char* buffer, int32_t bufferCapacity, UErrorCode* status) uloc_getKeywordValue() argument 847 uloc_setKeywordValue(const char* keywordName, const char* keywordValue, char* buffer, int32_t bufferCapacity, UErrorCode* status) uloc_setKeywordValue() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_vbo.c | 146 const void *data = (const uint8_t *)vb->buffer.user + ve->src_offset; in nv50_emit_vtxattr() 223 addrs[b] = nouveau_scratch_data(&nv50->base, vb->buffer.user, base, size, in nv50_upload_user_buffers() 262 address[b] = nouveau_scratch_data(&nv50->base, vb->buffer.user, in nv50_update_user_vbufs() 310 /* if vertex buffer was written by GPU - flush VBO cache */ in nv50_vertex_arrays_validate() 313 struct nv04_resource *buf = nv04_resource(nv50->vtxbuf[i].buffer.resource); in nv50_vertex_arrays_validate() 383 if (!vb->buffer.resource) { in nv50_vertex_arrays_validate() 388 struct nv04_resource *buf = nv04_resource(vb->buffer.resource); in nv50_vertex_arrays_validate() 621 /* This shouldn't have to be here. The going theory is that the buffer in nv50_draw_elements() 710 struct nv04_resource *res = nv04_resource(so->pipe.buffer); in nva0_draw_stream_output() 777 if (indirect && indirect->buffer) { in nv50_draw_vbo() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/texture_buffer/ |
H A D | esextcTextureBufferOperations.cpp | 78 /* Check if texture buffer extension is supported */ in initTest() 90 /* Create buffer object*/ in initTest() 92 GLU_EXPECT_NO_ERROR(gl.getError(), "Error generating buffer object!"); in initTest() 95 GLU_EXPECT_NO_ERROR(gl.getError(), "Error binding buffer object !"); in initTest() 99 GLU_EXPECT_NO_ERROR(gl.getError(), "Error allocating data store for buffer object!"); in initTest() 101 /* Create texture buffer */ in initTest() 112 GLU_EXPECT_NO_ERROR(gl.getError(), "Error binding buffer object to texture buffer!"); in initTest() 114 /* Initialize texture buffer object */ in initTest() 146 GLU_EXPECT_NO_ERROR(gl.getError(), "Error generating buffer objec in initFirstPhase() 571 fillBufferWithData(glw::GLint* buffer, glw::GLuint bufferLength) fillBufferWithData() argument 1050 fillBufferWithData(glw::GLint* buffer, glw::GLuint bufferLength) fillBufferWithData() argument 1431 fillBufferWithData(glw::GLint* buffer, glw::GLuint bufferLength) fillBufferWithData() argument 1553 fillBufferWithData(glw::GLint* buffer, glw::GLuint bufferLength) fillBufferWithData() argument [all...] |
/third_party/skia/src/core/ |
H A D | SkMaskBlurFilter.cpp | 168 // Starting from the right, fill in the rest of the buffer. in blur() 215 Scan makeBlurScan(int width, uint32_t* buffer) const { 217 buffer0 = buffer; 240 // NB 135 is the largest sigma that will not cause a buffer full of 255 mask values to overflow 322 uint8_t buffer[8]; 323 b.store(buffer); 325 to[i] = buffer[i]; 555 // Clear the buffer to handle summing wider than source. 989 auto buffer = alloc.makeArrayDefault<uint32_t>(bufferSize); 995 // Make sure not to overflow the multiply for the tmp buffer siz [all...] |
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | entry_points.h | 28 void GL_APIENTRY BindBuffer(GLenum target, GLuint buffer); 126 GLboolean GL_APIENTRY IsBuffer(GLuint buffer); 263 void GL_APIENTRY BindBufferRange(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size); 264 void GL_APIENTRY BindBufferBase(GLenum target, GLuint index, GLuint buffer); 284 void GL_APIENTRY ClearBufferiv(GLenum buffer, GLint drawbuffer, const GLint *value); 285 void GL_APIENTRY ClearBufferuiv(GLenum buffer, GLint drawbuffer, const GLuint *value); 286 void GL_APIENTRY ClearBufferfv(GLenum buffer, GLint drawbuffer, const GLfloat *value); 287 void GL_APIENTRY ClearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
|
/third_party/python/Python/ |
H A D | codecs.c | 972 char buffer[256]; /* NAME_MAXLEN */ in PyCodec_NameReplaceErrors() local 990 if (ucnhash_capi->getname(c, buffer, sizeof(buffer), 1)) { in PyCodec_NameReplaceErrors() 991 replsize = 1+1+1+(int)strlen(buffer)+1; in PyCodec_NameReplaceErrors() 1013 if (ucnhash_capi->getname(c, buffer, sizeof(buffer), 1)) { in PyCodec_NameReplaceErrors() 1016 strcpy((char *)outp, buffer); in PyCodec_NameReplaceErrors() 1017 outp += strlen(buffer); in PyCodec_NameReplaceErrors()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fNegativeStateApiTests.cpp | 803 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target."); in init() 827 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target."); in init() 849 m_log << TestLog::Section("", "GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target."); in init() 1079 GLuint buffer = 0; in init() 1082 m_log << TestLog::Section("", "A name returned by glGenBuffers, but not yet associated with a buffer object by calling glBindBuffer, is not the name of a buffer object."); in init() 1083 isBuffer = glIsBuffer(buffer); in init() 1086 glGenBuffers (1, &buffer); in init() 1087 isBuffer = glIsBuffer(buffer); in init() 1090 glBindBuffer (GL_ARRAY_BUFFER, buffer); in init() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/ |
H A D | rcar_jpu.c | 221 * struct jpu_buffer - driver's specific video buffer 222 * @buf: m2m buffer 288 * @end: end position in the buffer 289 * @curr: current position in the buffer 602 static u8 jpu_parse_hdr(void *buffer, unsigned long size, unsigned int *width, in jpu_parse_hdr() argument 609 jpeg_buffer.end = buffer + size; in jpu_parse_hdr() 610 jpeg_buffer.curr = buffer; in jpu_parse_hdr() 614 * buffer bounds in any case. Hope it's stopping by EOI. in jpu_parse_hdr() 616 if (size < JPU_JPEG_MIN_SIZE || *(u8 *)(buffer + size - 1) != EOI) in jpu_parse_hdr() 1084 void *buffer in jpu_buf_queue() local 1132 u8 *buffer; jpu_buf_finish() local [all...] |
/kernel/linux/linux-5.10/drivers/rapidio/ |
H A D | rio_cm.c | 141 void *buffer; member 227 void *buffer, size_t len); 316 riocm_warn("no record for buffer 0x%p", msg); in riocm_rx_get_msg() 542 /* Place pointer to the buffer into channel's RX queue */ in rio_rx_data_handler() 639 /* ATTN: Add TX completion notification if/when direct buffer in rio_txcq_handler() 677 cm->tx_buf[cm->tx_slot] = req->buffer; in rio_txcq_handler() 679 req->buffer, req->len); in rio_txcq_handler() 680 kfree(req->buffer); in rio_txcq_handler() 704 void *buffer, size_t len) in riocm_queue_req() 714 treq->buffer in riocm_queue_req() 703 riocm_queue_req(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_queue_req() argument 733 riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_post_send() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 609 * The HDA codec will always report an ELD buffer size of 96 bytes and in tegra_hdmi_write_eld() 610 * the HDA codec driver will check that each byte read from the buffer in tegra_hdmi_write_eld() 688 u8 buffer[17]; in tegra_hdmi_setup_avi_infoframe() local 698 err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_hdmi_setup_avi_infoframe() 704 tegra_hdmi_write_infopack(hdmi, buffer, err); in tegra_hdmi_setup_avi_infoframe() 728 u8 buffer[14]; in tegra_hdmi_setup_audio_infoframe() local 740 err = hdmi_audio_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_hdmi_setup_audio_infoframe() 753 tegra_hdmi_write_infopack(hdmi, buffer, min_ in tegra_hdmi_setup_audio_infoframe() 777 u8 buffer[10]; tegra_hdmi_setup_stereo_infoframe() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
H A D | ice_virtchnl_fdir.c | 280 * @fltr: virtual channel add cmd buffer 284 * Parse the virtual channel add msg buffer's field vector and store them into 743 * @fltr: virtual channel add cmd buffer 747 * Config the input set type and value for virtual channel add msg buffer 810 * @fltr: virtual channel add cmd buffer 849 eth = (struct ethhdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() 856 iph = (struct iphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() 868 ip6h = (struct ipv6hdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() 885 tcph = (struct tcphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() 902 udph = (struct udphdr *)hdr->buffer; in ice_vc_fdir_parse_pattern() [all...] |
/kernel/linux/linux-6.6/drivers/rapidio/ |
H A D | rio_cm.c | 141 void *buffer; member 227 void *buffer, size_t len); 316 riocm_warn("no record for buffer 0x%p", msg); in riocm_rx_get_msg() 542 /* Place pointer to the buffer into channel's RX queue */ in rio_rx_data_handler() 639 /* ATTN: Add TX completion notification if/when direct buffer in rio_txcq_handler() 677 cm->tx_buf[cm->tx_slot] = req->buffer; in rio_txcq_handler() 679 req->buffer, req->len); in rio_txcq_handler() 680 kfree(req->buffer); in rio_txcq_handler() 704 void *buffer, size_t len) in riocm_queue_req() 714 treq->buffer in riocm_queue_req() 703 riocm_queue_req(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_queue_req() argument 733 riocm_post_send(struct cm_dev *cm, struct rio_dev *rdev, void *buffer, size_t len) riocm_post_send() argument [all...] |
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | btintel.c | 1033 * firmware data buffer as a single Data fragement. in btintel_download_firmware_payload() 1323 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in btintel_ppag_callback() local 1344 status = acpi_evaluate_object(handle, NULL, NULL, &buffer); in btintel_ppag_callback() 1351 p = buffer.pointer; in btintel_ppag_callback() 1355 kfree(buffer.pointer); in btintel_ppag_callback() 1370 kfree(buffer.pointer); in btintel_ppag_callback() 1595 * in the current firmware buffer doesn't start with 0x01 or in btintel_legacy_rom_patching() 1596 * the size of remain buffer is smaller than HCI command header, in btintel_legacy_rom_patching() 2470 struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; in btintel_acpi_reset_method() local 2472 status = acpi_evaluate_object(ACPI_HANDLE(GET_HCIDEV_DEV(hdev)), "_PRR", NULL, &buffer); in btintel_acpi_reset_method() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/stm32/ |
H A D | stm32-hash.c | 148 u8 buffer[HASH_BUFLEN] __aligned(4); 350 scatterwalk_map_and_copy(state->buffer + state->bufcnt, in stm32_hash_append_sg() 373 const u32 *buffer = (const u32 *)buf; in stm32_hash_xmit_cpu() local 408 stm32_hash_write(hdev, HASH_DIN, buffer[count]); in stm32_hash_xmit_cpu() 485 err = stm32_hash_xmit_cpu(hdev, state->buffer, bufcnt, 0); in stm32_hash_update_cpu() 495 return stm32_hash_xmit_cpu(hdev, state->buffer, bufcnt, 1); in stm32_hash_update_cpu() 654 u32 *buffer = (void *)rctx->state.buffer; in stm32_hash_dma_send() local 687 rctx->state.buffer, sg->length - len, in stm32_hash_dma_send() 727 memset(buffer in stm32_hash_dma_send() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/renesas/ |
H A D | rcar_jpu.c | 208 * struct jpu_buffer - driver's specific video buffer 209 * @buf: m2m buffer 275 * @end: end position in the buffer 276 * @curr: current position in the buffer 595 static u8 jpu_parse_hdr(void *buffer, unsigned long size, unsigned int *width, in jpu_parse_hdr() argument 602 jpeg_buffer.end = buffer + size; in jpu_parse_hdr() 603 jpeg_buffer.curr = buffer; in jpu_parse_hdr() 607 * buffer bounds in any case. Hope it's stopping by EOI. in jpu_parse_hdr() 610 *(u8 *)(buffer + size - 1) != JPEG_MARKER_EOI) in jpu_parse_hdr() 1072 void *buffer in jpu_buf_queue() local 1120 u8 *buffer; jpu_buf_finish() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
H A D | hdmi.c | 630 * The HDA codec will always report an ELD buffer size of 96 bytes and in tegra_hdmi_write_eld() 631 * the HDA codec driver will check that each byte read from the buffer in tegra_hdmi_write_eld() 709 u8 buffer[17]; in tegra_hdmi_setup_avi_infoframe() local 719 err = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_hdmi_setup_avi_infoframe() 725 tegra_hdmi_write_infopack(hdmi, buffer, err); in tegra_hdmi_setup_avi_infoframe() 749 u8 buffer[14]; in tegra_hdmi_setup_audio_infoframe() local 761 err = hdmi_audio_infoframe_pack(&frame, buffer, sizeof(buffer)); in tegra_hdmi_setup_audio_infoframe() 774 tegra_hdmi_write_infopack(hdmi, buffer, min_ in tegra_hdmi_setup_audio_infoframe() 798 u8 buffer[10]; tegra_hdmi_setup_stereo_infoframe() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | avidec.c | 351 char month[4], time[9], buffer[64]; in avi_metadata_creation_time() local 358 snprintf(buffer, sizeof(buffer), "%.4d-%.2d-%.2d %s", in avi_metadata_creation_time() 360 av_dict_set(metadata, "creation_time", buffer, 0); in avi_metadata_creation_time() 381 char buffer[64] = { 0 }; in avi_read_nikon() local 384 size -= avio_read(s->pb, buffer, in avi_read_nikon() 385 FFMIN(size, sizeof(buffer) - 1)); in avi_read_nikon() 395 if (buffer[4] == ':' && buffer[7] == ':') in avi_read_nikon() 396 buffer[ in avi_read_nikon() [all...] |
/third_party/icu/icu4c/source/tools/genrb/ |
H A D | parse.cpp | 120 UCHARBUF *buffer; member 137 /* The nature of the lookahead buffer: 138 There are MAX_LOOKAHEAD + 1 slots, used as a circular buffer. This provides 162 state->buffer = buf; in initLookahead() 168 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status); in initLookahead() 217 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status); in getToken() 387 /* read the rules into the buffer */ in parseUCARules() 798 escape(const UChar *s, char *buffer) { in escape() argument 805 *buffer = 0; in escape() 809 *buffer in escape() 1328 icu::LocalMemory<uint8_t> buffer; addCollation() local [all...] |
/third_party/mesa3d/src/intel/common/ |
H A D | intel_batch_decoder.c | 514 fprintf(ctx->fp, "vertex buffer %d, size %d\n", index, vb_size); in handle_3dstate_vertex_buffers() 517 fprintf(ctx->fp, " buffer contents unavailable\n"); in handle_3dstate_vertex_buffers() 558 fprintf(ctx->fp, " buffer contents unavailable\n"); in handle_3dstate_index_buffer() 730 struct intel_batch_decode_bo buffer[4]; in decode_3dstate_constant_all() local 731 memset(buffer, 0, sizeof(buffer)); in decode_3dstate_constant_all() 745 buffer[idx] = ctx_get_bo(ctx, true, iter.raw_value); in decode_3dstate_constant_all() 754 if (read_length[i] == 0 || buffer[i].map == NULL) in decode_3dstate_constant_all() 758 fprintf(ctx->fp, "constant buffer %d, size %u\n", i, size); in decode_3dstate_constant_all() 760 ctx_print_buffer(ctx, buffer[ in decode_3dstate_constant_all() 797 struct intel_batch_decode_bo buffer = ctx_get_bo(ctx, true, read_addr[i]); decode_3dstate_constant() local 832 struct intel_batch_decode_bo buffer = ctx_get_bo(ctx, true, read_addr); decode_gfx4_constant_buffer() local [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_hd.c | 598 ringbuf->buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size); in hd_ringbuf_init() 599 if (ringbuf->buffer == NULL) { in hd_ringbuf_init() 611 return ringbuf->buffer[(ringbuf->first + idx) & ringbuf->mask]; in hd_ringbuf_get() 618 nghttp2_hd_entry **buffer; in hd_ringbuf_reserve() local 625 buffer = nghttp2_mem_malloc(mem, sizeof(nghttp2_hd_entry *) * size); in hd_ringbuf_reserve() 626 if (buffer == NULL) { in hd_ringbuf_reserve() 630 buffer[i] = hd_ringbuf_get(ringbuf, i); in hd_ringbuf_reserve() 632 nghttp2_mem_free(mem, ringbuf->buffer); in hd_ringbuf_reserve() 633 ringbuf->buffer = buffer; in hd_ringbuf_reserve() [all...] |