/third_party/skia/src/gpu/ |
H A D | GrDirectContext.cpp | 276 void GrDirectContext::getResourceCacheUsage(int* resourceCount, size_t* resourceBytes) const { in getResourceCacheUsage() 287 size_t GrDirectContext::getResourceCachePurgeableBytes() const { in getResourceCachePurgeableBytes() 292 void GrDirectContext::getResourceCacheLimits(int* maxResources, size_t* maxResourceBytes) const { in getResourceCacheLimits() 302 size_t GrDirectContext::getResourceCacheLimit() const { in getResourceCacheLimit() 307 void GrDirectContext::setResourceCacheLimits(int unused, size_t maxResourceBytes) { in setResourceCacheLimits() 312 void GrDirectContext::setResourceCacheLimit(size_t maxResourceBytes) { in setResourceCacheLimit() 412 void GrDirectContext::purgeUnlockedResources(size_t bytesToPurge, bool preferScratchResources) { in purgeUnlockedResources() 566 void GrDirectContext::getUpdatedMemoryMap(std::unordered_map<int32_t, size_t> &out) in getUpdatedMemoryMap() 956 size_t size) { in create_and_update_compressed_backend_texture() 993 size_t siz in createCompressedBackendTexture() [all...] |
/third_party/python/Modules/ |
H A D | zlibmodule.c | 99 Py_ssize_t window_size = Py_MIN((size_t)allocated, UINT32_MAX); in OutputBuffer_WindowInitWithSize() 128 Py_ssize_t window_size = Py_MIN((size_t)window->left_bytes, UINT32_MAX); in OutputBuffer_WindowGrow() 285 if (size != 0 && items > (size_t)PY_SSIZE_T_MAX / size) in PyZlib_Malloc() 289 return PyMem_RawMalloc((size_t)items * (size_t)size); in PyZlib_Malloc() 301 zst->avail_in = (uInt)Py_MIN((size_t)*remains, UINT_MAX); in arrange_input_buffer() 561 if (zdict->buf != NULL && (size_t)zdict->len > UINT_MAX) { in zlib_compressobj_impl() 620 if ((size_t)zdict_buf.len > UINT_MAX) { in set_inflate_zdict() 1409 while ((size_t)len > UINT_MAX) { in zlib_adler32_impl() 1411 buf += (size_t) UINT_MA in zlib_adler32_impl() [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | pstream.c | 118 size_t index; 141 size_t index; 482 size_t length, idx; in pa_pstream_send_memblock() 483 size_t bsm; in pa_pstream_send_memblock() 500 size_t n; in pa_pstream_send_memblock() 619 size_t plen; in prepare_next_write_item() 657 size_t offset, length; in prepare_next_write_item() 659 size_t shm_size = sizeof(uint32_t) * PA_PSTREAM_SHM_MAX; in prepare_next_write_item() 749 size_t l; in do_write() 810 p->write.index += (size_t) in do_write() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_validate.c | 304 static int wps_validate_manufacturer(const u8 *manufacturer, size_t len, in wps_validate_manufacturer() 324 static int wps_validate_model_name(const u8 *model_name, size_t len, in wps_validate_model_name() 344 static int wps_validate_model_number(const u8 *model_number, size_t len, in wps_validate_model_number() 364 static int wps_validate_serial_number(const u8 *serial_number, size_t len, in wps_validate_serial_number() 385 static int wps_validate_dev_name(const u8 *dev_name, size_t len, in wps_validate_dev_name() 425 static int wps_validate_req_dev_type(const u8 *req_dev_type[], size_t num, in wps_validate_req_dev_type() 525 static int wps_validate_authorized_macs(const u8 *authorized_macs, size_t len, in wps_validate_authorized_macs() 612 static int wps_validate_public_key(const u8 *public_key, size_t len, in wps_validate_public_key() 836 static int wps_validate_encr_settings(const u8 *encr_settings, size_t len, in wps_validate_encr_settings() 940 static int wps_validate_ssid(const u8 *ssid, size_t ssid_le [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_validate.c | 304 static int wps_validate_manufacturer(const u8 *manufacturer, size_t len, in wps_validate_manufacturer() 324 static int wps_validate_model_name(const u8 *model_name, size_t len, in wps_validate_model_name() 344 static int wps_validate_model_number(const u8 *model_number, size_t len, in wps_validate_model_number() 364 static int wps_validate_serial_number(const u8 *serial_number, size_t len, in wps_validate_serial_number() 385 static int wps_validate_dev_name(const u8 *dev_name, size_t len, in wps_validate_dev_name() 425 static int wps_validate_req_dev_type(const u8 *req_dev_type[], size_t num, in wps_validate_req_dev_type() 525 static int wps_validate_authorized_macs(const u8 *authorized_macs, size_t len, in wps_validate_authorized_macs() 612 static int wps_validate_public_key(const u8 *public_key, size_t len, in wps_validate_public_key() 836 static int wps_validate_encr_settings(const u8 *encr_settings, size_t len, in wps_validate_encr_settings() 940 static int wps_validate_ssid(const u8 *ssid, size_t ssid_le [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/ |
H A D | wpa_auth_ie.c | 27 static int wpa_write_wpa_ie(struct wpa_auth_config *conf, u8 *buf, size_t len) in wpa_write_wpa_ie() 91 int wpa_write_rsn_ie(struct wpa_auth_config *conf, u8 *buf, size_t len, in wpa_write_rsn_ie() 496 u8 * wpa_add_kde(u8 *pos, u32 kde, const u8 *data, size_t data_len, in wpa_add_kde() 497 const u8 *data2, size_t data2_len) in wpa_add_kde() 534 const u8 *wpa_ie, size_t wpa_ie_len, in wpa_validate_wpa_ie() 535 const u8 *mdie, size_t mdie_len, in wpa_validate_wpa_ie() 536 const u8 *owe_dh, size_t owe_dh_len) in wpa_validate_wpa_ie() 541 size_t i; in wpa_validate_wpa_ie() 951 const u8 *osen_ie, size_t osen_ie_len) in wpa_validate_osen() 1075 int wpa_parse_kde_ies(const u8 *buf, size_t le [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | config.c | 67 size_t res_len, *dst_len, prev_len; in wpa_config_parse_str() 94 if (data->param3 && res_len < (size_t) data->param3) { in wpa_config_parse_str() 102 if (data->param4 && res_len > (size_t) data->param4) { in wpa_config_parse_str() 112 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str() 138 static char * wpa_config_write_string_ascii(const u8 *value, size_t len) in wpa_config_write_string_ascii() 154 static char * wpa_config_write_string_hex(const u8 *value, size_t len) in wpa_config_write_string_hex() 167 static char * wpa_config_write_string(const u8 *value, size_t len) in wpa_config_write_string() 182 size_t len; in wpa_config_write_str() 190 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str() 264 u8 **list, size_t *nu in wpa_config_parse_addr_list() [all...] |
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
H A D | napi_verify.cpp | 215 size_t expectedArgc = PARAMS_NUM_TWO; in BuildVerifyJsInitCtx() 216 size_t argc = expectedArgc; in BuildVerifyJsInitCtx() 232 size_t index = 0; in BuildVerifyJsInitCtx() 265 size_t expectedArgc = PARAMS_NUM_TWO; in BuildVerifyJsUpdateCtx() 266 size_t argc = expectedArgc; in BuildVerifyJsUpdateCtx() 282 size_t index = 0; in BuildVerifyJsUpdateCtx() 363 size_t expectedArgc = PARAMS_NUM_THREE; in BuildVerifyJsDoFinalCtx() 364 size_t argc = expectedArgc; in BuildVerifyJsDoFinalCtx() 733 size_t argc = PARAMS_NUM_ONE; in JsInitSync() 793 size_t arg in JsUpdateSync() [all...] |
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_appmgr_test.cpp | 119 const size_t processNameCount = 3; in HWTEST_F() 120 const size_t pidCount = 4; in HWTEST_F() 121 const size_t resultCount = processNameCount * pidCount; in HWTEST_F() 125 for (size_t i = 0; i < processNameCount; i++) { in HWTEST_F() 126 for (size_t j = 0; j < pidCount; j++) { in HWTEST_F() 140 for (size_t j = 0; j < pidCount; j++) { in HWTEST_F() 147 for (size_t i = 0; i < processNameCount; i++) { in HWTEST_F() 162 const size_t processNameCount = 3; in HWTEST_F() 163 const size_t pidCount = 4; in HWTEST_F() 164 const size_t resultCoun in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/capability/html/ |
H A D | html_to_span.cpp | 546 size_t size = words.size(); in SetPaddingOption() 592 size_t size = words.size(); in SetMarginOption() 637 size_t size = words.size(); in SetBorderOption() 776 void HtmlToSpan::ToDefalutSpan(xmlNodePtr node, size_t len, size_t& pos, std::vector<SpanInfo>& spanInfos) in ToDefalutSpan() 806 void HtmlToSpan::ToParagraphSpan(xmlNodePtr node, size_t len, size_t& pos, std::vector<SpanInfo>& spanInfos) in ToParagraphSpan() 883 const std::string& element, xmlNodePtr node, size_t len, size_t& pos, std::vector<SpanInfo>& spanInfos) in ToTextSpan() 913 void HtmlToSpan::ToImage(xmlNodePtr node, size_t le [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/ |
H A D | IntfContainerTest.cpp | 106 static constexpr size_t NumDirectChildContainers = 1; 107 static constexpr size_t NumDirectChildTestTypes = 4; 108 static constexpr size_t NumDirectChildren = NumDirectChildContainers + NumDirectChildTestTypes; 109 static constexpr size_t NumChildContainers = 2; 110 static constexpr size_t NumChildTestTypes = 7; 530 size_t from = NumDirectChildren - 1; in HWTEST_P() 531 size_t to = 0; in HWTEST_P() 550 size_t from = 0; in HWTEST_P() 551 size_t to = NumDirectChildren - 1; in HWTEST_P() 569 size_t fro in HWTEST_P() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_util.cpp | 32 constexpr size_t STR_TAIL_LENGTH = 1; 111 size_t maxLen = STR_MAX_LENGTH; in GetValue() 119 size_t len = 0; in GetValue() 388 size_t length = 0; in GetValue() 390 size_t offset = 0; in GetValue() 420 void TypedArray2Vector(uint8_t* data, size_t length, napi_typedarray_type type, std::vector<T>& out) in TypedArray2Vector() 422 auto convert = [&out](auto* data, size_t elements) { in TypedArray2Vector() 423 for (size_t index = 0; index < elements; index++) { in TypedArray2Vector() 473 size_t length = 0; in GetValue() 475 size_t offse in GetValue() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_util.cpp | 29 constexpr size_t STR_TAIL_LENGTH = 1; 129 size_t maxLen = STR_MAX_LENGTH; in GetValue() 137 size_t len = 0; in GetValue() 406 size_t length = 0; in GetValue() 408 size_t offset = 0; in GetValue() 438 void TypedArray2Vector(uint8_t* data, size_t length, napi_typedarray_type type, std::vector<T>& out) in TypedArray2Vector() 440 auto convert = [&out](auto* data, size_t elements) { in TypedArray2Vector() 441 for (size_t index = 0; index < elements; index++) { in TypedArray2Vector() 491 size_t length = 0; in GetValue() 493 size_t offse in GetValue() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_cloud_interfaces_relational_ext_test.cpp | 82 void CheckTriggerTableData(size_t dataSize, const std::string &tableName, ChangeProperties &properties, in CheckTriggerTableData() 981 for (size_t i = 0; i < num; ++i) { in InitLogicDeleteData() 1077 size_t num = 1000; in HWTEST_F() 1084 for (size_t j = 0; j < num; j++) { in HWTEST_F() 1086 for (size_t i = 0; i < num; i++) { in HWTEST_F() 1097 for (size_t i = 0; i < num; i++) { in HWTEST_F() 1110 for (size_t i = 0; i < num; i++) { in HWTEST_F() 1135 size_t num = 1000; in HWTEST_F() 1143 for (size_t j = 0; j < num; j++) { in HWTEST_F() 1145 for (size_t in HWTEST_F() [all...] |
/kernel/linux/linux-5.10/drivers/iommu/arm/arm-smmu/ |
H A D | arm-smmu.c | 280 static void arm_smmu_tlb_inv_range_s1(unsigned long iova, size_t size, in arm_smmu_tlb_inv_range_s1() 281 size_t granule, void *cookie, int reg) in arm_smmu_tlb_inv_range_s1() 308 static void arm_smmu_tlb_inv_range_s2(unsigned long iova, size_t size, in arm_smmu_tlb_inv_range_s2() 309 size_t granule, void *cookie, int reg) in arm_smmu_tlb_inv_range_s2() 328 static void arm_smmu_tlb_inv_walk_s1(unsigned long iova, size_t size, in arm_smmu_tlb_inv_walk_s1() 329 size_t granule, void *cookie) in arm_smmu_tlb_inv_walk_s1() 336 static void arm_smmu_tlb_inv_leaf_s1(unsigned long iova, size_t size, in arm_smmu_tlb_inv_leaf_s1() 337 size_t granule, void *cookie) in arm_smmu_tlb_inv_leaf_s1() 345 unsigned long iova, size_t granule, in arm_smmu_tlb_add_page_s1() 352 static void arm_smmu_tlb_inv_walk_s2(unsigned long iova, size_t siz [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath9k/ |
H A D | debug.c | 72 size_t count, loff_t *ppos) in ath9k_debugfs_read_buf() 87 size_t count, loff_t *ppos) in read_file_debug() 99 size_t count, loff_t *ppos) in write_file_debug() 133 size_t count, loff_t *ppos) in read_file_ani() 189 size_t count, loff_t *ppos) in write_file_ani() 232 size_t count, loff_t *ppos) in read_file_bt_ant_diversity() 245 size_t count, loff_t *ppos) in write_file_bt_ant_diversity() 301 size_t count, loff_t *ppos) in read_file_antenna_diversity() 825 size_t count, loff_t *ppos) in read_file_regidx() 836 size_t coun in write_file_regidx() [all...] |
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | apparmorfs.c | 84 static struct rawdata_f_data *rawdata_f_data_alloc(size_t size) in rawdata_f_data_alloc() 385 size_t alloc_size, in aa_simple_write_to_buffer() 386 size_t copy_size, in aa_simple_write_to_buffer() 411 static ssize_t policy_update(u32 mask, const char __user *buf, size_t size, in policy_update() 440 static ssize_t profile_load(struct file *f, const char __user *buf, size_t size, in profile_load() 458 size_t size, loff_t *pos) in profile_replace() 475 size_t size, loff_t *pos) in profile_remove() 532 size_t size, loff_t *ppos) in ns_revision_read() 609 const char *match_str, size_t match_len) in profile_query_cb() 658 static ssize_t query_data(char *buf, size_t buf_le [all...] |
/kernel/linux/linux-6.6/fs/ |
H A D | libfs.c | 221 ssize_t generic_read_dir(struct file *filp, char __user *buf, size_t siz, loff_t *ppos) in generic_read_dir() 838 size_t from = offset_in_folio(folio, pos); in simple_write_begin() 880 size_t from = offset_in_folio(folio, pos); in simple_write_end() 1029 ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, in simple_read_from_buffer() 1030 const void *from, size_t available) in simple_read_from_buffer() 1033 size_t ret; in simple_read_from_buffer() 1064 ssize_t simple_write_to_buffer(void *to, size_t available, loff_t *ppos, in simple_write_to_buffer() 1065 const void __user *from, size_t count) in simple_write_to_buffer() 1068 size_t res; in simple_write_to_buffer() 1099 ssize_t memory_read_from_buffer(void *to, size_t coun [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/ |
H A D | configfs.c | 155 const char *page, size_t len) \ 168 const char *page, size_t len) \ 206 const char *page, size_t len) in gadget_dev_desc_bcdDevice_store() 223 const char *page, size_t len) in gadget_dev_desc_bcdUSB_store() 269 const char *page, size_t len) in gadget_dev_desc_UDC_store() 320 const char *page, size_t len) in gadget_dev_desc_max_speed_store() 530 const char *page, size_t len) in gadget_config_desc_MaxPower_store() 553 const char *page, size_t len) in gadget_config_desc_bmAttributes_store() 820 size_t len) in gadget_string_s_store() 977 size_t le in webusb_use_store() [all...] |
/kernel/linux/linux-6.6/drivers/hwtracing/intel_th/ |
H A D | msu.c | 324 static size_t msc_win_total_sz(struct msc_window *win) in msc_win_total_sz() 328 size_t size = 0; in msc_win_total_sz() 334 return (size_t)win->nr_blocks << PAGE_SHIFT; in msc_win_total_sz() 578 msc_buffer_iterate(struct msc_iter *iter, size_t size, void *data, in msc_buffer_iterate() 579 unsigned long (*fn)(void *, void *, size_t)) in msc_buffer_iterate() 582 size_t len = size; in msc_buffer_iterate() 595 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() 596 size_t remaining = 0; in msc_buffer_iterate() 1415 size_t pgsz = PFN_DOWN(sg->length); in msc_buffer_get_page() 1442 static unsigned long msc_win_to_user(void *data, void *src, size_t le [all...] |
/kernel/linux/linux-6.6/net/mac80211/ |
H A D | debugfs_sta.c | 24 size_t count, loff_t *ppos) \ 87 size_t count, loff_t *ppos) in sta_flags_read() 108 size_t count, loff_t *ppos) in sta_num_ps_buf_frames_read() 123 size_t count, loff_t *ppos) in sta_last_seq_ctrl_read() 139 size_t count, loff_t *ppos) in sta_aqm_read() 143 size_t bufsz = AQM_TXQ_ENTRY_LEN * (IEEE80211_NUM_TIDS + 2); in sta_aqm_read() 199 size_t count, loff_t *ppos) in sta_airtime_read() 203 size_t bufsz = 400; in sta_airtime_read() 233 size_t count, loff_t *ppos) in sta_airtime_write() 252 size_t coun in sta_aql_read() [all...] |
/third_party/libsnd/src/ |
H A D | common.c | 465 ** argument to size_t or ensure the variable type is size_t. 576 size_t size ; in psf_binheader_writef() 755 size = va_arg (argptr, size_t) ; in psf_binheader_writef() 766 size = va_arg (argptr, size_t) ; in psf_binheader_writef() 787 size = va_arg (argptr, size_t) ; in psf_binheader_writef() 797 size = va_arg (argptr, size_t) ; in psf_binheader_writef() 927 size_t skip = position ; in header_seek() 930 size_t to_skip = SF_MIN (skip, sizeof (junk)) ; in header_seek() 1118 count = va_arg (argptr, size_t) ; in psf_binheader_readf() [all...] |
/third_party/json/include/nlohmann/detail/output/ |
H A D | binary_writer.hpp | 871 for (size_t i = 0; i < j.m_value.binary->size(); ++i) in write_ubjson() 960 static std::size_t calc_bson_entry_header_size(const string_t& name, const BasicJsonType& j) in calc_bson_entry_header_size() 1007 static std::size_t calc_bson_string_size(const string_t& value) in calc_bson_string_size() 1037 static std::size_t calc_bson_integer_size(const std::int64_t value) in calc_bson_integer_size() 1065 static constexpr std::size_t calc_bson_unsigned_size(const std::uint64_t value) noexcept 1107 static std::size_t calc_bson_array_size(const typename BasicJsonType::array_t& value) in calc_bson_array_size() 1109 std::size_t array_index = 0ul; in calc_bson_array_size() 1111 const std::size_t embedded_document_size = std::accumulate(std::begin(value), std::end(value), static_cast<std::size_t>(0), [&array_index](std::size_t resul in calc_bson_array_size() [all...] |
/third_party/nghttp2/src/ |
H A D | http2.cc | 252 for (size_t i = 1; i < s.size(); ++i) { in capitalize() 281 Headers::value_type to_header(const uint8_t *name, size_t namelen, in to_header() 282 const uint8_t *value, size_t valuelen, in to_header() 289 void add_header(Headers &nva, const uint8_t *name, size_t namelen, in add_header() 290 const uint8_t *value, size_t valuelen, bool no_index, in add_header() 293 size_t i, j; in add_header() 594 for (size_t i = 0; nv[i]; i += 2) { in dump_nv() 601 void dump_nv(FILE *out, const nghttp2_nv *nva, size_t nvlen) { in dump_nv() 723 int lookup_token(const uint8_t *name, size_t namelen) { in lookup_token() 980 void index_header(HeaderIndex &hdidx, int32_t token, size_t id [all...] |
/third_party/node/deps/v8/src/compiler/backend/ |
H A D | code-generator.cc | 29 JumpTable(JumpTable* next, Label** targets, size_t target_count) in JumpTable() 35 size_t target_count() const { return target_count_; } in target_count() 41 size_t const target_count_; 51 size_t max_unoptimized_frame_height, in CodeGenerator() 52 size_t max_pushed_argument_count, in CodeGenerator() 404 for (size_t i = 0; i < handlers_.size(); ++i) { in AssembleCode() 616 size_t push_count_upper_bound = pushes->size(); in GetPushCompatibleMoves() 617 size_t push_begin = push_count_upper_bound; in GetPushCompatibleMoves() 622 size_t push_count = pushes->size() - push_begin; in GetPushCompatibleMoves() 752 size_t frame_state_offse in AssembleInstruction() [all...] |