Home
last modified time | relevance | path

Searched refs:size (Results 2651 - 2675 of 51613) sorted by relevance

1...<<101102103104105106107108109110>>...2065

/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dni_labpc_isadma.c21 /* size in bytes of dma buffer */
24 /* utility function that suggests a dma transfer size in bytes */
31 unsigned int size; in labpc_suggest_transfer_size() local
41 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
43 /* set a minimum and maximum size allowed */ in labpc_suggest_transfer_size()
44 if (size > maxbytes) in labpc_suggest_transfer_size()
45 size = maxbytes; in labpc_suggest_transfer_size()
46 else if (size < sample_size) in labpc_suggest_transfer_size()
47 size = sample_size; in labpc_suggest_transfer_size()
49 return size; in labpc_suggest_transfer_size()
[all...]
/kernel/linux/linux-6.6/fs/squashfs/
H A Dnamei.c70 unsigned int size; in get_dir_index_using_name() local
93 size = le32_to_cpu(index->size) + 1; in get_dir_index_using_name()
94 if (size > SQUASHFS_NAME_LEN) in get_dir_index_using_name()
98 &index_offset, size); in get_dir_index_using_name()
102 index->name[size] = '\0'; in get_dir_index_using_name()
138 unsigned int dir_count, size; in squashfs_lookup() local
183 size = le16_to_cpu(dire->size) + 1; in squashfs_lookup()
185 /* size shoul in squashfs_lookup()
[all...]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dni_labpc_isadma.c20 /* size in bytes of dma buffer */
23 /* utility function that suggests a dma transfer size in bytes */
30 unsigned int size; in labpc_suggest_transfer_size() local
40 size = (freq / 3) * sample_size; in labpc_suggest_transfer_size()
42 /* set a minimum and maximum size allowed */ in labpc_suggest_transfer_size()
43 if (size > maxbytes) in labpc_suggest_transfer_size()
44 size = maxbytes; in labpc_suggest_transfer_size()
45 else if (size < sample_size) in labpc_suggest_transfer_size()
46 size = sample_size; in labpc_suggest_transfer_size()
48 return size; in labpc_suggest_transfer_size()
[all...]
/kernel/linux/linux-6.6/drivers/media/pci/cx18/
H A Dcx18-av-firmware.c27 u32 size; in cx18_av_verifyfw() local
45 size = fw->size; in cx18_av_verifyfw()
46 for (addr = 0; addr < size; addr++) { in cx18_av_verifyfw()
59 FWFILE, size); in cx18_av_verifyfw()
67 u32 size; in cx18_av_loadfw() local
93 size = fw->size; in cx18_av_loadfw()
95 for (i = 0; i < size; i++) { in cx18_av_loadfw()
120 if (i == size) in cx18_av_loadfw()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
H A Dradeon_benchmark.c35 static int radeon_benchmark_do_move(struct radeon_device *rdev, unsigned size, in radeon_benchmark_do_move() argument
50 size / RADEON_GPU_PAGE_SIZE, in radeon_benchmark_do_move()
55 size / RADEON_GPU_PAGE_SIZE, in radeon_benchmark_do_move()
75 static void radeon_benchmark_log_results(int n, unsigned size, in radeon_benchmark_log_results() argument
80 unsigned int throughput = (n * (size >> 10)) / time; in radeon_benchmark_log_results()
83 kind, n, size >> 10, sdomain, ddomain, time, in radeon_benchmark_log_results()
87 static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size, in radeon_benchmark_move() argument
97 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, sdomain, 0, NULL, NULL, &sobj); in radeon_benchmark_move()
109 r = radeon_bo_create(rdev, size, PAGE_SIZE, true, ddomain, 0, NULL, NULL, &dobj); in radeon_benchmark_move()
123 time = radeon_benchmark_do_move(rdev, size, sadd in radeon_benchmark_move()
[all...]
/kernel/linux/linux-6.6/drivers/isdn/hardware/mISDN/
H A Diohelper.h18 typedef void (fifo_func)(void *hwp, u8 offset, u8 *datap, int size);
34 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
36 insb(hw->ap.port + off, dp, size); \
38 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
40 outsb(hw->ap.port + off, dp, size); \
54 static void ReadFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
57 insb(hw->ap.port, dp, size); \
59 static void WriteFiFo##name##_IND(void *p, u8 off, u8 *dp, int size) { \
62 outsb(hw->ap.port, dp, size); \
74 static void ReadFiFo##name##_MIO(void *p, u8 off, u8 *dp, int size) { \
[all...]
/kernel/linux/linux-6.6/lib/
H A Ddecompress_unxz.c47 * doesn't change the size of the data, it is enough to calculate the
50 * LZMA2 stores the data in chunks. Each chunk has a header whose size is
52 * the maximum chunk header size is 8 bytes. After the chunk header, there
57 * The maximum uncompressed size of the payload is 2 MiB. The minimum
58 * uncompressed size of the payload is in practice never less than the
59 * payload size itself. The LZMA2 format would allow uncompressed size
60 * to be less than the payload size, but no sane compressor creates such
62 * so there's never a need to create payloads whose uncompressed size is
63 * smaller than the compressed size
179 memeq(const void *a, const void *b, size_t size) memeq() argument
194 memzero(void *buf, size_t size) memzero() argument
206 memmove(void *dest, const void *src, size_t size) memmove() argument
253 unxz(unsigned char *in, long in_size, long (*fill)(void *dest, unsigned long size), long (*flush)(void *src, unsigned long size), unsigned char *out, long *in_used, void (*error)(char *x)) unxz() argument
[all...]
/third_party/ffmpeg/libavcodec/aarch64/
H A Dvc1dsp_init_aarch64.c55 int ff_vc1_unescape_buffer_helper_neon(const uint8_t *src, int size, uint8_t *dst);
57 static int vc1_unescape_buffer_neon(const uint8_t *src, int size, uint8_t *dst) in vc1_unescape_buffer_neon() argument
64 while (size >= 4) in vc1_unescape_buffer_neon()
67 while (!found && (((uintptr_t) dst) & 7) && size >= 4) in vc1_unescape_buffer_neon()
73 --size; in vc1_unescape_buffer_neon()
79 int skip = size - ff_vc1_unescape_buffer_helper_neon(src, size, dst); in vc1_unescape_buffer_neon()
82 size -= skip; in vc1_unescape_buffer_neon()
84 while (!found && size >= 4) in vc1_unescape_buffer_neon()
90 --size; in vc1_unescape_buffer_neon()
[all...]
/third_party/ffmpeg/libavformat/
H A Daixdec.c43 unsigned size; in aix_read_header() local
77 size = avio_rb32(s->pb); in aix_read_header()
78 if (size <= 8) in aix_read_header()
81 ff_get_extradata(s, s->streams[i]->codecpar, s->pb, size - 8); in aix_read_header()
89 unsigned size, index, duration, chunk; in aix_read_packet() local
97 size = avio_rb32(s->pb); in aix_read_packet()
99 avio_skip(s->pb, size); in aix_read_packet()
104 size = avio_rb32(s->pb); in aix_read_packet()
105 avio_skip(s->pb, size); in aix_read_packet()
109 size in aix_read_packet()
[all...]
/third_party/ffmpeg/libavutil/
H A Dmem.h158 * Function attribute used on a function that allocates memory, whose size is
162 * void *av_malloc(size_t size) av_alloc_size(1);
163 * void *av_calloc(size_t nmemb, size_t size) av_alloc_size(1, 2);
196 * @param size Size in bytes for the memory block to be allocated
201 void *av_malloc(size_t size) av_malloc_attrib av_alloc_size(1);
208 * @param size Size in bytes for the memory block to be allocated
212 void *av_mallocz(size_t size) av_malloc_attrib av_alloc_size(1);
217 * The allocated memory will have size `size * nmemb` bytes.
220 * @param size Siz
[all...]
/third_party/gn/src/gn/
H A Dstring_output_buffer_unittest.cc14 // Create a test string of |size| characters with pseudo-random ASCII content.
15 std::string CreateTestString(size_t size, size_t seed = 0) { in CreateTestString() argument
17 result.resize(size); in CreateTestString()
18 for (size_t n = 0; n < size; ++n) { in CreateTestString()
19 int offset = (size + seed + n * 1337); in CreateTestString()
39 size_t end_offset = std::min(start_offset + span_size, data.size()); in TEST()
43 EXPECT_EQ(data.size(), buffer.size()); in TEST()
60 EXPECT_EQ(data.size(), buffer.size()); in TEST()
[all...]
/third_party/mesa3d/src/glx/
H A Dvertarr.c50 __indirect_glColorPointerEXT(GLint size, GLenum type, GLsizei stride, in __indirect_glColorPointerEXT() argument
54 __indirect_glColorPointer(size, type, stride, pointer); in __indirect_glColorPointerEXT()
82 __indirect_glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride, in __indirect_glTexCoordPointerEXT() argument
86 __indirect_glTexCoordPointer(size, type, stride, pointer); in __indirect_glTexCoordPointerEXT()
90 __indirect_glVertexPointerEXT(GLint size, GLenum type, GLsizei stride, in __indirect_glVertexPointerEXT() argument
94 __indirect_glVertexPointer(size, type, stride, pointer); in __indirect_glVertexPointerEXT()
127 * \c size parameter) to the appropriate gl*Pointer function. in __indirect_glInterleavedArrays()
132 * True size of a single element in the subarray, as would be passed in __indirect_glInterleavedArrays()
136 GLubyte size; in __indirect_glInterleavedArrays() member
159 GLint trueStride, size; in __indirect_glInterleavedArrays() local
[all...]
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/
H A Dspan_test.cc24 EXPECT_EQ(0u, empty.size()); in TYPED_TEST()
33 EXPECT_EQ(1u, singular.size()); in TYPED_TEST()
43 EXPECT_EQ(5u, five_items.size()); in TYPED_TEST()
52 EXPECT_EQ(3u, three_items.size()); in TYPED_TEST()
57 EXPECT_EQ(2u, two_items.size()); in TYPED_TEST()
65 EXPECT_EQ(0u, SpanFrom(nullptr).size()); in TEST()
69 EXPECT_EQ(0u, SpanFrom(kEmpty).size()); in TEST()
73 EXPECT_EQ(3u, SpanFrom(kFoo).size()); in TEST()
75 EXPECT_EQ(3u, SpanFrom("foo").size()); in TEST()
81 EXPECT_EQ(foo.size(), foo_spa in TEST()
[all...]
/third_party/lz4/ossfuzz/
H A Dround_trip_frame_uncompressed_fuzzer.c43 static void compress_round_trip(const uint8_t *data, size_t size, in compress_round_trip() argument
47 // data size that will be used for compression later and use the seeds to actually calculate the offsets in compress_round_trip()
50 size = FUZZ_dataProducer_remainingBytes(producer); in compress_round_trip()
52 size_t const uncompressedOffset = FUZZ_getRange_from_uint32(uncompressedOffsetSeed, 0, size); in compress_round_trip()
53 size_t const uncompressedEndOffset = FUZZ_getRange_from_uint32(uncompressedEndOffsetSeed, uncompressedOffset, size); in compress_round_trip()
56 FUZZ_ASSERT(uncompressedEndOffset <= size); in compress_round_trip()
61 LZ4F_compressFrameBound(LZ4_compressBound(size), &prefs) + in compress_round_trip()
94 size - uncompressedEndOffset, NULL); in compress_round_trip()
114 FUZZ_ASSERT_MSG(!memcmp(data, rt, size), "Corruption!"); in compress_round_trip()
123 static void compress_independent_block_mode(const uint8_t *data, size_t size) { in compress_independent_block_mode() argument
131 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/mesa3d/src/util/
H A Dralloc.h98 * simply allocates storage for \p size bytes and returns the pointer,
101 void *ralloc_size(const void *ctx, size_t size) MALLOCLIKE;
106 * This is similar to \c calloc with a size of 1.
108 void *rzalloc_size(const void *ctx, size_t size) MALLOCLIKE;
113 * Similar to \c realloc. Unlike C89, passing 0 for \p size does not free the
120 * \param size The amount of memory to allocate, in bytes.
122 void *reralloc_size(const void *ctx, void *ptr, size_t size);
128 * Similar to \c realloc. Unlike C89, passing 0 for \p size does not free the
181 * Similar to \c realloc. Unlike C89, passing 0 for \p size does not free the
202 * Similar to \c realloc. Unlike C89, passing 0 for \p size doe
[all...]
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
H A Dmemorypool.c36 * Align to 2x word size (as GNU libc does).
61 size_t size; member
83 * @param max maximum size of the pool
124 pool->size = max; in MHD_pool_create()
143 munmap (pool->memory, pool->size); in MHD_pool_destroy()
154 * Allocate size bytes from the pool.
157 * @param size number of bytes to allocate
161 * @return NULL if the pool cannot support size more
166 size_t size, int from_end) in MHD_pool_allocate()
171 asize = ROUND_TO_ALIGN (size); in MHD_pool_allocate()
165 MHD_pool_allocate(struct MemoryPool *pool, size_t size, int from_end) MHD_pool_allocate() argument
262 MHD_pool_reset(struct MemoryPool *pool, void *keep, size_t size) MHD_pool_reset() argument
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
H A DStringMatcher.cpp31 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) { in FindFirstNonCommonLetter()
35 for (unsigned str = 0, e = Matches.size(); str != e; ++str) in FindFirstNonCommonLetter()
40 return Matches[0]->first.size(); in FindFirstNonCommonLetter()
56 if (CharNo == Matches[0]->first.size()) { in EmitStringMatcherForChar()
57 if (Matches.size() > 1 && !IgnoreDuplicates) in EmitStringMatcherForChar()
78 for (unsigned i = 0, e = Matches.size(); i != e; ++i) in EmitStringMatcherForChar()
84 if (MatchesByLetter.size() == 1) { in EmitStringMatcherForChar()
117 << LI->second.size() << " string"; in EmitStringMatcherForChar()
118 if (LI->second.size() != 1) OS << 's'; in EmitStringMatcherForChar()
138 for (unsigned i = 0, e = Matches.size(); in Emit()
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/codec/src/
H A Dimage_source.cpp410 ReportCreateImageSourceFault(opts.size.width, opts.size.height, traceName, "stream failed"); in DoImageSourceCreate()
417 ReportCreateImageSourceFault(opts.size.width, opts.size.height, traceName, "failed to create ImageSource"); in DoImageSourceCreate()
441 unique_ptr<ImageSource> ImageSource::CreateImageSource(const uint8_t *data, uint32_t size, const SourceOptions &opts, in CreateImageSource() argument
444 if (size > MAX_SOURCE_SIZE) { in CreateImageSource()
445 IMAGE_LOGE("%{public}s input size %{public}u is too large.", __func__, size); in CreateImageSource()
451 if (data == nullptr || size == 0) { in CreateImageSource()
457 [&data, &size]() { in CreateImageSource()
[all...]
/third_party/backends/backend/
H A Dgt68xx_mid.c224 size_t size; in line_read_gray_8() local
227 size = reader->params.scan_bpl; in line_read_gray_8()
229 RIE (gt68xx_device_read (reader->dev, reader->pixel_buffer, &size)); in line_read_gray_8()
243 size_t size; in line_read_gray_double_8() local
247 size = reader->params.scan_bpl; in line_read_gray_double_8()
249 RIE (gt68xx_device_read (reader->dev, reader->pixel_buffer, &size)); in line_read_gray_double_8()
269 size_t size; in line_read_gray_12() local
272 size = reader->params.scan_bpl; in line_read_gray_12()
273 RIE (gt68xx_device_read (reader->dev, reader->pixel_buffer, &size)); in line_read_gray_12()
287 size_t size; in line_read_gray_double_12() local
313 size_t size; line_read_gray_16() local
331 size_t size; line_read_gray_double_16() local
358 size_t size; line_read_rgb_8_line_mode() local
392 size_t size; line_read_rgb_double_8_line_mode() local
438 size_t size; line_read_bgr_8_line_mode() local
471 size_t size; line_read_rgb_12_line_mode() local
507 size_t size; line_read_rgb_double_12_line_mode() local
556 size_t size; line_read_rgb_16_line_mode() local
592 size_t size; line_read_rgb_double_16_line_mode() local
641 size_t size; line_read_bgr_12_line_mode() local
677 size_t size; line_read_bgr_16_line_mode() local
713 size_t size; line_read_rgb_8_pixel_mode() local
747 size_t size; line_read_rgb_12_pixel_mode() local
775 size_t size; line_read_rgb_16_pixel_mode() local
811 size_t size; line_read_bgr_8_pixel_mode() local
845 size_t size; line_read_bgr_12_pixel_mode() local
873 size_t size; line_read_bgr_16_pixel_mode() local
[all...]
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
H A Dradv_amdgpu_bo.c49 uint64_t size, uint64_t addr, uint32_t bo_flags, uint64_t internal_flags, in radv_amdgpu_bo_va_op()
63 size = align64(size, getpagesize()); in radv_amdgpu_bo_va_op()
65 return amdgpu_bo_va_op_raw(ws->dev, bo, offset, size, addr, flags, ops); in radv_amdgpu_bo_va_op()
112 uint64_t offset, uint64_t size, struct radeon_winsys_bo *_bo, in radv_amdgpu_winsys_bo_virtual_bind()
131 r = radv_amdgpu_bo_va_op(ws, bo->bo, bo_offset, size, parent->base.va + offset, 0, 0, in radv_amdgpu_winsys_bo_virtual_bind()
134 r = radv_amdgpu_bo_va_op(ws, NULL, 0, size, parent->base.va + offset, 0, AMDGPU_VM_PAGE_PRT, in radv_amdgpu_winsys_bo_virtual_bind()
176 parent->ranges[first].offset + parent->ranges[first].size < offset) in radv_amdgpu_winsys_bo_virtual_bind()
180 while (last + 1 < parent->range_count && parent->ranges[last + 1].offset <= offset + size) in radv_amdgpu_winsys_bo_virtual_bind()
188 bool remove_last = parent->ranges[last].offset + parent->ranges[last].size in radv_amdgpu_winsys_bo_virtual_bind()
48 radv_amdgpu_bo_va_op(struct radv_amdgpu_winsys *ws, amdgpu_bo_handle bo, uint64_t offset, uint64_t size, uint64_t addr, uint32_t bo_flags, uint64_t internal_flags, uint32_t ops) radv_amdgpu_bo_va_op() argument
111 radv_amdgpu_winsys_bo_virtual_bind(struct radeon_winsys *_ws, struct radeon_winsys_bo *_parent, uint64_t offset, uint64_t size, struct radeon_winsys_bo *_bo, uint64_t bo_offset) radv_amdgpu_winsys_bo_virtual_bind() argument
262 uint64_t size; global() member
371 radv_amdgpu_winsys_bo_create(struct radeon_winsys *_ws, uint64_t size, unsigned alignment, enum radeon_bo_domain initial_domain, enum radeon_bo_flag flags, unsigned priority, uint64_t replay_address, struct radeon_winsys_bo **out_bo) radv_amdgpu_winsys_bo_create() argument
583 radv_amdgpu_get_optimal_vm_alignment(struct radv_amdgpu_winsys *ws, uint64_t size, unsigned alignment) radv_amdgpu_get_optimal_vm_alignment() argument
605 radv_amdgpu_winsys_bo_from_ptr(struct radeon_winsys *_ws, void *pointer, uint64_t size, unsigned priority, struct radeon_winsys_bo **out_bo) radv_amdgpu_winsys_bo_from_ptr() argument
[all...]
/foundation/ability/dmsfwk/test/fuzztest/distributedwantparams_fuzzer/
H A Ddistributedwantparams_fuzzer.cpp57 bool DoSomethingInterestingWithMyAPI_DistributedWantParams_001(const char* data, size_t size) in DoSomethingInterestingWithMyAPI_DistributedWantParams_001() argument
60 std::string key(data, size); in DoSomethingInterestingWithMyAPI_DistributedWantParams_001()
80 bool DoSomethingInterestingWithMyAPI_DistributedWantParams_002(const char* data, size_t size) in DoSomethingInterestingWithMyAPI_DistributedWantParams_002() argument
112 std::string key(data, size); in DoSomethingInterestingWithMyAPI_DistributedWantParams_002()
120 bool DoSomethingInterestingWithMyAPI_DistributedWantParams_003(const char* data, size_t size) in DoSomethingInterestingWithMyAPI_DistributedWantParams_003() argument
125 std::string key(data, size); in DoSomethingInterestingWithMyAPI_DistributedWantParams_003()
172 bool DoSomethingInterestingWithMyAPI_DistributedWantParams_004(const char* data, size_t size) in DoSomethingInterestingWithMyAPI_DistributedWantParams_004() argument
177 std::string value(data, size); in DoSomethingInterestingWithMyAPI_DistributedWantParams_004()
194 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
202 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
[all...]
/foundation/multimedia/image_framework/plugins/common/libs/image/librawplugin/src/
H A Draw_decoder.cpp119 "colorSpace=%{public}d, size=(%{public}u, %{public}u), state=%{public}d", in SetDecodeOptions()
157 uint32_t RawDecoder::GetImageSize(uint32_t index, Size &size) in GetImageSize() argument
168 IMAGE_LOGE("[GetImageSize] get image size failed for state %{public}d.", state_); in GetImageSize()
173 size = info_.size; in GetImageSize()
174 IMAGE_LOGD("GetImageSize OUT size=(%{public}u, %{public}u)", size.width, size.height); in GetImageSize()
181 IMAGE_LOGD("[GetImageSize]decode header error on get image size, ret:%{public}u.", ret); in GetImageSize()
186 ret = DoGetImageSize(index, size); in GetImageSize()
278 uint32_t size = piexImage.length; DoDecodeHeaderByPiex() local
327 DoGetImageSize(uint32_t index, Size &size) DoGetImageSize() argument
[all...]
/foundation/multimedia/camera_framework/frameworks/native/camera/src/output/
H A Dcamera_output_capability.cpp47 Profile::Profile(CameraFormat format, Size size) : format_(format), size_(size), specId_(0) {} in Profile() argument
48 Profile::Profile(CameraFormat format, Size size, int32_t specId) : format_(format), size_(size), specId_(specId) {} in Profile() argument
49 Profile::Profile(CameraFormat format, Size size, Fps fps, std::vector<uint32_t> abilityId) in Profile() argument
50 : format_(format), size_(size), fps_(fps), abilityId_(abilityId), specId_(0) {} in Profile()
51 Profile::Profile(CameraFormat format, Size size, Fps fps, std::vector<uint32_t> abilityId, int32_t specId) in Profile() argument
52 : format_(format), size_(size), fps_(fps), abilityId_(abilityId), specId_(specId) {} in Profile()
94 VideoProfile::VideoProfile(CameraFormat format, Size size, std::vector<int32_t> framerates) : Profile(format, size) in VideoProfile() argument
99 VideoProfile( CameraFormat format, Size size, std::vector<int32_t> framerates, int32_t specId) VideoProfile() argument
127 DepthProfile(CameraFormat format, DepthDataAccuracy dataAccuracy, Size size) DepthProfile() argument
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/
H A Drdb_cloud_data_translate.cpp35 auto size = DistributedData::HostToNet((uint16_t)data.length()); in AssetToBlob() local
39 rawData.insert(rawData.end(), reinterpret_cast<uint8_t *>(&size), in AssetToBlob()
40 reinterpret_cast<uint8_t *>(&size) + sizeof(size)); in AssetToBlob()
48 auto num = DistributedData::HostToNet((uint16_t)assets.size()); in AssetsToBlob()
63 if (ParserRawData(blob.data(), blob.size(), asset) == 0) { in BlobToAsset()
72 if (ParserRawData(blob.data(), blob.size(), assets) == 0) { in BlobToAssets()
81 uint16_t size = 0; in ParserRawData() local
93 if (sizeof(size) > length - used) { in ParserRawData()
96 alignData.assign(data + used, data + used + sizeof(size)); in ParserRawData()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_bios.c50 static bool check_atom_bios(uint8_t *bios, size_t size) in check_atom_bios() argument
54 if (!bios || size < 0x49) { in check_atom_bios()
55 DRM_INFO("vbios mem is null or mem size is wrong\n"); in check_atom_bios()
71 if (size < tmp) { in check_atom_bios()
95 resource_size_t size = 256 * 1024; /* ??? */ in igp_read_bios_from_vram() local
103 bios = ioremap_wc(vram_base, size); in igp_read_bios_from_vram()
108 adev->bios = kmalloc(size, GFP_KERNEL); in igp_read_bios_from_vram()
113 adev->bios_size = size; in igp_read_bios_from_vram()
114 memcpy_fromio(adev->bios, bios, size); in igp_read_bios_from_vram()
117 if (!check_atom_bios(adev->bios, size)) { in igp_read_bios_from_vram()
128 size_t size; amdgpu_read_bios() local
278 int size = 256 * 1024; amdgpu_atrm_get_bios() local
[all...]

Completed in 16 milliseconds

1...<<101102103104105106107108109110>>...2065