Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 25 of 139) sorted by relevance

123456

/third_party/musl/ndk_musl_include/fortify/
Dunistd.h62 size_t bos = __DIAGNOSE_BOS(buf); in getcwd() local
64 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, size)) { in getcwd()
65 return __getcwd_chk(buf, size, bos); in getcwd()
78 size_t bos = __DIAGNOSE_BOS0(buf); in pread() local
80 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in pread()
81 return __DIAGNOSE_PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in pread()
94 size_t bos = __DIAGNOSE_BOS0(buf); in pwrite() local
96 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in pwrite()
97 return __DIAGNOSE_PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); in pwrite()
110 size_t bos = __DIAGNOSE_BOS0(buf); in read() local
[all …]
Dsocket.h43 size_t bos = __DIAGNOSE_BOS0(buf); in recvfrom() local
45 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in recvfrom()
46 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); in recvfrom()
60 size_t bos = __DIAGNOSE_BOS0(buf); in sendto() local
62 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in sendto()
63 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); in sendto()
76 size_t bos = __DIAGNOSE_BOS0(buf); in recv() local
78 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in recv()
79 return __recv_chk(socket, buf, len, bos, flags); in recv()
92 size_t bos = __DIAGNOSE_BOS0(buf); in send() local
[all …]
Dstdio.h49 size_t bos = __DIAGNOSE_BOS0(buf); in fread() local
51 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) { in fread()
52 return __fread_chk(buf, size, count, stream, bos); in fread()
68 size_t bos = __DIAGNOSE_BOS0(buf); in fwrite() local
70 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) { in fwrite()
71 return __fwrite_chk(buf, size, count, stream, bos); in fwrite()
85 size_t bos = __DIAGNOSE_BOS(dest); in fgets() local
87 if (!__DIAGNOSE_BOS_DYNAMIC_CHECK_IMPL_AND(bos, >=, (size_t)size, size >= 0)) { in fgets()
88 return __fgets_chk(dest, size, stream, bos); in fgets()
99 size_t bos = __DIAGNOSE_BOS(dest); in __DIAGNOSE_PRINTFLIKE() local
[all …]
Dstring.h183 size_t bos = __DIAGNOSE_BOS(s); in memchr() local
184 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) { in memchr()
187 return __memchr_chk(s, c, n, bos); in memchr()
198 size_t bos = __DIAGNOSE_BOS(s); in memrchr() local
199 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) { in memrchr()
202 return __memrchr_chk(s, c, n, bos); in memrchr()
211 size_t bos = __DIAGNOSE_BOS(s); in strchr() local
213 if (bos != __DIAGNOSE_FORTIFY_UNKNOWN_SIZE) { in strchr()
214 return __strchr_chk(s, c, bos); in strchr()
225 size_t bos = __DIAGNOSE_BOS(s); in strrchr() local
[all …]
/third_party/musl/porting/linux/user/include/fortify/
Dunistd.h62 size_t bos = __DIAGNOSE_BOS(buf); in getcwd() local
64 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, size)) { in getcwd()
65 return __getcwd_chk(buf, size, bos); in getcwd()
78 size_t bos = __DIAGNOSE_BOS0(buf); in pread() local
80 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in pread()
81 return __DIAGNOSE_PREAD_PREFIX(chk)(fd, buf, count, offset, bos); in pread()
94 size_t bos = __DIAGNOSE_BOS0(buf); in pwrite() local
96 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_NO_OVERFLOW(bos, count)) { in pwrite()
97 return __DIAGNOSE_PWRITE_PREFIX(chk)(fd, buf, count, offset, bos); in pwrite()
110 size_t bos = __DIAGNOSE_BOS0(buf); in read() local
[all …]
Dsocket.h43 size_t bos = __DIAGNOSE_BOS0(buf); in recvfrom() local
45 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in recvfrom()
46 return __recvfrom_chk(fd, buf, len, bos, flags, src_addr, addr_len); in recvfrom()
60 size_t bos = __DIAGNOSE_BOS0(buf); in sendto() local
62 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in sendto()
63 return __sendto_chk(fd, buf, len, bos, flags, dest_addr, addr_len); in sendto()
76 size_t bos = __DIAGNOSE_BOS0(buf); in recv() local
78 if (!__DIAGNOSE_BOS_TRIVIALLY_GE(bos, len)) { in recv()
79 return __recv_chk(socket, buf, len, bos, flags); in recv()
92 size_t bos = __DIAGNOSE_BOS0(buf); in send() local
[all …]
Dstdio.h49 size_t bos = __DIAGNOSE_BOS0(buf); in fread() local
51 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) { in fread()
52 return __fread_chk(buf, size, count, stream, bos); in fread()
68 size_t bos = __DIAGNOSE_BOS0(buf); in fwrite() local
70 if (!__DIAGNOSE_BOS_TRIVIALLY_GE_MUL(bos, size, count)) { in fwrite()
71 return __fwrite_chk(buf, size, count, stream, bos); in fwrite()
85 size_t bos = __DIAGNOSE_BOS(dest); in fgets() local
87 if (!__DIAGNOSE_BOS_DYNAMIC_CHECK_IMPL_AND(bos, >=, (size_t)size, size >= 0)) { in fgets()
88 return __fgets_chk(dest, size, stream, bos); in fgets()
99 size_t bos = __DIAGNOSE_BOS(dest); in __DIAGNOSE_PRINTFLIKE() local
[all …]
Dstring.h183 size_t bos = __DIAGNOSE_BOS(s); in memchr() local
184 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) { in memchr()
187 return __memchr_chk(s, c, n, bos); in memchr()
198 size_t bos = __DIAGNOSE_BOS(s); in memrchr() local
199 if (__DIAGNOSE_BOS_TRIVIALLY_GE(bos, n)) { in memrchr()
202 return __memrchr_chk(s, c, n, bos); in memrchr()
211 size_t bos = __DIAGNOSE_BOS(s); in strchr() local
213 if (bos != __DIAGNOSE_FORTIFY_UNKNOWN_SIZE) { in strchr()
214 return __strchr_chk(s, c, bos); in strchr()
225 size_t bos = __DIAGNOSE_BOS(s); in strrchr() local
[all …]
/third_party/ejdb/src/bindings/ejdb2_jni/src/main/java/com/softmotions/ejdb2/
DEJDB2.java243 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getAsString() local
244 get(collection, id, bos); in getAsString()
246 return bos.toString("UTF-8"); in getAsString()
268 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getAsDocument() local
269 get(collection, id, bos); in getAsDocument()
270 return new EJDB2Document(id, bos.toByteArray()); in getAsDocument()
289 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getAsJSON() local
290 get(collection, id, bos); in getAsJSON()
291 return JSON.fromBytes(bos.toByteArray()); in getAsJSON()
351 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in infoAsString() local
[all …]
/third_party/libdrm/radeon/
Dradeon_cs_space.c126 ret = radeon_cs_setup_bo(&cs->bos[i], &sizes); in radeon_cs_do_space_check()
156 bo = cs->bos[i].bo; in radeon_cs_do_space_check()
157 bo->space_accounted = cs->bos[i].new_accounted; in radeon_cs_do_space_check()
173 if (csi->bos[i].bo == boi && in radeon_cs_space_add_persistent_bo()
174 csi->bos[i].read_domains == read_domains && in radeon_cs_space_add_persistent_bo()
175 csi->bos[i].write_domain == write_domain) in radeon_cs_space_add_persistent_bo()
180 csi->bos[i].bo = boi; in radeon_cs_space_add_persistent_bo()
181 csi->bos[i].read_domains = read_domains; in radeon_cs_space_add_persistent_bo()
182 csi->bos[i].write_domain = write_domain; in radeon_cs_space_add_persistent_bo()
183 csi->bos[i].new_accounted = 0; in radeon_cs_space_add_persistent_bo()
[all …]
/third_party/mesa3d/src/panfrost/vulkan/
Dpanvk_vX_device.c41 uint32_t *bos, unsigned nr_bos, in panvk_queue_submit_batch() argument
64 .bo_handles = (uintptr_t)bos, in panvk_queue_submit_batch()
89 .bo_handles = (uintptr_t)bos, in panvk_queue_submit_batch()
234 uint32_t bos[nr_bos]; in panvk_per_arch() local
236 panvk_pool_get_bo_handles(&cmdbuf->desc_pool, &bos[bo_idx]); in panvk_per_arch()
239 panvk_pool_get_bo_handles(&cmdbuf->varying_pool, &bos[bo_idx]); in panvk_per_arch()
242 panvk_pool_get_bo_handles(&cmdbuf->tls_pool, &bos[bo_idx]); in panvk_per_arch()
247bos[bo_idx++] = batch->fb.info->attachments[i].iview->pview.image->data.bo->gem_handle; in panvk_per_arch()
252 bos[bo_idx++] = batch->blit.src->gem_handle; in panvk_per_arch()
255 bos[bo_idx++] = batch->blit.dst->gem_handle; in panvk_per_arch()
[all …]
Dpanvk_mempool.c65 util_dynarray_append(&pool->bos, struct panfrost_bo *, bo); in panvk_pool_alloc_backing()
112 util_dynarray_init(&pool->bos, NULL); in PAN_POOL_ALLOCATOR()
126 memcpy(ptr, util_dynarray_begin(&pool->bos), in panvk_pool_reset()
129 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) in panvk_pool_reset()
136 util_dynarray_clear(&pool->bos); in panvk_pool_reset()
145 util_dynarray_fini(&pool->bos); in panvk_pool_cleanup()
153 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) { in panvk_pool_get_bo_handles()
/third_party/ejdb/src/bindings/ejdb2_jni/src/test/java/com/softmotions/ejdb2/
DTestEJDB2.java44 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in dbTest() local
45 db.get("c1", 1L, bos); in dbTest()
46 assert (bos.toString().equals(json)); in dbTest()
49 bos.reset(); in dbTest()
50 db.get("c1", 1L, bos); in dbTest()
51 assert (bos.toString().equals("{'foo':'bar','baz':'qux'}".replace('\'', '"'))); in dbTest()
52 bos.reset(); in dbTest()
58 db.get("c1", id, bos); in dbTest()
156 bos.reset(); in dbTest()
159 db.get("cc2", 1, bos); in dbTest()
[all …]
/third_party/ltp/tools/sparse/sparse-src/validation/
Dbuiltin-objsize0.c1 #define bos(O, T) __builtin_object_size(O, T) macro
13 int obj_int0(void) { return bos(&s.i, 0) == 8; } in obj_int0()
14 int obj_arr0(void) { return bos(&s.arr[1], 0) == 15; } in obj_arr0()
16 int ptr_int(struct s *p) { return bos(&p->i, 0) == -1; } in ptr_int()
17 int ptr_arr(struct s *p) { return bos(&p->arr[1], 0) == -1; } in ptr_arr()
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c81 struct radv_amdgpu_winsys_bo **bos = in radv_amdgpu_winsys_rebuild_bo_list() local
82 realloc(bo->bos, new_count * sizeof(struct radv_amdgpu_winsys_bo *)); in radv_amdgpu_winsys_rebuild_bo_list()
83 if (!bos) in radv_amdgpu_winsys_rebuild_bo_list()
85 bo->bos = bos; in radv_amdgpu_winsys_rebuild_bo_list()
92 bo->bos[temp_bo_count++] = bo->ranges[i].bo; in radv_amdgpu_winsys_rebuild_bo_list()
94 qsort(bo->bos, temp_bo_count, sizeof(struct radv_amdgpu_winsys_bo *), &bo_comparator); in radv_amdgpu_winsys_rebuild_bo_list()
101 if (bo->bos[i] != bo->bos[i - 1]) in radv_amdgpu_winsys_rebuild_bo_list()
102 bo->bos[final_bo_count++] = bo->bos[i]; in radv_amdgpu_winsys_rebuild_bo_list()
298 realloc(ws->global_bo_list.bos, capacity * sizeof(struct radv_amdgpu_winsys_bo *)); in radv_amdgpu_global_bo_list_add()
304 ws->global_bo_list.bos = (struct radv_amdgpu_winsys_bo **)data; in radv_amdgpu_global_bo_list_add()
[all …]
/third_party/libdrm/freedreno/msm/
Dmsm_ringbuffer.c64 DECLARE_ARRAY(struct drm_msm_gem_submit_bo, bos);
72 DECLARE_ARRAY(struct fd_bo *, bos);
206 idx = APPEND(&msm_ring->submit, bos); in append_bo()
207 idx = APPEND(msm_ring, bos); in append_bo()
209 msm_ring->submit.bos[idx].flags = 0; in append_bo()
210 msm_ring->submit.bos[idx].handle = bo->handle; in append_bo()
211 msm_ring->submit.bos[idx].presumed = to_msm_bo(bo)->presumed; in append_bo()
213 msm_ring->bos[idx] = fd_bo_ref(bo); in append_bo()
246 msm_ring->submit.bos[idx].flags |= MSM_SUBMIT_BO_READ; in bo2idx()
248 msm_ring->submit.bos[idx].flags |= MSM_SUBMIT_BO_WRITE; in bo2idx()
[all …]
/third_party/libdrm/etnaviv/
Detnaviv_cmd_stream.c133 idx = APPEND(&priv->submit, bos); in append_bo()
134 idx = APPEND(priv, bos); in append_bo()
136 priv->submit.bos[idx].flags = 0; in append_bo()
137 priv->submit.bos[idx].handle = bo->handle; in append_bo()
139 priv->bos[idx] = etna_bo_ref(bo); in append_bo()
158 if (priv->bos[idx] == bo) in bo2idx()
170 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_READ; in bo2idx()
172 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_WRITE; in bo2idx()
187 .bos = VOID2U64(priv->submit.bos), in flush()
214 struct etna_bo *bo = priv->bos[i]; in flush()
/third_party/mesa3d/src/etnaviv/drm/
Detnaviv_cmd_stream.c161 idx = APPEND(&priv->submit, bos); in append_bo()
162 idx = APPEND(priv, bos); in append_bo()
164 priv->submit.bos[idx].flags = 0; in append_bo()
165 priv->submit.bos[idx].handle = bo->handle; in append_bo()
166 priv->submit.bos[idx].presumed = bo->va; in append_bo()
168 priv->bos[idx] = etna_bo_ref(bo); in append_bo()
193 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_READ; in bo2idx()
195 priv->submit.bos[idx].flags |= ETNA_SUBMIT_BO_WRITE; in bo2idx()
210 .bos = VOID2U64(priv->submit.bos), in etna_cmd_stream_flush()
243 etna_bo_del(priv->bos[i]); in etna_cmd_stream_flush()
/third_party/ejdb/src/bindings/ejdb2_android/test/ejdb2/src/androidTest/java/com/softmotions/ejdb2/
DEjdb2AndroidTest.java50 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in ejdb2tests() local
51 db.get("c1", 1L, bos); in ejdb2tests()
52 assertEquals(bos.toString(), json); in ejdb2tests()
55 bos.reset(); in ejdb2tests()
56 db.get("c1", 1L, bos); in ejdb2tests()
57 assertEquals(bos.toString(), "{'foo':'bar','baz':'qux'}".replace('\'', '"')); in ejdb2tests()
58 bos.reset(); in ejdb2tests()
64 db.get("c1", id, bos); in ejdb2tests()
/third_party/mesa3d/src/freedreno/vulkan/
Dtu_cs.c69 tu_bo_finish(cs->device, cs->bos[i]); in tu_cs_finish()
76 free(cs->bos); in tu_cs_finish()
86 return cs->bos[cs->bo_count - 1]; in tu_cs_current_bo()
119 realloc(cs->bos, new_capacity * sizeof(struct tu_bo *)); in tu_cs_add_bo()
124 cs->bos = new_bos; in tu_cs_add_bo()
142 cs->bos[cs->bo_count++] = new_bo; in tu_cs_add_bo()
424 tu_bo_finish(cs->device, cs->bos[i]); in tu_cs_reset()
428 cs->bos[0] = cs->bos[cs->bo_count - 1]; in tu_cs_reset()
431 cs->start = cs->cur = cs->reserved_end = (uint32_t *) cs->bos[0]->map; in tu_cs_reset()
432 cs->end = cs->start + cs->bos[0]->size / sizeof(uint32_t); in tu_cs_reset()
/third_party/mesa3d/src/asahi/lib/
Dpool.c42 util_dynarray_append(&pool->bos, struct agx_bo *, bo); in agx_pool_alloc_backing()
56 util_dynarray_init(&pool->bos, dev->memctx); in agx_pool_init()
65 util_dynarray_foreach(&pool->bos, struct agx_bo *, bo) { in agx_pool_cleanup()
69 util_dynarray_fini(&pool->bos); in agx_pool_cleanup()
76 util_dynarray_foreach(&pool->bos, struct agx_bo *, bo) { in agx_pool_get_bo_handles()
/third_party/ejdb/src/bindings/ejdb2_jni/src/android/java/com/softmotions/ejdb2/
DEJDB2.java197 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getAsString() local
198 get(collection, id, bos); in getAsString()
199 return bos.toString("UTF-8"); in getAsString()
259 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in infoAsString() local
260 info(bos); in infoAsString()
261 return bos.toString("UTF-8"); in infoAsString()
/third_party/mesa3d/src/gallium/drivers/panfrost/
Dpan_mempool.c59 util_dynarray_append(&pool->bos, struct panfrost_bo *, bo); in panfrost_pool_alloc_backing()
80 util_dynarray_init(&pool->bos, memctx); in panfrost_pool_init()
94 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) in panfrost_pool_cleanup()
97 util_dynarray_fini(&pool->bos); in panfrost_pool_cleanup()
106 util_dynarray_foreach(&pool->bos, struct panfrost_bo *, bo) { in panfrost_pool_get_bo_handles()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_batch.cpp45 batch->bos = _mesa_hash_table_create(NULL, _mesa_hash_pointer, in d3d12_init_batch()
55 if (!batch->bos || !batch->sampler_views || !batch->surfaces || !batch->objects) in d3d12_init_batch()
124 _mesa_hash_table_clear(batch->bos, delete_bo); in d3d12_reset_batch()
152 _mesa_hash_table_destroy(batch->bos, NULL); in d3d12_destroy_batch()
242 hash_entry *entry = _mesa_hash_table_search(batch->bos, bo); in d3d12_batch_has_references()
254 hash_entry *entry = _mesa_hash_table_search(batch->bos, res->bo); in d3d12_batch_reference_resource()
257 entry = _mesa_hash_table_insert(batch->bos, res->bo, NULL); in d3d12_batch_reference_resource()
/third_party/mesa3d/src/freedreno/decode/scripts/
Dtexturator-to-unit-test-5xx.lua65 blit.base = bos.base(blit.addr)
67 blit.ubwc_base = bos.base(blit.ubwc_addr)
89 blit.base = bos.base(blit.addr)
91 blit.ubwc_base = bos.base(blit.ubwc_addr)
122 local basebase = bos.base(base)
124 printf("ubwcbase: 0x%x (0x%x)\n", ubwc_base, bos.base(ubwc_base))

123456