/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_resource_buffer_upload.c | 97 svga_buffer_destroy_hw_storage(struct svga_screen *ss, struct svga_buffer *sbuf) in svga_buffer_destroy_hw_storage() argument 101 assert(sbuf->map.count == 0); in svga_buffer_destroy_hw_storage() 102 assert(sbuf->hwbuf); in svga_buffer_destroy_hw_storage() 103 if (sbuf->hwbuf) { in svga_buffer_destroy_hw_storage() 104 sws->buffer_destroy(sws, sbuf->hwbuf); in svga_buffer_destroy_hw_storage() 105 sbuf->hwbuf = NULL; in svga_buffer_destroy_hw_storage() 118 struct svga_buffer *sbuf, in svga_buffer_create_hw_storage() argument 121 assert(!sbuf->user); in svga_buffer_create_hw_storage() 124 assert(sbuf->handle || !sbuf->dma.pending); in svga_buffer_create_hw_storage() 125 return svga_buffer_create_host_surface(ss, sbuf, bind_flags); in svga_buffer_create_hw_storage() [all …]
|
D | svga_resource_buffer.c | 101 struct svga_buffer *sbuf = svga_buffer(resource); in svga_buffer_transfer_map() local 129 pipe_resource_reference(&sbuf->translated_indices.buffer, NULL); in svga_buffer_transfer_map() 132 if ((usage & PIPE_MAP_READ) && sbuf->dirty && in svga_buffer_transfer_map() 133 !sbuf->key.coherent && !svga->swc->force_coherent) { in svga_buffer_transfer_map() 140 if (!sbuf->user) { in svga_buffer_transfer_map() 141 (void) svga_buffer_handle(svga, resource, sbuf->bind_flags); in svga_buffer_transfer_map() 144 if (sbuf->dma.pending) { in svga_buffer_transfer_map() 145 svga_buffer_upload_flush(svga, sbuf); in svga_buffer_transfer_map() 149 assert(sbuf->handle); in svga_buffer_transfer_map() 152 sbuf->handle, 0)); in svga_buffer_transfer_map() [all …]
|
D | svga_resource_buffer.h | 260 svga_buffer_winsys_screen(struct svga_buffer *sbuf) in svga_buffer_winsys_screen() argument 262 return svga_screen(sbuf->b.b.screen)->sws; in svga_buffer_winsys_screen() 271 svga_buffer_has_hw_storage(struct svga_buffer *sbuf) in svga_buffer_has_hw_storage() argument 273 if (svga_buffer_winsys_screen(sbuf)->have_gb_objects) in svga_buffer_has_hw_storage() 274 return (sbuf->handle ? TRUE : FALSE); in svga_buffer_has_hw_storage() 276 return (sbuf->hwbuf ? TRUE : FALSE); in svga_buffer_has_hw_storage() 285 struct svga_buffer *sbuf, in svga_buffer_hw_storage_map() argument 288 struct svga_winsys_screen *sws = svga_buffer_winsys_screen(sbuf); in svga_buffer_hw_storage_map() 300 map = swc->surface_map(swc, sbuf->handle, flags, retry, &rebind); in svga_buffer_hw_storage_map() 304 ret = SVGA3D_BindGBSurface(swc, sbuf->handle); in svga_buffer_hw_storage_map() [all …]
|
D | svga_resource_buffer_upload.h | 32 struct svga_buffer *sbuf); 35 svga_buffer_add_range(struct svga_buffer *sbuf, 41 struct svga_buffer *sbuf, 46 struct svga_buffer *sbuf); 50 struct svga_buffer *sbuf, 55 struct svga_buffer *sbuf, 59 svga_buffer_add_host_surface(struct svga_buffer *sbuf, 66 struct svga_buffer *sbuf, 71 struct svga_buffer *sbuf, 76 struct svga_buffer *sbuf);
|
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/ |
D | MessageFormatter.java | 193 StringBuilder sbuf = new StringBuilder(messagePattern.length() + 50); in arrayFormat() local 206 sbuf.append(messagePattern.substring(i, messagePattern.length())); in arrayFormat() 207 return new FormattingTuple(sbuf.toString(), argArray, throwableCandidate); in arrayFormat() 213 sbuf.append(messagePattern.substring(i, j - 1)); in arrayFormat() 214 sbuf.append(DELIM_START); in arrayFormat() 220 sbuf.append(messagePattern.substring(i, j - 1)); in arrayFormat() 221 deeplyAppendParameter(sbuf, argArray[L], new HashMap<Object[], Object>()); in arrayFormat() 226 sbuf.append(messagePattern.substring(i, j)); in arrayFormat() 227 deeplyAppendParameter(sbuf, argArray[L], new HashMap<Object[], Object>()); in arrayFormat() 233 sbuf.append(messagePattern.substring(i, messagePattern.length())); in arrayFormat() [all …]
|
/external/kmod/testsuite/ |
D | test-scratchbuf.c | 28 struct scratchbuf sbuf; in test_scratchbuf_onlystack() local 33 scratchbuf_init(&sbuf, buf, sizeof(buf)); in test_scratchbuf_onlystack() 34 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack() 35 assert_return(sbuf.need_free == false, EXIT_FAILURE); in test_scratchbuf_onlystack() 36 scratchbuf_release(&sbuf); in test_scratchbuf_onlystack() 38 scratchbuf_init(&sbuf, buf2, sizeof(buf2)); in test_scratchbuf_onlystack() 39 assert_return(scratchbuf_alloc(&sbuf, strlen(smallstr) + 1) == 0, EXIT_FAILURE); in test_scratchbuf_onlystack() 40 assert_return(sbuf.need_free == false, EXIT_FAILURE); in test_scratchbuf_onlystack() 41 scratchbuf_release(&sbuf); in test_scratchbuf_onlystack() 43 memcpy(scratchbuf_str(&sbuf), smallstr, strlen(smallstr) + 1); in test_scratchbuf_onlystack() [all …]
|
/external/angle/third_party/glslang/src/Test/ |
D | hlsl.structbuffer.atomics.frag | 2 RWByteAddressBuffer sbuf; 8 sbuf.InterlockedAdd(8, 1); 9 sbuf.InterlockedAdd(8, 1, u); 10 sbuf.InterlockedAnd(8, 1); 11 sbuf.InterlockedAnd(8, 1, u); 12 sbuf.InterlockedCompareExchange(8, 1, 2, u); 13 // sbuf.InterlockedCompareStore(8, 1, 2); // TODO: ... 14 sbuf.InterlockedExchange(8, 1, u); 15 sbuf.InterlockedMax(8, 1); 16 sbuf.InterlockedMax(8, 1, u); [all …]
|
D | hlsl.structbuffer.rwbyte.frag | 2 RWByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 sbuf.Store(pos, sbuf.Load(pos)); 10 sbuf.Store2(pos, sbuf.Load2(pos)); 11 sbuf.Store3(pos, sbuf.Load3(pos)); 12 sbuf.Store4(pos, sbuf.Load4(pos)); 14 return sbuf.Load(pos);
|
D | hlsl.structbuffer.byte.frag | 2 ByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 return sbuf.Load(pos) + 10 float4(sbuf.Load2(pos+4), 0, 0) + 11 float4(sbuf.Load3(pos+8), 0) + 12 sbuf.Load4(pos+12);
|
/external/deqp-deps/glslang/Test/ |
D | hlsl.structbuffer.atomics.frag | 2 RWByteAddressBuffer sbuf; 8 sbuf.InterlockedAdd(8, 1); 9 sbuf.InterlockedAdd(8, 1, u); 10 sbuf.InterlockedAnd(8, 1); 11 sbuf.InterlockedAnd(8, 1, u); 12 sbuf.InterlockedCompareExchange(8, 1, 2, u); 13 // sbuf.InterlockedCompareStore(8, 1, 2); // TODO: ... 14 sbuf.InterlockedExchange(8, 1, u); 15 sbuf.InterlockedMax(8, 1); 16 sbuf.InterlockedMax(8, 1, u); [all …]
|
D | hlsl.structbuffer.rwbyte.frag | 2 RWByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 sbuf.Store(pos, sbuf.Load(pos)); 10 sbuf.Store2(pos, sbuf.Load2(pos)); 11 sbuf.Store3(pos, sbuf.Load3(pos)); 12 sbuf.Store4(pos, sbuf.Load4(pos)); 14 return sbuf.Load(pos);
|
D | hlsl.structbuffer.byte.frag | 2 ByteAddressBuffer sbuf; 7 sbuf.GetDimensions(size); 9 return sbuf.Load(pos) + 10 float4(sbuf.Load2(pos+4), 0, 0) + 11 float4(sbuf.Load3(pos+8), 0) + 12 sbuf.Load4(pos+12);
|
/external/fastrpc/inc/ |
D | sbuf_parser.h | 98 static __inline void sbuf_parser_init(struct sbuf* buf, const char *data, int dataLen) { in sbuf_parser_init() 103 static __inline char *sbuf_cur(struct sbuf* buf) { in sbuf_cur() 108 static __inline int sbuf_peek(struct sbuf* buf, char* c) { in sbuf_peek() 117 static __inline int sbuf_end(struct sbuf* buf) { in sbuf_end() 122 static __inline int sbuf_chars(struct sbuf *buf, const char *chars) { in sbuf_chars() 138 static __inline int sbuf_notchars(struct sbuf *buf, const char *chars) { in sbuf_notchars() 154 static __inline int sbuf_char(struct sbuf *buf, const char t) { in sbuf_char() 160 static __inline int sbuf_notchar(struct sbuf *buf, const char t) { in sbuf_notchar() 168 static __inline int sbuf_any(struct sbuf* buf) { in sbuf_any() 182 static __inline int sbuf_range(struct sbuf *buf, const char *chars) { in sbuf_range() [all …]
|
D | sbuf.h | 68 struct sbuf { struct 82 static __inline void sbuf_init(struct sbuf* buf, int offset, void* data, int dataLen) { in sbuf_init() argument 89 static __inline void sbuf_advance(struct sbuf* buf, int len) { in sbuf_advance() 97 static __inline int sbuf_needed(struct sbuf* buf) { in sbuf_needed() 104 static __inline int sbuf_left(struct sbuf* buf) { in sbuf_left() 109 static __inline void* sbuf_head(struct sbuf* buf) { in sbuf_head() 114 static __inline int sbuf_valid(struct sbuf* buf) { in sbuf_valid() 120 static __inline void sbuf_align(struct sbuf* buf, uint32_t align) { in sbuf_align() 131 static __inline void sbuf_write(struct sbuf* buf, void *psrc, int srcLen) { in sbuf_write() 157 static __inline void sbuf_read(struct sbuf* buf, void *pdst, int dstLen) { in sbuf_read()
|
/external/adhd/cras/src/server/ |
D | cras_loopback_iodev.c | 68 struct byte_buffer *sbuf = loopdev->sample_buffer; in sample_hook() local 72 frames_to_copy = MIN(buf_writable(sbuf) / frame_bytes, nframes); in sample_hook() 77 memcpy(buf_write_pointer(sbuf), frames, bytes_to_copy); in sample_hook() 78 buf_increment_write(sbuf, bytes_to_copy); in sample_hook() 129 struct byte_buffer *sbuf = loopdev->sample_buffer; in frames_queued() local 142 MIN(buf_writable(sbuf) / frame_bytes, frames_to_fill); in frames_queued() 145 memset(buf_write_pointer(sbuf), 0, bytes_to_fill); in frames_queued() 146 buf_increment_write(sbuf, bytes_to_fill); in frames_queued() 150 return buf_queued(sbuf) / frame_bytes; in frames_queued() 163 struct byte_buffer *sbuf = loopdev->sample_buffer; in close_record_dev() local [all …]
|
/external/virglrenderer/src/gallium/auxiliary/util/ |
D | u_string.h | 203 util_strbuf_init(struct util_strbuf *sbuf, char *str, size_t size) in util_strbuf_init() argument 205 sbuf->str = str; in util_strbuf_init() 206 sbuf->str[0] = 0; in util_strbuf_init() 207 sbuf->ptr = sbuf->str; in util_strbuf_init() 208 sbuf->left = size; in util_strbuf_init() 213 util_strbuf_printf(struct util_strbuf *sbuf, const char *format, ...) in util_strbuf_printf() argument 215 if(sbuf->left > 1) { in util_strbuf_printf() 219 written = util_vsnprintf(sbuf->ptr, sbuf->left, format, ap); in util_strbuf_printf() 221 sbuf->ptr += written; in util_strbuf_printf() 222 sbuf->left -= written; in util_strbuf_printf()
|
/external/arm-trusted-firmware/tools/stm32image/ |
D | stm32image.c | 107 static void stm32image_set_header(void *ptr, struct stat *sbuf, int ifd, in stm32image_set_header() argument 116 stm32hdr->image_length = __cpu_to_le32((uint32_t)sbuf->st_size - in stm32image_set_header() 118 stm32hdr->image_checksum = stm32image_checksum(ptr, sbuf->st_size); in stm32image_set_header() 127 struct stat sbuf; in stm32image_create_header_file() local 144 if (fstat(src_fd, &sbuf) < 0) { in stm32image_create_header_file() 148 ptr = mmap(NULL, sbuf.st_size, PROT_READ, MAP_SHARED, src_fd, 0); in stm32image_create_header_file() 163 if (write(dest_fd, ptr, sbuf.st_size) != sbuf.st_size) { in stm32image_create_header_file() 169 munmap((void *)ptr, sbuf.st_size); in stm32image_create_header_file() 172 if (fstat(dest_fd, &sbuf) < 0) { in stm32image_create_header_file() 176 ptr = mmap(0, sbuf.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in stm32image_create_header_file() [all …]
|
/external/angle/third_party/glslang/src/Test/baseResults/ |
D | hlsl.structbuffer.rwbyte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 33 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 50 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 65 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 71 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 83 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 107 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 126 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.atomics.frag.out | 12 0:8 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsi… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 40 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 55 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 71 0:12 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer… 88 0:14 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:15 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 116 0:16 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 129 0:17 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 144 0:18 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.byte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major std430) … 24 0:9 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major st… 46 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 52 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 78 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 84 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 93 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 116 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 122 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 131 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… [all …]
|
/external/deqp-deps/glslang/Test/baseResults/ |
D | hlsl.structbuffer.rwbyte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 33 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 50 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 65 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 71 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 83 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 107 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) bu… 126 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.atomics.frag.out | 12 0:8 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsi… 27 0:9 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer un… 40 0:10 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 55 0:11 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 71 0:12 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer… 88 0:14 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 101 0:15 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 116 0:16 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… 129 0:17 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer uns… 144 0:18 'sbuf' (layout( row_major std430) buffer block{layout( row_major std430) buffer u… [all …]
|
D | hlsl.structbuffer.byte.frag.out | 14 0:7 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major std430) … 24 0:9 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major st… 46 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 52 0:10 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_m… 78 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 84 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 93 0:11 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_maj… 116 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 122 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… 131 0:12 'sbuf' (layout( row_major std430) readonly buffer block{layout( row_major s… [all …]
|
/external/u-boot/tools/ |
D | dumpimage.c | 31 void *ptr, struct stat *sbuf) in dumpimage_extract_subimage() argument 37 sbuf->st_size, ¶ms); in dumpimage_extract_subimage() 61 struct stat sbuf; in main() local 148 if (fstat(ifd, &sbuf) < 0) { in main() 154 if ((uint32_t)sbuf.st_size < tparams->header_size) { in main() 160 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in main() 177 retval = dumpimage_extract_subimage(tparams, ptr, &sbuf); in main() 183 retval = imagetool_verify_print_header(ptr, &sbuf, tparams, in main() 187 (void)munmap((void *)ptr, sbuf.st_size); in main()
|
/external/iproute2/tc/ |
D | tc_red.c | 75 int tc_red_eval_idle_damping(int Wlog, unsigned int avpkt, unsigned int bps, __u8 *sbuf) in tc_red_eval_idle_damping() argument 90 sbuf[0] = 0; in tc_red_eval_idle_damping() 92 sbuf[i] = (i<<clog)*lW; in tc_red_eval_idle_damping() 93 if (sbuf[i] > 31) in tc_red_eval_idle_damping() 94 sbuf[i] = 31; in tc_red_eval_idle_damping() 96 sbuf[255] = 31; in tc_red_eval_idle_damping()
|