/kernel/linux/linux-6.6/arch/s390/mm/ |
H A D | maccess.c | 27 static notrace long s390_kernel_write_odd(void *dst, const void *src, size_t size) in s390_kernel_write_odd() argument 34 size = min(8UL - offset, size); in s390_kernel_write_odd() 35 count = size - 1; in s390_kernel_write_odd() 47 return size; in s390_kernel_write_odd() 54 * @size: number of bytes to copy 64 notrace void *s390_kernel_write(void *dst, const void *src, size_t size) in s390_kernel_write() argument 71 while (size) { in s390_kernel_write() 72 copied = s390_kernel_write_odd(tmp, src, size); in s390_kernel_write() 75 size in s390_kernel_write() 155 unsigned long size; xlate_dev_mem_ptr() local [all...] |
/kernel/linux/linux-5.10/security/selinux/ss/ |
H A D | hashtab.c | 33 u32 size = hashtab_compute_size(nel_hint); in hashtab_init() local 37 h->size = 0; in hashtab_init() 40 if (size) { in hashtab_init() 41 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init() 44 h->size = size; in hashtab_init() 71 for (i = 0; i < h->size; i++) { in hashtab_destroy() 93 for (i = 0; i < h->size; i++) { in hashtab_map() 113 for (i = 0; i < h->size; i++) { in hashtab_stat() 143 new->htable = kcalloc(orig->size, sizeo in hashtab_duplicate() [all...] |
/kernel/linux/linux-5.10/drivers/nvmem/ |
H A D | sunxi_sid.c | 31 u32 size; member 119 int size; in sunxi_sid_probe() local 137 size = cfg->size; in sunxi_sid_probe() 146 nvmem_cfg->size = cfg->size; in sunxi_sid_probe() 159 randomness = kzalloc(size, GFP_KERNEL); in sunxi_sid_probe() 163 nvmem_cfg->reg_read(sid, 0, randomness, size); in sunxi_sid_probe() 164 add_device_randomness(randomness, size); in sunxi_sid_probe() 173 .size [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/rmgr/src/ |
H A D | rmgr_vbuf.c | 36 0, /* size */ 47 0, /* size */ 58 32, /* size */ 109 (*handle)->size = h->size; in ia_css_rmgr_refcount_retain_vbuf() 131 (*handle)->size = 0; in ia_css_rmgr_refcount_release_vbuf() 151 if (pool->recycle && pool->size) { in ia_css_rmgr_init_vbuf() 155 pool->size; in ia_css_rmgr_init_vbuf() 162 /* just in case, set the size to 0 */ in ia_css_rmgr_init_vbuf() 163 pool->size in ia_css_rmgr_init_vbuf() [all...] |
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | efi-stub.c | 58 unsigned long size; in setup_graphics() local 62 size = 0; in setup_graphics() 64 &gop_proto, NULL, &size, gop_handle); in setup_graphics() 69 status = efi_setup_gop(si, &gop_proto, size); in setup_graphics() 92 rsv->size = 0; in install_memreserve_table() 195 * Create an allocation that is of sufficient size to hold all the memory 203 unsigned long size, mmap_key; in efi_alloc_virtmap() local 207 * Use the size of the current memory map as an upper bound for the in efi_alloc_virtmap() 208 * size of the buffer we need to pass to SetVirtualAddressMap() to in efi_alloc_virtmap() 211 size in efi_alloc_virtmap() 239 u64 paddr, size; efi_get_virtmap() local [all...] |
/kernel/linux/linux-6.6/security/selinux/ss/ |
H A D | hashtab.c | 34 u32 size = hashtab_compute_size(nel_hint); in hashtab_init() local 38 h->size = 0; in hashtab_init() 41 if (size) { in hashtab_init() 42 h->htable = kcalloc(size, sizeof(*h->htable), GFP_KERNEL); in hashtab_init() 45 h->size = size; in hashtab_init() 72 for (i = 0; i < h->size; i++) { in hashtab_destroy() 94 for (i = 0; i < h->size; i++) { in hashtab_map() 114 for (i = 0; i < h->size; i++) { in hashtab_stat() 146 new->htable = kcalloc(orig->size, sizeo in hashtab_duplicate() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | buildid.c | 17 __u32 *size, in parse_build_id_buf() 37 if (size) in parse_build_id_buf() 38 *size = nhdr->n_descsz; in parse_build_id_buf() 53 __u32 *size, in parse_build_id() 65 return parse_build_id_buf(build_id, size, note_start, note_size); in parse_build_id() 70 __u32 *size) in get_build_id_32() 85 !parse_build_id(page_addr, build_id, size, in get_build_id_32() 95 __u32 *size) in get_build_id_64() 110 !parse_build_id(page_addr, build_id, size, in get_build_id_64() 122 * @size 16 parse_build_id_buf(unsigned char *build_id, __u32 *size, const void *note_start, Elf32_Word note_size) parse_build_id_buf() argument 51 parse_build_id(const void *page_addr, unsigned char *build_id, __u32 *size, const void *note_start, Elf32_Word note_size) parse_build_id() argument 69 get_build_id_32(const void *page_addr, unsigned char *build_id, __u32 *size) get_build_id_32() argument 94 get_build_id_64(const void *page_addr, unsigned char *build_id, __u32 *size) get_build_id_64() argument 126 build_id_parse(struct vm_area_struct *vma, unsigned char *build_id, __u32 *size) build_id_parse() argument 187 unsigned int size = &__stop_notes - &__start_notes; init_vmlinux_build_id() local [all...] |
/test/ostest/wukong/input_factory/src/ |
H A D | appswitch_input.cpp | 46 if (bundleList.size() == 0 || abilityList.size() == 0) { in OrderInput() 47 ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in OrderInput() 69 if (bundleList.size() == 0 || abilityList.size() == 0) { in RandomInput() 70 ERROR_LOG_STR("bundleList (%u) or abilityList (%u) is 0", bundleList.size(), abilityList.size()); in RandomInput() 131 if (bundlelist.size() > 0) { in GetAbilityIndex() 132 if (allowlist.size() > in GetAbilityIndex() [all...] |
/third_party/elfutils/libelf/ |
H A D | elf_getdata_rawchunk.c | 43 elf_getdata_rawchunk (Elf *elf, int64_t offset, size_t size, Elf_Type type) in elf_getdata_rawchunk() argument 56 || elf->maximum_size - (uint64_t) offset < size)) in elf_getdata_rawchunk() 81 if ((rawchunks->offset == offset || size == 0) in elf_getdata_rawchunk() 82 && rawchunks->data.d.d_size == size in elf_getdata_rawchunk() 101 rawchunk = malloc (size); in elf_getdata_rawchunk() 104 memcpy (rawchunk, rawdata, size); in elf_getdata_rawchunk() 111 rawchunk = malloc (size); in elf_getdata_rawchunk() 120 if (unlikely ((size_t) pread_retry (elf->fildes, rawchunk, size, in elf_getdata_rawchunk() 122 != size)) in elf_getdata_rawchunk() 145 buffer = malloc (size); in elf_getdata_rawchunk() [all...] |
/third_party/glslang/glslang/MachineIndependent/ |
H A D | reflection.h | 71 int getNumUniforms() { return (int)indexToUniform.size(); } in getNumUniforms() 74 if (i >= 0 && i < (int)indexToUniform.size()) in getUniform() 81 int getNumUniformBlocks() const { return (int)indexToUniformBlock.size(); } in getNumUniformBlocks() 84 if (i >= 0 && i < (int)indexToUniformBlock.size()) in getUniformBlock() 91 int getNumPipeInputs() { return (int)indexToPipeInput.size(); } in getNumPipeInputs() 94 if (i >= 0 && i < (int)indexToPipeInput.size()) in getPipeInput() 101 int getNumPipeOutputs() { return (int)indexToPipeOutput.size(); } in getNumPipeOutputs() 104 if (i >= 0 && i < (int)indexToPipeOutput.size()) in getPipeOutput() 111 int getNumAtomicCounters() const { return (int)atomicCounterUniformIndices.size(); } in getNumAtomicCounters() 114 if (i >= 0 && i < (int)atomicCounterUniformIndices.size()) in getAtomicCounter() [all...] |
/third_party/backends/backend/ |
H A D | ricoh2_buffer.c | 54 SANE_Int size; member 67 ricoh2_buffer_create (SANE_Int size, in ricoh2_buffer_create() argument 73 assert (size > 0); in ricoh2_buffer_create() 81 self->data = malloc (size); in ricoh2_buffer_create() 88 self->size = size; in ricoh2_buffer_create() 98 "size = %d pixels_per_line = %d info_size = %d rgb? = %d pos = %d\n", in ricoh2_buffer_create() 99 self->size, in ricoh2_buffer_create() 121 DBG (192, "engaging a buffer of size %d\n", self->size); in ricoh2_buffer_get_internal_buffer() [all...] |
/third_party/benchmark/src/ |
H A D | perf_counters.cc | 35 const size_t bufsize = values_.size() * sizeof(values_[0]); in Read() 37 size_t size = bufsize; in Read() local 39 auto read_bytes = ::read(lead, ptr, size); in Read() 47 size -= data_bytes; in Read() 55 return (bufsize - size) / sizeof(uint64_t); in Read() 95 valid_names.reserve(counter_names.size()); in Create() 96 counter_ids.reserve(counter_names.size()); in Create() 107 for (size_t i = 0; i < counter_names.size(); ++i) { in Create() 110 if (valid_names.size() == PerfCounterValues::kMaxCounters) { in Create() 113 << counter_names.size() << " counter in Create() [all...] |
/third_party/gn/src/gn/ |
H A D | path_output.cc | 48 inverse_current_dir_.size() - 1); in WriteDir() 68 std::string_view(dir.value().data(), dir.value().size() - 1)); in WriteDir() 104 DCHECK(file.value().empty() || file.value()[file.value().size() - 1] == '/'); in WriteDir() 112 file.value()[file.value().size() - 1] == '/') { in WriteDir() 115 out, std::string_view(file.value().data(), file.value().size() - 1), in WriteDir() 137 intermediate.reserve(inverse_current_dir_.size() + str.size()); in WriteSourceRelativeString() 139 inverse_current_dir_.size()); in WriteSourceRelativeString() 140 intermediate.append(str.data(), str.size()); in WriteSourceRelativeString() 143 out, std::string_view(intermediate.c_str(), intermediate.size()), in WriteSourceRelativeString() [all...] |
/third_party/musl/porting/liteos_a/user/include/ |
H A D | sched.h | 88 #define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \ 91 #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) 92 #define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~) 93 #define CPU_ISSET_S(i, size, set) __CPU_op_S(i, size, set, &) 113 #define CPU_COUNT_S(size,set) __sched_cpucount(size,se [all...] |
/third_party/musl/porting/liteos_m_iccarm/kernel/include/ |
H A D | sched.h | 80 #define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \ 83 #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) 84 #define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~) 85 #define CPU_ISSET_S(i, size, set) __CPU_op_S(i, size, set, &) 105 #define CPU_COUNT_S(size,set) __sched_cpucount(size,se [all...] |
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | sched.h | 80 #define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \ 83 #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) 84 #define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~) 85 #define CPU_ISSET_S(i, size, set) __CPU_op_S(i, size, set, &) 105 #define CPU_COUNT_S(size,set) __sched_cpucount(size,se [all...] |
/third_party/musl/porting/liteos_a/kernel/include/ |
H A D | sched.h | 81 #define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \ 84 #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) 85 #define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~) 86 #define CPU_ISSET_S(i, size, set) (__CPU_op_S(i, size, set, &) != 0) 106 #define CPU_COUNT_S(size,set) __sched_cpucount(size,se [all...] |
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | sched.h | 80 #define __CPU_op_S(i, size, set, op) ( (i)/8U >= (size) ? 0 : \ 83 #define CPU_SET_S(i, size, set) __CPU_op_S(i, size, set, |=) 84 #define CPU_CLR_S(i, size, set) __CPU_op_S(i, size, set, &=~) 85 #define CPU_ISSET_S(i, size, set) __CPU_op_S(i, size, set, &) 105 #define CPU_COUNT_S(size,set) __sched_cpucount(size,se [all...] |
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_ringbuf.c | 46 int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size, in nghttp3_ringbuf_init() argument 55 rb->buf = nghttp3_mem_malloc(mem, nmemb * size); in nghttp3_ringbuf_init() 65 rb->size = size; in nghttp3_ringbuf_init() 84 return (void *)&rb->buf[rb->first * rb->size]; in nghttp3_ringbuf_push_front() 96 return (void *)&rb->buf[offset * rb->size]; in nghttp3_ringbuf_push_back() 117 return &rb->buf[offset * rb->size]; in nghttp3_ringbuf_get() 135 buf = nghttp3_mem_malloc(rb->mem, nmemb * rb->size); in nghttp3_ringbuf_reserve() 142 memcpy(buf, rb->buf + rb->first * rb->size, rb->len * rb->size); in nghttp3_ringbuf_reserve() [all...] |
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-macos.cc | 38 mach_vm_size_t size, int flags, in mach_vm_map_wrapper() 44 return mach_vm_map(mach_task_self(), address, size, 0, flags, port, offset, in mach_vm_map_wrapper() 51 PlatformSharedMemoryHandle OS::CreateSharedMemoryHandleForTesting(size_t size) { in CreateSharedMemoryHandleForTesting() argument 52 mach_vm_size_t vm_size = size; in CreateSharedMemoryHandleForTesting() 70 void* OS::AllocateShared(void* hint, size_t size, MemoryPermission access, in AllocateShared() argument 72 DCHECK_EQ(0, size % AllocatePageSize()); in AllocateShared() 77 kern_return_t kr = mach_vm_map_wrapper(&addr, size, VM_FLAGS_FIXED, in AllocateShared() 82 kr = mach_vm_map_wrapper(&addr, size, VM_FLAGS_ANYWHERE, shared_mem_port, in AllocateShared() 91 bool OS::RemapPages(const void* address, size_t size, void* new_address, in RemapPages() argument 96 DCHECK(IsAligned(size, AllocatePageSiz in RemapPages() 37 mach_vm_map_wrapper(mach_vm_address_t* address, mach_vm_size_t size, int flags, mach_port_t port, memory_object_offset_t offset, vm_prot_t prot) mach_vm_map_wrapper() argument 117 AllocateShared(void* address, size_t size, OS::MemoryPermission access, PlatformSharedMemoryHandle handle, uint64_t offset) AllocateShared() argument [all...] |
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
H A D | util.cc | 26 bool WriteBinary(const std::string& path, const uint8_t* data, size_t size) { in WriteBinary() argument 29 static_cast<std::streamsize>(size)); in WriteBinary() 37 size_t size, in LogError() 45 WriteBinary(prefix + ".spv", data, size); in LogError() 84 size_t size, in LogWgslError() 106 error_dir.empty() ? nullptr : &error_path, data, size, &wgsl); in LogWgslError() 111 size_t size, in LogSpvError() 116 error_dir.empty() ? nullptr : &error_path, data, size, nullptr); in LogSpvError() 129 size_t size = static_cast<size_t>(file.tellg()); in ReadBinary() local 139 std::vector<char> binary(size); in ReadBinary() 32 LogError(uint32_t index, const std::string& type, const std::string& message, const std::string* path, const uint8_t* data, size_t size, const std::string* wgsl) LogError() argument 82 LogWgslError(const std::string& message, const uint8_t* data, size_t size, const std::string& wgsl, OutputFormat output_format, const std::string& error_dir) LogWgslError() argument 109 LogSpvError(const std::string& message, const uint8_t* data, size_t size, const std::string& error_dir) LogSpvError() argument [all...] |
/base/security/asset/frameworks/os_dependency/memory/src/ |
H A D | asset_mem.c | 25 void *AssetMalloc(uint32_t size) in AssetMalloc() argument 27 if (size == 0) { in AssetMalloc() 30 void *addr = malloc(size); in AssetMalloc() 32 (void)memset_s(addr, size, 0, size); in AssetMalloc() 45 int32_t AssetMemCmp(const void *ptr1, const void *ptr2, uint32_t size) in AssetMemCmp() argument 47 return memcmp(ptr1, ptr2, size); in AssetMemCmp()
|
/third_party/cups-filters/fontembed/ |
H A D | bitset.h | 19 static inline BITSET bitset_new(int size) in bitset_new() argument 21 return (BITSET)calloc(1,((size+8*sizeof(int)-1)&~(8*sizeof(int)-1))/8); in bitset_new() 24 static inline int bits_used(BITSET bits,int size) // {{{ returns true if any bit is used in bits_used() argument 26 size=(size+8*sizeof(int)-1)/(8*sizeof(int)); in bits_used() 27 while (size>0) { in bits_used() 32 size--; in bits_used()
|
/third_party/skia/src/ports/ |
H A D | SkMemory_mozalloc.cpp | 29 void* sk_realloc_throw(void* addr, size_t size) { in sk_realloc_throw() argument 30 return moz_xrealloc(addr, size); in sk_realloc_throw() 33 void* sk_malloc_flags(size_t size, unsigned flags) { in sk_malloc_flags() argument 35 return (flags & SK_MALLOC_THROW) ? moz_xcalloc(size, 1) : calloc(size, 1); in sk_malloc_flags() 37 return (flags & SK_MALLOC_THROW) ? moz_xmalloc(size) : malloc(size); in sk_malloc_flags()
|
/kernel/linux/linux-5.10/drivers/staging/ks7010/ |
H A D | ks_hostif.c | 107 u8 size; in get_current_ap() local 118 priv->reg.ssid.size); in get_current_ap() 119 ap->ssid.size = priv->reg.ssid.size; in get_current_ap() 121 ap_info->rate_set.size); in get_current_ap() 122 ap->rate_set.size = ap_info->rate_set.size; in get_current_ap() 123 if (ap_info->ext_rate_set.size != 0) { in get_current_ap() 124 memcpy(&ap->rate_set.body[ap->rate_set.size], in get_current_ap() 126 ap_info->ext_rate_set.size); in get_current_ap() 190 u8 size = (*(bp + 1) <= max) ? *(bp + 1) : max; read_ie() local 424 size_t size; hostif_data_indication() local 1044 hostif_generic_request(size_t size, int event) hostif_generic_request() argument 1071 size_t size; hostif_data_request() local 1238 send_request_to_device(struct ks_wlan_private *priv, void *data, size_t size) send_request_to_device() argument 1259 hostif_mib_set_request(struct ks_wlan_private *priv, enum mib_attribute attr, enum mib_data_type type, void *data, size_t size) hostif_mib_set_request() argument 1285 size_t size = sizeof(v); hostif_mib_set_request_int() local 1295 size_t size = sizeof(v); hostif_mib_set_request_bool() local 1300 hostif_mib_set_request_ostring(struct ks_wlan_private *priv, enum mib_attribute attr, void *data, size_t size) hostif_mib_set_request_ostring() argument 1579 devio_rec_ind(struct ks_wlan_private *priv, unsigned char *p, unsigned int size) devio_rec_ind() argument 1602 hostif_receive(struct ks_wlan_private *priv, unsigned char *p, unsigned int size) hostif_receive() argument 1661 __le16 size; global() member 1674 size_t size; hostif_sme_set_rsn() local 2025 __le16 size; hostif_sme_set_pmksa() member 2032 size_t size; hostif_sme_set_pmksa() local 2241 size_t size = LOCAL_APLIST_MAX * sizeof(struct local_ap); hostif_aplist_init() local [all...] |