Home
last modified time | relevance | path

Searched refs:GFP_KERNEL (Results 1 – 25 of 6981) sorted by relevance

12345678910>>...280

/linux-6.6.21/scripts/coccinelle/api/
Dkvmalloc.cocci37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...)
59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...);
101 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
104 + E = kvmalloc(size, GFP_KERNEL);
111 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
114 + E = kvmalloc(size, GFP_KERNEL);
121 - T x = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
124 + T x = kvmalloc(size, GFP_KERNEL);
133 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\));
[all …]
/linux-6.6.21/samples/kmemleak/
Dkmemleak-test.c43 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
44 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
45 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
46 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
47 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
48 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
49 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
50 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
53 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
55 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
[all …]
/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dmemory-allocation.rst32 kzalloc(<size>, GFP_KERNEL);
42 * 大多数时候, ``GFP_KERNEL`` 是你需要的。内核数据结构的内存,DMA可用内存,inode
43 缓存,所有这些和其他许多分配类型都可以使用 ``GFP_KERNEL`` 。注意,使用 ``GFP_KERNEL``
54 有一个方便的用于 ``GFP_KERNEL`` 分配的 ``GFP_KERNEL_ACCOUNT`` 快捷键,其应该被核
81 * ``GFP_KERNEL & ~__GFP_RECLAIM`` - 乐观分配,完全不尝试释放内存。最轻量级的模
85 * ``GFP_KERNEL & ~__GFP_DIRECT_RECLAIM`` (or ``GFP_NOWAIT`` ) - 乐观分配,不
89 * ``(GFP_KERNEL|__GFP_HIGH) & ~__GFP_DIRECT_RECLAIM`` (aka ``GFP_ATOMIC`` ) - 非
93 * ``GFP_KERNEL`` - 允许后台和直接回收,并使用默认的页面分配器行为。这意味着廉价
97 * ``GFP_KERNEL | __GFP_NORETRY`` - 覆盖默认的分配器行为,所有的分配请求都会提前
100 * ``GFP_KERNEL | __GFP_RETRY_MAYFAIL`` - 覆盖 **默认** 的分配器行为,所有分配请求都非
[all …]
/linux-6.6.21/tools/testing/radix-tree/
Didr-test.c38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test()
39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test()
52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test()
64 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); in idr_replace_test()
83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); in idr_null_test()
102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); in idr_null_test()
114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test()
123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); in idr_null_test()
[all …]
/linux-6.6.21/net/handshake/
Dhandshake-test.c75 .gfp = GFP_KERNEL,
81 .gfp = GFP_KERNEL,
87 .gfp = GFP_KERNEL,
93 .gfp = GFP_KERNEL,
99 .gfp = GFP_KERNEL,
105 .gfp = GFP_KERNEL | __GFP_NOWARN,
111 .gfp = GFP_KERNEL,
157 result = handshake_req_submit(sock, NULL, GFP_KERNEL); in handshake_req_submit_test1()
171 req = handshake_req_alloc(&handshake_req_alloc_proto_good, GFP_KERNEL); in handshake_req_submit_test2()
175 result = handshake_req_submit(NULL, req, GFP_KERNEL); in handshake_req_submit_test2()
[all …]
/linux-6.6.21/lib/
Dtest_xarray.c48 GFP_KERNEL) != 0); in xa_insert_index()
95 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_KERNEL)) != 0); in check_xa_err()
96 XA_BUG_ON(xa, xa_err(xa_store(xa, 1, xa_mk_value(0), GFP_KERNEL)) != 0); in check_xa_err()
107 xa_store_index(xa, 0, GFP_KERNEL); in check_xas_retry()
108 xa_store_index(xa, 1, GFP_KERNEL); in check_xas_retry()
122 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL); in check_xas_retry()
159 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL); in check_xa_load()
186 XA_BUG_ON(xa, xa_store_index(xa, index, GFP_KERNEL) != NULL); in check_xa_mark_1()
212 XA_BUG_ON(xa, xa_store_index(xa, index + 1, GFP_KERNEL)); in check_xa_mark_1()
214 XA_BUG_ON(xa, xa_store_index(xa, index + 2, GFP_KERNEL)); in check_xa_mark_1()
[all …]
Dtest_ida.c36 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != i); in ida_check_alloc()
41 id = ida_alloc(ida, GFP_KERNEL); in ida_check_alloc()
50 IDA_BUG_ON(ida, ida_alloc_min(ida, 5000, GFP_KERNEL) != 10001); in ida_check_alloc()
59 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != base); in ida_check_destroy_1()
89 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_leaf()
96 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != 0); in ida_check_leaf()
114 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_max()
117 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_max()
132 IDA_BUG_ON(ida, ida_alloc_min(ida, i + 1, GFP_KERNEL) != i + 1); in ida_check_conv()
134 GFP_KERNEL) != i + BITS_PER_LONG); in ida_check_conv()
[all …]
/linux-6.6.21/drivers/misc/lkdtm/
Dheap.c55 u32 *data = kmalloc(len, GFP_KERNEL); in lkdtm_SLAB_LINEAR_OVERFLOW()
76 base = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE()
85 again = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE()
103 base = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE()
109 val = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE()
137 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE()
150 p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE()
157 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE()
166 val = kmalloc(1024, GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE()
197 first = kmalloc(512, GFP_KERNEL); in lkdtm_SLAB_INIT_ON_ALLOC()
[all …]
/linux-6.6.21/sound/soc/intel/avs/boards/
Di2s_test.c22 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
23 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
29 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
30 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
34 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
60 dr = devm_kcalloc(dev, num_dr, sizeof(*dr), GFP_KERNEL); in avs_create_dapm_routes()
64 dr[0].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%dpb", ssp_port); in avs_create_dapm_routes()
65 dr[0].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Tx", ssp_port); in avs_create_dapm_routes()
69 dr[1].sink = devm_kasprintf(dev, GFP_KERNEL, "ssp%d Rx", ssp_port); in avs_create_dapm_routes()
70 dr[1].source = devm_kasprintf(dev, GFP_KERNEL, "ssp%dcp", ssp_port); in avs_create_dapm_routes()
[all …]
Dssm4567.c91 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
92 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
98 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
99 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
100 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs) * 2, GFP_KERNEL); in avs_create_dai_link()
104 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
105 dl->codecs[0].name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343B:00"); in avs_create_dai_link()
106 dl->codecs[0].dai_name = devm_kasprintf(dev, GFP_KERNEL, "ssm4567-hifi"); in avs_create_dai_link()
107 dl->codecs[1].name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343B:01"); in avs_create_dai_link()
108 dl->codecs[1].dai_name = devm_kasprintf(dev, GFP_KERNEL, "ssm4567-hifi"); in avs_create_dai_link()
[all …]
Dmax98373.c103 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
104 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
110 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
111 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
112 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs) * 2, GFP_KERNEL); in avs_create_dai_link()
116 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
117 dl->codecs[0].name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_DEV0_NAME); in avs_create_dai_link()
118 dl->codecs[0].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_CODEC_NAME); in avs_create_dai_link()
119 dl->codecs[1].name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_DEV1_NAME); in avs_create_dai_link()
120 dl->codecs[1].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98373_CODEC_NAME); in avs_create_dai_link()
[all …]
Dmax98927.c100 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
101 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
107 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
108 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
109 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs) * 2, GFP_KERNEL); in avs_create_dai_link()
113 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
114 dl->codecs[0].name = devm_kasprintf(dev, GFP_KERNEL, MAX98927_DEV0_NAME); in avs_create_dai_link()
115 dl->codecs[0].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98927_CODEC_NAME); in avs_create_dai_link()
116 dl->codecs[1].name = devm_kasprintf(dev, GFP_KERNEL, MAX98927_DEV1_NAME); in avs_create_dai_link()
117 dl->codecs[1].dai_name = devm_kasprintf(dev, GFP_KERNEL, MAX98927_CODEC_NAME); in avs_create_dai_link()
[all …]
Dmax98357a.c54 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
55 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
61 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
62 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
63 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
67 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
68 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "MX98357A:00"); in avs_create_dai_link()
69 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, "HiFi"); in avs_create_dai_link()
108 card = devm_kzalloc(dev, sizeof(*card), GFP_KERNEL); in avs_max98357a_probe()
Dhdaudio.c26 dl = devm_kcalloc(dev, pcm_count, sizeof(*dl), GFP_KERNEL); in avs_create_dai_links()
27 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_links()
35 dl[i].name = devm_kasprintf(dev, GFP_KERNEL, "%s link%d", cname, i); in avs_create_dai_links()
48 dl[i].codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_links()
49 dl[i].cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_links()
53 dl[i].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "%s-cpu%d", cname, i); in avs_create_dai_links()
57 dl[i].codecs->name = devm_kstrdup(dev, cname, GFP_KERNEL); in avs_create_dai_links()
187 binder = devm_kmemdup(dev, &probing_link, sizeof(probing_link), GFP_KERNEL); in avs_hdaudio_probe()
191 binder->platforms = devm_kzalloc(dev, sizeof(*binder->platforms), GFP_KERNEL); in avs_hdaudio_probe()
192 binder->codecs = devm_kzalloc(dev, sizeof(*binder->codecs), GFP_KERNEL); in avs_hdaudio_probe()
[all …]
Drt286.c61 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_rt286_codec_init()
122 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
123 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
129 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
130 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
131 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
135 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
136 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00"); in avs_create_dai_link()
137 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT286_CODEC_DAI); in avs_create_dai_link()
196 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_rt286_probe()
[all …]
Drt298.c72 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_rt298_codec_init()
139 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
140 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
146 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
147 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
148 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
152 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", ssp_port); in avs_create_dai_link()
153 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-INT343A:00"); in avs_create_dai_link()
154 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, RT298_CODEC_DAI); in avs_create_dai_link()
216 jack = devm_kzalloc(dev, sizeof(*jack), GFP_KERNEL); in avs_rt298_probe()
[all …]
/linux-6.6.21/mm/kasan/
Dkasan_test.c164 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right()
193 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left()
206 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right()
227 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right()
243 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_uaf()
257 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_invalid_free()
277 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_oob_right()
291 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_uaf()
308 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right()
325 ptr1 = kmalloc(size1, GFP_KERNEL); in krealloc_more_oob_helper()
[all …]
/linux-6.6.21/drivers/usb/misc/
Dehset.c49 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_prepare_port_for_testing()
62 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_prepare_port_for_testing()
85 NULL, 0, 1000, GFP_KERNEL); in ehset_probe()
94 1000, GFP_KERNEL); in ehset_probe()
103 1000, GFP_KERNEL); in ehset_probe()
112 NULL, 0, 1000, GFP_KERNEL); in ehset_probe()
119 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_probe()
126 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_probe()
135 USB_CTRL_GET_TIMEOUT, GFP_KERNEL); in ehset_probe()
153 60 * 1000, GFP_KERNEL); in ehset_probe()
/linux-6.6.21/drivers/net/wireless/ti/wl1251/
Dacx.c20 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates()
49 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id()
69 default_key = kzalloc(sizeof(*default_key), GFP_KERNEL); in wl1251_acx_default_key()
97 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1251_acx_wake_up_conditions()
123 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth()
142 rev = kzalloc(sizeof(*rev), GFP_KERNEL); in wl1251_acx_fw_version()
177 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
201 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1251_acx_feature_cfg()
243 params = kzalloc(sizeof(*params), GFP_KERNEL); in wl1251_acx_data_path_params()
289 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
[all …]
/linux-6.6.21/mm/kfence/
Dkfence_test.c216 enum kmalloc_cache_type type = kmalloc_type(GFP_KERNEL, 0); in kmalloc_cache_alignment()
287 enum kmalloc_cache_type type = kmalloc_type(GFP_KERNEL, _RET_IP_); in test_alloc()
339 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_read()
345 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_out_of_bounds_read()
363 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_write()
380 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_use_after_free_read()
395 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_double_free()
411 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_invalid_addr_free()
431 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_corruption()
437 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_corruption()
[all …]
/linux-6.6.21/drivers/gpu/drm/arm/display/komeda/
Dkomeda_private_obj.c24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state()
53 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_layer_obj_add()
68 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_scaler_atomic_duplicate_state()
95 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_scaler_obj_add()
111 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_compiz_atomic_duplicate_state()
138 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_compiz_obj_add()
154 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_splitter_atomic_duplicate_state()
181 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_splitter_obj_add()
198 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_merger_atomic_duplicate_state()
224 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_merger_obj_add()
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/
Dclk_mgr.c158 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
171 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
181 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
191 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
215 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
229 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
257 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
284 struct clk_mgr_vgh *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
296 struct clk_mgr_dcn31 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
308 struct clk_mgr_dcn315 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
[all …]
/linux-6.6.21/drivers/net/wireless/ti/wlcore/
Dacx.c31 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1271_acx_wake_up_conditions()
60 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth()
93 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power()
120 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1271_acx_feature_cfg()
165 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time()
192 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in wl1271_acx_slot()
221 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl()
251 rx_timeout = kzalloc(sizeof(*rx_timeout), GFP_KERNEL); in wl1271_acx_service_period_timeout()
291 rts = kzalloc(sizeof(*rts), GFP_KERNEL); in wl1271_acx_rts_threshold()
319 dco = kzalloc(sizeof(*dco), GFP_KERNEL); in wl1271_acx_dco_itrim_params()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
Di915_sw_fence.c50 fence = kmalloc(sizeof(*fence), GFP_KERNEL); in alloc_fence()
109 if (i915_sw_fence_await_sw_fence_gfp(A, A, GFP_KERNEL) != -EINVAL) { in test_dag()
120 i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_dag()
121 if (i915_sw_fence_await_sw_fence_gfp(B, A, GFP_KERNEL) != -EINVAL) { in test_dag()
132 if (i915_sw_fence_await_sw_fence_gfp(B, C, GFP_KERNEL) == -EINVAL) { in test_dag()
136 if (i915_sw_fence_await_sw_fence_gfp(C, B, GFP_KERNEL) != -EINVAL) { in test_dag()
140 if (i915_sw_fence_await_sw_fence_gfp(C, A, GFP_KERNEL) != -EINVAL) { in test_dag()
144 if (i915_sw_fence_await_sw_fence_gfp(A, C, GFP_KERNEL) == -EINVAL) { in test_dag()
190 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_AB()
245 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_ABC()
[all …]
/linux-6.6.21/fs/jffs2/
Dmalloc.c116 ret = kmalloc(sizeof(struct jffs2_full_dirent) + namesize, GFP_KERNEL); in jffs2_alloc_full_dirent()
130 ret = kmem_cache_alloc(full_dnode_slab, GFP_KERNEL); in jffs2_alloc_full_dnode()
144 ret = kmem_cache_alloc(raw_dirent_slab, GFP_KERNEL); in jffs2_alloc_raw_dirent()
158 ret = kmem_cache_alloc(raw_inode_slab, GFP_KERNEL); in jffs2_alloc_raw_inode()
172 ret = kmem_cache_alloc(tmp_dnode_info_slab, GFP_KERNEL); in jffs2_alloc_tmp_dnode_info()
188 ret = kmem_cache_alloc(raw_node_ref_slab, GFP_KERNEL); in jffs2_alloc_refblock()
251 ret = kmem_cache_alloc(node_frag_slab, GFP_KERNEL); in jffs2_alloc_node_frag()
265 ret = kmem_cache_alloc(inode_cache_slab, GFP_KERNEL); in jffs2_alloc_inode_cache()
280 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum()
300 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()

12345678910>>...280