/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | gup_longterm.c | 91 static void do_test(int fd, size_t size, enum test_type type, bool shared) in do_test() argument 98 if (ftruncate(fd, size)) { in do_test() 103 if (fallocate(fd, 0, 0, size)) { in do_test() 104 if (size == pagesize) in do_test() 111 mem = mmap(NULL, size, PROT_READ | PROT_WRITE, in do_test() 114 if (size == pagesize || shared) in do_test() 125 memset(mem, 0, size); in do_test() 156 args.size = size; in do_test() 206 iov.iov_len = size; in do_test() 324 test_shared_rw_pin(int fd, size_t size) test_shared_rw_pin() argument 329 test_shared_rw_fast_pin(int fd, size_t size) test_shared_rw_fast_pin() argument 334 test_shared_ro_pin(int fd, size_t size) test_shared_ro_pin() argument 339 test_shared_ro_fast_pin(int fd, size_t size) test_shared_ro_fast_pin() argument 344 test_private_rw_pin(int fd, size_t size) test_private_rw_pin() argument 349 test_private_rw_fast_pin(int fd, size_t size) test_private_rw_fast_pin() argument 354 test_private_ro_pin(int fd, size_t size) test_private_ro_pin() argument 359 test_private_ro_fast_pin(int fd, size_t size) test_private_ro_fast_pin() argument 365 test_shared_iouring(int fd, size_t size) test_shared_iouring() argument 370 test_private_iouring(int fd, size_t size) test_private_iouring() argument [all...] |
/base/telephony/core_service/test/fuzztest/sendsmsmoremode_fuzzer/ |
H A D | sendsmsmoremode_fuzzer.cpp | 36 void SendSmsMoreMode(const uint8_t *data, size_t size) in SendSmsMoreMode() argument 53 std::string smscPdu(reinterpret_cast<const char *>(data), size); in SendSmsMoreMode() local 54 std::string pdu(reinterpret_cast<const char *>(data), size); in SendSmsMoreMode() local 55 std::string address(reinterpret_cast<const char *>(data), size); in SendSmsMoreMode() local 77 void GetCallList(const uint8_t *data, size_t size) in GetCallList() argument 88 std::string address(reinterpret_cast<const char *>(data), size); in GetCallList() local 89 std::string fac(reinterpret_cast<const char *>(data), size); in GetCallList() local 90 std::string password(reinterpret_cast<const char *>(data), size); in GetCallList() local 91 std::string sDTMFCode(reinterpret_cast<const char *>(data), size); in GetCallList() local 92 std::string oldPassword(reinterpret_cast<const char *>(data), size); in GetCallList() local 93 std::string newPassword(reinterpret_cast<const char *>(data), size); GetCallList() local 123 AnswerResponse(const uint8_t *data, size_t size) AnswerResponse() argument 146 DeactivatePdpContext(const uint8_t *data, size_t size) DeactivatePdpContext() argument 161 std::string apn(reinterpret_cast<const char *>(data), size); DeactivatePdpContext() local 162 std::string protocol(reinterpret_cast<const char *>(data), size); DeactivatePdpContext() local 163 std::string userName(reinterpret_cast<const char *>(data), size); DeactivatePdpContext() local 164 std::string password(reinterpret_cast<const char *>(data), size); DeactivatePdpContext() local 165 std::string roamingProtocol(reinterpret_cast<const char *>(data), size); DeactivatePdpContext() local 198 SimStkProactiveNotify(const uint8_t *data, size_t size) SimStkProactiveNotify() argument 201 std::string response(reinterpret_cast<const char *>(data), size); SimStkProactiveNotify() local 220 GetSimStatus(const uint8_t *data, size_t size) GetSimStatus() argument 230 std::string simIoInfoData(reinterpret_cast<const char *>(data), size); GetSimStatus() local 231 std::string path(reinterpret_cast<const char *>(data), size); GetSimStatus() local 232 std::string pin2(reinterpret_cast<const char *>(data), size); GetSimStatus() local 233 std::string aid(reinterpret_cast<const char *>(data), size); GetSimStatus() local 234 std::string fac(reinterpret_cast<const char *>(data), size); GetSimStatus() local 235 std::string password(reinterpret_cast<const char *>(data), size); GetSimStatus() local 236 std::string pin(reinterpret_cast<const char *>(data), size); GetSimStatus() local 237 std::string puk(reinterpret_cast<const char *>(data), size); GetSimStatus() local 238 std::string puk2(reinterpret_cast<const char *>(data), size); GetSimStatus() local 239 std::string strCmd(reinterpret_cast<const char *>(data), size); GetSimStatus() local 268 DoSomethingInterestingWithMyAPI(const uint8_t *data, size_t size) DoSomethingInterestingWithMyAPI() argument 296 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | memblock.h | 45 * @size: size of the region 51 phys_addr_t size; member 61 * @max: size of the allocated array 62 * @total_size: size of all regions 101 phys_addr_t size, phys_addr_t align); 103 int memblock_add_node(phys_addr_t base, phys_addr_t size, int nid); 104 int memblock_add(phys_addr_t base, phys_addr_t size); 105 int memblock_remove(phys_addr_t base, phys_addr_t size); 106 int memblock_free(phys_addr_t base, phys_addr_t size); 390 memblock_phys_alloc(phys_addr_t size, phys_addr_t align) memblock_phys_alloc() argument 407 memblock_alloc(phys_addr_t size, phys_addr_t align) memblock_alloc() argument 413 memblock_alloc_raw(phys_addr_t size, phys_addr_t align) memblock_alloc_raw() argument 421 memblock_alloc_from(phys_addr_t size, phys_addr_t align, phys_addr_t min_addr) memblock_alloc_from() argument 429 memblock_alloc_low(phys_addr_t size, phys_addr_t align) memblock_alloc_low() argument 436 memblock_alloc_node(phys_addr_t size, phys_addr_t align, int nid) memblock_alloc_node() argument 443 memblock_free_early(phys_addr_t base, phys_addr_t size) memblock_free_early() argument 449 memblock_free_early_nid(phys_addr_t base, phys_addr_t size, int nid) memblock_free_early_nid() argument 455 memblock_free_late(phys_addr_t base, phys_addr_t size) memblock_free_late() argument [all...] |
/base/account/os_account/frameworks/appaccount/cj/src/ |
H A D | appaccount_parameter_parse.cpp | 51 void charPtrToVector(char **charPtr, int size, std::vector<std::string> &result) in charPtrToVector() argument 53 for (int i = 0; i < size; i++) { in charPtrToVector() 70 size_t size = value.size(); in InnerSetWantParamsArrayString() local 71 sptr<AAFwk::IArray> ao = new (std::nothrow) AAFwk::Array(size, AAFwk::g_IID_IString); in InnerSetWantParamsArrayString() 73 for (size_t i = 0; i < size; i++) { in InnerSetWantParamsArrayString() 86 size_t size = value.size(); in InnerSetWantParamsArrayInt() local 87 sptr<AAFwk::IArray> ao = new (std::nothrow) AAFwk::Array(size, AAFwk::g_IID_IInteger); in InnerSetWantParamsArrayInt() 89 for (size_t i = 0; i < size; in InnerSetWantParamsArrayInt() 102 size_t size = value.size(); InnerSetWantParamsArrayLong() local 118 size_t size = value.size(); InnerSetWantParamsArrayBool() local 134 size_t size = value.size(); InnerSetWantParamsArrayDouble() local 147 InnerSetWantParamsArrayFD(CParameters* head, int64_t size, AAFwk::WantParams &wantParams) InnerSetWantParamsArrayFD() argument 266 long size = 0; InnerWrapWantParamsArrayString() local 312 long size = 0; InnerWrapWantParamsArrayT() local 373 long size = 0; InnerWrapWantParamsArrayFd() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ 27 s_len = scnprintf (*next, *size, format, ## arg ); \ 28 *size -= s_len; *next += s_len; \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ 37 s_len = scnprintf(*next, *size, format, ## arg); \ 38 *size -= s_len; *next += s_len; \ 47 unsigned *size) in ohci_dump_intr_mask() 49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask() 69 unsigned *size) in maybe_print_eds() 72 ohci_dbg_sw (ohci, next, size, " in maybe_print_eds() 42 ohci_dump_intr_mask( struct ohci_hcd *ohci, char *label, u32 mask, char **next, unsigned *size) ohci_dump_intr_mask() argument 64 maybe_print_eds( struct ohci_hcd *ohci, char *label, u32 value, char **next, unsigned *size) maybe_print_eds() argument 101 ohci_dump_status(struct ohci_hcd *controller, char **next, unsigned *size) ohci_dump_status() argument 191 ohci_dump_roothub( struct ohci_hcd *controller, int verbose, char **next, unsigned *size) ohci_dump_roothub() argument 402 unsigned temp, size = count; show_list() local 468 size_t temp, size; fill_async_buffer() local 491 unsigned temp, size, seen_count; fill_periodic_buffer() local 587 unsigned temp, size; fill_registers_buffer() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | ohci-dbg.c | 23 #define ohci_dbg_sw(ohci, next, size, format, arg...) \ 27 s_len = scnprintf (*next, *size, format, ## arg ); \ 28 *size -= s_len; *next += s_len; \ 34 #define ohci_dbg_nosw(ohci, next, size, format, arg...) \ 37 s_len = scnprintf(*next, *size, format, ## arg); \ 38 *size -= s_len; *next += s_len; \ 47 unsigned *size) in ohci_dump_intr_mask() 49 ohci_dbg_sw (ohci, next, size, "%s 0x%08x%s%s%s%s%s%s%s%s%s\n", in ohci_dump_intr_mask() 69 unsigned *size) in maybe_print_eds() 72 ohci_dbg_sw (ohci, next, size, " in maybe_print_eds() 42 ohci_dump_intr_mask( struct ohci_hcd *ohci, char *label, u32 mask, char **next, unsigned *size) ohci_dump_intr_mask() argument 64 maybe_print_eds( struct ohci_hcd *ohci, char *label, u32 value, char **next, unsigned *size) maybe_print_eds() argument 101 ohci_dump_status(struct ohci_hcd *controller, char **next, unsigned *size) ohci_dump_status() argument 191 ohci_dump_roothub( struct ohci_hcd *controller, int verbose, char **next, unsigned *size) ohci_dump_roothub() argument 402 unsigned temp, size = count; show_list() local 468 size_t temp, size; fill_async_buffer() local 491 unsigned temp, size, seen_count; fill_periodic_buffer() local 587 unsigned temp, size; fill_registers_buffer() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/css_2400_system/hive/ |
H A D | ia_css_isp_params.c | 74 unsigned int size = in ia_css_process_aa() local 75 stage->binary->info->mem_offsets.offsets.param->dmem.aa.size; in ia_css_process_aa() 79 if (size) { in ia_css_process_aa() 100 unsigned int size = in ia_css_process_anr() local 101 stage->binary->info->mem_offsets.offsets.param->dmem.anr.size; in ia_css_process_anr() 106 if (size) { in ia_css_process_anr() 113 size); in ia_css_process_anr() 135 unsigned int size = in ia_css_process_anr2() local 136 stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size; in ia_css_process_anr2() 141 if (size) { in ia_css_process_anr2() 170 unsigned int size = ia_css_process_bh() local 191 unsigned int size = ia_css_process_bh() local 217 unsigned int size = ia_css_process_cnr() local 252 unsigned int size = ia_css_process_crop() local 287 unsigned int size = ia_css_process_csc() local 322 unsigned int size = ia_css_process_dp() local 355 unsigned int size = ia_css_process_bnr() local 390 unsigned int size = ia_css_process_de() local 423 unsigned int size = ia_css_process_ecd() local 458 unsigned int size = ia_css_process_formats() local 493 unsigned int size = ia_css_process_fpn() local 528 unsigned int size = ia_css_process_gc() local 549 unsigned int size = ia_css_process_gc() local 582 unsigned int size = ia_css_process_ce() local 615 unsigned int size = ia_css_process_yuv2rgb() local 650 unsigned int size = ia_css_process_rgb2yuv() local 685 unsigned int size = ia_css_process_r_gamma() local 720 unsigned int size = ia_css_process_g_gamma() local 755 unsigned int size = ia_css_process_b_gamma() local 790 unsigned int size = ia_css_process_uds() local 828 unsigned int size = ia_css_process_raa() local 863 unsigned int size = ia_css_process_s3a() local 898 unsigned int size = ia_css_process_ob() local 919 unsigned int size = ia_css_process_ob() local 952 unsigned int size = ia_css_process_output() local 987 unsigned int size = ia_css_process_sc() local 1020 unsigned int size = ia_css_process_bds() local 1057 unsigned int size = ia_css_process_tnr() local 1092 unsigned int size = ia_css_process_macc() local 1127 unsigned int size = ia_css_process_sdis_horicoef() local 1162 unsigned int size = ia_css_process_sdis_vertcoef() local 1197 unsigned int size = ia_css_process_sdis_horiproj() local 1232 unsigned int size = ia_css_process_sdis_vertproj() local 1267 unsigned int size = ia_css_process_sdis2_horicoef() local 1302 unsigned int size = ia_css_process_sdis2_vertcoef() local 1337 unsigned int size = ia_css_process_sdis2_horiproj() local 1372 unsigned int size = ia_css_process_sdis2_vertproj() local 1407 unsigned int size = ia_css_process_wb() local 1440 unsigned int size = ia_css_process_nr() local 1473 unsigned int size = ia_css_process_yee() local 1508 unsigned int size = ia_css_process_ynr() local 1543 unsigned int size = ia_css_process_fc() local 1576 unsigned int size = ia_css_process_ctc() local 1599 unsigned int size = ia_css_process_ctc() local 1634 unsigned int size = ia_css_process_xnr_table() local 1669 unsigned int size = ia_css_process_xnr() local 1704 unsigned int size = ia_css_process_xnr3() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
H A D | ia_css_isp_params.c | 75 unsigned int size = in ia_css_process_aa() local 76 stage->binary->info->mem_offsets.offsets.param->dmem.aa.size; in ia_css_process_aa() 80 if (size) { in ia_css_process_aa() 98 unsigned int size = in ia_css_process_anr() local 99 stage->binary->info->mem_offsets.offsets.param->dmem.anr.size; in ia_css_process_anr() 104 if (size) { in ia_css_process_anr() 111 size); in ia_css_process_anr() 133 unsigned int size = in ia_css_process_anr2() local 134 stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size; in ia_css_process_anr2() 139 if (size) { in ia_css_process_anr2() 168 unsigned int size = ia_css_process_bh() local 189 unsigned int size = ia_css_process_bh() local 215 unsigned int size = ia_css_process_cnr() local 250 unsigned int size = ia_css_process_crop() local 285 unsigned int size = ia_css_process_csc() local 320 unsigned int size = ia_css_process_dp() local 353 unsigned int size = ia_css_process_bnr() local 388 unsigned int size = ia_css_process_de() local 421 unsigned int size = ia_css_process_ecd() local 456 unsigned int size = ia_css_process_formats() local 491 unsigned int size = ia_css_process_fpn() local 526 unsigned int size = ia_css_process_gc() local 547 unsigned int size = ia_css_process_gc() local 580 unsigned int size = ia_css_process_ce() local 613 unsigned int size = ia_css_process_yuv2rgb() local 648 unsigned int size = ia_css_process_rgb2yuv() local 683 unsigned int size = ia_css_process_r_gamma() local 718 unsigned int size = ia_css_process_g_gamma() local 753 unsigned int size = ia_css_process_b_gamma() local 788 unsigned int size = ia_css_process_uds() local 826 unsigned int size = ia_css_process_raa() local 861 unsigned int size = ia_css_process_s3a() local 896 unsigned int size = ia_css_process_ob() local 917 unsigned int size = ia_css_process_ob() local 950 unsigned int size = ia_css_process_output() local 985 unsigned int size = ia_css_process_sc() local 1018 unsigned int size = ia_css_process_bds() local 1055 unsigned int size = ia_css_process_tnr() local 1090 unsigned int size = ia_css_process_macc() local 1125 unsigned int size = ia_css_process_sdis_horicoef() local 1160 unsigned int size = ia_css_process_sdis_vertcoef() local 1195 unsigned int size = ia_css_process_sdis_horiproj() local 1230 unsigned int size = ia_css_process_sdis_vertproj() local 1265 unsigned int size = ia_css_process_sdis2_horicoef() local 1300 unsigned int size = ia_css_process_sdis2_vertcoef() local 1335 unsigned int size = ia_css_process_sdis2_horiproj() local 1370 unsigned int size = ia_css_process_sdis2_vertproj() local 1405 unsigned int size = ia_css_process_wb() local 1438 unsigned int size = ia_css_process_nr() local 1471 unsigned int size = ia_css_process_yee() local 1506 unsigned int size = ia_css_process_ynr() local 1541 unsigned int size = ia_css_process_fc() local 1574 unsigned int size = ia_css_process_ctc() local 1597 unsigned int size = ia_css_process_ctc() local 1632 unsigned int size = ia_css_process_xnr_table() local 1667 unsigned int size = ia_css_process_xnr() local 1702 unsigned int size = ia_css_process_xnr3() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/ |
H A D | huge_pages.c | 72 if (sg_alloc_table(st, obj->base.size >> PAGE_SHIFT, GFP)) { in get_huge_pages() 77 rem = obj->base.size; in get_huge_pages() 84 * largest to smallest page-size, while ensuring that we use *every* in get_huge_pages() 85 * page-size as per the given page-mask. in get_huge_pages() 151 u64 size, in huge_pages_object() 157 GEM_BUG_ON(!size); in huge_pages_object() 158 GEM_BUG_ON(!IS_ALIGNED(size, BIT(__ffs(page_mask)))); in huge_pages_object() 160 if (size >> PAGE_SHIFT > INT_MAX) in huge_pages_object() 163 if (overflows_type(size, obj->base.size)) in huge_pages_object() 150 huge_pages_object(struct drm_i915_private *i915, u64 size, unsigned int page_mask) huge_pages_object() argument 301 fake_huge_pages_object(struct drm_i915_private *i915, u64 size, bool single) fake_huge_pages_object() argument 556 unsigned int size = igt_mock_ppgtt_misaligned_dma() local 676 u64 size = page_num << PAGE_SHIFT; igt_mock_ppgtt_huge_fill() local 790 unsigned int size; igt_mock_ppgtt_64K() member 861 unsigned int size = objects[i].size; igt_mock_ppgtt_64K() local 1034 __igt_write_huge(struct intel_context *ce, struct drm_i915_gem_object *obj, u64 size, u64 offset, u32 dword, u32 val) __igt_write_huge() argument 1096 u64 size; igt_write_huge() local 1194 igt_create_shmem(struct drm_i915_private *i915, u32 size, u32 flags) igt_create_shmem() argument 1205 igt_create_internal(struct drm_i915_private *i915, u32 size, u32 flags) igt_create_internal() argument 1211 igt_create_system(struct drm_i915_private *i915, u32 size, u32 flags) igt_create_system() argument 1217 igt_create_local(struct drm_i915_private *i915, u32 size, u32 flags) igt_create_local() argument 1227 u32 size; igt_random_size() local 1268 u32 size = max; igt_ppgtt_smoke_huge() local 1339 u32 size; igt_ppgtt_sanity_check() member 1368 u32 size = combos[j].size; igt_ppgtt_sanity_check() local [all...] |
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_query.c | 40 cPath->size = pathSize;
in MallocCertPath() 52 pList[i].size = 0;
in CmFreePathList() 87 if (sprintf_s((char *)cPathList[i].data, cPathList[i].size, "%s", pathBuf) < 0) {
in ConstrutPathList() 134 pathList->size = (uint32_t)uidCount;
in CreateCertPathList() 176 if (sprintf_s((char *)cPathList[0].data, cPathList[0].size, "%s", SYSTEM_CA_STORE) < 0) {
in CmGetSysCertPathList() 183 pathList->size = sysPathCnt;
in CmGetSysCertPathList() 195 cFileList[i].path.size = 0;
in CmFreeCertFiles() 198 cFileList[i].fileName.size = 0;
in CmFreeCertFiles() 213 certFile->path.size = pathSize;
in MallocCertNameAndPath() 222 certFile->fileName.size in MallocCertNameAndPath() 388 uint32_t size = strlen(certProperty.alias) + 1; GetUserCertAlias() local [all...] |
/kernel/linux/linux-5.10/arch/arm/mm/ |
H A D | ioremap.c | 49 size_t size, unsigned int mtype) in find_static_vm_paddr() 62 paddr + size - 1 > vm->phys_addr + vm->size - 1) in find_static_vm_paddr() 83 if (vm->addr <= vaddr && vm->addr + vm->size > vaddr) in find_static_vm_vaddr() 140 * mask the size back to 1MB aligned or we will overflow in the loop below. 142 static void unmap_area_sections(unsigned long virt, unsigned long size) in unmap_area_sections() argument 144 unsigned long addr = virt, end = virt + (size & ~(SZ_1M - 1)); in unmap_area_sections() 184 size_t size, const struct mem_type *type) in remap_area_sections() 186 unsigned long addr = virt, end = virt + size; in remap_area_sections() 193 unmap_area_sections(virt, size); in remap_area_sections() 48 find_static_vm_paddr(phys_addr_t paddr, size_t size, unsigned int mtype) find_static_vm_paddr() argument 183 remap_area_sections(unsigned long virt, unsigned long pfn, size_t size, const struct mem_type *type) remap_area_sections() argument 210 remap_area_supersections(unsigned long virt, unsigned long pfn, size_t size, const struct mem_type *type) remap_area_supersections() argument 244 __arm_ioremap_pfn_caller(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype, void *caller) __arm_ioremap_pfn_caller() argument 322 __arm_ioremap_caller(phys_addr_t phys_addr, size_t size, unsigned int mtype, void *caller) __arm_ioremap_caller() argument 350 __arm_ioremap_pfn(unsigned long pfn, unsigned long offset, size_t size, unsigned int mtype) __arm_ioremap_pfn() argument 362 ioremap(resource_size_t res_cookie, size_t size) ioremap() argument 369 ioremap_cache(resource_size_t res_cookie, size_t size) ioremap_cache() argument 376 ioremap_wc(resource_size_t res_cookie, size_t size) ioremap_wc() argument 391 __arm_ioremap_exec(phys_addr_t phys_addr, size_t size, bool cached) __arm_ioremap_exec() argument 404 arch_memremap_wb(phys_addr_t phys_addr, size_t size) arch_memremap_wb() argument 467 pci_remap_cfgspace(resource_size_t res_cookie, size_t size) pci_remap_cfgspace() argument 483 arch_memremap_can_ram_remap(resource_size_t offset, size_t size, unsigned long flags) arch_memremap_can_ram_remap() argument [all...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | pcm_memory.c | 55 size_t size, struct snd_dma_buffer *dmab) in do_alloc_pages() 59 /* check and reserve the requested size */ in do_alloc_pages() 62 card->total_pcm_alloc_bytes + size > max_alloc_per_card) { in do_alloc_pages() 66 __update_allocated_size(card, size); in do_alloc_pages() 69 err = snd_dma_alloc_pages(type, dev, size, dmab); in do_alloc_pages() 71 /* the actual allocation size might be bigger than requested, in do_alloc_pages() 74 if (dmab->bytes != size) in do_alloc_pages() 75 update_allocated_size(card, dmab->bytes - size); in do_alloc_pages() 78 decrease_allocated_size(card, size); in do_alloc_pages() 94 * stores the resultant memory size i 54 do_alloc_pages(struct snd_card *card, int type, struct device *dev, size_t size, struct snd_dma_buffer *dmab) do_alloc_pages() argument 98 preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t size) preallocate_pcm_pages() argument 192 size_t size; snd_pcm_lib_preallocate_proc_write() local 259 preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max, bool managed) preallocate_pages() argument 281 preallocate_pages_for_all(struct snd_pcm *pcm, int type, void *data, size_t size, size_t max, bool managed) preallocate_pages_for_all() argument 305 snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_lib_preallocate_pages() argument 324 snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm, int type, void *data, size_t size, size_t max) snd_pcm_lib_preallocate_pages_for_all() argument 350 snd_pcm_set_managed_buffer(struct snd_pcm_substream *substream, int type, struct device *data, size_t size, size_t max) snd_pcm_set_managed_buffer() argument 369 snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type, struct device *data, size_t size, size_t max) snd_pcm_set_managed_buffer_all() argument 409 snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size) snd_pcm_lib_malloc_pages() argument 484 _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, size_t size, gfp_t gfp_flags) _snd_pcm_lib_alloc_vmalloc_buffer() argument [all...] |
/base/request/request/pre_download/native/src/cache/ |
H A D | data.rs | 20 size: Option<usize>, 29 pub(super) fn new_ram(size: Option<usize>) -> Self { 30 if let Some(size) = size { 32 data: CacheData::Ram(Vec::with_capacity(size)), 34 size: Some(size), 40 size: None, 61 if self.size.is_none() { 62 self.size 113 fn size(&self) -> usize { size() functions [all...] |
/base/print/print_fwk/test/fuzztest/scancallback_fuzzer/ |
H A D | scancallback_fuzzer.cpp | 27 void TestSetCallbackParam(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestSetCallbackParam() argument 39 void TestSetCallbackSyncParam(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestSetCallbackSyncParam() argument 51 void TestOnCallback(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnCallback() argument 63 void TestOnCallbackSync(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnCallbackSync() argument 74 void TestOnGetFrameResCallback(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnGetFrameResCallback() argument 84 void TestOnScanInitCallback(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnScanInitCallback() argument 93 void TestOnSendSearchMessage(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnSendSearchMessage() argument 102 void TestOnGetDevicesList(const uint8_t* data, size_t size, FuzzedDataProvider* dataProvider) in TestOnGetDevicesList() argument 115 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 121 if (size < OHO in LLVMFuzzerTestOneInput() [all...] |
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | pci_io.h | 11 /* I/O size constraints */ 133 int size; in zpci_get_max_io_size() local 135 size = min3(len, ZPCI_BOUNDARY_SIZE - offset, max); in zpci_get_max_io_size() 136 if (IS_ALIGNED(src, 8) && IS_ALIGNED(dst, 8) && IS_ALIGNED(size, 8)) in zpci_get_max_io_size() 137 return size; in zpci_get_max_io_size() 139 if (size >= 8) in zpci_get_max_io_size() 141 return rounddown_pow_of_two(size); in zpci_get_max_io_size() 148 int size, rc = 0; in zpci_memcpy_fromio() local 151 size = zpci_get_max_io_size((u64 __force) src, in zpci_memcpy_fromio() 154 rc = zpci_read_single(dst, src, size); in zpci_memcpy_fromio() 167 int size, rc = 0; zpci_memcpy_toio() local [all...] |
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | pci_io.h | 11 /* I/O size constraints */ 133 int size; in zpci_get_max_io_size() local 135 size = min3(len, ZPCI_BOUNDARY_SIZE - offset, max); in zpci_get_max_io_size() 136 if (IS_ALIGNED(src, 8) && IS_ALIGNED(dst, 8) && IS_ALIGNED(size, 8)) in zpci_get_max_io_size() 137 return size; in zpci_get_max_io_size() 139 if (size >= 8) in zpci_get_max_io_size() 141 return rounddown_pow_of_two(size); in zpci_get_max_io_size() 148 int size, rc = 0; in zpci_memcpy_fromio() local 151 size = zpci_get_max_io_size((u64 __force) src, in zpci_memcpy_fromio() 154 rc = zpci_read_single(dst, src, size); in zpci_memcpy_fromio() 167 int size, rc = 0; zpci_memcpy_toio() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ipa/ |
H A D | ipa_data-sc7180.c | 199 .size = 0x0080, 204 .size = 0x0200, 209 .size = 0, 214 .size = 0x0078, 219 .size = 0, 224 .size = 0x0078, 229 .size = 0, 234 .size = 0x0078, 239 .size = 0, 244 .size [all...] |
/kernel/linux/linux-5.10/mm/kasan/ |
H A D | tags.c | 78 bool check_memory_region(unsigned long addr, size_t size, bool write, in check_memory_region() argument 85 if (unlikely(size == 0)) in check_memory_region() 88 if (unlikely(addr + size < addr)) in check_memory_region() 89 return !kasan_report(addr, size, write, ret_ip); in check_memory_region() 116 return !kasan_report(addr, size, write, ret_ip); in check_memory_region() 119 shadow_last = kasan_mem_to_shadow(untagged_addr + size - 1); in check_memory_region() 122 return !kasan_report(addr, size, write, ret_ip); in check_memory_region() 129 #define DEFINE_HWASAN_LOAD_STORE(size) \ 130 void __hwasan_load##size##_noabort(unsigned long addr) \ 132 check_memory_region(addr, size, fals 147 __hwasan_loadN_noabort(unsigned long addr, unsigned long size) __hwasan_loadN_noabort() argument 153 __hwasan_storeN_noabort(unsigned long addr, unsigned long size) __hwasan_storeN_noabort() argument 159 __hwasan_tag_memory(unsigned long addr, u8 tag, unsigned long size) __hwasan_tag_memory() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | maccess.c | 11 size_t size) in copy_from_kernel_nofault_allowed() 24 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() argument 31 if (!copy_from_kernel_nofault_allowed(src, size)) in copy_from_kernel_nofault() 36 copy_from_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_from_kernel_nofault() 38 copy_from_kernel_nofault_loop(dst, src, size, u32, Efault); in copy_from_kernel_nofault() 40 copy_from_kernel_nofault_loop(dst, src, size, u16, Efault); in copy_from_kernel_nofault() 41 copy_from_kernel_nofault_loop(dst, src, size, u8, Efault); in copy_from_kernel_nofault() 58 long copy_to_kernel_nofault(void *dst, const void *src, size_t size) in copy_to_kernel_nofault() argument 67 copy_to_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_to_kernel_nofault() 69 copy_to_kernel_nofault_loop(dst, src, size, u3 in copy_to_kernel_nofault() 10 copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size) copy_from_kernel_nofault_allowed() argument 114 copy_from_user_nofault(void *dst, const void __user *src, size_t size) copy_from_user_nofault() argument 143 copy_to_user_nofault(void __user *dst, const void *src, size_t size) copy_to_user_nofault() argument 226 __copy_overflow(int size, unsigned long count) __copy_overflow() argument [all...] |
/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_lite.c | 80 srcData.data = (uint8_t *)HksMalloc(srcData.size); in CalcHeaderMac() 86 if (memcpy_s(srcData.data, srcData.size, buf, srcSize) != EOK) { in CalcHeaderMac() 105 /* caller func ensure g_storageImageBuffer.size is larger than sizeof(*keyInfoHead) */ in InitImageBuffer() 117 uint16_t size = sizeof(*keyInfoHead) - HKS_HMAC_DIGEST_SHA512_LEN; in InitImageBuffer() local 119 return CalcHeaderMac(&salt, g_storageImageBuffer.data, size, &mac); in InitImageBuffer() 127 (void)memset_s(g_storageImageBuffer.data, g_storageImageBuffer.size, 0, g_storageImageBuffer.size); in CleanImageBuffer() 130 static int32_t ApplyImageBuffer(uint32_t size) in ApplyImageBuffer() argument 136 if ((size == 0) || (size > MAX_BUF_SIZ in ApplyImageBuffer() 203 uint16_t size = sizeof(*keyInfoHead) - HKS_HMAC_DIGEST_SHA512_LEN; CheckKeyInfoHeaderValid() local 220 uint16_t size = sizeof(*keyInfoHead) - HKS_HMAC_DIGEST_SHA512_LEN; RefreshKeyInfoHeaderHmac() local 738 HksStoreGetToatalSize(uint32_t *size) HksStoreGetToatalSize() argument 852 uint32_t size = HksFileSize(path, fileName); CleanFile() local [all...] |
/kernel/linux/linux-6.6/fs/ntfs3/ |
H A D | xattr.c | 26 return ea->size ? le32_to_cpu(ea->size) : in unpacked_ea_size() 81 u32 size, off, ea_size; in ntfs_read_ea() local 101 size = le32_to_cpu((*info)->size); in ntfs_read_ea() 102 if (size > sbi->ea_max_size) { in ntfs_read_ea() 112 if (!size) { in ntfs_read_ea() 118 ea_p = kmalloc(size_add(size, add_bytes), GFP_NOFS); in ntfs_read_ea() 127 err = attr_load_runs_range(ni, ATTR_EA, NULL, 0, &run, 0, size); in ntfs_read_ea() 129 err = ntfs_read_run_nb(sbi, &run, 0, ea_p, size, NUL in ntfs_read_ea() 199 u32 off, size; ntfs_list_ea() local 247 ntfs_get_ea(struct inode *inode, const char *name, size_t name_len, void *buffer, size_t size, size_t *required) ntfs_get_ea() argument 322 u32 off, size, ea_sz; ntfs_set_ea() local 593 size_t size, name_len; ntfs_set_acl_ex() local 723 ntfs_listxattr(struct dentry *dentry, char *buffer, size_t size) ntfs_listxattr() argument 743 ntfs_getxattr(const struct xattr_handler *handler, struct dentry *de, struct inode *inode, const char *name, void *buffer, size_t size) ntfs_getxattr() argument 832 ntfs_setxattr(const struct xattr_handler *handler, struct mnt_idmap *idmap, struct dentry *de, struct inode *inode, const char *name, const void *value, size_t size, int flags) ntfs_setxattr() argument [all...] |
/kernel/linux/linux-6.6/drivers/of/ |
H A D | fdt.c | 65 "#size-cells", NULL); in of_fdt_limit_memory() 96 static void *unflatten_dt_alloc(void **mem, unsigned long size, in unflatten_dt_alloc() argument 103 *mem += size; in unflatten_dt_alloc() 282 * Return: The size of unflattened device tree or error code 368 void *(*dt_alloc)(u64 size, u64 align), in __unflatten_device_tree() 371 int size; in __unflatten_device_tree() local 387 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree() 395 /* First pass, scan for size */ in __unflatten_device_tree() 396 size = unflatten_dt_nodes(blob, NULL, dad, NULL); in __unflatten_device_tree() 397 if (size < in __unflatten_device_tree() 365 __unflatten_device_tree(const void *blob, struct device_node *dad, struct device_node **mynodes, void *(*dt_alloc)(u64 size, u64 align), bool detached) __unflatten_device_tree() argument 433 kernel_tree_alloc(u64 size, u64 align) kernel_tree_alloc() argument 479 early_init_dt_reserve_memory(phys_addr_t base, phys_addr_t size, bool nomap) early_init_dt_reserve_memory() argument 504 phys_addr_t base, size; __reserved_mem_reserve_reg() local 633 u64 base, size; early_init_fdt_scan_reserved_mem() local 752 of_get_flat_dt_prop(unsigned long node, const char *name, int *size) of_get_flat_dt_prop() argument 867 int size; of_flat_dt_match_machine() local 1129 u64 base, size; early_init_dt_scan_memory() local 1220 early_init_dt_add_memory_arch(u64 base, u64 size) early_init_dt_add_memory_arch() argument 1262 early_init_dt_alloc_memory_arch(u64 size, u64 align) early_init_dt_alloc_memory_arch() argument 1353 int size; unflatten_and_copy_device_tree() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
H A D | emulate_loadstore.c | 99 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 D | emulate_loadstore.c | 98 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 D | rio-sysfs.c | 121 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...] |