Searched refs:new_buf (Results 1 – 9 of 9) sorted by relevance
/aosp12/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
H A D | ucode_download.c | 64 unsigned char *new_buf; in dload_ucode_part() local 84 new_buf = (unsigned char *)malloc(size2alloc); in dload_ucode_part() 85 memset(new_buf, 0, size2alloc); in dload_ucode_part() 86 ucode_ptr = (struct wl_ucode_info *)((uint8 *)new_buf+ucode_offset); in dload_ucode_part() 94 memset(new_buf+ucode_offset+chunk_offset, 0, size2alloc-ucode_offset-chunk_offset); in dload_ucode_part() 99 err = dload_generic_data(wl, DL_TYPE_UCODE, new_buf, size2alloc); in dload_ucode_part() 107 free(new_buf); in dload_ucode_part()
|
/aosp12/system/media/audio_utils/ |
H A D | echo_reference.c | 209 void *new_buf = realloc(er->wr_buf, er->wr_buf_size * er->rd_frame_size); in echo_reference_write() local 210 if (new_buf == NULL) { in echo_reference_write() 214 er->wr_buf = new_buf; in echo_reference_write() 276 void *new_buf = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_write() local 277 if (new_buf == NULL) { in echo_reference_write() 281 er->buffer = new_buf; in echo_reference_write() 432 if (new_buf == NULL) { in echo_reference_read() 436 er->buffer = new_buf; in echo_reference_read() 474 void *new_buf = realloc(er->buffer, er->buf_size * er->rd_frame_size); in echo_reference_read() local 475 if (new_buf == NULL) { in echo_reference_read() [all …]
|
/aosp12/system/logging/logwrapper/ |
H A D | logwrap.cpp | 215 char* new_buf; in init_abbr_buf() local 218 new_buf = static_cast<char*>(malloc(BEGINNING_BUF_SIZE)); in init_abbr_buf() 219 if (new_buf) { in init_abbr_buf() 220 a_buf->b_buf.buf = new_buf; in init_abbr_buf() 224 new_buf = static_cast<char*>(malloc(ENDING_BUF_SIZE)); in init_abbr_buf() 225 if (new_buf) { in init_abbr_buf() 226 a_buf->e_buf.buf = new_buf; in init_abbr_buf()
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
H A D | mm_camera_muxer.c | 2051 mm_frame_sync_queue_node_t *new_buf = NULL; in mm_camera_muxer_do_frame_sync() local 2053 new_buf = (mm_frame_sync_queue_node_t *) in mm_camera_muxer_do_frame_sync() 2055 if (NULL != new_buf) { in mm_camera_muxer_do_frame_sync() 2058 new_buf->num_objs++; in mm_camera_muxer_do_frame_sync() 2060 new_buf->matched = 0; in mm_camera_muxer_do_frame_sync() 2062 new_buf->matched = 1; in mm_camera_muxer_do_frame_sync() 2065 *dispatch_buf = *new_buf; in mm_camera_muxer_do_frame_sync() 2067 free(new_buf); in mm_camera_muxer_do_frame_sync() 2086 free(new_buf); in mm_camera_muxer_do_frame_sync() 2091 if (NULL != new_buf) { in mm_camera_muxer_do_frame_sync() [all …]
|
H A D | mm_camera_channel.c | 3295 mm_channel_queue_node_t *new_buf = NULL; in mm_channel_superbuf_comp_and_enqueue() local 3300 if (NULL != new_buf && NULL != new_node) { in mm_channel_superbuf_comp_and_enqueue() 3303 new_node->data = (void *)new_buf; in mm_channel_superbuf_comp_and_enqueue() 3304 new_buf->num_of_bufs = queue->num_streams; in mm_channel_superbuf_comp_and_enqueue() 3305 new_buf->super_buf[buf_s_idx] = *buf_info; in mm_channel_superbuf_comp_and_enqueue() 3306 new_buf->frame_idx = buf_info->frame_idx; in mm_channel_superbuf_comp_and_enqueue() 3310 new_buf->expected_frame = TRUE; in mm_channel_superbuf_comp_and_enqueue() 3323 new_buf->matched = 1; in mm_channel_superbuf_comp_and_enqueue() 3324 new_buf->expected_frame = FALSE; in mm_channel_superbuf_comp_and_enqueue() 3342 if (NULL != new_buf) { in mm_channel_superbuf_comp_and_enqueue() [all …]
|
/aosp12/packages/modules/Virtualization/zipfuse/src/ |
H A D | main.rs | 340 let mut new_buf = Vec::with_capacity(end - start); in readdir() localVariable 343 new_buf.extend_from_slice(&buf[start..end]); in readdir() 344 Ok(DirIter { inner: new_buf, offset, cur: 0 }) in readdir()
|
/aosp12/system/memory/lmkd/ |
H A D | lmkd.cpp | 616 static char *new_buf, *buf = NULL; in reread_file() local 647 if ((new_buf = static_cast<char*>(realloc(buf, buf_size * 2))) == nullptr) { in reread_file() 651 buf = new_buf; in reread_file()
|
/aosp12/system/bt/bta/av/ |
H A D | bta_av_aact.cc | 2063 bool new_buf = false; in bta_av_data_path() local 2085 new_buf = true; in bta_av_data_path() 2158 if (new_buf) { in bta_av_data_path()
|
/aosp12/art/runtime/jni/ |
H A D | check_jni.cc | 1552 uint8_t* const new_buf = DebugAlloc(new_len); in Create() local 1560 GuardedCopy* copy = new (new_buf) GuardedCopy(original_buf, len, adler); in Create()
|