/third_party/ffmpeg/libavutil/ |
D | file.c | 53 int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, in av_file_map() argument 62 *bufptr = NULL; in av_file_map() 90 *bufptr = NULL; in av_file_map() 104 *bufptr = ptr; in av_file_map() 126 *bufptr = ptr; in av_file_map() 129 *bufptr = av_malloc(*size); in av_file_map() 130 if (!*bufptr) { in av_file_map() 136 read(fd, *bufptr, *size); in av_file_map() 144 void av_file_unmap(uint8_t *bufptr, size_t size) in av_file_unmap() argument 146 if (!size || !bufptr) in av_file_unmap() [all …]
|
D | file.h | 46 int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, 55 void av_file_unmap(uint8_t *bufptr, size_t size);
|
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecparsers/ |
D | dboolhuff.c | 41 const unsigned char *bufptr = br->user_buffer; in vp8dx_bool_decoder_fill() local 45 size_t bytes_left = br->user_buffer_end - bufptr; in vp8dx_bool_decoder_fill() 54 br->decrypt_cb (br->decrypt_state, bufptr, decrypted, (int) n); in vp8dx_bool_decoder_fill() 55 bufptr = decrypted; in vp8dx_bool_decoder_fill() 66 value |= (VP8_BD_VALUE) * bufptr << shift; in vp8dx_bool_decoder_fill() 67 ++bufptr; in vp8dx_bool_decoder_fill()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
D | dio_truncate.c | 53 char *bufptr; in dio_read() local 58 bufptr = SAFE_MEMALIGN(align, bs); in dio_read() 67 r = read(fd, bufptr, 64 * 1024); in dio_read() 69 bufoff = check_zero(bufptr, r); in dio_read() 72 offset + (bufoff - bufptr)); in dio_read() 73 free(bufptr); in dio_read() 82 free(bufptr); in dio_read()
|
D | dio_read.c | 37 static void do_buffered_writes(int fd, char *bufptr, long long fsize, long long wsize, int pattern) in do_buffered_writes() argument 42 memset(bufptr, pattern, wsize); in do_buffered_writes() 47 w = pwrite(fd, bufptr, wsize, offset); in do_buffered_writes() 57 static int do_direct_reads(char *filename, char *bufptr, long long fsize, long long rsize) in do_direct_reads() argument 78 w = pread(fd, bufptr, rsize, offset); in do_direct_reads() 84 bufoff = check_zero(bufptr, rsize); in do_direct_reads()
|
D | common.h | 40 char *bufptr; in io_append() local 42 bufptr = SAFE_MEMALIGN(getpagesize(), bs); in io_append() 43 memset(bufptr, pattern, bs); in io_append() 48 SAFE_WRITE(1, fd, bufptr, bs); in io_append() 50 free(bufptr); in io_append()
|
D | dio_sparse.c | 44 void *bufptr = NULL; in dio_sparse() local 48 bufptr = SAFE_MEMALIGN(align, ws); in dio_sparse() 50 memset(bufptr, 0, ws); in dio_sparse() 54 w = SAFE_WRITE(0, fd, bufptr, ws); in dio_sparse()
|
D | aiodio_append.c | 46 void *bufptr; in aiodio_append() local 66 bufptr = SAFE_MEMALIGN(align, ws); in aiodio_append() 67 memset(bufptr, 0, ws); in aiodio_append() 68 io_prep_pwrite(&iocb_array[i], fd, bufptr, ws, offset); in aiodio_append()
|
D | aiodio_sparse.c | 91 void *bufptr; in aiodio_sparse() local 93 TEST(posix_memalign(&bufptr, align, writesize)); in aiodio_sparse() 98 memset(bufptr, 0, writesize); in aiodio_sparse() 99 io_prep_pwrite(iocbs[i], fd, bufptr, writesize, offset); in aiodio_sparse()
|
/third_party/gstreamer/gstplugins_good/gst/rtp/ |
D | dboolhuff.c | 59 const unsigned char *bufptr; in vp8dx_bool_decoder_fill() local 64 bufptr = br->user_buffer; in vp8dx_bool_decoder_fill() 68 VP8DX_BOOL_DECODER_FILL (count, value, bufptr, bufend); in vp8dx_bool_decoder_fill() 70 br->user_buffer = bufptr; in vp8dx_bool_decoder_fill()
|
/third_party/ltp/testcases/kernel/io/aio/ |
D | aio02.c | 109 void *bufptr = NULL; in io_tio() local 131 if (posix_memalign(&bufptr, alignment, AIO_BLKSIZE)) { in io_tio() 135 memset(bufptr, 0, AIO_BLKSIZE); in io_tio() 137 io_prep_pwrite(&iocb_array[i], fd, bufptr, in io_tio() 145 if (posix_memalign(&bufptr, alignment, AIO_BLKSIZE)) { in io_tio() 149 memset(bufptr, 0, AIO_BLKSIZE); in io_tio() 151 io_prep_pread(&iocb_array[i], fd, bufptr, in io_tio()
|
/third_party/ffmpeg/libavcodec/ |
D | yop.c | 157 uint8_t *bufptr; in yop_copy_previous_block() local 160 bufptr = s->dstptr + motion_vector[copy_tag][0] + in yop_copy_previous_block() 162 if (bufptr < s->dstbuf) { in yop_copy_previous_block() 167 s->dstptr[0] = bufptr[0]; in yop_copy_previous_block() 168 s->dstptr[1] = bufptr[1]; in yop_copy_previous_block() 169 s->dstptr[linesize] = bufptr[linesize]; in yop_copy_previous_block() 170 s->dstptr[linesize + 1] = bufptr[linesize + 1]; in yop_copy_previous_block()
|
/third_party/pulseaudio/src/pulsecore/ |
D | usergroup.c | 98 static int expand_buffer_trashcontents(void **bufptr, size_t *buflenptr) { in expand_buffer_trashcontents() argument 101 if (!bufptr || !*bufptr || !buflenptr) { in expand_buffer_trashcontents() 114 pa_xfree(*bufptr); in expand_buffer_trashcontents() 116 *bufptr = pa_xmalloc(newlen); in expand_buffer_trashcontents()
|
/third_party/ffmpeg/libavformat/ |
D | rtpdec.c | 820 uint8_t **bufptr, int len) in rtp_parse_one_packet() argument 822 uint8_t *buf = bufptr ? *bufptr : NULL; in rtp_parse_one_packet() 885 *bufptr = NULL; in rtp_parse_one_packet() 907 uint8_t **bufptr, int len) in ff_rtp_parse_packet() argument 910 if (s->srtp_enabled && bufptr && ff_srtp_decrypt(&s->srtp, *bufptr, &len) < 0) in ff_rtp_parse_packet() 912 rv = rtp_parse_one_packet(s, pkt, bufptr, len); in ff_rtp_parse_packet()
|
D | rdt.c | 336 uint8_t **bufptr, int len) in ff_rdt_parse_packet() argument 338 uint8_t *buf = bufptr ? *bufptr : NULL; in ff_rdt_parse_packet()
|
/third_party/mksh/ |
D | main.c | 163 } *bufptr; in rndsetup() local 166 cp = alloc(sizeof(*bufptr) - sizeof(ALLOC_ITEM), APERM); in rndsetup() 168 memset(cp, 0, sizeof(*bufptr) - sizeof(ALLOC_ITEM)); in rndsetup() 170 bufptr = (void *)(cp - sizeof(ALLOC_ITEM)); in rndsetup() 172 bufptr->dataptr = &rndsetupstate; in rndsetup() 174 bufptr->stkptr = &bufptr; in rndsetup() 176 bufptr->mallocptr = bufptr; in rndsetup() 179 sigsetjmp(bufptr->jbuf, 1); in rndsetup() 182 mksh_TIME(bufptr->tv); in rndsetup() 185 mprotect(((char *)bufptr) + 4096, 4096, PROT_READ | PROT_WRITE); in rndsetup() [all …]
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_vX_meta_copy.c | 989 nir_ssa_def *bufptr = in panvk_meta_copy_buf2img_shader() local 1006 bufptr = nir_iadd(&b, bufptr, nir_u2u64(&b, offset)); in panvk_meta_copy_buf2img_shader() 1020 nir_load_global(&b, bufptr, bufcompsz, nbufcomps, bufcompsz * 8); in panvk_meta_copy_buf2img_shader() 1389 nir_ssa_def *bufptr = in panvk_meta_copy_img2buf_shader() local 1475 bufptr = nir_iadd(&b, bufptr, nir_u2u64(&b, offset)); in panvk_meta_copy_img2buf_shader() 1552 nir_store_global(&b, bufptr, bufcompsz, texel, (1 << nbufcomps) - 1); in panvk_meta_copy_img2buf_shader()
|
/third_party/gstreamer/gstplugins_bad/sys/winks/ |
D | gstksvideodevice.c | 1178 GstBuffer ** bufptr) in gst_ks_video_device_postprocess_frame() argument 1181 GstBuffer *buf = *bufptr; in gst_ks_video_device_postprocess_frame() 1212 *bufptr = buf; in gst_ks_video_device_postprocess_frame()
|