/foundation/multimedia/camera_framework/test/fuzztest/streamrepeatstub_fuzzer/ |
H A D | stream_repeat_stub_fuzzer.cpp | 56 void TestHandleAddDeferredSurface(uint8_t *rawData, size_t size)
in TestHandleAddDeferredSurface() argument 69 data.WriteRawData(rawData, size);
in TestHandleAddDeferredSurface() 74 void TestHandleAttachMetaSurface(uint8_t *rawData, size_t size)
in TestHandleAttachMetaSurface() argument 87 data.WriteRawData(rawData, size);
in TestHandleAttachMetaSurface() 92 void TestHandleSetCallback(uint8_t *rawData, size_t size)
in TestHandleSetCallback() argument 112 data.WriteRawData(rawData, size);
in TestHandleSetCallback() 118 void Test(uint8_t *rawData, size_t size)
in Test() argument 120 if (rawData == nullptr || size < LIMITSIZE) {
in Test() 124 Test_OnRemoteRequest(rawData, size);
in Test() 125 TestHandleSetCallback(rawData, size);
in Test() 144 Test_OnRemoteRequest(uint8_t *rawData, size_t size) Test_OnRemoteRequest() argument 161 LLVMFuzzerTestOneInput(uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/picture/ |
H A D | auxiliary_picture.cpp | 30 AuxiliaryPictureType type, Size size) in Create() 38 dstAuxPicture->SetSize(size); in Create() 43 AuxiliaryPictureType type, Size size) in Create() 46 return Create(pixelMap, type, size); in Create() 61 return auxiliaryPictureInfo_.size; in GetSize() 64 void AuxiliaryPicture::SetSize(Size size) in SetSize() argument 66 auxiliaryPictureInfo_.size = size; in SetSize() 146 if (!data.WriteInt32(auxiliaryPictureInfo_.size.height) || !data.WriteInt32(auxiliaryPictureInfo_.size in Marshalling() 29 Create(std::shared_ptr<PixelMap> &content, AuxiliaryPictureType type, Size size) Create() argument 42 Create(sptr<SurfaceBuffer> &surfaceBuffer, AuxiliaryPictureType type, Size size) Create() argument 202 uint64_t size = parcel.ReadUint64(); Unmarshalling() local [all...] |
/foundation/systemabilitymgr/samgr/test/fuzztest/samgrcoverage_fuzzer/ |
H A D | samgrcoverage_fuzzer.cpp | 42 int32_t BuildInt32FromData(const uint8_t* data, size_t size) in BuildInt32FromData() argument 44 if ((data == nullptr) || (size < sizeof(int32_t))) { in BuildInt32FromData() 51 std::string BuildStringFromData(const uint8_t* data, size_t size) in BuildStringFromData() argument 53 if ((data == nullptr) || (size == 0)) { in BuildStringFromData() 56 std::string strVal(reinterpret_cast<const char *>(data), size); in BuildStringFromData() local 60 void FuzzOndemandLoad(const uint8_t* data, size_t size) in FuzzOndemandLoad() argument 66 std::string procName = BuildStringFromData(data, size); in FuzzOndemandLoad() 68 int32_t saId = BuildInt32FromData(data, size); in FuzzOndemandLoad() 102 void FuzzRemoveSystemProcess(const uint8_t* data, size_t size) in FuzzRemoveSystemProcess() argument 108 std::string procName = BuildStringFromData(data, size); in FuzzRemoveSystemProcess() 130 FuzzNotifySystemAbilityLoaded(const uint8_t* data, size_t size) FuzzNotifySystemAbilityLoaded() argument 172 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/auth/ |
H A D | auth_session_test.c | 179 int32_t size = SEND_DATA_SIZE_64K + 1; in GetSize() local 181 size = SEND_DATA_SIZE_1K; in GetSize() 183 size = SEND_DATA_SIZE_4K; in GetSize() 185 size = SEND_DATA_SIZE_40K; in GetSize() 187 size = SEND_DATA_SIZE_40K + 1; in GetSize() 189 size = SEND_DATA_SIZE_64K; in GetSize() 191 return size; in GetSize() 205 int32_t size = GetSize(cSize); in TestAuthSessionSendData() local 210 ret = TestSendBytesData(testData, size); in TestAuthSessionSendData() 211 if (size < in TestAuthSessionSendData() [all...] |
/kernel/linux/linux-5.10/arch/csky/include/asm/ |
H A D | uaccess.h | 18 static inline int access_ok(const void *addr, unsigned long size) in access_ok() argument 23 ((unsigned long)(addr + size) < limit)); in access_ok() 38 * use the right size if we just have the right pointer type. 69 #define __put_user_nocheck(x, ptr, size) \ 75 __put_user_size(__pu_val, (__pu_addr), (size), \ 80 #define __put_user_check(x, ptr, size) \ 85 if (access_ok(__pu_addr, size) && __pu_addr) \ 86 __put_user_size(__pu_val, __pu_addr, (size), __pu_err); \ 90 #define __put_user_size(x, ptr, size, retval) \ 93 switch (size) { \ [all...] |
/kernel/linux/linux-6.6/arch/riscv/include/asm/ |
H A D | cmpxchg.h | 14 #define __xchg_relaxed(ptr, new, size) \ 19 switch (size) { \ 47 #define __xchg_acquire(ptr, new, size) \ 52 switch (size) { \ 82 #define __xchg_release(ptr, new, size) \ 87 switch (size) { \ 117 #define __arch_xchg(ptr, new, size) \ 122 switch (size) { \ 166 #define __cmpxchg_relaxed(ptr, old, new, size) \ 173 switch (size) { \ [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_managed.c | 42 size_t size; member 70 dr, dr->node.name, dr->node.size); in drm_managed_release() 73 dr->node.release(dev, dr->node.size ? *(void **)&dr->data : NULL); in drm_managed_release() 86 size_t size, gfp_t gfp, int nid) in alloc_dr() 92 if (unlikely(check_add_overflow(sizeof(*dr), size, &tot_size))) in alloc_dr() 103 dr->node.size = size; in alloc_dr() 113 dr, dr->node.name, (unsigned long) dr->node.size); in del_dr() 125 dr, dr->node.name, (unsigned long) dr->node.size); in add_dr() 181 * @size 85 alloc_dr(drmres_release_t release, size_t size, gfp_t gfp, int nid) alloc_dr() argument 188 drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) drmm_kmalloc() argument 218 size_t size; drmm_kstrdup() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | common-debug.c | 23 u32 len = 0, size = 6000; in read_file_modal_eeprom() local 27 buf = kzalloc(size, GFP_KERNEL); in read_file_modal_eeprom() 31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size); in read_file_modal_eeprom() 59 u32 len = 0, size = 1500; in read_file_base_eeprom() local 63 buf = kzalloc(size, GFP_KERNEL); in read_file_base_eeprom() 67 len = ah->eep_ops->dump_eeprom(ah, true, buf, len, size); in read_file_base_eeprom() 128 len += scnprintf(buf + len, size - len, \ in read_file_recv() 135 unsigned int len = 0, size = 1600; in read_file_recv() local 138 buf = kzalloc(size, GFP_KERNEL); in read_file_recv() 162 if (len > size) in read_file_recv() 196 unsigned int len = 0, size = 1600; read_file_phy_err() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | seq_buf.c | 30 return s->len + len <= s->size; in seq_buf_can_fit() 61 WARN_ON(s->size == 0); in seq_buf_vprintf() 63 if (s->len < s->size) { in seq_buf_vprintf() 64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf() 65 if (s->len + len < s->size) { in seq_buf_vprintf() 119 WARN_ON(s->size == 0); in seq_buf_bprintf() 121 if (s->len < s->size) { in seq_buf_bprintf() 123 if (s->len + ret < s->size) { in seq_buf_bprintf() 146 WARN_ON(s->size == 0); in seq_buf_puts() 172 WARN_ON(s->size in seq_buf_putc() 273 size_t size = seq_buf_get_buf(s, &buf); global() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 34 u32 size; member 42 const u32 start = bios->size; in shadow_fetch() 46 bios->size = start + read; in shadow_fetch() 48 return bios->size >= upto; in shadow_fetch() 61 image.size = mthd->func->size(mthd->data); in shadow_image() 76 image.base, image.type, image.size); in shadow_image() 78 if (!shadow_fetch(bios, mthd, image.base + image.size)) { in shadow_image() 86 nvbios_checksum(&bios->data[image.base], image.size)) { in shadow_image() 105 score += shadow_image(bios, idx + 1, offset + image.size, mth in shadow_image() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dpcd.c | 37 #define END_ADDRESS(start, size) (start + size - 1) 48 uint32_t size) in internal_link_read_dpcd() 52 link, address, data, size)) { in internal_link_read_dpcd() 63 uint32_t size) in internal_link_write_dpcd() 67 link, address, data, size)) { in internal_link_write_dpcd() 111 static uint32_t dpcd_get_next_partition_size(const uint32_t address, const uint32_t size) in dpcd_get_next_partition_size() argument 113 const uint32_t end_address = END_ADDRESS(address, size); in dpcd_get_next_partition_size() 124 return size; in dpcd_get_next_partition_size() 200 uint32_t size) in core_link_read_dpcd() 44 internal_link_read_dpcd( struct dc_link *link, uint32_t address, uint8_t *data, uint32_t size) internal_link_read_dpcd() argument 59 internal_link_write_dpcd( struct dc_link *link, uint32_t address, const uint8_t *data, uint32_t size) internal_link_write_dpcd() argument 196 core_link_read_dpcd( struct dc_link *link, uint32_t address, uint8_t *data, uint32_t size) core_link_read_dpcd() argument 229 core_link_write_dpcd( struct dc_link *link, uint32_t address, const uint8_t *data, uint32_t size) core_link_write_dpcd() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath9k/ |
H A D | common-debug.c | 23 u32 len = 0, size = 6000; in read_file_modal_eeprom() local 27 buf = kzalloc(size, GFP_KERNEL); in read_file_modal_eeprom() 31 len = ah->eep_ops->dump_eeprom(ah, false, buf, len, size); in read_file_modal_eeprom() 59 u32 len = 0, size = 1500; in read_file_base_eeprom() local 63 buf = kzalloc(size, GFP_KERNEL); in read_file_base_eeprom() 67 len = ah->eep_ops->dump_eeprom(ah, true, buf, len, size); in read_file_base_eeprom() 128 len += scnprintf(buf + len, size - len, \ in read_file_recv() 135 unsigned int len = 0, size = 1600; in read_file_recv() local 138 buf = kzalloc(size, GFP_KERNEL); in read_file_recv() 162 if (len > size) in read_file_recv() 196 unsigned int len = 0, size = 1600; read_file_phy_err() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_managed.c | 43 size_t size; member 71 dr, dr->node.name, dr->node.size); in drm_managed_release() 74 dr->node.release(dev, dr->node.size ? *(void **)&dr->data : NULL); in drm_managed_release() 87 size_t size, gfp_t gfp, int nid) in alloc_dr() 93 if (unlikely(check_add_overflow(sizeof(*dr), size, &tot_size))) in alloc_dr() 104 dr->node.size = size; in alloc_dr() 114 dr, dr->node.name, (unsigned long) dr->node.size); in del_dr() 126 dr, dr->node.name, (unsigned long) dr->node.size); in add_dr() 182 * @size 86 alloc_dr(drmres_release_t release, size_t size, gfp_t gfp, int nid) alloc_dr() argument 189 drmm_kmalloc(struct drm_device *dev, size_t size, gfp_t gfp) drmm_kmalloc() argument 219 size_t size; drmm_kstrdup() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadow.c | 34 u32 size; member 42 const u32 start = bios->size; in shadow_fetch() 46 bios->size = start + read; in shadow_fetch() 48 return bios->size >= upto; in shadow_fetch() 61 image.size = mthd->func->size(mthd->data); in shadow_image() 76 image.base, image.type, image.size); in shadow_image() 78 if (!shadow_fetch(bios, mthd, image.base + image.size)) { in shadow_image() 86 nvbios_checksum(&bios->data[image.base], image.size)) { in shadow_image() 105 score += shadow_image(bios, idx + 1, offset + image.size, mth in shadow_image() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | mxg.c | 134 unsigned int size; in mxg_read_packet() local 171 size = mxg->buffer_ptr - mxg->soi_ptr; in mxg_read_packet() 172 ret = av_new_packet(pkt, size); in mxg_read_packet() 175 memcpy(pkt->data, mxg->soi_ptr, size); in mxg_read_packet() 189 return pkt->size; in mxg_read_packet() 194 size = AV_RB16(mxg->buffer_ptr); in mxg_read_packet() 195 if (size < 2) in mxg_read_packet() 198 if (mxg->cache_size < size) { in mxg_read_packet() 199 ret = mxg_update_cache(s, size); in mxg_read_packet() 205 mxg->cache_size -= size; in mxg_read_packet() [all...] |
/third_party/curl/tests/unit/ |
H A D | unit1650.c | 59 size_t size; member 75 size_t size; member 158 size_t size = 0; variable 165 buffer, sizeof(buffer), &size); 171 if(size != req[i].size) { 172 fprintf(stderr, "req %zu: Expected size %zu got %zu\n", i, 173 req[i].size, size); 174 fprintf(stderr, "DNS encode made: %s\n", hexdump(buffer, size)); [all...] |
/third_party/backends/lib/ |
H A D | alloca.c | 137 alignment chunk size. The following default should work okay. */ 163 alloca (size) in alloca() 164 unsigned size; in alloca() 204 if (size == 0) 210 register pointer new = malloc (sizeof (header) + size); 239 long shsize:32; /* Current size of stack (all segments). */ 289 long now; /* Current total stack size. */ 303 long pad_size; /* Stack pad size. */ 305 long current_size; /* Current stack segment size. This 349 long *block, size; in i00afunc() local 423 long size, pseg, this_segment, stack; i00afunc() local [all...] |
/third_party/benchmark/src/ |
H A D | statistics.cc | 35 return StatisticsSum(v) * (1.0 / v.size()); in StatisticsMean() 39 if (v.size() < 3) return StatisticsMean(v); in StatisticsMedian() 42 auto center = copy.begin() + v.size() / 2; in StatisticsMedian() 50 if (v.size() % 2 == 1) return *center; in StatisticsMedian() 72 if (v.size() == 1) return 0.0; in StatisticsStdDev() 74 const double avg_squares = SumSquares(v) * (1.0 / v.size()); in StatisticsStdDev() 75 return Sqrt(v.size() / (v.size() - 1.0) * (avg_squares - Sqr(mean))); in StatisticsStdDev() 79 if (v.size() < 2) return 0.0; in StatisticsCV() 95 if (reports.size() in ComputeStats() [all...] |
/third_party/ltp/testcases/kernel/fs/doio/ |
H A D | datapid.c | 306 int size = 1234; local 311 if ((buffer = (char *)malloc(size)) == NULL) { 316 datapidgen(-1, buffer, size, 3); 319 fwrite(buffer, size, 1, stdout); 323 printf("datapidgen(-1, buffer, size, 3)\n"); 325 ret = datapidchk(-1, buffer, size, 3, &errmsg); 327 size, ret, errmsg); 328 ret = datapidchk(-1, &buffer[1], size - 1, 4, &errmsg); 330 size - 1, ret, errmsg); 338 ret = datapidchk(-1, &buffer[1], size 344 datapidgen(getpid(), buffer, size, 5); global() local [all...] |
/third_party/node/lib/internal/webstreams/ |
H A D | util.js | 82 function extractSizeAlgorithm(size) { 83 if (size === undefined) return () => 1; 84 validateFunction(size, 'strategy.size'); 85 return size; 155 size, 158 MathMax(0, controller[kState].queueTotalSize - size); 176 function enqueueValueWithSize(controller, value, size) { 179 size = +size; [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_upload_mgr.c | 44 unsigned default_size; /* Minimum size of the upload buffer, in bytes. */ 176 /* Return the allocated buffer size or 0 if it failed. */ 182 unsigned size; in u_upload_alloc_buffer() local 190 size = align(MAX2(upload->default_size, min_size), 4096); in u_upload_alloc_buffer() 198 buffer.width0 = size; in u_upload_alloc_buffer() 219 * can be called per upload buffer is "size", because the minimum in u_upload_alloc_buffer() 220 * allocation size is 1, thus u_upload_alloc can only return "size" number in u_upload_alloc_buffer() 232 * so init the buffer_private_refcount to 1 + size - min_size, instead in u_upload_alloc_buffer() 233 * of size t in u_upload_alloc_buffer() 254 u_upload_alloc(struct u_upload_mgr *upload, unsigned min_out_offset, unsigned size, unsigned alignment, unsigned *out_offset, struct pipe_resource **outbuf, void **ptr) u_upload_alloc() argument 319 u_upload_data(struct u_upload_mgr *upload, unsigned min_out_offset, unsigned size, unsigned alignment, const void *data, unsigned *out_offset, struct pipe_resource **outbuf) u_upload_data() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_batch.h | 45 * effectively limits the maximum statebuffer size to 64kB. 49 /* Our target batch size - flush approximately at this point. */ 224 * Ensure the current command buffer has \param size bytes of space 231 crocus_require_command_space(struct crocus_batch *batch, unsigned size) in crocus_require_command_space() argument 233 const unsigned required_bytes = crocus_batch_bytes_used(batch) + size; in crocus_require_command_space() 237 } else if (used + size >= batch->command.bo->size) { in crocus_require_command_space() 239 MIN2(batch->command.bo->size + batch->command.bo->size / 2, in crocus_require_command_space() 244 assert(crocus_batch_bytes_used(batch) + size < batc in crocus_require_command_space() 267 crocus_batch_emit(struct crocus_batch *batch, const void *data, unsigned size) crocus_batch_emit() argument 303 crocus_record_state_size(struct hash_table_u64 *ht, uint32_t offset_from_base, uint32_t size) crocus_record_state_size() argument 320 crocus_require_statebuffer_space(struct crocus_batch *batch, int size) crocus_require_statebuffer_space() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/ |
H A D | memory.cpp | 100 static auto size = [] { in pageSize() local 105 return size; in pageSize() 132 // pagedMalloc() allocates size bytes of uninitialized storage with the 140 size_t size, in pagedMalloc() 145 "alignment (0x%x) must be less than the page size (0x%x)", in pagedMalloc() 147 auto numRequestedPages = (size + pageSize() - 1) / pageSize(); in pagedMalloc() 164 size_t size, 169 "alignment (0x%x) must be less than the page size (0x%x)", 171 auto numRequestedPages = (size + pageSize() - 1) / pageSize(); 180 // alignedMalloc() allocates size byte 139 pagedMalloc(size_t alignment, size_t size, bool guardLow, bool guardHigh) pagedMalloc() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
H A D | gas.c | 18 gas_build_req(u8 action, u8 dialog_token, size_t size) in gas_build_req() argument 22 buf = wpabuf_alloc(100 + size); in gas_build_req() 34 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size) in gas_build_initial_req() argument 37 size); in gas_build_initial_req() 49 u8 more, u16 comeback_delay, size_t size) in gas_build_resp() 53 buf = wpabuf_alloc(100 + size); in gas_build_resp() 71 size_t size) in gas_build_initial_resp() 74 status_code, 0, 0, comeback_delay, size); in gas_build_initial_resp() 80 u16 comeback_delay, size_t size) in gas_build_comeback_resp() 84 size); in gas_build_comeback_resp() 48 gas_build_resp(u8 action, u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_build_resp() argument 70 gas_build_initial_resp(u8 dialog_token, u16 status_code, u16 comeback_delay, size_t size) gas_build_initial_resp() argument 79 gas_build_comeback_resp(u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_build_comeback_resp() argument 112 gas_anqp_build_initial_req(u8 dialog_token, size_t size) gas_anqp_build_initial_req() argument 128 gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code, u16 comeback_delay, size_t size) gas_anqp_build_initial_resp() argument 168 gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_anqp_build_comeback_resp() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/common/ |
H A D | gas.c | 18 gas_build_req(u8 action, u8 dialog_token, size_t size) in gas_build_req() argument 22 buf = wpabuf_alloc(100 + size); in gas_build_req() 34 struct wpabuf * gas_build_initial_req(u8 dialog_token, size_t size) in gas_build_initial_req() argument 37 size); in gas_build_initial_req() 49 u8 more, u16 comeback_delay, size_t size) in gas_build_resp() 53 buf = wpabuf_alloc(100 + size); in gas_build_resp() 71 size_t size) in gas_build_initial_resp() 74 status_code, 0, 0, comeback_delay, size); in gas_build_initial_resp() 80 u16 comeback_delay, size_t size) in gas_build_comeback_resp() 84 size); in gas_build_comeback_resp() 48 gas_build_resp(u8 action, u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_build_resp() argument 70 gas_build_initial_resp(u8 dialog_token, u16 status_code, u16 comeback_delay, size_t size) gas_build_initial_resp() argument 79 gas_build_comeback_resp(u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_build_comeback_resp() argument 112 gas_anqp_build_initial_req(u8 dialog_token, size_t size) gas_anqp_build_initial_req() argument 128 gas_anqp_build_initial_resp(u8 dialog_token, u16 status_code, u16 comeback_delay, size_t size) gas_anqp_build_initial_resp() argument 168 gas_anqp_build_comeback_resp(u8 dialog_token, u16 status_code, u8 frag_id, u8 more, u16 comeback_delay, size_t size) gas_anqp_build_comeback_resp() argument [all...] |