Home
last modified time | relevance | path

Searched refs:size (Results 451 - 475 of 42736) sorted by relevance

1...<<11121314151617181920>>...1710

/third_party/ltp/testcases/kernel/fs/doio/
H A Ddataascii.c116 int size = 1023; in main() local
121 buffer = malloc(size); in main()
127 dataasciigen(NULL, buffer, size, 0); in main()
128 printf("dataasciigen(NULL, buffer, %d, 0)\n", size); in main()
130 ret = dataasciichk(NULL, buffer, size, 0, &errmsg); in main()
132 size, ret, errmsg); in main()
139 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
141 size - 1, ret, errmsg); in main()
151 ret = dataasciichk(NULL, &buffer[1], size - 1, 1, &errmsg); in main()
153 size in main()
[all...]
/third_party/mesa3d/src/util/
H A Du_vector.c32 * only compute the modulo with size when accessing the array. This way,
51 vector->size = element_size * initial_element_count; in u_vector_init_pow2()
52 vector->data = malloc(vector->size); in u_vector_init_pow2()
60 uint32_t offset, size, split, src_tail, dst_tail; in u_vector_add() local
63 if (vector->head - vector->tail == vector->size) { in u_vector_add()
64 size = vector->size * 2; in u_vector_add()
65 data = malloc(size); in u_vector_add()
68 src_tail = vector->tail & (vector->size - 1); in u_vector_add()
69 dst_tail = vector->tail & (size in u_vector_add()
[all...]
/third_party/skia/third_party/externals/libwebp/tests/fuzzer/
H A Dsimple_api_fuzzer.c20 int LLVMFuzzerTestOneInput(const uint8_t* const data, size_t size) { in LLVMFuzzerTestOneInput() argument
22 if (!WebPGetInfo(data, size, &w, &h)) return 0; in LLVMFuzzerTestOneInput()
25 const uint8_t value = FuzzHash(data, size); in LLVMFuzzerTestOneInput()
31 buf = WebPDecodeRGBA(data, size, &w, &h); in LLVMFuzzerTestOneInput()
33 buf = WebPDecodeBGRA(data, size, &w, &h); in LLVMFuzzerTestOneInput()
36 buf = WebPDecodeARGB(data, size, &w, &h); in LLVMFuzzerTestOneInput()
38 buf = WebPDecodeRGB(data, size, &w, &h); in LLVMFuzzerTestOneInput()
40 buf = WebPDecodeBGR(data, size, &w, &h); in LLVMFuzzerTestOneInput()
45 buf = WebPDecodeYUV(data, size, &w, &h, &u, &v, &stride, &uv_stride); in LLVMFuzzerTestOneInput()
52 WebPDecodeRGBAInto(data, size, ext_bu in LLVMFuzzerTestOneInput()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Demangle/
H A DStringView.h40 return StringView(begin() + From, size() - From); in substr()
44 size_t FindBegin = std::min(From, size()); in find()
46 if (FindBegin < size()) { in find()
48 if (const void *P = ::memchr(First + FindBegin, C, size() - FindBegin)) in find()
55 if (To >= size()) in substr()
56 To = size() - 1; in substr()
57 if (From >= size()) in substr()
58 From = size() - 1; in substr()
63 if (N >= size()) in dropFront()
64 N = size(); in dropFront()
115 size_t size() const { return static_cast<size_t>(Last - First); } size() function in StringView
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kvm/
H A Demulate_loadstore.c99 int size = GETSIZE(op.type); in kvmppc_emulate_loadstore() local
107 op.reg, size, !instr_byte_swap); in kvmppc_emulate_loadstore()
110 op.reg, size, !instr_byte_swap); in kvmppc_emulate_loadstore()
127 KVM_MMIO_REG_FPR|op.reg, size, 1); in kvmppc_emulate_loadstore()
130 KVM_MMIO_REG_FPR|op.reg, size, 1); in kvmppc_emulate_loadstore()
143 vcpu->arch.vaddr_accessed &= ~((unsigned long)size - 1); in kvmppc_emulate_loadstore()
144 vcpu->arch.paddr_accessed &= ~((unsigned long)size - 1); in kvmppc_emulate_loadstore()
146 if (size == 16) { /* lvx */ in kvmppc_emulate_loadstore()
149 } else if (size == 4) { /* lvewx */ in kvmppc_emulate_loadstore()
152 } else if (size in kvmppc_emulate_loadstore()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Demulate_loadstore.c98 int size = GETSIZE(op.type); in kvmppc_emulate_loadstore() local
108 op.reg, size, !instr_byte_swap); in kvmppc_emulate_loadstore()
111 op.reg, size, !instr_byte_swap); in kvmppc_emulate_loadstore()
128 KVM_MMIO_REG_FPR|op.reg, size, 1); in kvmppc_emulate_loadstore()
131 KVM_MMIO_REG_FPR|op.reg, size, 1); in kvmppc_emulate_loadstore()
144 vcpu->arch.vaddr_accessed &= ~((unsigned long)size - 1); in kvmppc_emulate_loadstore()
145 vcpu->arch.paddr_accessed &= ~((unsigned long)size - 1); in kvmppc_emulate_loadstore()
147 if (size == 16) { /* lvx */ in kvmppc_emulate_loadstore()
150 } else if (size == 4) { /* lvewx */ in kvmppc_emulate_loadstore()
153 } else if (size in kvmppc_emulate_loadstore()
[all...]
/kernel/linux/linux-5.10/drivers/rapidio/
H A Drio-sysfs.c121 unsigned int size = 0x100; in rio_read_config() local
127 size = RIO_MAINT_SPACE_SZ; in rio_read_config()
129 if (off >= size) in rio_read_config()
131 if (off + count > size) { in rio_read_config()
132 size -= off; in rio_read_config()
133 count = size; in rio_read_config()
135 size = count; in rio_read_config()
138 if ((off & 1) && size) { in rio_read_config()
143 size--; in rio_read_config()
146 if ((off & 3) && size > in rio_read_config()
192 unsigned int size = count; rio_write_config() local
[all...]
/kernel/linux/linux-6.6/drivers/rapidio/
H A Drio-sysfs.c121 unsigned int size = 0x100; in rio_read_config() local
127 size = RIO_MAINT_SPACE_SZ; in rio_read_config()
129 if (off >= size) in rio_read_config()
131 if (off + count > size) { in rio_read_config()
132 size -= off; in rio_read_config()
133 count = size; in rio_read_config()
135 size = count; in rio_read_config()
138 if ((off & 1) && size) { in rio_read_config()
143 size--; in rio_read_config()
146 if ((off & 3) && size > in rio_read_config()
192 unsigned int size = count; rio_write_config() local
[all...]
/kernel/linux/linux-6.6/tools/bootconfig/
H A Dmain.c134 static int load_xbc_fd(int fd, char **buf, int size) in load_xbc_fd() argument
138 *buf = malloc(size + 1); in load_xbc_fd()
142 ret = read(fd, *buf, size); in load_xbc_fd()
145 (*buf)[size] = '\0'; in load_xbc_fd()
150 /* Return the read size or -errno */
180 uint32_t size = 0, csum = 0, rcsum; in load_xbc_from_initrd() local
202 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd()
204 if (read(fd, &size, sizeof(uint32_t)) < 0) in load_xbc_from_initrd()
205 return pr_errno("Failed to read size", -errno); in load_xbc_from_initrd()
206 size in load_xbc_from_initrd()
331 int ret = 0, fd, size; delete_xbc() local
366 uint32_t size, csum; apply_xbc() local
[all...]
/third_party/alsa-lib/src/topology/
H A Dbuilder.c48 hdr.size = sizeof(hdr); in write_block_header()
62 "header index %d type %d count %d size 0x%lx/%ld vendor %d " in write_block_header()
73 struct list_head *base, size_t size, in write_elem_block()
90 block_size += elem->size; in write_elem_block()
113 obj_name, elem->id, elem->size); in write_elem_block()
119 elem->route->sink, elem->size); in write_elem_block()
121 wsize = twrite(tplg, elem->obj, elem->size); in write_elem_block()
123 return size; in write_elem_block()
138 /* make sure we have written the correct size */ in write_elem_block()
139 if (total_size != size) { in write_elem_block()
72 write_elem_block(snd_tplg_t *tplg, struct list_head *base, size_t size, int tplg_type, const char *obj_name) write_elem_block() argument
159 size_t size = 0; calc_real_size() local
187 size_t size = 0; calc_block_size() local
234 size_t total_size, size; tplg_write_data() local
[all...]
/third_party/lzma/C/
H A D7zCrc.c16 UInt32 Z7_FASTCALL CrcUpdateT1_BeT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
17 UInt32 Z7_FASTCALL CrcUpdateT1_BeT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
21 UInt32 Z7_FASTCALL CrcUpdateT4(UInt32 v, const void *data, size_t size, const UInt32 *table);
22 UInt32 Z7_FASTCALL CrcUpdateT8(UInt32 v, const void *data, size_t size, const UInt32 *table);
45 UInt32 Z7_FASTCALL CrcUpdate(UInt32 v, const void *data, size_t size) in CrcUpdate() argument
47 return g_CrcUpdate(v, data, size, g_CrcTable); in CrcUpdate()
50 UInt32 Z7_FASTCALL CrcCalc(const void *data, size_t size) in CrcCalc() argument
52 return g_CrcUpdate(CRC_INIT_VAL, data, size, g_CrcTable) ^ CRC_INIT_VAL; in CrcCalc()
59 UInt32 Z7_FASTCALL CrcUpdateT1(UInt32 v, const void *data, size_t size, const UInt32 *table);
60 UInt32 Z7_FASTCALL CrcUpdateT1(UInt32 v, const void *data, size_t size, cons argument
174 CrcUpdateT0_32(UInt32 v, const void *data, size_t size, const UInt32 *table) CrcUpdateT0_32() argument
206 CrcUpdateT0_64(UInt32 v, const void *data, size_t size, const UInt32 *table) CrcUpdateT0_64() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_largefile.py18 # size of file to create (>2 GiB; 2 GiB == 2,147,483,648 bytes)
19 size = 2_500_000_000 variable
33 if current_size == size+1:
40 f.seek(size)
43 self.assertEqual(os.fstat(f.fileno())[stat.ST_SIZE], size+1)
62 @bigmemtest(size=size, memuse=2, dry_run=False)
66 self.assertEqual(len(f.read()), size + 1)
67 self.assertEqual(f.tell(), size + 1)
70 self.assertEqual(os.stat(TESTFN)[stat.ST_SIZE], size
[all...]
/third_party/ffmpeg/libavcodec/
H A Dbytestream.h169 unsigned int size) in bytestream2_skip()
171 g->buffer += FFMIN(g->buffer_end - g->buffer, size); in bytestream2_skip()
175 unsigned int size) in bytestream2_skipu()
177 g->buffer += size; in bytestream2_skipu()
181 unsigned int size) in bytestream2_skip_p()
186 size2 = FFMIN(p->buffer_end - p->buffer, size); in bytestream2_skip_p()
187 if (size2 != size) in bytestream2_skip_p()
269 unsigned int size) in bytestream2_get_buffer()
271 int size2 = FFMIN(g->buffer_end - g->buffer, size); in bytestream2_get_buffer()
279 unsigned int size) in bytestream2_get_bufferu()
168 bytestream2_skip(GetByteContext *g, unsigned int size) bytestream2_skip() argument
174 bytestream2_skipu(GetByteContext *g, unsigned int size) bytestream2_skipu() argument
180 bytestream2_skip_p(PutByteContext *p, unsigned int size) bytestream2_skip_p() argument
267 bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size) bytestream2_get_buffer() argument
277 bytestream2_get_bufferu(GetByteContext *g, uint8_t *dst, unsigned int size) bytestream2_get_bufferu() argument
286 bytestream2_put_buffer(PutByteContext *p, const uint8_t *src, unsigned int size) bytestream2_put_buffer() argument
301 bytestream2_put_bufferu(PutByteContext *p, const uint8_t *src, unsigned int size) bytestream2_put_bufferu() argument
310 bytestream2_set_buffer(PutByteContext *p, const uint8_t c, unsigned int size) bytestream2_set_buffer() argument
324 bytestream2_set_bufferu(PutByteContext *p, const uint8_t c, unsigned int size) bytestream2_set_bufferu() argument
337 bytestream2_copy_bufferu(PutByteContext *p, GetByteContext *g, unsigned int size) bytestream2_copy_bufferu() argument
347 bytestream2_copy_buffer(PutByteContext *p, GetByteContext *g, unsigned int size) bytestream2_copy_buffer() argument
363 bytestream_get_buffer(const uint8_t **b, uint8_t *dst, unsigned int size) bytestream_get_buffer() argument
372 bytestream_put_buffer(uint8_t **b, const uint8_t *src, unsigned int size) bytestream_put_buffer() argument
[all...]
H A Dxan.c60 int size; member
159 int size; in xan_unpack() local
171 size = opcode & 3; in xan_unpack()
176 size = bytestream2_peek_byte(&ctx) >> 6; in xan_unpack()
181 size = opcode & 3; in xan_unpack()
187 if (dest_end - dest < size + size2 || in xan_unpack()
188 dest + size - dest_org < back || in xan_unpack()
189 bytestream2_get_bytes_left(&ctx) < size) in xan_unpack()
191 bytestream2_get_buffer(&ctx, dest, size); in xan_unpack()
192 dest += size; in xan_unpack()
305 int size = 0; xan_wc3_decode_frame() local
554 int size; xan_decode_frame() local
[all...]
/kernel/linux/linux-5.10/fs/ocfs2/
H A Docfs2_fs.h35 * Cluster size limits. The maximum is kept arbitrarily at 1 MB, and could
43 * minimum cluster size.
309 * Inline extended attribute size (in bytes)
523 /* Actual on-disk size is one block */
534 * Actual on-disk size is one block. OCFS2_MAX_SLOTS is 255,
555 * Actual size is i_size of the slot_map system file. It should
614 /*B8*/ __le16 s_xattr_inline_size; /* extended attribute inline size
734 /* Actual on-disk size is one block */
918 /* Actual on-disk size is one block */
976 /* Actual on-disk size i
1263 int size; ocfs2_extent_recs_per_inode() local
1275 int size; ocfs2_extent_recs_per_inode_with_xattr() local
1291 int size; ocfs2_extent_recs_per_dx_root() local
1301 int size; ocfs2_chain_recs_per_inode() local
1311 int size; ocfs2_extent_recs_per_eb() local
1321 int size; ocfs2_extent_recs_per_gd() local
1331 int size; ocfs2_dx_entries_per_leaf() local
1341 int size; ocfs2_dx_entries_per_root() local
1351 u16 size; ocfs2_local_alloc_size() local
1363 int size = sb->s_blocksize - ocfs2_group_bitmap_size() local
1381 int size; ocfs2_truncate_recs_per_inode() local
1405 int size; ocfs2_xattr_recs_per_xb() local
1416 int size; ocfs2_extent_recs_per_rb() local
1426 int size; ocfs2_refcount_recs_per_rb() local
1459 int size; ocfs2_extent_recs_per_inode() local
1469 int size; ocfs2_chain_recs_per_inode() local
1479 int size; ocfs2_extent_recs_per_eb() local
1489 int size; ocfs2_extent_recs_per_gd() local
1499 int size; ocfs2_local_alloc_size() local
1511 int size = sb->s_blocksize - ocfs2_group_bitmap_size() local
1529 int size; ocfs2_truncate_recs_per_inode() local
1552 int size; ocfs2_xattr_recs_per_xb() local
[all...]
/kernel/linux/linux-6.6/fs/ocfs2/
H A Docfs2_fs.h33 * Cluster size limits. The maximum is kept arbitrarily at 1 MB, and could
41 * minimum cluster size.
307 * Inline extended attribute size (in bytes)
521 /* Actual on-disk size is one block */
532 * Actual on-disk size is one block. OCFS2_MAX_SLOTS is 255,
553 * Actual size is i_size of the slot_map system file. It should
612 /*B8*/ __le16 s_xattr_inline_size; /* extended attribute inline size
732 /* Actual on-disk size is one block */
916 /* Actual on-disk size is one block */
974 /* Actual on-disk size i
1261 int size; ocfs2_extent_recs_per_inode() local
1273 int size; ocfs2_extent_recs_per_inode_with_xattr() local
1289 int size; ocfs2_extent_recs_per_dx_root() local
1299 int size; ocfs2_chain_recs_per_inode() local
1309 int size; ocfs2_extent_recs_per_eb() local
1319 int size; ocfs2_extent_recs_per_gd() local
1329 int size; ocfs2_dx_entries_per_leaf() local
1339 int size; ocfs2_dx_entries_per_root() local
1349 u16 size; ocfs2_local_alloc_size() local
1361 int size = sb->s_blocksize - ocfs2_group_bitmap_size() local
1379 int size; ocfs2_truncate_recs_per_inode() local
1403 int size; ocfs2_xattr_recs_per_xb() local
1414 int size; ocfs2_extent_recs_per_rb() local
1424 int size; ocfs2_refcount_recs_per_rb() local
1457 int size; ocfs2_extent_recs_per_inode() local
1467 int size; ocfs2_chain_recs_per_inode() local
1477 int size; ocfs2_extent_recs_per_eb() local
1487 int size; ocfs2_extent_recs_per_gd() local
1497 int size; ocfs2_local_alloc_size() local
1509 int size = sb->s_blocksize - ocfs2_group_bitmap_size() local
1527 int size; ocfs2_truncate_recs_per_inode() local
1550 int size; ocfs2_xattr_recs_per_xb() local
[all...]
/kernel/linux/linux-6.6/sound/core/
H A Dmemalloc.c30 static void *snd_dma_sg_fallback_alloc(struct snd_dma_buffer *dmab, size_t size);
33 static void *__snd_dma_alloc_pages(struct snd_dma_buffer *dmab, size_t size) in __snd_dma_alloc_pages() argument
39 return ops->alloc(dmab, size); in __snd_dma_alloc_pages()
48 * @size: the buffer size to allocate
54 * Return: Zero if the buffer with the given size is allocated successfully,
58 enum dma_data_direction dir, size_t size, in snd_dma_alloc_dir_pages()
61 if (WARN_ON(!size)) in snd_dma_alloc_dir_pages()
66 size = PAGE_ALIGN(size); in snd_dma_alloc_dir_pages()
57 snd_dma_alloc_dir_pages(int type, struct device *device, enum dma_data_direction dir, size_t size, struct snd_dma_buffer *dmab) snd_dma_alloc_dir_pages() argument
96 snd_dma_alloc_pages_fallback(int type, struct device *device, size_t size, struct snd_dma_buffer *dmab) snd_dma_alloc_pages_fallback() argument
153 snd_devm_alloc_dir_pages(struct device *dev, int type, enum dma_data_direction dir, size_t size) snd_devm_alloc_dir_pages() argument
265 snd_sgbuf_get_chunk_size(struct snd_dma_buffer *dmab, unsigned int ofs, unsigned int size) snd_sgbuf_get_chunk_size() argument
280 do_alloc_pages(struct device *dev, size_t size, dma_addr_t *addr, bool wc) do_alloc_pages() argument
310 do_free_pages(void *p, size_t size, bool wc) do_free_pages() argument
320 snd_dma_continuous_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_continuous_alloc() argument
348 snd_dma_vmalloc_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_vmalloc_alloc() argument
380 snd_dma_vmalloc_get_chunk_size(struct snd_dma_buffer *dmab, unsigned int ofs, unsigned int size) snd_dma_vmalloc_get_chunk_size() argument
416 snd_dma_iram_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_iram_alloc() argument
467 snd_dma_dev_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_dev_alloc() argument
495 snd_dma_wc_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_wc_alloc() argument
512 snd_dma_wc_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_wc_alloc() argument
539 snd_dma_noncontig_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_noncontig_alloc() argument
633 snd_dma_noncontig_get_chunk_size(struct snd_dma_buffer *dmab, unsigned int ofs, unsigned int size) snd_dma_noncontig_get_chunk_size() argument
674 snd_dma_sg_wc_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_sg_wc_alloc() argument
729 size_t i, size; __snd_dma_sg_fallback_free() local
754 snd_dma_sg_fallback_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_sg_fallback_alloc() argument
869 snd_dma_noncoherent_alloc(struct snd_dma_buffer *dmab, size_t size) snd_dma_noncoherent_alloc() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/
H A Dhfi_plat_bufs_v6.c88 * size for high resolution
143 * Some content need more bin buffer, but limit buffer size
239 u32 size = 0; in size_vpss_lb() local
257 size = num_vpp_pipes * in size_vpss_lb()
265 return size; in size_vpss_lb()
271 u32 size = 0; in size_h264d_hw_bin_buffer() local
282 size = size_bin_hdr + size_bin_res; in size_h264d_hw_bin_buffer()
284 return size; in size_h264d_hw_bin_buffer()
291 u32 size = 0; in h264d_scratch_size() local
294 size in h264d_scratch_size()
302 u32 size = 0; size_h265d_hw_bin_buffer() local
321 u32 size = 0; h265d_scratch_size() local
334 u32 size = 0; vpxd_scratch_size() local
409 u32 sao_bin_buffer_size, padded_bin_size, size; calculate_enc_scratch_size() local
505 u32 size; size_h264d_vpp_cmd_buf() local
518 u32 size_bse, size_vpp, size; hfi_iris2_h264d_non_comv_size() local
548 u32 size; size_h265d_bse_cmd_buf() local
561 u32 size; size_h265d_vpp_cmd_buf() local
579 u32 size; hfi_iris2_h265d_comv_size() local
591 u32 size_bse, size_vpp, size; hfi_iris2_h265d_non_comv_size() local
665 u32 vpss_lb_size = 0, size; vp8d_scratch1_size() local
695 u32 size; vp9d_scratch1_size() local
726 u32 size; mpeg2d_scratch1_size() local
769 u32 size, bit_depth, num_lcu_mb; calculate_enc_scratch1_size() local
955 u32 size; enc_scratch2_size() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/
H A Dintel_memory_region.c70 resource_size_t size = page_num * page_size; in igt_mock_fill() local
73 obj = i915_gem_object_create_region(mem, size, 0, 0); in igt_mock_fill()
86 rem -= size; in igt_mock_fill()
109 u64 size, in igt_object_create()
115 obj = i915_gem_object_create_region(mem, size, 0, flags); in igt_object_create()
184 u64 size = i915_prandom_u32_max_state(chunk_size, &prng); in igt_mock_reserve() local
187 if (!size) in igt_mock_reserve()
190 size = round_up(size, PAGE_SIZE); in igt_mock_reserve()
191 offset = igt_random_offset(&prng, 0, chunk_size, size, in igt_mock_reserve()
107 igt_object_create(struct intel_memory_region *mem, struct list_head *objects, u64 size, unsigned int flags) igt_object_create() argument
208 u32 size = i915_prandom_u32_max_state(cur_avail, &prng); igt_mock_reserve() local
377 u64 size; igt_mock_splintered_region() local
466 u64 size; igt_mock_max_segment() local
564 u64 size; igt_mock_io_size() local
593 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); igt_mock_io_size() local
632 div64_u64_rem(i915_prandom_u64_state(&prng), rem, &size); igt_mock_io_size() local
878 u32 size, i; igt_lmem_create_cleared_cpu() local
1106 u32 size; igt_lmem_write_cpu() local
1162 create_region_for_mapping(struct intel_memory_region *mr, u64 size, u32 type, void **out_addr) create_region_for_mapping() argument
1194 igt_memcpy_long(void *dst, const void *src, size_t size) igt_memcpy_long() argument
1204 igt_memcpy(void *dst, const void *src, size_t size) igt_memcpy() argument
1209 igt_memcpy_from_wc(void *dst, const void *src, size_t size) igt_memcpy_from_wc() argument
1214 _perf_memcpy(struct intel_memory_region *src_mr, struct intel_memory_region *dst_mr, u64 size, u32 src_type, u32 dst_type) _perf_memcpy() argument
[all...]
/third_party/protobuf/src/google/protobuf/io/
H A Dcoded_stream.h78 // uint32 size;
79 // coded_input->ReadVarint32(&size);
81 // char* text = new char[size + 1];
82 // coded_input->ReadRaw(buffer, size);
83 // text[size] = '\0';
187 // faster than using an ArrayInputStream. PushLimit(size) is implied by
189 explicit CodedInputStream(const uint8* buffer, int size);
207 // underlying buffer, and *size to the size of that buffer, but does not
213 bool GetDirectBufferPointer(const void** data, int* size);
668 EpsCopyOutputStream(void* data, int size, bool deterministic) EpsCopyOutputStream() argument
675 EpsCopyOutputStream(void* data, int size, ZeroCopyOutputStream* stream, bool deterministic, uint8** pp) EpsCopyOutputStream() argument
695 WriteRaw(const void* data, int size, uint8* ptr) WriteRaw() argument
706 WriteRawMaybeAliased(const void* data, int size, uint8* ptr) WriteRawMaybeAliased() argument
716 std::ptrdiff_t size = s.size(); WriteStringMaybeAliased() local
733 std::ptrdiff_t size = s.size(); WriteString() local
749 WriteInt32Packed(int num, const T& r, int size, uint8* ptr) WriteInt32Packed() argument
754 WriteUInt32Packed(int num, const T& r, int size, uint8* ptr) WriteUInt32Packed() argument
759 WriteSInt32Packed(int num, const T& r, int size, uint8* ptr) WriteSInt32Packed() argument
764 WriteInt64Packed(int num, const T& r, int size, uint8* ptr) WriteInt64Packed() argument
769 WriteUInt64Packed(int num, const T& r, int size, uint8* ptr) WriteUInt64Packed() argument
774 WriteSInt64Packed(int num, const T& r, int size, uint8* ptr) WriteSInt64Packed() argument
779 WriteEnumPacked(int num, const T& r, int size, uint8* ptr) WriteEnumPacked() argument
789 auto size = r.size() * element_size; WriteFixedPacked() local
858 GOOGLE_DCHECK(ptr < end_); return UnsafeVarint((num << 3) | wt, ptr); } PROTOBUF_ALWAYS_INLINE uint8* WriteLengthDelim(int num, uint32 size, uint8* ptr) { ptr = WriteTag(num, 2, ptr); return UnsafeWriteSize(size, ptr); } uint8* WriteRawFallback(const void* data, int size, uint8* ptr); uint8* WriteAliasedRaw(const void* data, int size, uint8* ptr); uint8* WriteStringMaybeAliasedOutline(uint32 num, const std::string& s, uint8* ptr); uint8* WriteStringOutline(uint32 num, const std::string& s, uint8* ptr); template <typename T, typename E> PROTOBUF_ALWAYS_INLINE uint8* WriteVarintPacked(int num, const T& r, int size, uint8* ptr, const E& encode) { ptr = EnsureSpace(ptr); ptr = WriteLengthDelim(num, size, ptr); auto it = r.data(); auto end = it + r.size(); do { ptr = EnsureSpace(ptr); ptr = UnsafeVarint(encode(*it++), ptr); } while (it < end); return ptr; } static uint32 Encode32(uint32 v) { return v; } static uint64 Encode64(uint64 v) { return v; } static uint32 ZigZagEncode32(int32 v) { return (static_cast<uint32>(v) << 1) ^ static_cast<uint32>(v >> 31); } static uint64 ZigZagEncode64(int64 v) { return (static_cast<uint64>(v) << 1) ^ static_cast<uint64>(v >> 63); } template <typename T> PROTOBUF_ALWAYS_INLINE static uint8* UnsafeVarint(T value, uint8* ptr) { static_assert(std::is_unsigned<T>::value, �); if (value < 0x80) { ptr[0] = static_cast<uint8>(value); return ptr + 1; } ptr[0] = static_cast<uint8>(value | 0x80); value >>= 7; if (value < 0x80) { ptr[1] = static_cast<uint8>(value); return ptr + 2; } ptr++; do { *ptr = static_cast<uint8>(value | 0x80); value >>= 7; ++ptr; } while (PROTOBUF_PREDICT_FALSE(value >= 0x80)); *ptr++ = static_cast<uint8>(value); return ptr; } PROTOBUF_ALWAYS_INLINE static uint8* UnsafeWriteSize(uint32 value, uint8* ptr) { while (PROTOBUF_PREDICT_FALSE(value >= 0x80) WriteTag() argument
945 SetInitialBuffer(void* data, int size) SetInitialBuffer() argument
974 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
980 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
990 WriteRawLittleEndian(const void* data, int size, uint8* ptr) WriteRawLittleEndian() argument
1095 GetDirectBufferPointer(void** data, int* size) GetDirectBufferPointer() argument
1106 GetDirectBufferForNBytesAndAdvance(int size) GetDirectBufferForNBytesAndAdvance() argument
1111 WriteRaw(const void* buffer, int size) WriteRaw() argument
1475 GetDirectBufferPointerInline(const void** data, int* size) GetDirectBufferPointerInline() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Duaccess.h18 static inline bool __access_ok(unsigned long addr, unsigned long size) in __access_ok() argument
20 return addr < TASK_SIZE_MAX && size <= TASK_SIZE_MAX - addr; in __access_ok()
23 #define access_ok(addr, size) \
25 __access_ok((unsigned long)(addr), (size)))
29 * use the right size if we just have the right pointer type.
113 #define __put_user_size_allowed(x, ptr, size, retval) \
118 __put_user_size_goto(x, ptr, size, __pu_failed); \
125 #define __put_user_size(x, ptr, size, retval) \
127 allow_write_to_user(ptr, size); \
128 __put_user_size_allowed(x, ptr, size, retva
372 copy_mc_to_kernel(void *to, const void *from, unsigned long size) copy_mc_to_kernel() argument
483 clear_user(void __user *addr, unsigned long size) clear_user() argument
495 __clear_user(void __user *addr, unsigned long size) __clear_user() argument
[all...]
/kernel/linux/linux-5.10/arch/s390/kernel/
H A Dcrash_dump.c241 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_range_kdump()
247 size_old = min(size, OLDMEM_SIZE - (pfn << PAGE_SHIFT)); in remap_oldmem_pfn_range_kdump()
251 if (rc || size == size_old) in remap_oldmem_pfn_range_kdump()
253 size -= size_old; in remap_oldmem_pfn_range_kdump()
257 return remap_pfn_range(vma, from, pfn, size, prot); in remap_oldmem_pfn_range_kdump()
263 * We only map available memory above HSA size. Memory below HSA size
269 unsigned long size, pgprot_t prot) in remap_oldmem_pfn_range_zfcpdump()
275 size_hsa = min(size, hsa_end - (pfn << PAGE_SHIFT)); in remap_oldmem_pfn_range_zfcpdump()
276 if (size in remap_oldmem_pfn_range_zfcpdump()
239 remap_oldmem_pfn_range_kdump(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot) remap_oldmem_pfn_range_kdump() argument
266 remap_oldmem_pfn_range_zfcpdump(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot) remap_oldmem_pfn_range_zfcpdump() argument
288 remap_oldmem_pfn_range(struct vm_area_struct *vma, unsigned long from, unsigned long pfn, unsigned long size, pgprot_t prot) remap_oldmem_pfn_range() argument
341 size_t size; nt_size_name() local
396 size_t size; get_cpu_elf_notes_size() local
429 get_vmcoreinfo_old(unsigned long *size) get_vmcoreinfo_old() argument
462 unsigned long size; nt_vmcoreinfo() local
480 unsigned long size; nt_vmcoreinfo_size() local
605 size_t size; get_elfcorehdr_size() local
627 elfcorehdr_alloc(unsigned long long *addr, unsigned long long *size) elfcorehdr_alloc() argument
[all...]
/kernel/linux/linux-5.10/kernel/debug/kdb/
H A Dkdb_support.c60 static char *kdb_name_table[100]; /* arbitrary size */
87 #define knt1_size 128 /* must be >= kallsyms table size */ in kdbnearsym()
322 * size Size of the area.
326 int kdb_getarea_size(void *res, unsigned long addr, size_t size) in kdb_getarea_size() argument
328 int ret = copy_from_kernel_nofault((char *)res, (char *)addr, size); in kdb_getarea_size()
347 * size Size of the area.
351 int kdb_putarea_size(unsigned long addr, void *res, size_t size) in kdb_putarea_size() argument
353 int ret = copy_to_kernel_nofault((char *)addr, (char *)res, size); in kdb_putarea_size()
373 * size Size of the area
377 static int kdb_getphys(void *res, unsigned long addr, size_t size) in kdb_getphys() argument
403 kdb_getphysword(unsigned long *word, unsigned long addr, size_t size) kdb_getphysword() argument
453 kdb_getword(unsigned long *word, unsigned long addr, size_t size) kdb_getword() argument
502 kdb_putword(unsigned long addr, unsigned long word, size_t size) kdb_putword() argument
695 u32 size; global() member
746 debug_kmalloc(size_t size, gfp_t flags) debug_kmalloc() argument
[all...]
/third_party/ffmpeg/libavformat/
H A Dmlvdec.c65 unsigned int size; in check_file_header() local
69 size = avio_rl32(pb); in check_file_header()
70 if (size < 52) in check_file_header()
75 avio_skip(pb, size - 24); in check_file_header()
79 static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, unsigned size) in read_string() argument
81 char * value = av_malloc(size + 1); in read_string()
83 avio_skip(pb, size); in read_string()
87 avio_read(pb, value, size); in read_string()
93 value[size] = 0; in read_string()
125 unsigned int size; in scan_file() local
263 int size, ret; read_header() local
407 unsigned int size, space; read_packet() local
[all...]
/kernel/linux/linux-5.10/arch/um/include/asm/
H A Duaccess.h12 #define __under_task_size(addr, size) \
14 (((unsigned long) (addr) + (size)) < TASK_SIZE))
16 #define __access_ok_vsyscall(addr, size) \
18 ((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \
19 ((unsigned long) (addr) + (size) >= (unsigned long)(addr)))
21 #define __addr_range_nowrap(addr, size) \
22 ((unsigned long) (addr) <= ((unsigned long) (addr) + (size)))
29 static inline int __access_ok(unsigned long addr, unsigned long size);
41 static inline int __access_ok(unsigned long addr, unsigned long size) in __access_ok() argument
43 return __addr_range_nowrap(addr, size) in __access_ok()
[all...]

Completed in 21 milliseconds

1...<<11121314151617181920>>...1710