Home
last modified time | relevance | path

Searched refs:size (Results 2326 - 2350 of 53423) sorted by relevance

1...<<919293949596979899100>>...2137

/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsaibarshaderfilter_fuzzer/
H A Drsaibarshaderfilter_fuzzer.cpp59 bool DoGenerateGEVisualEffect(const uint8_t* data, size_t size) in DoGenerateGEVisualEffect() argument
67 g_size = size; in DoGenerateGEVisualEffect()
76 bool DoIsAiInvertCoefValid(const uint8_t* data, size_t size) in DoIsAiInvertCoefValid() argument
84 g_size = size; in DoIsAiInvertCoefValid()
97 bool DoGetAiInvertCoef(const uint8_t* data, size_t size) in DoGetAiInvertCoef() argument
105 g_size = size; in DoGetAiInvertCoef()
118 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
121 OHOS::Rosen::DoGenerateGEVisualEffect(data, size); in LLVMFuzzerTestOneInput()
122 OHOS::Rosen::DoIsAiInvertCoefValid(data, size); in LLVMFuzzerTestOneInput()
123 OHOS::Rosen::DoGetAiInvertCoef(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsfunctionaldelegate_fuzzer/
H A Drsfunctionaldelegate_fuzzer.cpp39 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
58 bool DoCreate(const uint8_t* data, size_t size) in DoCreate() argument
66 g_size = size; in DoCreate()
74 bool DoSetRepaintCallback(const uint8_t* data, size_t size) in DoSetRepaintCallback() argument
82 g_size = size; in DoSetRepaintCallback()
89 bool DoRepaint(const uint8_t* data, size_t size) in DoRepaint() argument
97 g_size = size; in DoRepaint()
109 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
112 OHOS::Rosen::DoCreate(data, size); in LLVMFuzzerTestOneInput()
113 OHOS::Rosen::DoSetRepaintCallback(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rstextureexport_fuzzer/
H A Drstextureexport_fuzzer.cpp34 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
53 bool DoRSTextureExport(const uint8_t* data, size_t size) in DoRSTextureExport() argument
61 g_size = size; in DoRSTextureExport()
72 bool DoDoTextureExport(const uint8_t* data, size_t size) in DoDoTextureExport() argument
80 g_size = size; in DoDoTextureExport()
92 bool DoStopTextureExport(const uint8_t* data, size_t size) in DoStopTextureExport() argument
100 g_size = size; in DoStopTextureExport()
115 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
118 OHOS::Rosen::DoRSTextureExport(data, size); in LLVMFuzzerTestOneInput()
119 OHOS::Rosen::DoDoTextureExport(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontarguments_fuzzer/
H A Dfontarguments_fuzzer.cpp28 bool FontArgumentsFuzzTest001(const uint8_t* data, size_t size) in FontArgumentsFuzzTest001() argument
36 g_size = size; in FontArgumentsFuzzTest001()
47 bool FontArgumentsFuzzTest002(const uint8_t* data, size_t size) in FontArgumentsFuzzTest002() argument
55 g_size = size; in FontArgumentsFuzzTest002()
69 bool FontArgumentsFuzzTest003(const uint8_t* data, size_t size) in FontArgumentsFuzzTest003() argument
77 g_size = size; in FontArgumentsFuzzTest003()
96 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
99 OHOS::Rosen::Drawing::FontArgumentsFuzzTest001(data, size); in LLVMFuzzerTestOneInput()
100 OHOS::Rosen::Drawing::FontArgumentsFuzzTest002(data, size); in LLVMFuzzerTestOneInput()
101 OHOS::Rosen::Drawing::FontArgumentsFuzzTest003(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/effect/colormatrix_fuzzer/
H A Dcolormatrix_fuzzer.cpp30 bool ColorMatrixFuzzTest001(const uint8_t* data, size_t size) in ColorMatrixFuzzTest001() argument
38 g_size = size; in ColorMatrixFuzzTest001()
53 bool ColorMatrixFuzzTest002(const uint8_t* data, size_t size) in ColorMatrixFuzzTest002() argument
61 g_size = size; in ColorMatrixFuzzTest002()
77 bool ColorMatrixFuzzTest003(const uint8_t* data, size_t size) in ColorMatrixFuzzTest003() argument
85 g_size = size; in ColorMatrixFuzzTest003()
102 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
105 OHOS::Rosen::Drawing::ColorMatrixFuzzTest001(data, size); in LLVMFuzzerTestOneInput()
106 OHOS::Rosen::Drawing::ColorMatrixFuzzTest002(data, size); in LLVMFuzzerTestOneInput()
107 OHOS::Rosen::Drawing::ColorMatrixFuzzTest003(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rsshader_fuzzer/
H A Drsshader_fuzzer.cpp54 bool DoCreateRSShader(const uint8_t* data, size_t size) in DoCreateRSShader() argument
62 g_size = size; in DoCreateRSShader()
71 bool DoSetDrawingShader(const uint8_t* data, size_t size) in DoSetDrawingShader() argument
79 g_size = size; in DoSetDrawingShader()
87 bool DoGetDrawingShader(const uint8_t* data, size_t size) in DoGetDrawingShader() argument
95 g_size = size; in DoGetDrawingShader()
105 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
108 OHOS::Rosen::DoCreateRSShader(data, size); in LLVMFuzzerTestOneInput()
109 OHOS::Rosen::DoSetDrawingShader(data, size); in LLVMFuzzerTestOneInput()
110 OHOS::Rosen::DoGetDrawingShader(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rstaskdispatcher_fuzzer/
H A Drstaskdispatcher_fuzzer.cpp56 bool DoRegisterTaskDispatchFunc(const uint8_t* data, size_t size) in DoRegisterTaskDispatchFunc() argument
64 g_size = size; in DoRegisterTaskDispatchFunc()
78 bool DoPostTask(const uint8_t* data, size_t size) in DoPostTask() argument
86 g_size = size; in DoPostTask()
95 bool DoHasRegisteredTask(const uint8_t* data, size_t size) in DoHasRegisteredTask() argument
103 g_size = size; in DoHasRegisteredTask()
114 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
117 OHOS::Rosen::DoRegisterTaskDispatchFunc(data, size); in LLVMFuzzerTestOneInput()
118 OHOS::Rosen::DoPostTask(data, size); in LLVMFuzzerTestOneInput()
119 OHOS::Rosen::DoHasRegisteredTask(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/rsextendedmodifier_fuzzer/
H A Drsextendedmodifier_fuzzer.cpp38 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
57 bool DoCreateDrawingContext(const uint8_t* data, size_t size) in DoCreateDrawingContext() argument
65 g_size = size; in DoCreateDrawingContext()
76 bool DoCreateRenderModifier(const uint8_t* data, size_t size) in DoCreateRenderModifier() argument
84 g_size = size; in DoCreateRenderModifier()
96 bool DoFinishDrawing(const uint8_t* data, size_t size) in DoFinishDrawing() argument
104 g_size = size; in DoFinishDrawing()
117 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
120 OHOS::Rosen::DoCreateDrawingContext(data, size); in LLVMFuzzerTestOneInput()
121 OHOS::Rosen::DoCreateRenderModifier(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/multimedia/player_framework/services/utils/
H A Davdatasrcmemory.cpp28 AVSharedMemoryBaseImpl(int32_t fd, int32_t size, uint32_t flags, const std::string &name) in AVSharedMemoryBaseImpl()
29 : AVDataSrcMemory(fd, size, flags, name) {} in AVSharedMemoryBaseImpl()
33 int32_t size, uint32_t flags, const std::string &name) in CreateFromLocal()
35 std::shared_ptr<AVDataSrcMemory> memory = std::make_shared<AVDataSrcMemory>(size, flags, name); in CreateFromLocal()
43 int32_t fd, int32_t size, uint32_t flags, const std::string &name) in CreateFromRemote()
45 std::shared_ptr<AVDataSrcMemory> memory = std::make_shared<AVSharedMemoryBaseImpl>(fd, size, flags, name); in CreateFromRemote()
55 AVDataSrcMemory::AVDataSrcMemory(int32_t size, uint32_t flags, const std::string &name) in AVDataSrcMemory() argument
56 : AVSharedMemoryBase(size, flags, name) in AVDataSrcMemory()
63 AVDataSrcMemory::AVDataSrcMemory(int32_t fd, int32_t size, uint32_t flags, const std::string &name) in AVDataSrcMemory() argument
64 : AVSharedMemoryBase(fd, size, flag in AVDataSrcMemory()
32 CreateFromLocal( int32_t size, uint32_t flags, const std::string &name) CreateFromLocal() argument
42 CreateFromRemote( int32_t fd, int32_t size, uint32_t flags, const std::string &name) CreateFromRemote() argument
[all...]
/foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskonremoterequest_fuzzer/
H A Dbgtaskonremoterequest_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
45 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
65 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
72 if (size < OHOS::BackgroundTaskMgr::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
76 char* ch = static_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
81 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
82 if (memcpy_s(ch, size + 1, data, size) != EOK) { in LLVMFuzzerTestOneInput()
88 OHOS::BackgroundTaskMgr::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/bundleactiveonremoterequest_fuzzer/
H A Dbundleactiveonremoterequest_fuzzer.cpp42 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
48 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
63 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
70 if (size < OHOS::DeviceUsageStats::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
73 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
78 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
79 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
85 OHOS::DeviceUsageStats::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/resourceschedule/device_usage_statistics/test/fuzztest/appgroupcallbackstub_fuzzer/
H A Dappgroupcallbackstub_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
46 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
64 if (size < OHOS::DeviceUsageStats::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
67 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
72 (void)memset_s(ch, size + 1, 0x00, size + 1); in LLVMFuzzerTestOneInput()
73 if (memcpy_s(ch, size, data, size) != EOK) { in LLVMFuzzerTestOneInput()
79 OHOS::DeviceUsageStats::DoSomethingInterestingWithMyAPI(ch, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/fuzztest/lnnsyncinfomanager_fuzzer/
H A Dlnnsyncinfomanager_fuzzer.cpp43 void LnnSendSyncInfoMsgFuzzTest(const uint8_t* data, size_t size) in LnnSendSyncInfoMsgFuzzTest() argument
45 if (data == nullptr || size < NETWORK_ID_BUF_LEN) { in LnnSendSyncInfoMsgFuzzTest()
46 COMM_LOGE(COMM_TEST, "data or size is vaild!"); in LnnSendSyncInfoMsgFuzzTest()
50 g_baseFuzzSize = size; in LnnSendSyncInfoMsgFuzzTest()
63 LnnSendSyncInfoMsg(type, networkId, data, (uint32_t)size, complete); in LnnSendSyncInfoMsgFuzzTest()
66 void LnnSendP2pSyncInfoMsgFuzzTest(const uint8_t* data, size_t size) in LnnSendP2pSyncInfoMsgFuzzTest() argument
68 if (data == nullptr || size < NETWORK_ID_BUF_LEN) { in LnnSendP2pSyncInfoMsgFuzzTest()
69 COMM_LOGE(COMM_TEST, "data or size is vaild!"); in LnnSendP2pSyncInfoMsgFuzzTest()
73 g_baseFuzzSize = size; in LnnSendP2pSyncInfoMsgFuzzTest()
86 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
[all...]
/foundation/distributeddatamgr/pasteboard/test/fuzztest/pasteboardobserver_fuzzer/
H A Dpasteboardobserver_fuzzer.cpp41 bool FuzzPasteboardObserver(const uint8_t *rawData, size_t size) in FuzzPasteboardObserver() argument
43 if (rawData == nullptr || size < sizeof(uint32_t)) { in FuzzPasteboardObserver()
56 bool FuzzPasteboardObserverOnPasteboardChangedStub(const uint8_t *rawData, size_t size) in FuzzPasteboardObserverOnPasteboardChangedStub() argument
67 bool FuzzPasteboardObserverOnPasteboardEventStub(const uint8_t *rawData, size_t size) in FuzzPasteboardObserverOnPasteboardEventStub() argument
69 if (rawData == nullptr || size < sizeof(int32_t)) { in FuzzPasteboardObserverOnPasteboardEventStub()
79 data.WriteString(std::string(reinterpret_cast<const char*>(rawData + pos), size - pos)); in FuzzPasteboardObserverOnPasteboardEventStub()
87 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
90 OHOS::FuzzPasteboardObserver(data, size); in LLVMFuzzerTestOneInput()
91 OHOS::FuzzPasteboardObserverOnPasteboardChangedStub(data, size); in LLVMFuzzerTestOneInput()
92 OHOS::FuzzPasteboardObserverOnPasteboardEventStub(data, size); in LLVMFuzzerTestOneInput()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/cameraoperator/client/src/listener/
H A Ddcamera_photo_surface_listener.cpp54 int32_t size = -1; in OnBufferAvailable() local
55 buffer->GetExtraData()->ExtraGet("dataSize", size); in OnBufferAvailable()
56 if (size <= 0) { in OnBufferAvailable()
57 size = static_cast<int32_t>(buffer->GetSize()); in OnBufferAvailable()
59 if ((address == nullptr) || (size <= 0) || (size > SURFACE_BUFFER_MAX_SIZE)) { in OnBufferAvailable()
60 DHLOGE("DCameraPhotoSurfaceListener invalid params, size: %{public}d", size); in OnBufferAvailable()
63 DHLOGI("DCameraPhotoSurfaceListener size: %{public}d", size); in OnBufferAvailable()
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/
H A Dversioninfomanager_fuzzer.cpp40 void VersioninfoManagerFuzzTest(const uint8_t* data, size_t size) in VersioninfoManagerFuzzTest() argument
42 if ((data == nullptr) || (size == 0)) { in VersioninfoManagerFuzzTest()
47 versionInfo.deviceId = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
48 versionInfo.dhVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
52 compVer.name = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
53 compVer.handlerVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
54 compVer.sourceVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
55 compVer.sinkVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
70 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
73 OHOS::DistributedHardware::VersioninfoManagerFuzzTest(data, size); in LLVMFuzzerTestOneInput()
[all...]
/kernel/linux/linux-5.10/arch/m68k/kernel/
H A Ddma.c21 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
23 cache_push(page_to_phys(page), size); in arch_dma_prep_coherent() local
40 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, in arch_dma_alloc() argument
47 ret = (void *)__get_free_pages(gfp, get_order(size)); in arch_dma_alloc()
50 memset(ret, 0, size); in arch_dma_alloc()
56 void arch_dma_free(struct device *dev, size_t size, void *vaddr, in arch_dma_free() argument
59 free_pages((unsigned long)vaddr, get_order(size)); in arch_dma_free()
64 void arch_sync_dma_for_device(phys_addr_t handle, size_t size, in arch_sync_dma_for_device() argument
70 cache_push(handle, size); in arch_sync_dma_for_device()
73 cache_clear(handle, size); in arch_sync_dma_for_device()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/mm/
H A Dioremap_32.c9 void __iomem *ioremap_wt(phys_addr_t addr, unsigned long size) in ioremap_wt() argument
13 return __ioremap_caller(addr, size, prot, __builtin_return_address(0)); in ioremap_wt()
18 __ioremap_caller(phys_addr_t addr, unsigned long size, pgprot_t prot, void *caller) in __ioremap_caller() argument
32 size = PAGE_ALIGN(addr + size) - p; in __ioremap_caller()
54 if (size == 0) in __ioremap_caller()
66 return do_ioremap(p, offset, size, prot, caller); in __ioremap_caller()
73 err = early_ioremap_range(ioremap_bot - size, p, size, prot); in __ioremap_caller()
76 ioremap_bot -= size; in __ioremap_caller()
[all...]
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dmtrr.h38 extern int mtrr_add(unsigned long base, unsigned long size,
40 extern int mtrr_add_page(unsigned long base, unsigned long size,
42 extern int mtrr_del(int reg, unsigned long base, unsigned long size);
43 extern int mtrr_del_page(int reg, unsigned long base, unsigned long size);
62 static inline int mtrr_add(unsigned long base, unsigned long size, in mtrr_add() argument
67 static inline int mtrr_add_page(unsigned long base, unsigned long size, in mtrr_add_page() argument
72 static inline int mtrr_del(int reg, unsigned long base, unsigned long size) in mtrr_del() argument
76 static inline int mtrr_del_page(int reg, unsigned long base, unsigned long size) in mtrr_del_page() argument
103 compat_uint_t size; /* Size of region */ member
110 compat_uint_t size; /* Siz member
[all...]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Ddevninet.c39 int nip_dev_ifconf(struct net *net, struct ifconf *ifc, int size) in nip_dev_ifconf() argument
54 done = ninet_gifconf(dev, NULL, 0, size); in nip_dev_ifconf()
57 len - total, size); in nip_dev_ifconf()
68 int ninet_gifconf(struct net_device *dev, char __user *buf, int len, int size) in ninet_gifconf() argument
75 if (WARN_ON(size > sizeof(struct ifreq))) in ninet_gifconf()
87 done += size; in ninet_gifconf()
90 if (len < size) in ninet_gifconf()
99 if (copy_to_user(buf + done, &ifr, size)) { in ninet_gifconf()
103 len -= size; in ninet_gifconf()
104 done += size; in ninet_gifconf()
[all...]
/kernel/linux/linux-5.10/arch/arc/mm/
H A Dioremap.c26 void __iomem *ioremap(phys_addr_t paddr, unsigned long size) in ioremap() argument
30 /* Don't allow wraparound or zero size */ in ioremap()
31 end = paddr + size - 1; in ioremap()
32 if (!size || (end < paddr)) in ioremap()
42 return ioremap_prot(paddr, size, PAGE_KERNEL_NO_CACHE); in ioremap()
53 void __iomem *ioremap_prot(phys_addr_t paddr, unsigned long size, in ioremap_prot() argument
62 /* Don't allow wraparound, zero size */ in ioremap_prot()
63 end = paddr + size - 1; in ioremap_prot()
64 if ((!size) || (end < paddr)) in ioremap_prot()
77 size in ioremap_prot()
[all...]
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/
H A Dmem.c28 unsigned long size; in efi_get_memory_map() local
36 size = tmp.map_size + tmp.desc_size * EFI_MMAP_NR_SLACK_SLOTS; in efi_get_memory_map()
37 status = efi_bs_call(allocate_pool, memtype, sizeof(*m) + size, in efi_get_memory_map()
54 m->buff_size = m->map_size = size; in efi_get_memory_map()
73 * @size: minimum number of bytes to allocate
76 * architecture dependent multiple of the page size.
86 efi_status_t efi_allocate_pages(unsigned long size, unsigned long *addr, in efi_allocate_pages() argument
93 return efi_allocate_pages_aligned(size, addr, max, in efi_allocate_pages()
98 EFI_LOADER_DATA, DIV_ROUND_UP(size, EFI_PAGE_SIZE), in efi_allocate_pages()
109 * @size
118 efi_free(unsigned long size, unsigned long addr) efi_free() argument
[all...]
/kernel/linux/linux-6.6/arch/m68k/kernel/
H A Ddma.c21 void arch_dma_prep_coherent(struct page *page, size_t size) in arch_dma_prep_coherent() argument
23 cache_push(page_to_phys(page), size); in arch_dma_prep_coherent() local
37 void *arch_dma_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, in arch_dma_alloc() argument
44 ret = (void *)__get_free_pages(gfp, get_order(size)); in arch_dma_alloc()
47 memset(ret, 0, size); in arch_dma_alloc()
53 void arch_dma_free(struct device *dev, size_t size, void *vaddr, in arch_dma_free() argument
56 free_pages((unsigned long)vaddr, get_order(size)); in arch_dma_free()
61 void arch_sync_dma_for_device(phys_addr_t handle, size_t size, in arch_sync_dma_for_device() argument
67 cache_push(handle, size); in arch_sync_dma_for_device()
70 cache_clear(handle, size); in arch_sync_dma_for_device()
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
H A Dipoib_rx.c12 static void copy_ipoib_buf(struct sk_buff *skb, void *data, int size) in copy_ipoib_buf() argument
19 dst_data = skb_put(skb, size); in copy_ipoib_buf()
20 memcpy(dst_data, data, size); in copy_ipoib_buf()
25 static struct sk_buff *prepare_frag_skb(struct napi_struct *napi, int size) in prepare_frag_skb() argument
28 int skb_size = SKB_DATA_ALIGN(size + HFI1_IPOIB_SKB_PAD); in prepare_frag_skb()
36 return napi_alloc_skb(napi, size); in prepare_frag_skb()
50 int size, void *data) in hfi1_ipoib_prepare_skb()
53 int skb_size = size + HFI1_IPOIB_ENCAP_LEN; in hfi1_ipoib_prepare_skb()
60 if (size <= SKB_WITH_OVERHEAD(PAGE_SIZE)) in hfi1_ipoib_prepare_skb()
68 copy_ipoib_buf(skb, data, size); in hfi1_ipoib_prepare_skb()
49 hfi1_ipoib_prepare_skb(struct hfi1_netdev_rxq *rxq, int size, void *data) hfi1_ipoib_prepare_skb() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/
H A Dfman_muram.c42 size_t size; member
55 * @size: Size of the FM-MURAM partition.
65 struct muram_info *fman_muram_init(phys_addr_t base, size_t size) in fman_muram_init() argument
81 vaddr = ioremap(base, size); in fman_muram_init()
88 base, size, -1); in fman_muram_init()
95 memset_io(vaddr, 0, (int)size); in fman_muram_init()
126 * @size: Size of the memory to be allocated.
132 unsigned long fman_muram_alloc(struct muram_info *muram, size_t size) in fman_muram_alloc() argument
136 vaddr = gen_pool_alloc(muram->pool, size); in fman_muram_alloc()
140 memset_io((void __iomem *)vaddr, 0, size); in fman_muram_alloc()
153 fman_muram_free_mem(struct muram_info *muram, unsigned long offset, size_t size) fman_muram_free_mem() argument
[all...]

Completed in 11 milliseconds

1...<<919293949596979899100>>...2137